# DropboxOAuth2CredentialProviderProps

Props for {@link OAuth2CredentialProvider.usingDropbox}.

Extends: [OAuth2CredentialProviderFactoryBaseProps](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProviderFactoryBaseProps.html)
Used as argument in: [OAuth2CredentialProvider.usingDropbox](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProvider.html#usingdropbox)

- 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#L375)

## 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';
import * as cdk from 'aws-cdk-lib';

declare const secretValue: cdk.SecretValue;
const dropboxOAuth2CredentialProviderProps: bedrock_agentcore_alpha.DropboxOAuth2CredentialProviderProps = {
  clientId: 'clientId',
  clientSecret: secretValue,

  // the properties below are optional
  oAuth2CredentialProviderName: 'oAuth2CredentialProviderName',
  tags: {
    tagsKey: 'tags',
  },
};
```

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
import aws_cdk as cdk

# secret_value: cdk.SecretValue

dropbox_o_auth2_credential_provider_props = bedrock_agentcore_alpha.DropboxOAuth2CredentialProviderProps(
    client_id="clientId",
    client_secret=secret_value,

    # the properties below are optional
    o_auth2_credential_provider_name="oAuth2CredentialProviderName",
    tags={
        "tags_key": "tags"
    }
)
```

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.*;
import software.amazon.awscdk.*;

SecretValue secretValue;

DropboxOAuth2CredentialProviderProps dropboxOAuth2CredentialProviderProps = DropboxOAuth2CredentialProviderProps.builder()
        .clientId("clientId")
        .clientSecret(secretValue)

        // the properties below are optional
        .oAuth2CredentialProviderName("oAuth2CredentialProviderName")
        .tags(Map.of(
                "tagsKey", "tags"))
        .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;
using Amazon.CDK;

SecretValue secretValue;

var dropboxOAuth2CredentialProviderProps = new DropboxOAuth2CredentialProviderProps {
    ClientId = "clientId",
    ClientSecret = secretValue,

    // the properties below are optional
    OAuth2CredentialProviderName = "oAuth2CredentialProviderName",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

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"
import cdk "github.com/aws/aws-cdk-go/awscdk"

var secretValue SecretValue

dropboxOAuth2CredentialProviderProps := &DropboxOAuth2CredentialProviderProps{
	ClientId: jsii.String("clientId"),
	ClientSecret: secretValue,

	// the properties below are optional
	OAuth2CredentialProviderName: jsii.String("oAuth2CredentialProviderName"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `clientId`: string (required) — OAuth2 client identifier.

- `clientSecret`: [SecretValue](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.SecretValue.html) (required) — OAuth2 client secret.

  **NOTE:** The client secret will be included in the CloudFormation template as part of synthesis.
  The service stores the secret in Secrets Manager after creation, but the value is visible
  in the template and deployment history. Use `SecretValue.unsafePlainText()` to explicitly
  acknowledge plaintext, or pass a reference from another construct to avoid embedding the
  literal value.

- `oAuth2CredentialProviderName`: string — Name of the credential provider.

  **Default:** a name generated by CDK

- `tags`: { [key: string]: string } — Tags for this credential provider.

  **Default:** no tags
