Class CfnAccessGrantPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessGrantPropsMixin>
- Enclosing class:
CfnAccessGrantPropsMixin
CfnAccessGrantPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionaccessGrantsLocationConfiguration(CfnAccessGrantPropsMixin.AccessGrantsLocationConfigurationProperty accessGrantsLocationConfiguration) The configuration options of the grant location.accessGrantsLocationConfiguration(IResolvable accessGrantsLocationConfiguration) The configuration options of the grant location.accessGrantsLocationId(String accessGrantsLocationId) The ID of the registered location to which you are granting access.applicationArn(String applicationArn) The Amazon Resource Name (ARN) of an AWS IAM Identity Center application associated with your Identity Center instance.build()create()create(CfnPropertyMixinOptions options) The user, group, or role to which you are granting access.grantee(IResolvable grantee) The user, group, or role to which you are granting access.permission(String permission) 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.s3PrefixType(String s3PrefixType) The type ofS3SubPrefix.The AWS resource tags that you are adding to the access grant.
-
Method Details
-
create
@Stability(Stable) public static CfnAccessGrantPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnAccessGrantPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnAccessGrantPropsMixin.Builder.
-
accessGrantsLocationConfiguration
@Stability(Stable) public CfnAccessGrantPropsMixin.Builder accessGrantsLocationConfiguration(IResolvable accessGrantsLocationConfiguration) 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.- Parameters:
accessGrantsLocationConfiguration- The configuration options of the grant location. This parameter is required.- Returns:
this- See Also:
-
accessGrantsLocationConfiguration
@Stability(Stable) public CfnAccessGrantPropsMixin.Builder accessGrantsLocationConfiguration(CfnAccessGrantPropsMixin.AccessGrantsLocationConfigurationProperty accessGrantsLocationConfiguration) 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.- Parameters:
accessGrantsLocationConfiguration- The configuration options of the grant location. This parameter is required.- Returns:
this- See Also:
-
accessGrantsLocationId
@Stability(Stable) public CfnAccessGrantPropsMixin.Builder accessGrantsLocationId(String accessGrantsLocationId) 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.- Parameters:
accessGrantsLocationId- The ID of the registered location to which you are granting access. This parameter is required.- Returns:
this- See Also:
-
applicationArn
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.
- Parameters:
applicationArn- The Amazon Resource Name (ARN) of an AWS IAM Identity Center application associated with your Identity Center instance. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
grantee- The user, group, or role to which you are granting access. This parameter is required.- Returns:
this- See Also:
-
grantee
@Stability(Stable) public CfnAccessGrantPropsMixin.Builder grantee(CfnAccessGrantPropsMixin.GranteeProperty 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.
- Parameters:
grantee- The user, group, or role to which you are granting access. This parameter is required.- Returns:
this- See Also:
-
permission
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.
- Parameters:
permission- 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. This parameter is required.- Returns:
this- See Also:
-
s3PrefixType
The type ofS3SubPrefix.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.- Parameters:
s3PrefixType- The type ofS3SubPrefix. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
tags- The AWS resource tags that you are adding to the access grant. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessGrantPropsMixin>- Returns:
- a newly built instance of
CfnAccessGrantPropsMixin.
-