Class CfnRefElement
Base class for referenceable CloudFormation constructs which are not Resources.
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public abstract class CfnRefElement : CfnElement, IConstruct, IDependable
Syntax (vb)
Public MustInherit Class CfnRefElement
Inherits CfnElement
Implements IConstruct, IDependable
Remarks
These constructs are things like Conditions and Parameters, can be
referenced by taking the .ref
attribute.
Resource constructs do not inherit from CfnRefElement because they have their own, more specific types returned from the .ref attribute. Also, some resources aren't referenceable at all (such as BucketPolicies or GatewayAttachments).
Synopsis
Constructors
CfnRefElement(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnRefElement(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnRefElement(Construct, String) | Creates an entity and binds it to a tree. |
Properties
Ref | Return a string that will be resolved to a CloudFormation |
Constructors
CfnRefElement(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnRefElement(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnRefElement(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnRefElement(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnRefElement(Construct, String)
Creates an entity and binds it to a tree.
protected CfnRefElement(Construct scope, string id)
Parameters
- scope Constructs.Construct
The parent construct.
- id System.String
The parent construct.
Remarks
Note that the root of the tree must be a Stack object (not just any Root).
Properties
Ref
Return a string that will be resolved to a CloudFormation { Ref }
for this element.
public virtual string Ref { get; }
Property Value
System.String
Remarks
If, by any chance, the intrinsic reference of a resource is not a string, you could
coerce it to an IResolvable through Lazy.any({ produce: resource.ref })
.