Class CfnAccessGrantMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnAccessGrantMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessGrantMixinProps>
- Enclosing interface:
CfnAccessGrantMixinProps
@Stability(Stable)
public static final class CfnAccessGrantMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessGrantMixinProps>
A builder for
CfnAccessGrantMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessGrantsLocationConfiguration(CfnAccessGrantPropsMixin.AccessGrantsLocationConfigurationProperty accessGrantsLocationConfiguration) Sets the value ofCfnAccessGrantMixinProps.getAccessGrantsLocationConfiguration()accessGrantsLocationConfiguration(IResolvable accessGrantsLocationConfiguration) Sets the value ofCfnAccessGrantMixinProps.getAccessGrantsLocationConfiguration()accessGrantsLocationId(String accessGrantsLocationId) Sets the value ofCfnAccessGrantMixinProps.getAccessGrantsLocationId()applicationArn(String applicationArn) Sets the value ofCfnAccessGrantMixinProps.getApplicationArn()build()Builds the configured instance.Sets the value ofCfnAccessGrantMixinProps.getGrantee()grantee(IResolvable grantee) Sets the value ofCfnAccessGrantMixinProps.getGrantee()permission(String permission) Sets the value ofCfnAccessGrantMixinProps.getPermission()s3PrefixType(String s3PrefixType) Sets the value ofCfnAccessGrantMixinProps.getS3PrefixType()Sets the value ofCfnAccessGrantMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessGrantsLocationConfiguration
@Stability(Stable) public CfnAccessGrantMixinProps.Builder accessGrantsLocationConfiguration(IResolvable accessGrantsLocationConfiguration) Sets the value ofCfnAccessGrantMixinProps.getAccessGrantsLocationConfiguration()- Parameters:
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 theS3SubPrefixfield. The grant scope is the result of appending the subprefix to the location scope of the registered location.- Returns:
this
-
accessGrantsLocationConfiguration
@Stability(Stable) public CfnAccessGrantMixinProps.Builder accessGrantsLocationConfiguration(CfnAccessGrantPropsMixin.AccessGrantsLocationConfigurationProperty accessGrantsLocationConfiguration) Sets the value ofCfnAccessGrantMixinProps.getAccessGrantsLocationConfiguration()- Parameters:
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 theS3SubPrefixfield. The grant scope is the result of appending the subprefix to the location scope of the registered location.- Returns:
this
-
accessGrantsLocationId
@Stability(Stable) public CfnAccessGrantMixinProps.Builder accessGrantsLocationId(String accessGrantsLocationId) Sets the value ofCfnAccessGrantMixinProps.getAccessGrantsLocationId()- Parameters:
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 IDdefaultto the default locations3://and assigns an auto-generated ID to other locations that you register.- Returns:
this
-
applicationArn
Sets the value ofCfnAccessGrantMixinProps.getApplicationArn()- Parameters:
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.- Returns:
this
-
grantee
Sets the value ofCfnAccessGrantMixinProps.getGrantee()- Parameters:
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.- Returns:
this
-
grantee
@Stability(Stable) public CfnAccessGrantMixinProps.Builder grantee(CfnAccessGrantPropsMixin.GranteeProperty grantee) Sets the value ofCfnAccessGrantMixinProps.getGrantee()- Parameters:
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.- Returns:
this
-
permission
Sets the value ofCfnAccessGrantMixinProps.getPermission()- 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.WRITE– Grant write-only access to the S3 data.READWRITE– Grant both read and write access to the S3 data.
- Returns:
this
-
s3PrefixType
Sets the value ofCfnAccessGrantMixinProps.getS3PrefixType()- Parameters:
s3PrefixType- 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.- Returns:
this
-
tags
Sets the value ofCfnAccessGrantMixinProps.getTags()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessGrantMixinProps>- Returns:
- a new instance of
CfnAccessGrantMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-