We recommend new projects start with resources from the AWS provider.
aws-native.cloudformation.GuardHook
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
This is a CloudFormation resource for activating the first-party AWS::Hooks::GuardHook.
Create GuardHook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GuardHook(name: string, args: GuardHookArgs, opts?: CustomResourceOptions);@overload
def GuardHook(resource_name: str,
              args: GuardHookArgs,
              opts: Optional[ResourceOptions] = None)
@overload
def GuardHook(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              alias: Optional[str] = None,
              execution_role: Optional[str] = None,
              failure_mode: Optional[GuardHookFailureMode] = None,
              hook_status: Optional[GuardHookHookStatus] = None,
              rule_location: Optional[GuardHookS3LocationArgs] = None,
              target_operations: Optional[Sequence[GuardHookTargetOperation]] = None,
              log_bucket: Optional[str] = None,
              options: Optional[OptionsPropertiesArgs] = None,
              stack_filters: Optional[StackFiltersPropertiesArgs] = None,
              target_filters: Optional[Union[TargetFilters0PropertiesArgs, TargetFilters1PropertiesArgs]] = None)func NewGuardHook(ctx *Context, name string, args GuardHookArgs, opts ...ResourceOption) (*GuardHook, error)public GuardHook(string name, GuardHookArgs args, CustomResourceOptions? opts = null)
public GuardHook(String name, GuardHookArgs args)
public GuardHook(String name, GuardHookArgs args, CustomResourceOptions options)
type: aws-native:cloudformation:GuardHook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GuardHookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GuardHookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GuardHookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GuardHookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GuardHookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GuardHook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GuardHook resource accepts the following input properties:
- Alias string
- The typename alias for the hook.
- ExecutionRole string
- The execution role ARN assumed by hooks to read Guard rules from S3 and write Guard outputs to S3.
- FailureMode Pulumi.Aws Native. Cloud Formation. Guard Hook Failure Mode 
- Attribute to specify CloudFormation behavior on hook failure.
- HookStatus Pulumi.Aws Native. Cloud Formation. Guard Hook Hook Status 
- Attribute to specify which stacks this hook applies to or should get invoked for
- RuleLocation Pulumi.Aws Native. Cloud Formation. Inputs. Guard Hook S3Location 
- Specifies the S3 location of your Guard rules.
- TargetOperations List<Pulumi.Aws Native. Cloud Formation. Guard Hook Target Operation> 
- Which operations should this Hook run against? Resource changes, stacks or change sets.
- LogBucket string
- S3 Bucket where the guard validate report will be uploaded to
- Options
Pulumi.Aws Native. Cloud Formation. Inputs. Options Properties 
- Specifies the S3 location of your input parameters.
- StackFilters Pulumi.Aws Native. Cloud Formation. Inputs. Stack Filters Properties 
- Filters to allow hooks to target specific stack attributes
- TargetFilters Pulumi.Aws | Pulumi.Native. Cloud Formation. Inputs. Target Filters0Properties Aws Native. Cloud Formation. Inputs. Target Filters1Properties 
- Attribute to specify which targets should invoke the hook
- Alias string
- The typename alias for the hook.
- ExecutionRole string
- The execution role ARN assumed by hooks to read Guard rules from S3 and write Guard outputs to S3.
- FailureMode GuardHook Failure Mode 
- Attribute to specify CloudFormation behavior on hook failure.
- HookStatus GuardHook Hook Status 
- Attribute to specify which stacks this hook applies to or should get invoked for
- RuleLocation GuardHook S3Location Args 
- Specifies the S3 location of your Guard rules.
- TargetOperations []GuardHook Target Operation 
- Which operations should this Hook run against? Resource changes, stacks or change sets.
- LogBucket string
- S3 Bucket where the guard validate report will be uploaded to
- Options
OptionsProperties Args 
- Specifies the S3 location of your input parameters.
- StackFilters StackFilters Properties Args 
- Filters to allow hooks to target specific stack attributes
- TargetFilters TargetFilters0Properties | TargetArgs Filters1Properties Args 
- Attribute to specify which targets should invoke the hook
- alias String
- The typename alias for the hook.
- executionRole String
- The execution role ARN assumed by hooks to read Guard rules from S3 and write Guard outputs to S3.
- failureMode GuardHook Failure Mode 
- Attribute to specify CloudFormation behavior on hook failure.
- hookStatus GuardHook Hook Status 
- Attribute to specify which stacks this hook applies to or should get invoked for
- ruleLocation GuardHook S3Location 
- Specifies the S3 location of your Guard rules.
- targetOperations List<GuardHook Target Operation> 
- Which operations should this Hook run against? Resource changes, stacks or change sets.
- logBucket String
- S3 Bucket where the guard validate report will be uploaded to
- options
OptionsProperties 
- Specifies the S3 location of your input parameters.
- stackFilters StackFilters Properties 
- Filters to allow hooks to target specific stack attributes
- targetFilters TargetFilters0Properties | TargetFilters1Properties 
- Attribute to specify which targets should invoke the hook
- alias string
- The typename alias for the hook.
- executionRole string
- The execution role ARN assumed by hooks to read Guard rules from S3 and write Guard outputs to S3.
- failureMode GuardHook Failure Mode 
- Attribute to specify CloudFormation behavior on hook failure.
- hookStatus GuardHook Hook Status 
- Attribute to specify which stacks this hook applies to or should get invoked for
- ruleLocation GuardHook S3Location 
- Specifies the S3 location of your Guard rules.
- targetOperations GuardHook Target Operation[] 
- Which operations should this Hook run against? Resource changes, stacks or change sets.
- logBucket string
- S3 Bucket where the guard validate report will be uploaded to
- options
OptionsProperties 
- Specifies the S3 location of your input parameters.
- stackFilters StackFilters Properties 
- Filters to allow hooks to target specific stack attributes
- targetFilters TargetFilters0Properties | TargetFilters1Properties 
- Attribute to specify which targets should invoke the hook
- alias str
- The typename alias for the hook.
- execution_role str
- The execution role ARN assumed by hooks to read Guard rules from S3 and write Guard outputs to S3.
- failure_mode GuardHook Failure Mode 
- Attribute to specify CloudFormation behavior on hook failure.
- hook_status GuardHook Hook Status 
- Attribute to specify which stacks this hook applies to or should get invoked for
- rule_location GuardHook S3Location Args 
- Specifies the S3 location of your Guard rules.
- target_operations Sequence[GuardHook Target Operation] 
- Which operations should this Hook run against? Resource changes, stacks or change sets.
- log_bucket str
- S3 Bucket where the guard validate report will be uploaded to
- options
OptionsProperties Args 
- Specifies the S3 location of your input parameters.
- stack_filters StackFilters Properties Args 
- Filters to allow hooks to target specific stack attributes
- target_filters TargetFilters0Properties | TargetArgs Filters1Properties Args 
- Attribute to specify which targets should invoke the hook
- alias String
- The typename alias for the hook.
- executionRole String
- The execution role ARN assumed by hooks to read Guard rules from S3 and write Guard outputs to S3.
- failureMode "FAIL" | "WARN"
- Attribute to specify CloudFormation behavior on hook failure.
- hookStatus "ENABLED" | "DISABLED"
- Attribute to specify which stacks this hook applies to or should get invoked for
- ruleLocation Property Map
- Specifies the S3 location of your Guard rules.
- targetOperations List<"RESOURCE" | "STACK" | "CHANGE_SET" | "CLOUD_CONTROL">
- Which operations should this Hook run against? Resource changes, stacks or change sets.
- logBucket String
- S3 Bucket where the guard validate report will be uploaded to
- options Property Map
- Specifies the S3 location of your input parameters.
- stackFilters Property Map
- Filters to allow hooks to target specific stack attributes
- targetFilters Property Map | Property Map
- Attribute to specify which targets should invoke the hook
Outputs
All input properties are implicitly available as output properties. Additionally, the GuardHook resource produces the following output properties:
Supporting Types
GuardHookFailureMode, GuardHookFailureModeArgs        
- Fail
- FAIL
- Warn
- WARN
- GuardHook Failure Mode Fail 
- FAIL
- GuardHook Failure Mode Warn 
- WARN
- Fail
- FAIL
- Warn
- WARN
- Fail
- FAIL
- Warn
- WARN
- FAIL
- FAIL
- WARN
- WARN
- "FAIL"
- FAIL
- "WARN"
- WARN
GuardHookHookStatus, GuardHookHookStatusArgs        
- Enabled
- ENABLED
- Disabled
- DISABLED
- GuardHook Hook Status Enabled 
- ENABLED
- GuardHook Hook Status Disabled 
- DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- ENABLED
- ENABLED
- DISABLED
- DISABLED
- "ENABLED"
- ENABLED
- "DISABLED"
- DISABLED
GuardHookS3Location, GuardHookS3LocationArgs      
- uri str
- S3 uri of Guard files.
- version_id str
- S3 object version
GuardHookTargetOperation, GuardHookTargetOperationArgs        
- Resource
- RESOURCE
- Stack
- STACK
- ChangeSet 
- CHANGE_SET
- CloudControl 
- CLOUD_CONTROL
- GuardHook Target Operation Resource 
- RESOURCE
- GuardHook Target Operation Stack 
- STACK
- GuardHook Target Operation Change Set 
- CHANGE_SET
- GuardHook Target Operation Cloud Control 
- CLOUD_CONTROL
- Resource
- RESOURCE
- Stack
- STACK
- ChangeSet 
- CHANGE_SET
- CloudControl 
- CLOUD_CONTROL
- Resource
- RESOURCE
- Stack
- STACK
- ChangeSet 
- CHANGE_SET
- CloudControl 
- CLOUD_CONTROL
- RESOURCE
- RESOURCE
- STACK
- STACK
- CHANGE_SET
- CHANGE_SET
- CLOUD_CONTROL
- CLOUD_CONTROL
- "RESOURCE"
- RESOURCE
- "STACK"
- STACK
- "CHANGE_SET"
- CHANGE_SET
- "CLOUD_CONTROL"
- CLOUD_CONTROL
LambdaHookAction, LambdaHookActionArgs      
- Create
- CREATE
- Update
- UPDATE
- Delete
- DELETE
- LambdaHook Action Create 
- CREATE
- LambdaHook Action Update 
- UPDATE
- LambdaHook Action Delete 
- DELETE
- Create
- CREATE
- Update
- UPDATE
- Delete
- DELETE
- Create
- CREATE
- Update
- UPDATE
- Delete
- DELETE
- CREATE
- CREATE
- UPDATE
- UPDATE
- DELETE
- DELETE
- "CREATE"
- CREATE
- "UPDATE"
- UPDATE
- "DELETE"
- DELETE
LambdaHookHookTarget, LambdaHookHookTargetArgs        
LambdaHookInvocationPoint, LambdaHookInvocationPointArgs        
- PreProvision 
- PRE_PROVISION
- LambdaHook Invocation Point Pre Provision 
- PRE_PROVISION
- PreProvision 
- PRE_PROVISION
- PreProvision 
- PRE_PROVISION
- PRE_PROVISION
- PRE_PROVISION
- "PRE_PROVISION"
- PRE_PROVISION
LambdaHookStackFiltersPropertiesFilteringCriteria, LambdaHookStackFiltersPropertiesFilteringCriteriaArgs              
- All
- ALL
- Any
- ANY
- LambdaHook Stack Filters Properties Filtering Criteria All 
- ALL
- LambdaHook Stack Filters Properties Filtering Criteria Any 
- ANY
- All
- ALL
- Any
- ANY
- All
- ALL
- Any
- ANY
- ALL
- ALL
- ANY
- ANY
- "ALL"
- ALL
- "ANY"
- ANY
OptionsProperties, OptionsPropertiesArgs    
- InputParams Pulumi.Aws Native. Cloud Formation. Inputs. Guard Hook S3Location 
- Specifies the S3 location where your input parameters are located.
- InputParams GuardHook S3Location 
- Specifies the S3 location where your input parameters are located.
- inputParams GuardHook S3Location 
- Specifies the S3 location where your input parameters are located.
- inputParams GuardHook S3Location 
- Specifies the S3 location where your input parameters are located.
- input_params GuardHook S3Location 
- Specifies the S3 location where your input parameters are located.
- inputParams Property Map
- Specifies the S3 location where your input parameters are located.
StackFiltersProperties, StackFiltersPropertiesArgs      
- FilteringCriteria Pulumi.Aws Native. Cloud Formation. Lambda Hook Stack Filters Properties Filtering Criteria 
- Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- StackNames Pulumi.Aws Native. Cloud Formation. Inputs. Stack Filters Properties Stack Names Properties 
- List of stack names as filters
- StackRoles Pulumi.Aws Native. Cloud Formation. Inputs. Stack Filters Properties Stack Roles Properties 
- List of stack roles that are performing the stack operations.
- FilteringCriteria LambdaHook Stack Filters Properties Filtering Criteria 
- Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- StackNames StackFilters Properties Stack Names Properties 
- List of stack names as filters
- StackRoles StackFilters Properties Stack Roles Properties 
- List of stack roles that are performing the stack operations.
- filteringCriteria LambdaHook Stack Filters Properties Filtering Criteria 
- Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- stackNames StackFilters Properties Stack Names Properties 
- List of stack names as filters
- stackRoles StackFilters Properties Stack Roles Properties 
- List of stack roles that are performing the stack operations.
- filteringCriteria LambdaHook Stack Filters Properties Filtering Criteria 
- Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- stackNames StackFilters Properties Stack Names Properties 
- List of stack names as filters
- stackRoles StackFilters Properties Stack Roles Properties 
- List of stack roles that are performing the stack operations.
- filtering_criteria LambdaHook Stack Filters Properties Filtering Criteria 
- Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- stack_names StackFilters Properties Stack Names Properties 
- List of stack names as filters
- stack_roles StackFilters Properties Stack Roles Properties 
- List of stack roles that are performing the stack operations.
- filteringCriteria "ALL" | "ANY"
- Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- stackNames Property Map
- List of stack names as filters
- stackRoles Property Map
- List of stack roles that are performing the stack operations.
StackFiltersPropertiesStackNamesProperties, StackFiltersPropertiesStackNamesPropertiesArgs            
StackFiltersPropertiesStackRolesProperties, StackFiltersPropertiesStackRolesPropertiesArgs            
TargetFilters0Properties, TargetFilters0PropertiesArgs    
- Actions
List<Pulumi.Aws Native. Cloud Formation. Lambda Hook Action> 
- List of actions that the hook is going to target
- InvocationPoints List<Pulumi.Aws Native. Cloud Formation. Lambda Hook Invocation Point> 
- List of invocation points that the hook is going to target
- TargetNames List<string>
- List of type names that the hook is going to target
- Actions
[]LambdaHook Action 
- List of actions that the hook is going to target
- InvocationPoints []LambdaHook Invocation Point 
- List of invocation points that the hook is going to target
- TargetNames []string
- List of type names that the hook is going to target
- actions
List<LambdaHook Action> 
- List of actions that the hook is going to target
- invocationPoints List<LambdaHook Invocation Point> 
- List of invocation points that the hook is going to target
- targetNames List<String>
- List of type names that the hook is going to target
- actions
LambdaHook Action[] 
- List of actions that the hook is going to target
- invocationPoints LambdaHook Invocation Point[] 
- List of invocation points that the hook is going to target
- targetNames string[]
- List of type names that the hook is going to target
- actions
Sequence[LambdaHook Action] 
- List of actions that the hook is going to target
- invocation_points Sequence[LambdaHook Invocation Point] 
- List of invocation points that the hook is going to target
- target_names Sequence[str]
- List of type names that the hook is going to target
- actions List<"CREATE" | "UPDATE" | "DELETE">
- List of actions that the hook is going to target
- invocationPoints List<"PRE_PROVISION">
- List of invocation points that the hook is going to target
- targetNames List<String>
- List of type names that the hook is going to target
TargetFilters1Properties, TargetFilters1PropertiesArgs    
- Targets
List<Pulumi.Aws Native. Cloud Formation. Inputs. Lambda Hook Hook Target> 
- List of hook targets
- Targets
[]LambdaHook Hook Target 
- List of hook targets
- targets
List<LambdaHook Hook Target> 
- List of hook targets
- targets
LambdaHook Hook Target[] 
- List of hook targets
- targets
Sequence[LambdaHook Hook Target] 
- List of hook targets
- targets List<Property Map>
- List of hook targets
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.