Class CfnTypeActivationProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnTypeActivationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTypeActivationProps>
- Enclosing interface:
CfnTypeActivationProps
@Stability(Stable)
public static final class CfnTypeActivationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTypeActivationProps>
A builder for
CfnTypeActivationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoUpdate
(Boolean autoUpdate) Sets the value ofCfnTypeActivationProps.getAutoUpdate()
autoUpdate
(IResolvable autoUpdate) Sets the value ofCfnTypeActivationProps.getAutoUpdate()
build()
Builds the configured instance.executionRoleArn
(String executionRoleArn) Sets the value ofCfnTypeActivationProps.getExecutionRoleArn()
loggingConfig
(IResolvable loggingConfig) Sets the value ofCfnTypeActivationProps.getLoggingConfig()
loggingConfig
(CfnTypeActivation.LoggingConfigProperty loggingConfig) Sets the value ofCfnTypeActivationProps.getLoggingConfig()
majorVersion
(String majorVersion) Sets the value ofCfnTypeActivationProps.getMajorVersion()
publicTypeArn
(String publicTypeArn) Sets the value ofCfnTypeActivationProps.getPublicTypeArn()
publisherId
(String publisherId) Sets the value ofCfnTypeActivationProps.getPublisherId()
Sets the value ofCfnTypeActivationProps.getType()
Sets the value ofCfnTypeActivationProps.getTypeName()
typeNameAlias
(String typeNameAlias) Sets the value ofCfnTypeActivationProps.getTypeNameAlias()
versionBump
(String versionBump) Sets the value ofCfnTypeActivationProps.getVersionBump()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoUpdate
Sets the value ofCfnTypeActivationProps.getAutoUpdate()
- Parameters:
autoUpdate
- Whether to automatically update the extension in this account and Region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated.The default is
true
.- Returns:
this
-
autoUpdate
Sets the value ofCfnTypeActivationProps.getAutoUpdate()
- Parameters:
autoUpdate
- Whether to automatically update the extension in this account and Region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated.The default is
true
.- Returns:
this
-
executionRoleArn
Sets the value ofCfnTypeActivationProps.getExecutionRoleArn()
- Parameters:
executionRoleArn
- The name of the IAM execution role to use to activate the extension.- Returns:
this
-
loggingConfig
Sets the value ofCfnTypeActivationProps.getLoggingConfig()
- Parameters:
loggingConfig
- Specifies logging configuration information for an extension.- Returns:
this
-
loggingConfig
@Stability(Stable) public CfnTypeActivationProps.Builder loggingConfig(CfnTypeActivation.LoggingConfigProperty loggingConfig) Sets the value ofCfnTypeActivationProps.getLoggingConfig()
- Parameters:
loggingConfig
- Specifies logging configuration information for an extension.- Returns:
this
-
majorVersion
Sets the value ofCfnTypeActivationProps.getMajorVersion()
- Parameters:
majorVersion
- The major version of this extension you want to activate, if multiple major versions are available. The default is the latest major version. CloudFormation uses the latest available minor version of the major version selected.You can specify
MajorVersion
orVersionBump
, but not both.- Returns:
this
-
publicTypeArn
Sets the value ofCfnTypeActivationProps.getPublicTypeArn()
- Parameters:
publicTypeArn
- The Amazon Resource Number (ARN) of the public extension. Conditional: You must specifyPublicTypeArn
, orTypeName
,Type
, andPublisherId
.- Returns:
this
-
publisherId
Sets the value ofCfnTypeActivationProps.getPublisherId()
- Parameters:
publisherId
- The ID of the extension publisher. Conditional: You must specifyPublicTypeArn
, orTypeName
,Type
, andPublisherId
.- Returns:
this
-
type
Sets the value ofCfnTypeActivationProps.getType()
- Parameters:
type
- The extension type. Conditional: You must specifyPublicTypeArn
, orTypeName
,Type
, andPublisherId
.- Returns:
this
-
typeName
Sets the value ofCfnTypeActivationProps.getTypeName()
- Parameters:
typeName
- The name of the extension. Conditional: You must specifyPublicTypeArn
, orTypeName
,Type
, andPublisherId
.- Returns:
this
-
typeNameAlias
Sets the value ofCfnTypeActivationProps.getTypeNameAlias()
- Parameters:
typeNameAlias
- An alias to assign to the public extension, in this account and Region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and Region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.An extension alias must be unique within a given account and Region. You can activate the same public resource multiple times in the same account and Region, using different type name aliases.
- Returns:
this
-
versionBump
Sets the value ofCfnTypeActivationProps.getVersionBump()
- Parameters:
versionBump
- Manually updates a previously-activated type to a new major or minor version, if available. You can also use this parameter to update the value ofAutoUpdate
.MAJOR
: CloudFormation updates the extension to the newest major version, if one is available.MINOR
: CloudFormation updates the extension to the newest minor version, if one is available.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTypeActivationProps>
- Returns:
- a new instance of
CfnTypeActivationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-