Class: AWSCDK::DeviceFarm::CfnVPCEConfigurationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
device_farm/cfn_vpce_configuration_props.rb

Overview

Properties for defining a CfnVPCEConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service_dns_name:, vpce_configuration_name:, vpce_service_name:, tags: nil, vpce_configuration_description: nil) ⇒ CfnVPCEConfigurationProps

Returns a new instance of CfnVPCEConfigurationProps.

Parameters:

  • service_dns_name (String)

    The DNS name that Device Farm will use to map to the private service you want to access.

  • vpce_configuration_name (String)

    The friendly name you give to your VPC endpoint configuration to manage your configurations more easily.

  • vpce_service_name (String)

    The name of the VPC endpoint service that you want to access from Device Farm.

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

    An array of key-value pairs to apply to this resource.

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

    An optional description that provides details about your VPC endpoint configuration.



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

def initialize(service_dns_name:, vpce_configuration_name:, vpce_service_name:, tags: nil, vpce_configuration_description: nil)
  @service_dns_name = service_dns_name
  Jsii::Type.check_type(@service_dns_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceDnsName")
  @vpce_configuration_name = vpce_configuration_name
  Jsii::Type.check_type(@vpce_configuration_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpceConfigurationName")
  @vpce_service_name = vpce_service_name
  Jsii::Type.check_type(@vpce_service_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpceServiceName")
  @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?
  @vpce_configuration_description = vpce_configuration_description
  Jsii::Type.check_type(@vpce_configuration_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpceConfigurationDescription") unless @vpce_configuration_description.nil?
end

Instance Attribute Details

#service_dns_nameString (readonly)

The DNS name that Device Farm will use to map to the private service you want to access.



31
32
33
# File 'device_farm/cfn_vpce_configuration_props.rb', line 31

def service_dns_name
  @service_dns_name
end

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

An array of key-value pairs to apply to this resource.

For more information, see Tag in the guide .



50
51
52
# File 'device_farm/cfn_vpce_configuration_props.rb', line 50

def tags
  @tags
end

#vpce_configuration_descriptionString? (readonly)

An optional description that provides details about your VPC endpoint configuration.



55
56
57
# File 'device_farm/cfn_vpce_configuration_props.rb', line 55

def vpce_configuration_description
  @vpce_configuration_description
end

#vpce_configuration_nameString (readonly)

The friendly name you give to your VPC endpoint configuration to manage your configurations more easily.



36
37
38
# File 'device_farm/cfn_vpce_configuration_props.rb', line 36

def vpce_configuration_name
  @vpce_configuration_name
end

#vpce_service_nameString (readonly)

The name of the VPC endpoint service that you want to access from Device Farm.

The name follows the format com.amazonaws.vpce.us-west-2.vpce-svc-id .



43
44
45
# File 'device_farm/cfn_vpce_configuration_props.rb', line 43

def vpce_service_name
  @vpce_service_name
end

Class Method Details

.jsii_propertiesObject



57
58
59
60
61
62
63
64
65
# File 'device_farm/cfn_vpce_configuration_props.rb', line 57

def self.jsii_properties
  {
    :service_dns_name => "serviceDnsName",
    :vpce_configuration_name => "vpceConfigurationName",
    :vpce_service_name => "vpceServiceName",
    :tags => "tags",
    :vpce_configuration_description => "vpceConfigurationDescription",
  }
end

Instance Method Details

#to_jsiiObject



67
68
69
70
71
72
73
74
75
76
77
# File 'device_farm/cfn_vpce_configuration_props.rb', line 67

def to_jsii
  result = {}
  result.merge!({
    "serviceDnsName" => @service_dns_name,
    "vpceConfigurationName" => @vpce_configuration_name,
    "vpceServiceName" => @vpce_service_name,
    "tags" => @tags,
    "vpceConfigurationDescription" => @vpce_configuration_description,
  })
  result.compact
end