Class: AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::Oauth2AuthorizationServerMetadataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::Oauth2AuthorizationServerMetadataProperty
- Defined in:
- bedrock_agent_core/cfn_o_auth2_credential_provider.rb
Overview
Authorization server metadata for the OAuth2 provider.
Instance Attribute Summary collapse
-
#authorization_endpoint ⇒ String
readonly
The authorization endpoint URL.
-
#issuer ⇒ String
readonly
The issuer URL for the OAuth2 authorization server.
-
#response_types ⇒ Array<String>?
readonly
The supported response types.
-
#token_endpoint ⇒ String
readonly
The token endpoint URL.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authorization_endpoint:, issuer:, token_endpoint:, response_types: nil) ⇒ Oauth2AuthorizationServerMetadataProperty
constructor
A new instance of Oauth2AuthorizationServerMetadataProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authorization_endpoint:, issuer:, token_endpoint:, response_types: nil) ⇒ Oauth2AuthorizationServerMetadataProperty
Returns a new instance of Oauth2AuthorizationServerMetadataProperty.
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 = 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_endpoint ⇒ String (readonly)
The authorization endpoint URL.
1132 1133 1134 |
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1132 def @authorization_endpoint end |
#issuer ⇒ String (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_types ⇒ Array<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_endpoint ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |