Class: AWSCDK::RolesAnywhere::CfnProfile::AttributeMappingProperty

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

Overview

A mapping applied to the authenticating end-entity certificate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_field:, mapping_rules:) ⇒ AttributeMappingProperty

Returns a new instance of AttributeMappingProperty.

Parameters:



669
670
671
672
673
674
# File 'roles_anywhere/cfn_profile.rb', line 669

def initialize(certificate_field:, mapping_rules:)
  @certificate_field = certificate_field
  Jsii::Type.check_type(@certificate_field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateField")
  @mapping_rules = mapping_rules
  Jsii::Type.check_type(@mapping_rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm9sZXNhbnl3aGVyZS5DZm5Qcm9maWxlLk1hcHBpbmdSdWxlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "mappingRules")
end

Instance Attribute Details

#certificate_fieldString (readonly)

Fields (x509Subject, x509Issuer and x509SAN) within X.509 certificates.



680
681
682
# File 'roles_anywhere/cfn_profile.rb', line 680

def certificate_field
  @certificate_field
end

#mapping_rulesAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::RolesAnywhere::CfnProfile::MappingRuleProperty> (readonly)

A list of mapping entries for every supported specifier or sub-field.



685
686
687
# File 'roles_anywhere/cfn_profile.rb', line 685

def mapping_rules
  @mapping_rules
end

Class Method Details

.jsii_propertiesObject



687
688
689
690
691
692
# File 'roles_anywhere/cfn_profile.rb', line 687

def self.jsii_properties
  {
    :certificate_field => "certificateField",
    :mapping_rules => "mappingRules",
  }
end

Instance Method Details

#to_jsiiObject



694
695
696
697
698
699
700
701
# File 'roles_anywhere/cfn_profile.rb', line 694

def to_jsii
  result = {}
  result.merge!({
    "certificateField" => @certificate_field,
    "mappingRules" => @mapping_rules,
  })
  result.compact
end