AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the Amazon Bedrock Agent Core Control Plane Fronting Layer CreateOauth2CredentialProvider API operation.

Syntax

New-BACCOauth2CredentialProvider
-AuthorizationServerMetadata_AuthorizationEndpoint <String>
-IncludedOauth2ProviderConfig_AuthorizationEndpoint <String>
-AtlassianOauth2ProviderConfig_ClientId <String>
-CustomOauth2ProviderConfig_ClientId <String>
-GithubOauth2ProviderConfig_ClientId <String>
-GoogleOauth2ProviderConfig_ClientId <String>
-IncludedOauth2ProviderConfig_ClientId <String>
-LinkedinOauth2ProviderConfig_ClientId <String>
-MicrosoftOauth2ProviderConfig_ClientId <String>
-SalesforceOauth2ProviderConfig_ClientId <String>
-SlackOauth2ProviderConfig_ClientId <String>
-AtlassianOauth2ProviderConfig_ClientSecret <String>
-CustomOauth2ProviderConfig_ClientSecret <String>
-GithubOauth2ProviderConfig_ClientSecret <String>
-GoogleOauth2ProviderConfig_ClientSecret <String>
-IncludedOauth2ProviderConfig_ClientSecret <String>
-LinkedinOauth2ProviderConfig_ClientSecret <String>
-MicrosoftOauth2ProviderConfig_ClientSecret <String>
-SalesforceOauth2ProviderConfig_ClientSecret <String>
-SlackOauth2ProviderConfig_ClientSecret <String>
-CredentialProviderVendor <CredentialProviderVendorType>
-OauthDiscovery_DiscoveryUrl <String>
-AuthorizationServerMetadata_Issuer <String>
-IncludedOauth2ProviderConfig_Issuer <String>
-Name <String>
-AuthorizationServerMetadata_ResponseType <String[]>
-Tag <Hashtable>
-MicrosoftOauth2ProviderConfig_TenantId <String>
-AuthorizationServerMetadata_TokenEndpoint <String>
-IncludedOauth2ProviderConfig_TokenEndpoint <String>
-AuthorizationServerMetadata_TokenEndpointAuthMethod <String[]>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonBedrockAgentCoreControlConfig>

Description

Creates a new OAuth2 credential provider.

Parameters

-AtlassianOauth2ProviderConfig_ClientId <String>
The client ID for the Atlassian OAuth2 provider. This identifier is assigned by Atlassian when you register your application.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_AtlassianOauth2ProviderConfig_ClientId
-AtlassianOauth2ProviderConfig_ClientSecret <String>
The client secret for the Atlassian OAuth2 provider. This secret is assigned by Atlassian and used along with the client ID to authenticate your application.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_AtlassianOauth2ProviderConfig_ClientSecret
-AuthorizationServerMetadata_AuthorizationEndpoint <String>
The authorization endpoint URL for the OAuth2 authorization server.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_CustomOauth2ProviderConfig_OauthDiscovery_AuthorizationServerMetadata_AuthorizationEndpoint
-AuthorizationServerMetadata_Issuer <String>
The issuer URL for the OAuth2 authorization server.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_CustomOauth2ProviderConfig_OauthDiscovery_AuthorizationServerMetadata_Issuer
-AuthorizationServerMetadata_ResponseType <String[]>
The supported response types for the OAuth2 authorization server.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_CustomOauth2ProviderConfig_OauthDiscovery_AuthorizationServerMetadata_ResponseTypes
-AuthorizationServerMetadata_TokenEndpoint <String>
The token endpoint URL for the OAuth2 authorization server.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_CustomOauth2ProviderConfig_OauthDiscovery_AuthorizationServerMetadata_TokenEndpoint
-AuthorizationServerMetadata_TokenEndpointAuthMethod <String[]>
The authentication methods supported by the token endpoint. This specifies how clients can authenticate when requesting tokens from the authorization server.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_CustomOauth2ProviderConfig_OauthDiscovery_AuthorizationServerMetadata_TokenEndpointAuthMethods
Amazon.PowerShell.Cmdlets.BACC.AmazonBedrockAgentCoreControlClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-CredentialProviderVendor <CredentialProviderVendorType>
The vendor of the OAuth2 credential provider. This specifies which OAuth2 implementation to use.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-CustomOauth2ProviderConfig_ClientId <String>
The client ID for the custom OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_CustomOauth2ProviderConfig_ClientId
-CustomOauth2ProviderConfig_ClientSecret <String>
The client secret for the custom OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_CustomOauth2ProviderConfig_ClientSecret
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-GithubOauth2ProviderConfig_ClientId <String>
The client ID for the GitHub OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_GithubOauth2ProviderConfig_ClientId
-GithubOauth2ProviderConfig_ClientSecret <String>
The client secret for the GitHub OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_GithubOauth2ProviderConfig_ClientSecret
-GoogleOauth2ProviderConfig_ClientId <String>
The client ID for the Google OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_GoogleOauth2ProviderConfig_ClientId
-GoogleOauth2ProviderConfig_ClientSecret <String>
The client secret for the Google OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_GoogleOauth2ProviderConfig_ClientSecret
-IncludedOauth2ProviderConfig_AuthorizationEndpoint <String>
OAuth2 authorization endpoint for your isolated OAuth2 application tenant. This is where users are redirected to authenticate and authorize access to their resources.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_IncludedOauth2ProviderConfig_AuthorizationEndpoint
-IncludedOauth2ProviderConfig_ClientId <String>
The client ID for the supported OAuth2 provider. This identifier is assigned by the OAuth2 provider when you register your application.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_IncludedOauth2ProviderConfig_ClientId
-IncludedOauth2ProviderConfig_ClientSecret <String>
The client secret for the supported OAuth2 provider. This secret is assigned by the OAuth2 provider and used along with the client ID to authenticate your application.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_IncludedOauth2ProviderConfig_ClientSecret
-IncludedOauth2ProviderConfig_Issuer <String>
Token issuer of your isolated OAuth2 application tenant. This URL identifies the authorization server that issues tokens for this provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_IncludedOauth2ProviderConfig_Issuer
-IncludedOauth2ProviderConfig_TokenEndpoint <String>
OAuth2 token endpoint for your isolated OAuth2 application tenant. This is where authorization codes are exchanged for access tokens.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_IncludedOauth2ProviderConfig_TokenEndpoint
-LinkedinOauth2ProviderConfig_ClientId <String>
The client ID for the LinkedIn OAuth2 provider. This identifier is assigned by LinkedIn when you register your application.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_LinkedinOauth2ProviderConfig_ClientId
-LinkedinOauth2ProviderConfig_ClientSecret <String>
The client secret for the LinkedIn OAuth2 provider. This secret is assigned by LinkedIn and used along with the client ID to authenticate your application.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_LinkedinOauth2ProviderConfig_ClientSecret
-MicrosoftOauth2ProviderConfig_ClientId <String>
The client ID for the Microsoft OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_MicrosoftOauth2ProviderConfig_ClientId
-MicrosoftOauth2ProviderConfig_ClientSecret <String>
The client secret for the Microsoft OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_MicrosoftOauth2ProviderConfig_ClientSecret
-MicrosoftOauth2ProviderConfig_TenantId <String>
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.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_MicrosoftOauth2ProviderConfig_TenantId
-Name <String>
The name of the OAuth2 credential provider. The name must be unique within your account.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-OauthDiscovery_DiscoveryUrl <String>
The discovery URL for the OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_CustomOauth2ProviderConfig_OauthDiscovery_DiscoveryUrl
-SalesforceOauth2ProviderConfig_ClientId <String>
The client ID for the Salesforce OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_SalesforceOauth2ProviderConfig_ClientId
-SalesforceOauth2ProviderConfig_ClientSecret <String>
The client secret for the Salesforce OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_SalesforceOauth2ProviderConfig_ClientSecret
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.BedrockAgentCoreControl.Model.CreateOauth2CredentialProviderResponse). Specifying the name of a property of type Amazon.BedrockAgentCoreControl.Model.CreateOauth2CredentialProviderResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-SlackOauth2ProviderConfig_ClientId <String>
The client ID for the Slack OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_SlackOauth2ProviderConfig_ClientId
-SlackOauth2ProviderConfig_ClientSecret <String>
The client secret for the Slack OAuth2 provider.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOauth2ProviderConfigInput_SlackOauth2ProviderConfig_ClientSecret
-Tag <Hashtable>
A map of tag keys and values to assign to the OAuth2 credential provider. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesTags

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.BedrockAgentCoreControl.Model.CreateOauth2CredentialProviderResponse object containing multiple properties.

Supported Version

AWS Tools for PowerShell: 2.x.y.z