Class: AWSCDK::Redshift::CfnEndpointAccessProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
redshift/cfn_endpoint_access_props.rb

Overview

Properties for defining a CfnEndpointAccess.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_identifier:, endpoint_name:, subnet_group_name:, vpc_security_group_ids:, resource_owner: nil) ⇒ CfnEndpointAccessProps

Returns a new instance of CfnEndpointAccessProps.

Parameters:

  • cluster_identifier (String)

    The cluster identifier of the cluster associated with the endpoint.

  • endpoint_name (String)

    The name of the endpoint.

  • subnet_group_name (String, AWSCDK::Interfaces::AWSRedshift::IClusterSubnetGroupRef)

    The subnet group name where Amazon Redshift chooses to deploy the endpoint.

  • vpc_security_group_ids (Array<String, AWSCDK::Interfaces::AWSEC2::ISecurityGroupRef>)

    The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

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

    The AWS account ID of the owner of the cluster.



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

def initialize(cluster_identifier:, endpoint_name:, subnet_group_name:, vpc_security_group_ids:, resource_owner: nil)
  @cluster_identifier = cluster_identifier
  Jsii::Type.check_type(@cluster_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterIdentifier")
  @endpoint_name = endpoint_name
  Jsii::Type.check_type(@endpoint_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointName")
  @subnet_group_name = subnet_group_name
  Jsii::Type.check_type(@subnet_group_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yZWRzaGlmdC5JQ2x1c3RlclN1Ym5ldEdyb3VwUmVmIn1dfX0=")), "subnetGroupName")
  @vpc_security_group_ids = vpc_security_group_ids
  Jsii::Type.check_type(@vpc_security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU2VjdXJpdHlHcm91cFJlZiJ9XX19LCJraW5kIjoiYXJyYXkifX0=")), "vpcSecurityGroupIds")
  @resource_owner = resource_owner
  Jsii::Type.check_type(@resource_owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceOwner") unless @resource_owner.nil?
end

Instance Attribute Details

#cluster_identifierString (readonly)

The cluster identifier of the cluster associated with the endpoint.



31
32
33
# File 'redshift/cfn_endpoint_access_props.rb', line 31

def cluster_identifier
  @cluster_identifier
end

#endpoint_nameString (readonly)

The name of the endpoint.



36
37
38
# File 'redshift/cfn_endpoint_access_props.rb', line 36

def endpoint_name
  @endpoint_name
end

#resource_ownerString? (readonly)

The AWS account ID of the owner of the cluster.



51
52
53
# File 'redshift/cfn_endpoint_access_props.rb', line 51

def resource_owner
  @resource_owner
end

#subnet_group_nameString, AWSCDK::Interfaces::AWSRedshift::IClusterSubnetGroupRef (readonly)

The subnet group name where Amazon Redshift chooses to deploy the endpoint.



41
42
43
# File 'redshift/cfn_endpoint_access_props.rb', line 41

def subnet_group_name
  @subnet_group_name
end

#vpc_security_group_idsArray<String, AWSCDK::Interfaces::AWSEC2::ISecurityGroupRef> (readonly)

The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.



46
47
48
# File 'redshift/cfn_endpoint_access_props.rb', line 46

def vpc_security_group_ids
  @vpc_security_group_ids
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'redshift/cfn_endpoint_access_props.rb', line 53

def self.jsii_properties
  {
    :cluster_identifier => "clusterIdentifier",
    :endpoint_name => "endpointName",
    :subnet_group_name => "subnetGroupName",
    :vpc_security_group_ids => "vpcSecurityGroupIds",
    :resource_owner => "resourceOwner",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'redshift/cfn_endpoint_access_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "clusterIdentifier" => @cluster_identifier,
    "endpointName" => @endpoint_name,
    "subnetGroupName" => @subnet_group_name,
    "vpcSecurityGroupIds" => @vpc_security_group_ids,
    "resourceOwner" => @resource_owner,
  })
  result.compact
end