Skip to content

Commit 8ea0605

Browse files
author
awstools
committed
feat(client-pinpoint-sms-voice-v2): This change added InternationalSendingEnbaled as part of describe/Update/Request phone number API response, and as part of update/Request phone number API request
1 parent 0267438 commit 8ea0605

File tree

6 files changed

+82
-0
lines changed

6 files changed

+82
-0
lines changed

clients/client-pinpoint-sms-voice-v2/src/commands/DescribePhoneNumbersCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export interface DescribePhoneNumbersCommandOutput extends DescribePhoneNumbersR
7676
* // TwoWayChannelRole: "STRING_VALUE",
7777
* // SelfManagedOptOutsEnabled: true || false, // required
7878
* // OptOutListName: "STRING_VALUE", // required
79+
* // InternationalSendingEnabled: true || false,
7980
* // DeletionProtectionEnabled: true || false, // required
8081
* // PoolId: "STRING_VALUE",
8182
* // RegistrationId: "STRING_VALUE",

clients/client-pinpoint-sms-voice-v2/src/commands/RequestPhoneNumberCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export interface RequestPhoneNumberCommandOutput extends RequestPhoneNumberResul
4949
* OptOutListName: "STRING_VALUE",
5050
* PoolId: "STRING_VALUE",
5151
* RegistrationId: "STRING_VALUE",
52+
* InternationalSendingEnabled: true || false,
5253
* DeletionProtectionEnabled: true || false,
5354
* Tags: [ // TagList
5455
* { // Tag
@@ -77,6 +78,7 @@ export interface RequestPhoneNumberCommandOutput extends RequestPhoneNumberResul
7778
* // TwoWayChannelRole: "STRING_VALUE",
7879
* // SelfManagedOptOutsEnabled: true || false,
7980
* // OptOutListName: "STRING_VALUE",
81+
* // InternationalSendingEnabled: true || false,
8082
* // DeletionProtectionEnabled: true || false,
8183
* // PoolId: "STRING_VALUE",
8284
* // RegistrationId: "STRING_VALUE",

clients/client-pinpoint-sms-voice-v2/src/commands/UpdatePhoneNumberCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface UpdatePhoneNumberCommandOutput extends UpdatePhoneNumberResult,
4646
* TwoWayChannelRole: "STRING_VALUE",
4747
* SelfManagedOptOutsEnabled: true || false,
4848
* OptOutListName: "STRING_VALUE",
49+
* InternationalSendingEnabled: true || false,
4950
* DeletionProtectionEnabled: true || false,
5051
* };
5152
* const command = new UpdatePhoneNumberCommand(input);
@@ -67,6 +68,7 @@ export interface UpdatePhoneNumberCommandOutput extends UpdatePhoneNumberResult,
6768
* // TwoWayChannelRole: "STRING_VALUE",
6869
* // SelfManagedOptOutsEnabled: true || false,
6970
* // OptOutListName: "STRING_VALUE",
71+
* // InternationalSendingEnabled: true || false,
7072
* // DeletionProtectionEnabled: true || false,
7173
* // RegistrationId: "STRING_VALUE",
7274
* // CreatedTimestamp: new Date("TIMESTAMP"),

clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export const ResourceType = {
246246
EVENT_DESTINATION: "event-destination",
247247
KEYWORD: "keyword",
248248
MESSAGE: "message",
249+
MESSAGE_TEMPLATE: "message-template",
249250
OPTED_OUT_NUMBER: "opted-out-number",
250251
OPT_OUT_LIST: "opt-out-list",
251252
PHONE_NUMBER: "phone-number",
@@ -487,6 +488,7 @@ export const ValidationExceptionReason = {
487488
COUNTRY_CODE_MISMATCH: "COUNTRY_CODE_MISMATCH",
488489
DESTINATION_COUNTRY_BLOCKED: "DESTINATION_COUNTRY_BLOCKED",
489490
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
491+
INTERNATIONAL_SENDING_NOT_SUPPORTED: "INTERNATIONAL_SENDING_NOT_SUPPORTED",
490492
INVALID_ARN: "INVALID_ARN",
491493
INVALID_FILTER_VALUES: "INVALID_FILTER_VALUES",
492494
INVALID_IDENTITY_FOR_DESTINATION_COUNTRY: "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY",
@@ -3218,6 +3220,12 @@ export interface PhoneNumberInformation {
32183220
*/
32193221
OptOutListName: string | undefined;
32203222

3223+
/**
3224+
* <p>When set to true the international sending of phone number is Enabled.</p>
3225+
* @public
3226+
*/
3227+
InternationalSendingEnabled?: boolean | undefined;
3228+
32213229
/**
32223230
* <p>When set to true the phone number can't be deleted.</p>
32233231
* @public
@@ -6325,6 +6333,12 @@ export interface RequestPhoneNumberRequest {
63256333
*/
63266334
RegistrationId?: string | undefined;
63276335

6336+
/**
6337+
* <p>By default this is set to false. When set to true the international sending of phone number is Enabled. </p>
6338+
* @public
6339+
*/
6340+
InternationalSendingEnabled?: boolean | undefined;
6341+
63286342
/**
63296343
* <p>By default this is set to false. When set to true the phone number can't be deleted.</p>
63306344
* @public
@@ -6432,6 +6446,12 @@ export interface RequestPhoneNumberResult {
64326446
*/
64336447
OptOutListName?: string | undefined;
64346448

6449+
/**
6450+
* <p>By default this is set to false. When set to true the international sending of phone number is Enabled. </p>
6451+
* @public
6452+
*/
6453+
InternationalSendingEnabled?: boolean | undefined;
6454+
64356455
/**
64366456
* <p>By default this is set to false. When set to true the phone number can't be deleted. </p>
64376457
* @public
@@ -7392,6 +7412,12 @@ export interface UpdatePhoneNumberRequest {
73927412
*/
73937413
OptOutListName?: string | undefined;
73947414

7415+
/**
7416+
* <p>By default this is set to false. When set to true the international sending of phone number is Enabled. </p>
7417+
* @public
7418+
*/
7419+
InternationalSendingEnabled?: boolean | undefined;
7420+
73957421
/**
73967422
* <p>By default this is set to false. When set to true the phone number can't be deleted. </p>
73977423
* @public
@@ -7487,6 +7513,12 @@ export interface UpdatePhoneNumberResult {
74877513
*/
74887514
OptOutListName?: string | undefined;
74897515

7516+
/**
7517+
* <p>When set to true the international sending of phone number is Enabled.</p>
7518+
* @public
7519+
*/
7520+
InternationalSendingEnabled?: boolean | undefined;
7521+
74907522
/**
74917523
* <p>When set to true the phone number can't be deleted.</p>
74927524
* @public

clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3963,6 +3963,7 @@ const se_RequestPhoneNumberRequest = (input: RequestPhoneNumberRequest, context:
39633963
return take(input, {
39643964
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
39653965
DeletionProtectionEnabled: [],
3966+
InternationalSendingEnabled: [],
39663967
IsoCountryCode: [],
39673968
MessageType: [],
39683969
NumberCapabilities: _json,
@@ -4662,6 +4663,7 @@ const de_PhoneNumberInformation = (output: any, context: __SerdeContext): PhoneN
46624663
return take(output, {
46634664
CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
46644665
DeletionProtectionEnabled: __expectBoolean,
4666+
InternationalSendingEnabled: __expectBoolean,
46654667
IsoCountryCode: __expectString,
46664668
MessageType: __expectString,
46674669
MonthlyLeasingPrice: __expectString,
@@ -5006,6 +5008,7 @@ const de_RequestPhoneNumberResult = (output: any, context: __SerdeContext): Requ
50065008
return take(output, {
50075009
CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
50085010
DeletionProtectionEnabled: __expectBoolean,
5011+
InternationalSendingEnabled: __expectBoolean,
50095012
IsoCountryCode: __expectString,
50105013
MessageType: __expectString,
50115014
MonthlyLeasingPrice: __expectString,
@@ -5114,6 +5117,7 @@ const de_UpdatePhoneNumberResult = (output: any, context: __SerdeContext): Updat
51145117
return take(output, {
51155118
CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
51165119
DeletionProtectionEnabled: __expectBoolean,
5120+
InternationalSendingEnabled: __expectBoolean,
51175121
IsoCountryCode: __expectString,
51185122
MessageType: __expectString,
51195123
MonthlyLeasingPrice: __expectString,

codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7324,6 +7324,13 @@
73247324
"smithy.api#required": {}
73257325
}
73267326
},
7327+
"InternationalSendingEnabled": {
7328+
"target": "smithy.api#PrimitiveBoolean",
7329+
"traits": {
7330+
"smithy.api#default": false,
7331+
"smithy.api#documentation": "<p>When set to true the international sending of phone number is Enabled.</p>"
7332+
}
7333+
},
73277334
"DeletionProtectionEnabled": {
73287335
"target": "smithy.api#PrimitiveBoolean",
73297336
"traits": {
@@ -11032,6 +11039,12 @@
1103211039
"smithy.api#documentation": "<p>Use this field to attach your phone number for an external registration process.</p>"
1103311040
}
1103411041
},
11042+
"InternationalSendingEnabled": {
11043+
"target": "smithy.api#Boolean",
11044+
"traits": {
11045+
"smithy.api#documentation": "<p>By default this is set to false. When set to true the international sending of phone number is Enabled. </p>"
11046+
}
11047+
},
1103511048
"DeletionProtectionEnabled": {
1103611049
"target": "smithy.api#Boolean",
1103711050
"traits": {
@@ -11145,6 +11158,13 @@
1114511158
"smithy.api#documentation": "<p>The name of the OptOutList that is associated with the requested phone number.</p>"
1114611159
}
1114711160
},
11161+
"InternationalSendingEnabled": {
11162+
"target": "smithy.api#PrimitiveBoolean",
11163+
"traits": {
11164+
"smithy.api#default": false,
11165+
"smithy.api#documentation": "<p>By default this is set to false. When set to true the international sending of phone number is Enabled. </p>"
11166+
}
11167+
},
1114811168
"DeletionProtectionEnabled": {
1114911169
"target": "smithy.api#PrimitiveBoolean",
1115011170
"traits": {
@@ -11447,6 +11467,10 @@
1144711467
"value": "protect-configuration",
1144811468
"name": "PROTECT_CONFIGURATION"
1144911469
},
11470+
{
11471+
"value": "message-template",
11472+
"name": "MESSAGE_TEMPLATE"
11473+
},
1145011474
{
1145111475
"value": "policy",
1145211476
"name": "POLICY"
@@ -13513,6 +13537,12 @@
1351313537
"smithy.api#documentation": "<p>The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or OutOutListArn.</p>"
1351413538
}
1351513539
},
13540+
"InternationalSendingEnabled": {
13541+
"target": "smithy.api#Boolean",
13542+
"traits": {
13543+
"smithy.api#documentation": "<p>By default this is set to false. When set to true the international sending of phone number is Enabled. </p>"
13544+
}
13545+
},
1351613546
"DeletionProtectionEnabled": {
1351713547
"target": "smithy.api#Boolean",
1351813548
"traits": {
@@ -13613,6 +13643,13 @@
1361313643
"smithy.api#documentation": "<p>The name of the OptOutList associated with the phone number.</p>"
1361413644
}
1361513645
},
13646+
"InternationalSendingEnabled": {
13647+
"target": "smithy.api#PrimitiveBoolean",
13648+
"traits": {
13649+
"smithy.api#default": false,
13650+
"smithy.api#documentation": "<p>When set to true the international sending of phone number is Enabled.</p>"
13651+
}
13652+
},
1361613653
"DeletionProtectionEnabled": {
1361713654
"target": "smithy.api#PrimitiveBoolean",
1361813655
"traits": {
@@ -14201,6 +14238,10 @@
1420114238
"value": "ATTACHMENT_TYPE_NOT_SUPPORTED",
1420214239
"name": "ATTACHMENT_TYPE_NOT_SUPPORTED"
1420314240
},
14241+
{
14242+
"value": "INTERNATIONAL_SENDING_NOT_SUPPORTED",
14243+
"name": "INTERNATIONAL_SENDING_NOT_SUPPORTED"
14244+
},
1420414245
{
1420514246
"value": "INVALID_ARN",
1420614247
"name": "INVALID_ARN"

0 commit comments

Comments
 (0)