Class: AWSCDK::RolesAnywhere::CfnTrustAnchor::SourceDataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
roles_anywhere/cfn_trust_anchor.rb

Overview

A union object representing the data field of the TrustAnchor depending on its type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(acm_pca_arn: nil, x509_certificate_data: nil) ⇒ SourceDataProperty

Returns a new instance of SourceDataProperty.

Parameters:

  • acm_pca_arn (String, nil) (defaults to: nil)

    The root certificate of the Private Certificate Authority specified by this ARN is used in trust validation for temporary credential requests.

  • x509_certificate_data (String, nil) (defaults to: nil)

    The PEM-encoded data for the certificate anchor.



676
677
678
679
680
681
# File 'roles_anywhere/cfn_trust_anchor.rb', line 676

def initialize(acm_pca_arn: nil, x509_certificate_data: nil)
  @acm_pca_arn = acm_pca_arn
  Jsii::Type.check_type(@acm_pca_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "acmPcaArn") unless @acm_pca_arn.nil?
  @x509_certificate_data = x509_certificate_data
  Jsii::Type.check_type(@x509_certificate_data, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "x509CertificateData") unless @x509_certificate_data.nil?
end

Instance Attribute Details

#acm_pca_arnString? (readonly)

The root certificate of the Private Certificate Authority specified by this ARN is used in trust validation for temporary credential requests.

Included for trust anchors of type AWS_ACM_PCA .

This field is not supported in your region.



691
692
693
# File 'roles_anywhere/cfn_trust_anchor.rb', line 691

def acm_pca_arn
  @acm_pca_arn
end

#x509_certificate_dataString? (readonly)

The PEM-encoded data for the certificate anchor.

Included for trust anchors of type CERTIFICATE_BUNDLE .



698
699
700
# File 'roles_anywhere/cfn_trust_anchor.rb', line 698

def x509_certificate_data
  @x509_certificate_data
end

Class Method Details

.jsii_propertiesObject



700
701
702
703
704
705
# File 'roles_anywhere/cfn_trust_anchor.rb', line 700

def self.jsii_properties
  {
    :acm_pca_arn => "acmPcaArn",
    :x509_certificate_data => "x509CertificateData",
  }
end

Instance Method Details

#to_jsiiObject



707
708
709
710
711
712
713
714
# File 'roles_anywhere/cfn_trust_anchor.rb', line 707

def to_jsii
  result = {}
  result.merge!({
    "acmPcaArn" => @acm_pca_arn,
    "x509CertificateData" => @x509_certificate_data,
  })
  result.compact
end