Class CfnActivity
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.stepfunctions.CfnActivity
- All Implemented Interfaces:
IInspectable,ITaggable,IActivityRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:47.775Z")
@Stability(Stable)
public class CfnActivity
extends CfnResource
implements IInspectable, IActivityRef, ITaggable
An activity is a task that you write in any programming language and host on any machine that has access to AWS Step Functions .
Activities must poll Step Functions using the GetActivityTask API action and respond using SendTask* API actions. This function makes Step Functions aware of your activity and returns an identifier for use in a state machine and when polling from the activity.
For information about creating an activity, see Creating an Activity State Machine in the AWS Step Functions Developer Guide and CreateActivity in the AWS Step Functions API Reference .
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.stepfunctions.*;
CfnActivity cfnActivity = CfnActivity.Builder.create(this, "MyCfnActivity")
.name("name")
// the properties below are optional
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.type("type")
// the properties below are optional
.kmsDataKeyReusePeriodSeconds(123)
.kmsKeyId("kmsKeyId")
.build())
.tags(List.of(TagsEntryProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnActivity.static interfaceSettings to configure server-side encryption for an activity.static interfaceTheTagsEntryproperty specifies tags to identify an activity.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.stepfunctions.IActivityRef
IActivityRef.Jsii$Default, IActivityRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnActivity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnActivity(software.amazon.jsii.JsiiObjectRef objRef) CfnActivity(software.constructs.Construct scope, String id, CfnActivityProps props) -
Method Summary
Modifier and TypeMethodDescriptionA reference to a Activity resource.Returns the ARN of the resource.Returns the name of the activity.Encryption configuration for the activity.getName()The name of the activity.getTags()Tag Manager which manages the tags for this resource.The list of tags to add to a resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidEncryption configuration for the activity.voidEncryption configuration for the activity.voidThe name of the activity.voidThe list of tags to add to a resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnActivity
protected CfnActivity(software.amazon.jsii.JsiiObjectRef objRef) -
CfnActivity
protected CfnActivity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnActivity
@Stability(Stable) public CfnActivity(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnActivityProps props) - 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
-
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.
-
getActivityRef
A reference to a Activity resource.- Specified by:
getActivityRefin interfaceIActivityRef
-
getAttrArn
Returns the ARN of the resource. -
getAttrName
Returns the name of the activity. For example:.{ "Fn::GetAtt": ["MyActivity", "Name"] }Returns a value similar to the following:
myActivityFor more information about using
Fn::GetAtt, see Fn::GetAtt . -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getName
The name of the activity. -
setName
The name of the activity. -
getEncryptionConfiguration
Encryption configuration for the activity.Returns union: either
IResolvableorCfnActivity.EncryptionConfigurationProperty -
setEncryptionConfiguration
Encryption configuration for the activity. -
setEncryptionConfiguration
@Stability(Stable) public void setEncryptionConfiguration(@Nullable CfnActivity.EncryptionConfigurationProperty value) Encryption configuration for the activity. -
getTagsRaw
The list of tags to add to a resource. -
setTagsRaw
The list of tags to add to a resource.
-