Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed May 16, 2022
1 parent be23823 commit c1870c4
Show file tree
Hide file tree
Showing 7 changed files with 613 additions and 155 deletions.
269 changes: 214 additions & 55 deletions codegen/sdk-codegen/aws-models/application-discovery-service.json

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions codegen/sdk-codegen/aws-models/cloudfront.json
Original file line number Diff line number Diff line change
Expand Up @@ -2851,6 +2851,9 @@
{
"target": "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists"
},
{
"target": "com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy"
},
{
"target": "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy"
},
Expand Down Expand Up @@ -12309,6 +12312,19 @@
"smithy.api#documentation": "<p>Contains the result of testing a CloudFront function with <code>TestFunction</code>.</p>"
}
},
"com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.cloudfront#string"
}
},
"traits": {
"smithy.api#documentation": "<p>The length of the <code>Content-Security-Policy</code> header value in the response headers\n\t\t\tpolicy exceeds the maximum.</p>\n\t\t <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\">Quotas</a> (formerly known as limits) in the\n\t\t\t\t<i>Amazon CloudFront Developer Guide</i>.</p>",
"smithy.api#error": "client",
"smithy.api#httpError": 400
}
},
"com.amazonaws.cloudfront#TooManyCacheBehaviors": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -14201,6 +14217,9 @@
{
"target": "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists"
},
{
"target": "com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy"
},
{
"target": "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy"
}
Expand Down
4 changes: 2 additions & 2 deletions codegen/sdk-codegen/aws-models/rekognition.json

Large diffs are not rendered by default.

370 changes: 285 additions & 85 deletions codegen/sdk-codegen/aws-models/resiliencehub.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions codegen/sdk-codegen/aws-models/service-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -4303,7 +4303,7 @@
"Name": {
"target": "com.amazonaws.servicecatalog#PortfolioName",
"traits": {
"smithy.api#documentation": "<p>The name of the portfolio to which the user was assigned.</p>"
"smithy.api#documentation": "<p>The name of the portfolio that contains the product. </p>"
}
}
},
Expand Down Expand Up @@ -4346,7 +4346,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Lists all portfolios for which sharing was accepted by this account.</p>",
"smithy.api#documentation": "<p>Lists all imported portfolios for which account-to-account shares were accepted by\n this account. By specifying the <code>PortfolioShareType</code>, you can list portfolios for which\n organizational shares were accepted by this account.</p>",
"smithy.api#paginated": {
"inputToken": "PageToken",
"outputToken": "NextPageToken",
Expand Down Expand Up @@ -4378,7 +4378,7 @@
"PortfolioShareType": {
"target": "com.amazonaws.servicecatalog#PortfolioShareType",
"traits": {
"smithy.api#documentation": "<p>The type of shared portfolios to list. The default is to list imported portfolios.</p>\n <ul>\n <li>\n <p>\n <code>AWS_ORGANIZATIONS</code> - List portfolios shared by the management\n account of your organization</p>\n </li>\n <li>\n <p>\n <code>AWS_SERVICECATALOG</code> - List default portfolios</p>\n </li>\n <li>\n <p>\n <code>IMPORTED</code> - List imported portfolios</p>\n </li>\n </ul>"
"smithy.api#documentation": "<p>The type of shared portfolios to list. The default is to list imported portfolios.</p>\n <ul>\n <li>\n <p>\n <code>AWS_ORGANIZATIONS</code> - List portfolios accepted and shared via organizational sharing by the management account or delegated administrator of your organization.</p>\n </li>\n <li>\n <p>\n <code>AWS_SERVICECATALOG</code> - Deprecated type.</p>\n </li>\n <li>\n <p>\n <code>IMPORTED</code> - List imported portfolios that have been accepted and\n shared through account-to-account sharing.</p>\n </li>\n </ul>"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion codegen/sdk-codegen/aws-models/sts.json
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Returns a set of temporary credentials for an Amazon Web Services account or IAM user. The\n credentials consist of an access key ID, a secret access key, and a security token.\n Typically, you use <code>GetSessionToken</code> if you want to use MFA to protect\n programmatic calls to specific Amazon Web Services API operations like Amazon EC2 <code>StopInstances</code>.\n MFA-enabled IAM users would need to call <code>GetSessionToken</code> and submit an MFA\n code that is associated with their MFA device. Using the temporary security credentials\n that are returned from the call, IAM users can then make programmatic calls to API\n operations that require MFA authentication. If you do not supply a correct MFA code, then\n the API returns an access denied error. For a comparison of <code>GetSessionToken</code>\n with the other API operations that produce temporary credentials, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html\">Requesting\n Temporary Security Credentials</a> and <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison\">Comparing the\n Amazon Web Services STS API operations</a> in the <i>IAM User Guide</i>.</p>\n <p>\n <b>Session Duration</b>\n </p>\n <p>The <code>GetSessionToken</code> operation must be called by using the long-term Amazon Web Services\n security credentials of the Amazon Web Services account root user or an IAM user. Credentials that are\n created by IAM users are valid for the duration that you specify. This duration can range\n from 900 seconds (15 minutes) up to a maximum of 129,600 seconds (36 hours), with a default\n of 43,200 seconds (12 hours). Credentials based on account credentials can range from 900\n seconds (15 minutes) up to 3,600 seconds (1 hour), with a default of 1 hour. </p>\n <p>\n <b>Permissions</b>\n </p>\n <p>The temporary security credentials created by <code>GetSessionToken</code> can be used\n to make API calls to any Amazon Web Services service with the following exceptions:</p>\n <ul>\n <li>\n <p>You cannot call any IAM API operations unless MFA authentication information is\n included in the request.</p>\n </li>\n <li>\n <p>You cannot call any STS API <i>except</i>\n <code>AssumeRole</code> or <code>GetCallerIdentity</code>.</p>\n </li>\n </ul>\n <note>\n <p>We recommend that you do not call <code>GetSessionToken</code> with Amazon Web Services account\n root user credentials. Instead, follow our <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#create-iam-users\">best practices</a> by\n creating one or more IAM users, giving them the necessary permissions, and using IAM\n users for everyday interaction with Amazon Web Services. </p>\n </note>\n <p>The credentials that are returned by <code>GetSessionToken</code> are based on\n permissions associated with the user whose credentials were used to call the operation. If\n <code>GetSessionToken</code> is called using Amazon Web Services account root user credentials, the\n temporary credentials have root user permissions. Similarly, if\n <code>GetSessionToken</code> is called using the credentials of an IAM user, the\n temporary credentials have the same permissions as the IAM user. </p>\n <p>For more information about using <code>GetSessionToken</code> to create temporary\n credentials, go to <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getsessiontoken\">Temporary\n Credentials for Users in Untrusted Environments</a> in the\n <i>IAM User Guide</i>. </p>"
"smithy.api#documentation": "<p>Returns a set of temporary credentials for an Amazon Web Services account or IAM user. The\n credentials consist of an access key ID, a secret access key, and a security token.\n Typically, you use <code>GetSessionToken</code> if you want to use MFA to protect\n programmatic calls to specific Amazon Web Services API operations like Amazon EC2 <code>StopInstances</code>.\n MFA-enabled IAM users would need to call <code>GetSessionToken</code> and submit an MFA\n code that is associated with their MFA device. Using the temporary security credentials\n that are returned from the call, IAM users can then make programmatic calls to API\n operations that require MFA authentication. If you do not supply a correct MFA code, then\n the API returns an access denied error. For a comparison of <code>GetSessionToken</code>\n with the other API operations that produce temporary credentials, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html\">Requesting\n Temporary Security Credentials</a> and <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison\">Comparing the\n Amazon Web Services STS API operations</a> in the <i>IAM User Guide</i>.</p>\n <note>\n <p>No permissions are required for users to perform this operation. The purpose of the\n <code>sts:GetSessionToken</code> operation is to authenticate the user using MFA. You\n cannot use policies to control authentication operations. For more information, see\n <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getsessiontoken.html\">Permissions for GetSessionToken</a> in the\n <i>IAM User Guide</i>.</p>\n </note>\n <p>\n <b>Session Duration</b>\n </p>\n <p>The <code>GetSessionToken</code> operation must be called by using the long-term Amazon Web Services\n security credentials of the Amazon Web Services account root user or an IAM user. Credentials that are\n created by IAM users are valid for the duration that you specify. This duration can range\n from 900 seconds (15 minutes) up to a maximum of 129,600 seconds (36 hours), with a default\n of 43,200 seconds (12 hours). Credentials based on account credentials can range from 900\n seconds (15 minutes) up to 3,600 seconds (1 hour), with a default of 1 hour. </p>\n <p>\n <b>Permissions</b>\n </p>\n <p>The temporary security credentials created by <code>GetSessionToken</code> can be used\n to make API calls to any Amazon Web Services service with the following exceptions:</p>\n <ul>\n <li>\n <p>You cannot call any IAM API operations unless MFA authentication information is\n included in the request.</p>\n </li>\n <li>\n <p>You cannot call any STS API <i>except</i>\n <code>AssumeRole</code> or <code>GetCallerIdentity</code>.</p>\n </li>\n </ul>\n <note>\n <p>We recommend that you do not call <code>GetSessionToken</code> with Amazon Web Services account\n root user credentials. Instead, follow our <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#create-iam-users\">best practices</a> by\n creating one or more IAM users, giving them the necessary permissions, and using IAM\n users for everyday interaction with Amazon Web Services. </p>\n </note>\n <p>The credentials that are returned by <code>GetSessionToken</code> are based on\n permissions associated with the user whose credentials were used to call the operation. If\n <code>GetSessionToken</code> is called using Amazon Web Services account root user credentials, the\n temporary credentials have root user permissions. Similarly, if\n <code>GetSessionToken</code> is called using the credentials of an IAM user, the\n temporary credentials have the same permissions as the IAM user. </p>\n <p>For more information about using <code>GetSessionToken</code> to create temporary\n credentials, go to <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getsessiontoken\">Temporary\n Credentials for Users in Untrusted Environments</a> in the\n <i>IAM User Guide</i>. </p>"
}
},
"com.amazonaws.sts#GetSessionTokenRequest": {
Expand Down
Loading

0 comments on commit c1870c4

Please sign in to comment.