Interface CfnGuardHookProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnGuardHookProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-10T21:56:47.824Z")
@Stability(Stable)
public interface CfnGuardHookProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnGuardHook
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudformation.*; CfnGuardHookProps cfnGuardHookProps = CfnGuardHookProps.builder() .alias("alias") .executionRole("executionRole") .failureMode("failureMode") .hookStatus("hookStatus") .ruleLocation(S3LocationProperty.builder() .uri("uri") // the properties below are optional .versionId("versionId") .build()) .targetOperations(List.of("targetOperations")) // the properties below are optional .logBucket("logBucket") .options(OptionsProperty.builder() .inputParams(S3LocationProperty.builder() .uri("uri") // the properties below are optional .versionId("versionId") .build()) .build()) .stackFilters(StackFiltersProperty.builder() .filteringCriteria("filteringCriteria") // the properties below are optional .stackNames(StackNamesProperty.builder() .exclude(List.of("exclude")) .include(List.of("include")) .build()) .stackRoles(StackRolesProperty.builder() .exclude(List.of("exclude")) .include(List.of("include")) .build()) .build()) .targetFilters(TargetFiltersProperty.builder() .actions(List.of("actions")) .invocationPoints(List.of("invocationPoints")) .targetNames(List.of("targetNames")) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnGuardHookProps
static final class
An implementation forCfnGuardHookProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnGuardHookProps.Builder
builder()
getAlias()
The type name alias for the Hook.The IAM role that the Hook assumes to retrieve your Guard rules from S3 and optionally write a detailed Guard output report back.Specifies how the Hook responds when rules fail their evaluation.Specifies if the Hook isENABLED
orDISABLED
.default String
Specifies the name of an S3 bucket to store the Guard output report.default Object
Specifies the S3 location of your input parameters.Specifies the S3 location of your Guard rules.default Object
Specifies the stack level filters for the Hook.default Object
Specifies the target filters for the Hook.Specifies which type of operation the Hook is run against.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlias
The type name alias for the Hook. This alias must be unique per account and Region.The alias must be in the form
Name1::Name2::Name3
and must not begin withAWS
. For example,Private::Guard::MyTestHook
.- See Also:
-
getExecutionRole
The IAM role that the Hook assumes to retrieve your Guard rules from S3 and optionally write a detailed Guard output report back.- See Also:
-
getFailureMode
Specifies how the Hook responds when rules fail their evaluation.FAIL
: Prevents the action from proceeding. This is helpful for enforcing strict compliance or security policies.WARN
: Issues warnings to users but allows actions to continue. This is useful for non-critical validations or informational checks.
Default: - "WARN"
- See Also:
-
getHookStatus
Specifies if the Hook isENABLED
orDISABLED
.Default: - "DISABLED"
- See Also:
-
getRuleLocation
Specifies the S3 location of your Guard rules.- See Also:
-
getTargetOperations
Specifies which type of operation the Hook is run against.Valid values:
STACK
|RESOURCE
|CHANGE_SET
|CLOUD_CONTROL
- See Also:
-
getLogBucket
Specifies the name of an S3 bucket to store the Guard output report.This report contains the results of your Guard rule validations.
- See Also:
-
getOptions
Specifies the S3 location of your input parameters.- See Also:
-
getStackFilters
Specifies the stack level filters for the Hook.- See Also:
-
getTargetFilters
Specifies the target filters for the Hook.- See Also:
-
builder
- Returns:
- a
CfnGuardHookProps.Builder
ofCfnGuardHookProps
-