Skip to content

Commit 02b68de

Browse files
authored
docs(response-structure): add response structure to syntax example (#4684)
* docs(response-structure): add response structure to syntax example * docs(comment-style): change comment style
1 parent b418f9d commit 02b68de

File tree

13,358 files changed

+345867
-307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

13,358 files changed

+345867
-307
lines changed

clients/client-accessanalyzer/src/commands/ApplyArchiveRuleCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export interface ApplyArchiveRuleCommandOutput extends __MetadataBearer {}
4747
* };
4848
* const command = new ApplyArchiveRuleCommand(input);
4949
* const response = await client.send(command);
50+
* // {};
51+
*
5052
* ```
5153
*
5254
* @param ApplyArchiveRuleCommandInput - {@link ApplyArchiveRuleCommandInput}
@@ -70,6 +72,8 @@ export interface ApplyArchiveRuleCommandOutput extends __MetadataBearer {}
7072
* @throws {@link ValidationException} (client fault)
7173
* <p>Validation exception error.</p>
7274
*
75+
* @throws {@link AccessAnalyzerServiceException}
76+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
7377
*
7478
*/
7579
export class ApplyArchiveRuleCommand extends $Command<

clients/client-accessanalyzer/src/commands/CancelPolicyGenerationCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export interface CancelPolicyGenerationCommandOutput extends CancelPolicyGenerat
4444
* };
4545
* const command = new CancelPolicyGenerationCommand(input);
4646
* const response = await client.send(command);
47+
* // {};
48+
*
4749
* ```
4850
*
4951
* @param CancelPolicyGenerationCommandInput - {@link CancelPolicyGenerationCommandInput}
@@ -64,6 +66,8 @@ export interface CancelPolicyGenerationCommandOutput extends CancelPolicyGenerat
6466
* @throws {@link ValidationException} (client fault)
6567
* <p>Validation exception error.</p>
6668
*
69+
* @throws {@link AccessAnalyzerServiceException}
70+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
6771
*
6872
*/
6973
export class CancelPolicyGenerationCommand extends $Command<

clients/client-accessanalyzer/src/commands/CreateAccessPreviewCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ export interface CreateAccessPreviewCommandOutput extends CreateAccessPreviewRes
152152
* };
153153
* const command = new CreateAccessPreviewCommand(input);
154154
* const response = await client.send(command);
155+
* // { // CreateAccessPreviewResponse
156+
* // id: "STRING_VALUE", // required
157+
* // };
158+
*
155159
* ```
156160
*
157161
* @param CreateAccessPreviewCommandInput - {@link CreateAccessPreviewCommandInput}
@@ -181,6 +185,8 @@ export interface CreateAccessPreviewCommandOutput extends CreateAccessPreviewRes
181185
* @throws {@link ValidationException} (client fault)
182186
* <p>Validation exception error.</p>
183187
*
188+
* @throws {@link AccessAnalyzerServiceException}
189+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
184190
*
185191
*/
186192
export class CreateAccessPreviewCommand extends $Command<

clients/client-accessanalyzer/src/commands/CreateAnalyzerCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ export interface CreateAnalyzerCommandOutput extends CreateAnalyzerResponse, __M
6868
* };
6969
* const command = new CreateAnalyzerCommand(input);
7070
* const response = await client.send(command);
71+
* // { // CreateAnalyzerResponse
72+
* // arn: "STRING_VALUE",
73+
* // };
74+
*
7175
* ```
7276
*
7377
* @param CreateAnalyzerCommandInput - {@link CreateAnalyzerCommandInput}
@@ -94,6 +98,8 @@ export interface CreateAnalyzerCommandOutput extends CreateAnalyzerResponse, __M
9498
* @throws {@link ValidationException} (client fault)
9599
* <p>Validation exception error.</p>
96100
*
101+
* @throws {@link AccessAnalyzerServiceException}
102+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
97103
*
98104
*/
99105
export class CreateAnalyzerCommand extends $Command<

clients/client-accessanalyzer/src/commands/CreateArchiveRuleCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export interface CreateArchiveRuleCommandOutput extends __MetadataBearer {}
6262
* };
6363
* const command = new CreateArchiveRuleCommand(input);
6464
* const response = await client.send(command);
65+
* // {};
66+
*
6567
* ```
6668
*
6769
* @param CreateArchiveRuleCommandInput - {@link CreateArchiveRuleCommandInput}
@@ -91,6 +93,8 @@ export interface CreateArchiveRuleCommandOutput extends __MetadataBearer {}
9193
* @throws {@link ValidationException} (client fault)
9294
* <p>Validation exception error.</p>
9395
*
96+
* @throws {@link AccessAnalyzerServiceException}
97+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
9498
*
9599
*/
96100
export class CreateArchiveRuleCommand extends $Command<

clients/client-accessanalyzer/src/commands/DeleteAnalyzerCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export interface DeleteAnalyzerCommandOutput extends __MetadataBearer {}
4747
* };
4848
* const command = new DeleteAnalyzerCommand(input);
4949
* const response = await client.send(command);
50+
* // {};
51+
*
5052
* ```
5153
*
5254
* @param DeleteAnalyzerCommandInput - {@link DeleteAnalyzerCommandInput}
@@ -70,6 +72,8 @@ export interface DeleteAnalyzerCommandOutput extends __MetadataBearer {}
7072
* @throws {@link ValidationException} (client fault)
7173
* <p>Validation exception error.</p>
7274
*
75+
* @throws {@link AccessAnalyzerServiceException}
76+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
7377
*
7478
*/
7579
export class DeleteAnalyzerCommand extends $Command<

clients/client-accessanalyzer/src/commands/DeleteArchiveRuleCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export interface DeleteArchiveRuleCommandOutput extends __MetadataBearer {}
4646
* };
4747
* const command = new DeleteArchiveRuleCommand(input);
4848
* const response = await client.send(command);
49+
* // {};
50+
*
4951
* ```
5052
*
5153
* @param DeleteArchiveRuleCommandInput - {@link DeleteArchiveRuleCommandInput}
@@ -69,6 +71,8 @@ export interface DeleteArchiveRuleCommandOutput extends __MetadataBearer {}
6971
* @throws {@link ValidationException} (client fault)
7072
* <p>Validation exception error.</p>
7173
*
74+
* @throws {@link AccessAnalyzerServiceException}
75+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
7276
*
7377
*/
7478
export class DeleteArchiveRuleCommand extends $Command<

clients/client-accessanalyzer/src/commands/GetAccessPreviewCommand.ts

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,124 @@ export interface GetAccessPreviewCommandOutput extends GetAccessPreviewResponse,
4545
* };
4646
* const command = new GetAccessPreviewCommand(input);
4747
* const response = await client.send(command);
48+
* // { // GetAccessPreviewResponse
49+
* // accessPreview: { // AccessPreview
50+
* // id: "STRING_VALUE", // required
51+
* // analyzerArn: "STRING_VALUE", // required
52+
* // configurations: { // ConfigurationsMap // required
53+
* // "<keys>": { // Configuration Union: only one key present
54+
* // ebsSnapshot: { // EbsSnapshotConfiguration
55+
* // userIds: [ // EbsUserIdList
56+
* // "STRING_VALUE",
57+
* // ],
58+
* // groups: [ // EbsGroupList
59+
* // "STRING_VALUE",
60+
* // ],
61+
* // kmsKeyId: "STRING_VALUE",
62+
* // },
63+
* // ecrRepository: { // EcrRepositoryConfiguration
64+
* // repositoryPolicy: "STRING_VALUE",
65+
* // },
66+
* // iamRole: { // IamRoleConfiguration
67+
* // trustPolicy: "STRING_VALUE",
68+
* // },
69+
* // efsFileSystem: { // EfsFileSystemConfiguration
70+
* // fileSystemPolicy: "STRING_VALUE",
71+
* // },
72+
* // kmsKey: { // KmsKeyConfiguration
73+
* // keyPolicies: { // KmsKeyPoliciesMap
74+
* // "<keys>": "STRING_VALUE",
75+
* // },
76+
* // grants: [ // KmsGrantConfigurationsList
77+
* // { // KmsGrantConfiguration
78+
* // operations: [ // KmsGrantOperationsList // required
79+
* // "STRING_VALUE",
80+
* // ],
81+
* // granteePrincipal: "STRING_VALUE", // required
82+
* // retiringPrincipal: "STRING_VALUE",
83+
* // constraints: { // KmsGrantConstraints
84+
* // encryptionContextEquals: { // KmsConstraintsMap
85+
* // "<keys>": "STRING_VALUE",
86+
* // },
87+
* // encryptionContextSubset: {
88+
* // "<keys>": "STRING_VALUE",
89+
* // },
90+
* // },
91+
* // issuingAccount: "STRING_VALUE", // required
92+
* // },
93+
* // ],
94+
* // },
95+
* // rdsDbClusterSnapshot: { // RdsDbClusterSnapshotConfiguration
96+
* // attributes: { // RdsDbClusterSnapshotAttributesMap
97+
* // "<keys>": { // RdsDbClusterSnapshotAttributeValue Union: only one key present
98+
* // accountIds: [ // RdsDbClusterSnapshotAccountIdsList
99+
* // "STRING_VALUE",
100+
* // ],
101+
* // },
102+
* // },
103+
* // kmsKeyId: "STRING_VALUE",
104+
* // },
105+
* // rdsDbSnapshot: { // RdsDbSnapshotConfiguration
106+
* // attributes: { // RdsDbSnapshotAttributesMap
107+
* // "<keys>": { // RdsDbSnapshotAttributeValue Union: only one key present
108+
* // accountIds: [ // RdsDbSnapshotAccountIdsList
109+
* // "STRING_VALUE",
110+
* // ],
111+
* // },
112+
* // },
113+
* // kmsKeyId: "STRING_VALUE",
114+
* // },
115+
* // secretsManagerSecret: { // SecretsManagerSecretConfiguration
116+
* // kmsKeyId: "STRING_VALUE",
117+
* // secretPolicy: "STRING_VALUE",
118+
* // },
119+
* // s3Bucket: { // S3BucketConfiguration
120+
* // bucketPolicy: "STRING_VALUE",
121+
* // bucketAclGrants: [ // S3BucketAclGrantConfigurationsList
122+
* // { // S3BucketAclGrantConfiguration
123+
* // permission: "STRING_VALUE", // required
124+
* // grantee: { // AclGrantee Union: only one key present
125+
* // id: "STRING_VALUE",
126+
* // uri: "STRING_VALUE",
127+
* // },
128+
* // },
129+
* // ],
130+
* // bucketPublicAccessBlock: { // S3PublicAccessBlockConfiguration
131+
* // ignorePublicAcls: true || false, // required
132+
* // restrictPublicBuckets: true || false, // required
133+
* // },
134+
* // accessPoints: { // S3AccessPointConfigurationsMap
135+
* // "<keys>": { // S3AccessPointConfiguration
136+
* // accessPointPolicy: "STRING_VALUE",
137+
* // publicAccessBlock: {
138+
* // ignorePublicAcls: true || false, // required
139+
* // restrictPublicBuckets: true || false, // required
140+
* // },
141+
* // networkOrigin: { // NetworkOriginConfiguration Union: only one key present
142+
* // vpcConfiguration: { // VpcConfiguration
143+
* // vpcId: "STRING_VALUE", // required
144+
* // },
145+
* // internetConfiguration: {},
146+
* // },
147+
* // },
148+
* // },
149+
* // },
150+
* // snsTopic: { // SnsTopicConfiguration
151+
* // topicPolicy: "STRING_VALUE",
152+
* // },
153+
* // sqsQueue: { // SqsQueueConfiguration
154+
* // queuePolicy: "STRING_VALUE",
155+
* // },
156+
* // },
157+
* // },
158+
* // createdAt: new Date("TIMESTAMP"), // required
159+
* // status: "STRING_VALUE", // required
160+
* // statusReason: { // AccessPreviewStatusReason
161+
* // code: "STRING_VALUE", // required
162+
* // },
163+
* // },
164+
* // };
165+
*
48166
* ```
49167
*
50168
* @param GetAccessPreviewCommandInput - {@link GetAccessPreviewCommandInput}
@@ -68,6 +186,8 @@ export interface GetAccessPreviewCommandOutput extends GetAccessPreviewResponse,
68186
* @throws {@link ValidationException} (client fault)
69187
* <p>Validation exception error.</p>
70188
*
189+
* @throws {@link AccessAnalyzerServiceException}
190+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
71191
*
72192
*/
73193
export class GetAccessPreviewCommand extends $Command<

clients/client-accessanalyzer/src/commands/GetAnalyzedResourceCommand.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@ export interface GetAnalyzedResourceCommandOutput extends GetAnalyzedResourceRes
4545
* };
4646
* const command = new GetAnalyzedResourceCommand(input);
4747
* const response = await client.send(command);
48+
* // { // GetAnalyzedResourceResponse
49+
* // resource: { // AnalyzedResource
50+
* // resourceArn: "STRING_VALUE", // required
51+
* // resourceType: "STRING_VALUE", // required
52+
* // createdAt: new Date("TIMESTAMP"), // required
53+
* // analyzedAt: new Date("TIMESTAMP"), // required
54+
* // updatedAt: new Date("TIMESTAMP"), // required
55+
* // isPublic: true || false, // required
56+
* // actions: [ // ActionList
57+
* // "STRING_VALUE",
58+
* // ],
59+
* // sharedVia: [ // SharedViaList
60+
* // "STRING_VALUE",
61+
* // ],
62+
* // status: "STRING_VALUE",
63+
* // resourceOwnerAccount: "STRING_VALUE", // required
64+
* // error: "STRING_VALUE",
65+
* // },
66+
* // };
67+
*
4868
* ```
4969
*
5070
* @param GetAnalyzedResourceCommandInput - {@link GetAnalyzedResourceCommandInput}
@@ -68,6 +88,8 @@ export interface GetAnalyzedResourceCommandOutput extends GetAnalyzedResourceRes
6888
* @throws {@link ValidationException} (client fault)
6989
* <p>Validation exception error.</p>
7090
*
91+
* @throws {@link AccessAnalyzerServiceException}
92+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
7193
*
7294
*/
7395
export class GetAnalyzedResourceCommand extends $Command<

clients/client-accessanalyzer/src/commands/GetAnalyzerCommand.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,24 @@ export interface GetAnalyzerCommandOutput extends GetAnalyzerResponse, __Metadat
4444
* };
4545
* const command = new GetAnalyzerCommand(input);
4646
* const response = await client.send(command);
47+
* // { // GetAnalyzerResponse
48+
* // analyzer: { // AnalyzerSummary
49+
* // arn: "STRING_VALUE", // required
50+
* // name: "STRING_VALUE", // required
51+
* // type: "STRING_VALUE", // required
52+
* // createdAt: new Date("TIMESTAMP"), // required
53+
* // lastResourceAnalyzed: "STRING_VALUE",
54+
* // lastResourceAnalyzedAt: new Date("TIMESTAMP"),
55+
* // tags: { // TagsMap
56+
* // "<keys>": "STRING_VALUE",
57+
* // },
58+
* // status: "STRING_VALUE", // required
59+
* // statusReason: { // StatusReason
60+
* // code: "STRING_VALUE", // required
61+
* // },
62+
* // },
63+
* // };
64+
*
4765
* ```
4866
*
4967
* @param GetAnalyzerCommandInput - {@link GetAnalyzerCommandInput}
@@ -67,6 +85,8 @@ export interface GetAnalyzerCommandOutput extends GetAnalyzerResponse, __Metadat
6785
* @throws {@link ValidationException} (client fault)
6886
* <p>Validation exception error.</p>
6987
*
88+
* @throws {@link AccessAnalyzerServiceException}
89+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
7090
*
7191
*/
7292
export class GetAnalyzerCommand extends $Command<

clients/client-accessanalyzer/src/commands/GetArchiveRuleCommand.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,28 @@ export interface GetArchiveRuleCommandOutput extends GetArchiveRuleResponse, __M
4646
* };
4747
* const command = new GetArchiveRuleCommand(input);
4848
* const response = await client.send(command);
49+
* // { // GetArchiveRuleResponse
50+
* // archiveRule: { // ArchiveRuleSummary
51+
* // ruleName: "STRING_VALUE", // required
52+
* // filter: { // FilterCriteriaMap // required
53+
* // "<keys>": { // Criterion
54+
* // eq: [ // ValueList
55+
* // "STRING_VALUE",
56+
* // ],
57+
* // neq: [
58+
* // "STRING_VALUE",
59+
* // ],
60+
* // contains: [
61+
* // "STRING_VALUE",
62+
* // ],
63+
* // exists: true || false,
64+
* // },
65+
* // },
66+
* // createdAt: new Date("TIMESTAMP"), // required
67+
* // updatedAt: new Date("TIMESTAMP"), // required
68+
* // },
69+
* // };
70+
*
4971
* ```
5072
*
5173
* @param GetArchiveRuleCommandInput - {@link GetArchiveRuleCommandInput}
@@ -69,6 +91,8 @@ export interface GetArchiveRuleCommandOutput extends GetArchiveRuleResponse, __M
6991
* @throws {@link ValidationException} (client fault)
7092
* <p>Validation exception error.</p>
7193
*
94+
* @throws {@link AccessAnalyzerServiceException}
95+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
7296
*
7397
*/
7498
export class GetArchiveRuleCommand extends $Command<

0 commit comments

Comments
 (0)