Class CfnGuardHook
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cloudformation.CfnGuardHook
- All Implemented Interfaces:
IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:04.501Z")
@Stability(Stable)
public class CfnGuardHook
extends CfnResource
implements IInspectable
This is a CloudFormation resource for activating the first-party AWS::Hooks::GuardHook.
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.*;
CfnGuardHook cfnGuardHook = CfnGuardHook.Builder.create(this, "MyCfnGuardHook")
.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
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnGuardHook.static interfaceExample:static interfaceS3 Source Location for the Guard files.static interfaceFilters to allow hooks to target specific stack attributes.static interfaceList of stack names as filters.static interfaceList of stack roles that are performing the stack operations.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnGuardHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnGuardHook(software.amazon.jsii.JsiiObjectRef objRef) CfnGuardHook(software.constructs.Construct scope, String id, CfnGuardHookProps props) -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()The typename alias for the hook.The Amazon Resource Name (ARN) of the activated hook.IAM Role ARN.Attribute to specify CloudFormation behavior on hook failure.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.S3 Source Location for the Guard files.Filters to allow hooks to target specific stack attributes.Which operations should this Hook run against?voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe typename alias for the hook.voidsetExecutionRole(String value) IAM Role ARN.voidsetFailureMode(String value) Attribute to specify CloudFormation behavior on hook failure.voidsetHookStatus(String value) Attribute to specify which stacks this hook applies to or should get invoked for.voidsetLogBucket(String value) S3 Bucket where the guard validate report will be uploaded to.voidsetOptions(IResolvable value) voidvoidsetRuleLocation(IResolvable value) S3 Source Location for the Guard files.voidS3 Source Location for the Guard files.voidsetStackFilters(IResolvable value) Filters to allow hooks to target specific stack attributes.voidFilters to allow hooks to target specific stack attributes.voidsetTargetFilters(IResolvable value) voidvoidsetTargetOperations(List<String> value) Which operations should this Hook run against?Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnGuardHook
protected CfnGuardHook(software.amazon.jsii.JsiiObjectRef objRef) -
CfnGuardHook
protected CfnGuardHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnGuardHook
@Stability(Stable) public CfnGuardHook(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnGuardHookProps props) - 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrHookArn
The Amazon Resource Name (ARN) of the activated hook. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAlias
The typename alias for the hook. -
setAlias
The typename alias for the hook. -
getExecutionRole
IAM Role ARN. -
setExecutionRole
IAM Role ARN. -
getFailureMode
Attribute to specify CloudFormation behavior on hook failure. -
setFailureMode
Attribute to specify CloudFormation behavior on hook failure. -
getHookStatus
Attribute to specify which stacks this hook applies to or should get invoked for. -
setHookStatus
Attribute to specify which stacks this hook applies to or should get invoked for. -
getRuleLocation
S3 Source Location for the Guard files. -
setRuleLocation
S3 Source Location for the Guard files. -
setRuleLocation
S3 Source Location for the Guard files. -
getTargetOperations
Which operations should this Hook run against? -
setTargetOperations
Which operations should this Hook run against? -
getLogBucket
S3 Bucket where the guard validate report will be uploaded to. -
setLogBucket
S3 Bucket where the guard validate report will be uploaded to. -
getOptions
-
setOptions
-
setOptions
-
getStackFilters
Filters to allow hooks to target specific stack attributes. -
setStackFilters
Filters to allow hooks to target specific stack attributes. -
setStackFilters
Filters to allow hooks to target specific stack attributes. -
getTargetFilters
-
setTargetFilters
-
setTargetFilters
-