Skip to content

Commit 211ce51

Browse files
author
AWS
committed
AWS Artifact Update: Add support for listing active customer agreements for the calling AWS Account.
1 parent 2bddb0c commit 211ce51

File tree

3 files changed

+148
-0
lines changed

3 files changed

+148
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Artifact",
4+
"contributor": "",
5+
"description": "Add support for listing active customer agreements for the calling AWS Account."
6+
}

services/artifact/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"pagination": {
3+
"ListCustomerAgreements": {
4+
"input_token": "nextToken",
5+
"output_token": "nextToken",
6+
"limit_key": "maxResults",
7+
"result_key": "customerAgreements"
8+
},
39
"ListReports": {
410
"input_token": "nextToken",
511
"output_token": "nextToken",

services/artifact/src/main/resources/codegen-resources/service-2.json

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,23 @@
9292
],
9393
"documentation":"<p>Get the Term content associated with a single report.</p>"
9494
},
95+
"ListCustomerAgreements":{
96+
"name":"ListCustomerAgreements",
97+
"http":{
98+
"method":"GET",
99+
"requestUri":"/v1/customer-agreement/list",
100+
"responseCode":200
101+
},
102+
"input":{"shape":"ListCustomerAgreementsRequest"},
103+
"output":{"shape":"ListCustomerAgreementsResponse"},
104+
"errors":[
105+
{"shape":"ThrottlingException"},
106+
{"shape":"AccessDeniedException"},
107+
{"shape":"InternalServerException"},
108+
{"shape":"ValidationException"}
109+
],
110+
"documentation":"<p>List active customer-agreements applicable to calling identity.</p>"
111+
},
95112
"ListReports":{
96113
"name":"ListReports",
97114
"http":{
@@ -164,6 +181,20 @@
164181
},
165182
"documentation":"<p>Account settings for the customer.</p>"
166183
},
184+
"AgreementTerms":{
185+
"type":"list",
186+
"member":{"shape":"LongStringAttribute"},
187+
"max":10,
188+
"min":0
189+
},
190+
"AgreementType":{
191+
"type":"string",
192+
"enum":[
193+
"CUSTOM",
194+
"DEFAULT",
195+
"MODIFIED"
196+
]
197+
},
167198
"ConflictException":{
168199
"type":"structure",
169200
"required":[
@@ -189,6 +220,80 @@
189220
},
190221
"exception":true
191222
},
223+
"CustomerAgreementIdAttribute":{
224+
"type":"string",
225+
"pattern":"customer-agreement-[a-zA-Z0-9]{16}"
226+
},
227+
"CustomerAgreementList":{
228+
"type":"list",
229+
"member":{"shape":"CustomerAgreementSummary"}
230+
},
231+
"CustomerAgreementState":{
232+
"type":"string",
233+
"enum":[
234+
"ACTIVE",
235+
"CUSTOMER_TERMINATED",
236+
"AWS_TERMINATED"
237+
]
238+
},
239+
"CustomerAgreementSummary":{
240+
"type":"structure",
241+
"members":{
242+
"name":{
243+
"shape":"LongStringAttribute",
244+
"documentation":"<p>Name of the customer-agreement resource.</p>"
245+
},
246+
"arn":{
247+
"shape":"LongStringAttribute",
248+
"documentation":"<p>ARN of the customer-agreement resource.</p>"
249+
},
250+
"id":{
251+
"shape":"CustomerAgreementIdAttribute",
252+
"documentation":"<p>Identifier of the customer-agreement resource.</p>"
253+
},
254+
"agreementArn":{
255+
"shape":"LongStringAttribute",
256+
"documentation":"<p>ARN of the agreement resource the customer-agreement resource represents.</p>"
257+
},
258+
"awsAccountId":{
259+
"shape":"ShortStringAttribute",
260+
"documentation":"<p>AWS account Id that owns the resource.</p>"
261+
},
262+
"organizationArn":{
263+
"shape":"LongStringAttribute",
264+
"documentation":"<p>ARN of the organization that owns the resource.</p>"
265+
},
266+
"effectiveStart":{
267+
"shape":"TimestampAttribute",
268+
"documentation":"<p>Timestamp indicating when the agreement became effective.</p>"
269+
},
270+
"effectiveEnd":{
271+
"shape":"TimestampAttribute",
272+
"documentation":"<p>Timestamp indicating when the agreement was terminated.</p>"
273+
},
274+
"state":{
275+
"shape":"CustomerAgreementState",
276+
"documentation":"<p>State of the resource.</p>"
277+
},
278+
"description":{
279+
"shape":"LongStringAttribute",
280+
"documentation":"<p>Description of the resource.</p>"
281+
},
282+
"acceptanceTerms":{
283+
"shape":"AgreementTerms",
284+
"documentation":"<p>Terms required to accept the agreement resource.</p>"
285+
},
286+
"terminateTerms":{
287+
"shape":"AgreementTerms",
288+
"documentation":"<p>Terms required to terminate the customer-agreement resource.</p>"
289+
},
290+
"type":{
291+
"shape":"AgreementType",
292+
"documentation":"<p>Type of the customer-agreement resource.</p>"
293+
}
294+
},
295+
"documentation":"<p>Summary for customer-agreement resource.</p>"
296+
},
192297
"GetAccountSettingsRequest":{
193298
"type":"structure",
194299
"members":{
@@ -326,6 +431,37 @@
326431
"fault":true,
327432
"retryable":{"throttling":false}
328433
},
434+
"ListCustomerAgreementsRequest":{
435+
"type":"structure",
436+
"members":{
437+
"maxResults":{
438+
"shape":"MaxResultsAttribute",
439+
"documentation":"<p>Maximum number of resources to return in the paginated response.</p>",
440+
"location":"querystring",
441+
"locationName":"maxResults"
442+
},
443+
"nextToken":{
444+
"shape":"NextTokenAttribute",
445+
"documentation":"<p>Pagination token to request the next page of resources.</p>",
446+
"location":"querystring",
447+
"locationName":"nextToken"
448+
}
449+
}
450+
},
451+
"ListCustomerAgreementsResponse":{
452+
"type":"structure",
453+
"required":["customerAgreements"],
454+
"members":{
455+
"customerAgreements":{
456+
"shape":"CustomerAgreementList",
457+
"documentation":"<p>List of customer-agreement resources.</p>"
458+
},
459+
"nextToken":{
460+
"shape":"NextTokenAttribute",
461+
"documentation":"<p>Pagination token to request the next page of resources.</p>"
462+
}
463+
}
464+
},
329465
"ListReportsRequest":{
330466
"type":"structure",
331467
"members":{

0 commit comments

Comments
 (0)