Class CfnHook
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
Constructid
stringprops
ICfnHookProps
Properties
Type
The type of the hook (for example, "AWS::CodeDeploy::BlueGreen").
public virtual string Type { get; }
Property Value
Methods
RenderProperties(IDictionary<string, object>?)
protected virtual IDictionary<string, object>? RenderProperties(IDictionary<string, object>? props = null)
Parameters
props
IDictionary<string, object>