Show / Hide Table of Contents

Class CfnHook

Represents a CloudFormation resource.

Inheritance
System.Object
CfnElement
CfnHook
CfnCodeDeployBlueGreenHook
Inherited Members
CfnElement.IsCfnElement(Object)
CfnElement.OverrideLogicalId(String)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnHook : CfnElement
Syntax (vb)
Public Class CfnHook
    Inherits CfnElement
Remarks

ExampleMetadata: infused

Examples
CfnInclude cfnTemplate;

// mutating the hook
Role myRole;

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

Synopsis

Constructors

CfnHook(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

CfnHook(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

CfnHook(Construct, String, ICfnHookProps)

Creates a new Hook object.

Properties

Type

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

Methods

RenderProperties(IDictionary<String, Object>)

Constructors

CfnHook(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected CfnHook(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

CfnHook(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected CfnHook(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

CfnHook(Construct, String, ICfnHookProps)

Creates a new Hook object.

public CfnHook(Construct scope, string id, ICfnHookProps props)
Parameters
scope Constructs.Construct
id System.String
props ICfnHookProps

Properties

Type

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

public virtual string Type { get; }
Property Value

System.String

Methods

RenderProperties(IDictionary<String, Object>)

protected virtual IDictionary<string, object> RenderProperties(IDictionary<string, object> props = null)
Parameters
props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns

System.Collections.Generic.IDictionary<System.String, System.Object>

Back to top Generated by DocFX