Class: AWSCDK::DevOpsAgent::CfnPrivateConnectionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnPrivateConnectionProps
- Defined in:
- dev_ops_agent/cfn_private_connection_props.rb
Overview
Properties for defining a CfnPrivateConnection.
Instance Attribute Summary collapse
-
#certificate ⇒ String?
readonly
Certificate for the Private Connection.
-
#connection_configuration ⇒ AWSCDK::IResolvable, AWSCDK::DevOpsAgent::CfnPrivateConnection::ConnectionConfigurationProperty
readonly
The connection configuration, either SelfManaged or ServiceManaged.
-
#name ⇒ String
readonly
Unique name for this Private Connection within the account.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connection_configuration:, name:, certificate: nil, tags: nil) ⇒ CfnPrivateConnectionProps
constructor
A new instance of CfnPrivateConnectionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connection_configuration:, name:, certificate: nil, tags: nil) ⇒ CfnPrivateConnectionProps
Returns a new instance of CfnPrivateConnectionProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'dev_ops_agent/cfn_private_connection_props.rb', line 13 def initialize(connection_configuration:, name:, certificate: nil, tags: nil) @connection_configuration = connection_configuration.is_a?(Hash) ? ::AWSCDK::DevOpsAgent::CfnPrivateConnection::ConnectionConfigurationProperty.new(**connection_configuration.transform_keys(&:to_sym)) : connection_configuration Jsii::Type.check_type(@connection_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNhZ2VudC5DZm5Qcml2YXRlQ29ubmVjdGlvbi5Db25uZWN0aW9uQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "connectionConfiguration") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @certificate = certificate Jsii::Type.check_type(@certificate, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificate") unless @certificate.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#certificate ⇒ String? (readonly)
Certificate for the Private Connection.
38 39 40 |
# File 'dev_ops_agent/cfn_private_connection_props.rb', line 38 def certificate @certificate end |
#connection_configuration ⇒ AWSCDK::IResolvable, AWSCDK::DevOpsAgent::CfnPrivateConnection::ConnectionConfigurationProperty (readonly)
The connection configuration, either SelfManaged or ServiceManaged.
28 29 30 |
# File 'dev_ops_agent/cfn_private_connection_props.rb', line 28 def connection_configuration @connection_configuration end |
#name ⇒ String (readonly)
Unique name for this Private Connection within the account.
33 34 35 |
# File 'dev_ops_agent/cfn_private_connection_props.rb', line 33 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
43 44 45 |
# File 'dev_ops_agent/cfn_private_connection_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'dev_ops_agent/cfn_private_connection_props.rb', line 45 def self.jsii_properties { :connection_configuration => "connectionConfiguration", :name => "name", :certificate => "certificate", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'dev_ops_agent/cfn_private_connection_props.rb', line 54 def to_jsii result = {} result.merge!({ "connectionConfiguration" => @connection_configuration, "name" => @name, "certificate" => @certificate, "tags" => @tags, }) result.compact end |