Class CfnApp
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnApp
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IAppRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:17.282Z")
@Stability(Stable)
public class CfnApp
extends CfnResource
implements IInspectable, IAppRef, ITaggable
Creates a running app for the specified UserProfile.
This operation is automatically invoked by Amazon SageMaker AI upon access to the associated Domain, and when new kernel configurations are selected by the user. A user may have multiple Apps active simultaneously.
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.*;
CfnApp cfnApp = CfnApp.Builder.create(this, "MyCfnApp")
.appName("appName")
.appType("appType")
.domainId("domainId")
.userProfileName("userProfileName")
// the properties below are optional
.recoveryMode(false)
.resourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnApp.static interfaceSpecifies the ARN's of a SageMaker AI image and SageMaker AI image version, and the instance type that the version runs on.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IAppRef
IAppRef.Jsii$Default, IAppRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnApp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApp(software.amazon.jsii.JsiiObjectRef objRef) CfnApp(software.constructs.Construct scope, String id, CfnAppProps props) Create a newAWS::SageMaker::App. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe name of the app.A reference to a App resource.The type of app.The Amazon Resource Name (ARN) of the app, such asarn:aws:sagemaker:us-west-2:account-id:app/my-app-name.The lifecycle configuration that runs before the default lifecycle configuration.The domain ID.Indicates whether the application is launched in recovery mode.Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.The user profile name.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnApp.renderProperties(Map<String, Object> props) voidsetAppName(String value) The name of the app.voidsetAppType(String value) The type of app.voidsetDomainId(String value) The domain ID.voidsetRecoveryMode(Boolean value) Indicates whether the application is launched in recovery mode.voidsetRecoveryMode(IResolvable value) Indicates whether the application is launched in recovery mode.voidsetResourceSpec(IResolvable value) Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.voidSpecifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.voidsetUserProfileName(String value) The user profile name.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnApp
protected CfnApp(software.amazon.jsii.JsiiObjectRef objRef) -
CfnApp
protected CfnApp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnApp
@Stability(Stable) public CfnApp(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAppProps props) Create a newAWS::SageMaker::App.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForApp
- Parameters:
resource- This parameter is required.
-
isCfnApp
Checks whether the given object is a CfnApp.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAppRef
A reference to a App resource. -
getAttrAppArn
The Amazon Resource Name (ARN) of the app, such asarn:aws:sagemaker:us-west-2:account-id:app/my-app-name. -
getAttrBuiltInLifecycleConfigArn
The lifecycle configuration that runs before the default lifecycle configuration.It can override changes made in the default lifecycle configuration.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getAppName
The name of the app. -
setAppName
The name of the app. -
getAppType
The type of app. -
setAppType
The type of app. -
getDomainId
The domain ID. -
setDomainId
The domain ID. -
getUserProfileName
The user profile name. -
setUserProfileName
The user profile name. -
getRecoveryMode
Indicates whether the application is launched in recovery mode.Returns union: either
BooleanorIResolvable -
setRecoveryMode
Indicates whether the application is launched in recovery mode. -
setRecoveryMode
Indicates whether the application is launched in recovery mode. -
getResourceSpec
Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.Returns union: either
IResolvableorCfnApp.ResourceSpecProperty -
setResourceSpec
Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on. -
setResourceSpec
Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-