Class: AWSCDK::RTBFabric::CfnOutboundExternalLinkProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rtb_fabric/cfn_outbound_external_link_props.rb

Overview

Properties for defining a CfnOutboundExternalLink.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gateway_id:, link_log_settings:, public_endpoint:, link_attributes: nil, tags: nil) ⇒ CfnOutboundExternalLinkProps

Returns a new instance of CfnOutboundExternalLinkProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'rtb_fabric/cfn_outbound_external_link_props.rb', line 14

def initialize(gateway_id:, link_log_settings:, public_endpoint:, link_attributes: nil, tags: nil)
  @gateway_id = gateway_id
  Jsii::Type.check_type(@gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayId")
  @link_log_settings = link_log_settings.is_a?(Hash) ? ::AWSCDK::RTBFabric::CfnOutboundExternalLink::LinkLogSettingsProperty.new(**link_log_settings.transform_keys(&:to_sym)) : link_log_settings
  Jsii::Type.check_type(@link_log_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ydGJmYWJyaWMuQ2ZuT3V0Ym91bmRFeHRlcm5hbExpbmsuTGlua0xvZ1NldHRpbmdzUHJvcGVydHkifV19fQ==")), "linkLogSettings")
  @public_endpoint = public_endpoint
  Jsii::Type.check_type(@public_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "publicEndpoint")
  @link_attributes = link_attributes.is_a?(Hash) ? ::AWSCDK::RTBFabric::CfnOutboundExternalLink::LinkAttributesProperty.new(**link_attributes.transform_keys(&:to_sym)) : link_attributes
  Jsii::Type.check_type(@link_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ydGJmYWJyaWMuQ2ZuT3V0Ym91bmRFeHRlcm5hbExpbmsuTGlua0F0dHJpYnV0ZXNQcm9wZXJ0eSJ9XX19")), "linkAttributes") unless @link_attributes.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#gateway_idString (readonly)



29
30
31
# File 'rtb_fabric/cfn_outbound_external_link_props.rb', line 29

def gateway_id
  @gateway_id
end


38
39
40
# File 'rtb_fabric/cfn_outbound_external_link_props.rb', line 38

def link_attributes
  @link_attributes
end

#public_endpointString (readonly)



35
36
37
# File 'rtb_fabric/cfn_outbound_external_link_props.rb', line 35

def public_endpoint
  @public_endpoint
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

Tags to assign to the Link.



43
44
45
# File 'rtb_fabric/cfn_outbound_external_link_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
53
# File 'rtb_fabric/cfn_outbound_external_link_props.rb', line 45

def self.jsii_properties
  {
    :gateway_id => "gatewayId",
    :link_log_settings => "linkLogSettings",
    :public_endpoint => "publicEndpoint",
    :link_attributes => "linkAttributes",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



55
56
57
58
59
60
61
62
63
64
65
# File 'rtb_fabric/cfn_outbound_external_link_props.rb', line 55

def to_jsii
  result = {}
  result.merge!({
    "gatewayId" => @gateway_id,
    "linkLogSettings" => @link_log_settings,
    "publicEndpoint" => @public_endpoint,
    "linkAttributes" => @link_attributes,
    "tags" => @tags,
  })
  result.compact
end