Class: AWSCDK::MediaConnect::CfnGatewayProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_connect/cfn_gateway_props.rb

Overview

Properties for defining a CfnGateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(egress_cidr_blocks:, name:, networks:) ⇒ CfnGatewayProps

Returns a new instance of CfnGatewayProps.

Parameters:



12
13
14
15
16
17
18
19
# File 'media_connect/cfn_gateway_props.rb', line 12

def initialize(egress_cidr_blocks:, name:, networks:)
  @egress_cidr_blocks = egress_cidr_blocks
  Jsii::Type.check_type(@egress_cidr_blocks, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "egressCidrBlocks")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @networks = networks
  Jsii::Type.check_type(@networks, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFjb25uZWN0LkNmbkdhdGV3YXkuR2F0ZXdheU5ldHdvcmtQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "networks")
end

Instance Attribute Details

#egress_cidr_blocksArray<String> (readonly)

The range of IP addresses that are allowed to contribute content or initiate output requests for flows communicating with this gateway.

These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.



27
28
29
# File 'media_connect/cfn_gateway_props.rb', line 27

def egress_cidr_blocks
  @egress_cidr_blocks
end

#nameString (readonly)

The name of the gateway.

This name can not be modified after the gateway is created.



34
35
36
# File 'media_connect/cfn_gateway_props.rb', line 34

def name
  @name
end

Class Method Details

.jsii_propertiesObject



41
42
43
44
45
46
47
# File 'media_connect/cfn_gateway_props.rb', line 41

def self.jsii_properties
  {
    :egress_cidr_blocks => "egressCidrBlocks",
    :name => "name",
    :networks => "networks",
  }
end

Instance Method Details

#to_jsiiObject



49
50
51
52
53
54
55
56
57
# File 'media_connect/cfn_gateway_props.rb', line 49

def to_jsii
  result = {}
  result.merge!({
    "egressCidrBlocks" => @egress_cidr_blocks,
    "name" => @name,
    "networks" => @networks,
  })
  result.compact
end