CfnActivityPropsMixin
- class aws_cdk.mixins_preview.aws_stepfunctions.mixins.CfnActivityPropsMixin(props, *, strategy=None)
Bases:
MixinAn 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
GetActivityTaskAPI action and respond usingSendTask*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 .
- See:
- CloudformationResource:
AWS::StepFunctions::Activity
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins cfn_activity_props_mixin = stepfunctions_mixins.CfnActivityPropsMixin(stepfunctions_mixins.CfnActivityMixinProps( encryption_configuration=stepfunctions_mixins.CfnActivityPropsMixin.EncryptionConfigurationProperty( kms_data_key_reuse_period_seconds=123, kms_key_id="kmsKeyId", type="type" ), name="name", tags=[stepfunctions_mixins.CfnActivityPropsMixin.TagsEntryProperty( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::StepFunctions::Activity.- Parameters:
props (
Union[CfnActivityMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['encryptionConfiguration', 'name', 'tags']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
EncryptionConfigurationProperty
- class CfnActivityPropsMixin.EncryptionConfigurationProperty(*, kms_data_key_reuse_period_seconds=None, kms_key_id=None, type=None)
Bases:
objectSettings to configure server-side encryption for an activity.
By default, Step Functions provides transparent server-side encryption. With this configuration, you can specify a customer managed AWS key for encryption.
- Parameters:
kms_data_key_reuse_period_seconds (
Union[int,float,None]) – Maximum duration that Step Functions will reuse data keys. When the period expires, Step Functions will callGenerateDataKey. Only applies to customer managed keys.kms_key_id (
Optional[str]) – An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS key to encrypt data. To specify a AWS key in a different AWS account, you must use the key ARN or alias ARN.type (
Optional[str]) – Encryption option for an activity.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins encryption_configuration_property = stepfunctions_mixins.CfnActivityPropsMixin.EncryptionConfigurationProperty( kms_data_key_reuse_period_seconds=123, kms_key_id="kmsKeyId", type="type" )
Attributes
- kms_data_key_reuse_period_seconds
Maximum duration that Step Functions will reuse data keys.
When the period expires, Step Functions will call
GenerateDataKey. Only applies to customer managed keys.
- kms_key_id
An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS key to encrypt data.
To specify a AWS key in a different AWS account, you must use the key ARN or alias ARN.