Class: AWSCDK::EC2::CfnVPCEndpointServiceProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_vpc_endpoint_service_props.rb

Overview

Properties for defining a CfnVPCEndpointService.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(acceptance_required: nil, contributor_insights_enabled: nil, gateway_load_balancer_arns: nil, network_load_balancer_arns: nil, payer_responsibility: nil, supported_ip_address_types: nil, supported_regions: nil, tags: nil) ⇒ CfnVPCEndpointServiceProps

Returns a new instance of CfnVPCEndpointServiceProps.

Parameters:

  • acceptance_required (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether requests from service consumers to create an endpoint to your service must be accepted.

  • contributor_insights_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink .

  • gateway_load_balancer_arns (Array<String>, nil) (defaults to: nil)

    The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

  • network_load_balancer_arns (Array<String, AWSCDK::Interfaces::AWSElasticloadbalancingv2::ILoadBalancerRef>, nil) (defaults to: nil)

    The Amazon Resource Names (ARNs) of the Network Load Balancers.

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

    The entity that is responsible for the endpoint costs.

  • supported_ip_address_types (Array<String>, nil) (defaults to: nil)

    The supported IP address types.

  • supported_regions (Array<String>, nil) (defaults to: nil)

    The Regions from which service consumers can access the service.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags to associate with the service.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 17

def initialize(acceptance_required: nil, contributor_insights_enabled: nil, gateway_load_balancer_arns: nil, network_load_balancer_arns: nil, payer_responsibility: nil, supported_ip_address_types: nil, supported_regions: nil, tags: nil)
  @acceptance_required = acceptance_required
  Jsii::Type.check_type(@acceptance_required, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "acceptanceRequired") unless @acceptance_required.nil?
  @contributor_insights_enabled = contributor_insights_enabled
  Jsii::Type.check_type(@contributor_insights_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "contributorInsightsEnabled") unless @contributor_insights_enabled.nil?
  @gateway_load_balancer_arns = gateway_load_balancer_arns
  Jsii::Type.check_type(@gateway_load_balancer_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "gatewayLoadBalancerArns") unless @gateway_load_balancer_arns.nil?
  @network_load_balancer_arns = network_load_balancer_arns
  Jsii::Type.check_type(@network_load_balancer_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VsYXN0aWNsb2FkYmFsYW5jaW5ndjIuSUxvYWRCYWxhbmNlclJlZiJ9XX19LCJraW5kIjoiYXJyYXkifX0=")), "networkLoadBalancerArns") unless @network_load_balancer_arns.nil?
  @payer_responsibility = payer_responsibility
  Jsii::Type.check_type(@payer_responsibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "payerResponsibility") unless @payer_responsibility.nil?
  @supported_ip_address_types = supported_ip_address_types
  Jsii::Type.check_type(@supported_ip_address_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "supportedIpAddressTypes") unless @supported_ip_address_types.nil?
  @supported_regions = supported_regions
  Jsii::Type.check_type(@supported_regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "supportedRegions") unless @supported_regions.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

#acceptance_requiredBoolean, ... (readonly)

Indicates whether requests from service consumers to create an endpoint to your service must be accepted.



40
41
42
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 40

def acceptance_required
  @acceptance_required
end

#contributor_insights_enabledBoolean, ... (readonly)

Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink .



45
46
47
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 45

def contributor_insights_enabled
  @contributor_insights_enabled
end

#gateway_load_balancer_arnsArray<String>? (readonly)

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.



50
51
52
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 50

def gateway_load_balancer_arns
  @gateway_load_balancer_arns
end

#network_load_balancer_arnsArray<String, AWSCDK::Interfaces::AWSElasticloadbalancingv2::ILoadBalancerRef>? (readonly)

The Amazon Resource Names (ARNs) of the Network Load Balancers.



55
56
57
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 55

def network_load_balancer_arns
  @network_load_balancer_arns
end

#payer_responsibilityString? (readonly)

The entity that is responsible for the endpoint costs.

The default is the endpoint owner. If you set the payer responsibility to the service owner, you cannot set it back to the endpoint owner.



62
63
64
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 62

def payer_responsibility
  @payer_responsibility
end

#supported_ip_address_typesArray<String>? (readonly)

The supported IP address types.

The possible values are ipv4 and ipv6 .



69
70
71
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 69

def supported_ip_address_types
  @supported_ip_address_types
end

#supported_regionsArray<String>? (readonly)

The Regions from which service consumers can access the service.



74
75
76
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 74

def supported_regions
  @supported_regions
end

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

The tags to associate with the service.



79
80
81
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 79

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



81
82
83
84
85
86
87
88
89
90
91
92
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 81

def self.jsii_properties
  {
    :acceptance_required => "acceptanceRequired",
    :contributor_insights_enabled => "contributorInsightsEnabled",
    :gateway_load_balancer_arns => "gatewayLoadBalancerArns",
    :network_load_balancer_arns => "networkLoadBalancerArns",
    :payer_responsibility => "payerResponsibility",
    :supported_ip_address_types => "supportedIpAddressTypes",
    :supported_regions => "supportedRegions",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'ec2/cfn_vpc_endpoint_service_props.rb', line 94

def to_jsii
  result = {}
  result.merge!({
    "acceptanceRequired" => @acceptance_required,
    "contributorInsightsEnabled" => @contributor_insights_enabled,
    "gatewayLoadBalancerArns" => @gateway_load_balancer_arns,
    "networkLoadBalancerArns" => @network_load_balancer_arns,
    "payerResponsibility" => @payer_responsibility,
    "supportedIpAddressTypes" => @supported_ip_address_types,
    "supportedRegions" => @supported_regions,
    "tags" => @tags,
  })
  result.compact
end