Skip to content

Commit

Permalink
feat(client-appflow): Adding OAuth2.0 support for servicenow connector.
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Sep 6, 2023
1 parent fc64a50 commit 2f9c712
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,18 @@ export interface CreateConnectorProfileCommandOutput extends CreateConnectorProf
* jwtToken: "STRING_VALUE",
* },
* ServiceNow: { // ServiceNowConnectorProfileCredentials
* username: "STRING_VALUE", // required
* password: "STRING_VALUE", // required
* username: "STRING_VALUE",
* password: "STRING_VALUE",
* oAuth2Credentials: { // OAuth2Credentials
* clientId: "STRING_VALUE",
* clientSecret: "STRING_VALUE",
* accessToken: "STRING_VALUE",
* refreshToken: "STRING_VALUE",
* oAuthRequest: {
* authCode: "STRING_VALUE",
* redirectUri: "STRING_VALUE",
* },
* },
* },
* Singular: { // SingularConnectorProfileCredentials
* apiKey: "STRING_VALUE", // required
Expand All @@ -218,10 +228,7 @@ export interface CreateConnectorProfileCommandOutput extends CreateConnectorProf
* clientId: "STRING_VALUE", // required
* clientSecret: "STRING_VALUE", // required
* accessToken: "STRING_VALUE",
* oAuthRequest: {
* authCode: "STRING_VALUE",
* redirectUri: "STRING_VALUE",
* },
* oAuthRequest: "<ConnectorOAuthRequest>",
* },
* Snowflake: { // SnowflakeConnectorProfileCredentials
* username: "STRING_VALUE", // required
Expand Down Expand Up @@ -259,7 +266,7 @@ export interface CreateConnectorProfileCommandOutput extends CreateConnectorProf
* username: "STRING_VALUE", // required
* password: "STRING_VALUE", // required
* },
* oauth2: { // OAuth2Credentials
* oauth2: {
* clientId: "STRING_VALUE",
* clientSecret: "STRING_VALUE",
* accessToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,18 @@ export interface UpdateConnectorProfileCommandOutput extends UpdateConnectorProf
* jwtToken: "STRING_VALUE",
* },
* ServiceNow: { // ServiceNowConnectorProfileCredentials
* username: "STRING_VALUE", // required
* password: "STRING_VALUE", // required
* username: "STRING_VALUE",
* password: "STRING_VALUE",
* oAuth2Credentials: { // OAuth2Credentials
* clientId: "STRING_VALUE",
* clientSecret: "STRING_VALUE",
* accessToken: "STRING_VALUE",
* refreshToken: "STRING_VALUE",
* oAuthRequest: {
* authCode: "STRING_VALUE",
* redirectUri: "STRING_VALUE",
* },
* },
* },
* Singular: { // SingularConnectorProfileCredentials
* apiKey: "STRING_VALUE", // required
Expand All @@ -211,10 +221,7 @@ export interface UpdateConnectorProfileCommandOutput extends UpdateConnectorProf
* clientId: "STRING_VALUE", // required
* clientSecret: "STRING_VALUE", // required
* accessToken: "STRING_VALUE",
* oAuthRequest: {
* authCode: "STRING_VALUE",
* redirectUri: "STRING_VALUE",
* },
* oAuthRequest: "<ConnectorOAuthRequest>",
* },
* Snowflake: { // SnowflakeConnectorProfileCredentials
* username: "STRING_VALUE", // required
Expand Down Expand Up @@ -252,7 +259,7 @@ export interface UpdateConnectorProfileCommandOutput extends UpdateConnectorProf
* username: "STRING_VALUE", // required
* password: "STRING_VALUE", // required
* },
* oauth2: { // OAuth2Credentials
* oauth2: {
* clientId: "STRING_VALUE",
* clientSecret: "STRING_VALUE",
* accessToken: "STRING_VALUE",
Expand Down
11 changes: 9 additions & 2 deletions clients/client-appflow/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3468,13 +3468,19 @@ export interface ServiceNowConnectorProfileCredentials {
* @public
* <p> The name of the user. </p>
*/
username: string | undefined;
username?: string;

/**
* @public
* <p> The password that corresponds to the user name. </p>
*/
password: string | undefined;
password?: string;

/**
* @public
* <p> The OAuth 2.0 credentials required to authenticate the user. </p>
*/
oAuth2Credentials?: OAuth2Credentials;
}

/**
Expand Down Expand Up @@ -7109,6 +7115,7 @@ export const ServiceNowConnectorProfileCredentialsFilterSensitiveLog = (
): any => ({
...obj,
...(obj.password && { password: SENSITIVE_STRING }),
...(obj.oAuth2Credentials && { oAuth2Credentials: OAuth2CredentialsFilterSensitiveLog(obj.oAuth2Credentials) }),
});

/**
Expand Down
12 changes: 8 additions & 4 deletions codegen/sdk-codegen/aws-models/appflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -9253,15 +9253,19 @@
"username": {
"target": "com.amazonaws.appflow#Username",
"traits": {
"smithy.api#documentation": "<p> The name of the user. </p>",
"smithy.api#required": {}
"smithy.api#documentation": "<p> The name of the user. </p>"
}
},
"password": {
"target": "com.amazonaws.appflow#Password",
"traits": {
"smithy.api#documentation": "<p> The password that corresponds to the user name. </p>",
"smithy.api#required": {}
"smithy.api#documentation": "<p> The password that corresponds to the user name. </p>"
}
},
"oAuth2Credentials": {
"target": "com.amazonaws.appflow#OAuth2Credentials",
"traits": {
"smithy.api#documentation": "<p> The OAuth 2.0 credentials required to authenticate the user. </p>"
}
}
},
Expand Down

0 comments on commit 2f9c712

Please sign in to comment.