Class: AWSCDK::RTBFabric::CfnResponderGatewayProps

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

Overview

Properties for defining a CfnResponderGateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port:, protocol:, security_group_ids:, subnet_ids:, vpc_id:, acm_certificate_arn: nil, description: nil, domain_name: nil, gateway_type: nil, listener_config: nil, managed_endpoint_configuration: nil, tags: nil, trust_store_configuration: nil) ⇒ CfnResponderGatewayProps

Returns a new instance of CfnResponderGatewayProps.

Parameters:



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 22

def initialize(port:, protocol:, security_group_ids:, subnet_ids:, vpc_id:, acm_certificate_arn: nil, description: nil, domain_name: nil, gateway_type: nil, listener_config: nil, managed_endpoint_configuration: nil, tags: nil, trust_store_configuration: nil)
  @port = port
  Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port")
  @protocol = protocol
  Jsii::Type.check_type(@protocol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocol")
  @security_group_ids = security_group_ids
  Jsii::Type.check_type(@security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU2VjdXJpdHlHcm91cFJlZiJ9XX19LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupIds")
  @subnet_ids = subnet_ids
  Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU3VibmV0UmVmIn1dfX0sImtpbmQiOiJhcnJheSJ9fQ==")), "subnetIds")
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVZQQ1JlZiJ9XX19")), "vpcId")
  @acm_certificate_arn = acm_certificate_arn
  Jsii::Type.check_type(@acm_certificate_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "acmCertificateArn") unless @acm_certificate_arn.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @domain_name = domain_name
  Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName") unless @domain_name.nil?
  @gateway_type = gateway_type
  Jsii::Type.check_type(@gateway_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayType") unless @gateway_type.nil?
  @listener_config = listener_config.is_a?(Hash) ? ::AWSCDK::RTBFabric::CfnResponderGateway::ListenerConfigProperty.new(**listener_config.transform_keys(&:to_sym)) : listener_config
  Jsii::Type.check_type(@listener_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ydGJmYWJyaWMuQ2ZuUmVzcG9uZGVyR2F0ZXdheS5MaXN0ZW5lckNvbmZpZ1Byb3BlcnR5In1dfX0=")), "listenerConfig") unless @listener_config.nil?
  @managed_endpoint_configuration = managed_endpoint_configuration.is_a?(Hash) ? ::AWSCDK::RTBFabric::CfnResponderGateway::ManagedEndpointConfigurationProperty.new(**managed_endpoint_configuration.transform_keys(&:to_sym)) : managed_endpoint_configuration
  Jsii::Type.check_type(@managed_endpoint_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ydGJmYWJyaWMuQ2ZuUmVzcG9uZGVyR2F0ZXdheS5NYW5hZ2VkRW5kcG9pbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "managedEndpointConfiguration") unless @managed_endpoint_configuration.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?
  @trust_store_configuration = trust_store_configuration.is_a?(Hash) ? ::AWSCDK::RTBFabric::CfnResponderGateway::TrustStoreConfigurationProperty.new(**trust_store_configuration.transform_keys(&:to_sym)) : trust_store_configuration
  Jsii::Type.check_type(@trust_store_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ydGJmYWJyaWMuQ2ZuUmVzcG9uZGVyR2F0ZXdheS5UcnVzdFN0b3JlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "trustStoreConfiguration") unless @trust_store_configuration.nil?
end

Instance Attribute Details

#acm_certificate_arnString? (readonly)



78
79
80
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 78

def acm_certificate_arn
  @acm_certificate_arn
end

#descriptionString? (readonly)

An optional description for the responder gateway.



83
84
85
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 83

def description
  @description
end

#domain_nameString? (readonly)

The domain name for the responder gateway.



88
89
90
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 88

def domain_name
  @domain_name
end

#gateway_typeString? (readonly)



91
92
93
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 91

def gateway_type
  @gateway_type
end

#listener_configAWSCDK::IResolvable, ... (readonly)



94
95
96
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 94

def listener_config
  @listener_config
end

#managed_endpoint_configurationAWSCDK::IResolvable, ... (readonly)

The configuration for the managed endpoint.



99
100
101
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 99

def managed_endpoint_configuration
  @managed_endpoint_configuration
end

#portNumeric (readonly)

The networking port to use.



55
56
57
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 55

def port
  @port
end

#protocolString (readonly)

The networking protocol to use.



60
61
62
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 60

def protocol
  @protocol
end

#security_group_idsArray<String, AWSCDK::Interfaces::AWSEC2::ISecurityGroupRef> (readonly)

The unique identifiers of the security groups.



65
66
67
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 65

def security_group_ids
  @security_group_ids
end

#subnet_idsArray<String, AWSCDK::Interfaces::AWSEC2::ISubnetRef> (readonly)

The unique identifiers of the subnets.



70
71
72
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 70

def subnet_ids
  @subnet_ids
end

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

A map of the key-value pairs of the tag or tags to assign to the resource.



104
105
106
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 104

def tags
  @tags
end

#trust_store_configurationAWSCDK::IResolvable, ... (readonly)

The configuration of the trust store.



109
110
111
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 109

def trust_store_configuration
  @trust_store_configuration
end

#vpc_idString, AWSCDK::Interfaces::AWSEC2::IVPCRef (readonly)

The unique identifier of the Virtual Private Cloud (VPC).



75
76
77
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 75

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 111

def self.jsii_properties
  {
    :port => "port",
    :protocol => "protocol",
    :security_group_ids => "securityGroupIds",
    :subnet_ids => "subnetIds",
    :vpc_id => "vpcId",
    :acm_certificate_arn => "acmCertificateArn",
    :description => "description",
    :domain_name => "domainName",
    :gateway_type => "gatewayType",
    :listener_config => "listenerConfig",
    :managed_endpoint_configuration => "managedEndpointConfiguration",
    :tags => "tags",
    :trust_store_configuration => "trustStoreConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'rtb_fabric/cfn_responder_gateway_props.rb', line 129

def to_jsii
  result = {}
  result.merge!({
    "port" => @port,
    "protocol" => @protocol,
    "securityGroupIds" => @security_group_ids,
    "subnetIds" => @subnet_ids,
    "vpcId" => @vpc_id,
    "acmCertificateArn" => @acm_certificate_arn,
    "description" => @description,
    "domainName" => @domain_name,
    "gatewayType" => @gateway_type,
    "listenerConfig" => @listener_config,
    "managedEndpointConfiguration" => @managed_endpoint_configuration,
    "tags" => @tags,
    "trustStoreConfiguration" => @trust_store_configuration,
  })
  result.compact
end