Skip to content

Commit c5cd452

Browse files
author
awstools
committed
feat(client-outposts): Make ContactName and ContactPhoneNumber required fields when creating and updating Outpost Site Addresses.
1 parent 4863805 commit c5cd452

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

clients/client-outposts/src/commands/CreateSiteCommand.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export interface CreateSiteCommandOutput extends CreateSiteOutput, __MetadataBea
4343
* "<keys>": "STRING_VALUE",
4444
* },
4545
* OperatingAddress: { // Address
46-
* ContactName: "STRING_VALUE",
47-
* ContactPhoneNumber: "STRING_VALUE",
46+
* ContactName: "STRING_VALUE", // required
47+
* ContactPhoneNumber: "STRING_VALUE", // required
4848
* AddressLine1: "STRING_VALUE", // required
4949
* AddressLine2: "STRING_VALUE",
5050
* AddressLine3: "STRING_VALUE",
@@ -56,8 +56,8 @@ export interface CreateSiteCommandOutput extends CreateSiteOutput, __MetadataBea
5656
* Municipality: "STRING_VALUE",
5757
* },
5858
* ShippingAddress: {
59-
* ContactName: "STRING_VALUE",
60-
* ContactPhoneNumber: "STRING_VALUE",
59+
* ContactName: "STRING_VALUE", // required
60+
* ContactPhoneNumber: "STRING_VALUE", // required
6161
* AddressLine1: "STRING_VALUE", // required
6262
* AddressLine2: "STRING_VALUE",
6363
* AddressLine3: "STRING_VALUE",

clients/client-outposts/src/commands/GetSiteAddressCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export interface GetSiteAddressCommandOutput extends GetSiteAddressOutput, __Met
4545
* // SiteId: "STRING_VALUE",
4646
* // AddressType: "SHIPPING_ADDRESS" || "OPERATING_ADDRESS",
4747
* // Address: { // Address
48-
* // ContactName: "STRING_VALUE",
49-
* // ContactPhoneNumber: "STRING_VALUE",
48+
* // ContactName: "STRING_VALUE", // required
49+
* // ContactPhoneNumber: "STRING_VALUE", // required
5050
* // AddressLine1: "STRING_VALUE", // required
5151
* // AddressLine2: "STRING_VALUE",
5252
* // AddressLine3: "STRING_VALUE",

clients/client-outposts/src/commands/UpdateSiteAddressCommand.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export interface UpdateSiteAddressCommandOutput extends UpdateSiteAddressOutput,
4343
* SiteId: "STRING_VALUE", // required
4444
* AddressType: "SHIPPING_ADDRESS" || "OPERATING_ADDRESS", // required
4545
* Address: { // Address
46-
* ContactName: "STRING_VALUE",
47-
* ContactPhoneNumber: "STRING_VALUE",
46+
* ContactName: "STRING_VALUE", // required
47+
* ContactPhoneNumber: "STRING_VALUE", // required
4848
* AddressLine1: "STRING_VALUE", // required
4949
* AddressLine2: "STRING_VALUE",
5050
* AddressLine3: "STRING_VALUE",
@@ -61,8 +61,8 @@ export interface UpdateSiteAddressCommandOutput extends UpdateSiteAddressOutput,
6161
* // { // UpdateSiteAddressOutput
6262
* // AddressType: "SHIPPING_ADDRESS" || "OPERATING_ADDRESS",
6363
* // Address: { // Address
64-
* // ContactName: "STRING_VALUE",
65-
* // ContactPhoneNumber: "STRING_VALUE",
64+
* // ContactName: "STRING_VALUE", // required
65+
* // ContactPhoneNumber: "STRING_VALUE", // required
6666
* // AddressLine1: "STRING_VALUE", // required
6767
* // AddressLine2: "STRING_VALUE",
6868
* // AddressLine3: "STRING_VALUE",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ export interface Address {
3434
* <p>The name of the contact.</p>
3535
* @public
3636
*/
37-
ContactName?: string | undefined;
37+
ContactName: string | undefined;
3838

3939
/**
4040
* <p>The phone number of the contact.</p>
4141
* @public
4242
*/
43-
ContactPhoneNumber?: string | undefined;
43+
ContactPhoneNumber: string | undefined;
4444

4545
/**
4646
* <p>The first line of the address.</p>

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,15 @@
112112
"ContactName": {
113113
"target": "com.amazonaws.outposts#ContactName",
114114
"traits": {
115-
"smithy.api#documentation": "<p>The name of the contact.</p>"
115+
"smithy.api#documentation": "<p>The name of the contact.</p>",
116+
"smithy.api#required": {}
116117
}
117118
},
118119
"ContactPhoneNumber": {
119120
"target": "com.amazonaws.outposts#ContactPhoneNumber",
120121
"traits": {
121-
"smithy.api#documentation": "<p>The phone number of the contact.</p>"
122+
"smithy.api#documentation": "<p>The phone number of the contact.</p>",
123+
"smithy.api#required": {}
122124
}
123125
},
124126
"AddressLine1": {

0 commit comments

Comments
 (0)