• 沒有找到結果。

AWS Well-Architected Tool

N/A
N/A
Protected

Academic year: 2022

Share "AWS Well-Architected Tool"

Copied!
187
0
0

加載中.... (立即查看全文)

全文

(1)

AWS Well-Architected Tool

API Reference

API Version 2020-03-31

(2)

AWS Well-Architected Tool: API Reference

Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.

Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.

(3)

Table of Contents

Welcome ... 1

Actions ... 2

AssociateLenses ... 4

Request Syntax ... 4

URI Request Parameters ... 4

Request Body ... 4

Response Syntax ... 4

Response Elements ... 5

Errors ... 5

See Also ... 5

CreateLensShare ... 6

Request Syntax ... 6

URI Request Parameters ... 6

Request Body ... 6

Response Syntax ... 7

Response Elements ... 7

Errors ... 7

See Also ... 8

CreateLensVersion ... 9

Request Syntax ... 9

URI Request Parameters ... 9

Request Body ... 9

Response Syntax ... 10

Response Elements ... 10

Errors ... 10

See Also ... 11

CreateMilestone ... 12

Request Syntax ... 12

URI Request Parameters ... 12

Request Body ... 12

Response Syntax ... 13

Response Elements ... 13

Errors ... 13

See Also ... 14

CreateWorkload ... 15

Request Syntax ... 15

URI Request Parameters ... 15

Request Body ... 15

Response Syntax ... 18

Response Elements ... 19

Errors ... 19

See Also ... 20

CreateWorkloadShare ... 21

Request Syntax ... 21

URI Request Parameters ... 21

Request Body ... 21

Response Syntax ... 22

Response Elements ... 22

Errors ... 22

See Also ... 23

DeleteLens ... 24

Request Syntax ... 24

URI Request Parameters ... 24

Request Body ... 24

(4)

Response Syntax ... 25

Response Elements ... 25

Errors ... 25

See Also ... 25

DeleteLensShare ... 27

Request Syntax ... 27

URI Request Parameters ... 27

Request Body ... 27

Response Syntax ... 28

Response Elements ... 28

Errors ... 28

See Also ... 28

DeleteWorkload ... 30

Request Syntax ... 30

URI Request Parameters ... 30

Request Body ... 30

Response Syntax ... 30

Response Elements ... 30

Errors ... 30

See Also ... 31

DeleteWorkloadShare ... 32

Request Syntax ... 32

URI Request Parameters ... 32

Request Body ... 32

Response Syntax ... 32

Response Elements ... 32

Errors ... 33

See Also ... 33

DisassociateLenses ... 34

Request Syntax ... 34

URI Request Parameters ... 34

Request Body ... 34

Response Syntax ... 34

Response Elements ... 35

Errors ... 35

See Also ... 35

ExportLens ... 36

Request Syntax ... 36

URI Request Parameters ... 36

Request Body ... 36

Response Syntax ... 36

Response Elements ... 36

Errors ... 37

See Also ... 37

GetAnswer ... 38

Request Syntax ... 38

URI Request Parameters ... 38

Request Body ... 38

Response Syntax ... 38

Response Elements ... 39

Errors ... 40

See Also ... 40

GetLens ... 42

Request Syntax ... 42

URI Request Parameters ... 42

Request Body ... 42

Response Syntax ... 42

(5)

Response Elements ... 42

Errors ... 43

See Also ... 43

GetLensReview ... 44

Request Syntax ... 44

URI Request Parameters ... 44

Request Body ... 44

Response Syntax ... 44

Response Elements ... 45

Errors ... 45

See Also ... 46

GetLensReviewReport ... 47

Request Syntax ... 47

URI Request Parameters ... 47

Request Body ... 47

Response Syntax ... 47

Response Elements ... 48

Errors ... 48

See Also ... 49

GetLensVersionDifference ... 50

Request Syntax ... 50

URI Request Parameters ... 50

Request Body ... 50

Response Syntax ... 50

Response Elements ... 51

Errors ... 52

See Also ... 52

GetMilestone ... 53

Request Syntax ... 53

URI Request Parameters ... 53

Request Body ... 53

Response Syntax ... 53

Response Elements ... 54

Errors ... 54

See Also ... 55

GetWorkload ... 56

Request Syntax ... 56

URI Request Parameters ... 56

Request Body ... 56

Response Syntax ... 56

Response Elements ... 57

Errors ... 57

See Also ... 57

ImportLens ... 59

Request Syntax ... 59

URI Request Parameters ... 59

Request Body ... 59

Response Syntax ... 60

Response Elements ... 60

Errors ... 61

See Also ... 61

ListAnswers ... 63

Request Syntax ... 63

URI Request Parameters ... 63

Request Body ... 63

Response Syntax ... 64

Response Elements ... 64

(6)

Errors ... 65

See Also ... 66

ListLenses ... 67

Request Syntax ... 67

URI Request Parameters ... 67

Request Body ... 67

Response Syntax ... 67

Response Elements ... 68

Errors ... 68

See Also ... 68

ListLensReviewImprovements ... 70

Request Syntax ... 70

URI Request Parameters ... 70

Request Body ... 70

Response Syntax ... 71

Response Elements ... 71

Errors ... 72

See Also ... 72

ListLensReviews ... 74

Request Syntax ... 74

URI Request Parameters ... 74

Request Body ... 74

Response Syntax ... 74

Response Elements ... 75

Errors ... 75

See Also ... 76

ListLensShares ... 77

Request Syntax ... 77

URI Request Parameters ... 77

Request Body ... 77

Response Syntax ... 77

Response Elements ... 78

Errors ... 78

See Also ... 78

ListMilestones ... 80

Request Syntax ... 80

URI Request Parameters ... 80

Request Body ... 80

Response Syntax ... 80

Response Elements ... 81

Errors ... 81

See Also ... 82

ListNotifications ... 83

Request Syntax ... 83

URI Request Parameters ... 83

Request Body ... 83

Response Syntax ... 83

Response Elements ... 84

Errors ... 84

See Also ... 85

ListShareInvitations ... 86

Request Syntax ... 86

URI Request Parameters ... 86

Request Body ... 86

Response Syntax ... 86

Response Elements ... 87

Errors ... 87

(7)

See Also ... 87

ListTagsForResource ... 89

Request Syntax ... 89

URI Request Parameters ... 89

Request Body ... 89

Response Syntax ... 89

Response Elements ... 89

Errors ... 89

See Also ... 90

ListWorkloads ... 91

Request Syntax ... 91

URI Request Parameters ... 91

Request Body ... 91

Response Syntax ... 91

Response Elements ... 92

Errors ... 92

See Also ... 93

ListWorkloadShares ... 94

Request Syntax ... 94

URI Request Parameters ... 94

Request Body ... 94

Response Syntax ... 94

Response Elements ... 95

Errors ... 95

See Also ... 96

TagResource ... 97

Request Syntax ... 97

URI Request Parameters ... 97

Request Body ... 97

Response Syntax ... 97

Response Elements ... 97

Errors ... 97

See Also ... 98

UntagResource ... 99

Request Syntax ... 99

URI Request Parameters ... 99

Request Body ... 99

Response Syntax ... 99

Response Elements ... 99

Errors ... 99

See Also ... 100

UpdateAnswer ... 101

Request Syntax ... 101

URI Request Parameters ... 101

Request Body ... 101

Response Syntax ... 102

Response Elements ... 103

Errors ... 104

See Also ... 104

UpdateLensReview ... 106

Request Syntax ... 106

URI Request Parameters ... 106

Request Body ... 106

Response Syntax ... 107

Response Elements ... 107

Errors ... 107

See Also ... 108

(8)

UpdateShareInvitation ... 109

Request Syntax ... 109

URI Request Parameters ... 109

Request Body ... 109

Response Syntax ... 109

Response Elements ... 110

Errors ... 110

See Also ... 110

UpdateWorkload ... 112

Request Syntax ... 112

URI Request Parameters ... 112

Request Body ... 112

Response Syntax ... 115

Response Elements ... 116

Errors ... 116

See Also ... 117

UpdateWorkloadShare ... 118

Request Syntax ... 118

URI Request Parameters ... 118

Request Body ... 118

Response Syntax ... 118

Response Elements ... 119

Errors ... 119

See Also ... 120

UpgradeLensReview ... 121

Request Syntax ... 121

URI Request Parameters ... 121

Request Body ... 121

Response Syntax ... 122

Response Elements ... 122

Errors ... 122

See Also ... 123

Data Types ... 124

Answer ... 125

Contents ... 125

See Also ... 127

AnswerSummary ... 128

Contents ... 128

See Also ... 129

Choice ... 130

Contents ... 130

See Also ... 130

ChoiceAnswer ... 132

Contents ... 132

See Also ... 132

ChoiceAnswerSummary ... 133

Contents ... 133

See Also ... 133

ChoiceContent ... 134

Contents ... 134

See Also ... 134

ChoiceImprovementPlan ... 135

Contents ... 135

See Also ... 135

ChoiceUpdate ... 136

Contents ... 136

See Also ... 136

(9)

ImprovementSummary ... 137

Contents ... 137

See Also ... 138

Lens ... 139

Contents ... 139

See Also ... 140

LensReview ... 141

Contents ... 141

See Also ... 142

LensReviewReport ... 143

Contents ... 143

See Also ... 143

LensReviewSummary ... 144

Contents ... 144

See Also ... 145

LensShareSummary ... 146

Contents ... 146

See Also ... 146

LensSummary ... 147

Contents ... 147

See Also ... 148

LensUpgradeSummary ... 149

Contents ... 149

See Also ... 150

Milestone ... 151

Contents ... 151

See Also ... 151

MilestoneSummary ... 152

Contents ... 152

See Also ... 152

NotificationSummary ... 153

Contents ... 153

See Also ... 153

PillarDifference ... 154

Contents ... 154

See Also ... 154

PillarReviewSummary ... 155

Contents ... 155

See Also ... 155

QuestionDifference ... 157

Contents ... 157

See Also ... 157

ShareInvitation ... 158

Contents ... 158

See Also ... 158

ShareInvitationSummary ... 160

Contents ... 160

See Also ... 161

ValidationExceptionField ... 162

Contents ... 162

See Also ... 162

VersionDifferences ... 163

Contents ... 163

See Also ... 163

Workload ... 164

Contents ... 164

See Also ... 168

(10)

WorkloadShare ... 169

Contents ... 169

See Also ... 170

WorkloadShareSummary ... 171

Contents ... 171

See Also ... 171

WorkloadSummary ... 172

Contents ... 172

See Also ... 173

Common Parameters ... 174

Common Errors ... 176

(11)

Welcome

This is the AWS Well-Architected Tool API Reference. The AWS WA Tool API provides programmatic access to the AWS Well-Architected Tool in the AWS Management Console. For information about the AWS Well-Architected Tool, see the AWS Well-Architected Tool User Guide.

This document was last published on March 6, 2022.

(12)

Actions

The following actions are supported:

• AssociateLenses (p. 4)

• CreateLensShare (p. 6)

• CreateLensVersion (p. 9)

• CreateMilestone (p. 12)

• CreateWorkload (p. 15)

• CreateWorkloadShare (p. 21)

• DeleteLens (p. 24)

• DeleteLensShare (p. 27)

• DeleteWorkload (p. 30)

• DeleteWorkloadShare (p. 32)

• DisassociateLenses (p. 34)

• ExportLens (p. 36)

• GetAnswer (p. 38)

• GetLens (p. 42)

• GetLensReview (p. 44)

• GetLensReviewReport (p. 47)

• GetLensVersionDifference (p. 50)

• GetMilestone (p. 53)

• GetWorkload (p. 56)

• ImportLens (p. 59)

• ListAnswers (p. 63)

• ListLenses (p. 67)

• ListLensReviewImprovements (p. 70)

• ListLensReviews (p. 74)

• ListLensShares (p. 77)

• ListMilestones (p. 80)

• ListNotifications (p. 83)

• ListShareInvitations (p. 86)

• ListTagsForResource (p. 89)

• ListWorkloads (p. 91)

• ListWorkloadShares (p. 94)

• TagResource (p. 97)

• UntagResource (p. 99)

• UpdateAnswer (p. 101)

• UpdateLensReview (p. 106)

• UpdateShareInvitation (p. 109)

• UpdateWorkload (p. 112)

• UpdateWorkloadShare (p. 118)

• UpgradeLensReview (p. 121)

(13)
(14)

AssociateLenses

AssociateLenses

Associate a lens to a workload.

Up to 10 lenses can be associated with a workload in a single API operation. A maximum of 20 lenses can be associated with a workload.

Note Disclaimer

By accessing and/or applying custom lenses created by another AWS user or account, you acknowledge that custom lenses created by other users and shared with you are Third Party Content as defined in the AWS Customer Agreement.

Request Syntax

PATCH /workloads/WorkloadId/associateLenses HTTP/1.1 Content-type: application/json

{

"LensAliases": [ "string" ] }

URI Request Parameters

The request uses the following URI parameters.

WorkloadId (p. 4)

The ID assigned to the workload. This ID is unique within an AWS Region.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request accepts the following data in JSON format.

LensAliases (p. 4)

List of lens aliases to associate or disassociate with a workload. Up to 10 lenses can be specified.

Identify a lens using its LensSummary:LensAlias (p. 147).

Type: Array of strings

Array Members: Minimum number of 1 item.

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

Response Syntax

HTTP/1.1 200

(15)

Response Elements

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(16)

CreateLensShare

CreateLensShare

Create a lens share.

The owner of a lens can share it with other AWS accounts and IAM users in the same AWS Region. Shared access to a lens is not removed until the lens invitation is deleted.

NoteDisclaimer

By sharing your custom lenses with other AWS accounts, you acknowledge that AWS will make your custom lenses available to those other accounts. Those other accounts may continue to access and use your shared custom lenses even if you delete the custom lenses from your own AWS account or terminate your AWS account.

Request Syntax

POST /lenses/LensAlias/shares HTTP/1.1 Content-type: application/json

{

"ClientRequestToken": "string", "SharedWith": "string"

}

URI Request Parameters

The request uses the following URI parameters.

LensAlias (p. 6)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

Request Body

The request accepts the following data in JSON format.

ClientRequestToken (p. 6)

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

Important

This token is listed as required, however, if you do not specify it, the AWS SDKs

automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

Type: String

(17)

Response Syntax

Required: Yes SharedWith (p. 6)

The AWS account ID or IAM role with which the workload is shared.

Type: String

Length Constraints: Minimum length of 12. Maximum length of 2048.

Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"ShareId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ShareId (p. 7)

The ID associated with the workload share.

Type: String

Pattern: [0-9a-f]{32}

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

(18)

See Also

HTTP Status Code: 404 ServiceQuotaExceededException

The user has reached their resource quota.

HTTP Status Code: 402 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(19)

CreateLensVersion

CreateLensVersion

Create a new lens version.

A lens can have up to 100 versions.

After a lens has been imported, create a new lens version to publish it. The owner of a lens can share the lens with other AWS accounts and IAM users in the same AWS Region. Only the owner of a lens can delete it.

Request Syntax

POST /lenses/LensAlias/versions HTTP/1.1 Content-type: application/json

{

"ClientRequestToken": "string", "IsMajorVersion": boolean, "LensVersion": "string"

}

URI Request Parameters

The request uses the following URI parameters.

LensAlias (p. 9)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

Request Body

The request accepts the following data in JSON format.

ClientRequestToken (p. 9)

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

Important

This token is listed as required, however, if you do not specify it, the AWS SDKs

automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

Type: String Required: Yes

(20)

Response Syntax

IsMajorVersion (p. 9)

Set to true if this new major lens version.

Type: Boolean Required: No LensVersion (p. 9)

The version of the lens being created.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 32.

Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"LensArn": "string", "LensVersion": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

LensArn (p. 10)

The ARN for the lens.

Type: String LensVersion (p. 10)

The version of the lens.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 32.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403

(21)

See Also

ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ServiceQuotaExceededException

The user has reached their resource quota.

HTTP Status Code: 402 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(22)

CreateMilestone

CreateMilestone

Create a milestone for an existing workload.

Request Syntax

POST /workloads/WorkloadId/milestones HTTP/1.1 Content-type: application/json

{ "ClientRequestToken": "string", "MilestoneName": "string"

}

URI Request Parameters

The request uses the following URI parameters.

WorkloadId (p. 12)

The ID assigned to the workload. This ID is unique within an AWS Region.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request accepts the following data in JSON format.

ClientRequestToken (p. 12)

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

Important

This token is listed as required, however, if you do not specify it, the AWS SDKs

automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

Type: String Required: Yes MilestoneName (p. 12)

The name of the milestone in a workload.

Milestone names must be unique within a workload.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 100.

Required: Yes

(23)

Response Syntax

Response Syntax

HTTP/1.1 200

Content-type: application/json { "MilestoneNumber": number, "WorkloadId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

MilestoneNumber (p. 13) The milestone number.

A workload can have a maximum of 100 milestones.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

WorkloadId (p. 13)

The ID assigned to the workload. This ID is unique within an AWS Region.

Type: String

Pattern: [0-9a-f]{32}

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404

(24)

See Also

ServiceQuotaExceededException

The user has reached their resource quota.

HTTP Status Code: 402 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(25)

CreateWorkload

CreateWorkload

Create a new workload.

The owner of a workload can share the workload with other AWS accounts and IAM users in the same AWS Region. Only the owner of a workload can delete it.

For more information, see Defining a Workload in the AWS Well-Architected Tool User Guide.

Request Syntax

POST /workloads HTTP/1.1 Content-type: application/json { "AccountIds": [ "string" ], "ArchitecturalDesign": "string", "AwsRegions": [ "string" ], "ClientRequestToken": "string", "Description": "string", "Environment": "string", "Industry": "string", "IndustryType": "string", "Lenses": [ "string" ], "NonAwsRegions": [ "string" ], "Notes": "string",

"PillarPriorities": [ "string" ], "ReviewOwner": "string",

"Tags": {

"string" : "string"

},

"WorkloadName": "string"

}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

AccountIds (p. 15)

The list of AWS account IDs associated with the workload.

Type: Array of strings

Array Members: Maximum number of 100 items.

Pattern: [0-9]{12}

Required: No

ArchitecturalDesign (p. 15)

The URL of the architectural design for the workload.

Type: String

(26)

Request Body

Length Constraints: Maximum length of 2048.

Required: No AwsRegions (p. 15)

The list of AWS Regions associated with the workload, for example, us-east-2, or ca-central-1.

Type: Array of strings

Array Members: Maximum number of 50 items.

Length Constraints: Maximum length of 100.

Required: No

ClientRequestToken (p. 15)

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

Important

This token is listed as required, however, if you do not specify it, the AWS SDKs

automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

Type: String Required: Yes Description (p. 15)

The description for the workload.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 250.

Required: Yes Environment (p. 15)

The environment for the workload.

Type: String

Valid Values: PRODUCTION | PREPRODUCTION Required: Yes

Industry (p. 15)

The industry for the workload.

Type: String

Length Constraints: Maximum length of 100.

Required: No IndustryType (p. 15)

The industry type for the workload.

If specified, must be one of the following:

(27)

Request Body

• Agriculture

• Automobile

• Defense

• Design and Engineering

• Digital Advertising

• Education

• Environmental Protection

• Financial Services

• Gaming

• General Public Services

• Healthcare

• Hospitality

• InfoTech

• Justice and Public Safety

• Life Sciences

• Manufacturing

• Media & Entertainment

• Mining & Resources

• Oil & Gas

• Power & Utilities

• Professional Services

• Real Estate & Construction

• Retail & Wholesale

• Social Protection

• Telecommunications

• Travel, Transportation & Logistics

• Other Type: String

Length Constraints: Maximum length of 100.

Required: No Lenses (p. 15)

The list of lenses associated with the workload. Each lens is identified by its LensSummary:LensAlias (p. 147).

Type: Array of strings

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes NonAwsRegions (p. 15)

The list of non-AWS Regions associated with the workload.

Type: Array of strings

Array Members: Maximum number of 5 items.

Length Constraints: Minimum length of 3. Maximum length of 25.

(28)

Response Syntax

Required: No Notes (p. 15)

The notes associated with the workload.

Type: String

Length Constraints: Maximum length of 2084.

Required: No PillarPriorities (p. 15)

The priorities of the pillars, which are used to order items in the improvement plan. Each pillar is represented by its PillarReviewSummary:PillarId (p. 155).

Type: Array of strings

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: No ReviewOwner (p. 15)

The review owner of the workload. The name, email address, or identifier for the primary group or individual that owns the workload review process.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 255.

Required: Yes Tags (p. 15)

The tags to be associated with the workload.

Type: String to string map

Map Entries: Maximum number of 50 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Value Length Constraints: Minimum length of 0. Maximum length of 256.

Required: No WorkloadName (p. 15)

The name of the workload.

The name must be unique within an account within an AWS Region. Spaces and capitalization are ignored when checking for uniqueness.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 100.

Required: Yes

Response Syntax

HTTP/1.1 200

(29)

Response Elements

Content-type: application/json { "WorkloadArn": "string", "WorkloadId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

WorkloadArn (p. 18)

The ARN for the workload.

Type: String WorkloadId (p. 18)

The ID assigned to the workload. This ID is unique within an AWS Region.

Type: String

Pattern: [0-9a-f]{32}

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ServiceQuotaExceededException

The user has reached their resource quota.

HTTP Status Code: 402 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

(30)

See Also

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(31)

CreateWorkloadShare

CreateWorkloadShare

Create a workload share.

The owner of a workload can share it with other AWS accounts and IAM users in the same AWS Region.

Shared access to a workload is not removed until the workload invitation is deleted.

For more information, see Sharing a Workload in the AWS Well-Architected Tool User Guide.

Request Syntax

POST /workloads/WorkloadId/shares HTTP/1.1 Content-type: application/json

{

"ClientRequestToken": "string", "PermissionType": "string", "SharedWith": "string"

}

URI Request Parameters

The request uses the following URI parameters.

WorkloadId (p. 21)

The ID assigned to the workload. This ID is unique within an AWS Region.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request accepts the following data in JSON format.

ClientRequestToken (p. 21)

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

Important

This token is listed as required, however, if you do not specify it, the AWS SDKs

automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

Type: String Required: Yes PermissionType (p. 21)

Permission granted on a workload share.

(32)

Response Syntax

Type: String

Valid Values: READONLY | CONTRIBUTOR Required: Yes

SharedWith (p. 21)

The AWS account ID or IAM role with which the workload is shared.

Type: String

Length Constraints: Minimum length of 12. Maximum length of 2048.

Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json { "ShareId": "string",

"WorkloadId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ShareId (p. 22)

The ID associated with the workload share.

Type: String

Pattern: [0-9a-f]{32}

WorkloadId (p. 22)

The ID assigned to the workload. This ID is unique within an AWS Region.

Type: String

Pattern: [0-9a-f]{32}

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403

(33)

See Also

ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ServiceQuotaExceededException

The user has reached their resource quota.

HTTP Status Code: 402 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(34)

DeleteLens

DeleteLens

Delete an existing lens.

Only the owner of a lens can delete it. After the lens is deleted, AWS accounts and IAM users that you shared the lens with can continue to use it, but they will no longer be able to apply it to new workloads.

NoteDisclaimer

By sharing your custom lenses with other AWS accounts, you acknowledge that AWS will make your custom lenses available to those other accounts. Those other accounts may continue to access and use your shared custom lenses even if you delete the custom lenses from your own AWS account or terminate your AWS account.

Request Syntax

DELETE /lenses/LensAlias?ClientRequestToken=ClientRequestToken&LensStatus=LensStatus HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ClientRequestToken (p. 24)

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

Important

This token is listed as required, however, if you do not specify it, the AWS SDKs

automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

Required: Yes LensAlias (p. 24)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes LensStatus (p. 24)

The status of the lens to be deleted.

Valid Values: ALL | DRAFT | PUBLISHED Required: Yes

Request Body

The request does not have a request body.

(35)

Response Syntax

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

(36)

See Also

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(37)

DeleteLensShare

DeleteLensShare

Delete a lens share.

After the lens share is deleted, AWS accounts and IAM users that you shared the lens with can continue to use it, but they will no longer be able to apply it to new workloads.

NoteDisclaimer

By sharing your custom lenses with other AWS accounts, you acknowledge that AWS will make your custom lenses available to those other accounts. Those other accounts may continue to access and use your shared custom lenses even if you delete the custom lenses from your own AWS account or terminate your AWS account.

Request Syntax

DELETE /lenses/LensAlias/shares/ShareId?ClientRequestToken=ClientRequestToken HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ClientRequestToken (p. 27)

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

Important

This token is listed as required, however, if you do not specify it, the AWS SDKs

automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

Required: Yes LensAlias (p. 27)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes ShareId (p. 27)

The ID associated with the workload share.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request does not have a request body.

(38)

Response Syntax

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

(39)

See Also

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(40)

DeleteWorkload

DeleteWorkload

Delete an existing workload.

Request Syntax

DELETE /workloads/WorkloadId?ClientRequestToken=ClientRequestToken HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ClientRequestToken (p. 30)

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

Important

This token is listed as required, however, if you do not specify it, the AWS SDKs

automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

Required: Yes WorkloadId (p. 30)

The ID assigned to the workload. This ID is unique within an AWS Region.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

(41)

See Also

HTTP Status Code: 403 ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(42)

DeleteWorkloadShare

DeleteWorkloadShare

Delete a workload share.

Request Syntax

DELETE /workloads/WorkloadId/shares/ShareId?ClientRequestToken=ClientRequestToken HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ClientRequestToken (p. 32)

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

Important

This token is listed as required, however, if you do not specify it, the AWS SDKs

automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

Required: Yes ShareId (p. 32)

The ID associated with the workload share.

Pattern: [0-9a-f]{32}

Required: Yes WorkloadId (p. 32)

The ID assigned to the workload. This ID is unique within an AWS Region.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

(43)

Errors

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(44)

DisassociateLenses

DisassociateLenses

Disassociate a lens from a workload.

Up to 10 lenses can be disassociated from a workload in a single API operation.

NoteThe AWS Well-Architected Framework lens (wellarchitected) cannot be removed from a workload.

Request Syntax

PATCH /workloads/WorkloadId/disassociateLenses HTTP/1.1 Content-type: application/json

{

"LensAliases": [ "string" ] }

URI Request Parameters

The request uses the following URI parameters.

WorkloadId (p. 34)

The ID assigned to the workload. This ID is unique within an AWS Region.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request accepts the following data in JSON format.

LensAliases (p. 34)

List of lens aliases to associate or disassociate with a workload. Up to 10 lenses can be specified.

Identify a lens using its LensSummary:LensAlias (p. 147).

Type: Array of strings

Array Members: Minimum number of 1 item.

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

Response Syntax

HTTP/1.1 200

(45)

Response Elements

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

The resource already exists.

HTTP Status Code: 409 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(46)

ExportLens

ExportLens

Export an existing lens.

Lenses are defined in JSON. For more information, see JSON format specification in the AWS Well- Architected Tool User Guide. Only the owner of a lens can export it.

NoteDisclaimer

Do not include or gather personal identifiable information (PII) of end users or other identifiable individuals in or via your custom lenses. If your custom lens or those shared with you and used in your account do include or collect PII you are responsible for: ensuring that the included PII is processed in accordance with applicable law, providing adequate privacy notices, and obtaining necessary consents for processing such data.

Request Syntax

GET /lenses/LensAlias/export?LensVersion=LensVersion HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

LensAlias (p. 36)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes LensVersion (p. 36)

The lens version to be exported.

Length Constraints: Minimum length of 1. Maximum length of 32.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "LensJSON": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

(47)

Errors

The following data is returned in JSON format by the service.

LensJSON (p. 36)

The JSON for the lens.

Type: String

Length Constraints: Minimum length of 2. Maximum length of 500000.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(48)

GetAnswer

GetAnswer

Get the answer to a specific question in a workload review.

Request Syntax

GET /workloads/WorkloadId/lensReviews/LensAlias/answers/QuestionId?

MilestoneNumber=MilestoneNumber HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

LensAlias (p. 38)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

MilestoneNumber (p. 38) The milestone number.

A workload can have a maximum of 100 milestones.

Valid Range: Minimum value of 1. Maximum value of 100.

QuestionId (p. 38)

The ID of the question.

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes WorkloadId (p. 38)

The ID assigned to the workload. This ID is unique within an AWS Region.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json {

(49)

Response Elements

"Answer": {

"ChoiceAnswers": [ {

"ChoiceId": "string", "Notes": "string", "Reason": "string", "Status": "string"

} ],

"Choices": [ {

"ChoiceId": "string", "Description": "string", "HelpfulResource": { "DisplayText": "string", "Url": "string"

},

"ImprovementPlan": { "DisplayText": "string", "Url": "string"

},

"Title": "string"

} ],

"HelpfulResourceDisplayText": "string", "HelpfulResourceUrl": "string",

"ImprovementPlanUrl": "string", "IsApplicable": boolean, "Notes": "string", "PillarId": "string",

"QuestionDescription": "string", "QuestionId": "string",

"QuestionTitle": "string", "Reason": "string",

"Risk": "string",

"SelectedChoices": [ "string" ] },

"LensAlias": "string", "LensArn": "string", "MilestoneNumber": number, "WorkloadId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Answer (p. 38)

An answer of the question.

Type: Answer (p. 125) object LensAlias (p. 38)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

(50)

Errors

LensArn (p. 38)

The ARN for the lens.

Type: String

MilestoneNumber (p. 38) The milestone number.

A workload can have a maximum of 100 milestones.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

WorkloadId (p. 38)

The ID assigned to the workload. This ID is unique within an AWS Region.

Type: String

Pattern: [0-9a-f]{32}

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

(51)

See Also

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(52)

GetLens

GetLens

Get an existing lens.

Request Syntax

GET /lenses/LensAlias?LensVersion=LensVersion HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

LensAlias (p. 42)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes LensVersion (p. 42)

The lens version to be retrieved.

Length Constraints: Minimum length of 1. Maximum length of 32.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "Lens": {

"Description": "string", "LensArn": "string", "LensVersion": "string", "Name": "string", "Owner": "string",

"ShareInvitationId": "string"

}}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

(53)

Errors

Lens (p. 42)

A lens return object.

Type: Lens (p. 139) object

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(54)

GetLensReview

GetLensReview

Get lens review.

Request Syntax

GET /workloads/WorkloadId/lensReviews/LensAlias?MilestoneNumber=MilestoneNumber HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

LensAlias (p. 44)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

MilestoneNumber (p. 44) The milestone number.

A workload can have a maximum of 100 milestones.

Valid Range: Minimum value of 1. Maximum value of 100.

WorkloadId (p. 44)

The ID assigned to the workload. This ID is unique within an AWS Region.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "LensReview": {

"LensAlias": "string", "LensArn": "string", "LensName": "string", "LensStatus": "string", "LensVersion": "string", "NextToken": "string", "Notes": "string",

(55)

Response Elements

"PillarReviewSummaries": [ {

"Notes": "string", "PillarId": "string", "PillarName": "string", "RiskCounts": { "string" : number }

} ],

"RiskCounts": { "string" : number },

"UpdatedAt": number },

"MilestoneNumber": number, "WorkloadId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

LensReview (p. 44)

A lens review of a question.

Type: LensReview (p. 141) object MilestoneNumber (p. 44)

The milestone number.

A workload can have a maximum of 100 milestones.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

WorkloadId (p. 44)

The ID assigned to the workload. This ID is unique within an AWS Region.

Type: String

Pattern: [0-9a-f]{32}

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

(56)

See Also

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(57)

GetLensReviewReport

GetLensReviewReport

Get lens review report.

Request Syntax

GET /workloads/WorkloadId/lensReviews/LensAlias/report?MilestoneNumber=MilestoneNumber HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

LensAlias (p. 47)

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary:LensAlias (p. 147).

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

MilestoneNumber (p. 47) The milestone number.

A workload can have a maximum of 100 milestones.

Valid Range: Minimum value of 1. Maximum value of 100.

WorkloadId (p. 47)

The ID assigned to the workload. This ID is unique within an AWS Region.

Pattern: [0-9a-f]{32}

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"LensReviewReport": { "Base64String": "string", "LensAlias": "string", "LensArn": "string"

},

"MilestoneNumber": number, "WorkloadId": "string"

(58)

Response Elements

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

LensReviewReport (p. 47) A report of a lens review.

Type: LensReviewReport (p. 143) object MilestoneNumber (p. 47)

The milestone number.

A workload can have a maximum of 100 milestones.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

WorkloadId (p. 47)

The ID assigned to the workload. This ID is unique within an AWS Region.

Type: String

Pattern: [0-9a-f]{32}

Errors

For information about the errors that are common to all actions, see Common Errors (p. 176).

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServerException

There is a problem with the AWS Well-Architected Tool API service.

HTTP Status Code: 500 ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404 ThrottlingException

Request was denied due to request throttling.

HTTP Status Code: 429 ValidationException

The user input is not valid.

參考文獻

相關文件

– If your virus can infect all .COM files under the same folder, and when you open the infected file, it infects all other files, you get a nice score. • If your virus can do all

– The The readLine readLine method is the same method used to read method is the same method used to read  from the keyboard, but in this case it would read from a 

A network technician reports that he receives a “Request timed out” error message when he attempts to use the ping utility to connect to Server1 from his client computer.. The

It has been well-known that, if △ABC is a plane triangle, then there exists a unique point P (known as the Fermat point of the triangle △ABC) in the same plane such that it

If that circle is formed into a square so that the circumference of the original circle and the perimeter of the square are exactly the same, the sides of a pyramid constructed on

If a contributor is actively seeking an appointment in the aided school sector but has not yet obtained an appointment as a regular teacher in a grant/subsidized school, or he

2-1 註冊為會員後您便有了個別的”my iF”帳戶。完成註冊後請點選左方 Register entry (直接登入 my iF 則直接進入下方畫面),即可選擇目前開放可供參賽的獎項,找到iF STUDENT

Following the supply by the school of a copy of personal data in compliance with a data access request, the requestor is entitled to ask for correction of the personal data