Skip to content

StepFunctionsClient.create_activity

rboto-sfn==0.4.0 · Service index · Types

Model summary (excerpt): 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 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...

Install and imports

python -m pip install "rboto[sfn]==0.4.0"
from rboto import StepFunctionsClient
from collections.abc import Sequence
from rboto_sfn.types import (
    CreateActivityOutput,
    EncryptionConfiguration,
    Tag,
)

Signature

async def create_activity(
    *,
    name: str,
    tags: Sequence[Tag] | None = None,
    encryption_configuration: EncryptionConfiguration | None = None,
) -> CreateActivityOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes The name of the activity to create. This name must be unique for your Amazon Web Services account and region. A name must not contain: white space brackets < > { } [ ] wildcard characters ? * special characters " # % \ ^ | ~ ` $ & , ; : / control characters ( U+0000-001F , U+007F-009F , U+FFFE-FFFF ) surrogates ( U+D800-DFFF ) invalid characters ( U+10FFFF ) To enable logging with CloudWatch...
tags No The list of tags to add to a resource. An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide , and Controlling Access Using IAM Tags . Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @ .
encryption_configuration No Settings to configure server-side encryption.

Output

CreateActivityOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
activity_arn str Always present —
creation_date str Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateActivityOutput, EncryptionConfiguration, Tag

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_sfn.exceptions:

ActivityAlreadyExistsError, ActivityLimitExceededError, InvalidEncryptionConfigurationError, InvalidNameError, KmsAccessDeniedError, KmsThrottlingError, TooManyTagsError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model