Class CfnAccessGrantsLocationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnAccessGrantsLocationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessGrantsLocationMixinProps>
- Enclosing interface:
CfnAccessGrantsLocationMixinProps
@Stability(Stable)
public static final class CfnAccessGrantsLocationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessGrantsLocationMixinProps>
A builder for
CfnAccessGrantsLocationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.iamRoleArn(String iamRoleArn) Sets the value ofCfnAccessGrantsLocationMixinProps.getIamRoleArn()locationScope(String locationScope) Sets the value ofCfnAccessGrantsLocationMixinProps.getLocationScope()Sets the value ofCfnAccessGrantsLocationMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iamRoleArn
Sets the value ofCfnAccessGrantsLocationMixinProps.getIamRoleArn()- Parameters:
iamRoleArn- The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.- Returns:
this
-
locationScope
@Stability(Stable) public CfnAccessGrantsLocationMixinProps.Builder locationScope(String locationScope) Sets the value ofCfnAccessGrantsLocationMixinProps.getLocationScope()- Parameters:
locationScope- The S3 URI path to the location that you are registering. The location scope can be the default S3 locations3://, the S3 path to a bucket, or the S3 path to a bucket and prefix. A prefix in S3 is a string of characters at the beginning of an object key name used to organize the objects that you store in your S3 buckets. For example, object key names that start with theengineering/prefix or object key names that start with themarketing/campaigns/prefix.- Returns:
this
-
tags
@Stability(Stable) public CfnAccessGrantsLocationMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnAccessGrantsLocationMixinProps.getTags()- Parameters:
tags- The AWS resource tags that you are adding to the S3 Access Grants location. 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<CfnAccessGrantsLocationMixinProps>- Returns:
- a new instance of
CfnAccessGrantsLocationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-