Package software.amazon.awscdk
Class CfnGuardHookProps.Builder
java.lang.Object
software.amazon.awscdk.CfnGuardHookProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardHookProps>
- Enclosing interface:
CfnGuardHookProps
@Stability(Stable)
public static final class CfnGuardHookProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardHookProps>
A builder for
CfnGuardHookProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGuardHookProps.getAlias()build()Builds the configured instance.executionRole(String executionRole) Sets the value ofCfnGuardHookProps.getExecutionRole()failureMode(String failureMode) Sets the value ofCfnGuardHookProps.getFailureMode()hookStatus(String hookStatus) Sets the value ofCfnGuardHookProps.getHookStatus()Sets the value ofCfnGuardHookProps.getLogBucket()options(CfnGuardHook.OptionsProperty options) Sets the value ofCfnGuardHookProps.getOptions()options(IResolvable options) Sets the value ofCfnGuardHookProps.getOptions()ruleLocation(CfnGuardHook.S3LocationProperty ruleLocation) Sets the value ofCfnGuardHookProps.getRuleLocation()ruleLocation(IResolvable ruleLocation) Sets the value ofCfnGuardHookProps.getRuleLocation()stackFilters(CfnGuardHook.StackFiltersProperty stackFilters) Sets the value ofCfnGuardHookProps.getStackFilters()stackFilters(IResolvable stackFilters) Sets the value ofCfnGuardHookProps.getStackFilters()targetFilters(CfnGuardHook.TargetFiltersProperty targetFilters) Sets the value ofCfnGuardHookProps.getTargetFilters()targetFilters(IResolvable targetFilters) Sets the value ofCfnGuardHookProps.getTargetFilters()targetOperations(List<String> targetOperations) Sets the value ofCfnGuardHookProps.getTargetOperations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofCfnGuardHookProps.getAlias()- Parameters:
alias- The typename alias for the hook. This parameter is required.- Returns:
this
-
executionRole
Sets the value ofCfnGuardHookProps.getExecutionRole()- Parameters:
executionRole- IAM Role ARN. This parameter is required.- Returns:
this
-
failureMode
Sets the value ofCfnGuardHookProps.getFailureMode()- Parameters:
failureMode- Attribute to specify CloudFormation behavior on hook failure. This parameter is required.- Returns:
this
-
hookStatus
Sets the value ofCfnGuardHookProps.getHookStatus()- Parameters:
hookStatus- Attribute to specify which stacks this hook applies to or should get invoked for. This parameter is required.- Returns:
this
-
ruleLocation
Sets the value ofCfnGuardHookProps.getRuleLocation()- Parameters:
ruleLocation- S3 Source Location for the Guard files. This parameter is required.- Returns:
this
-
ruleLocation
@Stability(Stable) public CfnGuardHookProps.Builder ruleLocation(CfnGuardHook.S3LocationProperty ruleLocation) Sets the value ofCfnGuardHookProps.getRuleLocation()- Parameters:
ruleLocation- S3 Source Location for the Guard files. This parameter is required.- Returns:
this
-
targetOperations
Sets the value ofCfnGuardHookProps.getTargetOperations()- Parameters:
targetOperations- Which operations should this Hook run against?. This parameter is required. Resource changes, stacks or change sets.- Returns:
this
-
logBucket
Sets the value ofCfnGuardHookProps.getLogBucket()- Parameters:
logBucket- S3 Bucket where the guard validate report will be uploaded to.- Returns:
this
-
options
Sets the value ofCfnGuardHookProps.getOptions()- Parameters:
options- the value to be set.- Returns:
this
-
options
Sets the value ofCfnGuardHookProps.getOptions()- Parameters:
options- the value to be set.- Returns:
this
-
stackFilters
Sets the value ofCfnGuardHookProps.getStackFilters()- Parameters:
stackFilters- Filters to allow hooks to target specific stack attributes.- Returns:
this
-
stackFilters
@Stability(Stable) public CfnGuardHookProps.Builder stackFilters(CfnGuardHook.StackFiltersProperty stackFilters) Sets the value ofCfnGuardHookProps.getStackFilters()- Parameters:
stackFilters- Filters to allow hooks to target specific stack attributes.- Returns:
this
-
targetFilters
Sets the value ofCfnGuardHookProps.getTargetFilters()- Parameters:
targetFilters- the value to be set.- Returns:
this
-
targetFilters
@Stability(Stable) public CfnGuardHookProps.Builder targetFilters(CfnGuardHook.TargetFiltersProperty targetFilters) Sets the value ofCfnGuardHookProps.getTargetFilters()- Parameters:
targetFilters- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardHookProps>- Returns:
- a new instance of
CfnGuardHookProps - Throws:
NullPointerException- if any required attribute was not provided
-