Skip to content

Commit 0aa6ba2

Browse files
author
awstools
committed
docs(client-amplify): Documentation only update to support the Amplify GitHub App feature launch
1 parent f0564dc commit 0aa6ba2

File tree

2 files changed

+59
-21
lines changed

2 files changed

+59
-21
lines changed

clients/client-amplify/src/models/models_0.ts

+54-16
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,33 @@ export interface CreateAppRequest {
194194
iamServiceRoleArn?: string;
195195

196196
/**
197-
* <p> The OAuth token for a third-party source control system for an Amplify app. The OAuth
198-
* token is used to create a webhook and a read-only deploy key. The OAuth token is not
199-
* stored. </p>
197+
* <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth
198+
* token is used to create a webhook and a read-only deploy key using SSH cloning. The
199+
* OAuth token is not stored.</p>
200+
* <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as
201+
* Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use
202+
* <code>accessToken</code>.</p>
203+
* <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you
204+
* create a new app.</p>
205+
* <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
206+
* with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub
207+
* App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the
208+
* <i>Amplify User Guide</i> .</p>
200209
*/
201210
oauthToken?: string;
202211

203212
/**
204-
* <p> The personal access token for a third-party source control system for an Amplify app.
205-
* The personal access token is used to create a webhook and a read-only deploy key. The
206-
* token is not stored. </p>
213+
* <p>The personal access token for a GitHub repository for an Amplify app. The personal
214+
* access token is used to authorize access to a GitHub repository using the Amplify GitHub
215+
* App. The token is not stored.</p>
216+
* <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a
217+
* repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
218+
* <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you
219+
* create a new app.</p>
220+
* <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
221+
* with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub
222+
* App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the
223+
* <i>Amplify User Guide</i> .</p>
207224
*/
208225
accessToken?: string;
209226

@@ -454,10 +471,13 @@ export interface App {
454471
autoBranchCreationConfig?: AutoBranchCreationConfig;
455472

456473
/**
457-
* <p>The authentication protocol to use to access the Git repository for an Amplify app.
458-
* For a GitHub repository, specify <code>TOKEN</code>. For an Amazon Web Services CodeCommit repository,
459-
* specify <code>SIGV4</code>. For GitLab and Bitbucket repositories, specify
460-
* <code>SSH</code>.</p>
474+
* <note>
475+
* <p>This is for internal use.</p>
476+
* </note>
477+
* <p>The Amplify service uses this parameter to specify the authentication protocol to use to access
478+
* the Git repository for an Amplify app. Amplify specifies <code>TOKEN</code> for a GitHub
479+
* repository, <code>SIGV4</code> for an Amazon Web Services CodeCommit repository, and
480+
* <code>SSH</code> for GitLab and Bitbucket repositories.</p>
461481
*/
462482
repositoryCloneMethod?: RepositoryCloneMethod | string;
463483
}
@@ -2946,16 +2966,34 @@ export interface UpdateAppRequest {
29462966
repository?: string;
29472967

29482968
/**
2949-
* <p> The OAuth token for a third-party source control system for an Amplify app. The token
2950-
* is used to create a webhook and a read-only deploy key. The OAuth token is not stored.
2951-
* </p>
2969+
* <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth
2970+
* token is used to create a webhook and a read-only deploy key using SSH cloning. The
2971+
* OAuth token is not stored.</p>
2972+
* <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as
2973+
* Bitbucket or CodeCommit.</p>
2974+
* <p>To authorize access to GitHub as your repository provider, use
2975+
* <code>accessToken</code>.</p>
2976+
* <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you
2977+
* update an app.</p>
2978+
* <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
2979+
* with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub
2980+
* App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the
2981+
* <i>Amplify User Guide</i> .</p>
29522982
*/
29532983
oauthToken?: string;
29542984

29552985
/**
2956-
* <p> The personal access token for a third-party source control system for an Amplify app.
2957-
* The token is used to create webhook and a read-only deploy key. The token is not stored.
2958-
* </p>
2986+
* <p>The personal access token for a GitHub repository for an Amplify app. The personal
2987+
* access token is used to authorize access to a GitHub repository using the Amplify GitHub
2988+
* App. The token is not stored.</p>
2989+
* <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a
2990+
* repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
2991+
* <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you
2992+
* update an app.</p>
2993+
* <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
2994+
* with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub
2995+
* App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the
2996+
* <i>Amplify User Guide</i> .</p>
29592997
*/
29602998
accessToken?: string;
29612999
}

codegen/sdk-codegen/aws-models/amplify.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
"repositoryCloneMethod": {
341341
"target": "com.amazonaws.amplify#RepositoryCloneMethod",
342342
"traits": {
343-
"smithy.api#documentation": "<p>The authentication protocol to use to access the Git repository for an Amplify app.\n For a GitHub repository, specify <code>TOKEN</code>. For an Amazon Web Services CodeCommit repository,\n specify <code>SIGV4</code>. For GitLab and Bitbucket repositories, specify\n <code>SSH</code>.</p>"
343+
"smithy.api#documentation": "<note>\n <p>This is for internal use.</p>\n </note>\n <p>The Amplify service uses this parameter to specify the authentication protocol to use to access\n the Git repository for an Amplify app. Amplify specifies <code>TOKEN</code> for a GitHub\n repository, <code>SIGV4</code> for an Amazon Web Services CodeCommit repository, and\n <code>SSH</code> for GitLab and Bitbucket repositories.</p>"
344344
}
345345
}
346346
},
@@ -1001,13 +1001,13 @@
10011001
"oauthToken": {
10021002
"target": "com.amazonaws.amplify#OauthToken",
10031003
"traits": {
1004-
"smithy.api#documentation": "<p> The OAuth token for a third-party source control system for an Amplify app. The OAuth\n token is used to create a webhook and a read-only deploy key. The OAuth token is not\n stored. </p>"
1004+
"smithy.api#documentation": "<p>The OAuth token for a third-party source control system for an Amplify app. The OAuth\n token is used to create a webhook and a read-only deploy key using SSH cloning. The\n OAuth token is not stored.</p>\n <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as\n Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use\n <code>accessToken</code>.</p>\n <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you\n create a new app.</p>\n <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work\n with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub\n App. For more information, see <a href=\"https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth\">Migrating an existing OAuth app to the Amplify GitHub App</a> in the\n <i>Amplify User Guide</i> .</p>"
10051005
}
10061006
},
10071007
"accessToken": {
10081008
"target": "com.amazonaws.amplify#AccessToken",
10091009
"traits": {
1010-
"smithy.api#documentation": "<p> The personal access token for a third-party source control system for an Amplify app.\n The personal access token is used to create a webhook and a read-only deploy key. The\n token is not stored. </p>"
1010+
"smithy.api#documentation": "<p>The personal access token for a GitHub repository for an Amplify app. The personal\n access token is used to authorize access to a GitHub repository using the Amplify GitHub\n App. The token is not stored.</p>\n <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a\n repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>\n <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you\n create a new app.</p>\n <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work\n with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub\n App. For more information, see <a href=\"https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth\">Migrating an existing OAuth app to the Amplify GitHub App</a> in the\n <i>Amplify User Guide</i> .</p>"
10111011
}
10121012
},
10131013
"environmentVariables": {
@@ -5008,13 +5008,13 @@
50085008
"oauthToken": {
50095009
"target": "com.amazonaws.amplify#OauthToken",
50105010
"traits": {
5011-
"smithy.api#documentation": "<p> The OAuth token for a third-party source control system for an Amplify app. The token\n is used to create a webhook and a read-only deploy key. The OAuth token is not stored.\n </p>"
5011+
"smithy.api#documentation": "<p>The OAuth token for a third-party source control system for an Amplify app. The OAuth\n token is used to create a webhook and a read-only deploy key using SSH cloning. The\n OAuth token is not stored.</p>\n <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as\n Bitbucket or CodeCommit.</p>\n <p>To authorize access to GitHub as your repository provider, use\n <code>accessToken</code>.</p>\n <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you\n update an app.</p>\n <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work\n with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub\n App. For more information, see <a href=\"https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth\">Migrating an existing OAuth app to the Amplify GitHub App</a> in the\n <i>Amplify User Guide</i> .</p>"
50125012
}
50135013
},
50145014
"accessToken": {
50155015
"target": "com.amazonaws.amplify#AccessToken",
50165016
"traits": {
5017-
"smithy.api#documentation": "<p> The personal access token for a third-party source control system for an Amplify app.\n The token is used to create webhook and a read-only deploy key. The token is not stored.\n </p>"
5017+
"smithy.api#documentation": "<p>The personal access token for a GitHub repository for an Amplify app. The personal\n access token is used to authorize access to a GitHub repository using the Amplify GitHub\n App. The token is not stored.</p>\n <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a\n repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>\n <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you\n update an app.</p>\n <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work\n with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub\n App. For more information, see <a href=\"https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth\">Migrating an existing OAuth app to the Amplify GitHub App</a> in the\n <i>Amplify User Guide</i> .</p>"
50185018
}
50195019
}
50205020
},

0 commit comments

Comments
 (0)