Interface CfnRepository.S3Property

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRepository.S3Property.Jsii$Proxy
Enclosing class:
CfnRepository

@Stability(Stable) public static interface CfnRepository.S3Property extends software.amazon.jsii.JsiiSerializable
Information about the Amazon S3 bucket that contains the code that will be committed to the new repository.

Changes to this property are ignored after initial resource creation.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codecommit.*;
 S3Property s3Property = S3Property.builder()
         .bucket("bucket")
         .key("key")
         // the properties below are optional
         .objectVersion("objectVersion")
         .build();
 
  • Method Details

    • getBucket

      @Stability(Stable) @NotNull String getBucket()
      The name of the Amazon S3 bucket that contains the ZIP file with the content that will be committed to the new repository.

      This can be specified using the name of the bucket in the AWS account . Changes to this property are ignored after initial resource creation.

    • getKey

      @Stability(Stable) @NotNull String getKey()
      The key to use for accessing the Amazon S3 bucket.

      Changes to this property are ignored after initial resource creation. For more information, see Creating object key names and Uploading objects in the Amazon S3 User Guide.

    • getObjectVersion

      @Stability(Stable) @Nullable default String getObjectVersion()
      The object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket.

      Changes to this property are ignored after initial resource creation.

    • builder

      @Stability(Stable) static CfnRepository.S3Property.Builder builder()
      Returns:
      a CfnRepository.S3Property.Builder of CfnRepository.S3Property