Class: AWSCDK::Redshift::CfnEndpointAuthorizationProps

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

Overview

Properties for defining a CfnEndpointAuthorization.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account:, cluster_identifier:, force: nil, vpc_ids: nil) ⇒ CfnEndpointAuthorizationProps

Returns a new instance of CfnEndpointAuthorizationProps.

Parameters:

  • account (String)

    The AWS account ID of either the cluster owner (grantor) or grantee.

  • cluster_identifier (String)

    The cluster identifier.

  • force (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether to force the revoke action.

  • vpc_ids (Array<String, AWSCDK::Interfaces::AWSEC2::IVPCRef>, nil) (defaults to: nil)

    The virtual private cloud (VPC) identifiers to grant access to.



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

def initialize(account:, cluster_identifier:, force: nil, vpc_ids: nil)
  @account = 
  Jsii::Type.check_type(@account, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "account")
  @cluster_identifier = cluster_identifier
  Jsii::Type.check_type(@cluster_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterIdentifier")
  @force = force
  Jsii::Type.check_type(@force, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "force") unless @force.nil?
  @vpc_ids = vpc_ids
  Jsii::Type.check_type(@vpc_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JVlBDUmVmIn1dfX0sImtpbmQiOiJhcnJheSJ9fQ==")), "vpcIds") unless @vpc_ids.nil?
end

Instance Attribute Details

#accountString (readonly)

The AWS account ID of either the cluster owner (grantor) or grantee.

If Grantee parameter is true, then the Account value is of the grantor.



30
31
32
# File 'redshift/cfn_endpoint_authorization_props.rb', line 30

def 
  @account
end

#cluster_identifierString (readonly)

The cluster identifier.



35
36
37
# File 'redshift/cfn_endpoint_authorization_props.rb', line 35

def cluster_identifier
  @cluster_identifier
end

#forceBoolean, ... (readonly)

Indicates whether to force the revoke action.

If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.



42
43
44
# File 'redshift/cfn_endpoint_authorization_props.rb', line 42

def force
  @force
end

#vpc_idsArray<String, AWSCDK::Interfaces::AWSEC2::IVPCRef>? (readonly)

The virtual private cloud (VPC) identifiers to grant access to.



47
48
49
# File 'redshift/cfn_endpoint_authorization_props.rb', line 47

def vpc_ids
  @vpc_ids
end

Class Method Details

.jsii_propertiesObject



49
50
51
52
53
54
55
56
# File 'redshift/cfn_endpoint_authorization_props.rb', line 49

def self.jsii_properties
  {
    :account => "account",
    :cluster_identifier => "clusterIdentifier",
    :force => "force",
    :vpc_ids => "vpcIds",
  }
end

Instance Method Details

#to_jsiiObject



58
59
60
61
62
63
64
65
66
67
# File 'redshift/cfn_endpoint_authorization_props.rb', line 58

def to_jsii
  result = {}
  result.merge!({
    "account" => @account,
    "clusterIdentifier" => @cluster_identifier,
    "force" => @force,
    "vpcIds" => @vpc_ids,
  })
  result.compact
end