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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • iamRoleArn

      @Stability(Stable) public CfnAccessGrantsLocationProps.Builder iamRoleArn(String iamRoleArn)
      Parameters:
      iamRoleArn - The Amazon Resource Name (ARN) of the IAM role for the registered location. This parameter is required. S3 Access Grants assumes this role to manage access to the registered location.
      Returns:
      this
    • locationScope

      @Stability(Stable) public CfnAccessGrantsLocationProps.Builder locationScope(String locationScope)
      Parameters:
      locationScope - The S3 URI path to the location that you are registering. This parameter is required. The location scope can be the default S3 location s3:// , 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 the engineering/ prefix or object key names that start with the marketing/campaigns/ prefix.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnAccessGrantsLocationProps.Builder tags(List<? extends CfnTag> tags)
      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

      @Stability(Stable) public CfnAccessGrantsLocationProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAccessGrantsLocationProps>
      Returns:
      a new instance of CfnAccessGrantsLocationProps
      Throws:
      NullPointerException - if any required attribute was not provided