OAuth2AuthorizationServerMetadata Struct
Static OAuth2 authorization server metadata for custom credential providers.
| Source | lib/identity/oauth2-credential-provider.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const oAuth2AuthorizationServerMetadata: bedrock_agentcore_alpha.OAuth2AuthorizationServerMetadata = {
authorizationEndpoint: 'authorizationEndpoint',
issuer: 'issuer',
tokenEndpoint: 'tokenEndpoint',
// the properties below are optional
responseTypes: ['responseTypes'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
o_auth2_authorization_server_metadata = bedrock_agentcore_alpha.OAuth2AuthorizationServerMetadata(
authorization_endpoint="authorizationEndpoint",
issuer="issuer",
token_endpoint="tokenEndpoint",
# the properties below are optional
response_types=["responseTypes"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
OAuth2AuthorizationServerMetadata oAuth2AuthorizationServerMetadata = OAuth2AuthorizationServerMetadata.builder()
.authorizationEndpoint("authorizationEndpoint")
.issuer("issuer")
.tokenEndpoint("tokenEndpoint")
// the properties below are optional
.responseTypes(List.of("responseTypes"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
var oAuth2AuthorizationServerMetadata = new OAuth2AuthorizationServerMetadata {
AuthorizationEndpoint = "authorizationEndpoint",
Issuer = "issuer",
TokenEndpoint = "tokenEndpoint",
// the properties below are optional
ResponseTypes = new [] { "responseTypes" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
oAuth2AuthorizationServerMetadata := &OAuth2AuthorizationServerMetadata{
AuthorizationEndpoint: jsii.String("authorizationEndpoint"),
Issuer: jsii.String("issuer"),
TokenEndpoint: jsii.String("tokenEndpoint"),
// the properties below are optional
ResponseTypes: []*string{
jsii.String("responseTypes"),
},
}
Properties
authorizationEndpointstringauthorization_endpointstrauthorizationEndpointStringAuthorizationEndpointstringAuthorizationEndpoint*string required #The authorization endpoint URL.
The issuer URL for the OAuth2 authorization server.
responseTypesoptionalstring[]response_typesoptionaltyping.List[str]responseTypesoptionalList<String>ResponseTypesoptionalstring[]ResponseTypesoptional*[]*string #The supported response types.
Default: not specified
tokenEndpointstringtoken_endpointstrtokenEndpointStringTokenEndpointstringTokenEndpoint*string required #The token endpoint URL.