Class: AWSCDK::BedrockAgentCore::IncludedOauth2TenantEndpoints
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::IncludedOauth2TenantEndpoints
- Defined in:
- bedrock_agent_core/included_oauth2_tenant_endpoints.rb
Overview
Optional tenant OAuth endpoints for IdPs that use CloudFormation IncludedOauth2ProviderConfig with issuer and/or endpoints per the IdP’s outbound documentation.
Instance Attribute Summary collapse
-
#authorization_endpoint ⇒ String?
readonly
OAuth2 authorization endpoint for your tenant.
-
#issuer ⇒ String?
readonly
Token issuer URL for your tenant (often the IdP base or issuer URI).
-
#token_endpoint ⇒ String?
readonly
OAuth2 token endpoint for your tenant.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authorization_endpoint: nil, issuer: nil, token_endpoint: nil) ⇒ IncludedOauth2TenantEndpoints
constructor
A new instance of IncludedOauth2TenantEndpoints.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authorization_endpoint: nil, issuer: nil, token_endpoint: nil) ⇒ IncludedOauth2TenantEndpoints
Returns a new instance of IncludedOauth2TenantEndpoints.
10 11 12 13 14 15 16 17 |
# File 'bedrock_agent_core/included_oauth2_tenant_endpoints.rb', line 10 def initialize(authorization_endpoint: nil, issuer: nil, token_endpoint: nil) @authorization_endpoint = Jsii::Type.check_type(@authorization_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationEndpoint") unless @authorization_endpoint.nil? @issuer = issuer Jsii::Type.check_type(@issuer, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "issuer") unless @issuer.nil? @token_endpoint = token_endpoint Jsii::Type.check_type(@token_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tokenEndpoint") unless @token_endpoint.nil? end |
Instance Attribute Details
#authorization_endpoint ⇒ String? (readonly)
Default: - not specified; use when your IdP requires an explicit endpoint
OAuth2 authorization endpoint for your tenant.
23 24 25 |
# File 'bedrock_agent_core/included_oauth2_tenant_endpoints.rb', line 23 def @authorization_endpoint end |
#issuer ⇒ String? (readonly)
Default: - not specified; use when your IdP requires an explicit issuer
Token issuer URL for your tenant (often the IdP base or issuer URI).
28 29 30 |
# File 'bedrock_agent_core/included_oauth2_tenant_endpoints.rb', line 28 def issuer @issuer end |
#token_endpoint ⇒ String? (readonly)
Default: - not specified; use when your IdP requires an explicit endpoint
OAuth2 token endpoint for your tenant.
33 34 35 |
# File 'bedrock_agent_core/included_oauth2_tenant_endpoints.rb', line 33 def token_endpoint @token_endpoint end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'bedrock_agent_core/included_oauth2_tenant_endpoints.rb', line 35 def self.jsii_properties { :authorization_endpoint => "authorizationEndpoint", :issuer => "issuer", :token_endpoint => "tokenEndpoint", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'bedrock_agent_core/included_oauth2_tenant_endpoints.rb', line 43 def to_jsii result = {} result.merge!({ "authorizationEndpoint" => @authorization_endpoint, "issuer" => @issuer, "tokenEndpoint" => @token_endpoint, }) result.compact end |