Table of Contents

Class CfnHook

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

Represents a CloudFormation resource.

public class CfnHook : CfnElement, IConstruct, IConstruct, IDependable
Inheritance
CfnHook
Implements
IConstruct
Derived
Inherited Members

Examples

CfnInclude cfnTemplate;

            // mutating the hook
            Role myRole;

            var hook = cfnTemplate.GetHook("MyOutput");
            var codeDeployHook = (CfnCodeDeployBlueGreenHook)hook;
            codeDeployHook.ServiceRole = myRole.RoleArn;

Remarks

ExampleMetadata: infused

Constructors

CfnHook(Construct, string, ICfnHookProps)

Creates a new Hook object.

public CfnHook(Construct scope, string id, ICfnHookProps props)

Parameters

scope Construct
id string
props ICfnHookProps

Properties

Type

The type of the hook (for example, "AWS::CodeDeploy::BlueGreen").

public virtual string Type { get; }

Property Value

string

Methods

RenderProperties(IDictionary<string, object>?)

protected virtual IDictionary<string, object>? RenderProperties(IDictionary<string, object>? props = null)

Parameters

props IDictionary<string, object>

Returns

IDictionary<string, object>