Table of Contents

Class CfnResourceDefaultVersion

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

A CloudFormation AWS::CloudFormation::ResourceDefaultVersion.

public class CfnResourceDefaultVersion : CfnResource, IConstruct, IConstruct, IDependable, IInspectable
Inheritance
CfnResourceDefaultVersion
Implements
IConstruct
Inherited Members

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"
             });

Remarks

Specifies the default version of a resource. The default version of a resource will be used in CloudFormation operations.

CloudformationResource: AWS::CloudFormation::ResourceDefaultVersion

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-resourcedefaultversion.html

ExampleMetadata: fixture=_generated

Constructors

CfnResourceDefaultVersion(Construct, string, ICfnResourceDefaultVersionProps?)

Create a new AWS::CloudFormation::ResourceDefaultVersion.

public CfnResourceDefaultVersion(Construct scope, string id, ICfnResourceDefaultVersionProps? props = null)

Parameters

scope Construct
  • scope in which this resource is defined.
id string
  • scoped id of the resource.
props ICfnResourceDefaultVersionProps
  • resource properties.

Properties

AttrArn

The Amazon Resource Name (ARN) of the resource.

public virtual string AttrArn { get; }

Property Value

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

string

CfnProperties

protected override IDictionary<string, object> CfnProperties { get; }

Property Value

IDictionary<string, object>

TypeName

The name of the resource.

public virtual string? TypeName { get; set; }

Property Value

string

Remarks

TypeVersionArn

The Amazon Resource Name (ARN) of the resource version.

public virtual string? TypeVersionArn { get; set; }

Property Value

string

Remarks

VersionId

The ID of a specific version of the resource.

public virtual string? VersionId { get; set; }

Property Value

string

Remarks

The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the resource version when it's registered.

Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-resourcedefaultversion.html#cfn-cloudformation-resourcedefaultversion-versionid

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 IDictionary<string, object>

Returns

IDictionary<string, object>