Class CfnModuleDefaultVersion
Specifies the default version of a module.
Implements
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnModuleDefaultVersion : CfnResource, IInspectable
Syntax (vb)
Public Class CfnModuleDefaultVersion
Inherits CfnResource
Implements IInspectable
Remarks
The default version of the module will be used in CloudFormation operations for this account and Region.
For more information, see Create reusable resource configurations that can be included across templates with CloudFormation modules in the AWS CloudFormation User Guide .
For information about the CloudFormation registry, see Managing extensions with the CloudFormation registry in the AWS CloudFormation User Guide .
CloudformationResource: AWS::CloudFormation::ModuleDefaultVersion
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 cfnModuleDefaultVersion = new CfnModuleDefaultVersion(this, "MyCfnModuleDefaultVersion", new CfnModuleDefaultVersionProps {
Arn = "arn",
ModuleName = "moduleName",
VersionId = "versionId"
});
Synopsis
Constructors
CfnModuleDefaultVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnModuleDefaultVersion(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnModuleDefaultVersion(Construct, String, ICfnModuleDefaultVersionProps) |
Properties
Arn | The Amazon Resource Name (ARN) of the module version to set as the default version. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ModuleName | The name of the module. |
VersionId | The ID for the specific version of the module. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnModuleDefaultVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnModuleDefaultVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnModuleDefaultVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnModuleDefaultVersion(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnModuleDefaultVersion(Construct, String, ICfnModuleDefaultVersionProps)
public CfnModuleDefaultVersion(Construct scope, string id, ICfnModuleDefaultVersionProps 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 ICfnModuleDefaultVersionProps
Resource properties.
Properties
Arn
The Amazon Resource Name (ARN) of the module version to set as the default version.
public virtual string Arn { get; set; }
Property Value
System.String
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
ModuleName
The name of the module.
public virtual string ModuleName { get; set; }
Property Value
System.String
VersionId
The ID for the specific version of the module.
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>