Class: AWSCDK::AppConfig::ExtensionAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_config/extension_attributes.rb

Overview

Attributes of an existing AWS AppConfig extension to import.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(extension_id:, extension_version_number:, actions: nil, description: nil, extension_arn: nil, name: nil) ⇒ ExtensionAttributes

Returns a new instance of ExtensionAttributes.

Parameters:

  • extension_id (String)

    The ID of the extension.

  • extension_version_number (Numeric)

    The version number of the extension.

  • actions (Array<AWSCDK::AppConfig::Action>, nil) (defaults to: nil)

    The actions of the extension.

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

    The description of the extension.

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

    The Amazon Resource Name (ARN) of the extension.

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

    The name of the extension.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'app_config/extension_attributes.rb', line 13

def initialize(extension_id:, extension_version_number:, actions: nil, description: nil, extension_arn: nil, name: nil)
  @extension_id = extension_id
  Jsii::Type.check_type(@extension_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "extensionId")
  @extension_version_number = extension_version_number
  Jsii::Type.check_type(@extension_version_number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "extensionVersionNumber")
  @actions = actions
  Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBjb25maWcuQWN0aW9uIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "actions") unless @actions.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @extension_arn = extension_arn
  Jsii::Type.check_type(@extension_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "extensionArn") unless @extension_arn.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
end

Instance Attribute Details

#actionsArray<AWSCDK::AppConfig::Action>? (readonly)

Note:

Default: - None.

The actions of the extension.

Returns:



40
41
42
# File 'app_config/extension_attributes.rb', line 40

def actions
  @actions
end

#descriptionString? (readonly)

Note:

Default: - None.

The description of the extension.

Returns:

  • (String, nil)


45
46
47
# File 'app_config/extension_attributes.rb', line 45

def description
  @description
end

#extension_arnString? (readonly)

Note:

Default: - The extension ARN is generated.

The Amazon Resource Name (ARN) of the extension.

Returns:

  • (String, nil)


50
51
52
# File 'app_config/extension_attributes.rb', line 50

def extension_arn
  @extension_arn
end

#extension_idString (readonly)

The ID of the extension.

Returns:

  • (String)


31
32
33
# File 'app_config/extension_attributes.rb', line 31

def extension_id
  @extension_id
end

#extension_version_numberNumeric (readonly)

The version number of the extension.

Returns:

  • (Numeric)


35
36
37
# File 'app_config/extension_attributes.rb', line 35

def extension_version_number
  @extension_version_number
end

#nameString? (readonly)

Note:

Default: - None.

The name of the extension.

Returns:

  • (String, nil)


55
56
57
# File 'app_config/extension_attributes.rb', line 55

def name
  @name
end

Class Method Details

.jsii_propertiesObject



57
58
59
60
61
62
63
64
65
66
# File 'app_config/extension_attributes.rb', line 57

def self.jsii_properties
  {
    :extension_id => "extensionId",
    :extension_version_number => "extensionVersionNumber",
    :actions => "actions",
    :description => "description",
    :extension_arn => "extensionArn",
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



68
69
70
71
72
73
74
75
76
77
78
79
# File 'app_config/extension_attributes.rb', line 68

def to_jsii
  result = {}
  result.merge!({
    "extensionId" => @extension_id,
    "extensionVersionNumber" => @extension_version_number,
    "actions" => @actions,
    "description" => @description,
    "extensionArn" => @extension_arn,
    "name" => @name,
  })
  result.compact
end