Class ResourceNode

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable, ISerializableEntity, ISerializableNode

    @Generated(value="jsii-pacmak/1.82.0 (build 2d2ddd7)",
               date="2023-08-24T23:07:44.486Z")
    @Stability(Experimental)
    public class ResourceNode
    extends Node
    (experimental) ResourceNode class defines a L2 cdk resource construct.
    • Field Detail

      • ATT_WRAPPED_CFN_PROPS

        @Stability(Experimental)
        public static final String ATT_WRAPPED_CFN_PROPS
        (experimental) Attribute key for cfn properties.
      • ATT_WRAPPED_CFN_TYPE

        @Stability(Experimental)
        public static final String ATT_WRAPPED_CFN_TYPE
        (experimental) Attribute key for cfn resource type.
    • Constructor Detail

      • ResourceNode

        protected ResourceNode​(software.amazon.jsii.JsiiObjectRef objRef)
      • ResourceNode

        protected ResourceNode​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • ResourceNode

        @Stability(Experimental)
        public ResourceNode​(@NotNull
                            IResourceNodeProps props)
        Parameters:
        props - This parameter is required.
    • Method Detail

      • isResourceNode

        @Stability(Experimental)
        @NotNull
        public static Boolean isResourceNode​(@NotNull
                                             Node node)
        (experimental) Indicates if node is a ResourceNode.

        Parameters:
        node - This parameter is required.
      • mutateCfnResource

        @Stability(Experimental)
        public void mutateCfnResource​(@Nullable
                                      CfnResourceNode cfnResource)
        (experimental) Modifies the L1 resource wrapped by this L2 resource.

        Parameters:
        cfnResource -
      • mutateCfnResource

        @Stability(Experimental)
        public void mutateCfnResource()
        (experimental) Modifies the L1 resource wrapped by this L2 resource.
      • mutateRemoveChild

        @Stability(Experimental)
        @NotNull
        public Boolean mutateRemoveChild​(@NotNull
                                         Node node)
        (experimental) Remove a child node from this node.

        Overrides:
        mutateRemoveChild in class Node
        Parameters:
        node - This parameter is required.
      • getIsCdkOwned

        @Stability(Experimental)
        @NotNull
        public Boolean getIsCdkOwned()
        (experimental) Indicates if this resource is owned by cdk (defined in cdk library).
      • getIsWrapper

        @Stability(Experimental)
        @NotNull
        public Boolean getIsWrapper()
        (experimental) Indicates if Resource wraps a single CfnResource.
      • getCfnProps

        @Stability(Experimental)
        @Nullable
        public PlainObject getCfnProps()
        (experimental) Get the cfn properties from the L1 resource that this L2 resource wraps.
        Overrides:
        getCfnProps in class Node
      • getCfnResource

        @Stability(Experimental)
        @Nullable
        public CfnResourceNode getCfnResource()
        (experimental) Get the default/primary CfnResource that this Resource wraps.
      • getCfnType

        @Stability(Experimental)
        @Nullable
        public String getCfnType()
        (experimental) Get the CloudFormation resource type for this L2 resource or for the L1 resource is wraps.
        Overrides:
        getCfnType in class Node