Class CfnHook
Represents a CloudFormation resource.
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public class CfnHook : CfnElement, IConstruct, IDependable
Syntax (vb)
Public Class CfnHook
Inherits CfnElement
Implements IConstruct, IDependable
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>
Implements
Constructs.IConstruct