Class: AWSCDK::PCAConnectorAD::CfnConnectorProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pca_connector_ad/cfn_connector_props.rb

Overview

Properties for defining a CfnConnector.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_authority_arn:, directory_id:, vpc_information:, tags: nil) ⇒ CfnConnectorProps

Returns a new instance of CfnConnectorProps.

Parameters:

  • certificate_authority_arn (String)

    The Amazon Resource Name (ARN) of the certificate authority being used.

  • directory_id (String)

    The identifier of the Active Directory.

  • vpc_information (AWSCDK::IResolvable, AWSCDK::PCAConnectorAD::CfnConnector::VPCInformationProperty)

    Information of the VPC and security group(s) used with the connector.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    Metadata assigned to a connector consisting of a key-value pair.



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

def initialize(certificate_authority_arn:, directory_id:, vpc_information:, tags: nil)
  @certificate_authority_arn = certificate_authority_arn
  Jsii::Type.check_type(@certificate_authority_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateAuthorityArn")
  @directory_id = directory_id
  Jsii::Type.check_type(@directory_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "directoryId")
  @vpc_information = vpc_information.is_a?(Hash) ? ::AWSCDK::PCAConnectorAD::CfnConnector::VPCInformationProperty.new(**vpc_information.transform_keys(&:to_sym)) : vpc_information
  Jsii::Type.check_type(@vpc_information, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19wY2Fjb25uZWN0b3JhZC5DZm5Db25uZWN0b3IuVnBjSW5mb3JtYXRpb25Qcm9wZXJ0eSJ9XX19")), "vpcInformation")
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#certificate_authority_arnString (readonly)

The Amazon Resource Name (ARN) of the certificate authority being used.



28
29
30
# File 'pca_connector_ad/cfn_connector_props.rb', line 28

def certificate_authority_arn
  @certificate_authority_arn
end

#directory_idString (readonly)

The identifier of the Active Directory.



33
34
35
# File 'pca_connector_ad/cfn_connector_props.rb', line 33

def directory_id
  @directory_id
end

#tagsHash{String => String}? (readonly)

Metadata assigned to a connector consisting of a key-value pair.



43
44
45
# File 'pca_connector_ad/cfn_connector_props.rb', line 43

def tags
  @tags
end

#vpc_informationAWSCDK::IResolvable, AWSCDK::PCAConnectorAD::CfnConnector::VPCInformationProperty (readonly)

Information of the VPC and security group(s) used with the connector.



38
39
40
# File 'pca_connector_ad/cfn_connector_props.rb', line 38

def vpc_information
  @vpc_information
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'pca_connector_ad/cfn_connector_props.rb', line 45

def self.jsii_properties
  {
    :certificate_authority_arn => "certificateAuthorityArn",
    :directory_id => "directoryId",
    :vpc_information => "vpcInformation",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'pca_connector_ad/cfn_connector_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "certificateAuthorityArn" => @certificate_authority_arn,
    "directoryId" => @directory_id,
    "vpcInformation" => @vpc_information,
    "tags" => @tags,
  })
  result.compact
end