CfnModuleDefaultVersionProps Struct
Properties for defining a CfnModuleDefaultVersion.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnModuleDefaultVersionProps: cdk.CfnModuleDefaultVersionProps = {
arn: 'arn',
moduleName: 'moduleName',
versionId: 'versionId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
cfn_module_default_version_props = cdk.CfnModuleDefaultVersionProps(
arn="arn",
module_name="moduleName",
version_id="versionId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
CfnModuleDefaultVersionProps cfnModuleDefaultVersionProps = CfnModuleDefaultVersionProps.builder()
.arn("arn")
.moduleName("moduleName")
.versionId("versionId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var cfnModuleDefaultVersionProps = new CfnModuleDefaultVersionProps {
Arn = "arn",
ModuleName = "moduleName",
VersionId = "versionId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
cfnModuleDefaultVersionProps := &CfnModuleDefaultVersionProps{
Arn: jsii.String("arn"),
ModuleName: jsii.String("moduleName"),
VersionId: jsii.String("versionId"),
}
Properties
arnoptionalstring | IModuleVersionRefarnoptionaltyping.Union[str, IModuleVersionRef]arnoptionalStringArnoptionalstringArnoptionalinterface{}#The Amazon Resource Name (ARN) of the module version to set as the default version.
Conditional: You must specify either Arn , or ModuleName and VersionId .
moduleNameoptionalstringmodule_nameoptionalstrmoduleNameoptionalStringModuleNameoptionalstringModuleNameoptional*string#The name of the module.
Conditional: You must specify either Arn , or ModuleName and VersionId .
versionIdoptionalstringversion_idoptionalstrversionIdoptionalStringVersionIdoptionalstringVersionIdoptional*string#The ID for the specific version of the module.
Conditional: You must specify either Arn , or ModuleName and VersionId .