Class: AWSCDK::CloudFormation::CfnResourceDefaultVersionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFormation::CfnResourceDefaultVersionProps
- Defined in:
- cloud_formation/cfn_resource_default_version_props.rb
Overview
Properties for defining a CfnResourceDefaultVersion.
Instance Attribute Summary collapse
-
#type_name ⇒ String?
readonly
The name of the resource.
-
#type_version_arn ⇒ String, ...
readonly
The Amazon Resource Name (ARN) of the resource version.
-
#version_id ⇒ String?
readonly
The ID of a specific version of the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type_name: nil, type_version_arn: nil, version_id: nil) ⇒ CfnResourceDefaultVersionProps
constructor
A new instance of CfnResourceDefaultVersionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type_name: nil, type_version_arn: nil, version_id: nil) ⇒ CfnResourceDefaultVersionProps
Returns a new instance of CfnResourceDefaultVersionProps.
12 13 14 15 16 17 18 19 |
# File 'cloud_formation/cfn_resource_default_version_props.rb', line 12 def initialize(type_name: nil, type_version_arn: nil, version_id: nil) @type_name = type_name Jsii::Type.check_type(@type_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "typeName") unless @type_name.nil? @type_version_arn = type_version_arn Jsii::Type.check_type(@type_version_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jbG91ZGZvcm1hdGlvbi5JUmVzb3VyY2VWZXJzaW9uUmVmIn1dfX0=")), "typeVersionArn") unless @type_version_arn.nil? @version_id = version_id Jsii::Type.check_type(@version_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "versionId") unless @version_id.nil? end |
Instance Attribute Details
#type_name ⇒ String? (readonly)
The name of the resource.
Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .
27 28 29 |
# File 'cloud_formation/cfn_resource_default_version_props.rb', line 27 def type_name @type_name end |
#type_version_arn ⇒ String, ... (readonly)
The Amazon Resource Name (ARN) of the resource version.
Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .
34 35 36 |
# File 'cloud_formation/cfn_resource_default_version_props.rb', line 34 def type_version_arn @type_version_arn end |
#version_id ⇒ String? (readonly)
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 .
43 44 45 |
# File 'cloud_formation/cfn_resource_default_version_props.rb', line 43 def version_id @version_id end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 |
# File 'cloud_formation/cfn_resource_default_version_props.rb', line 45 def self.jsii_properties { :type_name => "typeName", :type_version_arn => "typeVersionArn", :version_id => "versionId", } end |
Instance Method Details
#to_jsii ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'cloud_formation/cfn_resource_default_version_props.rb', line 53 def to_jsii result = {} result.merge!({ "typeName" => @type_name, "typeVersionArn" => @type_version_arn, "versionId" => @version_id, }) result.compact end |