Class CfnImageProps.Builder

java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnImageProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageProps>
Enclosing interface:
CfnImageProps

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

    • Builder

      public Builder()
  • Method Details

    • imageName

      @Stability(Stable) public CfnImageProps.Builder imageName(String imageName)
      Parameters:
      imageName - The name of the Image. Must be unique by region in your account. This parameter is required. Length Constraints : Minimum length of 1. Maximum length of 63.

      Pattern : ^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$

      Returns:
      this
    • imageRoleArn

      @Stability(Stable) public CfnImageProps.Builder imageRoleArn(String imageRoleArn)
      Parameters:
      imageRoleArn - The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf. This parameter is required. Length Constraints : Minimum length of 20. Maximum length of 2048.

      Pattern : ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$

      Returns:
      this
    • imageDescription

      @Stability(Stable) public CfnImageProps.Builder imageDescription(String imageDescription)
      Parameters:
      imageDescription - The description of the image.
      Returns:
      this
    • imageDisplayName

      @Stability(Stable) public CfnImageProps.Builder imageDisplayName(String imageDisplayName)
      Parameters:
      imageDisplayName - The display name of the image. Length Constraints : Minimum length of 1. Maximum length of 128.

      Pattern : ^\S(.*\S)?$

      Returns:
      this
    • tags

      @Stability(Stable) public CfnImageProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnImageProps.getTags()
      Parameters:
      tags - A list of key-value pairs to apply to this resource. Array Members : Minimum number of 0 items. Maximum number of 50 items.
      Returns:
      this
    • build

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