Class CfnHookVersionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudformation.mixins.CfnHookVersionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHookVersionMixinProps>
- Enclosing interface:
CfnHookVersionMixinProps
@Stability(Stable)
public static final class CfnHookVersionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHookVersionMixinProps>
A builder for
CfnHookVersionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.executionRoleArn(String executionRoleArn) Sets the value ofCfnHookVersionMixinProps.getExecutionRoleArn()loggingConfig(IResolvable loggingConfig) Sets the value ofCfnHookVersionMixinProps.getLoggingConfig()loggingConfig(CfnHookVersionPropsMixin.LoggingConfigProperty loggingConfig) Sets the value ofCfnHookVersionMixinProps.getLoggingConfig()schemaHandlerPackage(String schemaHandlerPackage) Sets the value ofCfnHookVersionMixinProps.getSchemaHandlerPackage()Sets the value ofCfnHookVersionMixinProps.getTypeName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executionRoleArn
@Stability(Stable) public CfnHookVersionMixinProps.Builder executionRoleArn(String executionRoleArn) Sets the value ofCfnHookVersionMixinProps.getExecutionRoleArn()- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the task execution role that grants the Hook permission.- Returns:
this
-
loggingConfig
Sets the value ofCfnHookVersionMixinProps.getLoggingConfig()- Parameters:
loggingConfig- Contains logging configuration information for an extension.- Returns:
this
-
loggingConfig
@Stability(Stable) public CfnHookVersionMixinProps.Builder loggingConfig(CfnHookVersionPropsMixin.LoggingConfigProperty loggingConfig) Sets the value ofCfnHookVersionMixinProps.getLoggingConfig()- Parameters:
loggingConfig- Contains logging configuration information for an extension.- Returns:
this
-
schemaHandlerPackage
@Stability(Stable) public CfnHookVersionMixinProps.Builder schemaHandlerPackage(String schemaHandlerPackage) Sets the value ofCfnHookVersionMixinProps.getSchemaHandlerPackage()- Parameters:
schemaHandlerPackage- A URL to the Amazon S3 bucket for the Hook project package that contains the necessary files for the Hook you want to register. For information on generating a schema handler package, see Modeling custom CloudFormation Hooks in the CloudFormation Hooks User Guide .To register the Hook, you must have
s3:GetObjectpermissions to access the S3 objects.- Returns:
this
-
typeName
Sets the value ofCfnHookVersionMixinProps.getTypeName()- Parameters:
typeName- The unique name for your Hook. Specifies a three-part namespace for your Hook, with a recommended pattern ofOrganization::Service::Hook.The following organization namespaces are reserved and can't be used in your Hook type names:
AlexaAMZNAmazonASKAWSCustomDev
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHookVersionMixinProps>- Returns:
- a new instance of
CfnHookVersionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-