Class: AWSCDK::BedrockAgentCore::CfnHarness::CustomJWTAuthorizerConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_harness.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, private_endpoint: nil, private_endpoint_overrides: nil) ⇒ CustomJWTAuthorizerConfigurationProperty

Returns a new instance of CustomJWTAuthorizerConfigurationProperty.

Parameters:



976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
# File 'bedrock_agent_core/cfn_harness.rb', line 976

def initialize(discovery_url:, allowed_audience: nil, allowed_clients: nil, allowed_scopes: nil, custom_claims: nil, private_endpoint: nil, private_endpoint_overrides: 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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5IYXJuZXNzLkN1c3RvbUNsYWltVmFsaWRhdGlvblR5cGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "customClaims") unless @custom_claims.nil?
  @private_endpoint = private_endpoint.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::PrivateEndpointProperty.new(**private_endpoint.transform_keys(&:to_sym)) : private_endpoint
  Jsii::Type.check_type(@private_endpoint, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuUHJpdmF0ZUVuZHBvaW50UHJvcGVydHkifV19fQ==")), "privateEndpoint") unless @private_endpoint.nil?
  @private_endpoint_overrides = private_endpoint_overrides
  Jsii::Type.check_type(@private_endpoint_overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5IYXJuZXNzLlByaXZhdGVFbmRwb2ludE92ZXJyaWRlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "privateEndpointOverrides") unless @private_endpoint_overrides.nil?
end

Instance Attribute Details

#allowed_audienceArray<String>? (readonly)



998
999
1000
# File 'bedrock_agent_core/cfn_harness.rb', line 998

def allowed_audience
  @allowed_audience
end

#allowed_clientsArray<String>? (readonly)



1001
1002
1003
# File 'bedrock_agent_core/cfn_harness.rb', line 1001

def allowed_clients
  @allowed_clients
end

#allowed_scopesArray<String>? (readonly)



1004
1005
1006
# File 'bedrock_agent_core/cfn_harness.rb', line 1004

def allowed_scopes
  @allowed_scopes
end

#discovery_urlString (readonly)



995
996
997
# File 'bedrock_agent_core/cfn_harness.rb', line 995

def discovery_url
  @discovery_url
end

#private_endpointAWSCDK::IResolvable, ... (readonly)

Private endpoint configuration for connecting to the OpenID Connect discovery endpoint over a private network.



1012
1013
1014
# File 'bedrock_agent_core/cfn_harness.rb', line 1012

def private_endpoint
  @private_endpoint
end

Class Method Details

.jsii_propertiesObject



1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
# File 'bedrock_agent_core/cfn_harness.rb', line 1017

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

Instance Method Details

#to_jsiiObject



1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'bedrock_agent_core/cfn_harness.rb', line 1029

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