@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.900Z") @Stability(value=Stable) public class CfnImage extends CfnResource implements IInspectable
Creates a custom SageMaker image. A SageMaker image is a set of image versions. Each image version represents a container image stored in Amazon Elastic Container Registry (ECR). For more information, see Bring your own SageMaker image .
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.sagemaker.*;
CfnImage cfnImage = CfnImage.Builder.create(this, "MyCfnImage")
.imageName("imageName")
.imageRoleArn("imageRoleArn")
// the properties below are optional
.imageDescription("imageDescription")
.imageDisplayName("imageDisplayName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnImage.Builder
A fluent builder for
CfnImage. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnImage(software.constructs.Construct scope,
String id,
CfnImageProps props)
Create a new `AWS::SageMaker::Image`.
|
protected |
CfnImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnImage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrImageArn()
The Amazon Resource Name (ARN) of the image.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getImageDescription()
The description of the image.
|
String |
getImageDisplayName()
The display name of the image.
|
String |
getImageName()
The name of the Image.
|
String |
getImageRoleArn()
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
|
TagManager |
getTags()
A list of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setImageDescription(String value)
The description of the image.
|
void |
setImageDisplayName(String value)
The display name of the image.
|
void |
setImageName(String value)
The name of the Image.
|
void |
setImageRoleArn(String value)
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnImage(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnImage(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnImageProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrImageArn()
Type : String
Length Constraints : Maximum length of 256.
Pattern : ^arn:aws(-[\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
Array Members : Minimum number of 0 items. Maximum number of 50 items.
@Stability(value=Stable) @NotNull public String getImageName()
Length Constraints : Minimum length of 1. Maximum length of 63.
Pattern : ^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$
@Stability(value=Stable)
public void setImageName(@NotNull
String value)
Length Constraints : Minimum length of 1. Maximum length of 63.
Pattern : ^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$
@Stability(value=Stable) @NotNull public String getImageRoleArn()
Length Constraints : Minimum length of 20. Maximum length of 2048.
Pattern : ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$
@Stability(value=Stable)
public void setImageRoleArn(@NotNull
String value)
Length Constraints : Minimum length of 20. Maximum length of 2048.
Pattern : ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$
@Stability(value=Stable) @Nullable public String getImageDescription()
Length Constraints : Minimum length of 1. Maximum length of 512.
Pattern : .*
@Stability(value=Stable)
public void setImageDescription(@Nullable
String value)
Length Constraints : Minimum length of 1. Maximum length of 512.
Pattern : .*
@Stability(value=Stable) @Nullable public String getImageDisplayName()
Length Constraints : Minimum length of 1. Maximum length of 128.
Pattern : ^\S(.*\S)?$
@Stability(value=Stable)
public void setImageDisplayName(@Nullable
String value)
Length Constraints : Minimum length of 1. Maximum length of 128.
Pattern : ^\S(.*\S)?$
Copyright © 2022. All rights reserved.