Class: AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::Oauth2AuthorizationServerMetadataProperty

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

Overview

Authorization server metadata for the OAuth2 provider.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorization_endpoint:, issuer:, token_endpoint:, response_types: nil) ⇒ Oauth2AuthorizationServerMetadataProperty

Returns a new instance of Oauth2AuthorizationServerMetadataProperty.

Parameters:

  • authorization_endpoint (String)

    The authorization endpoint URL.

  • issuer (String)

    The issuer URL for the OAuth2 authorization server.

  • token_endpoint (String)

    The token endpoint URL.

  • response_types (Array<String>, nil) (defaults to: nil)

    The supported response types.



1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1117

def initialize(authorization_endpoint:, issuer:, token_endpoint:, response_types: nil)
  @authorization_endpoint = authorization_endpoint
  Jsii::Type.check_type(@authorization_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationEndpoint")
  @issuer = issuer
  Jsii::Type.check_type(@issuer, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "issuer")
  @token_endpoint = token_endpoint
  Jsii::Type.check_type(@token_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tokenEndpoint")
  @response_types = response_types
  Jsii::Type.check_type(@response_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "responseTypes") unless @response_types.nil?
end

Instance Attribute Details

#authorization_endpointString (readonly)

The authorization endpoint URL.



1132
1133
1134
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1132

def authorization_endpoint
  @authorization_endpoint
end

#issuerString (readonly)

The issuer URL for the OAuth2 authorization server.



1137
1138
1139
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1137

def issuer
  @issuer
end

#response_typesArray<String>? (readonly)

The supported response types.



1147
1148
1149
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1147

def response_types
  @response_types
end

#token_endpointString (readonly)

The token endpoint URL.



1142
1143
1144
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1142

def token_endpoint
  @token_endpoint
end

Class Method Details

.jsii_propertiesObject



1149
1150
1151
1152
1153
1154
1155
1156
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1149

def self.jsii_properties
  {
    :authorization_endpoint => "authorizationEndpoint",
    :issuer => "issuer",
    :token_endpoint => "tokenEndpoint",
    :response_types => "responseTypes",
  }
end

Instance Method Details

#to_jsiiObject



1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1158

def to_jsii
  result = {}
  result.merge!({
    "authorizationEndpoint" => @authorization_endpoint,
    "issuer" => @issuer,
    "tokenEndpoint" => @token_endpoint,
    "responseTypes" => @response_types,
  })
  result.compact
end