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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:51:05.884Z")
@Stability(Stable)
public class CfnActivity
extends CfnResource
implements IInspectable, 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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnActivity
.static interface
Settings to configure server-side encryption for an activity.static interface
TheTagsEntry
property specifies tags to identify an activity.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnActivity
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnActivity
(software.amazon.jsii.JsiiObjectRef objRef) CfnActivity
(software.constructs.Construct scope, String id, CfnActivityProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Encryption configuration for the activity.void
Encryption configuration for the activity.void
The name of the activity.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
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:
myActivity
For more information about using
Fn::GetAtt
, see Fn::GetAtt . -
getCfnProperties
- Overrides:
getCfnProperties
in 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. -
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.
-