@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:44.793Z") public class CfnModuleDefaultVersion extends CfnResource implements IInspectable
Specifies the default version of a module. The default version of the module will be used in CloudFormation operations for this account and Region.
To register a module version, use the [AWS::CloudFormation::ModuleVersion](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-moduleversion.html)
resource.
For more information using modules, see Using modules to encapsulate and reuse resource configurations and Registering extensions in the CloudFormation User Guide . For information on developing modules, see Developing modules in the CloudFormation CLI User Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudformation.*; CfnModuleDefaultVersion cfnModuleDefaultVersion = CfnModuleDefaultVersion.Builder.create(this, "MyCfnModuleDefaultVersion") .arn("arn") .moduleName("moduleName") .versionId("versionId") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnModuleDefaultVersion.Builder
A fluent builder for
CfnModuleDefaultVersion . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnModuleDefaultVersion(Construct scope,
java.lang.String id)
Create a new `AWS::CloudFormation::ModuleDefaultVersion`.
|
|
CfnModuleDefaultVersion(Construct scope,
java.lang.String id,
CfnModuleDefaultVersionProps props)
Create a new `AWS::CloudFormation::ModuleDefaultVersion`.
|
protected |
CfnModuleDefaultVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnModuleDefaultVersion(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArn()
The Amazon Resource Name (ARN) of the module version to set as the default version.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getModuleName()
The name of the module.
|
java.lang.String |
getVersionId()
The ID for the specific version of the module.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setArn(java.lang.String value)
The Amazon Resource Name (ARN) of the module version to set as the default version.
|
void |
setModuleName(java.lang.String value)
The name of the module.
|
void |
setVersionId(java.lang.String value)
The ID for the specific version of the module.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnModuleDefaultVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnModuleDefaultVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnModuleDefaultVersion(Construct scope, java.lang.String id, CfnModuleDefaultVersionProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.public CfnModuleDefaultVersion(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getArn()
Conditional: You must specify either Arn
, or ModuleName
and VersionId
.
public void setArn(java.lang.String value)
Conditional: You must specify either Arn
, or ModuleName
and VersionId
.
public java.lang.String getModuleName()
Conditional: You must specify either Arn
, or ModuleName
and VersionId
.
public void setModuleName(java.lang.String value)
Conditional: You must specify either Arn
, or ModuleName
and VersionId
.
public java.lang.String getVersionId()
Conditional: You must specify either Arn
, or ModuleName
and VersionId
.
public void setVersionId(java.lang.String value)
Conditional: You must specify either Arn
, or ModuleName
and VersionId
.