Class CfnAccessGrantsLocationProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnAccessGrantsLocationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessGrantsLocationProps>
- Enclosing interface:
- CfnAccessGrantsLocationProps
@Stability(Stable)
public static final class CfnAccessGrantsLocationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessGrantsLocationProps>
A builder for
CfnAccessGrantsLocationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.iamRoleArn
(String iamRoleArn) Sets the value ofCfnAccessGrantsLocationProps.getIamRoleArn()
locationScope
(String locationScope) Sets the value ofCfnAccessGrantsLocationProps.getLocationScope()
Sets the value ofCfnAccessGrantsLocationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iamRoleArn
Sets the value ofCfnAccessGrantsLocationProps.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
Sets the value ofCfnAccessGrantsLocationProps.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
Sets the value ofCfnAccessGrantsLocationProps.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnAccessGrantsLocationProps>
- Returns:
- a new instance of
CfnAccessGrantsLocationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-