Class: AWSCDK::MSK::CfnVPCConnectionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
msk/cfn_vpc_connection_props.rb

Overview

Properties for defining a CfnVpcConnection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authentication:, client_subnets:, security_groups:, target_cluster_arn:, vpc_id:, tags: nil) ⇒ CfnVPCConnectionProps

Returns a new instance of CfnVPCConnectionProps.

Parameters:

  • authentication (String)

    The type of private link authentication.

  • client_subnets (Array<String>)

    The list of subnets in the client VPC to connect to.

  • security_groups (Array<String>)

    The security groups to attach to the ENIs for the broker nodes.

  • target_cluster_arn (String)

    The Amazon Resource Name (ARN) of the cluster.

  • vpc_id (String)

    The VPC ID of the remote client.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    An arbitrary set of tags (key-value pairs) you specify while creating the VPC connection.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'msk/cfn_vpc_connection_props.rb', line 15

def initialize(authentication:, client_subnets:, security_groups:, target_cluster_arn:, vpc_id:, tags: nil)
  @authentication = authentication
  Jsii::Type.check_type(@authentication, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authentication")
  @client_subnets = client_subnets
  Jsii::Type.check_type(@client_subnets, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "clientSubnets")
  @security_groups = security_groups
  Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "securityGroups")
  @target_cluster_arn = target_cluster_arn
  Jsii::Type.check_type(@target_cluster_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetClusterArn")
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcId")
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#authenticationString (readonly)

The type of private link authentication.



34
35
36
# File 'msk/cfn_vpc_connection_props.rb', line 34

def authentication
  @authentication
end

#client_subnetsArray<String> (readonly)

The list of subnets in the client VPC to connect to.



39
40
41
# File 'msk/cfn_vpc_connection_props.rb', line 39

def client_subnets
  @client_subnets
end

#security_groupsArray<String> (readonly)

The security groups to attach to the ENIs for the broker nodes.



44
45
46
# File 'msk/cfn_vpc_connection_props.rb', line 44

def security_groups
  @security_groups
end

#tagsHash{String => String}? (readonly)

An arbitrary set of tags (key-value pairs) you specify while creating the VPC connection.



59
60
61
# File 'msk/cfn_vpc_connection_props.rb', line 59

def tags
  @tags
end

#target_cluster_arnString (readonly)

The Amazon Resource Name (ARN) of the cluster.



49
50
51
# File 'msk/cfn_vpc_connection_props.rb', line 49

def target_cluster_arn
  @target_cluster_arn
end

#vpc_idString (readonly)

The VPC ID of the remote client.



54
55
56
# File 'msk/cfn_vpc_connection_props.rb', line 54

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



61
62
63
64
65
66
67
68
69
70
# File 'msk/cfn_vpc_connection_props.rb', line 61

def self.jsii_properties
  {
    :authentication => "authentication",
    :client_subnets => "clientSubnets",
    :security_groups => "securityGroups",
    :target_cluster_arn => "targetClusterArn",
    :vpc_id => "vpcId",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



72
73
74
75
76
77
78
79
80
81
82
83
# File 'msk/cfn_vpc_connection_props.rb', line 72

def to_jsii
  result = {}
  result.merge!({
    "authentication" => @authentication,
    "clientSubnets" => @client_subnets,
    "securityGroups" => @security_groups,
    "targetClusterArn" => @target_cluster_arn,
    "vpcId" => @vpc_id,
    "tags" => @tags,
  })
  result.compact
end