Class: AWSCDK::WorkspacesWeb::CfnNetworkSettingsProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WorkspacesWeb::CfnNetworkSettingsProps
- Defined in:
- workspaces_web/cfn_network_settings_props.rb
Overview
Properties for defining a CfnNetworkSettings.
Instance Attribute Summary collapse
-
#security_group_ids ⇒ Array<String>
readonly
One or more security groups used to control access from streaming instances to your VPC.
-
#subnet_ids ⇒ Array<String>
readonly
The subnets in which network interfaces are created to connect streaming instances to your VPC.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags to add to the network settings resource.
-
#vpc_id ⇒ String
readonly
The VPC that streaming instances will connect to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(security_group_ids:, subnet_ids:, vpc_id:, tags: nil) ⇒ CfnNetworkSettingsProps
constructor
A new instance of CfnNetworkSettingsProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(security_group_ids:, subnet_ids:, vpc_id:, tags: nil) ⇒ CfnNetworkSettingsProps
Returns a new instance of CfnNetworkSettingsProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#security_group_ids ⇒ Array<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_ids ⇒ Array<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 |
#tags ⇒ Array<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 end |
#vpc_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |