Package software.amazon.awscdk.core
Class CfnHook
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnHook
- 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();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnHook(software.amazon.jsii.JsiiObjectRef objRef) CfnHook(software.constructs.Construct scope, String id, CfnHookProps props) Creates a new Hook object. -
Method Summary
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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