@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.999Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnModuleDefaultVersion(software.constructs.Construct scope,
String id)
Create a new `AWS::CloudFormation::ModuleDefaultVersion`.
|
|
CfnModuleDefaultVersion(software.constructs.Construct scope,
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 |
|---|---|
String |
getArn()
The Amazon Resource Name (ARN) of the module version to set as the default version.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getModuleName()
The name of the module.
|
String |
getVersionId()
The ID for the specific version of the module.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setArn(String value)
The Amazon Resource Name (ARN) of the module version to set as the default version.
|
void |
setModuleName(String value)
The name of the module.
|
void |
setVersionId(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, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnModuleDefaultVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnModuleDefaultVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnModuleDefaultVersion(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
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.@Stability(value=Stable)
public CfnModuleDefaultVersion(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getArn()
Conditional: You must specify either Arn , or ModuleName and VersionId .
@Stability(value=Stable)
public void setArn(@Nullable
String value)
Conditional: You must specify either Arn , or ModuleName and VersionId .
@Stability(value=Stable) @Nullable public String getModuleName()
Conditional: You must specify either Arn , or ModuleName and VersionId .
@Stability(value=Stable)
public void setModuleName(@Nullable
String value)
Conditional: You must specify either Arn , or ModuleName and VersionId .
@Stability(value=Stable) @Nullable public String getVersionId()
Conditional: You must specify either Arn , or ModuleName and VersionId .
@Stability(value=Stable)
public void setVersionId(@Nullable
String value)
Conditional: You must specify either Arn , or ModuleName and VersionId .
Copyright © 2022. All rights reserved.