Class: AWSCDK::Interfaces::AWSSmsvoice::ProtectConfigurationReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_smsvoice/protect_configuration_reference.rb

Overview

A reference to a ProtectConfiguration resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protect_configuration_arn:, protect_configuration_id:) ⇒ ProtectConfigurationReference

Returns a new instance of ProtectConfigurationReference.

Parameters:

  • protect_configuration_arn (String)

    The ARN of the ProtectConfiguration resource.

  • protect_configuration_id (String)

    The ProtectConfigurationId of the ProtectConfiguration resource.



9
10
11
12
13
14
# File 'interfaces/aws_smsvoice/protect_configuration_reference.rb', line 9

def initialize(protect_configuration_arn:, protect_configuration_id:)
  @protect_configuration_arn = protect_configuration_arn
  Jsii::Type.check_type(@protect_configuration_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protectConfigurationArn")
  @protect_configuration_id = protect_configuration_id
  Jsii::Type.check_type(@protect_configuration_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protectConfigurationId")
end

Instance Attribute Details

#protect_configuration_arnString (readonly)

The ARN of the ProtectConfiguration resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_smsvoice/protect_configuration_reference.rb', line 19

def protect_configuration_arn
  @protect_configuration_arn
end

#protect_configuration_idString (readonly)

The ProtectConfigurationId of the ProtectConfiguration resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_smsvoice/protect_configuration_reference.rb', line 23

def protect_configuration_id
  @protect_configuration_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_smsvoice/protect_configuration_reference.rb', line 25

def self.jsii_properties
  {
    :protect_configuration_arn => "protectConfigurationArn",
    :protect_configuration_id => "protectConfigurationId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_smsvoice/protect_configuration_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "protectConfigurationArn" => @protect_configuration_arn,
    "protectConfigurationId" => @protect_configuration_id,
  })
  result.compact
end