We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi
aws-native.cloudformation.getGuardHook
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi
This is a CloudFormation resource for activating the first-party AWS::Hooks::GuardHook.
Using getGuardHook
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGuardHook(args: GetGuardHookArgs, opts?: InvokeOptions): Promise<GetGuardHookResult>
function getGuardHookOutput(args: GetGuardHookOutputArgs, opts?: InvokeOptions): Output<GetGuardHookResult>def get_guard_hook(hook_arn: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetGuardHookResult
def get_guard_hook_output(hook_arn: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetGuardHookResult]func LookupGuardHook(ctx *Context, args *LookupGuardHookArgs, opts ...InvokeOption) (*LookupGuardHookResult, error)
func LookupGuardHookOutput(ctx *Context, args *LookupGuardHookOutputArgs, opts ...InvokeOption) LookupGuardHookResultOutput> Note: This function is named LookupGuardHook in the Go SDK.
public static class GetGuardHook 
{
    public static Task<GetGuardHookResult> InvokeAsync(GetGuardHookArgs args, InvokeOptions? opts = null)
    public static Output<GetGuardHookResult> Invoke(GetGuardHookInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGuardHookResult> getGuardHook(GetGuardHookArgs args, InvokeOptions options)
public static Output<GetGuardHookResult> getGuardHook(GetGuardHookArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:cloudformation:getGuardHook
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Hook
Arn string - The Amazon Resource Name (ARN) of the activated hook
 
- Hook
Arn string - The Amazon Resource Name (ARN) of the activated hook
 
- hook
Arn String - The Amazon Resource Name (ARN) of the activated hook
 
- hook
Arn string - The Amazon Resource Name (ARN) of the activated hook
 
- hook_
arn str - The Amazon Resource Name (ARN) of the activated hook
 
- hook
Arn String - The Amazon Resource Name (ARN) of the activated hook
 
getGuardHook Result
The following output properties are available:
- Failure
Mode Pulumi.Aws Native. Cloud Formation. Guard Hook Failure Mode  - Attribute to specify CloudFormation behavior on hook failure.
 - Hook
Arn string - The Amazon Resource Name (ARN) of the activated hook
 - Hook
Status Pulumi.Aws Native. Cloud Formation. Guard Hook Hook Status  - Attribute to specify which stacks this hook applies to or should get invoked for
 - Log
Bucket string - S3 Bucket where the guard validate report will be uploaded to
 - Options
Pulumi.
Aws Native. Cloud Formation. Outputs. Options Properties  - Specifies the S3 location of your input parameters.
 - Rule
Location Pulumi.Aws Native. Cloud Formation. Outputs. Guard Hook S3Location  - Specifies the S3 location of your Guard rules.
 - Stack
Filters Pulumi.Aws Native. Cloud Formation. Outputs. Stack Filters Properties  - Filters to allow hooks to target specific stack attributes
 - Target
Filters Pulumi.Aws | Pulumi.Native. Cloud Formation. Outputs. Target Filters0Properties Aws Native. Cloud Formation. Outputs. Target Filters1Properties  - Attribute to specify which targets should invoke the hook
 - Target
Operations List<Pulumi.Aws Native. Cloud Formation. Guard Hook Target Operation>  - Which operations should this Hook run against? Resource changes, stacks or change sets.
 
- Failure
Mode GuardHook Failure Mode  - Attribute to specify CloudFormation behavior on hook failure.
 - Hook
Arn string - The Amazon Resource Name (ARN) of the activated hook
 - Hook
Status GuardHook Hook Status  - Attribute to specify which stacks this hook applies to or should get invoked for
 - Log
Bucket string - S3 Bucket where the guard validate report will be uploaded to
 - Options
Options
Properties  - Specifies the S3 location of your input parameters.
 - Rule
Location GuardHook S3Location  - Specifies the S3 location of your Guard rules.
 - Stack
Filters StackFilters Properties  - Filters to allow hooks to target specific stack attributes
 - Target
Filters TargetFilters0Properties | TargetFilters1Properties  - Attribute to specify which targets should invoke the hook
 - Target
Operations []GuardHook Target Operation  - Which operations should this Hook run against? Resource changes, stacks or change sets.
 
- failure
Mode GuardHook Failure Mode  - Attribute to specify CloudFormation behavior on hook failure.
 - hook
Arn String - The Amazon Resource Name (ARN) of the activated hook
 - hook
Status GuardHook Hook Status  - Attribute to specify which stacks this hook applies to or should get invoked for
 - log
Bucket String - S3 Bucket where the guard validate report will be uploaded to
 - options
Options
Properties  - Specifies the S3 location of your input parameters.
 - rule
Location GuardHook S3Location  - Specifies the S3 location of your Guard rules.
 - stack
Filters StackFilters Properties  - Filters to allow hooks to target specific stack attributes
 - target
Filters TargetFilters0Properties | TargetFilters1Properties  - Attribute to specify which targets should invoke the hook
 - target
Operations List<GuardHook Target Operation>  - Which operations should this Hook run against? Resource changes, stacks or change sets.
 
- failure
Mode GuardHook Failure Mode  - Attribute to specify CloudFormation behavior on hook failure.
 - hook
Arn string - The Amazon Resource Name (ARN) of the activated hook
 - hook
Status GuardHook Hook Status  - Attribute to specify which stacks this hook applies to or should get invoked for
 - log
Bucket string - S3 Bucket where the guard validate report will be uploaded to
 - options
Options
Properties  - Specifies the S3 location of your input parameters.
 - rule
Location GuardHook S3Location  - Specifies the S3 location of your Guard rules.
 - stack
Filters StackFilters Properties  - Filters to allow hooks to target specific stack attributes
 - target
Filters TargetFilters0Properties | TargetFilters1Properties  - Attribute to specify which targets should invoke the hook
 - target
Operations GuardHook Target Operation[]  - Which operations should this Hook run against? Resource changes, stacks or change sets.
 
- failure_
mode GuardHook Failure Mode  - Attribute to specify CloudFormation behavior on hook failure.
 - hook_
arn str - The Amazon Resource Name (ARN) of the activated hook
 - hook_
status GuardHook Hook Status  - Attribute to specify which stacks this hook applies to or should get invoked for
 - log_
bucket str - S3 Bucket where the guard validate report will be uploaded to
 - options
Options
Properties  - Specifies the S3 location of your input parameters.
 - rule_
location GuardHook S3Location  - Specifies the S3 location of your Guard rules.
 - stack_
filters StackFilters Properties  - Filters to allow hooks to target specific stack attributes
 - target_
filters TargetFilters0Properties | TargetFilters1Properties  - Attribute to specify which targets should invoke the hook
 - target_
operations Sequence[GuardHook Target Operation]  - Which operations should this Hook run against? Resource changes, stacks or change sets.
 
- failure
Mode "FAIL" | "WARN" - Attribute to specify CloudFormation behavior on hook failure.
 - hook
Arn String - The Amazon Resource Name (ARN) of the activated hook
 - hook
Status "ENABLED" | "DISABLED" - Attribute to specify which stacks this hook applies to or should get invoked for
 - log
Bucket String - S3 Bucket where the guard validate report will be uploaded to
 - options Property Map
 - Specifies the S3 location of your input parameters.
 - rule
Location Property Map - Specifies the S3 location of your Guard rules.
 - stack
Filters Property Map - Filters to allow hooks to target specific stack attributes
 - target
Filters Property Map | Property Map - Attribute to specify which targets should invoke the hook
 - target
Operations List<"RESOURCE" | "STACK" | "CHANGE_SET" | "CLOUD_CONTROL"> - Which operations should this Hook run against? Resource changes, stacks or change sets.
 
Supporting Types
GuardHookFailureMode   
GuardHookHookStatus   
GuardHookS3Location  
- uri str
 - S3 uri of Guard files.
 - version_
id str - S3 object version
 
GuardHookTargetOperation   
LambdaHookAction  
LambdaHookHookTarget   
LambdaHookInvocationPoint   
LambdaHookStackFiltersPropertiesFilteringCriteria      
OptionsProperties 
- Input
Params Pulumi.Aws Native. Cloud Formation. Inputs. Guard Hook 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.
 
- input
Params 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.
 
- input_
params GuardHook S3Location  - Specifies the S3 location where your input parameters are located.
 
- input
Params Property Map - Specifies the S3 location where your input parameters are located.
 
StackFiltersProperties  
- Filtering
Criteria 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
 - Stack
Names Pulumi.Aws Native. Cloud Formation. Inputs. Stack Filters Properties Stack Names Properties  - List of stack names as filters
 - Stack
Roles Pulumi.Aws Native. Cloud Formation. Inputs. Stack Filters 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.
 
- 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.
 
- 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.
 
- 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.
 
- filtering
Criteria "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
 - stack
Names Property Map - List of stack names as filters
 - stack
Roles Property Map - List of stack roles that are performing the stack operations.
 
StackFiltersPropertiesStackNamesProperties     
StackFiltersPropertiesStackRolesProperties     
TargetFilters0Properties 
- Actions
List<Pulumi.
Aws Native. Cloud Formation. Lambda Hook Action>  - List of actions that the hook is going to target
 - Invocation
Points List<Pulumi.Aws Native. Cloud Formation. Lambda Hook Invocation Point>  - List of invocation points that the hook is going to target
 - Target
Names List<string> - List of type names that the hook is going to target
 
- Actions
[]Lambda
Hook Action  - List of actions that the hook is going to target
 - Invocation
Points []LambdaHook Invocation Point  - List of invocation points that the hook is going to target
 - Target
Names []string - List of type names that the hook is going to target
 
- actions
List<Lambda
Hook Action>  - List of actions that the hook is going to target
 - invocation
Points List<LambdaHook Invocation Point>  - List of invocation points that the hook is going to target
 - target
Names List<String> - List of type names that the hook is going to target
 
- actions
Lambda
Hook Action[]  - List of actions that the hook is going to target
 - invocation
Points LambdaHook Invocation Point[]  - List of invocation points that the hook is going to target
 - target
Names string[] - List of type names that the hook is going to target
 
- actions
Sequence[Lambda
Hook 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
 - invocation
Points List<"PRE_PROVISION"> - List of invocation points that the hook is going to target
 - target
Names List<String> - List of type names that the hook is going to target
 
TargetFilters1Properties 
- Targets
List<Pulumi.
Aws Native. Cloud Formation. Inputs. Lambda Hook Hook Target>  - List of hook targets
 
- Targets
[]Lambda
Hook Hook Target  - List of hook targets
 
- targets
List<Lambda
Hook Hook Target>  - List of hook targets
 
- targets
Lambda
Hook Hook Target[]  - List of hook targets
 
- targets
Sequence[Lambda
Hook 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.
AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi