From b381b16616f1e0f67fe76ca34847bff2c18c3c18 Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 11 Oct 2024 18:28:31 +0000 Subject: [PATCH] docs(client-appflow): Doc only updates for clarification around OAuth2GrantType for Salesforce. --- clients/client-appflow/src/models/models_0.ts | 16 ++++++---------- codegen/sdk-codegen/aws-models/appflow.json | 4 ++-- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/clients/client-appflow/src/models/models_0.ts b/clients/client-appflow/src/models/models_0.ts index 3e43cd426432..efea09d78cb9 100644 --- a/clients/client-appflow/src/models/models_0.ts +++ b/clients/client-appflow/src/models/models_0.ts @@ -691,11 +691,6 @@ export interface SalesforceMetadata { * after you log in to your Salesforce account and authorize Amazon AppFlow to access * your records.

* - *
CLIENT_CREDENTIALS
- *
- *

Amazon AppFlow passes client credentials (a client ID and client secret) when - * it requests the access token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce account.

- *
*
JWT_BEARER
*
*

Amazon AppFlow passes a JSON web token (JWT) when it requests the access token @@ -705,6 +700,9 @@ export interface SalesforceMetadata { * records.

*
* + * + *

The CLIENT_CREDENTIALS value is not supported for Salesforce.

+ *
* @public */ oauth2GrantTypesSupported?: OAuth2GrantType[]; @@ -3377,11 +3375,6 @@ export interface SalesforceConnectorProfileCredentials { * after you log in to your Salesforce account and authorize Amazon AppFlow to access * your records.

* - *
CLIENT_CREDENTIALS
- *
- *

Amazon AppFlow passes client credentials (a client ID and client secret) when - * it requests the access token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce account.

- *
*
JWT_BEARER
*
*

Amazon AppFlow passes a JSON web token (JWT) when it requests the access token @@ -3391,6 +3384,9 @@ export interface SalesforceConnectorProfileCredentials { * records.

*
* + * + *

The CLIENT_CREDENTIALS value is not supported for Salesforce.

+ *
* @public */ oAuth2GrantType?: OAuth2GrantType; diff --git a/codegen/sdk-codegen/aws-models/appflow.json b/codegen/sdk-codegen/aws-models/appflow.json index 0084d00d8b92..1df6582d0aed 100644 --- a/codegen/sdk-codegen/aws-models/appflow.json +++ b/codegen/sdk-codegen/aws-models/appflow.json @@ -7886,7 +7886,7 @@ "oAuth2GrantType": { "target": "com.amazonaws.appflow#OAuth2GrantType", "traits": { - "smithy.api#documentation": "

Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an\n access token from Salesforce. Amazon AppFlow requires an access token each time it\n attempts to access your Salesforce records.

\n

You can specify one of the following values:

\n
\n
AUTHORIZATION_CODE
\n
\n

Amazon AppFlow passes an authorization code when it requests the access token\n from Salesforce. Amazon AppFlow receives the authorization code from Salesforce\n after you log in to your Salesforce account and authorize Amazon AppFlow to access\n your records.

\n
\n
CLIENT_CREDENTIALS
\n
\n

Amazon AppFlow passes client credentials (a client ID and client secret) when\n it requests the access token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce account.

\n
\n
JWT_BEARER
\n
\n

Amazon AppFlow passes a JSON web token (JWT) when it requests the access token\n from Salesforce. You provide the JWT to Amazon AppFlow when you define the\n connection to your Salesforce account. When you use this grant type, you don't need to\n log in to your Salesforce account to authorize Amazon AppFlow to access your\n records.

\n
\n
" + "smithy.api#documentation": "

Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an\n access token from Salesforce. Amazon AppFlow requires an access token each time it\n attempts to access your Salesforce records.

\n

You can specify one of the following values:

\n
\n
AUTHORIZATION_CODE
\n
\n

Amazon AppFlow passes an authorization code when it requests the access token\n from Salesforce. Amazon AppFlow receives the authorization code from Salesforce\n after you log in to your Salesforce account and authorize Amazon AppFlow to access\n your records.

\n
\n
JWT_BEARER
\n
\n

Amazon AppFlow passes a JSON web token (JWT) when it requests the access token\n from Salesforce. You provide the JWT to Amazon AppFlow when you define the\n connection to your Salesforce account. When you use this grant type, you don't need to\n log in to your Salesforce account to authorize Amazon AppFlow to access your\n records.

\n
\n
\n \n

The CLIENT_CREDENTIALS value is not supported for Salesforce.

\n
" } }, "jwtToken": { @@ -8014,7 +8014,7 @@ "oauth2GrantTypesSupported": { "target": "com.amazonaws.appflow#OAuth2GrantTypeSupportedList", "traits": { - "smithy.api#documentation": "

The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access\n token from Salesforce. Amazon AppFlow requires an access token each time it attempts to\n access your Salesforce records.

\n
\n
AUTHORIZATION_CODE
\n
\n

Amazon AppFlow passes an authorization code when it requests the access token\n from Salesforce. Amazon AppFlow receives the authorization code from Salesforce\n after you log in to your Salesforce account and authorize Amazon AppFlow to access\n your records.

\n
\n
CLIENT_CREDENTIALS
\n
\n

Amazon AppFlow passes client credentials (a client ID and client secret) when\n it requests the access token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce account.

\n
\n
JWT_BEARER
\n
\n

Amazon AppFlow passes a JSON web token (JWT) when it requests the access token\n from Salesforce. You provide the JWT to Amazon AppFlow when you define the\n connection to your Salesforce account. When you use this grant type, you don't need to\n log in to your Salesforce account to authorize Amazon AppFlow to access your\n records.

\n
\n
" + "smithy.api#documentation": "

The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access\n token from Salesforce. Amazon AppFlow requires an access token each time it attempts to\n access your Salesforce records.

\n
\n
AUTHORIZATION_CODE
\n
\n

Amazon AppFlow passes an authorization code when it requests the access token\n from Salesforce. Amazon AppFlow receives the authorization code from Salesforce\n after you log in to your Salesforce account and authorize Amazon AppFlow to access\n your records.

\n
\n
JWT_BEARER
\n
\n

Amazon AppFlow passes a JSON web token (JWT) when it requests the access token\n from Salesforce. You provide the JWT to Amazon AppFlow when you define the\n connection to your Salesforce account. When you use this grant type, you don't need to\n log in to your Salesforce account to authorize Amazon AppFlow to access your\n records.

\n
\n
\n \n

The CLIENT_CREDENTIALS value is not supported for Salesforce.

\n
" } } },