Class: AWSCDK::RolesAnywhere::CfnTrustAnchor::SourceProperty

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

Overview

Object representing the TrustAnchor type and its related certificate data.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_data:, source_type:) ⇒ SourceProperty

Returns a new instance of SourceProperty.

Parameters:



725
726
727
728
729
730
# File 'roles_anywhere/cfn_trust_anchor.rb', line 725

def initialize(source_data:, source_type:)
  @source_data = source_data.is_a?(Hash) ? ::AWSCDK::RolesAnywhere::CfnTrustAnchor::SourceDataProperty.new(**source_data.transform_keys(&:to_sym)) : source_data
  Jsii::Type.check_type(@source_data, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb2xlc2FueXdoZXJlLkNmblRydXN0QW5jaG9yLlNvdXJjZURhdGFQcm9wZXJ0eSJ9XX19")), "sourceData")
  @source_type = source_type
  Jsii::Type.check_type(@source_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceType")
end

Instance Attribute Details

#source_dataAWSCDK::IResolvable, AWSCDK::RolesAnywhere::CfnTrustAnchor::SourceDataProperty (readonly)

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



736
737
738
# File 'roles_anywhere/cfn_trust_anchor.rb', line 736

def source_data
  @source_data
end

#source_typeString (readonly)

The type of the TrustAnchor.



741
742
743
# File 'roles_anywhere/cfn_trust_anchor.rb', line 741

def source_type
  @source_type
end

Class Method Details

.jsii_propertiesObject



743
744
745
746
747
748
# File 'roles_anywhere/cfn_trust_anchor.rb', line 743

def self.jsii_properties
  {
    :source_data => "sourceData",
    :source_type => "sourceType",
  }
end

Instance Method Details

#to_jsiiObject



750
751
752
753
754
755
756
757
# File 'roles_anywhere/cfn_trust_anchor.rb', line 750

def to_jsii
  result = {}
  result.merge!({
    "sourceData" => @source_data,
    "sourceType" => @source_type,
  })
  result.compact
end