CfnAccessGrantMixinProps
- class aws_cdk.mixins_preview.aws_s3.mixins.CfnAccessGrantMixinProps(*, access_grants_location_configuration=None, access_grants_location_id=None, application_arn=None, grantee=None, permission=None, s3_prefix_type=None, tags=None)
Bases:
objectProperties for CfnAccessGrantPropsMixin.
- Parameters:
access_grants_location_configuration (
Union[IResolvable,AccessGrantsLocationConfigurationProperty,Dict[str,Any],None]) – 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 theS3SubPrefixfield. The grant scope is the result of appending the subprefix to the location scope of the registered location.access_grants_location_id (
Optional[str]) – 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 IDdefaultto the default locations3://and assigns an auto-generated ID to other locations that you register.application_arn (
Optional[str]) – 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.grantee (
Union[IResolvable,GranteeProperty,Dict[str,Any],None]) – 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 (
Optional[str]) – 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.s3_prefix_type (
Optional[str]) – The type ofS3SubPrefix. The only possible value isObject. 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 (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – 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.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accessgrant.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins cfn_access_grant_mixin_props = s3_mixins.CfnAccessGrantMixinProps( access_grants_location_configuration=s3_mixins.CfnAccessGrantPropsMixin.AccessGrantsLocationConfigurationProperty( s3_sub_prefix="s3SubPrefix" ), access_grants_location_id="accessGrantsLocationId", application_arn="applicationArn", grantee=s3_mixins.CfnAccessGrantPropsMixin.GranteeProperty( grantee_identifier="granteeIdentifier", grantee_type="granteeType" ), permission="permission", s3_prefix_type="s3PrefixType", tags=[CfnTag( key="key", value="value" )] )
Attributes
- access_grants_location_configuration
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
S3SubPrefixfield. The grant scope is the result of appending the subprefix to the location scope of the registered location.
- access_grants_location_id
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
defaultto the default locations3://and assigns an auto-generated ID to other locations that you register.
- application_arn
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.
- 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
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.
- See:
- Type:
The type of access that you are granting to your S3 data, which can be set to one of the following values
- s3_prefix_type
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
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.