@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.853Z") @Stability(value=Stable) public class CfnApp extends CfnResource implements IInspectable
Creates a running app for the specified UserProfile. Supported apps are JupyterServer and KernelGateway . This operation is automatically invoked by Amazon SageMaker Studio 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
.resourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnApp.Builder
A fluent builder for
CfnApp. |
static interface |
CfnApp.ResourceSpecProperty
Specifies the ARN's of a SageMaker image and SageMaker image version, and the instance type that the version runs on.
|
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 |
|---|---|
|
CfnApp(software.constructs.Construct scope,
String id,
CfnAppProps props)
Create a new `AWS::SageMaker::App`.
|
protected |
CfnApp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnApp(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppName()
The name of the app.
|
String |
getAppType()
The type of app.
|
String |
getAttrAppArn()
The Amazon Resource Name (ARN) of the app, such as `arn:aws:sagemaker:us-west-2:account-id:app/my-app-name` .
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDomainId()
The domain ID.
|
Object |
getResourceSpec()
Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
String |
getUserProfileName()
The user profile name.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAppName(String value)
The name of the app.
|
void |
setAppType(String value)
The type of app.
|
void |
setDomainId(String value)
The domain ID.
|
void |
setResourceSpec(CfnApp.ResourceSpecProperty value)
Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.
|
void |
setResourceSpec(IResolvable value)
Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.
|
void |
setUserProfileName(String value)
The user profile name.
|
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 CfnApp(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnApp(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAppProps 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 getAttrAppArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getAppName()
@Stability(value=Stable)
public void setAppName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getAppType()
Allowed Values : JupyterServer | KernelGateway | RSessionGateway | RStudioServerPro | TensorBoard | Canvas
@Stability(value=Stable)
public void setAppType(@NotNull
String value)
Allowed Values : JupyterServer | KernelGateway | RSessionGateway | RStudioServerPro | TensorBoard | Canvas
@Stability(value=Stable) @NotNull public String getDomainId()
@Stability(value=Stable)
public void setDomainId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getUserProfileName()
@Stability(value=Stable)
public void setUserProfileName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getResourceSpec()
@Stability(value=Stable)
public void setResourceSpec(@Nullable
CfnApp.ResourceSpecProperty value)
@Stability(value=Stable)
public void setResourceSpec(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.