@aws-sdk/client-pinpoint-sms-voice-v2 3.654.0 → 3.658.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +136 -0
  3. package/dist-es/PinpointSMSVoiceV2.js +6 -0
  4. package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -0
  5. package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
  6. package/dist-es/commands/PutResourcePolicyCommand.js +22 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +5 -0
  9. package/dist-es/protocols/Aws_json1_0.js +78 -0
  10. package/dist-types/PinpointSMSVoiceV2.d.ts +21 -0
  11. package/dist-types/PinpointSMSVoiceV2Client.d.ts +5 -2
  12. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +91 -0
  13. package/dist-types/commands/DescribeOptOutListsCommand.d.ts +1 -0
  14. package/dist-types/commands/DescribePhoneNumbersCommand.d.ts +1 -0
  15. package/dist-types/commands/DescribePoolsCommand.d.ts +1 -0
  16. package/dist-types/commands/DescribeSenderIdsCommand.d.ts +1 -0
  17. package/dist-types/commands/GetResourcePolicyCommand.d.ts +91 -0
  18. package/dist-types/commands/PutResourcePolicyCommand.d.ts +94 -0
  19. package/dist-types/commands/index.d.ts +3 -0
  20. package/dist-types/models/models_0.d.ts +212 -0
  21. package/dist-types/protocols/Aws_json1_0.d.ts +27 -0
  22. package/dist-types/ts3.4/PinpointSMSVoiceV2.d.ts +51 -0
  23. package/dist-types/ts3.4/PinpointSMSVoiceV2Client.d.ts +18 -0
  24. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
  25. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  26. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +35 -0
  29. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
  30. package/package.json +5 -5
package/README.md CHANGED
@@ -442,6 +442,14 @@ DeleteRegistrationFieldValue
442
442
 
443
443
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DeleteRegistrationFieldValueCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteRegistrationFieldValueCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteRegistrationFieldValueCommandOutput/)
444
444
 
445
+ </details>
446
+ <details>
447
+ <summary>
448
+ DeleteResourcePolicy
449
+ </summary>
450
+
451
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DeleteResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteResourcePolicyCommandOutput/)
452
+
445
453
  </details>
446
454
  <details>
447
455
  <summary>
@@ -650,6 +658,14 @@ GetProtectConfigurationCountryRuleSet
650
658
 
651
659
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/GetProtectConfigurationCountryRuleSetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/GetProtectConfigurationCountryRuleSetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/GetProtectConfigurationCountryRuleSetCommandOutput/)
652
660
 
661
+ </details>
662
+ <details>
663
+ <summary>
664
+ GetResourcePolicy
665
+ </summary>
666
+
667
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/GetResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/GetResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/GetResourcePolicyCommandOutput/)
668
+
653
669
  </details>
654
670
  <details>
655
671
  <summary>
@@ -698,6 +714,14 @@ PutRegistrationFieldValue
698
714
 
699
715
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/PutRegistrationFieldValueCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutRegistrationFieldValueCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutRegistrationFieldValueCommandOutput/)
700
716
 
717
+ </details>
718
+ <details>
719
+ <summary>
720
+ PutResourcePolicy
721
+ </summary>
722
+
723
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/PutResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutResourcePolicyCommandOutput/)
724
+
701
725
  </details>
702
726
  <details>
703
727
  <summary>
package/dist-cjs/index.js CHANGED
@@ -56,6 +56,7 @@ __export(src_exports, {
56
56
  DeleteRegistrationAttachmentCommand: () => DeleteRegistrationAttachmentCommand,
57
57
  DeleteRegistrationCommand: () => DeleteRegistrationCommand,
58
58
  DeleteRegistrationFieldValueCommand: () => DeleteRegistrationFieldValueCommand,
59
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
59
60
  DeleteTextMessageSpendLimitOverrideCommand: () => DeleteTextMessageSpendLimitOverrideCommand,
60
61
  DeleteVerifiedDestinationNumberCommand: () => DeleteVerifiedDestinationNumberCommand,
61
62
  DeleteVoiceMessageSpendLimitOverrideCommand: () => DeleteVoiceMessageSpendLimitOverrideCommand,
@@ -86,6 +87,7 @@ __export(src_exports, {
86
87
  FieldRequirement: () => FieldRequirement,
87
88
  FieldType: () => FieldType,
88
89
  GetProtectConfigurationCountryRuleSetCommand: () => GetProtectConfigurationCountryRuleSetCommand,
90
+ GetResourcePolicyCommand: () => GetResourcePolicyCommand,
89
91
  InternalServerException: () => InternalServerException,
90
92
  KeywordAction: () => KeywordAction,
91
93
  KeywordFilterName: () => KeywordFilterName,
@@ -98,6 +100,7 @@ __export(src_exports, {
98
100
  NumberStatus: () => NumberStatus,
99
101
  NumberType: () => NumberType,
100
102
  OptedOutFilterName: () => OptedOutFilterName,
103
+ Owner: () => Owner,
101
104
  PhoneNumberFilterName: () => PhoneNumberFilterName,
102
105
  PinpointSMSVoiceV2: () => PinpointSMSVoiceV2,
103
106
  PinpointSMSVoiceV2Client: () => PinpointSMSVoiceV2Client,
@@ -110,6 +113,7 @@ __export(src_exports, {
110
113
  PutKeywordCommand: () => PutKeywordCommand,
111
114
  PutOptedOutNumberCommand: () => PutOptedOutNumberCommand,
112
115
  PutRegistrationFieldValueCommand: () => PutRegistrationFieldValueCommand,
116
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
113
117
  RegistrationAssociationBehavior: () => RegistrationAssociationBehavior,
114
118
  RegistrationAssociationFilterName: () => RegistrationAssociationFilterName,
115
119
  RegistrationAttachmentFilterName: () => RegistrationAttachmentFilterName,
@@ -431,6 +435,7 @@ var ResourceType = {
431
435
  OPTED_OUT_NUMBER: "opted-out-number",
432
436
  OPT_OUT_LIST: "opt-out-list",
433
437
  PHONE_NUMBER: "phone-number",
438
+ POLICY: "policy",
434
439
  POOL: "pool",
435
440
  PROTECT_CONFIGURATION: "protect-configuration",
436
441
  REGISTRATION: "registration",
@@ -729,6 +734,10 @@ var KeywordFilterName = {
729
734
  var OptedOutFilterName = {
730
735
  END_USER_OPTED_OUT: "end-user-opted-out"
731
736
  };
737
+ var Owner = {
738
+ SELF: "SELF",
739
+ SHARED: "SHARED"
740
+ };
732
741
  var PhoneNumberFilterName = {
733
742
  DELETION_PROTECTION_ENABLED: "deletion-protection-enabled",
734
743
  ISO_COUNTRY_CODE: "iso-country-code",
@@ -1087,6 +1096,12 @@ var se_DeleteRegistrationFieldValueCommand = /* @__PURE__ */ __name(async (input
1087
1096
  body = JSON.stringify((0, import_smithy_client._json)(input));
1088
1097
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1089
1098
  }, "se_DeleteRegistrationFieldValueCommand");
1099
+ var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1100
+ const headers = sharedHeaders("DeleteResourcePolicy");
1101
+ let body;
1102
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1103
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1104
+ }, "se_DeleteResourcePolicyCommand");
1090
1105
  var se_DeleteTextMessageSpendLimitOverrideCommand = /* @__PURE__ */ __name(async (input, context) => {
1091
1106
  const headers = sharedHeaders("DeleteTextMessageSpendLimitOverride");
1092
1107
  let body;
@@ -1243,6 +1258,12 @@ var se_GetProtectConfigurationCountryRuleSetCommand = /* @__PURE__ */ __name(asy
1243
1258
  body = JSON.stringify((0, import_smithy_client._json)(input));
1244
1259
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1245
1260
  }, "se_GetProtectConfigurationCountryRuleSetCommand");
1261
+ var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1262
+ const headers = sharedHeaders("GetResourcePolicy");
1263
+ let body;
1264
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1265
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1266
+ }, "se_GetResourcePolicyCommand");
1246
1267
  var se_ListPoolOriginationIdentitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
1247
1268
  const headers = sharedHeaders("ListPoolOriginationIdentities");
1248
1269
  let body;
@@ -1279,6 +1300,12 @@ var se_PutRegistrationFieldValueCommand = /* @__PURE__ */ __name(async (input, c
1279
1300
  body = JSON.stringify((0, import_smithy_client._json)(input));
1280
1301
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1281
1302
  }, "se_PutRegistrationFieldValueCommand");
1303
+ var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1304
+ const headers = sharedHeaders("PutResourcePolicy");
1305
+ let body;
1306
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1307
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1308
+ }, "se_PutResourcePolicyCommand");
1282
1309
  var se_ReleasePhoneNumberCommand = /* @__PURE__ */ __name(async (input, context) => {
1283
1310
  const headers = sharedHeaders("ReleasePhoneNumber");
1284
1311
  let body;
@@ -1761,6 +1788,19 @@ var de_DeleteRegistrationFieldValueCommand = /* @__PURE__ */ __name(async (outpu
1761
1788
  };
1762
1789
  return response;
1763
1790
  }, "de_DeleteRegistrationFieldValueCommand");
1791
+ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1792
+ if (output.statusCode >= 300) {
1793
+ return de_CommandError(output, context);
1794
+ }
1795
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1796
+ let contents = {};
1797
+ contents = de_DeleteResourcePolicyResult(data, context);
1798
+ const response = {
1799
+ $metadata: deserializeMetadata(output),
1800
+ ...contents
1801
+ };
1802
+ return response;
1803
+ }, "de_DeleteResourcePolicyCommand");
1764
1804
  var de_DeleteTextMessageSpendLimitOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
1765
1805
  if (output.statusCode >= 300) {
1766
1806
  return de_CommandError(output, context);
@@ -2099,6 +2139,19 @@ var de_GetProtectConfigurationCountryRuleSetCommand = /* @__PURE__ */ __name(asy
2099
2139
  };
2100
2140
  return response;
2101
2141
  }, "de_GetProtectConfigurationCountryRuleSetCommand");
2142
+ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2143
+ if (output.statusCode >= 300) {
2144
+ return de_CommandError(output, context);
2145
+ }
2146
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2147
+ let contents = {};
2148
+ contents = de_GetResourcePolicyResult(data, context);
2149
+ const response = {
2150
+ $metadata: deserializeMetadata(output),
2151
+ ...contents
2152
+ };
2153
+ return response;
2154
+ }, "de_GetResourcePolicyCommand");
2102
2155
  var de_ListPoolOriginationIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
2103
2156
  if (output.statusCode >= 300) {
2104
2157
  return de_CommandError(output, context);
@@ -2177,6 +2230,19 @@ var de_PutRegistrationFieldValueCommand = /* @__PURE__ */ __name(async (output,
2177
2230
  };
2178
2231
  return response;
2179
2232
  }, "de_PutRegistrationFieldValueCommand");
2233
+ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2234
+ if (output.statusCode >= 300) {
2235
+ return de_CommandError(output, context);
2236
+ }
2237
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2238
+ let contents = {};
2239
+ contents = de_PutResourcePolicyResult(data, context);
2240
+ const response = {
2241
+ $metadata: deserializeMetadata(output),
2242
+ ...contents
2243
+ };
2244
+ return response;
2245
+ }, "de_PutResourcePolicyCommand");
2180
2246
  var de_ReleasePhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
2181
2247
  if (output.statusCode >= 300) {
2182
2248
  return de_CommandError(output, context);
@@ -2865,6 +2931,13 @@ var de_DeleteRegistrationResult = /* @__PURE__ */ __name((output, context) => {
2865
2931
  RegistrationType: import_smithy_client.expectString
2866
2932
  });
2867
2933
  }, "de_DeleteRegistrationResult");
2934
+ var de_DeleteResourcePolicyResult = /* @__PURE__ */ __name((output, context) => {
2935
+ return (0, import_smithy_client.take)(output, {
2936
+ CreatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2937
+ Policy: import_smithy_client.expectString,
2938
+ ResourceArn: import_smithy_client.expectString
2939
+ });
2940
+ }, "de_DeleteResourcePolicyResult");
2868
2941
  var de_DeleteVerifiedDestinationNumberResult = /* @__PURE__ */ __name((output, context) => {
2869
2942
  return (0, import_smithy_client.take)(output, {
2870
2943
  CreatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -2946,6 +3019,13 @@ var de_DiscardRegistrationVersionResult = /* @__PURE__ */ __name((output, contex
2946
3019
  VersionNumber: import_smithy_client.expectLong
2947
3020
  });
2948
3021
  }, "de_DiscardRegistrationVersionResult");
3022
+ var de_GetResourcePolicyResult = /* @__PURE__ */ __name((output, context) => {
3023
+ return (0, import_smithy_client.take)(output, {
3024
+ CreatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3025
+ Policy: import_smithy_client.expectString,
3026
+ ResourceArn: import_smithy_client.expectString
3027
+ });
3028
+ }, "de_GetResourcePolicyResult");
2949
3029
  var de_OptedOutNumberInformation = /* @__PURE__ */ __name((output, context) => {
2950
3030
  return (0, import_smithy_client.take)(output, {
2951
3031
  EndUserOptedOut: import_smithy_client.expectBoolean,
@@ -3046,6 +3126,13 @@ var de_PutOptedOutNumberResult = /* @__PURE__ */ __name((output, context) => {
3046
3126
  OptedOutTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
3047
3127
  });
3048
3128
  }, "de_PutOptedOutNumberResult");
3129
+ var de_PutResourcePolicyResult = /* @__PURE__ */ __name((output, context) => {
3130
+ return (0, import_smithy_client.take)(output, {
3131
+ CreatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3132
+ Policy: import_smithy_client.expectString,
3133
+ ResourceArn: import_smithy_client.expectString
3134
+ });
3135
+ }, "de_PutResourcePolicyResult");
3049
3136
  var de_RegistrationAttachmentsInformation = /* @__PURE__ */ __name((output, context) => {
3050
3137
  return (0, import_smithy_client.take)(output, {
3051
3138
  AttachmentStatus: import_smithy_client.expectString,
@@ -3622,6 +3709,20 @@ var _DeleteRegistrationFieldValueCommand = class _DeleteRegistrationFieldValueCo
3622
3709
  __name(_DeleteRegistrationFieldValueCommand, "DeleteRegistrationFieldValueCommand");
3623
3710
  var DeleteRegistrationFieldValueCommand = _DeleteRegistrationFieldValueCommand;
3624
3711
 
3712
+ // src/commands/DeleteResourcePolicyCommand.ts
3713
+
3714
+
3715
+
3716
+ var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3717
+ return [
3718
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3719
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3720
+ ];
3721
+ }).s("PinpointSMSVoiceV2", "DeleteResourcePolicy", {}).n("PinpointSMSVoiceV2Client", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
3722
+ };
3723
+ __name(_DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand");
3724
+ var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
3725
+
3625
3726
  // src/commands/DeleteTextMessageSpendLimitOverrideCommand.ts
3626
3727
 
3627
3728
 
@@ -3986,6 +4087,20 @@ var _GetProtectConfigurationCountryRuleSetCommand = class _GetProtectConfigurati
3986
4087
  __name(_GetProtectConfigurationCountryRuleSetCommand, "GetProtectConfigurationCountryRuleSetCommand");
3987
4088
  var GetProtectConfigurationCountryRuleSetCommand = _GetProtectConfigurationCountryRuleSetCommand;
3988
4089
 
4090
+ // src/commands/GetResourcePolicyCommand.ts
4091
+
4092
+
4093
+
4094
+ var _GetResourcePolicyCommand = class _GetResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4095
+ return [
4096
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4097
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4098
+ ];
4099
+ }).s("PinpointSMSVoiceV2", "GetResourcePolicy", {}).n("PinpointSMSVoiceV2Client", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
4100
+ };
4101
+ __name(_GetResourcePolicyCommand, "GetResourcePolicyCommand");
4102
+ var GetResourcePolicyCommand = _GetResourcePolicyCommand;
4103
+
3989
4104
  // src/commands/ListPoolOriginationIdentitiesCommand.ts
3990
4105
 
3991
4106
 
@@ -4070,6 +4185,20 @@ var _PutRegistrationFieldValueCommand = class _PutRegistrationFieldValueCommand
4070
4185
  __name(_PutRegistrationFieldValueCommand, "PutRegistrationFieldValueCommand");
4071
4186
  var PutRegistrationFieldValueCommand = _PutRegistrationFieldValueCommand;
4072
4187
 
4188
+ // src/commands/PutResourcePolicyCommand.ts
4189
+
4190
+
4191
+
4192
+ var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4193
+ return [
4194
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4195
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4196
+ ];
4197
+ }).s("PinpointSMSVoiceV2", "PutResourcePolicy", {}).n("PinpointSMSVoiceV2Client", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
4198
+ };
4199
+ __name(_PutResourcePolicyCommand, "PutResourcePolicyCommand");
4200
+ var PutResourcePolicyCommand = _PutResourcePolicyCommand;
4201
+
4073
4202
  // src/commands/ReleasePhoneNumberCommand.ts
4074
4203
 
4075
4204
 
@@ -4434,6 +4563,7 @@ var commands = {
4434
4563
  DeleteRegistrationCommand,
4435
4564
  DeleteRegistrationAttachmentCommand,
4436
4565
  DeleteRegistrationFieldValueCommand,
4566
+ DeleteResourcePolicyCommand,
4437
4567
  DeleteTextMessageSpendLimitOverrideCommand,
4438
4568
  DeleteVerifiedDestinationNumberCommand,
4439
4569
  DeleteVoiceMessageSpendLimitOverrideCommand,
@@ -4460,12 +4590,14 @@ var commands = {
4460
4590
  DisassociateProtectConfigurationCommand,
4461
4591
  DiscardRegistrationVersionCommand,
4462
4592
  GetProtectConfigurationCountryRuleSetCommand,
4593
+ GetResourcePolicyCommand,
4463
4594
  ListPoolOriginationIdentitiesCommand,
4464
4595
  ListRegistrationAssociationsCommand,
4465
4596
  ListTagsForResourceCommand,
4466
4597
  PutKeywordCommand,
4467
4598
  PutOptedOutNumberCommand,
4468
4599
  PutRegistrationFieldValueCommand,
4600
+ PutResourcePolicyCommand,
4469
4601
  ReleasePhoneNumberCommand,
4470
4602
  ReleaseSenderIdCommand,
4471
4603
  RequestPhoneNumberCommand,
@@ -4614,6 +4746,7 @@ var paginateListRegistrationAssociations = (0, import_core.createPaginator)(Pinp
4614
4746
  DeleteRegistrationAttachmentCommand,
4615
4747
  DeleteRegistrationCommand,
4616
4748
  DeleteRegistrationFieldValueCommand,
4749
+ DeleteResourcePolicyCommand,
4617
4750
  DeleteTextMessageSpendLimitOverrideCommand,
4618
4751
  DeleteVerifiedDestinationNumberCommand,
4619
4752
  DeleteVoiceMessageSpendLimitOverrideCommand,
@@ -4640,12 +4773,14 @@ var paginateListRegistrationAssociations = (0, import_core.createPaginator)(Pinp
4640
4773
  DisassociateProtectConfigurationCommand,
4641
4774
  DiscardRegistrationVersionCommand,
4642
4775
  GetProtectConfigurationCountryRuleSetCommand,
4776
+ GetResourcePolicyCommand,
4643
4777
  ListPoolOriginationIdentitiesCommand,
4644
4778
  ListRegistrationAssociationsCommand,
4645
4779
  ListTagsForResourceCommand,
4646
4780
  PutKeywordCommand,
4647
4781
  PutOptedOutNumberCommand,
4648
4782
  PutRegistrationFieldValueCommand,
4783
+ PutResourcePolicyCommand,
4649
4784
  ReleasePhoneNumberCommand,
4650
4785
  ReleaseSenderIdCommand,
4651
4786
  RequestPhoneNumberCommand,
@@ -4717,6 +4852,7 @@ var paginateListRegistrationAssociations = (0, import_core.createPaginator)(Pinp
4717
4852
  KeywordAction,
4718
4853
  KeywordFilterName,
4719
4854
  OptedOutFilterName,
4855
+ Owner,
4720
4856
  PhoneNumberFilterName,
4721
4857
  NumberCapability,
4722
4858
  NumberType,
@@ -25,6 +25,7 @@ import { DeleteProtectConfigurationCommand, } from "./commands/DeleteProtectConf
25
25
  import { DeleteRegistrationAttachmentCommand, } from "./commands/DeleteRegistrationAttachmentCommand";
26
26
  import { DeleteRegistrationCommand, } from "./commands/DeleteRegistrationCommand";
27
27
  import { DeleteRegistrationFieldValueCommand, } from "./commands/DeleteRegistrationFieldValueCommand";
28
+ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
28
29
  import { DeleteTextMessageSpendLimitOverrideCommand, } from "./commands/DeleteTextMessageSpendLimitOverrideCommand";
29
30
  import { DeleteVerifiedDestinationNumberCommand, } from "./commands/DeleteVerifiedDestinationNumberCommand";
30
31
  import { DeleteVoiceMessageSpendLimitOverrideCommand, } from "./commands/DeleteVoiceMessageSpendLimitOverrideCommand";
@@ -51,12 +52,14 @@ import { DisassociateOriginationIdentityCommand, } from "./commands/Disassociate
51
52
  import { DisassociateProtectConfigurationCommand, } from "./commands/DisassociateProtectConfigurationCommand";
52
53
  import { DiscardRegistrationVersionCommand, } from "./commands/DiscardRegistrationVersionCommand";
53
54
  import { GetProtectConfigurationCountryRuleSetCommand, } from "./commands/GetProtectConfigurationCountryRuleSetCommand";
55
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
54
56
  import { ListPoolOriginationIdentitiesCommand, } from "./commands/ListPoolOriginationIdentitiesCommand";
55
57
  import { ListRegistrationAssociationsCommand, } from "./commands/ListRegistrationAssociationsCommand";
56
58
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
57
59
  import { PutKeywordCommand } from "./commands/PutKeywordCommand";
58
60
  import { PutOptedOutNumberCommand, } from "./commands/PutOptedOutNumberCommand";
59
61
  import { PutRegistrationFieldValueCommand, } from "./commands/PutRegistrationFieldValueCommand";
62
+ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
60
63
  import { ReleasePhoneNumberCommand, } from "./commands/ReleasePhoneNumberCommand";
61
64
  import { ReleaseSenderIdCommand, } from "./commands/ReleaseSenderIdCommand";
62
65
  import { RequestPhoneNumberCommand, } from "./commands/RequestPhoneNumberCommand";
@@ -109,6 +112,7 @@ const commands = {
109
112
  DeleteRegistrationCommand,
110
113
  DeleteRegistrationAttachmentCommand,
111
114
  DeleteRegistrationFieldValueCommand,
115
+ DeleteResourcePolicyCommand,
112
116
  DeleteTextMessageSpendLimitOverrideCommand,
113
117
  DeleteVerifiedDestinationNumberCommand,
114
118
  DeleteVoiceMessageSpendLimitOverrideCommand,
@@ -135,12 +139,14 @@ const commands = {
135
139
  DisassociateProtectConfigurationCommand,
136
140
  DiscardRegistrationVersionCommand,
137
141
  GetProtectConfigurationCountryRuleSetCommand,
142
+ GetResourcePolicyCommand,
138
143
  ListPoolOriginationIdentitiesCommand,
139
144
  ListRegistrationAssociationsCommand,
140
145
  ListTagsForResourceCommand,
141
146
  PutKeywordCommand,
142
147
  PutOptedOutNumberCommand,
143
148
  PutRegistrationFieldValueCommand,
149
+ PutResourcePolicyCommand,
144
150
  ReleasePhoneNumberCommand,
145
151
  ReleaseSenderIdCommand,
146
152
  RequestPhoneNumberCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class DeleteResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("PinpointSMSVoiceV2", "DeleteResourcePolicy", {})
17
+ .n("PinpointSMSVoiceV2Client", "DeleteResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteResourcePolicyCommand)
20
+ .de(de_DeleteResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetResourcePolicyCommand, se_GetResourcePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class GetResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("PinpointSMSVoiceV2", "GetResourcePolicy", {})
17
+ .n("PinpointSMSVoiceV2Client", "GetResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetResourcePolicyCommand)
20
+ .de(de_GetResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class PutResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("PinpointSMSVoiceV2", "PutResourcePolicy", {})
17
+ .n("PinpointSMSVoiceV2Client", "PutResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_PutResourcePolicyCommand)
20
+ .de(de_PutResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -24,6 +24,7 @@ export * from "./DeleteProtectConfigurationCommand";
24
24
  export * from "./DeleteRegistrationAttachmentCommand";
25
25
  export * from "./DeleteRegistrationCommand";
26
26
  export * from "./DeleteRegistrationFieldValueCommand";
27
+ export * from "./DeleteResourcePolicyCommand";
27
28
  export * from "./DeleteTextMessageSpendLimitOverrideCommand";
28
29
  export * from "./DeleteVerifiedDestinationNumberCommand";
29
30
  export * from "./DeleteVoiceMessageSpendLimitOverrideCommand";
@@ -50,12 +51,14 @@ export * from "./DisassociateOriginationIdentityCommand";
50
51
  export * from "./DisassociateProtectConfigurationCommand";
51
52
  export * from "./DiscardRegistrationVersionCommand";
52
53
  export * from "./GetProtectConfigurationCountryRuleSetCommand";
54
+ export * from "./GetResourcePolicyCommand";
53
55
  export * from "./ListPoolOriginationIdentitiesCommand";
54
56
  export * from "./ListRegistrationAssociationsCommand";
55
57
  export * from "./ListTagsForResourceCommand";
56
58
  export * from "./PutKeywordCommand";
57
59
  export * from "./PutOptedOutNumberCommand";
58
60
  export * from "./PutRegistrationFieldValueCommand";
61
+ export * from "./PutResourcePolicyCommand";
59
62
  export * from "./ReleasePhoneNumberCommand";
60
63
  export * from "./ReleaseSenderIdCommand";
61
64
  export * from "./RequestPhoneNumberCommand";
@@ -76,6 +76,7 @@ export const ResourceType = {
76
76
  OPTED_OUT_NUMBER: "opted-out-number",
77
77
  OPT_OUT_LIST: "opt-out-list",
78
78
  PHONE_NUMBER: "phone-number",
79
+ POLICY: "policy",
79
80
  POOL: "pool",
80
81
  PROTECT_CONFIGURATION: "protect-configuration",
81
82
  REGISTRATION: "registration",
@@ -344,6 +345,10 @@ export const KeywordFilterName = {
344
345
  export const OptedOutFilterName = {
345
346
  END_USER_OPTED_OUT: "end-user-opted-out",
346
347
  };
348
+ export const Owner = {
349
+ SELF: "SELF",
350
+ SHARED: "SHARED",
351
+ };
347
352
  export const PhoneNumberFilterName = {
348
353
  DELETION_PROTECTION_ENABLED: "deletion-protection-enabled",
349
354
  ISO_COUNTRY_CODE: "iso-country-code",
@@ -160,6 +160,12 @@ export const se_DeleteRegistrationFieldValueCommand = async (input, context) =>
160
160
  body = JSON.stringify(_json(input));
161
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
162
  };
163
+ export const se_DeleteResourcePolicyCommand = async (input, context) => {
164
+ const headers = sharedHeaders("DeleteResourcePolicy");
165
+ let body;
166
+ body = JSON.stringify(_json(input));
167
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
+ };
163
169
  export const se_DeleteTextMessageSpendLimitOverrideCommand = async (input, context) => {
164
170
  const headers = sharedHeaders("DeleteTextMessageSpendLimitOverride");
165
171
  let body;
@@ -316,6 +322,12 @@ export const se_GetProtectConfigurationCountryRuleSetCommand = async (input, con
316
322
  body = JSON.stringify(_json(input));
317
323
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
324
  };
325
+ export const se_GetResourcePolicyCommand = async (input, context) => {
326
+ const headers = sharedHeaders("GetResourcePolicy");
327
+ let body;
328
+ body = JSON.stringify(_json(input));
329
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
+ };
319
331
  export const se_ListPoolOriginationIdentitiesCommand = async (input, context) => {
320
332
  const headers = sharedHeaders("ListPoolOriginationIdentities");
321
333
  let body;
@@ -352,6 +364,12 @@ export const se_PutRegistrationFieldValueCommand = async (input, context) => {
352
364
  body = JSON.stringify(_json(input));
353
365
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
366
  };
367
+ export const se_PutResourcePolicyCommand = async (input, context) => {
368
+ const headers = sharedHeaders("PutResourcePolicy");
369
+ let body;
370
+ body = JSON.stringify(_json(input));
371
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
+ };
355
373
  export const se_ReleasePhoneNumberCommand = async (input, context) => {
356
374
  const headers = sharedHeaders("ReleasePhoneNumber");
357
375
  let body;
@@ -834,6 +852,19 @@ export const de_DeleteRegistrationFieldValueCommand = async (output, context) =>
834
852
  };
835
853
  return response;
836
854
  };
855
+ export const de_DeleteResourcePolicyCommand = async (output, context) => {
856
+ if (output.statusCode >= 300) {
857
+ return de_CommandError(output, context);
858
+ }
859
+ const data = await parseBody(output.body, context);
860
+ let contents = {};
861
+ contents = de_DeleteResourcePolicyResult(data, context);
862
+ const response = {
863
+ $metadata: deserializeMetadata(output),
864
+ ...contents,
865
+ };
866
+ return response;
867
+ };
837
868
  export const de_DeleteTextMessageSpendLimitOverrideCommand = async (output, context) => {
838
869
  if (output.statusCode >= 300) {
839
870
  return de_CommandError(output, context);
@@ -1172,6 +1203,19 @@ export const de_GetProtectConfigurationCountryRuleSetCommand = async (output, co
1172
1203
  };
1173
1204
  return response;
1174
1205
  };
1206
+ export const de_GetResourcePolicyCommand = async (output, context) => {
1207
+ if (output.statusCode >= 300) {
1208
+ return de_CommandError(output, context);
1209
+ }
1210
+ const data = await parseBody(output.body, context);
1211
+ let contents = {};
1212
+ contents = de_GetResourcePolicyResult(data, context);
1213
+ const response = {
1214
+ $metadata: deserializeMetadata(output),
1215
+ ...contents,
1216
+ };
1217
+ return response;
1218
+ };
1175
1219
  export const de_ListPoolOriginationIdentitiesCommand = async (output, context) => {
1176
1220
  if (output.statusCode >= 300) {
1177
1221
  return de_CommandError(output, context);
@@ -1250,6 +1294,19 @@ export const de_PutRegistrationFieldValueCommand = async (output, context) => {
1250
1294
  };
1251
1295
  return response;
1252
1296
  };
1297
+ export const de_PutResourcePolicyCommand = async (output, context) => {
1298
+ if (output.statusCode >= 300) {
1299
+ return de_CommandError(output, context);
1300
+ }
1301
+ const data = await parseBody(output.body, context);
1302
+ let contents = {};
1303
+ contents = de_PutResourcePolicyResult(data, context);
1304
+ const response = {
1305
+ $metadata: deserializeMetadata(output),
1306
+ ...contents,
1307
+ };
1308
+ return response;
1309
+ };
1253
1310
  export const de_ReleasePhoneNumberCommand = async (output, context) => {
1254
1311
  if (output.statusCode >= 300) {
1255
1312
  return de_CommandError(output, context);
@@ -1940,6 +1997,13 @@ const de_DeleteRegistrationResult = (output, context) => {
1940
1997
  RegistrationType: __expectString,
1941
1998
  });
1942
1999
  };
2000
+ const de_DeleteResourcePolicyResult = (output, context) => {
2001
+ return take(output, {
2002
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2003
+ Policy: __expectString,
2004
+ ResourceArn: __expectString,
2005
+ });
2006
+ };
1943
2007
  const de_DeleteVerifiedDestinationNumberResult = (output, context) => {
1944
2008
  return take(output, {
1945
2009
  CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -2021,6 +2085,13 @@ const de_DiscardRegistrationVersionResult = (output, context) => {
2021
2085
  VersionNumber: __expectLong,
2022
2086
  });
2023
2087
  };
2088
+ const de_GetResourcePolicyResult = (output, context) => {
2089
+ return take(output, {
2090
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2091
+ Policy: __expectString,
2092
+ ResourceArn: __expectString,
2093
+ });
2094
+ };
2024
2095
  const de_OptedOutNumberInformation = (output, context) => {
2025
2096
  return take(output, {
2026
2097
  EndUserOptedOut: __expectBoolean,
@@ -2131,6 +2202,13 @@ const de_PutOptedOutNumberResult = (output, context) => {
2131
2202
  OptedOutTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2132
2203
  });
2133
2204
  };
2205
+ const de_PutResourcePolicyResult = (output, context) => {
2206
+ return take(output, {
2207
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2208
+ Policy: __expectString,
2209
+ ResourceArn: __expectString,
2210
+ });
2211
+ };
2134
2212
  const de_RegistrationAttachmentsInformation = (output, context) => {
2135
2213
  return take(output, {
2136
2214
  AttachmentStatus: __expectString,