

# MicrosoftOauth2ProviderConfigInput
<a name="API_MicrosoftOauth2ProviderConfigInput"></a>

Input configuration for a Microsoft OAuth2 provider.

## Contents
<a name="API_MicrosoftOauth2ProviderConfigInput_Contents"></a>

 ** clientId **   <a name="bedrockagentcorecontrol-Type-MicrosoftOauth2ProviderConfigInput-clientId"></a>
The client ID for the Microsoft OAuth2 provider.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: Yes

 ** clientSecret **   <a name="bedrockagentcorecontrol-Type-MicrosoftOauth2ProviderConfigInput-clientSecret"></a>
The client secret for the Microsoft OAuth2 provider.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 2048.  
Required: No

 ** clientSecretConfig **   <a name="bedrockagentcorecontrol-Type-MicrosoftOauth2ProviderConfigInput-clientSecretConfig"></a>
A reference to the Amazon Secrets Manager secret that stores the client secret. This includes the secret ID and the JSON key used to extract the client secret value from the secret. Required when `clientSecretSource` is set to `EXTERNAL`.  
Type: [SecretReference](API_SecretReference.md) object  
Required: No

 ** clientSecretSource **   <a name="bedrockagentcorecontrol-Type-MicrosoftOauth2ProviderConfigInput-clientSecretSource"></a>
The source type of the client secret. Use `MANAGED` if the secret is managed by the service, or `EXTERNAL` if you manage the secret yourself in Amazon Secrets Manager.  
Type: String  
Valid Values: `MANAGED | EXTERNAL`   
Required: No

 ** tenantId **   <a name="bedrockagentcorecontrol-Type-MicrosoftOauth2ProviderConfigInput-tenantId"></a>
The Microsoft Entra ID (formerly Azure AD) tenant ID for your organization. This identifies the specific tenant within Microsoft's identity platform where your application is registered.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Required: No

## See Also
<a name="API_MicrosoftOauth2ProviderConfigInput_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/bedrock-agentcore-control-2023-06-05/MicrosoftOauth2ProviderConfigInput) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/bedrock-agentcore-control-2023-06-05/MicrosoftOauth2ProviderConfigInput) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/bedrock-agentcore-control-2023-06-05/MicrosoftOauth2ProviderConfigInput) 