Class CfnGuardHook.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnGuardHook.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardHook>
- Enclosing class:
CfnGuardHook
@Stability(Stable)
public static final class CfnGuardHook.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardHook>
A fluent builder for
CfnGuardHook.-
Method Summary
Modifier and TypeMethodDescriptionThe typename alias for the hook.build()static CfnGuardHook.BuilderexecutionRole(String executionRole) IAM Role ARN.failureMode(String failureMode) Attribute to specify CloudFormation behavior on hook failure.hookStatus(String hookStatus) Attribute to specify which stacks this hook applies to or should get invoked for.S3 Bucket where the guard validate report will be uploaded to.options(IResolvable options) options(CfnGuardHook.OptionsProperty options) ruleLocation(IResolvable ruleLocation) S3 Source Location for the Guard files.ruleLocation(CfnGuardHook.S3LocationProperty ruleLocation) S3 Source Location for the Guard files.stackFilters(IResolvable stackFilters) Filters to allow hooks to target specific stack attributes.stackFilters(CfnGuardHook.StackFiltersProperty stackFilters) Filters to allow hooks to target specific stack attributes.targetFilters(IResolvable targetFilters) targetFilters(CfnGuardHook.TargetFiltersProperty targetFilters) targetOperations(List<String> targetOperations) Which operations should this Hook run against?
-
Method Details
-
create
@Stability(Stable) public static CfnGuardHook.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnGuardHook.Builder.
-
alias
The typename alias for the hook.- Parameters:
alias- The typename alias for the hook. This parameter is required.- Returns:
this- See Also:
-
executionRole
IAM Role ARN.- Parameters:
executionRole- IAM Role ARN. This parameter is required.- Returns:
this- See Also:
-
failureMode
Attribute to specify CloudFormation behavior on hook failure.Default: - "WARN"
- Parameters:
failureMode- Attribute to specify CloudFormation behavior on hook failure. This parameter is required.- Returns:
this- See Also:
-
hookStatus
Attribute to specify which stacks this hook applies to or should get invoked for.Default: - "DISABLED"
- Parameters:
hookStatus- Attribute to specify which stacks this hook applies to or should get invoked for. This parameter is required.- Returns:
this- See Also:
-
ruleLocation
S3 Source Location for the Guard files.- Parameters:
ruleLocation- S3 Source Location for the Guard files. This parameter is required.- Returns:
this- See Also:
-
ruleLocation
@Stability(Stable) public CfnGuardHook.Builder ruleLocation(CfnGuardHook.S3LocationProperty ruleLocation) S3 Source Location for the Guard files.- Parameters:
ruleLocation- S3 Source Location for the Guard files. This parameter is required.- Returns:
this- See Also:
-
targetOperations
Which operations should this Hook run against?Resource changes, stacks or change sets.
- Parameters:
targetOperations- Which operations should this Hook run against?. This parameter is required.- Returns:
this- See Also:
-
logBucket
S3 Bucket where the guard validate report will be uploaded to.- Parameters:
logBucket- S3 Bucket where the guard validate report will be uploaded to. This parameter is required.- Returns:
this- See Also:
-
options
- Parameters:
options- This parameter is required.- Returns:
this- See Also:
-
options
- Parameters:
options- This parameter is required.- Returns:
this- See Also:
-
stackFilters
Filters to allow hooks to target specific stack attributes.- Parameters:
stackFilters- Filters to allow hooks to target specific stack attributes. This parameter is required.- Returns:
this- See Also:
-
stackFilters
@Stability(Stable) public CfnGuardHook.Builder stackFilters(CfnGuardHook.StackFiltersProperty stackFilters) Filters to allow hooks to target specific stack attributes.- Parameters:
stackFilters- Filters to allow hooks to target specific stack attributes. This parameter is required.- Returns:
this- See Also:
-
targetFilters
- Parameters:
targetFilters- This parameter is required.- Returns:
this- See Also:
-
targetFilters
@Stability(Stable) public CfnGuardHook.Builder targetFilters(CfnGuardHook.TargetFiltersProperty targetFilters) - Parameters:
targetFilters- This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardHook>- Returns:
- a newly built instance of
CfnGuardHook.
-