Class CfnHookVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnHookVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHookVersionProps>
- Enclosing interface:
CfnHookVersionProps
@Stability(Stable)
public static final class CfnHookVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHookVersionProps>
A builder for
CfnHookVersionProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.executionRoleArn
(String executionRoleArn) Sets the value ofCfnHookVersionProps.getExecutionRoleArn()
loggingConfig
(IResolvable loggingConfig) Sets the value ofCfnHookVersionProps.getLoggingConfig()
loggingConfig
(CfnHookVersion.LoggingConfigProperty loggingConfig) Sets the value ofCfnHookVersionProps.getLoggingConfig()
schemaHandlerPackage
(String schemaHandlerPackage) Sets the value ofCfnHookVersionProps.getSchemaHandlerPackage()
Sets the value ofCfnHookVersionProps.getTypeName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
schemaHandlerPackage
@Stability(Stable) public CfnHookVersionProps.Builder schemaHandlerPackage(String schemaHandlerPackage) Sets the value ofCfnHookVersionProps.getSchemaHandlerPackage()
- Parameters:
schemaHandlerPackage
- A URL to the Amazon S3 bucket containing the Hook project package that contains the necessary files for the Hook you want to register. This parameter is required. For information on generating a schema handler package, see Modeling custom CloudFormation Hooks in the AWS CloudFormation Hooks User Guide .To register the Hook, you must have
s3:GetObject
permissions to access the S3 objects.- Returns:
this
-
typeName
Sets the value ofCfnHookVersionProps.getTypeName()
- Parameters:
typeName
- The unique name for your hook. This parameter is required. 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:
Alexa
AMZN
Amazon
ASK
AWS
Custom
Dev
- Returns:
this
-
executionRoleArn
Sets the value ofCfnHookVersionProps.getExecutionRoleArn()
- Parameters:
executionRoleArn
- The Amazon Resource Name (ARN) of the task execution role that grants the Hook permission.- Returns:
this
-
loggingConfig
Sets the value ofCfnHookVersionProps.getLoggingConfig()
- Parameters:
loggingConfig
- Contains logging configuration information for an extension.- Returns:
this
-
loggingConfig
@Stability(Stable) public CfnHookVersionProps.Builder loggingConfig(CfnHookVersion.LoggingConfigProperty loggingConfig) Sets the value ofCfnHookVersionProps.getLoggingConfig()
- Parameters:
loggingConfig
- Contains logging configuration information for an extension.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnHookVersionProps>
- Returns:
- a new instance of
CfnHookVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-