Class: AWSCDK::Redshift::CfnEndpointAuthorizationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Redshift::CfnEndpointAuthorizationProps
- Defined in:
- redshift/cfn_endpoint_authorization_props.rb
Overview
Properties for defining a CfnEndpointAuthorization.
Instance Attribute Summary collapse
-
#account ⇒ String
readonly
The AWS account ID of either the cluster owner (grantor) or grantee.
-
#cluster_identifier ⇒ String
readonly
The cluster identifier.
-
#force ⇒ Boolean, ...
readonly
Indicates whether to force the revoke action.
-
#vpc_ids ⇒ Array<String, AWSCDK::Interfaces::AWSEC2::IVPCRef>?
readonly
The virtual private cloud (VPC) identifiers to grant access to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account:, cluster_identifier:, force: nil, vpc_ids: nil) ⇒ CfnEndpointAuthorizationProps
constructor
A new instance of CfnEndpointAuthorizationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account:, cluster_identifier:, force: nil, vpc_ids: nil) ⇒ CfnEndpointAuthorizationProps
Returns a new instance of CfnEndpointAuthorizationProps.
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 = 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
#account ⇒ String (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 @account end |
#cluster_identifier ⇒ String (readonly)
The cluster identifier.
35 36 37 |
# File 'redshift/cfn_endpoint_authorization_props.rb', line 35 def cluster_identifier @cluster_identifier end |
#force ⇒ Boolean, ... (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_ids ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |