CfnResourceDefaultVersionProps Struct
Properties for defining a CfnResourceDefaultVersion.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudformation as cloudformation } from 'aws-cdk-lib';
const cfnResourceDefaultVersionProps: cloudformation.CfnResourceDefaultVersionProps = {
typeName: 'typeName',
typeVersionArn: 'typeVersionArn',
versionId: 'versionId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudformation as cloudformation
cfn_resource_default_version_props = cloudformation.CfnResourceDefaultVersionProps(
type_name="typeName",
type_version_arn="typeVersionArn",
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.services.cloudformation.*;
CfnResourceDefaultVersionProps cfnResourceDefaultVersionProps = CfnResourceDefaultVersionProps.builder()
.typeName("typeName")
.typeVersionArn("typeVersionArn")
.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.AWS.CloudFormation;
var cfnResourceDefaultVersionProps = new CfnResourceDefaultVersionProps {
TypeName = "typeName",
TypeVersionArn = "typeVersionArn",
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 "github.com/aws/aws-cdk-go/awscdk"
cfnResourceDefaultVersionProps := &CfnResourceDefaultVersionProps{
TypeName: jsii.String("typeName"),
TypeVersionArn: jsii.String("typeVersionArn"),
VersionId: jsii.String("versionId"),
}
Properties
typeNameoptionalstringtype_nameoptionalstrtypeNameoptionalStringTypeNameoptionalstringTypeNameoptional*string#The name of the resource.
Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .
typeVersionArnoptionalstring | IResourceVersionReftype_version_arnoptionaltyping.Union[str, IResourceVersionRef]typeVersionArnoptionalStringTypeVersionArnoptionalstringTypeVersionArnoptionalinterface{}#The Amazon Resource Name (ARN) of the resource version.
Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .
versionIdoptionalstringversion_idoptionalstrversionIdoptionalStringVersionIdoptionalstringVersionIdoptional*string#The ID of a specific version of the resource.
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 .