interface CfnAccessGrantProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3.CfnAccessGrantProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnAccessGrantProps |
![]() | software.amazon.awscdk.services.s3.CfnAccessGrantProps |
![]() | aws_cdk.aws_s3.CfnAccessGrantProps |
![]() | aws-cdk-lib » aws_s3 » CfnAccessGrantProps |
Properties for defining a CfnAccessGrant
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accessgrant.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const cfnAccessGrantProps: s3.CfnAccessGrantProps = {
accessGrantsLocationId: 'accessGrantsLocationId',
grantee: {
granteeIdentifier: 'granteeIdentifier',
granteeType: 'granteeType',
},
permission: 'permission',
// the properties below are optional
accessGrantsLocationConfiguration: {
s3SubPrefix: 's3SubPrefix',
},
applicationArn: 'applicationArn',
s3PrefixType: 's3PrefixType',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
access | string | The ID of the registered location to which you are granting access. |
grantee | IResolvable | Grantee | The user, group, or role to which you are granting access. |
permission | string | The type of access that you are granting to your S3 data, which can be set to one of the following values: - READ – Grant read-only access to the S3 data. |
access | IResolvable | Access | The configuration options of the grant location. |
application | string | The Amazon Resource Name (ARN) of an AWS IAM Identity Center application associated with your Identity Center instance. |
s3 | string | The type of S3SubPrefix . |
tags? | Cfn [] | The AWS resource tags that you are adding to the access grant. |
accessGrantsLocationId
Type:
string
The ID of the registered location to which you are granting access.
S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID default
to the default location s3://
and assigns an auto-generated ID to other locations that you register.
grantee
Type:
IResolvable
|
Grantee
The user, group, or role to which you are granting access.
You can grant access to an IAM user or role. If you have added your corporate directory to AWS IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.
permission
Type:
string
The type of access that you are granting to your S3 data, which can be set to one of the following values: - READ
– Grant read-only access to the S3 data.
WRITE
– Grant write-only access to the S3 data.READWRITE
– Grant both read and write access to the S3 data.
accessGrantsLocationConfiguration?
Type:
IResolvable
|
Access
(optional)
The configuration options of the grant location.
The grant location is the S3 path to the data to which you are granting access. It contains the S3SubPrefix
field. The grant scope is the result of appending the subprefix to the location scope of the registered location.
applicationArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of an AWS IAM Identity Center application associated with your Identity Center instance.
If the grant includes an application ARN, the grantee can only access the S3 data through this application.
s3PrefixType?
Type:
string
(optional)
The type of S3SubPrefix
.
The only possible value is Object
. Pass this value if the access grant scope is an object. Do not pass this value if the access grant scope is a bucket or a bucket and a prefix.
tags?
Type:
Cfn
[]
(optional)
The AWS resource tags that you are adding to the access grant.
Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.