asAuthorizationServerMetadata
Casts this Oauth2Discovery as a AuthorizationServerMetadata and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.Oauth2AuthorizationServerMetadata value. Throws an exception if the Oauth2Discovery is not a AuthorizationServerMetadata.