Class: AWSCDK::BedrockAgentCore::IncludedOauth2TenantEndpoints

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorization_endpoint: nil, issuer: nil, token_endpoint: nil) ⇒ IncludedOauth2TenantEndpoints

Returns a new instance of IncludedOauth2TenantEndpoints.

Parameters:

  • authorization_endpoint (String, nil) (defaults to: nil)

    OAuth2 authorization endpoint for your tenant.

  • issuer (String, nil) (defaults to: nil)

    Token issuer URL for your tenant (often the IdP base or issuer URI).

  • token_endpoint (String, nil) (defaults to: nil)

    OAuth2 token endpoint for your tenant.



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 = 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_endpointString? (readonly)

Note:

Default: - not specified; use when your IdP requires an explicit endpoint

OAuth2 authorization endpoint for your tenant.

Returns:

  • (String, nil)


23
24
25
# File 'bedrock_agent_core/included_oauth2_tenant_endpoints.rb', line 23

def authorization_endpoint
  @authorization_endpoint
end

#issuerString? (readonly)

Note:

Default: - not specified; use when your IdP requires an explicit issuer

Token issuer URL for your tenant (often the IdP base or issuer URI).

Returns:

  • (String, nil)


28
29
30
# File 'bedrock_agent_core/included_oauth2_tenant_endpoints.rb', line 28

def issuer
  @issuer
end

#token_endpointString? (readonly)

Note:

Default: - not specified; use when your IdP requires an explicit endpoint

OAuth2 token endpoint for your tenant.

Returns:

  • (String, nil)


33
34
35
# File 'bedrock_agent_core/included_oauth2_tenant_endpoints.rb', line 33

def token_endpoint
  @token_endpoint
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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