Class CfnAction
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.CfnAction
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IActionRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-08-10T14:51:11.160Z")
@Stability(Stable)
public class CfnAction
extends CfnResource
implements IInspectable, IActionRef, ITaggableV2
Resource type definition for AWS::SageMaker::Action.
An action is a lineage tracking entity that represents an action or activity, such as a model deployment or an HPO job.
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.*;
CfnAction cfnAction = CfnAction.Builder.create(this, "MyCfnAction")
.actionName("actionName")
.actionType("actionType")
.source(ActionSourceProperty.builder()
.sourceUri("sourceUri")
// the properties below are optional
.sourceId("sourceId")
.sourceType("sourceType")
.build())
// the properties below are optional
.description("description")
.metadataProperties(MetadataPropertiesProperty.builder()
.commitId("commitId")
.generatedBy("generatedBy")
.projectId("projectId")
.repository("repository")
.build())
.properties(Map.of(
"propertiesKey", "properties"))
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static final classA fluent builder forCfnAction.static interfaceExample: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.IActionRef
IActionRef.Jsii$Default, IActionRef.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.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAction(software.amazon.jsii.JsiiObjectRef objRef) CfnAction(software.constructs.Construct scope, String id, CfnActionProps props) Create a newAWS::SageMaker::Action. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForAction(IActionRef resource) The name of the action.A reference to a Action resource.The action type.The Amazon Resource Name (ARN) of the action.When the action was created.When the action was last modified.Tag Manager which manages the tags for this resource.The description of the action.Returns union: eitherIResolvableorCfnAction.MetadataPropertiesPropertyA list of properties to add to the action.Returns union: eitherIResolvableorCfnAction.ActionSourcePropertyThe status of the action.getTags()A list of tags to apply to the action.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAction.renderProperties(Map<String, Object> props) voidsetActionName(String value) The name of the action.voidsetActionType(String value) The action type.voidsetDescription(String value) The description of the action.voidsetMetadataProperties(IResolvable value) voidvoidsetProperties(Map<String, String> value) A list of properties to add to the action.voidsetProperties(IResolvable value) A list of properties to add to the action.voidsetSource(IResolvable value) voidvoidThe status of the action.voidA list of tags to apply to the action.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnAction
protected CfnAction(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAction
protected CfnAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAction
@Stability(Stable) public CfnAction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnActionProps props) Create a newAWS::SageMaker::Action.- 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
-
arnForAction
- Parameters:
resource- This parameter is required.
-
isCfnAction
Checks whether the given object is a CfnAction.- 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.
-
getActionRef
A reference to a Action resource.- Specified by:
getActionRefin interfaceIActionRef
-
getAttrArn
The Amazon Resource Name (ARN) of the action. -
getAttrCreationTime
When the action was created. -
getAttrLastModifiedTime
When the action was last modified. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getActionName
The name of the action. -
setActionName
The name of the action. -
getActionType
The action type. -
setActionType
The action type. -
getSource
Returns union: eitherIResolvableorCfnAction.ActionSourceProperty -
setSource
-
setSource
-
getDescription
The description of the action. -
setDescription
The description of the action. -
getMetadataProperties
Returns union: eitherIResolvableorCfnAction.MetadataPropertiesProperty -
setMetadataProperties
-
setMetadataProperties
@Stability(Stable) public void setMetadataProperties(@Nullable CfnAction.MetadataPropertiesProperty value) -
getProperties
A list of properties to add to the action.Returns union: either
IResolvableor Mapinvalid input: '<'String,String> -
setProperties
A list of properties to add to the action. -
setProperties
A list of properties to add to the action. -
getStatus
The status of the action. -
setStatus
The status of the action. -
getTags
A list of tags to apply to the action. -
setTags
A list of tags to apply to the action.
-