Class: AWSCDK::DataZone::CfnConnectionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_zone/cfn_connection_props.rb

Overview

Properties for defining a CfnConnection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_identifier:, name:, aws_location: nil, configurations: nil, description: nil, enable_trusted_identity_propagation: nil, environment_identifier: nil, project_identifier: nil, props: nil, scope: nil) ⇒ CfnConnectionProps

Returns a new instance of CfnConnectionProps.

Parameters:



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'data_zone/cfn_connection_props.rb', line 19

def initialize(domain_identifier:, name:, aws_location: nil, configurations: nil, description: nil, enable_trusted_identity_propagation: nil, environment_identifier: nil, project_identifier: nil, props: nil, scope: nil)
  @domain_identifier = domain_identifier
  Jsii::Type.check_type(@domain_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainIdentifier")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @aws_location = aws_location.is_a?(Hash) ? ::AWSCDK::DataZone::CfnConnection::AWSLocationProperty.new(**aws_location.transform_keys(&:to_sym)) : aws_location
  Jsii::Type.check_type(@aws_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Db25uZWN0aW9uLkF3c0xvY2F0aW9uUHJvcGVydHkifV19fQ==")), "awsLocation") unless @aws_location.nil?
  @configurations = configurations
  Jsii::Type.check_type(@configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGF0YXpvbmUuQ2ZuQ29ubmVjdGlvbi5Db25uZWN0aW9uQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "configurations") unless @configurations.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @enable_trusted_identity_propagation = enable_trusted_identity_propagation
  Jsii::Type.check_type(@enable_trusted_identity_propagation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableTrustedIdentityPropagation") unless @enable_trusted_identity_propagation.nil?
  @environment_identifier = environment_identifier
  Jsii::Type.check_type(@environment_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentIdentifier") unless @environment_identifier.nil?
  @project_identifier = project_identifier
  Jsii::Type.check_type(@project_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "projectIdentifier") unless @project_identifier.nil?
  @props = props.is_a?(Hash) ? ::AWSCDK::DataZone::CfnConnection::ConnectionPropertiesInputProperty.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(@props, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Db25uZWN0aW9uLkNvbm5lY3Rpb25Qcm9wZXJ0aWVzSW5wdXRQcm9wZXJ0eSJ9XX19")), "props") unless @props.nil?
  @scope = scope
  Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scope") unless @scope.nil?
end

Instance Attribute Details

#aws_locationAWSCDK::IResolvable, ... (readonly)

The location where the connection is created.



56
57
58
# File 'data_zone/cfn_connection_props.rb', line 56

def aws_location
  @aws_location
end

#configurationsAWSCDK::IResolvable, ... (readonly)

The configurations of the connection.



61
62
63
# File 'data_zone/cfn_connection_props.rb', line 61

def configurations
  @configurations
end

#descriptionString? (readonly)

Connection description.



66
67
68
# File 'data_zone/cfn_connection_props.rb', line 66

def description
  @description
end

#domain_identifierString (readonly)

The ID of the domain where the connection is created.



46
47
48
# File 'data_zone/cfn_connection_props.rb', line 46

def domain_identifier
  @domain_identifier
end

#enable_trusted_identity_propagationBoolean, ... (readonly)

Specifies whether the trusted identity propagation is enabled.



71
72
73
# File 'data_zone/cfn_connection_props.rb', line 71

def enable_trusted_identity_propagation
  @enable_trusted_identity_propagation
end

#environment_identifierString? (readonly)

The ID of the environment where the connection is created.



76
77
78
# File 'data_zone/cfn_connection_props.rb', line 76

def environment_identifier
  @environment_identifier
end

#nameString (readonly)

The name of the connection.



51
52
53
# File 'data_zone/cfn_connection_props.rb', line 51

def name
  @name
end

#project_identifierString? (readonly)

The identifier of the project in which the connection should be created.

If



83
84
85
# File 'data_zone/cfn_connection_props.rb', line 83

def project_identifier
  @project_identifier
end

#propsAWSCDK::IResolvable, ... (readonly)

Connection props.



88
89
90
# File 'data_zone/cfn_connection_props.rb', line 88

def props
  @props
end

#scopeString? (readonly)

The scope of the connection.



93
94
95
# File 'data_zone/cfn_connection_props.rb', line 93

def scope
  @scope
end

Class Method Details

.jsii_propertiesObject



95
96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'data_zone/cfn_connection_props.rb', line 95

def self.jsii_properties
  {
    :domain_identifier => "domainIdentifier",
    :name => "name",
    :aws_location => "awsLocation",
    :configurations => "configurations",
    :description => "description",
    :enable_trusted_identity_propagation => "enableTrustedIdentityPropagation",
    :environment_identifier => "environmentIdentifier",
    :project_identifier => "projectIdentifier",
    :props => "props",
    :scope => "scope",
  }
end

Instance Method Details

#to_jsiiObject



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'data_zone/cfn_connection_props.rb', line 110

def to_jsii
  result = {}
  result.merge!({
    "domainIdentifier" => @domain_identifier,
    "name" => @name,
    "awsLocation" => @aws_location,
    "configurations" => @configurations,
    "description" => @description,
    "enableTrustedIdentityPropagation" => @enable_trusted_identity_propagation,
    "environmentIdentifier" => @environment_identifier,
    "projectIdentifier" => @project_identifier,
    "props" => @props,
    "scope" => @scope,
  })
  result.compact
end