Class: AWSCDK::CloudFormation::CfnHookDefaultVersionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFormation::CfnHookDefaultVersionProps
- Defined in:
- cloud_formation/cfn_hook_default_version_props.rb
Overview
Properties for defining a CfnHookDefaultVersion.
Instance Attribute Summary collapse
-
#type_name ⇒ String?
readonly
The name of the Hook.
-
#type_version_arn ⇒ String?
readonly
The version ID of the type configuration.
-
#version_id ⇒ String?
readonly
The version ID of the type specified.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type_name: nil, type_version_arn: nil, version_id: nil) ⇒ CfnHookDefaultVersionProps
constructor
A new instance of CfnHookDefaultVersionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type_name: nil, type_version_arn: nil, version_id: nil) ⇒ CfnHookDefaultVersionProps
Returns a new instance of CfnHookDefaultVersionProps.
12 13 14 15 16 17 18 19 |
# File 'cloud_formation/cfn_hook_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("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "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 Hook.
You must specify either TypeVersionArn , or TypeName and VersionId .
27 28 29 |
# File 'cloud_formation/cfn_hook_default_version_props.rb', line 27 def type_name @type_name end |
#type_version_arn ⇒ String? (readonly)
The version ID of the type configuration.
You must specify either TypeVersionArn , or TypeName and VersionId .
34 35 36 |
# File 'cloud_formation/cfn_hook_default_version_props.rb', line 34 def type_version_arn @type_version_arn end |
#version_id ⇒ String? (readonly)
The version ID of the type specified.
You must specify either TypeVersionArn , or TypeName and VersionId .
41 42 43 |
# File 'cloud_formation/cfn_hook_default_version_props.rb', line 41 def version_id @version_id end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 |
# File 'cloud_formation/cfn_hook_default_version_props.rb', line 43 def self.jsii_properties { :type_name => "typeName", :type_version_arn => "typeVersionArn", :version_id => "versionId", } end |
Instance Method Details
#to_jsii ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'cloud_formation/cfn_hook_default_version_props.rb', line 51 def to_jsii result = {} result.merge!({ "typeName" => @type_name, "typeVersionArn" => @type_version_arn, "versionId" => @version_id, }) result.compact end |