Class: AWSCDK::CfnHookDefaultVersionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cfn_hook_default_version_props.rb

Overview

Properties for defining a CfnHookDefaultVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_name: nil, type_version_arn: nil, version_id: nil) ⇒ CfnHookDefaultVersionProps

Returns a new instance of CfnHookDefaultVersionProps.

Parameters:

  • type_name (String, nil) (defaults to: nil)

    The name of the Hook.

  • type_version_arn (String, nil) (defaults to: nil)

    The version ID of the type configuration.

  • version_id (String, nil) (defaults to: nil)

    The version ID of the type specified.



12
13
14
15
16
17
18
19
# File '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_nameString? (readonly)

The name of the Hook.

You must specify either TypeVersionArn , or TypeName and VersionId .



27
28
29
# File 'cfn_hook_default_version_props.rb', line 27

def type_name
  @type_name
end

#type_version_arnString? (readonly)

The version ID of the type configuration.

You must specify either TypeVersionArn , or TypeName and VersionId .



34
35
36
# File 'cfn_hook_default_version_props.rb', line 34

def type_version_arn
  @type_version_arn
end

#version_idString? (readonly)

The version ID of the type specified.

You must specify either TypeVersionArn , or TypeName and VersionId .



41
42
43
# File 'cfn_hook_default_version_props.rb', line 41

def version_id
  @version_id
end

Class Method Details

.jsii_propertiesObject



43
44
45
46
47
48
49
# File '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_jsiiObject



51
52
53
54
55
56
57
58
59
# File '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