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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.imageDescription(String imageDescription) Sets the value ofCfnImageProps.getImageDescription()imageDisplayName(String imageDisplayName) Sets the value ofCfnImageProps.getImageDisplayName()Sets the value ofCfnImageProps.getImageName()imageRoleArn(String imageRoleArn) Sets the value ofCfnImageProps.getImageRoleArn()Sets the value ofCfnImageProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageName
Sets the value ofCfnImageProps.getImageName()- 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
Sets the value ofCfnImageProps.getImageRoleArn()- 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
Sets the value ofCfnImageProps.getImageDescription()- Parameters:
imageDescription- The description of the image. Length Constraints : Minimum length of 1. Maximum length of 512.Pattern :
.*- Returns:
this
-
imageDisplayName
Sets the value ofCfnImageProps.getImageDisplayName()- Parameters:
imageDisplayName- The display name of the image. Length Constraints : Minimum length of 1. Maximum length of 128.Pattern :
^\S(.*\S)?$- Returns:
this
-
tags
Sets the value ofCfnImageProps.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
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImageProps>- Returns:
- a new instance of
CfnImageProps - Throws:
NullPointerException- if any required attribute was not provided
-