Class: AWSCDK::WorkspacesWeb::CfnNetworkSettingsProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_web/cfn_network_settings_props.rb

Overview

Properties for defining a CfnNetworkSettings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(security_group_ids:, subnet_ids:, vpc_id:, tags: nil) ⇒ CfnNetworkSettingsProps

Returns a new instance of CfnNetworkSettingsProps.

Parameters:

  • security_group_ids (Array<String>)

    One or more security groups used to control access from streaming instances to your VPC.

  • subnet_ids (Array<String>)

    The subnets in which network interfaces are created to connect streaming instances to your VPC.

  • vpc_id (String)

    The VPC that streaming instances will connect to.

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

    The tags to add to the network settings resource.



13
14
15
16
17
18
19
20
21
22
# File 'workspaces_web/cfn_network_settings_props.rb', line 13

def initialize(security_group_ids:, subnet_ids:, vpc_id:, tags: nil)
  @security_group_ids = security_group_ids
  Jsii::Type.check_type(@security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupIds")
  @subnet_ids = subnet_ids
  Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "subnetIds")
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcId")
  @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

#security_group_idsArray<String> (readonly)

One or more security groups used to control access from streaming instances to your VPC.

Pattern : ^[\w+\-]+$



30
31
32
# File 'workspaces_web/cfn_network_settings_props.rb', line 30

def security_group_ids
  @security_group_ids
end

#subnet_idsArray<String> (readonly)

The subnets in which network interfaces are created to connect streaming instances to your VPC.

At least two of these subnets must be in different availability zones.

Pattern : ^subnet-([0-9a-f]{8}|[0-9a-f]{17})$



39
40
41
# File 'workspaces_web/cfn_network_settings_props.rb', line 39

def subnet_ids
  @subnet_ids
end

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

The tags to add to the network settings resource.

A tag is a key-value pair.



53
54
55
# File 'workspaces_web/cfn_network_settings_props.rb', line 53

def tags
  @tags
end

#vpc_idString (readonly)

The VPC that streaming instances will connect to.

Pattern : ^vpc-[0-9a-z]*$



46
47
48
# File 'workspaces_web/cfn_network_settings_props.rb', line 46

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



55
56
57
58
59
60
61
62
# File 'workspaces_web/cfn_network_settings_props.rb', line 55

def self.jsii_properties
  {
    :security_group_ids => "securityGroupIds",
    :subnet_ids => "subnetIds",
    :vpc_id => "vpcId",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



64
65
66
67
68
69
70
71
72
73
# File 'workspaces_web/cfn_network_settings_props.rb', line 64

def to_jsii
  result = {}
  result.merge!({
    "securityGroupIds" => @security_group_ids,
    "subnetIds" => @subnet_ids,
    "vpcId" => @vpc_id,
    "tags" => @tags,
  })
  result.compact
end