@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:44.803Z") public class CfnResourceDefaultVersion extends CfnResource implements IInspectable
Specifies the default version of a resource. The default version of a resource will be used in CloudFormation operations.
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.*; CfnResourceDefaultVersion cfnResourceDefaultVersion = CfnResourceDefaultVersion.Builder.create(this, "MyCfnResourceDefaultVersion") .typeName("typeName") .typeVersionArn("typeVersionArn") .versionId("versionId") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnResourceDefaultVersion.Builder
A fluent builder for
CfnResourceDefaultVersion . |
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 |
---|---|
|
CfnResourceDefaultVersion(Construct scope,
java.lang.String id)
Create a new `AWS::CloudFormation::ResourceDefaultVersion`.
|
|
CfnResourceDefaultVersion(Construct scope,
java.lang.String id,
CfnResourceDefaultVersionProps props)
Create a new `AWS::CloudFormation::ResourceDefaultVersion`.
|
protected |
CfnResourceDefaultVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnResourceDefaultVersion(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
The Amazon Resource Name (ARN) of the resource.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getTypeName()
The name of the resource.
|
java.lang.String |
getTypeVersionArn()
The Amazon Resource Name (ARN) of the resource version.
|
java.lang.String |
getVersionId()
The ID of a specific version of the resource.
|
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 |
setTypeName(java.lang.String value)
The name of the resource.
|
void |
setTypeVersionArn(java.lang.String value)
The Amazon Resource Name (ARN) of the resource version.
|
void |
setVersionId(java.lang.String value)
The ID of a specific version of the resource.
|
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 CfnResourceDefaultVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnResourceDefaultVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnResourceDefaultVersion(Construct scope, java.lang.String id, CfnResourceDefaultVersionProps 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 CfnResourceDefaultVersion(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.public java.lang.String getAttrArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getTypeName()
Conditional: You must specify either TypeVersionArn
, or TypeName
and VersionId
.
public void setTypeName(java.lang.String value)
Conditional: You must specify either TypeVersionArn
, or TypeName
and VersionId
.
public java.lang.String getTypeVersionArn()
Conditional: You must specify either TypeVersionArn
, or TypeName
and VersionId
.
public void setTypeVersionArn(java.lang.String value)
Conditional: You must specify either TypeVersionArn
, or TypeName
and VersionId
.
public java.lang.String getVersionId()
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
.
public void setVersionId(java.lang.String value)
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
.