CfnActivityProps Struct
Properties for defining a CfnActivity.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';
const cfnActivityProps: stepfunctions.CfnActivityProps = {
name: 'name',
// the properties below are optional
encryptionConfiguration: {
type: 'type',
// the properties below are optional
kmsDataKeyReusePeriodSeconds: 123,
kmsKeyId: 'kmsKeyId',
},
tags: [{
key: 'key',
value: 'value',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_stepfunctions as stepfunctions
cfn_activity_props = stepfunctions.CfnActivityProps(
name="name",
# the properties below are optional
encryption_configuration=stepfunctions.CfnActivity.EncryptionConfigurationProperty(
type="type",
# the properties below are optional
kms_data_key_reuse_period_seconds=123,
kms_key_id="kmsKeyId"
),
tags=[stepfunctions.CfnActivity.TagsEntryProperty(
key="key",
value="value"
)]
)
java
// 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.*;
CfnActivityProps cfnActivityProps = CfnActivityProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions;
var cfnActivityProps = new CfnActivityProps {
Name = "name",
// the properties below are optional
EncryptionConfiguration = new EncryptionConfigurationProperty {
Type = "type",
// the properties below are optional
KmsDataKeyReusePeriodSeconds = 123,
KmsKeyId = "kmsKeyId"
},
Tags = new [] { new TagsEntryProperty {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnActivityProps := &CfnActivityProps{
Name: jsii.String("name"),
// the properties below are optional
EncryptionConfiguration: &EncryptionConfigurationProperty{
Type: jsii.String("type"),
// the properties below are optional
KmsDataKeyReusePeriodSeconds: jsii.Number(123),
KmsKeyId: jsii.String("kmsKeyId"),
},
Tags: []TagsEntryProperty{
&TagsEntryProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
encryptionConfigurationoptionalIResolvable | CfnActivity.encryption_configurationoptionaltyping.Union[IResolvable, EncryptionConfigurationProperty]encryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalinterface{} #Encryption configuration for the activity.
notes
Activity configuration is immutable, and resource names must be unique. To set customer managed keys for encryption, you must create a new Activity . If you attempt to change the configuration in your CFN template for an existing activity, you will receive an ActivityAlreadyExists exception.
To update your activity to include customer managed keys, set a new activity name within your CloudFormation template.
The name of the activity.
notes
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 Logs, the name should only contain 0-9, A-Z, a-z, - and _.
tagsoptionalCfnActivity.TagsEntryProperty[]tagsoptionaltyping.List[TagsEntryProperty]tagsoptionalList<TagsEntryProperty>TagsoptionalTagsEntryProperty[]Tagsoptional*[]TagsEntryProperty #The list of tags to add to a resource.
Tags may only contain Unicode letters, digits, white space, or these symbols: `_ . : / = + -