Skip to content

Commit cf80140

Browse files
author
awstools
committed
feat(client-outposts): This release adds the ShipmentInformation and AssetInformationList fields to the GetOrder API response.
1 parent 4d43eac commit cf80140

File tree

3 files changed

+247
-2
lines changed

3 files changed

+247
-2
lines changed

clients/client-outposts/src/models/models_0.ts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,73 @@ export namespace CreateOrderInput {
567567
});
568568
}
569569

570+
/**
571+
* <p>
572+
* Information about a line item asset.
573+
* </p>
574+
*/
575+
export interface LineItemAssetInformation {
576+
/**
577+
* <p>
578+
* The ID of the asset.
579+
* </p>
580+
*/
581+
AssetId?: string;
582+
583+
/**
584+
* <p>
585+
* MAC addresses of the asset.
586+
* </p>
587+
*/
588+
MacAddressList?: string[];
589+
}
590+
591+
export namespace LineItemAssetInformation {
592+
/**
593+
* @internal
594+
*/
595+
export const filterSensitiveLog = (obj: LineItemAssetInformation): any => ({
596+
...obj,
597+
});
598+
}
599+
600+
export enum ShipmentCarrier {
601+
DBS = "DBS",
602+
DHL = "DHL",
603+
FEDEX = "FEDEX",
604+
UPS = "UPS",
605+
}
606+
607+
/**
608+
* <p>
609+
* Information about a line item shipment.
610+
* </p>
611+
*/
612+
export interface ShipmentInformation {
613+
/**
614+
* <p>
615+
* The tracking number of the shipment.
616+
* </p>
617+
*/
618+
ShipmentTrackingNumber?: string;
619+
620+
/**
621+
* <p>
622+
* The carrier of the shipment.
623+
* </p>
624+
*/
625+
ShipmentCarrier?: ShipmentCarrier | string;
626+
}
627+
628+
export namespace ShipmentInformation {
629+
/**
630+
* @internal
631+
*/
632+
export const filterSensitiveLog = (obj: ShipmentInformation): any => ({
633+
...obj,
634+
});
635+
}
636+
570637
export enum LineItemStatus {
571638
BUILDING = "BUILDING",
572639
CANCELLED = "CANCELLED",
@@ -603,6 +670,20 @@ export interface LineItem {
603670
* <p>The status of the line item.</p>
604671
*/
605672
Status?: LineItemStatus | string;
673+
674+
/**
675+
* <p>
676+
* Information about a line item shipment.
677+
* </p>
678+
*/
679+
ShipmentInformation?: ShipmentInformation;
680+
681+
/**
682+
* <p>
683+
* Information about assets.
684+
* </p>
685+
*/
686+
AssetInformationList?: LineItemAssetInformation[];
606687
}
607688

608689
export namespace LineItem {

clients/client-outposts/src/protocols/Aws_restJson1.ts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ import {
6565
InstanceTypeItem,
6666
InternalServerException,
6767
LineItem,
68+
LineItemAssetInformation,
6869
LineItemRequest,
6970
LineItemStatus,
7071
NotFoundException,
@@ -73,6 +74,7 @@ import {
7374
Outpost,
7475
RackPhysicalProperties,
7576
ServiceQuotaExceededException,
77+
ShipmentInformation,
7678
Site,
7779
SupportedStorageEnum,
7880
ValidationException,
@@ -2663,13 +2665,49 @@ const deserializeAws_restJson1InstanceTypeListDefinition = (
26632665

26642666
const deserializeAws_restJson1LineItem = (output: any, context: __SerdeContext): LineItem => {
26652667
return {
2668+
AssetInformationList:
2669+
output.AssetInformationList != null
2670+
? deserializeAws_restJson1LineItemAssetInformationList(output.AssetInformationList, context)
2671+
: undefined,
26662672
CatalogItemId: __expectString(output.CatalogItemId),
26672673
LineItemId: __expectString(output.LineItemId),
26682674
Quantity: __expectInt32(output.Quantity),
2675+
ShipmentInformation:
2676+
output.ShipmentInformation != null
2677+
? deserializeAws_restJson1ShipmentInformation(output.ShipmentInformation, context)
2678+
: undefined,
26692679
Status: __expectString(output.Status),
26702680
} as any;
26712681
};
26722682

2683+
const deserializeAws_restJson1LineItemAssetInformation = (
2684+
output: any,
2685+
context: __SerdeContext
2686+
): LineItemAssetInformation => {
2687+
return {
2688+
AssetId: __expectString(output.AssetId),
2689+
MacAddressList:
2690+
output.MacAddressList != null
2691+
? deserializeAws_restJson1MacAddressList(output.MacAddressList, context)
2692+
: undefined,
2693+
} as any;
2694+
};
2695+
2696+
const deserializeAws_restJson1LineItemAssetInformationList = (
2697+
output: any,
2698+
context: __SerdeContext
2699+
): LineItemAssetInformation[] => {
2700+
const retVal = (output || [])
2701+
.filter((e: any) => e != null)
2702+
.map((entry: any) => {
2703+
if (entry === null) {
2704+
return null as any;
2705+
}
2706+
return deserializeAws_restJson1LineItemAssetInformation(entry, context);
2707+
});
2708+
return retVal;
2709+
};
2710+
26732711
const deserializeAws_restJson1LineItemListDefinition = (output: any, context: __SerdeContext): LineItem[] => {
26742712
const retVal = (output || [])
26752713
.filter((e: any) => e != null)
@@ -2694,6 +2732,18 @@ const deserializeAws_restJson1LineItemStatusCounts = (output: any, context: __Se
26942732
}, {});
26952733
};
26962734

2735+
const deserializeAws_restJson1MacAddressList = (output: any, context: __SerdeContext): string[] => {
2736+
const retVal = (output || [])
2737+
.filter((e: any) => e != null)
2738+
.map((entry: any) => {
2739+
if (entry === null) {
2740+
return null as any;
2741+
}
2742+
return __expectString(entry) as any;
2743+
});
2744+
return retVal;
2745+
};
2746+
26972747
const deserializeAws_restJson1Order = (output: any, context: __SerdeContext): Order => {
26982748
return {
26992749
LineItems:
@@ -2792,6 +2842,13 @@ const deserializeAws_restJson1RackPhysicalProperties = (
27922842
} as any;
27932843
};
27942844

2845+
const deserializeAws_restJson1ShipmentInformation = (output: any, context: __SerdeContext): ShipmentInformation => {
2846+
return {
2847+
ShipmentCarrier: __expectString(output.ShipmentCarrier),
2848+
ShipmentTrackingNumber: __expectString(output.ShipmentTrackingNumber),
2849+
} as any;
2850+
};
2851+
27952852
const deserializeAws_restJson1Site = (output: any, context: __SerdeContext): Site => {
27962853
return {
27972854
AccountId: __expectString(output.AccountId),

codegen/sdk-codegen/aws-models/outposts.json

Lines changed: 109 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,9 @@
587587
"traits": {
588588
"smithy.api#length": {
589589
"min": 1,
590-
"max": 255
590+
"max": 1024
591591
},
592-
"smithy.api#pattern": "^([\\w-]+)$"
592+
"smithy.api#pattern": "^[a-zA-Z0-9+/=]{1,1024}$"
593593
}
594594
},
595595
"com.amazonaws.outposts#ContactName": {
@@ -1599,12 +1599,50 @@
15991599
"traits": {
16001600
"smithy.api#documentation": "<p>The status of the line item.</p>"
16011601
}
1602+
},
1603+
"ShipmentInformation": {
1604+
"target": "com.amazonaws.outposts#ShipmentInformation",
1605+
"traits": {
1606+
"smithy.api#documentation": "<p>\n Information about a line item shipment.\n </p>"
1607+
}
1608+
},
1609+
"AssetInformationList": {
1610+
"target": "com.amazonaws.outposts#LineItemAssetInformationList",
1611+
"traits": {
1612+
"smithy.api#documentation": "<p>\n Information about assets.\n </p>"
1613+
}
16021614
}
16031615
},
16041616
"traits": {
16051617
"smithy.api#documentation": "<p>Information about a line item.</p>"
16061618
}
16071619
},
1620+
"com.amazonaws.outposts#LineItemAssetInformation": {
1621+
"type": "structure",
1622+
"members": {
1623+
"AssetId": {
1624+
"target": "com.amazonaws.outposts#AssetId",
1625+
"traits": {
1626+
"smithy.api#documentation": "<p>\n The ID of the asset.\n </p>"
1627+
}
1628+
},
1629+
"MacAddressList": {
1630+
"target": "com.amazonaws.outposts#MacAddressList",
1631+
"traits": {
1632+
"smithy.api#documentation": "<p>\n MAC addresses of the asset.\n </p>"
1633+
}
1634+
}
1635+
},
1636+
"traits": {
1637+
"smithy.api#documentation": "<p>\n Information about a line item asset.\n </p>"
1638+
}
1639+
},
1640+
"com.amazonaws.outposts#LineItemAssetInformationList": {
1641+
"type": "list",
1642+
"member": {
1643+
"target": "com.amazonaws.outposts#LineItemAssetInformation"
1644+
}
1645+
},
16081646
"com.amazonaws.outposts#LineItemId": {
16091647
"type": "string",
16101648
"traits": {
@@ -2163,6 +2201,22 @@
21632201
}
21642202
}
21652203
},
2204+
"com.amazonaws.outposts#MacAddress": {
2205+
"type": "string",
2206+
"traits": {
2207+
"smithy.api#length": {
2208+
"min": 17,
2209+
"max": 17
2210+
},
2211+
"smithy.api#pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"
2212+
}
2213+
},
2214+
"com.amazonaws.outposts#MacAddressList": {
2215+
"type": "list",
2216+
"member": {
2217+
"target": "com.amazonaws.outposts#MacAddress"
2218+
}
2219+
},
21662220
"com.amazonaws.outposts#MaxResults1000": {
21672221
"type": "integer",
21682222
"traits": {
@@ -2934,6 +2988,49 @@
29342988
"smithy.api#httpError": 402
29352989
}
29362990
},
2991+
"com.amazonaws.outposts#ShipmentCarrier": {
2992+
"type": "string",
2993+
"traits": {
2994+
"smithy.api#enum": [
2995+
{
2996+
"value": "DHL",
2997+
"name": "DHL"
2998+
},
2999+
{
3000+
"value": "DBS",
3001+
"name": "DBS"
3002+
},
3003+
{
3004+
"value": "FEDEX",
3005+
"name": "FEDEX"
3006+
},
3007+
{
3008+
"value": "UPS",
3009+
"name": "UPS"
3010+
}
3011+
]
3012+
}
3013+
},
3014+
"com.amazonaws.outposts#ShipmentInformation": {
3015+
"type": "structure",
3016+
"members": {
3017+
"ShipmentTrackingNumber": {
3018+
"target": "com.amazonaws.outposts#TrackingId",
3019+
"traits": {
3020+
"smithy.api#documentation": "<p>\n The tracking number of the shipment.\n </p>"
3021+
}
3022+
},
3023+
"ShipmentCarrier": {
3024+
"target": "com.amazonaws.outposts#ShipmentCarrier",
3025+
"traits": {
3026+
"smithy.api#documentation": "<p>\n The carrier of the shipment. \n </p>"
3027+
}
3028+
}
3029+
},
3030+
"traits": {
3031+
"smithy.api#documentation": "<p>\n Information about a line item shipment.\n </p>"
3032+
}
3033+
},
29373034
"com.amazonaws.outposts#Site": {
29383035
"type": "structure",
29393036
"members": {
@@ -3319,6 +3416,16 @@
33193416
"smithy.api#pattern": "^(\\d+)##(\\S+)$"
33203417
}
33213418
},
3419+
"com.amazonaws.outposts#TrackingId": {
3420+
"type": "string",
3421+
"traits": {
3422+
"smithy.api#length": {
3423+
"min": 6,
3424+
"max": 42
3425+
},
3426+
"smithy.api#pattern": "^[a-zA-Z0-9]+$"
3427+
}
3428+
},
33223429
"com.amazonaws.outposts#UnderlayIpAddress": {
33233430
"type": "string",
33243431
"traits": {

0 commit comments

Comments
 (0)