Class CfnActivity.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnActivity>
- Enclosing class:
CfnActivity
CfnActivity
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnActivity.Builder
encryptionConfiguration
(IResolvable encryptionConfiguration) Encryption configuration for the activity.encryptionConfiguration
(CfnActivity.EncryptionConfigurationProperty encryptionConfiguration) Encryption configuration for the activity.The name of the activity.tags
(List<? extends CfnActivity.TagsEntryProperty> tags) The list of tags to add to a resource.
-
Method Details
-
create
@Stability(Stable) public static CfnActivity.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnActivity.Builder
.
-
name
The name of the activity.A name must not contain:
- white space
- brackets
< > { } [ ]
- wildcard characters
? *
- special characters
" # % \ ^ | ~
$ & , ; : /` - control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
- Parameters:
name
- The name of the activity. This parameter is required.- Returns:
this
- See Also:
-
encryptionConfiguration
@Stability(Stable) public CfnActivity.Builder encryptionConfiguration(IResolvable encryptionConfiguration) Encryption configuration for the activity.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 AWS CloudFormation template.
- Parameters:
encryptionConfiguration
- Encryption configuration for the activity. This parameter is required.- Returns:
this
- See Also:
-
encryptionConfiguration
@Stability(Stable) public CfnActivity.Builder encryptionConfiguration(CfnActivity.EncryptionConfigurationProperty encryptionConfiguration) Encryption configuration for the activity.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 AWS CloudFormation template.
- Parameters:
encryptionConfiguration
- Encryption configuration for the activity. This parameter is required.- Returns:
this
- See Also:
-
tags
@Stability(Stable) public CfnActivity.Builder tags(List<? extends CfnActivity.TagsEntryProperty> tags) The list of tags to add to a resource.Tags may only contain Unicode letters, digits, white space, or these symbols: `_ . : / = + -
- Parameters:
tags
- The list of tags to add to a resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnActivity>
- Returns:
- a newly built instance of
CfnActivity
.
-