Class RepositoryImage.Builder

java.lang.Object
software.amazon.awscdk.services.ecs.RepositoryImage.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<RepositoryImage>
Enclosing class:
RepositoryImage

@Stability(Stable) public static final class RepositoryImage.Builder extends Object implements software.amazon.jsii.Builder<RepositoryImage>
A fluent builder for RepositoryImage.
  • Method Details

    • create

      @Stability(Stable) public static RepositoryImage.Builder create(String imageName)
      Parameters:
      imageName - This parameter is required.
      Returns:
      a new instance of RepositoryImage.Builder.
    • credentials

      @Stability(Stable) public RepositoryImage.Builder credentials(ISecret credentials)
      The secret to expose to the container that contains the credentials for the image repository.

      The supported value is the full ARN of an AWS Secrets Manager secret.

      Parameters:
      credentials - The secret to expose to the container that contains the credentials for the image repository. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public RepositoryImage build()
      Specified by:
      build in interface software.amazon.jsii.Builder<RepositoryImage>
      Returns:
      a newly built instance of RepositoryImage.