@aws-sdk/client-wellarchitected 3.423.0 → 3.424.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +112 -0
  2. package/dist-cjs/WellArchitected.js +28 -0
  3. package/dist-cjs/commands/CreateReviewTemplateCommand.js +51 -0
  4. package/dist-cjs/commands/CreateTemplateShareCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteReviewTemplateCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteTemplateShareCommand.js +51 -0
  7. package/dist-cjs/commands/GetReviewTemplateAnswerCommand.js +51 -0
  8. package/dist-cjs/commands/GetReviewTemplateCommand.js +51 -0
  9. package/dist-cjs/commands/GetReviewTemplateLensReviewCommand.js +51 -0
  10. package/dist-cjs/commands/ListReviewTemplateAnswersCommand.js +51 -0
  11. package/dist-cjs/commands/ListReviewTemplatesCommand.js +51 -0
  12. package/dist-cjs/commands/ListTemplateSharesCommand.js +51 -0
  13. package/dist-cjs/commands/UpdateReviewTemplateAnswerCommand.js +51 -0
  14. package/dist-cjs/commands/UpdateReviewTemplateCommand.js +51 -0
  15. package/dist-cjs/commands/UpdateReviewTemplateLensReviewCommand.js +51 -0
  16. package/dist-cjs/commands/UpgradeReviewTemplateLensReviewCommand.js +51 -0
  17. package/dist-cjs/commands/index.js +14 -0
  18. package/dist-cjs/models/models_0.js +14 -1
  19. package/dist-cjs/pagination/ListReviewTemplateAnswersPaginator.js +29 -0
  20. package/dist-cjs/pagination/ListReviewTemplatesPaginator.js +29 -0
  21. package/dist-cjs/pagination/ListTemplateSharesPaginator.js +29 -0
  22. package/dist-cjs/pagination/index.js +3 -0
  23. package/dist-cjs/protocols/Aws_restJson1.js +1098 -53
  24. package/dist-es/WellArchitected.js +28 -0
  25. package/dist-es/commands/CreateReviewTemplateCommand.js +47 -0
  26. package/dist-es/commands/CreateTemplateShareCommand.js +47 -0
  27. package/dist-es/commands/DeleteReviewTemplateCommand.js +47 -0
  28. package/dist-es/commands/DeleteTemplateShareCommand.js +47 -0
  29. package/dist-es/commands/GetReviewTemplateAnswerCommand.js +47 -0
  30. package/dist-es/commands/GetReviewTemplateCommand.js +47 -0
  31. package/dist-es/commands/GetReviewTemplateLensReviewCommand.js +47 -0
  32. package/dist-es/commands/ListReviewTemplateAnswersCommand.js +47 -0
  33. package/dist-es/commands/ListReviewTemplatesCommand.js +47 -0
  34. package/dist-es/commands/ListTemplateSharesCommand.js +47 -0
  35. package/dist-es/commands/UpdateReviewTemplateAnswerCommand.js +47 -0
  36. package/dist-es/commands/UpdateReviewTemplateCommand.js +47 -0
  37. package/dist-es/commands/UpdateReviewTemplateLensReviewCommand.js +47 -0
  38. package/dist-es/commands/UpgradeReviewTemplateLensReviewCommand.js +47 -0
  39. package/dist-es/commands/index.js +14 -0
  40. package/dist-es/models/models_0.js +13 -0
  41. package/dist-es/pagination/ListReviewTemplateAnswersPaginator.js +25 -0
  42. package/dist-es/pagination/ListReviewTemplatesPaginator.js +25 -0
  43. package/dist-es/pagination/ListTemplateSharesPaginator.js +25 -0
  44. package/dist-es/pagination/index.js +3 -0
  45. package/dist-es/protocols/Aws_restJson1.js +1065 -48
  46. package/dist-types/WellArchitected.d.ts +98 -0
  47. package/dist-types/WellArchitectedClient.d.ts +16 -2
  48. package/dist-types/commands/CreateReviewTemplateCommand.d.ts +114 -0
  49. package/dist-types/commands/CreateTemplateShareCommand.d.ts +111 -0
  50. package/dist-types/commands/CreateWorkloadCommand.d.ts +26 -0
  51. package/dist-types/commands/DeleteReviewTemplateCommand.d.ts +94 -0
  52. package/dist-types/commands/DeleteTemplateShareCommand.d.ts +94 -0
  53. package/dist-types/commands/GetReviewTemplateAnswerCommand.d.ts +141 -0
  54. package/dist-types/commands/GetReviewTemplateCommand.d.ts +106 -0
  55. package/dist-types/commands/GetReviewTemplateLensReviewCommand.d.ts +112 -0
  56. package/dist-types/commands/ListNotificationsCommand.d.ts +3 -0
  57. package/dist-types/commands/ListReviewTemplateAnswersCommand.d.ts +141 -0
  58. package/dist-types/commands/ListReviewTemplatesCommand.d.ts +99 -0
  59. package/dist-types/commands/ListShareInvitationsCommand.d.ts +10 -3
  60. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  61. package/dist-types/commands/ListTemplateSharesCommand.d.ts +101 -0
  62. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  63. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  64. package/dist-types/commands/UpdateReviewTemplateAnswerCommand.d.ts +157 -0
  65. package/dist-types/commands/UpdateReviewTemplateCommand.d.ts +118 -0
  66. package/dist-types/commands/UpdateReviewTemplateLensReviewCommand.d.ts +119 -0
  67. package/dist-types/commands/UpdateShareInvitationCommand.d.ts +2 -1
  68. package/dist-types/commands/UpgradeReviewTemplateLensReviewCommand.d.ts +91 -0
  69. package/dist-types/commands/index.d.ts +14 -0
  70. package/dist-types/models/models_0.d.ts +1206 -103
  71. package/dist-types/pagination/ListReviewTemplateAnswersPaginator.d.ts +7 -0
  72. package/dist-types/pagination/ListReviewTemplatesPaginator.d.ts +7 -0
  73. package/dist-types/pagination/ListTemplateSharesPaginator.d.ts +7 -0
  74. package/dist-types/pagination/index.d.ts +3 -0
  75. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  76. package/dist-types/ts3.4/WellArchitected.d.ts +238 -0
  77. package/dist-types/ts3.4/WellArchitectedClient.d.ts +86 -2
  78. package/dist-types/ts3.4/commands/CreateReviewTemplateCommand.d.ts +42 -0
  79. package/dist-types/ts3.4/commands/CreateTemplateShareCommand.d.ts +39 -0
  80. package/dist-types/ts3.4/commands/DeleteReviewTemplateCommand.d.ts +37 -0
  81. package/dist-types/ts3.4/commands/DeleteTemplateShareCommand.d.ts +34 -0
  82. package/dist-types/ts3.4/commands/GetReviewTemplateAnswerCommand.d.ts +42 -0
  83. package/dist-types/ts3.4/commands/GetReviewTemplateCommand.d.ts +38 -0
  84. package/dist-types/ts3.4/commands/GetReviewTemplateLensReviewCommand.d.ts +42 -0
  85. package/dist-types/ts3.4/commands/ListReviewTemplateAnswersCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/ListReviewTemplatesCommand.d.ts +39 -0
  87. package/dist-types/ts3.4/commands/ListTemplateSharesCommand.d.ts +39 -0
  88. package/dist-types/ts3.4/commands/UpdateReviewTemplateAnswerCommand.d.ts +42 -0
  89. package/dist-types/ts3.4/commands/UpdateReviewTemplateCommand.d.ts +42 -0
  90. package/dist-types/ts3.4/commands/UpdateReviewTemplateLensReviewCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/UpgradeReviewTemplateLensReviewCommand.d.ts +38 -0
  92. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  93. package/dist-types/ts3.4/models/models_0.d.ts +227 -0
  94. package/dist-types/ts3.4/pagination/ListReviewTemplateAnswersPaginator.d.ts +11 -0
  95. package/dist-types/ts3.4/pagination/ListReviewTemplatesPaginator.d.ts +11 -0
  96. package/dist-types/ts3.4/pagination/ListTemplateSharesPaginator.d.ts +11 -0
  97. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  98. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  99. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ListReviewTemplatesInput, ListReviewTemplatesOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WellArchitectedClientResolvedConfig } from "../WellArchitectedClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListReviewTemplatesCommand}.
14
+ */
15
+ export interface ListReviewTemplatesCommandInput extends ListReviewTemplatesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListReviewTemplatesCommand}.
21
+ */
22
+ export interface ListReviewTemplatesCommandOutput extends ListReviewTemplatesOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>List review templates.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { WellArchitectedClient, ListReviewTemplatesCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
31
+ * // const { WellArchitectedClient, ListReviewTemplatesCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
32
+ * const client = new WellArchitectedClient(config);
33
+ * const input = { // ListReviewTemplatesInput
34
+ * NextToken: "STRING_VALUE",
35
+ * MaxResults: Number("int"),
36
+ * };
37
+ * const command = new ListReviewTemplatesCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // ListReviewTemplatesOutput
40
+ * // ReviewTemplates: [ // ReviewTemplates
41
+ * // { // ReviewTemplateSummary
42
+ * // Description: "STRING_VALUE",
43
+ * // Lenses: [ // ReviewTemplateLenses
44
+ * // "STRING_VALUE",
45
+ * // ],
46
+ * // Owner: "STRING_VALUE",
47
+ * // UpdatedAt: new Date("TIMESTAMP"),
48
+ * // TemplateArn: "STRING_VALUE",
49
+ * // TemplateName: "STRING_VALUE",
50
+ * // UpdateStatus: "CURRENT" || "LENS_NOT_CURRENT",
51
+ * // },
52
+ * // ],
53
+ * // NextToken: "STRING_VALUE",
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param ListReviewTemplatesCommandInput - {@link ListReviewTemplatesCommandInput}
59
+ * @returns {@link ListReviewTemplatesCommandOutput}
60
+ * @see {@link ListReviewTemplatesCommandInput} for command's `input` shape.
61
+ * @see {@link ListReviewTemplatesCommandOutput} for command's `response` shape.
62
+ * @see {@link WellArchitectedClientResolvedConfig | config} for WellArchitectedClient's `config` shape.
63
+ *
64
+ * @throws {@link AccessDeniedException} (client fault)
65
+ * <p>User does not have sufficient access to perform this action.</p>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <p>There is a problem with the Well-Architected Tool API service.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>Request was denied due to request throttling.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The user input is not valid.</p>
75
+ *
76
+ * @throws {@link WellArchitectedServiceException}
77
+ * <p>Base exception class for all service exceptions from WellArchitected service.</p>
78
+ *
79
+ */
80
+ export declare class ListReviewTemplatesCommand extends $Command<ListReviewTemplatesCommandInput, ListReviewTemplatesCommandOutput, WellArchitectedClientResolvedConfig> {
81
+ readonly input: ListReviewTemplatesCommandInput;
82
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
83
+ /**
84
+ * @public
85
+ */
86
+ constructor(input: ListReviewTemplatesCommandInput);
87
+ /**
88
+ * @internal
89
+ */
90
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WellArchitectedClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListReviewTemplatesCommandInput, ListReviewTemplatesCommandOutput>;
91
+ /**
92
+ * @internal
93
+ */
94
+ private serialize;
95
+ /**
96
+ * @internal
97
+ */
98
+ private deserialize;
99
+ }
@@ -23,7 +23,11 @@ export interface ListShareInvitationsCommandOutput extends ListShareInvitationsO
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>List the workload invitations.</p>
26
+ * <p>List the share invitations.</p>
27
+ * <p>
28
+ * <code>WorkloadNamePrefix</code>, <code>LensNamePrefix</code>,
29
+ * <code>ProfileNamePrefix</code>, and <code>TemplateNamePrefix</code> are mutually
30
+ * exclusive. Use the parameter that matches your <code>ShareResourceType</code>.</p>
27
31
  * @example
28
32
  * Use a bare-bones client and the command you need to make an API call.
29
33
  * ```javascript
@@ -33,10 +37,11 @@ export interface ListShareInvitationsCommandOutput extends ListShareInvitationsO
33
37
  * const input = { // ListShareInvitationsInput
34
38
  * WorkloadNamePrefix: "STRING_VALUE",
35
39
  * LensNamePrefix: "STRING_VALUE",
36
- * ShareResourceType: "WORKLOAD" || "LENS" || "PROFILE",
40
+ * ShareResourceType: "WORKLOAD" || "LENS" || "PROFILE" || "TEMPLATE",
37
41
  * NextToken: "STRING_VALUE",
38
42
  * MaxResults: Number("int"),
39
43
  * ProfileNamePrefix: "STRING_VALUE",
44
+ * TemplateNamePrefix: "STRING_VALUE",
40
45
  * };
41
46
  * const command = new ListShareInvitationsCommand(input);
42
47
  * const response = await client.send(command);
@@ -47,13 +52,15 @@ export interface ListShareInvitationsCommandOutput extends ListShareInvitationsO
47
52
  * // SharedBy: "STRING_VALUE",
48
53
  * // SharedWith: "STRING_VALUE",
49
54
  * // PermissionType: "READONLY" || "CONTRIBUTOR",
50
- * // ShareResourceType: "WORKLOAD" || "LENS" || "PROFILE",
55
+ * // ShareResourceType: "WORKLOAD" || "LENS" || "PROFILE" || "TEMPLATE",
51
56
  * // WorkloadName: "STRING_VALUE",
52
57
  * // WorkloadId: "STRING_VALUE",
53
58
  * // LensName: "STRING_VALUE",
54
59
  * // LensArn: "STRING_VALUE",
55
60
  * // ProfileName: "STRING_VALUE",
56
61
  * // ProfileArn: "STRING_VALUE",
62
+ * // TemplateName: "STRING_VALUE",
63
+ * // TemplateArn: "STRING_VALUE",
57
64
  * // },
58
65
  * // ],
59
66
  * // NextToken: "STRING_VALUE",
@@ -25,7 +25,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
25
25
  * @public
26
26
  * <p>List the tags for a resource.</p>
27
27
  * <note>
28
- * <p>The WorkloadArn parameter can be a workload ARN, a custom lens ARN, or a profile ARN.</p>
28
+ * <p>The WorkloadArn parameter can be a workload ARN, a custom lens ARN, a profile ARN, or review template ARN.</p>
29
29
  * </note>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
@@ -0,0 +1,101 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ListTemplateSharesInput, ListTemplateSharesOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WellArchitectedClientResolvedConfig } from "../WellArchitectedClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListTemplateSharesCommand}.
14
+ */
15
+ export interface ListTemplateSharesCommandInput extends ListTemplateSharesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTemplateSharesCommand}.
21
+ */
22
+ export interface ListTemplateSharesCommandOutput extends ListTemplateSharesOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>List review template shares.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { WellArchitectedClient, ListTemplateSharesCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
31
+ * // const { WellArchitectedClient, ListTemplateSharesCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
32
+ * const client = new WellArchitectedClient(config);
33
+ * const input = { // ListTemplateSharesInput
34
+ * TemplateArn: "STRING_VALUE", // required
35
+ * SharedWithPrefix: "STRING_VALUE",
36
+ * NextToken: "STRING_VALUE",
37
+ * MaxResults: Number("int"),
38
+ * Status: "ACCEPTED" || "REJECTED" || "PENDING" || "REVOKED" || "EXPIRED" || "ASSOCIATING" || "ASSOCIATED" || "FAILED",
39
+ * };
40
+ * const command = new ListTemplateSharesCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListTemplateSharesOutput
43
+ * // TemplateArn: "STRING_VALUE",
44
+ * // TemplateShareSummaries: [ // TemplateShareSummaries
45
+ * // { // TemplateShareSummary
46
+ * // ShareId: "STRING_VALUE",
47
+ * // SharedWith: "STRING_VALUE",
48
+ * // Status: "ACCEPTED" || "REJECTED" || "PENDING" || "REVOKED" || "EXPIRED" || "ASSOCIATING" || "ASSOCIATED" || "FAILED",
49
+ * // StatusMessage: "STRING_VALUE",
50
+ * // },
51
+ * // ],
52
+ * // NextToken: "STRING_VALUE",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListTemplateSharesCommandInput - {@link ListTemplateSharesCommandInput}
58
+ * @returns {@link ListTemplateSharesCommandOutput}
59
+ * @see {@link ListTemplateSharesCommandInput} for command's `input` shape.
60
+ * @see {@link ListTemplateSharesCommandOutput} for command's `response` shape.
61
+ * @see {@link WellArchitectedClientResolvedConfig | config} for WellArchitectedClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>User does not have sufficient access to perform this action.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>There is a problem with the Well-Architected Tool API service.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>The requested resource was not found.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>Request was denied due to request throttling.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p>The user input is not valid.</p>
77
+ *
78
+ * @throws {@link WellArchitectedServiceException}
79
+ * <p>Base exception class for all service exceptions from WellArchitected service.</p>
80
+ *
81
+ */
82
+ export declare class ListTemplateSharesCommand extends $Command<ListTemplateSharesCommandInput, ListTemplateSharesCommandOutput, WellArchitectedClientResolvedConfig> {
83
+ readonly input: ListTemplateSharesCommandInput;
84
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
+ /**
86
+ * @public
87
+ */
88
+ constructor(input: ListTemplateSharesCommandInput);
89
+ /**
90
+ * @internal
91
+ */
92
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WellArchitectedClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTemplateSharesCommandInput, ListTemplateSharesCommandOutput>;
93
+ /**
94
+ * @internal
95
+ */
96
+ private serialize;
97
+ /**
98
+ * @internal
99
+ */
100
+ private deserialize;
101
+ }
@@ -25,7 +25,7 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
25
25
  * @public
26
26
  * <p>Adds one or more tags to the specified resource.</p>
27
27
  * <note>
28
- * <p>The WorkloadArn parameter can be a workload ARN, a custom lens ARN, or a profile ARN.</p>
28
+ * <p>The WorkloadArn parameter can be a workload ARN, a custom lens ARN, a profile ARN, or review template ARN.</p>
29
29
  * </note>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
@@ -25,7 +25,7 @@ export interface UntagResourceCommandOutput extends UntagResourceOutput, __Metad
25
25
  * @public
26
26
  * <p>Deletes specified tags from a resource.</p>
27
27
  * <note>
28
- * <p>The WorkloadArn parameter can be a workload ARN, a custom lens ARN, or a profile ARN.</p>
28
+ * <p>The WorkloadArn parameter can be a workload ARN, a custom lens ARN, a profile ARN, or review template ARN.</p>
29
29
  * </note>
30
30
  * <p>To specify multiple tags, use separate <b>tagKeys</b> parameters, for example:</p>
31
31
  * <p>
@@ -0,0 +1,157 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { UpdateReviewTemplateAnswerInput, UpdateReviewTemplateAnswerOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WellArchitectedClientResolvedConfig } from "../WellArchitectedClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateReviewTemplateAnswerCommand}.
14
+ */
15
+ export interface UpdateReviewTemplateAnswerCommandInput extends UpdateReviewTemplateAnswerInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateReviewTemplateAnswerCommand}.
21
+ */
22
+ export interface UpdateReviewTemplateAnswerCommandOutput extends UpdateReviewTemplateAnswerOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Update a review template answer.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { WellArchitectedClient, UpdateReviewTemplateAnswerCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
31
+ * // const { WellArchitectedClient, UpdateReviewTemplateAnswerCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
32
+ * const client = new WellArchitectedClient(config);
33
+ * const input = { // UpdateReviewTemplateAnswerInput
34
+ * TemplateArn: "STRING_VALUE", // required
35
+ * LensAlias: "STRING_VALUE", // required
36
+ * QuestionId: "STRING_VALUE", // required
37
+ * SelectedChoices: [ // SelectedChoices
38
+ * "STRING_VALUE",
39
+ * ],
40
+ * ChoiceUpdates: { // ChoiceUpdates
41
+ * "<keys>": { // ChoiceUpdate
42
+ * Status: "SELECTED" || "NOT_APPLICABLE" || "UNSELECTED", // required
43
+ * Reason: "OUT_OF_SCOPE" || "BUSINESS_PRIORITIES" || "ARCHITECTURE_CONSTRAINTS" || "OTHER" || "NONE",
44
+ * Notes: "STRING_VALUE",
45
+ * },
46
+ * },
47
+ * Notes: "STRING_VALUE",
48
+ * IsApplicable: true || false,
49
+ * Reason: "OUT_OF_SCOPE" || "BUSINESS_PRIORITIES" || "ARCHITECTURE_CONSTRAINTS" || "OTHER" || "NONE",
50
+ * };
51
+ * const command = new UpdateReviewTemplateAnswerCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // UpdateReviewTemplateAnswerOutput
54
+ * // TemplateArn: "STRING_VALUE",
55
+ * // LensAlias: "STRING_VALUE",
56
+ * // Answer: { // ReviewTemplateAnswer
57
+ * // QuestionId: "STRING_VALUE",
58
+ * // PillarId: "STRING_VALUE",
59
+ * // QuestionTitle: "STRING_VALUE",
60
+ * // QuestionDescription: "STRING_VALUE",
61
+ * // ImprovementPlanUrl: "STRING_VALUE",
62
+ * // HelpfulResourceUrl: "STRING_VALUE",
63
+ * // HelpfulResourceDisplayText: "STRING_VALUE",
64
+ * // Choices: [ // Choices
65
+ * // { // Choice
66
+ * // ChoiceId: "STRING_VALUE",
67
+ * // Title: "STRING_VALUE",
68
+ * // Description: "STRING_VALUE",
69
+ * // HelpfulResource: { // ChoiceContent
70
+ * // DisplayText: "STRING_VALUE",
71
+ * // Url: "STRING_VALUE",
72
+ * // },
73
+ * // ImprovementPlan: {
74
+ * // DisplayText: "STRING_VALUE",
75
+ * // Url: "STRING_VALUE",
76
+ * // },
77
+ * // AdditionalResources: [ // AdditionalResourcesList
78
+ * // { // AdditionalResources
79
+ * // Type: "HELPFUL_RESOURCE" || "IMPROVEMENT_PLAN",
80
+ * // Content: [ // Urls
81
+ * // {
82
+ * // DisplayText: "STRING_VALUE",
83
+ * // Url: "STRING_VALUE",
84
+ * // },
85
+ * // ],
86
+ * // },
87
+ * // ],
88
+ * // },
89
+ * // ],
90
+ * // SelectedChoices: [ // SelectedChoices
91
+ * // "STRING_VALUE",
92
+ * // ],
93
+ * // ChoiceAnswers: [ // ChoiceAnswers
94
+ * // { // ChoiceAnswer
95
+ * // ChoiceId: "STRING_VALUE",
96
+ * // Status: "SELECTED" || "NOT_APPLICABLE" || "UNSELECTED",
97
+ * // Reason: "OUT_OF_SCOPE" || "BUSINESS_PRIORITIES" || "ARCHITECTURE_CONSTRAINTS" || "OTHER" || "NONE",
98
+ * // Notes: "STRING_VALUE",
99
+ * // },
100
+ * // ],
101
+ * // IsApplicable: true || false,
102
+ * // AnswerStatus: "UNANSWERED" || "ANSWERED",
103
+ * // Notes: "STRING_VALUE",
104
+ * // Reason: "OUT_OF_SCOPE" || "BUSINESS_PRIORITIES" || "ARCHITECTURE_CONSTRAINTS" || "OTHER" || "NONE",
105
+ * // },
106
+ * // };
107
+ *
108
+ * ```
109
+ *
110
+ * @param UpdateReviewTemplateAnswerCommandInput - {@link UpdateReviewTemplateAnswerCommandInput}
111
+ * @returns {@link UpdateReviewTemplateAnswerCommandOutput}
112
+ * @see {@link UpdateReviewTemplateAnswerCommandInput} for command's `input` shape.
113
+ * @see {@link UpdateReviewTemplateAnswerCommandOutput} for command's `response` shape.
114
+ * @see {@link WellArchitectedClientResolvedConfig | config} for WellArchitectedClient's `config` shape.
115
+ *
116
+ * @throws {@link AccessDeniedException} (client fault)
117
+ * <p>User does not have sufficient access to perform this action.</p>
118
+ *
119
+ * @throws {@link ConflictException} (client fault)
120
+ * <p>The resource has already been processed, was deleted, or is too large.</p>
121
+ *
122
+ * @throws {@link InternalServerException} (server fault)
123
+ * <p>There is a problem with the Well-Architected Tool API service.</p>
124
+ *
125
+ * @throws {@link ResourceNotFoundException} (client fault)
126
+ * <p>The requested resource was not found.</p>
127
+ *
128
+ * @throws {@link ThrottlingException} (client fault)
129
+ * <p>Request was denied due to request throttling.</p>
130
+ *
131
+ * @throws {@link ValidationException} (client fault)
132
+ * <p>The user input is not valid.</p>
133
+ *
134
+ * @throws {@link WellArchitectedServiceException}
135
+ * <p>Base exception class for all service exceptions from WellArchitected service.</p>
136
+ *
137
+ */
138
+ export declare class UpdateReviewTemplateAnswerCommand extends $Command<UpdateReviewTemplateAnswerCommandInput, UpdateReviewTemplateAnswerCommandOutput, WellArchitectedClientResolvedConfig> {
139
+ readonly input: UpdateReviewTemplateAnswerCommandInput;
140
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
141
+ /**
142
+ * @public
143
+ */
144
+ constructor(input: UpdateReviewTemplateAnswerCommandInput);
145
+ /**
146
+ * @internal
147
+ */
148
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WellArchitectedClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateReviewTemplateAnswerCommandInput, UpdateReviewTemplateAnswerCommandOutput>;
149
+ /**
150
+ * @internal
151
+ */
152
+ private serialize;
153
+ /**
154
+ * @internal
155
+ */
156
+ private deserialize;
157
+ }
@@ -0,0 +1,118 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { UpdateReviewTemplateInput, UpdateReviewTemplateOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WellArchitectedClientResolvedConfig } from "../WellArchitectedClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateReviewTemplateCommand}.
14
+ */
15
+ export interface UpdateReviewTemplateCommandInput extends UpdateReviewTemplateInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateReviewTemplateCommand}.
21
+ */
22
+ export interface UpdateReviewTemplateCommandOutput extends UpdateReviewTemplateOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Update a review template.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { WellArchitectedClient, UpdateReviewTemplateCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
31
+ * // const { WellArchitectedClient, UpdateReviewTemplateCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
32
+ * const client = new WellArchitectedClient(config);
33
+ * const input = { // UpdateReviewTemplateInput
34
+ * TemplateArn: "STRING_VALUE", // required
35
+ * TemplateName: "STRING_VALUE",
36
+ * Description: "STRING_VALUE",
37
+ * Notes: "STRING_VALUE",
38
+ * LensesToAssociate: [ // ReviewTemplateLensAliases
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * LensesToDisassociate: [
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * };
45
+ * const command = new UpdateReviewTemplateCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // UpdateReviewTemplateOutput
48
+ * // ReviewTemplate: { // ReviewTemplate
49
+ * // Description: "STRING_VALUE",
50
+ * // Lenses: [ // ReviewTemplateLenses
51
+ * // "STRING_VALUE",
52
+ * // ],
53
+ * // Notes: "STRING_VALUE",
54
+ * // QuestionCounts: { // QuestionCounts
55
+ * // "<keys>": Number("int"),
56
+ * // },
57
+ * // Owner: "STRING_VALUE",
58
+ * // UpdatedAt: new Date("TIMESTAMP"),
59
+ * // TemplateArn: "STRING_VALUE",
60
+ * // TemplateName: "STRING_VALUE",
61
+ * // Tags: { // TagMap
62
+ * // "<keys>": "STRING_VALUE",
63
+ * // },
64
+ * // UpdateStatus: "CURRENT" || "LENS_NOT_CURRENT",
65
+ * // ShareInvitationId: "STRING_VALUE",
66
+ * // },
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param UpdateReviewTemplateCommandInput - {@link UpdateReviewTemplateCommandInput}
72
+ * @returns {@link UpdateReviewTemplateCommandOutput}
73
+ * @see {@link UpdateReviewTemplateCommandInput} for command's `input` shape.
74
+ * @see {@link UpdateReviewTemplateCommandOutput} for command's `response` shape.
75
+ * @see {@link WellArchitectedClientResolvedConfig | config} for WellArchitectedClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>User does not have sufficient access to perform this action.</p>
79
+ *
80
+ * @throws {@link ConflictException} (client fault)
81
+ * <p>The resource has already been processed, was deleted, or is too large.</p>
82
+ *
83
+ * @throws {@link InternalServerException} (server fault)
84
+ * <p>There is a problem with the Well-Architected Tool API service.</p>
85
+ *
86
+ * @throws {@link ResourceNotFoundException} (client fault)
87
+ * <p>The requested resource was not found.</p>
88
+ *
89
+ * @throws {@link ThrottlingException} (client fault)
90
+ * <p>Request was denied due to request throttling.</p>
91
+ *
92
+ * @throws {@link ValidationException} (client fault)
93
+ * <p>The user input is not valid.</p>
94
+ *
95
+ * @throws {@link WellArchitectedServiceException}
96
+ * <p>Base exception class for all service exceptions from WellArchitected service.</p>
97
+ *
98
+ */
99
+ export declare class UpdateReviewTemplateCommand extends $Command<UpdateReviewTemplateCommandInput, UpdateReviewTemplateCommandOutput, WellArchitectedClientResolvedConfig> {
100
+ readonly input: UpdateReviewTemplateCommandInput;
101
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
102
+ /**
103
+ * @public
104
+ */
105
+ constructor(input: UpdateReviewTemplateCommandInput);
106
+ /**
107
+ * @internal
108
+ */
109
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WellArchitectedClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateReviewTemplateCommandInput, UpdateReviewTemplateCommandOutput>;
110
+ /**
111
+ * @internal
112
+ */
113
+ private serialize;
114
+ /**
115
+ * @internal
116
+ */
117
+ private deserialize;
118
+ }
@@ -0,0 +1,119 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { UpdateReviewTemplateLensReviewInput, UpdateReviewTemplateLensReviewOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WellArchitectedClientResolvedConfig } from "../WellArchitectedClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateReviewTemplateLensReviewCommand}.
14
+ */
15
+ export interface UpdateReviewTemplateLensReviewCommandInput extends UpdateReviewTemplateLensReviewInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateReviewTemplateLensReviewCommand}.
21
+ */
22
+ export interface UpdateReviewTemplateLensReviewCommandOutput extends UpdateReviewTemplateLensReviewOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Update a lens review associated with a review template.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { WellArchitectedClient, UpdateReviewTemplateLensReviewCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
31
+ * // const { WellArchitectedClient, UpdateReviewTemplateLensReviewCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
32
+ * const client = new WellArchitectedClient(config);
33
+ * const input = { // UpdateReviewTemplateLensReviewInput
34
+ * TemplateArn: "STRING_VALUE", // required
35
+ * LensAlias: "STRING_VALUE", // required
36
+ * LensNotes: "STRING_VALUE",
37
+ * PillarNotes: { // PillarNotes
38
+ * "<keys>": "STRING_VALUE",
39
+ * },
40
+ * };
41
+ * const command = new UpdateReviewTemplateLensReviewCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // UpdateReviewTemplateLensReviewOutput
44
+ * // TemplateArn: "STRING_VALUE",
45
+ * // LensReview: { // ReviewTemplateLensReview
46
+ * // LensAlias: "STRING_VALUE",
47
+ * // LensArn: "STRING_VALUE",
48
+ * // LensVersion: "STRING_VALUE",
49
+ * // LensName: "STRING_VALUE",
50
+ * // LensStatus: "CURRENT" || "NOT_CURRENT" || "DEPRECATED" || "DELETED" || "UNSHARED",
51
+ * // PillarReviewSummaries: [ // ReviewTemplatePillarReviewSummaries
52
+ * // { // ReviewTemplatePillarReviewSummary
53
+ * // PillarId: "STRING_VALUE",
54
+ * // PillarName: "STRING_VALUE",
55
+ * // Notes: "STRING_VALUE",
56
+ * // QuestionCounts: { // QuestionCounts
57
+ * // "<keys>": Number("int"),
58
+ * // },
59
+ * // },
60
+ * // ],
61
+ * // UpdatedAt: new Date("TIMESTAMP"),
62
+ * // Notes: "STRING_VALUE",
63
+ * // QuestionCounts: {
64
+ * // "<keys>": Number("int"),
65
+ * // },
66
+ * // NextToken: "STRING_VALUE",
67
+ * // },
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param UpdateReviewTemplateLensReviewCommandInput - {@link UpdateReviewTemplateLensReviewCommandInput}
73
+ * @returns {@link UpdateReviewTemplateLensReviewCommandOutput}
74
+ * @see {@link UpdateReviewTemplateLensReviewCommandInput} for command's `input` shape.
75
+ * @see {@link UpdateReviewTemplateLensReviewCommandOutput} for command's `response` shape.
76
+ * @see {@link WellArchitectedClientResolvedConfig | config} for WellArchitectedClient's `config` shape.
77
+ *
78
+ * @throws {@link AccessDeniedException} (client fault)
79
+ * <p>User does not have sufficient access to perform this action.</p>
80
+ *
81
+ * @throws {@link ConflictException} (client fault)
82
+ * <p>The resource has already been processed, was deleted, or is too large.</p>
83
+ *
84
+ * @throws {@link InternalServerException} (server fault)
85
+ * <p>There is a problem with the Well-Architected Tool API service.</p>
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * <p>The requested resource was not found.</p>
89
+ *
90
+ * @throws {@link ThrottlingException} (client fault)
91
+ * <p>Request was denied due to request throttling.</p>
92
+ *
93
+ * @throws {@link ValidationException} (client fault)
94
+ * <p>The user input is not valid.</p>
95
+ *
96
+ * @throws {@link WellArchitectedServiceException}
97
+ * <p>Base exception class for all service exceptions from WellArchitected service.</p>
98
+ *
99
+ */
100
+ export declare class UpdateReviewTemplateLensReviewCommand extends $Command<UpdateReviewTemplateLensReviewCommandInput, UpdateReviewTemplateLensReviewCommandOutput, WellArchitectedClientResolvedConfig> {
101
+ readonly input: UpdateReviewTemplateLensReviewCommandInput;
102
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
103
+ /**
104
+ * @public
105
+ */
106
+ constructor(input: UpdateReviewTemplateLensReviewCommandInput);
107
+ /**
108
+ * @internal
109
+ */
110
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WellArchitectedClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateReviewTemplateLensReviewCommandInput, UpdateReviewTemplateLensReviewCommandOutput>;
111
+ /**
112
+ * @internal
113
+ */
114
+ private serialize;
115
+ /**
116
+ * @internal
117
+ */
118
+ private deserialize;
119
+ }