Class CfnHook

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct
Direct Known Subclasses:
CfnCodeDeployBlueGreenHook

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:54.841Z") @Stability(Stable) public class CfnHook extends CfnElement
Represents a CloudFormation resource.

Example:

 CfnInclude cfnTemplate;
 // mutating the hook
 Role myRole;
 CfnHook hook = cfnTemplate.getHook("MyOutput");
 CfnCodeDeployBlueGreenHook codeDeployHook = (CfnCodeDeployBlueGreenHook)hook;
 codeDeployHook.getServiceRole() = myRole.getRoleArn();
 
  • Constructor Details

    • CfnHook

      protected CfnHook(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnHook

      protected CfnHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnHook

      @Stability(Stable) public CfnHook(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnHookProps props)
      Creates a new Hook object.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • renderProperties

      @Stability(Stable) @Nullable protected Map<String,Object> renderProperties(@Nullable Map<String,Object> props)
      Parameters:
      props -
    • renderProperties

      @Stability(Stable) @Nullable protected Map<String,Object> renderProperties()
    • getType

      @Stability(Stable) @NotNull public String getType()
      The type of the hook (for example, "AWS::CodeDeploy::BlueGreen").