Class CfnResourceDefaultVersion
The AWS::CloudFormation::ResourceDefaultVersion
resource specifies the default version of a resource.
Implements
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourceDefaultVersion : CfnResource, IInspectable
Syntax (vb)
Public Class CfnResourceDefaultVersion
Inherits CfnResource
Implements IInspectable
Remarks
The default version of a resource will be used in CloudFormation operations.
For information about the CloudFormation registry, see Managing extensions with the CloudFormation registry in the AWS CloudFormation User Guide .
CloudformationResource: AWS::CloudFormation::ResourceDefaultVersion
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var cfnResourceDefaultVersion = new CfnResourceDefaultVersion(this, "MyCfnResourceDefaultVersion", new CfnResourceDefaultVersionProps {
TypeName = "typeName",
TypeVersionArn = "typeVersionArn",
VersionId = "versionId"
});
Synopsis
Constructors
CfnResourceDefaultVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnResourceDefaultVersion(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnResourceDefaultVersion(Construct, String, ICfnResourceDefaultVersionProps) |
Properties
AttrArn | The Amazon Resource Name (ARN) of the resource. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
TypeName | The name of the resource. |
TypeVersionArn | The Amazon Resource Name (ARN) of the resource version. |
VersionId | The ID of a specific version of the resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnResourceDefaultVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnResourceDefaultVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnResourceDefaultVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnResourceDefaultVersion(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnResourceDefaultVersion(Construct, String, ICfnResourceDefaultVersionProps)
public CfnResourceDefaultVersion(Construct scope, string id, ICfnResourceDefaultVersionProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnResourceDefaultVersionProps
Resource properties.
Properties
AttrArn
The Amazon Resource Name (ARN) of the resource.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
TypeName
The name of the resource.
public virtual string TypeName { get; set; }
Property Value
System.String
TypeVersionArn
The Amazon Resource Name (ARN) of the resource version.
public virtual string TypeVersionArn { get; set; }
Property Value
System.String
VersionId
The ID of a specific version of the resource.
public virtual string VersionId { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>