Skip to content

Commit f754190

Browse files
Add AWS Outposts API to surface customer billing information
1 parent 6cb6849 commit f754190

23 files changed

+1559
-5
lines changed

generator/ServiceModels/outposts/outposts-2019-12-03.api.json

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
"errors":[
156156
{"shape":"ValidationException"},
157157
{"shape":"NotFoundException"},
158+
{"shape":"AccessDeniedException"},
158159
{"shape":"InternalServerException"}
159160
]
160161
},
@@ -202,6 +203,20 @@
202203
{"shape":"InternalServerException"}
203204
]
204205
},
206+
"GetOutpostBillingInformation":{
207+
"name":"GetOutpostBillingInformation",
208+
"http":{
209+
"method":"GET",
210+
"requestUri":"/outpost/{OutpostIdentifier}/billing-information"
211+
},
212+
"input":{"shape":"GetOutpostBillingInformationInput"},
213+
"output":{"shape":"GetOutpostBillingInformationOutput"},
214+
"errors":[
215+
{"shape":"AccessDeniedException"},
216+
{"shape":"InternalServerException"},
217+
{"shape":"NotFoundException"}
218+
]
219+
},
205220
"GetOutpostInstanceTypes":{
206221
"name":"GetOutpostInstanceTypes",
207222
"http":{
@@ -333,6 +348,7 @@
333348
"errors":[
334349
{"shape":"ValidationException"},
335350
{"shape":"NotFoundException"},
351+
{"shape":"AccessDeniedException"},
336352
{"shape":"InternalServerException"}
337353
]
338354
},
@@ -1175,6 +1191,35 @@
11751191
"Order":{"shape":"Order"}
11761192
}
11771193
},
1194+
"GetOutpostBillingInformationInput":{
1195+
"type":"structure",
1196+
"required":["OutpostIdentifier"],
1197+
"members":{
1198+
"NextToken":{
1199+
"shape":"Token",
1200+
"location":"querystring",
1201+
"locationName":"NextToken"
1202+
},
1203+
"MaxResults":{
1204+
"shape":"MaxResults1000",
1205+
"location":"querystring",
1206+
"locationName":"MaxResults"
1207+
},
1208+
"OutpostIdentifier":{
1209+
"shape":"OutpostIdentifier",
1210+
"location":"uri",
1211+
"locationName":"OutpostIdentifier"
1212+
}
1213+
}
1214+
},
1215+
"GetOutpostBillingInformationOutput":{
1216+
"type":"structure",
1217+
"members":{
1218+
"NextToken":{"shape":"Token"},
1219+
"Subscriptions":{"shape":"SubscriptionList"},
1220+
"ContractEndDate":{"shape":"String"}
1221+
}
1222+
},
11781223
"GetOutpostInput":{
11791224
"type":"structure",
11801225
"required":["OutpostId"],
@@ -1820,6 +1865,7 @@
18201865
"error":{"httpStatusCode":404},
18211866
"exception":true
18221867
},
1868+
"NullableDouble":{"type":"double"},
18231869
"OpticalStandard":{
18241870
"type":"string",
18251871
"enum":[
@@ -1858,6 +1904,10 @@
18581904
"min":1,
18591905
"pattern":"oo-[a-f0-9]{17}$"
18601906
},
1907+
"OrderIdList":{
1908+
"type":"list",
1909+
"member":{"shape":"String"}
1910+
},
18611911
"OrderStatus":{
18621912
"type":"string",
18631913
"enum":[
@@ -2223,6 +2273,39 @@
22232273
"min":1,
22242274
"pattern":"^[\\S \\n]+$"
22252275
},
2276+
"Subscription":{
2277+
"type":"structure",
2278+
"members":{
2279+
"SubscriptionId":{"shape":"String"},
2280+
"SubscriptionType":{"shape":"SubscriptionType"},
2281+
"SubscriptionStatus":{"shape":"SubscriptionStatus"},
2282+
"OrderIds":{"shape":"OrderIdList"},
2283+
"BeginDate":{"shape":"ISO8601Timestamp"},
2284+
"EndDate":{"shape":"ISO8601Timestamp"},
2285+
"MonthlyRecurringPrice":{"shape":"NullableDouble"},
2286+
"UpfrontPrice":{"shape":"NullableDouble"}
2287+
}
2288+
},
2289+
"SubscriptionList":{
2290+
"type":"list",
2291+
"member":{"shape":"Subscription"}
2292+
},
2293+
"SubscriptionStatus":{
2294+
"type":"string",
2295+
"enum":[
2296+
"ACTIVE",
2297+
"INACTIVE",
2298+
"CANCELLED"
2299+
]
2300+
},
2301+
"SubscriptionType":{
2302+
"type":"string",
2303+
"enum":[
2304+
"ORIGINAL",
2305+
"RENEWAL",
2306+
"CAPACITY_INCREASE"
2307+
]
2308+
},
22262309
"SupportedHardwareType":{
22272310
"type":"string",
22282311
"enum":[

generator/ServiceModels/outposts/outposts-2019-12-03.docs.json

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"GetConnection": "<note> <p> Amazon Web Services uses this action to install Outpost servers.</p> </note> <p> Gets information about the specified connection. </p> <p> Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For more information, see <a href=\"https://docs.aws.amazon.com/outposts/latest/userguide/security-iam-awsmanpol.html\"> Amazon Web Services managed policies for Amazon Web Services Outposts</a> and <a href=\"https://docs.aws.amazon.com/outposts/latest/userguide/logging-using-cloudtrail.html\"> Logging Amazon Web Services Outposts API calls with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Outposts User Guide</i>. </p>",
1515
"GetOrder": "<p>Gets information about the specified order.</p>",
1616
"GetOutpost": "<p>Gets information about the specified Outpost.</p>",
17+
"GetOutpostBillingInformation": "<p>Gets current and historical billing information about the specified Outpost.</p>",
1718
"GetOutpostInstanceTypes": "<p>Gets the instance types for the specified Outpost.</p>",
1819
"GetOutpostSupportedInstanceTypes": "<p>Gets the instance types that an Outpost can support in <code>InstanceTypeCapacity</code>. This will generally include instance types that are not currently configured and therefore cannot be launched with the current Outpost capacity configuration.</p>",
1920
"GetSite": "<p>Gets information about the specified Outpost site.</p>",
@@ -572,6 +573,14 @@
572573
"base": null,
573574
"refs": {}
574575
},
576+
"GetOutpostBillingInformationInput": {
577+
"base": null,
578+
"refs": {}
579+
},
580+
"GetOutpostBillingInformationOutput": {
581+
"base": null,
582+
"refs": {}
583+
},
575584
"GetOutpostInput": {
576585
"base": null,
577586
"refs": {}
@@ -640,7 +649,9 @@
640649
"OrderSummary$OrderFulfilledDate": "<p> The fulfilment date for the order. </p>",
641650
"StartCapacityTaskOutput$CreationDate": "<p>Date that the specified capacity task was created.</p>",
642651
"StartCapacityTaskOutput$CompletionDate": "<p>Date that the specified capacity task ran successfully.</p>",
643-
"StartCapacityTaskOutput$LastModifiedDate": "<p>Date that the specified capacity task was last modified.</p>"
652+
"StartCapacityTaskOutput$LastModifiedDate": "<p>Date that the specified capacity task was last modified.</p>",
653+
"Subscription$BeginDate": "<p>The date your subscription starts.</p>",
654+
"Subscription$EndDate": "<p>The date your subscription ends.</p>"
644655
}
645656
},
646657
"InstanceFamilies": {
@@ -884,6 +895,7 @@
884895
"MaxResults1000": {
885896
"base": "<p>The maximum page size.</p>",
886897
"refs": {
898+
"GetOutpostBillingInformationInput$MaxResults": null,
887899
"GetOutpostInstanceTypesInput$MaxResults": null,
888900
"GetOutpostSupportedInstanceTypesInput$MaxResults": null,
889901
"ListAssetInstancesInput$MaxResults": null,
@@ -925,6 +937,13 @@
925937
"base": "<p>The specified request is not valid.</p>",
926938
"refs": {}
927939
},
940+
"NullableDouble": {
941+
"base": null,
942+
"refs": {
943+
"Subscription$MonthlyRecurringPrice": "<p>The amount you are billed each month in the subscription period.</p>",
944+
"Subscription$UpfrontPrice": "<p>The amount billed when the subscription is created. This is a one-time charge.</p>"
945+
}
946+
},
928947
"OpticalStandard": {
929948
"base": null,
930949
"refs": {
@@ -954,6 +973,12 @@
954973
"StartCapacityTaskOutput$OrderId": "<p>ID of the Amazon Web Services Outposts order of the host associated with the capacity task.</p>"
955974
}
956975
},
976+
"OrderIdList": {
977+
"base": null,
978+
"refs": {
979+
"Subscription$OrderIds": "<p>The order ID for your subscription.</p>"
980+
}
981+
},
957982
"OrderStatus": {
958983
"base": null,
959984
"refs": {
@@ -1010,7 +1035,7 @@
10101035
"CapacityTaskSummary$OutpostId": "<p>The ID of the Outpost associated with the specified capacity task.</p>",
10111036
"DeleteOutpostInput$OutpostId": "<p> The ID or ARN of the Outpost. </p>",
10121037
"GetCapacityTaskOutput$OutpostId": "<p>ID of the Outpost associated with the specified capacity task.</p>",
1013-
"GetOutpostInput$OutpostId": "<p> The ID or ARN of the Outpost. </p>",
1038+
"GetOutpostInput$OutpostId": "<p>The ID or ARN of the Outpost.</p>",
10141039
"GetOutpostInstanceTypesInput$OutpostId": "<p> The ID or ARN of the Outpost. </p>",
10151040
"GetOutpostInstanceTypesOutput$OutpostId": "<p> The ID of the Outpost. </p>",
10161041
"Outpost$OutpostId": "<p> The ID of the Outpost. </p>",
@@ -1031,6 +1056,7 @@
10311056
"CancelCapacityTaskInput$OutpostIdentifier": "<p>ID or ARN of the Outpost associated with the capacity task that you want to cancel.</p>",
10321057
"CreateOrderInput$OutpostIdentifier": "<p> The ID or the Amazon Resource Name (ARN) of the Outpost. </p>",
10331058
"GetCapacityTaskInput$OutpostIdentifier": "<p>ID or ARN of the Outpost associated with the specified capacity task.</p>",
1059+
"GetOutpostBillingInformationInput$OutpostIdentifier": "<p>The ID or ARN of the Outpost.</p>",
10341060
"GetOutpostSupportedInstanceTypesInput$OutpostIdentifier": "<p>The ID or ARN of the Outpost.</p>",
10351061
"ListAssetInstancesInput$OutpostIdentifier": "<p>The ID of the Outpost.</p>",
10361062
"ListAssetsInput$OutpostIdentifier": "<p> The ID or the Amazon Resource Name (ARN) of the Outpost. </p>",
@@ -1280,7 +1306,34 @@
12801306
"String": {
12811307
"base": null,
12821308
"refs": {
1283-
"ConflictException$ResourceId": "<p>The ID of the resource causing the conflict.</p>"
1309+
"ConflictException$ResourceId": "<p>The ID of the resource causing the conflict.</p>",
1310+
"GetOutpostBillingInformationOutput$ContractEndDate": "<p>The date the current contract term ends for the specified Outpost. You must start the renewal or decommission process at least 5 business days before the current term for your Amazon Web Services Outposts ends. Failing to complete these steps at least 5 business days before the current term ends might result in unanticipated charges.</p>",
1311+
"OrderIdList$member": null,
1312+
"Subscription$SubscriptionId": "<p>The ID of the subscription that appears on the Amazon Web Services Billing Center console.</p>"
1313+
}
1314+
},
1315+
"Subscription": {
1316+
"base": "<p>Provides information about your Amazon Web Services Outposts subscriptions.</p>",
1317+
"refs": {
1318+
"SubscriptionList$member": null
1319+
}
1320+
},
1321+
"SubscriptionList": {
1322+
"base": null,
1323+
"refs": {
1324+
"GetOutpostBillingInformationOutput$Subscriptions": "<p>The subscription details for the specified Outpost.</p>"
1325+
}
1326+
},
1327+
"SubscriptionStatus": {
1328+
"base": null,
1329+
"refs": {
1330+
"Subscription$SubscriptionStatus": "<p>The status of subscription which can be one of the following:</p> <ul> <li> <p> <b>INACTIVE</b> - Subscription requests that are inactive.</p> </li> <li> <p> <b>ACTIVE</b> - Subscription requests that are in progress and have an end date in the future.</p> </li> <li> <p> <b>CANCELLED</b> - Subscription requests that are cancelled.</p> </li> </ul>"
1331+
}
1332+
},
1333+
"SubscriptionType": {
1334+
"base": null,
1335+
"refs": {
1336+
"Subscription$SubscriptionType": "<p>The type of subscription which can be one of the following:</p> <ul> <li> <p> <b>ORIGINAL</b> - The first order on the Amazon Web Services Outposts.</p> </li> <li> <p> <b>RENEWAL</b> - Renewal requests, both month to month and longer term.</p> </li> <li> <p> <b>CAPACITY_INCREASE</b> - Capacity scaling orders.</p> </li> </ul>"
12841337
}
12851338
},
12861339
"SupportedHardwareType": {
@@ -1365,6 +1418,8 @@
13651418
"Token": {
13661419
"base": "<p>The pagination token.</p>",
13671420
"refs": {
1421+
"GetOutpostBillingInformationInput$NextToken": null,
1422+
"GetOutpostBillingInformationOutput$NextToken": null,
13681423
"GetOutpostInstanceTypesInput$NextToken": null,
13691424
"GetOutpostInstanceTypesOutput$NextToken": null,
13701425
"GetOutpostSupportedInstanceTypesInput$NextToken": null,

0 commit comments

Comments
 (0)