Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
For information about permissions, see Security and Access Control to Metadata and Data.
Synopsis
- data GrantPermissions = GrantPermissions' {}
- newGrantPermissions :: DataLakePrincipal -> Resource -> GrantPermissions
- grantPermissions_catalogId :: Lens' GrantPermissions (Maybe Text)
- grantPermissions_permissionsWithGrantOption :: Lens' GrantPermissions (Maybe [Permission])
- grantPermissions_principal :: Lens' GrantPermissions DataLakePrincipal
- grantPermissions_resource :: Lens' GrantPermissions Resource
- grantPermissions_permissions :: Lens' GrantPermissions [Permission]
- data GrantPermissionsResponse = GrantPermissionsResponse' {
- httpStatus :: Int
- newGrantPermissionsResponse :: Int -> GrantPermissionsResponse
- grantPermissionsResponse_httpStatus :: Lens' GrantPermissionsResponse Int
Creating a Request
data GrantPermissions Source #
See: newGrantPermissions
smart constructor.
GrantPermissions' | |
|
Instances
Create a value of GrantPermissions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:catalogId:GrantPermissions'
, grantPermissions_catalogId
- The identifier for the Data Catalog. By default, the account ID. The
Data Catalog is the persistent metadata store. It contains database
definitions, table definitions, and other control information to manage
your AWS Lake Formation environment.
$sel:permissionsWithGrantOption:GrantPermissions'
, grantPermissions_permissionsWithGrantOption
- Indicates a list of the granted permissions that the principal may pass
to other users. These permissions may only be a subset of the
permissions granted in the Privileges
.
$sel:principal:GrantPermissions'
, grantPermissions_principal
- The principal to be granted the permissions on the resource. Supported
principals are IAM users or IAM roles, and they are defined by their
principal type and their ARN.
Note that if you define a resource with a particular ARN, then later delete, and recreate a resource with that same ARN, the resource maintains the permissions already granted.
$sel:resource:GrantPermissions'
, grantPermissions_resource
- The resource to which permissions are to be granted. Resources in AWS
Lake Formation are the Data Catalog, databases, and tables.
$sel:permissions:GrantPermissions'
, grantPermissions_permissions
- The permissions granted to the principal on the resource. AWS Lake
Formation defines privileges to grant and revoke access to metadata in
the Data Catalog and data organized in underlying data storage such as
Amazon S3. AWS Lake Formation requires that each principal be authorized
to perform a specific task on AWS Lake Formation resources.
Request Lenses
grantPermissions_catalogId :: Lens' GrantPermissions (Maybe Text) Source #
The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
grantPermissions_permissionsWithGrantOption :: Lens' GrantPermissions (Maybe [Permission]) Source #
Indicates a list of the granted permissions that the principal may pass
to other users. These permissions may only be a subset of the
permissions granted in the Privileges
.
grantPermissions_principal :: Lens' GrantPermissions DataLakePrincipal Source #
The principal to be granted the permissions on the resource. Supported principals are IAM users or IAM roles, and they are defined by their principal type and their ARN.
Note that if you define a resource with a particular ARN, then later delete, and recreate a resource with that same ARN, the resource maintains the permissions already granted.
grantPermissions_resource :: Lens' GrantPermissions Resource Source #
The resource to which permissions are to be granted. Resources in AWS Lake Formation are the Data Catalog, databases, and tables.
grantPermissions_permissions :: Lens' GrantPermissions [Permission] Source #
The permissions granted to the principal on the resource. AWS Lake Formation defines privileges to grant and revoke access to metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. AWS Lake Formation requires that each principal be authorized to perform a specific task on AWS Lake Formation resources.
Destructuring the Response
data GrantPermissionsResponse Source #
See: newGrantPermissionsResponse
smart constructor.
GrantPermissionsResponse' | |
|
Instances
newGrantPermissionsResponse Source #
Create a value of GrantPermissionsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GrantPermissionsResponse'
, grantPermissionsResponse_httpStatus
- The response's http status code.
Response Lenses
grantPermissionsResponse_httpStatus :: Lens' GrantPermissionsResponse Int Source #
The response's http status code.