Class: AWSCDK::BedrockAgentCore::CfnPaymentManager::CustomJWTAuthorizerConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_payment_manager.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(discovery_url:, allowed_audience: nil, allowed_clients: nil, allowed_scopes: nil, custom_claims: nil) ⇒ CustomJWTAuthorizerConfigurationProperty

Returns a new instance of CustomJWTAuthorizerConfigurationProperty.

Parameters:



765
766
767
768
769
770
771
772
773
774
775
776
# File 'bedrock_agent_core/cfn_payment_manager.rb', line 765

def initialize(discovery_url:, allowed_audience: nil, allowed_clients: nil, allowed_scopes: nil, custom_claims: nil)
  @discovery_url = discovery_url
  Jsii::Type.check_type(@discovery_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "discoveryUrl")
  @allowed_audience = allowed_audience
  Jsii::Type.check_type(@allowed_audience, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedAudience") unless @allowed_audience.nil?
  @allowed_clients = allowed_clients
  Jsii::Type.check_type(@allowed_clients, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedClients") unless @allowed_clients.nil?
  @allowed_scopes = allowed_scopes
  Jsii::Type.check_type(@allowed_scopes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedScopes") unless @allowed_scopes.nil?
  @custom_claims = custom_claims
  Jsii::Type.check_type(@custom_claims, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5QYXltZW50TWFuYWdlci5DdXN0b21DbGFpbVZhbGlkYXRpb25UeXBlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "customClaims") unless @custom_claims.nil?
end

Instance Attribute Details

#allowed_audienceArray<String>? (readonly)



783
784
785
# File 'bedrock_agent_core/cfn_payment_manager.rb', line 783

def allowed_audience
  @allowed_audience
end

#allowed_clientsArray<String>? (readonly)



786
787
788
# File 'bedrock_agent_core/cfn_payment_manager.rb', line 786

def allowed_clients
  @allowed_clients
end

#allowed_scopesArray<String>? (readonly)



789
790
791
# File 'bedrock_agent_core/cfn_payment_manager.rb', line 789

def allowed_scopes
  @allowed_scopes
end

#discovery_urlString (readonly)



780
781
782
# File 'bedrock_agent_core/cfn_payment_manager.rb', line 780

def discovery_url
  @discovery_url
end

Class Method Details

.jsii_propertiesObject



794
795
796
797
798
799
800
801
802
# File 'bedrock_agent_core/cfn_payment_manager.rb', line 794

def self.jsii_properties
  {
    :discovery_url => "discoveryUrl",
    :allowed_audience => "allowedAudience",
    :allowed_clients => "allowedClients",
    :allowed_scopes => "allowedScopes",
    :custom_claims => "customClaims",
  }
end

Instance Method Details

#to_jsiiObject



804
805
806
807
808
809
810
811
812
813
814
# File 'bedrock_agent_core/cfn_payment_manager.rb', line 804

def to_jsii
  result = {}
  result.merge!({
    "discoveryUrl" => @discovery_url,
    "allowedAudience" => @allowed_audience,
    "allowedClients" => @allowed_clients,
    "allowedScopes" => @allowed_scopes,
    "customClaims" => @custom_claims,
  })
  result.compact
end