Package software.amazon.awscdk
Class CfnHookVersionProps.Builder
java.lang.Object
software.amazon.awscdk.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.executionRoleArn
(String executionRoleArn) Sets the value ofCfnHookVersionProps.getExecutionRoleArn()
loggingConfig
(CfnHookVersion.LoggingConfigProperty loggingConfig) Sets the value ofCfnHookVersionProps.getLoggingConfig()
loggingConfig
(IResolvable 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 for the resource you want to register, see submit in the CloudFormation CLI User Guide for Extension Development .The user registering the resource must be able to access the package in the S3 bucket. That's, the user must have GetObject permissions for the schema handler package. For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the AWS Identity and Access Management User Guide .
- 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
-