AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates an activity. An activity is a task that you write in any programming language
and host on any machine that has access to Step Functions. Activities must poll Step
Functions using the
This operation is eventually consistent. The results are best effort and may not reflect
very recent updates and changes.
GetActivityTask
API action and respond using SendTask*
API actions. This function lets Step Functions know the existence of your activity
and returns an identifier for use in a state machine and when polling from the activity.
CreateActivity
is an idempotent API. Subsequent requests won’t create a duplicate
resource if it was already created. CreateActivity
's idempotency check is based
on the activity name
. If a following request has different tags
values,
Step Functions will ignore these differences and treat it as an idempotent request
of the previous. In this case, tags
will not be updated, even if they are different.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateActivityAsync.
Namespace: Amazon.StepFunctions
Assembly: AWSSDK.StepFunctions.dll
Version: 3.x.y.z
public abstract CreateActivityResponse CreateActivity( CreateActivityRequest request )
Container for the necessary parameters to execute the CreateActivity service method.
Exception | Condition |
---|---|
ActivityAlreadyExistsException | Activity already exists. EncryptionConfiguration may not be updated. |
ActivityLimitExceededException | The maximum number of activities has been reached. Existing activities must be deleted before a new activity can be created. |
InvalidEncryptionConfigurationException | Received when encryptionConfiguration is specified but various conditions exist which make the configuration invalid. For example, if type is set to CUSTOMER_MANAGED_KMS_KEY, but kmsKeyId is null, or kmsDataKeyReusePeriodSeconds is not between 60 and 900, or the KMS key is not symmetric or inactive. |
InvalidNameException | The provided name is not valid. |
KmsAccessDeniedException | Either your KMS key policy or API caller does not have the required permissions. |
KmsThrottlingException | Received when KMS returns ThrottlingException for a KMS call that Step Functions makes on behalf of the caller. |
TooManyTagsException | You've exceeded the number of tags allowed for a resource. See the Limits Topic in the Step Functions Developer Guide. |
.NET Framework:
Supported in: 4.5 and newer, 3.5