Skip to content
v2.278.0

Oauth2AuthorizationServerMetadataProperty Struct ​

Authorization server metadata for the OAuth2 provider.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const oauth2AuthorizationServerMetadataProperty: bedrockagentcore.CfnOAuth2CredentialProvider.Oauth2AuthorizationServerMetadataProperty = {
  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.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

oauth2_authorization_server_metadata_property = bedrockagentcore.CfnOAuth2CredentialProvider.Oauth2AuthorizationServerMetadataProperty(
    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.bedrockagentcore.*;

Oauth2AuthorizationServerMetadataProperty oauth2AuthorizationServerMetadataProperty = Oauth2AuthorizationServerMetadataProperty.builder()
        .authorizationEndpoint("authorizationEndpoint")
        .issuer("issuer")
        .tokenEndpoint("tokenEndpoint")

        // the properties below are optional
        .responseTypes(List.of("responseTypes"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var oauth2AuthorizationServerMetadataProperty = new Oauth2AuthorizationServerMetadataProperty {
    AuthorizationEndpoint = "authorizationEndpoint",
    Issuer = "issuer",
    TokenEndpoint = "tokenEndpoint",

    // the properties below are optional
    ResponseTypes = new [] { "responseTypes" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

oauth2AuthorizationServerMetadataProperty := &Oauth2AuthorizationServerMetadataProperty{
	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.
issuerstringissuerstrissuerStringIssuerstringIssuer*string required #
The issuer URL for the OAuth2 authorization server.
responseTypesoptionalstring[]response_typesoptionaltyping.List[str]responseTypesoptionalList<String>ResponseTypesoptionalstring[]ResponseTypesoptional*[]*string #
The supported response types.
tokenEndpointstringtoken_endpointstrtokenEndpointStringTokenEndpointstringTokenEndpoint*string required #
The token endpoint URL.