# OAuth2AuthorizationServerMetadata

Static OAuth2 authorization server metadata for custom credential providers.

- Source: [`lib/identity/oauth2-credential-provider.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/identity/oauth2-credential-provider.ts#L437)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `authorizationEndpoint`: string (required) — The authorization endpoint URL.

- `issuer`: string (required) — The issuer URL for the OAuth2 authorization server.

- `responseTypes`: string[] — The supported response types.

  **Default:** not specified

- `tokenEndpoint`: string (required) — The token endpoint URL.
