diff --git a/clients/client-pinpoint-sms-voice-v2/README.md b/clients/client-pinpoint-sms-voice-v2/README.md index 8e5ac0a5d3c0..b83935265039 100644 --- a/clients/client-pinpoint-sms-voice-v2/README.md +++ b/clients/client-pinpoint-sms-voice-v2/README.md @@ -12,12 +12,11 @@ resources, including supported HTTP methods, parameters, and schemas.

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with your recipients across multiple messaging channels. The Amazon Pinpoint SMS and Voice, version 2 API provides programmatic access to options that are unique to the SMS -and voice channels and supplements the resources provided by the Amazon Pinpoint -API.

-

If you're new to Amazon Pinpoint, it's also helpful to review the -Amazon Pinpoint Developer Guide. The Amazon Pinpoint +and voice channels. Amazon Pinpoint SMS and Voice, version 2 resources such as phone numbers, sender IDs, and opt-out lists can be used by the Amazon Pinpoint API.

+

If you're new to Amazon Pinpoint SMS, it's also helpful to review the +Amazon Pinpoint SMS User Guide. The Amazon Pinpoint Developer Guide provides tutorials, code samples, and procedures that -demonstrate how to use Amazon Pinpoint features programmatically and how to integrate +demonstrate how to use Amazon Pinpoint SMS features programmatically and how to integrate Amazon Pinpoint functionality into mobile apps and other types of applications. The guide also provides key information, such as Amazon Pinpoint integration with other Amazon Web Services services, and the quotas that apply to use of the @@ -244,6 +243,14 @@ AssociateOriginationIdentity [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/AssociateOriginationIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/AssociateOriginationIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/AssociateOriginationIdentityCommandOutput/) + +

+ +AssociateProtectConfiguration + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/AssociateProtectConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/AssociateProtectConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/AssociateProtectConfigurationCommandOutput/) +
@@ -276,6 +283,14 @@ CreatePool [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/CreatePoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/CreatePoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/CreatePoolCommandOutput/) +
+
+ +CreateProtectConfiguration + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/CreateProtectConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/CreateProtectConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/CreateProtectConfigurationCommandOutput/) +
@@ -316,6 +331,14 @@ CreateVerifiedDestinationNumber [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/CreateVerifiedDestinationNumberCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/CreateVerifiedDestinationNumberCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/CreateVerifiedDestinationNumberCommandOutput/) +
+
+ +DeleteAccountDefaultProtectConfiguration + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DeleteAccountDefaultProtectConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteAccountDefaultProtectConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteAccountDefaultProtectConfigurationCommandOutput/) +
@@ -356,6 +379,14 @@ DeleteKeyword [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DeleteKeywordCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteKeywordCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteKeywordCommandOutput/) +
+
+ +DeleteMediaMessageSpendLimitOverride + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DeleteMediaMessageSpendLimitOverrideCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteMediaMessageSpendLimitOverrideCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteMediaMessageSpendLimitOverrideCommandOutput/) +
@@ -380,6 +411,14 @@ DeletePool [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DeletePoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeletePoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeletePoolCommandOutput/) +
+
+ +DeleteProtectConfiguration + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DeleteProtectConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteProtectConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteProtectConfigurationCommandOutput/) +
@@ -492,6 +531,14 @@ DescribePools [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DescribePoolsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DescribePoolsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DescribePoolsCommandOutput/) +
+
+ +DescribeProtectConfigurations + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DescribeProtectConfigurationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DescribeProtectConfigurationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DescribeProtectConfigurationsCommandOutput/) +
@@ -580,6 +627,14 @@ DisassociateOriginationIdentity [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DisassociateOriginationIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DisassociateOriginationIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DisassociateOriginationIdentityCommandOutput/) +
+
+ +DisassociateProtectConfiguration + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DisassociateProtectConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DisassociateProtectConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DisassociateProtectConfigurationCommandOutput/) +
@@ -588,6 +643,14 @@ DiscardRegistrationVersion [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DiscardRegistrationVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DiscardRegistrationVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DiscardRegistrationVersionCommandOutput/) +
+
+ +GetProtectConfigurationCountryRuleSet + + +[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/) +
@@ -676,6 +739,14 @@ SendDestinationNumberVerificationCode [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/SendDestinationNumberVerificationCodeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SendDestinationNumberVerificationCodeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SendDestinationNumberVerificationCodeCommandOutput/) +
+
+ +SendMediaMessage + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/SendMediaMessageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SendMediaMessageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SendMediaMessageCommandOutput/) +
@@ -692,6 +763,14 @@ SendVoiceMessage [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/SendVoiceMessageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SendVoiceMessageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SendVoiceMessageCommandOutput/) +
+
+ +SetAccountDefaultProtectConfiguration + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/SetAccountDefaultProtectConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SetAccountDefaultProtectConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SetAccountDefaultProtectConfigurationCommandOutput/) +
@@ -708,6 +787,14 @@ SetDefaultSenderId [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/SetDefaultSenderIdCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SetDefaultSenderIdCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SetDefaultSenderIdCommandOutput/) +
+
+ +SetMediaMessageSpendLimitOverride + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/SetMediaMessageSpendLimitOverrideCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SetMediaMessageSpendLimitOverrideCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SetMediaMessageSpendLimitOverrideCommandOutput/) +
@@ -772,6 +859,22 @@ UpdatePool [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/UpdatePoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/UpdatePoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/UpdatePoolCommandOutput/) +
+
+ +UpdateProtectConfiguration + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/UpdateProtectConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/UpdateProtectConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/UpdateProtectConfigurationCommandOutput/) + +
+
+ +UpdateProtectConfigurationCountryRuleSet + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/UpdateProtectConfigurationCountryRuleSetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/UpdateProtectConfigurationCountryRuleSetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/UpdateProtectConfigurationCountryRuleSetCommandOutput/) +
diff --git a/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2.ts b/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2.ts index f954848e16f7..01f63019bf59 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2.ts @@ -7,6 +7,11 @@ import { AssociateOriginationIdentityCommandInput, AssociateOriginationIdentityCommandOutput, } from "./commands/AssociateOriginationIdentityCommand"; +import { + AssociateProtectConfigurationCommand, + AssociateProtectConfigurationCommandInput, + AssociateProtectConfigurationCommandOutput, +} from "./commands/AssociateProtectConfigurationCommand"; import { CreateConfigurationSetCommand, CreateConfigurationSetCommandInput, @@ -23,6 +28,11 @@ import { CreateOptOutListCommandOutput, } from "./commands/CreateOptOutListCommand"; import { CreatePoolCommand, CreatePoolCommandInput, CreatePoolCommandOutput } from "./commands/CreatePoolCommand"; +import { + CreateProtectConfigurationCommand, + CreateProtectConfigurationCommandInput, + CreateProtectConfigurationCommandOutput, +} from "./commands/CreateProtectConfigurationCommand"; import { CreateRegistrationAssociationCommand, CreateRegistrationAssociationCommandInput, @@ -48,6 +58,11 @@ import { CreateVerifiedDestinationNumberCommandInput, CreateVerifiedDestinationNumberCommandOutput, } from "./commands/CreateVerifiedDestinationNumberCommand"; +import { + DeleteAccountDefaultProtectConfigurationCommand, + DeleteAccountDefaultProtectConfigurationCommandInput, + DeleteAccountDefaultProtectConfigurationCommandOutput, +} from "./commands/DeleteAccountDefaultProtectConfigurationCommand"; import { DeleteConfigurationSetCommand, DeleteConfigurationSetCommandInput, @@ -73,6 +88,11 @@ import { DeleteKeywordCommandInput, DeleteKeywordCommandOutput, } from "./commands/DeleteKeywordCommand"; +import { + DeleteMediaMessageSpendLimitOverrideCommand, + DeleteMediaMessageSpendLimitOverrideCommandInput, + DeleteMediaMessageSpendLimitOverrideCommandOutput, +} from "./commands/DeleteMediaMessageSpendLimitOverrideCommand"; import { DeleteOptedOutNumberCommand, DeleteOptedOutNumberCommandInput, @@ -84,6 +104,11 @@ import { DeleteOptOutListCommandOutput, } from "./commands/DeleteOptOutListCommand"; import { DeletePoolCommand, DeletePoolCommandInput, DeletePoolCommandOutput } from "./commands/DeletePoolCommand"; +import { + DeleteProtectConfigurationCommand, + DeleteProtectConfigurationCommandInput, + DeleteProtectConfigurationCommandOutput, +} from "./commands/DeleteProtectConfigurationCommand"; import { DeleteRegistrationAttachmentCommand, DeleteRegistrationAttachmentCommandInput, @@ -154,6 +179,11 @@ import { DescribePoolsCommandInput, DescribePoolsCommandOutput, } from "./commands/DescribePoolsCommand"; +import { + DescribeProtectConfigurationsCommand, + DescribeProtectConfigurationsCommandInput, + DescribeProtectConfigurationsCommandOutput, +} from "./commands/DescribeProtectConfigurationsCommand"; import { DescribeRegistrationAttachmentsCommand, DescribeRegistrationAttachmentsCommandInput, @@ -209,11 +239,21 @@ import { DisassociateOriginationIdentityCommandInput, DisassociateOriginationIdentityCommandOutput, } from "./commands/DisassociateOriginationIdentityCommand"; +import { + DisassociateProtectConfigurationCommand, + DisassociateProtectConfigurationCommandInput, + DisassociateProtectConfigurationCommandOutput, +} from "./commands/DisassociateProtectConfigurationCommand"; import { DiscardRegistrationVersionCommand, DiscardRegistrationVersionCommandInput, DiscardRegistrationVersionCommandOutput, } from "./commands/DiscardRegistrationVersionCommand"; +import { + GetProtectConfigurationCountryRuleSetCommand, + GetProtectConfigurationCountryRuleSetCommandInput, + GetProtectConfigurationCountryRuleSetCommandOutput, +} from "./commands/GetProtectConfigurationCountryRuleSetCommand"; import { ListPoolOriginationIdentitiesCommand, ListPoolOriginationIdentitiesCommandInput, @@ -265,6 +305,11 @@ import { SendDestinationNumberVerificationCodeCommandInput, SendDestinationNumberVerificationCodeCommandOutput, } from "./commands/SendDestinationNumberVerificationCodeCommand"; +import { + SendMediaMessageCommand, + SendMediaMessageCommandInput, + SendMediaMessageCommandOutput, +} from "./commands/SendMediaMessageCommand"; import { SendTextMessageCommand, SendTextMessageCommandInput, @@ -275,6 +320,11 @@ import { SendVoiceMessageCommandInput, SendVoiceMessageCommandOutput, } from "./commands/SendVoiceMessageCommand"; +import { + SetAccountDefaultProtectConfigurationCommand, + SetAccountDefaultProtectConfigurationCommandInput, + SetAccountDefaultProtectConfigurationCommandOutput, +} from "./commands/SetAccountDefaultProtectConfigurationCommand"; import { SetDefaultMessageTypeCommand, SetDefaultMessageTypeCommandInput, @@ -285,6 +335,11 @@ import { SetDefaultSenderIdCommandInput, SetDefaultSenderIdCommandOutput, } from "./commands/SetDefaultSenderIdCommand"; +import { + SetMediaMessageSpendLimitOverrideCommand, + SetMediaMessageSpendLimitOverrideCommandInput, + SetMediaMessageSpendLimitOverrideCommandOutput, +} from "./commands/SetMediaMessageSpendLimitOverrideCommand"; import { SetTextMessageSpendLimitOverrideCommand, SetTextMessageSpendLimitOverrideCommandInput, @@ -317,6 +372,16 @@ import { UpdatePhoneNumberCommandOutput, } from "./commands/UpdatePhoneNumberCommand"; import { UpdatePoolCommand, UpdatePoolCommandInput, UpdatePoolCommandOutput } from "./commands/UpdatePoolCommand"; +import { + UpdateProtectConfigurationCommand, + UpdateProtectConfigurationCommandInput, + UpdateProtectConfigurationCommandOutput, +} from "./commands/UpdateProtectConfigurationCommand"; +import { + UpdateProtectConfigurationCountryRuleSetCommand, + UpdateProtectConfigurationCountryRuleSetCommandInput, + UpdateProtectConfigurationCountryRuleSetCommandOutput, +} from "./commands/UpdateProtectConfigurationCountryRuleSetCommand"; import { UpdateSenderIdCommand, UpdateSenderIdCommandInput, @@ -331,23 +396,28 @@ import { PinpointSMSVoiceV2Client, PinpointSMSVoiceV2ClientConfig } from "./Pinp const commands = { AssociateOriginationIdentityCommand, + AssociateProtectConfigurationCommand, CreateConfigurationSetCommand, CreateEventDestinationCommand, CreateOptOutListCommand, CreatePoolCommand, + CreateProtectConfigurationCommand, CreateRegistrationCommand, CreateRegistrationAssociationCommand, CreateRegistrationAttachmentCommand, CreateRegistrationVersionCommand, CreateVerifiedDestinationNumberCommand, + DeleteAccountDefaultProtectConfigurationCommand, DeleteConfigurationSetCommand, DeleteDefaultMessageTypeCommand, DeleteDefaultSenderIdCommand, DeleteEventDestinationCommand, DeleteKeywordCommand, + DeleteMediaMessageSpendLimitOverrideCommand, DeleteOptedOutNumberCommand, DeleteOptOutListCommand, DeletePoolCommand, + DeleteProtectConfigurationCommand, DeleteRegistrationCommand, DeleteRegistrationAttachmentCommand, DeleteRegistrationFieldValueCommand, @@ -362,6 +432,7 @@ const commands = { DescribeOptOutListsCommand, DescribePhoneNumbersCommand, DescribePoolsCommand, + DescribeProtectConfigurationsCommand, DescribeRegistrationAttachmentsCommand, DescribeRegistrationFieldDefinitionsCommand, DescribeRegistrationFieldValuesCommand, @@ -373,7 +444,9 @@ const commands = { DescribeSpendLimitsCommand, DescribeVerifiedDestinationNumbersCommand, DisassociateOriginationIdentityCommand, + DisassociateProtectConfigurationCommand, DiscardRegistrationVersionCommand, + GetProtectConfigurationCountryRuleSetCommand, ListPoolOriginationIdentitiesCommand, ListRegistrationAssociationsCommand, ListTagsForResourceCommand, @@ -385,10 +458,13 @@ const commands = { RequestPhoneNumberCommand, RequestSenderIdCommand, SendDestinationNumberVerificationCodeCommand, + SendMediaMessageCommand, SendTextMessageCommand, SendVoiceMessageCommand, + SetAccountDefaultProtectConfigurationCommand, SetDefaultMessageTypeCommand, SetDefaultSenderIdCommand, + SetMediaMessageSpendLimitOverrideCommand, SetTextMessageSpendLimitOverrideCommand, SetVoiceMessageSpendLimitOverrideCommand, SubmitRegistrationVersionCommand, @@ -397,6 +473,8 @@ const commands = { UpdateEventDestinationCommand, UpdatePhoneNumberCommand, UpdatePoolCommand, + UpdateProtectConfigurationCommand, + UpdateProtectConfigurationCountryRuleSetCommand, UpdateSenderIdCommand, VerifyDestinationNumberCommand, }; @@ -419,6 +497,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: AssociateOriginationIdentityCommandOutput) => void ): void; + /** + * @see {@link AssociateProtectConfigurationCommand} + */ + associateProtectConfiguration( + args: AssociateProtectConfigurationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + associateProtectConfiguration( + args: AssociateProtectConfigurationCommandInput, + cb: (err: any, data?: AssociateProtectConfigurationCommandOutput) => void + ): void; + associateProtectConfiguration( + args: AssociateProtectConfigurationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: AssociateProtectConfigurationCommandOutput) => void + ): void; + /** * @see {@link CreateConfigurationSetCommand} */ @@ -481,6 +576,24 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: CreatePoolCommandOutput) => void ): void; + /** + * @see {@link CreateProtectConfigurationCommand} + */ + createProtectConfiguration(): Promise; + createProtectConfiguration( + args: CreateProtectConfigurationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createProtectConfiguration( + args: CreateProtectConfigurationCommandInput, + cb: (err: any, data?: CreateProtectConfigurationCommandOutput) => void + ): void; + createProtectConfiguration( + args: CreateProtectConfigurationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateProtectConfigurationCommandOutput) => void + ): void; + /** * @see {@link CreateRegistrationCommand} */ @@ -567,6 +680,24 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: CreateVerifiedDestinationNumberCommandOutput) => void ): void; + /** + * @see {@link DeleteAccountDefaultProtectConfigurationCommand} + */ + deleteAccountDefaultProtectConfiguration(): Promise; + deleteAccountDefaultProtectConfiguration( + args: DeleteAccountDefaultProtectConfigurationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteAccountDefaultProtectConfiguration( + args: DeleteAccountDefaultProtectConfigurationCommandInput, + cb: (err: any, data?: DeleteAccountDefaultProtectConfigurationCommandOutput) => void + ): void; + deleteAccountDefaultProtectConfiguration( + args: DeleteAccountDefaultProtectConfigurationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteAccountDefaultProtectConfigurationCommandOutput) => void + ): void; + /** * @see {@link DeleteConfigurationSetCommand} */ @@ -646,6 +777,24 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DeleteKeywordCommandOutput) => void ): void; + /** + * @see {@link DeleteMediaMessageSpendLimitOverrideCommand} + */ + deleteMediaMessageSpendLimitOverride(): Promise; + deleteMediaMessageSpendLimitOverride( + args: DeleteMediaMessageSpendLimitOverrideCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteMediaMessageSpendLimitOverride( + args: DeleteMediaMessageSpendLimitOverrideCommandInput, + cb: (err: any, data?: DeleteMediaMessageSpendLimitOverrideCommandOutput) => void + ): void; + deleteMediaMessageSpendLimitOverride( + args: DeleteMediaMessageSpendLimitOverrideCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteMediaMessageSpendLimitOverrideCommandOutput) => void + ): void; + /** * @see {@link DeleteOptedOutNumberCommand} */ @@ -691,6 +840,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DeletePoolCommandOutput) => void ): void; + /** + * @see {@link DeleteProtectConfigurationCommand} + */ + deleteProtectConfiguration( + args: DeleteProtectConfigurationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteProtectConfiguration( + args: DeleteProtectConfigurationCommandInput, + cb: (err: any, data?: DeleteProtectConfigurationCommandOutput) => void + ): void; + deleteProtectConfiguration( + args: DeleteProtectConfigurationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteProtectConfigurationCommandOutput) => void + ): void; + /** * @see {@link DeleteRegistrationCommand} */ @@ -931,6 +1097,24 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DescribePoolsCommandOutput) => void ): void; + /** + * @see {@link DescribeProtectConfigurationsCommand} + */ + describeProtectConfigurations(): Promise; + describeProtectConfigurations( + args: DescribeProtectConfigurationsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeProtectConfigurations( + args: DescribeProtectConfigurationsCommandInput, + cb: (err: any, data?: DescribeProtectConfigurationsCommandOutput) => void + ): void; + describeProtectConfigurations( + args: DescribeProtectConfigurationsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeProtectConfigurationsCommandOutput) => void + ): void; + /** * @see {@link DescribeRegistrationAttachmentsCommand} */ @@ -1124,6 +1308,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DisassociateOriginationIdentityCommandOutput) => void ): void; + /** + * @see {@link DisassociateProtectConfigurationCommand} + */ + disassociateProtectConfiguration( + args: DisassociateProtectConfigurationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + disassociateProtectConfiguration( + args: DisassociateProtectConfigurationCommandInput, + cb: (err: any, data?: DisassociateProtectConfigurationCommandOutput) => void + ): void; + disassociateProtectConfiguration( + args: DisassociateProtectConfigurationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DisassociateProtectConfigurationCommandOutput) => void + ): void; + /** * @see {@link DiscardRegistrationVersionCommand} */ @@ -1141,6 +1342,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DiscardRegistrationVersionCommandOutput) => void ): void; + /** + * @see {@link GetProtectConfigurationCountryRuleSetCommand} + */ + getProtectConfigurationCountryRuleSet( + args: GetProtectConfigurationCountryRuleSetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getProtectConfigurationCountryRuleSet( + args: GetProtectConfigurationCountryRuleSetCommandInput, + cb: (err: any, data?: GetProtectConfigurationCountryRuleSetCommandOutput) => void + ): void; + getProtectConfigurationCountryRuleSet( + args: GetProtectConfigurationCountryRuleSetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetProtectConfigurationCountryRuleSetCommandOutput) => void + ): void; + /** * @see {@link ListPoolOriginationIdentitiesCommand} */ @@ -1316,6 +1534,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: SendDestinationNumberVerificationCodeCommandOutput) => void ): void; + /** + * @see {@link SendMediaMessageCommand} + */ + sendMediaMessage( + args: SendMediaMessageCommandInput, + options?: __HttpHandlerOptions + ): Promise; + sendMediaMessage( + args: SendMediaMessageCommandInput, + cb: (err: any, data?: SendMediaMessageCommandOutput) => void + ): void; + sendMediaMessage( + args: SendMediaMessageCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: SendMediaMessageCommandOutput) => void + ): void; + /** * @see {@link SendTextMessageCommand} */ @@ -1347,6 +1582,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: SendVoiceMessageCommandOutput) => void ): void; + /** + * @see {@link SetAccountDefaultProtectConfigurationCommand} + */ + setAccountDefaultProtectConfiguration( + args: SetAccountDefaultProtectConfigurationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + setAccountDefaultProtectConfiguration( + args: SetAccountDefaultProtectConfigurationCommandInput, + cb: (err: any, data?: SetAccountDefaultProtectConfigurationCommandOutput) => void + ): void; + setAccountDefaultProtectConfiguration( + args: SetAccountDefaultProtectConfigurationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: SetAccountDefaultProtectConfigurationCommandOutput) => void + ): void; + /** * @see {@link SetDefaultMessageTypeCommand} */ @@ -1381,6 +1633,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: SetDefaultSenderIdCommandOutput) => void ): void; + /** + * @see {@link SetMediaMessageSpendLimitOverrideCommand} + */ + setMediaMessageSpendLimitOverride( + args: SetMediaMessageSpendLimitOverrideCommandInput, + options?: __HttpHandlerOptions + ): Promise; + setMediaMessageSpendLimitOverride( + args: SetMediaMessageSpendLimitOverrideCommandInput, + cb: (err: any, data?: SetMediaMessageSpendLimitOverrideCommandOutput) => void + ): void; + setMediaMessageSpendLimitOverride( + args: SetMediaMessageSpendLimitOverrideCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: SetMediaMessageSpendLimitOverrideCommandOutput) => void + ): void; + /** * @see {@link SetTextMessageSpendLimitOverrideCommand} */ @@ -1499,6 +1768,40 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: UpdatePoolCommandOutput) => void ): void; + /** + * @see {@link UpdateProtectConfigurationCommand} + */ + updateProtectConfiguration( + args: UpdateProtectConfigurationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateProtectConfiguration( + args: UpdateProtectConfigurationCommandInput, + cb: (err: any, data?: UpdateProtectConfigurationCommandOutput) => void + ): void; + updateProtectConfiguration( + args: UpdateProtectConfigurationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateProtectConfigurationCommandOutput) => void + ): void; + + /** + * @see {@link UpdateProtectConfigurationCountryRuleSetCommand} + */ + updateProtectConfigurationCountryRuleSet( + args: UpdateProtectConfigurationCountryRuleSetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateProtectConfigurationCountryRuleSet( + args: UpdateProtectConfigurationCountryRuleSetCommandInput, + cb: (err: any, data?: UpdateProtectConfigurationCountryRuleSetCommandOutput) => void + ): void; + updateProtectConfigurationCountryRuleSet( + args: UpdateProtectConfigurationCountryRuleSetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateProtectConfigurationCountryRuleSetCommandOutput) => void + ): void; + /** * @see {@link UpdateSenderIdCommand} */ @@ -1538,12 +1841,11 @@ export interface PinpointSMSVoiceV2 { *

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with * your recipients across multiple messaging channels. The Amazon Pinpoint SMS and * Voice, version 2 API provides programmatic access to options that are unique to the SMS - * and voice channels and supplements the resources provided by the Amazon Pinpoint - * API.

- *

If you're new to Amazon Pinpoint, it's also helpful to review the - * Amazon Pinpoint Developer Guide. The Amazon Pinpoint + * and voice channels. Amazon Pinpoint SMS and Voice, version 2 resources such as phone numbers, sender IDs, and opt-out lists can be used by the Amazon Pinpoint API.

+ *

If you're new to Amazon Pinpoint SMS, it's also helpful to review the + * Amazon Pinpoint SMS User Guide. The Amazon Pinpoint * Developer Guide provides tutorials, code samples, and procedures that - * demonstrate how to use Amazon Pinpoint features programmatically and how to integrate + * demonstrate how to use Amazon Pinpoint SMS features programmatically and how to integrate * Amazon Pinpoint functionality into mobile apps and other types of applications. * The guide also provides key information, such as Amazon Pinpoint integration with * other Amazon Web Services services, and the quotas that apply to use of the diff --git a/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2Client.ts b/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2Client.ts index 65f9a7055945..f52b78a98f33 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2Client.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2Client.ts @@ -57,6 +57,10 @@ import { AssociateOriginationIdentityCommandInput, AssociateOriginationIdentityCommandOutput, } from "./commands/AssociateOriginationIdentityCommand"; +import { + AssociateProtectConfigurationCommandInput, + AssociateProtectConfigurationCommandOutput, +} from "./commands/AssociateProtectConfigurationCommand"; import { CreateConfigurationSetCommandInput, CreateConfigurationSetCommandOutput, @@ -67,6 +71,10 @@ import { } from "./commands/CreateEventDestinationCommand"; import { CreateOptOutListCommandInput, CreateOptOutListCommandOutput } from "./commands/CreateOptOutListCommand"; import { CreatePoolCommandInput, CreatePoolCommandOutput } from "./commands/CreatePoolCommand"; +import { + CreateProtectConfigurationCommandInput, + CreateProtectConfigurationCommandOutput, +} from "./commands/CreateProtectConfigurationCommand"; import { CreateRegistrationAssociationCommandInput, CreateRegistrationAssociationCommandOutput, @@ -84,6 +92,10 @@ import { CreateVerifiedDestinationNumberCommandInput, CreateVerifiedDestinationNumberCommandOutput, } from "./commands/CreateVerifiedDestinationNumberCommand"; +import { + DeleteAccountDefaultProtectConfigurationCommandInput, + DeleteAccountDefaultProtectConfigurationCommandOutput, +} from "./commands/DeleteAccountDefaultProtectConfigurationCommand"; import { DeleteConfigurationSetCommandInput, DeleteConfigurationSetCommandOutput, @@ -101,12 +113,20 @@ import { DeleteEventDestinationCommandOutput, } from "./commands/DeleteEventDestinationCommand"; import { DeleteKeywordCommandInput, DeleteKeywordCommandOutput } from "./commands/DeleteKeywordCommand"; +import { + DeleteMediaMessageSpendLimitOverrideCommandInput, + DeleteMediaMessageSpendLimitOverrideCommandOutput, +} from "./commands/DeleteMediaMessageSpendLimitOverrideCommand"; import { DeleteOptedOutNumberCommandInput, DeleteOptedOutNumberCommandOutput, } from "./commands/DeleteOptedOutNumberCommand"; import { DeleteOptOutListCommandInput, DeleteOptOutListCommandOutput } from "./commands/DeleteOptOutListCommand"; import { DeletePoolCommandInput, DeletePoolCommandOutput } from "./commands/DeletePoolCommand"; +import { + DeleteProtectConfigurationCommandInput, + DeleteProtectConfigurationCommandOutput, +} from "./commands/DeleteProtectConfigurationCommand"; import { DeleteRegistrationAttachmentCommandInput, DeleteRegistrationAttachmentCommandOutput, @@ -154,6 +174,10 @@ import { DescribePhoneNumbersCommandOutput, } from "./commands/DescribePhoneNumbersCommand"; import { DescribePoolsCommandInput, DescribePoolsCommandOutput } from "./commands/DescribePoolsCommand"; +import { + DescribeProtectConfigurationsCommandInput, + DescribeProtectConfigurationsCommandOutput, +} from "./commands/DescribeProtectConfigurationsCommand"; import { DescribeRegistrationAttachmentsCommandInput, DescribeRegistrationAttachmentsCommandOutput, @@ -195,10 +219,18 @@ import { DisassociateOriginationIdentityCommandInput, DisassociateOriginationIdentityCommandOutput, } from "./commands/DisassociateOriginationIdentityCommand"; +import { + DisassociateProtectConfigurationCommandInput, + DisassociateProtectConfigurationCommandOutput, +} from "./commands/DisassociateProtectConfigurationCommand"; import { DiscardRegistrationVersionCommandInput, DiscardRegistrationVersionCommandOutput, } from "./commands/DiscardRegistrationVersionCommand"; +import { + GetProtectConfigurationCountryRuleSetCommandInput, + GetProtectConfigurationCountryRuleSetCommandOutput, +} from "./commands/GetProtectConfigurationCountryRuleSetCommand"; import { ListPoolOriginationIdentitiesCommandInput, ListPoolOriginationIdentitiesCommandOutput, @@ -225,13 +257,22 @@ import { SendDestinationNumberVerificationCodeCommandInput, SendDestinationNumberVerificationCodeCommandOutput, } from "./commands/SendDestinationNumberVerificationCodeCommand"; +import { SendMediaMessageCommandInput, SendMediaMessageCommandOutput } from "./commands/SendMediaMessageCommand"; import { SendTextMessageCommandInput, SendTextMessageCommandOutput } from "./commands/SendTextMessageCommand"; import { SendVoiceMessageCommandInput, SendVoiceMessageCommandOutput } from "./commands/SendVoiceMessageCommand"; +import { + SetAccountDefaultProtectConfigurationCommandInput, + SetAccountDefaultProtectConfigurationCommandOutput, +} from "./commands/SetAccountDefaultProtectConfigurationCommand"; import { SetDefaultMessageTypeCommandInput, SetDefaultMessageTypeCommandOutput, } from "./commands/SetDefaultMessageTypeCommand"; import { SetDefaultSenderIdCommandInput, SetDefaultSenderIdCommandOutput } from "./commands/SetDefaultSenderIdCommand"; +import { + SetMediaMessageSpendLimitOverrideCommandInput, + SetMediaMessageSpendLimitOverrideCommandOutput, +} from "./commands/SetMediaMessageSpendLimitOverrideCommand"; import { SetTextMessageSpendLimitOverrideCommandInput, SetTextMessageSpendLimitOverrideCommandOutput, @@ -252,6 +293,14 @@ import { } from "./commands/UpdateEventDestinationCommand"; import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand"; import { UpdatePoolCommandInput, UpdatePoolCommandOutput } from "./commands/UpdatePoolCommand"; +import { + UpdateProtectConfigurationCommandInput, + UpdateProtectConfigurationCommandOutput, +} from "./commands/UpdateProtectConfigurationCommand"; +import { + UpdateProtectConfigurationCountryRuleSetCommandInput, + UpdateProtectConfigurationCountryRuleSetCommandOutput, +} from "./commands/UpdateProtectConfigurationCountryRuleSetCommand"; import { UpdateSenderIdCommandInput, UpdateSenderIdCommandOutput } from "./commands/UpdateSenderIdCommand"; import { VerifyDestinationNumberCommandInput, @@ -273,23 +322,28 @@ export { __Client }; */ export type ServiceInputTypes = | AssociateOriginationIdentityCommandInput + | AssociateProtectConfigurationCommandInput | CreateConfigurationSetCommandInput | CreateEventDestinationCommandInput | CreateOptOutListCommandInput | CreatePoolCommandInput + | CreateProtectConfigurationCommandInput | CreateRegistrationAssociationCommandInput | CreateRegistrationAttachmentCommandInput | CreateRegistrationCommandInput | CreateRegistrationVersionCommandInput | CreateVerifiedDestinationNumberCommandInput + | DeleteAccountDefaultProtectConfigurationCommandInput | DeleteConfigurationSetCommandInput | DeleteDefaultMessageTypeCommandInput | DeleteDefaultSenderIdCommandInput | DeleteEventDestinationCommandInput | DeleteKeywordCommandInput + | DeleteMediaMessageSpendLimitOverrideCommandInput | DeleteOptOutListCommandInput | DeleteOptedOutNumberCommandInput | DeletePoolCommandInput + | DeleteProtectConfigurationCommandInput | DeleteRegistrationAttachmentCommandInput | DeleteRegistrationCommandInput | DeleteRegistrationFieldValueCommandInput @@ -304,6 +358,7 @@ export type ServiceInputTypes = | DescribeOptedOutNumbersCommandInput | DescribePhoneNumbersCommandInput | DescribePoolsCommandInput + | DescribeProtectConfigurationsCommandInput | DescribeRegistrationAttachmentsCommandInput | DescribeRegistrationFieldDefinitionsCommandInput | DescribeRegistrationFieldValuesCommandInput @@ -315,7 +370,9 @@ export type ServiceInputTypes = | DescribeSpendLimitsCommandInput | DescribeVerifiedDestinationNumbersCommandInput | DisassociateOriginationIdentityCommandInput + | DisassociateProtectConfigurationCommandInput | DiscardRegistrationVersionCommandInput + | GetProtectConfigurationCountryRuleSetCommandInput | ListPoolOriginationIdentitiesCommandInput | ListRegistrationAssociationsCommandInput | ListTagsForResourceCommandInput @@ -327,10 +384,13 @@ export type ServiceInputTypes = | RequestPhoneNumberCommandInput | RequestSenderIdCommandInput | SendDestinationNumberVerificationCodeCommandInput + | SendMediaMessageCommandInput | SendTextMessageCommandInput | SendVoiceMessageCommandInput + | SetAccountDefaultProtectConfigurationCommandInput | SetDefaultMessageTypeCommandInput | SetDefaultSenderIdCommandInput + | SetMediaMessageSpendLimitOverrideCommandInput | SetTextMessageSpendLimitOverrideCommandInput | SetVoiceMessageSpendLimitOverrideCommandInput | SubmitRegistrationVersionCommandInput @@ -339,6 +399,8 @@ export type ServiceInputTypes = | UpdateEventDestinationCommandInput | UpdatePhoneNumberCommandInput | UpdatePoolCommandInput + | UpdateProtectConfigurationCommandInput + | UpdateProtectConfigurationCountryRuleSetCommandInput | UpdateSenderIdCommandInput | VerifyDestinationNumberCommandInput; @@ -347,23 +409,28 @@ export type ServiceInputTypes = */ export type ServiceOutputTypes = | AssociateOriginationIdentityCommandOutput + | AssociateProtectConfigurationCommandOutput | CreateConfigurationSetCommandOutput | CreateEventDestinationCommandOutput | CreateOptOutListCommandOutput | CreatePoolCommandOutput + | CreateProtectConfigurationCommandOutput | CreateRegistrationAssociationCommandOutput | CreateRegistrationAttachmentCommandOutput | CreateRegistrationCommandOutput | CreateRegistrationVersionCommandOutput | CreateVerifiedDestinationNumberCommandOutput + | DeleteAccountDefaultProtectConfigurationCommandOutput | DeleteConfigurationSetCommandOutput | DeleteDefaultMessageTypeCommandOutput | DeleteDefaultSenderIdCommandOutput | DeleteEventDestinationCommandOutput | DeleteKeywordCommandOutput + | DeleteMediaMessageSpendLimitOverrideCommandOutput | DeleteOptOutListCommandOutput | DeleteOptedOutNumberCommandOutput | DeletePoolCommandOutput + | DeleteProtectConfigurationCommandOutput | DeleteRegistrationAttachmentCommandOutput | DeleteRegistrationCommandOutput | DeleteRegistrationFieldValueCommandOutput @@ -378,6 +445,7 @@ export type ServiceOutputTypes = | DescribeOptedOutNumbersCommandOutput | DescribePhoneNumbersCommandOutput | DescribePoolsCommandOutput + | DescribeProtectConfigurationsCommandOutput | DescribeRegistrationAttachmentsCommandOutput | DescribeRegistrationFieldDefinitionsCommandOutput | DescribeRegistrationFieldValuesCommandOutput @@ -389,7 +457,9 @@ export type ServiceOutputTypes = | DescribeSpendLimitsCommandOutput | DescribeVerifiedDestinationNumbersCommandOutput | DisassociateOriginationIdentityCommandOutput + | DisassociateProtectConfigurationCommandOutput | DiscardRegistrationVersionCommandOutput + | GetProtectConfigurationCountryRuleSetCommandOutput | ListPoolOriginationIdentitiesCommandOutput | ListRegistrationAssociationsCommandOutput | ListTagsForResourceCommandOutput @@ -401,10 +471,13 @@ export type ServiceOutputTypes = | RequestPhoneNumberCommandOutput | RequestSenderIdCommandOutput | SendDestinationNumberVerificationCodeCommandOutput + | SendMediaMessageCommandOutput | SendTextMessageCommandOutput | SendVoiceMessageCommandOutput + | SetAccountDefaultProtectConfigurationCommandOutput | SetDefaultMessageTypeCommandOutput | SetDefaultSenderIdCommandOutput + | SetMediaMessageSpendLimitOverrideCommandOutput | SetTextMessageSpendLimitOverrideCommandOutput | SetVoiceMessageSpendLimitOverrideCommandOutput | SubmitRegistrationVersionCommandOutput @@ -413,6 +486,8 @@ export type ServiceOutputTypes = | UpdateEventDestinationCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePoolCommandOutput + | UpdateProtectConfigurationCommandOutput + | UpdateProtectConfigurationCountryRuleSetCommandOutput | UpdateSenderIdCommandOutput | VerifyDestinationNumberCommandOutput; @@ -594,12 +669,11 @@ export interface PinpointSMSVoiceV2ClientResolvedConfig extends PinpointSMSVoice *

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with * your recipients across multiple messaging channels. The Amazon Pinpoint SMS and * Voice, version 2 API provides programmatic access to options that are unique to the SMS - * and voice channels and supplements the resources provided by the Amazon Pinpoint - * API.

- *

If you're new to Amazon Pinpoint, it's also helpful to review the - * Amazon Pinpoint Developer Guide. The Amazon Pinpoint + * and voice channels. Amazon Pinpoint SMS and Voice, version 2 resources such as phone numbers, sender IDs, and opt-out lists can be used by the Amazon Pinpoint API.

+ *

If you're new to Amazon Pinpoint SMS, it's also helpful to review the + * Amazon Pinpoint SMS User Guide. The Amazon Pinpoint * Developer Guide provides tutorials, code samples, and procedures that - * demonstrate how to use Amazon Pinpoint features programmatically and how to integrate + * demonstrate how to use Amazon Pinpoint SMS features programmatically and how to integrate * Amazon Pinpoint functionality into mobile apps and other types of applications. * The guide also provides key information, such as Amazon Pinpoint integration with * other Amazon Web Services services, and the quotas that apply to use of the diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/AssociateProtectConfigurationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/AssociateProtectConfigurationCommand.ts new file mode 100644 index 000000000000..b42c5a3a310d --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/AssociateProtectConfigurationCommand.ts @@ -0,0 +1,121 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { AssociateProtectConfigurationRequest, AssociateProtectConfigurationResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_AssociateProtectConfigurationCommand, + se_AssociateProtectConfigurationCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link AssociateProtectConfigurationCommand}. + */ +export interface AssociateProtectConfigurationCommandInput extends AssociateProtectConfigurationRequest {} +/** + * @public + * + * The output of {@link AssociateProtectConfigurationCommand}. + */ +export interface AssociateProtectConfigurationCommandOutput + extends AssociateProtectConfigurationResult, + __MetadataBearer {} + +/** + *

Associate a protect configuration with a configuration set. This replaces the + * configuration sets current protect configuration. A configuration set can + * only be associated with one protect configuration at a time. A protect configuration can + * be associated with multiple configuration sets.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, AssociateProtectConfigurationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, AssociateProtectConfigurationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // AssociateProtectConfigurationRequest + * ProtectConfigurationId: "STRING_VALUE", // required + * ConfigurationSetName: "STRING_VALUE", // required + * }; + * const command = new AssociateProtectConfigurationCommand(input); + * const response = await client.send(command); + * // { // AssociateProtectConfigurationResult + * // ConfigurationSetArn: "STRING_VALUE", // required + * // ConfigurationSetName: "STRING_VALUE", // required + * // ProtectConfigurationArn: "STRING_VALUE", // required + * // ProtectConfigurationId: "STRING_VALUE", // required + * // }; + * + * ``` + * + * @param AssociateProtectConfigurationCommandInput - {@link AssociateProtectConfigurationCommandInput} + * @returns {@link AssociateProtectConfigurationCommandOutput} + * @see {@link AssociateProtectConfigurationCommandInput} for command's `input` shape. + * @see {@link AssociateProtectConfigurationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class AssociateProtectConfigurationCommand extends $Command + .classBuilder< + AssociateProtectConfigurationCommandInput, + AssociateProtectConfigurationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "AssociateProtectConfiguration", {}) + .n("PinpointSMSVoiceV2Client", "AssociateProtectConfigurationCommand") + .f(void 0, void 0) + .ser(se_AssociateProtectConfigurationCommand) + .de(de_AssociateProtectConfigurationCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateProtectConfigurationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateProtectConfigurationCommand.ts new file mode 100644 index 000000000000..096e6f40bff9 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateProtectConfigurationCommand.ts @@ -0,0 +1,120 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { CreateProtectConfigurationRequest, CreateProtectConfigurationResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_CreateProtectConfigurationCommand, se_CreateProtectConfigurationCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateProtectConfigurationCommand}. + */ +export interface CreateProtectConfigurationCommandInput extends CreateProtectConfigurationRequest {} +/** + * @public + * + * The output of {@link CreateProtectConfigurationCommand}. + */ +export interface CreateProtectConfigurationCommandOutput extends CreateProtectConfigurationResult, __MetadataBearer {} + +/** + *

Create a new protect configuration. By default all country rule sets for each capability are set to ALLOW. Update the country rule sets using UpdateProtectConfigurationCountryRuleSet. A protect configurations name is stored as a Tag with the key set to Name and value as the name of the protect configuration.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, CreateProtectConfigurationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, CreateProtectConfigurationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // CreateProtectConfigurationRequest + * ClientToken: "STRING_VALUE", + * DeletionProtectionEnabled: true || false, + * Tags: [ // TagList + * { // Tag + * Key: "STRING_VALUE", // required + * Value: "STRING_VALUE", // required + * }, + * ], + * }; + * const command = new CreateProtectConfigurationCommand(input); + * const response = await client.send(command); + * // { // CreateProtectConfigurationResult + * // ProtectConfigurationArn: "STRING_VALUE", // required + * // ProtectConfigurationId: "STRING_VALUE", // required + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // AccountDefault: true || false, // required + * // DeletionProtectionEnabled: true || false, // required + * // Tags: [ // TagList + * // { // Tag + * // Key: "STRING_VALUE", // required + * // Value: "STRING_VALUE", // required + * // }, + * // ], + * // }; + * + * ``` + * + * @param CreateProtectConfigurationCommandInput - {@link CreateProtectConfigurationCommandInput} + * @returns {@link CreateProtectConfigurationCommandOutput} + * @see {@link CreateProtectConfigurationCommandInput} for command's `input` shape. + * @see {@link CreateProtectConfigurationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class CreateProtectConfigurationCommand extends $Command + .classBuilder< + CreateProtectConfigurationCommandInput, + CreateProtectConfigurationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "CreateProtectConfiguration", {}) + .n("PinpointSMSVoiceV2Client", "CreateProtectConfigurationCommand") + .f(void 0, void 0) + .ser(se_CreateProtectConfigurationCommand) + .de(de_CreateProtectConfigurationCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteAccountDefaultProtectConfigurationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteAccountDefaultProtectConfigurationCommand.ts new file mode 100644 index 000000000000..af1a3082d02a --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteAccountDefaultProtectConfigurationCommand.ts @@ -0,0 +1,111 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { + DeleteAccountDefaultProtectConfigurationRequest, + DeleteAccountDefaultProtectConfigurationResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DeleteAccountDefaultProtectConfigurationCommand, + se_DeleteAccountDefaultProtectConfigurationCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteAccountDefaultProtectConfigurationCommand}. + */ +export interface DeleteAccountDefaultProtectConfigurationCommandInput + extends DeleteAccountDefaultProtectConfigurationRequest {} +/** + * @public + * + * The output of {@link DeleteAccountDefaultProtectConfigurationCommand}. + */ +export interface DeleteAccountDefaultProtectConfigurationCommandOutput + extends DeleteAccountDefaultProtectConfigurationResult, + __MetadataBearer {} + +/** + *

Removes the current account default protect configuration.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DeleteAccountDefaultProtectConfigurationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DeleteAccountDefaultProtectConfigurationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = {}; + * const command = new DeleteAccountDefaultProtectConfigurationCommand(input); + * const response = await client.send(command); + * // { // DeleteAccountDefaultProtectConfigurationResult + * // DefaultProtectConfigurationArn: "STRING_VALUE", // required + * // DefaultProtectConfigurationId: "STRING_VALUE", // required + * // }; + * + * ``` + * + * @param DeleteAccountDefaultProtectConfigurationCommandInput - {@link DeleteAccountDefaultProtectConfigurationCommandInput} + * @returns {@link DeleteAccountDefaultProtectConfigurationCommandOutput} + * @see {@link DeleteAccountDefaultProtectConfigurationCommandInput} for command's `input` shape. + * @see {@link DeleteAccountDefaultProtectConfigurationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class DeleteAccountDefaultProtectConfigurationCommand extends $Command + .classBuilder< + DeleteAccountDefaultProtectConfigurationCommandInput, + DeleteAccountDefaultProtectConfigurationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "DeleteAccountDefaultProtectConfiguration", {}) + .n("PinpointSMSVoiceV2Client", "DeleteAccountDefaultProtectConfigurationCommand") + .f(void 0, void 0) + .ser(se_DeleteAccountDefaultProtectConfigurationCommand) + .de(de_DeleteAccountDefaultProtectConfigurationCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteMediaMessageSpendLimitOverrideCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteMediaMessageSpendLimitOverrideCommand.ts new file mode 100644 index 000000000000..705a72421148 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteMediaMessageSpendLimitOverrideCommand.ts @@ -0,0 +1,110 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { + DeleteMediaMessageSpendLimitOverrideRequest, + DeleteMediaMessageSpendLimitOverrideResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DeleteMediaMessageSpendLimitOverrideCommand, + se_DeleteMediaMessageSpendLimitOverrideCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteMediaMessageSpendLimitOverrideCommand}. + */ +export interface DeleteMediaMessageSpendLimitOverrideCommandInput extends DeleteMediaMessageSpendLimitOverrideRequest {} +/** + * @public + * + * The output of {@link DeleteMediaMessageSpendLimitOverrideCommand}. + */ +export interface DeleteMediaMessageSpendLimitOverrideCommandOutput + extends DeleteMediaMessageSpendLimitOverrideResult, + __MetadataBearer {} + +/** + *

Deletes an account-level monthly spending limit override for sending multimedia messages (MMS). + * Deleting a spend limit override will set the EnforcedLimit to equal the + * MaxLimit, which is controlled by Amazon Web Services. For more + * information on spend limits (quotas) see Quotas for Server Migration Service + * in the Server Migration Service User Guide.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DeleteMediaMessageSpendLimitOverrideCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DeleteMediaMessageSpendLimitOverrideCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = {}; + * const command = new DeleteMediaMessageSpendLimitOverrideCommand(input); + * const response = await client.send(command); + * // { // DeleteMediaMessageSpendLimitOverrideResult + * // MonthlyLimit: Number("long"), + * // }; + * + * ``` + * + * @param DeleteMediaMessageSpendLimitOverrideCommandInput - {@link DeleteMediaMessageSpendLimitOverrideCommandInput} + * @returns {@link DeleteMediaMessageSpendLimitOverrideCommandOutput} + * @see {@link DeleteMediaMessageSpendLimitOverrideCommandInput} for command's `input` shape. + * @see {@link DeleteMediaMessageSpendLimitOverrideCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class DeleteMediaMessageSpendLimitOverrideCommand extends $Command + .classBuilder< + DeleteMediaMessageSpendLimitOverrideCommandInput, + DeleteMediaMessageSpendLimitOverrideCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "DeleteMediaMessageSpendLimitOverride", {}) + .n("PinpointSMSVoiceV2Client", "DeleteMediaMessageSpendLimitOverrideCommand") + .f(void 0, void 0) + .ser(se_DeleteMediaMessageSpendLimitOverrideCommand) + .de(de_DeleteMediaMessageSpendLimitOverrideCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteProtectConfigurationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteProtectConfigurationCommand.ts new file mode 100644 index 000000000000..53660323177a --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteProtectConfigurationCommand.ts @@ -0,0 +1,113 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { DeleteProtectConfigurationRequest, DeleteProtectConfigurationResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_DeleteProtectConfigurationCommand, se_DeleteProtectConfigurationCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteProtectConfigurationCommand}. + */ +export interface DeleteProtectConfigurationCommandInput extends DeleteProtectConfigurationRequest {} +/** + * @public + * + * The output of {@link DeleteProtectConfigurationCommand}. + */ +export interface DeleteProtectConfigurationCommandOutput extends DeleteProtectConfigurationResult, __MetadataBearer {} + +/** + *

Permanently delete the protect configuration. The protect configuration must have deletion protection disabled and must not be associated as the account default protect configuration or associated with a configuration set.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DeleteProtectConfigurationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DeleteProtectConfigurationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DeleteProtectConfigurationRequest + * ProtectConfigurationId: "STRING_VALUE", // required + * }; + * const command = new DeleteProtectConfigurationCommand(input); + * const response = await client.send(command); + * // { // DeleteProtectConfigurationResult + * // ProtectConfigurationArn: "STRING_VALUE", // required + * // ProtectConfigurationId: "STRING_VALUE", // required + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // AccountDefault: true || false, // required + * // DeletionProtectionEnabled: true || false, // required + * // }; + * + * ``` + * + * @param DeleteProtectConfigurationCommandInput - {@link DeleteProtectConfigurationCommandInput} + * @returns {@link DeleteProtectConfigurationCommandOutput} + * @see {@link DeleteProtectConfigurationCommandInput} for command's `input` shape. + * @see {@link DeleteProtectConfigurationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class DeleteProtectConfigurationCommand extends $Command + .classBuilder< + DeleteProtectConfigurationCommandInput, + DeleteProtectConfigurationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "DeleteProtectConfiguration", {}) + .n("PinpointSMSVoiceV2Client", "DeleteProtectConfigurationCommand") + .f(void 0, void 0) + .ser(se_DeleteProtectConfigurationCommand) + .de(de_DeleteProtectConfigurationCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeConfigurationSetsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeConfigurationSetsCommand.ts index 3e6ce6ca49d0..9052530a7ad0 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeConfigurationSetsCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeConfigurationSetsCommand.ts @@ -89,6 +89,7 @@ export interface DescribeConfigurationSetsCommandOutput extends DescribeConfigur * // DefaultMessageType: "STRING_VALUE", * // DefaultSenderId: "STRING_VALUE", * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // ProtectConfigurationId: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeProtectConfigurationsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeProtectConfigurationsCommand.ts new file mode 100644 index 000000000000..24167f576cf4 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeProtectConfigurationsCommand.ts @@ -0,0 +1,129 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { DescribeProtectConfigurationsRequest, DescribeProtectConfigurationsResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DescribeProtectConfigurationsCommand, + se_DescribeProtectConfigurationsCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeProtectConfigurationsCommand}. + */ +export interface DescribeProtectConfigurationsCommandInput extends DescribeProtectConfigurationsRequest {} +/** + * @public + * + * The output of {@link DescribeProtectConfigurationsCommand}. + */ +export interface DescribeProtectConfigurationsCommandOutput + extends DescribeProtectConfigurationsResult, + __MetadataBearer {} + +/** + *

Retrieves the protect configurations that match any of filters. If a filter isn’t provided then all protect configurations are returned.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DescribeProtectConfigurationsCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DescribeProtectConfigurationsCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DescribeProtectConfigurationsRequest + * ProtectConfigurationIds: [ // ProtectConfigurationIdList + * "STRING_VALUE", + * ], + * Filters: [ // ProtectConfigurationFilterList + * { // ProtectConfigurationFilter + * Name: "STRING_VALUE", // required + * Values: [ // FilterValueList // required + * "STRING_VALUE", + * ], + * }, + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new DescribeProtectConfigurationsCommand(input); + * const response = await client.send(command); + * // { // DescribeProtectConfigurationsResult + * // ProtectConfigurations: [ // ProtectConfigurationInformationList + * // { // ProtectConfigurationInformation + * // ProtectConfigurationArn: "STRING_VALUE", // required + * // ProtectConfigurationId: "STRING_VALUE", // required + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // AccountDefault: true || false, // required + * // DeletionProtectionEnabled: true || false, // required + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeProtectConfigurationsCommandInput - {@link DescribeProtectConfigurationsCommandInput} + * @returns {@link DescribeProtectConfigurationsCommandOutput} + * @see {@link DescribeProtectConfigurationsCommandInput} for command's `input` shape. + * @see {@link DescribeProtectConfigurationsCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class DescribeProtectConfigurationsCommand extends $Command + .classBuilder< + DescribeProtectConfigurationsCommandInput, + DescribeProtectConfigurationsCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "DescribeProtectConfigurations", {}) + .n("PinpointSMSVoiceV2Client", "DescribeProtectConfigurationsCommand") + .f(void 0, void 0) + .ser(se_DescribeProtectConfigurationsCommand) + .de(de_DescribeProtectConfigurationsCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DisassociateProtectConfigurationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DisassociateProtectConfigurationCommand.ts new file mode 100644 index 000000000000..86b05a01fd9f --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DisassociateProtectConfigurationCommand.ts @@ -0,0 +1,118 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { DisassociateProtectConfigurationRequest, DisassociateProtectConfigurationResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DisassociateProtectConfigurationCommand, + se_DisassociateProtectConfigurationCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DisassociateProtectConfigurationCommand}. + */ +export interface DisassociateProtectConfigurationCommandInput extends DisassociateProtectConfigurationRequest {} +/** + * @public + * + * The output of {@link DisassociateProtectConfigurationCommand}. + */ +export interface DisassociateProtectConfigurationCommandOutput + extends DisassociateProtectConfigurationResult, + __MetadataBearer {} + +/** + *

Disassociate a protect configuration from a configuration set.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DisassociateProtectConfigurationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DisassociateProtectConfigurationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DisassociateProtectConfigurationRequest + * ProtectConfigurationId: "STRING_VALUE", // required + * ConfigurationSetName: "STRING_VALUE", // required + * }; + * const command = new DisassociateProtectConfigurationCommand(input); + * const response = await client.send(command); + * // { // DisassociateProtectConfigurationResult + * // ConfigurationSetArn: "STRING_VALUE", // required + * // ConfigurationSetName: "STRING_VALUE", // required + * // ProtectConfigurationArn: "STRING_VALUE", // required + * // ProtectConfigurationId: "STRING_VALUE", // required + * // }; + * + * ``` + * + * @param DisassociateProtectConfigurationCommandInput - {@link DisassociateProtectConfigurationCommandInput} + * @returns {@link DisassociateProtectConfigurationCommandOutput} + * @see {@link DisassociateProtectConfigurationCommandInput} for command's `input` shape. + * @see {@link DisassociateProtectConfigurationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class DisassociateProtectConfigurationCommand extends $Command + .classBuilder< + DisassociateProtectConfigurationCommandInput, + DisassociateProtectConfigurationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "DisassociateProtectConfiguration", {}) + .n("PinpointSMSVoiceV2Client", "DisassociateProtectConfigurationCommand") + .f(void 0, void 0) + .ser(se_DisassociateProtectConfigurationCommand) + .de(de_DisassociateProtectConfigurationCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/GetProtectConfigurationCountryRuleSetCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/GetProtectConfigurationCountryRuleSetCommand.ts new file mode 100644 index 000000000000..5527310a96ad --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/GetProtectConfigurationCountryRuleSetCommand.ts @@ -0,0 +1,120 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { + GetProtectConfigurationCountryRuleSetRequest, + GetProtectConfigurationCountryRuleSetResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_GetProtectConfigurationCountryRuleSetCommand, + se_GetProtectConfigurationCountryRuleSetCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetProtectConfigurationCountryRuleSetCommand}. + */ +export interface GetProtectConfigurationCountryRuleSetCommandInput + extends GetProtectConfigurationCountryRuleSetRequest {} +/** + * @public + * + * The output of {@link GetProtectConfigurationCountryRuleSetCommand}. + */ +export interface GetProtectConfigurationCountryRuleSetCommandOutput + extends GetProtectConfigurationCountryRuleSetResult, + __MetadataBearer {} + +/** + *

Retrieve the CountryRuleSet for the specified NumberCapability from a protect configuration.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, GetProtectConfigurationCountryRuleSetCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, GetProtectConfigurationCountryRuleSetCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // GetProtectConfigurationCountryRuleSetRequest + * ProtectConfigurationId: "STRING_VALUE", // required + * NumberCapability: "STRING_VALUE", // required + * }; + * const command = new GetProtectConfigurationCountryRuleSetCommand(input); + * const response = await client.send(command); + * // { // GetProtectConfigurationCountryRuleSetResult + * // ProtectConfigurationArn: "STRING_VALUE", // required + * // ProtectConfigurationId: "STRING_VALUE", // required + * // NumberCapability: "STRING_VALUE", // required + * // CountryRuleSet: { // ProtectConfigurationCountryRuleSet // required + * // "": { // ProtectConfigurationCountryRuleSetInformation + * // ProtectStatus: "STRING_VALUE", // required + * // }, + * // }, + * // }; + * + * ``` + * + * @param GetProtectConfigurationCountryRuleSetCommandInput - {@link GetProtectConfigurationCountryRuleSetCommandInput} + * @returns {@link GetProtectConfigurationCountryRuleSetCommandOutput} + * @see {@link GetProtectConfigurationCountryRuleSetCommandInput} for command's `input` shape. + * @see {@link GetProtectConfigurationCountryRuleSetCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class GetProtectConfigurationCountryRuleSetCommand extends $Command + .classBuilder< + GetProtectConfigurationCountryRuleSetCommandInput, + GetProtectConfigurationCountryRuleSetCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "GetProtectConfigurationCountryRuleSet", {}) + .n("PinpointSMSVoiceV2Client", "GetProtectConfigurationCountryRuleSetCommand") + .f(void 0, void 0) + .ser(se_GetProtectConfigurationCountryRuleSetCommand) + .de(de_GetProtectConfigurationCountryRuleSetCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SendMediaMessageCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SendMediaMessageCommand.ts new file mode 100644 index 000000000000..92ad08339865 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SendMediaMessageCommand.ts @@ -0,0 +1,125 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { SendMediaMessageRequest, SendMediaMessageResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_SendMediaMessageCommand, se_SendMediaMessageCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link SendMediaMessageCommand}. + */ +export interface SendMediaMessageCommandInput extends SendMediaMessageRequest {} +/** + * @public + * + * The output of {@link SendMediaMessageCommand}. + */ +export interface SendMediaMessageCommandOutput extends SendMediaMessageResult, __MetadataBearer {} + +/** + *

Creates a new multimedia message (MMS) and sends it to a recipient's phone number.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, SendMediaMessageCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, SendMediaMessageCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // SendMediaMessageRequest + * DestinationPhoneNumber: "STRING_VALUE", // required + * OriginationIdentity: "STRING_VALUE", // required + * MessageBody: "STRING_VALUE", + * MediaUrls: [ // MediaUrlList + * "STRING_VALUE", + * ], + * ConfigurationSetName: "STRING_VALUE", + * MaxPrice: "STRING_VALUE", + * TimeToLive: Number("int"), + * Context: { // ContextMap + * "": "STRING_VALUE", + * }, + * DryRun: true || false, + * ProtectConfigurationId: "STRING_VALUE", + * }; + * const command = new SendMediaMessageCommand(input); + * const response = await client.send(command); + * // { // SendMediaMessageResult + * // MessageId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param SendMediaMessageCommandInput - {@link SendMediaMessageCommandInput} + * @returns {@link SendMediaMessageCommandOutput} + * @see {@link SendMediaMessageCommandInput} for command's `input` shape. + * @see {@link SendMediaMessageCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class SendMediaMessageCommand extends $Command + .classBuilder< + SendMediaMessageCommandInput, + SendMediaMessageCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "SendMediaMessage", {}) + .n("PinpointSMSVoiceV2Client", "SendMediaMessageCommand") + .f(void 0, void 0) + .ser(se_SendMediaMessageCommand) + .de(de_SendMediaMessageCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SendTextMessageCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SendTextMessageCommand.ts index 70eb0ae40940..3dc472a294f5 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/SendTextMessageCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SendTextMessageCommand.ts @@ -59,6 +59,7 @@ export interface SendTextMessageCommandOutput extends SendTextMessageResult, __M * "": "STRING_VALUE", * }, * DryRun: true || false, + * ProtectConfigurationId: "STRING_VALUE", * }; * const command = new SendTextMessageCommand(input); * const response = await client.send(command); diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SendVoiceMessageCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SendVoiceMessageCommand.ts index 5b504623a612..e147448c06a5 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/SendVoiceMessageCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SendVoiceMessageCommand.ts @@ -53,6 +53,7 @@ export interface SendVoiceMessageCommandOutput extends SendVoiceMessageResult, _ * "": "STRING_VALUE", * }, * DryRun: true || false, + * ProtectConfigurationId: "STRING_VALUE", * }; * const command = new SendVoiceMessageCommand(input); * const response = await client.send(command); diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SetAccountDefaultProtectConfigurationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SetAccountDefaultProtectConfigurationCommand.ts new file mode 100644 index 000000000000..fdf71b142105 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SetAccountDefaultProtectConfigurationCommand.ts @@ -0,0 +1,114 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { + SetAccountDefaultProtectConfigurationRequest, + SetAccountDefaultProtectConfigurationResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_SetAccountDefaultProtectConfigurationCommand, + se_SetAccountDefaultProtectConfigurationCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link SetAccountDefaultProtectConfigurationCommand}. + */ +export interface SetAccountDefaultProtectConfigurationCommandInput + extends SetAccountDefaultProtectConfigurationRequest {} +/** + * @public + * + * The output of {@link SetAccountDefaultProtectConfigurationCommand}. + */ +export interface SetAccountDefaultProtectConfigurationCommandOutput + extends SetAccountDefaultProtectConfigurationResult, + __MetadataBearer {} + +/** + *

Set a protect configuration as your account default. You can only have one account + * default protect configuration at a time. The current account default protect configuration is replaced with the provided protect configuration.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, SetAccountDefaultProtectConfigurationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, SetAccountDefaultProtectConfigurationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // SetAccountDefaultProtectConfigurationRequest + * ProtectConfigurationId: "STRING_VALUE", // required + * }; + * const command = new SetAccountDefaultProtectConfigurationCommand(input); + * const response = await client.send(command); + * // { // SetAccountDefaultProtectConfigurationResult + * // DefaultProtectConfigurationArn: "STRING_VALUE", // required + * // DefaultProtectConfigurationId: "STRING_VALUE", // required + * // }; + * + * ``` + * + * @param SetAccountDefaultProtectConfigurationCommandInput - {@link SetAccountDefaultProtectConfigurationCommandInput} + * @returns {@link SetAccountDefaultProtectConfigurationCommandOutput} + * @see {@link SetAccountDefaultProtectConfigurationCommandInput} for command's `input` shape. + * @see {@link SetAccountDefaultProtectConfigurationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class SetAccountDefaultProtectConfigurationCommand extends $Command + .classBuilder< + SetAccountDefaultProtectConfigurationCommandInput, + SetAccountDefaultProtectConfigurationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "SetAccountDefaultProtectConfiguration", {}) + .n("PinpointSMSVoiceV2Client", "SetAccountDefaultProtectConfigurationCommand") + .f(void 0, void 0) + .ser(se_SetAccountDefaultProtectConfigurationCommand) + .de(de_SetAccountDefaultProtectConfigurationCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SetMediaMessageSpendLimitOverrideCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SetMediaMessageSpendLimitOverrideCommand.ts new file mode 100644 index 000000000000..d6b3d393bf00 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SetMediaMessageSpendLimitOverrideCommand.ts @@ -0,0 +1,107 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { SetMediaMessageSpendLimitOverrideRequest, SetMediaMessageSpendLimitOverrideResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_SetMediaMessageSpendLimitOverrideCommand, + se_SetMediaMessageSpendLimitOverrideCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link SetMediaMessageSpendLimitOverrideCommand}. + */ +export interface SetMediaMessageSpendLimitOverrideCommandInput extends SetMediaMessageSpendLimitOverrideRequest {} +/** + * @public + * + * The output of {@link SetMediaMessageSpendLimitOverrideCommand}. + */ +export interface SetMediaMessageSpendLimitOverrideCommandOutput + extends SetMediaMessageSpendLimitOverrideResult, + __MetadataBearer {} + +/** + *

Sets an account level monthly spend limit override for sending MMS messages. The + * requested spend limit must be less than or equal to the MaxLimit, which is + * set by Amazon Web Services.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, SetMediaMessageSpendLimitOverrideCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, SetMediaMessageSpendLimitOverrideCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // SetMediaMessageSpendLimitOverrideRequest + * MonthlyLimit: Number("long"), // required + * }; + * const command = new SetMediaMessageSpendLimitOverrideCommand(input); + * const response = await client.send(command); + * // { // SetMediaMessageSpendLimitOverrideResult + * // MonthlyLimit: Number("long"), + * // }; + * + * ``` + * + * @param SetMediaMessageSpendLimitOverrideCommandInput - {@link SetMediaMessageSpendLimitOverrideCommandInput} + * @returns {@link SetMediaMessageSpendLimitOverrideCommandOutput} + * @see {@link SetMediaMessageSpendLimitOverrideCommandInput} for command's `input` shape. + * @see {@link SetMediaMessageSpendLimitOverrideCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class SetMediaMessageSpendLimitOverrideCommand extends $Command + .classBuilder< + SetMediaMessageSpendLimitOverrideCommandInput, + SetMediaMessageSpendLimitOverrideCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "SetMediaMessageSpendLimitOverride", {}) + .n("PinpointSMSVoiceV2Client", "SetMediaMessageSpendLimitOverrideCommand") + .f(void 0, void 0) + .ser(se_SetMediaMessageSpendLimitOverrideCommand) + .de(de_SetMediaMessageSpendLimitOverrideCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateProtectConfigurationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateProtectConfigurationCommand.ts new file mode 100644 index 000000000000..27968f3ab4b7 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateProtectConfigurationCommand.ts @@ -0,0 +1,108 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { UpdateProtectConfigurationRequest, UpdateProtectConfigurationResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_UpdateProtectConfigurationCommand, se_UpdateProtectConfigurationCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link UpdateProtectConfigurationCommand}. + */ +export interface UpdateProtectConfigurationCommandInput extends UpdateProtectConfigurationRequest {} +/** + * @public + * + * The output of {@link UpdateProtectConfigurationCommand}. + */ +export interface UpdateProtectConfigurationCommandOutput extends UpdateProtectConfigurationResult, __MetadataBearer {} + +/** + *

Update the setting for an existing protect configuration.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, UpdateProtectConfigurationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, UpdateProtectConfigurationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // UpdateProtectConfigurationRequest + * ProtectConfigurationId: "STRING_VALUE", // required + * DeletionProtectionEnabled: true || false, + * }; + * const command = new UpdateProtectConfigurationCommand(input); + * const response = await client.send(command); + * // { // UpdateProtectConfigurationResult + * // ProtectConfigurationArn: "STRING_VALUE", // required + * // ProtectConfigurationId: "STRING_VALUE", // required + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // AccountDefault: true || false, // required + * // DeletionProtectionEnabled: true || false, // required + * // }; + * + * ``` + * + * @param UpdateProtectConfigurationCommandInput - {@link UpdateProtectConfigurationCommandInput} + * @returns {@link UpdateProtectConfigurationCommandOutput} + * @see {@link UpdateProtectConfigurationCommandInput} for command's `input` shape. + * @see {@link UpdateProtectConfigurationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class UpdateProtectConfigurationCommand extends $Command + .classBuilder< + UpdateProtectConfigurationCommandInput, + UpdateProtectConfigurationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "UpdateProtectConfiguration", {}) + .n("PinpointSMSVoiceV2Client", "UpdateProtectConfigurationCommand") + .f(void 0, void 0) + .ser(se_UpdateProtectConfigurationCommand) + .de(de_UpdateProtectConfigurationCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateProtectConfigurationCountryRuleSetCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateProtectConfigurationCountryRuleSetCommand.ts new file mode 100644 index 000000000000..d42406f3cf57 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateProtectConfigurationCountryRuleSetCommand.ts @@ -0,0 +1,125 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { + UpdateProtectConfigurationCountryRuleSetRequest, + UpdateProtectConfigurationCountryRuleSetResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_UpdateProtectConfigurationCountryRuleSetCommand, + se_UpdateProtectConfigurationCountryRuleSetCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link UpdateProtectConfigurationCountryRuleSetCommand}. + */ +export interface UpdateProtectConfigurationCountryRuleSetCommandInput + extends UpdateProtectConfigurationCountryRuleSetRequest {} +/** + * @public + * + * The output of {@link UpdateProtectConfigurationCountryRuleSetCommand}. + */ +export interface UpdateProtectConfigurationCountryRuleSetCommandOutput + extends UpdateProtectConfigurationCountryRuleSetResult, + __MetadataBearer {} + +/** + *

Update a country rule set to ALLOW or BLOCK messages to be sent to the specified destination counties. You can update one or multiple countries at a time. The updates are only applied to the specified NumberCapability type.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, UpdateProtectConfigurationCountryRuleSetCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, UpdateProtectConfigurationCountryRuleSetCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // UpdateProtectConfigurationCountryRuleSetRequest + * ProtectConfigurationId: "STRING_VALUE", // required + * NumberCapability: "STRING_VALUE", // required + * CountryRuleSetUpdates: { // ProtectConfigurationCountryRuleSet // required + * "": { // ProtectConfigurationCountryRuleSetInformation + * ProtectStatus: "STRING_VALUE", // required + * }, + * }, + * }; + * const command = new UpdateProtectConfigurationCountryRuleSetCommand(input); + * const response = await client.send(command); + * // { // UpdateProtectConfigurationCountryRuleSetResult + * // ProtectConfigurationArn: "STRING_VALUE", // required + * // ProtectConfigurationId: "STRING_VALUE", // required + * // NumberCapability: "STRING_VALUE", // required + * // CountryRuleSet: { // ProtectConfigurationCountryRuleSet // required + * // "": { // ProtectConfigurationCountryRuleSetInformation + * // ProtectStatus: "STRING_VALUE", // required + * // }, + * // }, + * // }; + * + * ``` + * + * @param UpdateProtectConfigurationCountryRuleSetCommandInput - {@link UpdateProtectConfigurationCountryRuleSetCommandInput} + * @returns {@link UpdateProtectConfigurationCountryRuleSetCommandOutput} + * @see {@link UpdateProtectConfigurationCountryRuleSetCommandInput} for command's `input` shape. + * @see {@link UpdateProtectConfigurationCountryRuleSetCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + * @public + */ +export class UpdateProtectConfigurationCountryRuleSetCommand extends $Command + .classBuilder< + UpdateProtectConfigurationCountryRuleSetCommandInput, + UpdateProtectConfigurationCountryRuleSetCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: PinpointSMSVoiceV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("PinpointSMSVoiceV2", "UpdateProtectConfigurationCountryRuleSet", {}) + .n("PinpointSMSVoiceV2Client", "UpdateProtectConfigurationCountryRuleSetCommand") + .f(void 0, void 0) + .ser(se_UpdateProtectConfigurationCountryRuleSetCommand) + .de(de_UpdateProtectConfigurationCountryRuleSetCommand) + .build() {} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/index.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/index.ts index 80db0ec91ec0..e2b6afbf57b9 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/index.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/index.ts @@ -1,22 +1,27 @@ // smithy-typescript generated code export * from "./AssociateOriginationIdentityCommand"; +export * from "./AssociateProtectConfigurationCommand"; export * from "./CreateConfigurationSetCommand"; export * from "./CreateEventDestinationCommand"; export * from "./CreateOptOutListCommand"; export * from "./CreatePoolCommand"; +export * from "./CreateProtectConfigurationCommand"; export * from "./CreateRegistrationAssociationCommand"; export * from "./CreateRegistrationAttachmentCommand"; export * from "./CreateRegistrationCommand"; export * from "./CreateRegistrationVersionCommand"; export * from "./CreateVerifiedDestinationNumberCommand"; +export * from "./DeleteAccountDefaultProtectConfigurationCommand"; export * from "./DeleteConfigurationSetCommand"; export * from "./DeleteDefaultMessageTypeCommand"; export * from "./DeleteDefaultSenderIdCommand"; export * from "./DeleteEventDestinationCommand"; export * from "./DeleteKeywordCommand"; +export * from "./DeleteMediaMessageSpendLimitOverrideCommand"; export * from "./DeleteOptOutListCommand"; export * from "./DeleteOptedOutNumberCommand"; export * from "./DeletePoolCommand"; +export * from "./DeleteProtectConfigurationCommand"; export * from "./DeleteRegistrationAttachmentCommand"; export * from "./DeleteRegistrationCommand"; export * from "./DeleteRegistrationFieldValueCommand"; @@ -31,6 +36,7 @@ export * from "./DescribeOptOutListsCommand"; export * from "./DescribeOptedOutNumbersCommand"; export * from "./DescribePhoneNumbersCommand"; export * from "./DescribePoolsCommand"; +export * from "./DescribeProtectConfigurationsCommand"; export * from "./DescribeRegistrationAttachmentsCommand"; export * from "./DescribeRegistrationFieldDefinitionsCommand"; export * from "./DescribeRegistrationFieldValuesCommand"; @@ -42,7 +48,9 @@ export * from "./DescribeSenderIdsCommand"; export * from "./DescribeSpendLimitsCommand"; export * from "./DescribeVerifiedDestinationNumbersCommand"; export * from "./DisassociateOriginationIdentityCommand"; +export * from "./DisassociateProtectConfigurationCommand"; export * from "./DiscardRegistrationVersionCommand"; +export * from "./GetProtectConfigurationCountryRuleSetCommand"; export * from "./ListPoolOriginationIdentitiesCommand"; export * from "./ListRegistrationAssociationsCommand"; export * from "./ListTagsForResourceCommand"; @@ -54,10 +62,13 @@ export * from "./ReleaseSenderIdCommand"; export * from "./RequestPhoneNumberCommand"; export * from "./RequestSenderIdCommand"; export * from "./SendDestinationNumberVerificationCodeCommand"; +export * from "./SendMediaMessageCommand"; export * from "./SendTextMessageCommand"; export * from "./SendVoiceMessageCommand"; +export * from "./SetAccountDefaultProtectConfigurationCommand"; export * from "./SetDefaultMessageTypeCommand"; export * from "./SetDefaultSenderIdCommand"; +export * from "./SetMediaMessageSpendLimitOverrideCommand"; export * from "./SetTextMessageSpendLimitOverrideCommand"; export * from "./SetVoiceMessageSpendLimitOverrideCommand"; export * from "./SubmitRegistrationVersionCommand"; @@ -66,5 +77,7 @@ export * from "./UntagResourceCommand"; export * from "./UpdateEventDestinationCommand"; export * from "./UpdatePhoneNumberCommand"; export * from "./UpdatePoolCommand"; +export * from "./UpdateProtectConfigurationCommand"; +export * from "./UpdateProtectConfigurationCountryRuleSetCommand"; export * from "./UpdateSenderIdCommand"; export * from "./VerifyDestinationNumberCommand"; diff --git a/clients/client-pinpoint-sms-voice-v2/src/index.ts b/clients/client-pinpoint-sms-voice-v2/src/index.ts index f0d19938279e..b95c93dce656 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/index.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/index.ts @@ -7,12 +7,11 @@ *

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with * your recipients across multiple messaging channels. The Amazon Pinpoint SMS and * Voice, version 2 API provides programmatic access to options that are unique to the SMS - * and voice channels and supplements the resources provided by the Amazon Pinpoint - * API.

- *

If you're new to Amazon Pinpoint, it's also helpful to review the - * Amazon Pinpoint Developer Guide. The Amazon Pinpoint + * and voice channels. Amazon Pinpoint SMS and Voice, version 2 resources such as phone numbers, sender IDs, and opt-out lists can be used by the Amazon Pinpoint API.

+ *

If you're new to Amazon Pinpoint SMS, it's also helpful to review the + * Amazon Pinpoint SMS User Guide. The Amazon Pinpoint * Developer Guide provides tutorials, code samples, and procedures that - * demonstrate how to use Amazon Pinpoint features programmatically and how to integrate + * demonstrate how to use Amazon Pinpoint SMS features programmatically and how to integrate * Amazon Pinpoint functionality into mobile apps and other types of applications. * The guide also provides key information, such as Amazon Pinpoint integration with * other Amazon Web Services services, and the quotas that apply to use of the diff --git a/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts b/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts index c525536a935f..4fbeae9a0610 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts @@ -53,6 +53,7 @@ export class AccessDeniedException extends __BaseException { */ export const AccountAttributeName = { ACCOUNT_TIER: "ACCOUNT_TIER", + DEFAULT_PROTECT_CONFIGURATION_ID: "DEFAULT_PROTECT_CONFIGURATION_ID", } as const; /** @@ -202,6 +203,7 @@ export interface AssociateOriginationIdentityResult { export const ConflictExceptionReason = { CREATE_REGISTRATION_VERSION_NOT_ALLOWED: "CREATE_REGISTRATION_VERSION_NOT_ALLOWED", DELETION_PROTECTION_ENABLED: "DELETION_PROTECTION_ENABLED", + DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION: "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION", DESTINATION_PHONE_NUMBER_NOT_VERIFIED: "DESTINATION_PHONE_NUMBER_NOT_VERIFIED", DESTINATION_PHONE_NUMBER_OPTED_OUT: "DESTINATION_PHONE_NUMBER_OPTED_OUT", DISASSOCIATE_REGISTRATION_NOT_ALLOWED: "DISASSOCIATE_REGISTRATION_NOT_ALLOWED", @@ -218,6 +220,10 @@ export const ConflictExceptionReason = { PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION: "PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION", PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL: "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL", PHONE_NUMBER_NOT_IN_REGISTRATION_REGION: "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION", + PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET: "PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET", + PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT: "PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT", + PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET: + "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET", REGISTRATION_ALREADY_SUBMITTED: "REGISTRATION_ALREADY_SUBMITTED", REGISTRATION_NOT_COMPLETE: "REGISTRATION_NOT_COMPLETE", RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS", @@ -251,6 +257,7 @@ export const ResourceType = { OPT_OUT_LIST: "opt-out-list", PHONE_NUMBER: "phone-number", POOL: "pool", + PROTECT_CONFIGURATION: "protect-configuration", REGISTRATION: "registration", REGISTRATION_ATTACHMENT: "registration-attachment", SENDER_ID: "sender-id", @@ -383,6 +390,7 @@ export const ServiceQuotaExceededExceptionReason = { EVENT_DESTINATIONS_PER_CONFIGURATION_SET: "EVENT_DESTINATIONS_PER_CONFIGURATION_SET", KEYWORDS_PER_PHONE_NUMBER: "KEYWORDS_PER_PHONE_NUMBER", KEYWORDS_PER_POOL: "KEYWORDS_PER_POOL", + MONTHLY_SPEND_LIMIT_REACHED_FOR_MEDIA: "MONTHLY_SPEND_LIMIT_REACHED_FOR_MEDIA", MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT: "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT", MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE: "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE", OPT_OUT_LISTS_PER_ACCOUNT: "OPT_OUT_LISTS_PER_ACCOUNT", @@ -390,6 +398,7 @@ export const ServiceQuotaExceededExceptionReason = { PHONE_NUMBERS_PER_ACCOUNT: "PHONE_NUMBERS_PER_ACCOUNT", PHONE_NUMBERS_PER_REGISTRATION: "PHONE_NUMBERS_PER_REGISTRATION", POOLS_PER_ACCOUNT: "POOLS_PER_ACCOUNT", + PROTECT_CONFIGURATIONS_PER_ACCOUNT: "PROTECT_CONFIGURATIONS_PER_ACCOUNT", REGISTRATIONS_PER_ACCOUNT: "REGISTRATIONS_PER_ACCOUNT", REGISTRATION_ATTACHMENTS_CREATED_PER_DAY: "REGISTRATION_ATTACHMENTS_CREATED_PER_DAY", REGISTRATION_ATTACHMENTS_PER_ACCOUNT: "REGISTRATION_ATTACHMENTS_PER_ACCOUNT", @@ -498,6 +507,7 @@ export const ValidationExceptionReason = { INVALID_REGISTRATION_ASSOCIATION: "INVALID_REGISTRATION_ASSOCIATION", INVALID_REQUEST: "INVALID_REQUEST", MAXIMUM_SIZE_EXCEEDED: "MAXIMUM_SIZE_EXCEEDED", + MEDIA_TYPE_NOT_SUPPORTED: "MEDIA_TYPE_NOT_SUPPORTED", MISSING_PARAMETER: "MISSING_PARAMETER", OTHER: "OTHER", PARAMETERS_CANNOT_BE_USED_TOGETHER: "PARAMETERS_CANNOT_BE_USED_TOGETHER", @@ -564,6 +574,52 @@ export class ValidationException extends __BaseException { } } +/** + * @public + */ +export interface AssociateProtectConfigurationRequest { + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

The name of the ConfigurationSet.

+ * @public + */ + ConfigurationSetName: string | undefined; +} + +/** + * @public + */ +export interface AssociateProtectConfigurationResult { + /** + *

The Amazon Resource Name (ARN) of the configuration set.

+ * @public + */ + ConfigurationSetArn: string | undefined; + + /** + *

The name of the ConfigurationSet.

+ * @public + */ + ConfigurationSetName: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the protect configuration.

+ * @public + */ + ProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; +} + /** * @public * @enum @@ -601,7 +657,7 @@ export type AttachmentUploadErrorReason = */ export interface CloudWatchLogsDestination { /** - *

The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role + *

The Amazon Resource Name (ARN) of an Identity and Access Management role * that is able to write event data to an Amazon CloudWatch destination.

* @public */ @@ -623,6 +679,7 @@ export const ConfigurationSetFilterName = { DEFAULT_SENDER_ID: "default-sender-id", EVENT_DESTINATION_NAME: "event-destination-name", MATCHING_EVENT_TYPES: "matching-event-types", + PROTECT_CONFIGURATION_ID: "protect-configuration-id", } as const; /** @@ -663,7 +720,7 @@ export const MessageType = { export type MessageType = (typeof MessageType)[keyof typeof MessageType]; /** - *

Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the Identity and Access Management (IAM) role associated with an Kinesis Data Firehose event + *

Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the Identity and Access Management (IAM) role associated with a Kinesis Data Firehose event * destination.

*

Event destinations, such as Kinesis Data Firehose, are associated with configuration * sets, which enable you to publish message sending events.

@@ -671,8 +728,8 @@ export type MessageType = (typeof MessageType)[keyof typeof MessageType]; */ export interface KinesisFirehoseDestination { /** - *

The ARN of an Amazon Identity and Access Management (IAM) role that is able to write - * event data to an Amazon Firehose destination.

+ *

The ARN of an Identity and Access Management role that is able to write + * event data to an Amazon Kinesis Data Firehose destination.

* @public */ IamRoleArn: string | undefined; @@ -690,6 +747,23 @@ export interface KinesisFirehoseDestination { */ export const EventType = { ALL: "ALL", + MEDIA_ALL: "MEDIA_ALL", + MEDIA_BLOCKED: "MEDIA_BLOCKED", + MEDIA_CARRIER_BLOCKED: "MEDIA_CARRIER_BLOCKED", + MEDIA_CARRIER_UNREACHABLE: "MEDIA_CARRIER_UNREACHABLE", + MEDIA_DELIVERED: "MEDIA_DELIVERED", + MEDIA_FILE_INACCESSIBLE: "MEDIA_FILE_INACCESSIBLE", + MEDIA_FILE_SIZE_EXCEEDED: "MEDIA_FILE_SIZE_EXCEEDED", + MEDIA_FILE_TYPE_UNSUPPORTED: "MEDIA_FILE_TYPE_UNSUPPORTED", + MEDIA_INVALID: "MEDIA_INVALID", + MEDIA_INVALID_MESSAGE: "MEDIA_INVALID_MESSAGE", + MEDIA_PENDING: "MEDIA_PENDING", + MEDIA_QUEUED: "MEDIA_QUEUED", + MEDIA_SPAM: "MEDIA_SPAM", + MEDIA_SUCCESSFUL: "MEDIA_SUCCESSFUL", + MEDIA_TTL_EXPIRED: "MEDIA_TTL_EXPIRED", + MEDIA_UNKNOWN: "MEDIA_UNKNOWN", + MEDIA_UNREACHABLE: "MEDIA_UNREACHABLE", TEXT_ALL: "TEXT_ALL", TEXT_BLOCKED: "TEXT_BLOCKED", TEXT_CARRIER_BLOCKED: "TEXT_CARRIER_BLOCKED", @@ -738,7 +812,7 @@ export interface SnsDestination { /** *

Contains information about an event destination.

*

Event destinations are associated with configuration sets, which enable you to publish - * message sending events to CloudWatch, Kinesis Data Firehose,or Amazon SNS.

+ * message sending events to CloudWatch, Kinesis Data Firehose, or Amazon SNS.

* @public */ export interface EventDestination { @@ -771,8 +845,7 @@ export interface EventDestination { CloudWatchLogsDestination?: CloudWatchLogsDestination; /** - *

An object that contains information about an event destination for logging to Amazon - * Kinesis Data Firehose.

+ *

An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

* @public */ KinesisFirehoseDestination?: KinesisFirehoseDestination; @@ -829,6 +902,12 @@ export interface ConfigurationSetInformation { * @public */ CreatedTimestamp: Date | undefined; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId?: string; } /** @@ -932,15 +1011,13 @@ export interface CreateEventDestinationRequest { MatchingEventTypes: EventType[] | undefined; /** - *

An object that contains information about an event destination for logging to Amazon - * CloudWatch logs.

+ *

An object that contains information about an event destination for logging to Amazon CloudWatch Logs.

* @public */ CloudWatchLogsDestination?: CloudWatchLogsDestination; /** - *

An object that contains information about an event destination for logging to Amazon - * Kinesis Data Firehose.

+ *

An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

* @public */ KinesisFirehoseDestination?: KinesisFirehoseDestination; @@ -1203,6 +1280,74 @@ export interface CreatePoolResult { CreatedTimestamp?: Date; } +/** + * @public + */ +export interface CreateProtectConfigurationRequest { + /** + *

Unique, case-sensitive identifier that you provide to ensure the idempotency of the + * request. If you don't specify a client token, a randomly generated token is used for the + * request to ensure idempotency.

+ * @public + */ + ClientToken?: string; + + /** + *

When set to true deletion protection is enabled. By default this is set to false. + *

+ * @public + */ + DeletionProtectionEnabled?: boolean; + + /** + *

An array of key and value pair tags that are associated with the resource.

+ * @public + */ + Tags?: Tag[]; +} + +/** + * @public + */ +export interface CreateProtectConfigurationResult { + /** + *

The Amazon Resource Name (ARN) of the protect configuration.

+ * @public + */ + ProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

The time when the protect configuration was created, in UNIX epoch time format.

+ * @public + */ + CreatedTimestamp: Date | undefined; + + /** + *

This is true if the protect configuration is set as your account default protect configuration.

+ * @public + */ + AccountDefault: boolean | undefined; + + /** + *

When set to true deletion protection is enabled. By default this is set to false. + *

+ * @public + */ + DeletionProtectionEnabled: boolean | undefined; + + /** + *

An array of key and value pair tags that are associated with the resource.

+ * @public + */ + Tags?: Tag[]; +} + /** * @public */ @@ -1736,6 +1881,28 @@ export interface CreateVerifiedDestinationNumberResult { CreatedTimestamp: Date | undefined; } +/** + * @public + */ +export interface DeleteAccountDefaultProtectConfigurationRequest {} + +/** + * @public + */ +export interface DeleteAccountDefaultProtectConfigurationResult { + /** + *

The Amazon Resource Name (ARN) of the account default protect configuration.

+ * @public + */ + DefaultProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier of the account default protect configuration.

+ * @public + */ + DefaultProtectConfigurationId: string | undefined; +} + /** * @public */ @@ -1976,6 +2143,22 @@ export interface DeleteKeywordResult { KeywordAction?: KeywordAction; } +/** + * @public + */ +export interface DeleteMediaMessageSpendLimitOverrideRequest {} + +/** + * @public + */ +export interface DeleteMediaMessageSpendLimitOverrideResult { + /** + *

The current monthly limit, in US dollars.

+ * @public + */ + MonthlyLimit?: number; +} + /** * @public */ @@ -2163,6 +2346,53 @@ export interface DeletePoolResult { CreatedTimestamp?: Date; } +/** + * @public + */ +export interface DeleteProtectConfigurationRequest { + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; +} + +/** + * @public + */ +export interface DeleteProtectConfigurationResult { + /** + *

The Amazon Resource Name (ARN) of the protect configuration.

+ * @public + */ + ProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

The time when the protect configuration was created, in UNIX epoch time format.

+ * @public + */ + CreatedTimestamp: Date | undefined; + + /** + *

This is true if the protect configuration is set as your account default protect configuration.

+ * @public + */ + AccountDefault: boolean | undefined; + + /** + *

The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false. + *

+ * @public + */ + DeletionProtectionEnabled: boolean | undefined; +} + /** * @public */ @@ -2980,6 +3210,7 @@ export interface DescribePhoneNumbersRequest { * @enum */ export const NumberCapability = { + MMS: "MMS", SMS: "SMS", VOICE: "VOICE", } as const; @@ -3344,6 +3575,124 @@ export interface DescribePoolsResult { NextToken?: string; } +/** + * @public + * @enum + */ +export const ProtectConfigurationFilterName = { + ACCOUNT_DEFAULT: "account-default", + DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", +} as const; + +/** + * @public + */ +export type ProtectConfigurationFilterName = + (typeof ProtectConfigurationFilterName)[keyof typeof ProtectConfigurationFilterName]; + +/** + *

The filter definition for filtering protect configurations that meet a specified criteria.

+ * @public + */ +export interface ProtectConfigurationFilter { + /** + *

The name of the attribute to filter on.

+ * @public + */ + Name: ProtectConfigurationFilterName | undefined; + + /** + *

An array of values to filter for.

+ * @public + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface DescribeProtectConfigurationsRequest { + /** + *

An array of protect configuration identifiers to search for.

+ * @public + */ + ProtectConfigurationIds?: string[]; + + /** + *

An array of ProtectConfigurationFilter objects to filter the results.

+ * @public + */ + Filters?: ProtectConfigurationFilter[]; + + /** + *

The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

+ * @public + */ + NextToken?: string; + + /** + *

The maximum number of results to return per each request.

+ * @public + */ + MaxResults?: number; +} + +/** + *

Provides information on the specified protect configuration.

+ * @public + */ +export interface ProtectConfigurationInformation { + /** + *

The Amazon Resource Name (ARN) of the protect configuration.

+ * @public + */ + ProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

The time when the protect configuration was created, in UNIX epoch time format.

+ * @public + */ + CreatedTimestamp: Date | undefined; + + /** + *

This is true if the protect configuration is set as your account default protect configuration.

+ * @public + */ + AccountDefault: boolean | undefined; + + /** + *

The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false. + *

+ * @public + */ + DeletionProtectionEnabled: boolean | undefined; +} + +/** + * @public + */ +export interface DescribeProtectConfigurationsResult { + /** + *

An array of ProtectConfigurationInformation objects that contain the details for the request.

+ * @public + */ + ProtectConfigurations?: ProtectConfigurationInformation[]; + + /** + *

The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

+ * @public + */ + NextToken?: string; +} + /** * @public * @enum @@ -4760,6 +5109,7 @@ export interface DescribeSpendLimitsRequest { * @enum */ export const SpendLimitName = { + MEDIA_MESSAGE_MONTHLY_SPEND_LIMIT: "MEDIA_MESSAGE_MONTHLY_SPEND_LIMIT", TEXT_MESSAGE_MONTHLY_SPEND_LIMIT: "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT", VOICE_MESSAGE_MONTHLY_SPEND_LIMIT: "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT", } as const; @@ -5049,15 +5399,61 @@ export interface DisassociateOriginationIdentityResult { /** * @public */ -export interface DiscardRegistrationVersionRequest { +export interface DisassociateProtectConfigurationRequest { /** - *

The unique identifier for the registration.

+ *

The unique identifier for the protect configuration.

* @public */ - RegistrationId: string | undefined; -} + ProtectConfigurationId: string | undefined; -/** + /** + *

The name of the ConfigurationSet.

+ * @public + */ + ConfigurationSetName: string | undefined; +} + +/** + * @public + */ +export interface DisassociateProtectConfigurationResult { + /** + *

The Amazon Resource Name (ARN) of the configuration set.

+ * @public + */ + ConfigurationSetArn: string | undefined; + + /** + *

The name of the ConfigurationSet.

+ * @public + */ + ConfigurationSetName: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the protect configuration.

+ * @public + */ + ProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; +} + +/** + * @public + */ +export interface DiscardRegistrationVersionRequest { + /** + *

The unique identifier for the registration.

+ * @public + */ + RegistrationId: string | undefined; +} + +/** * @public */ export interface DiscardRegistrationVersionResult { @@ -5126,6 +5522,79 @@ export interface DiscardRegistrationVersionResult { RegistrationVersionStatusHistory: RegistrationVersionStatusHistory | undefined; } +/** + * @public + */ +export interface GetProtectConfigurationCountryRuleSetRequest { + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

The capability type to return the CountryRuleSet for. Valid values are SMS, VOICE, or MMS.

+ * @public + */ + NumberCapability: NumberCapability | undefined; +} + +/** + * @public + * @enum + */ +export const ProtectStatus = { + ALLOW: "ALLOW", + BLOCK: "BLOCK", +} as const; + +/** + * @public + */ +export type ProtectStatus = (typeof ProtectStatus)[keyof typeof ProtectStatus]; + +/** + *

The types of statuses that can be used.

+ * @public + */ +export interface ProtectConfigurationCountryRuleSetInformation { + /** + *

The types of protection that can be used.

+ * @public + */ + ProtectStatus: ProtectStatus | undefined; +} + +/** + * @public + */ +export interface GetProtectConfigurationCountryRuleSetResult { + /** + *

The Amazon Resource Name (ARN) of the protect configuration.

+ * @public + */ + ProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

The capability type associated with the returned ProtectConfigurationCountryRuleSetInformation objects.

+ * @public + */ + NumberCapability: NumberCapability | undefined; + + /** + *

A map of ProtectConfigurationCountryRuleSetInformation objects that contain the + * details for the requested NumberCapability. The Key is the two-letter ISO country code. For a list of supported ISO country codes, see Supported countries and regions (SMS channel) in the Amazon Pinpoint SMS user guide.

+ * @public + */ + CountryRuleSet: Record | undefined; +} + /** * @public * @enum @@ -6243,6 +6712,89 @@ export interface SendDestinationNumberVerificationCodeResult { MessageId: string | undefined; } +/** + * @public + */ +export interface SendMediaMessageRequest { + /** + *

The destination phone number in E.164 format.

+ * @public + */ + DestinationPhoneNumber: string | undefined; + + /** + *

The origination identity of the message. This can be either the PhoneNumber, + * PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

+ * @public + */ + OriginationIdentity: string | undefined; + + /** + *

The text body of the message.

+ * @public + */ + MessageBody?: string; + + /** + *

An array of URLs to each media file to send.

+ *

The media files have to be stored in a publicly available S3 bucket. Supported media file formats + * are listed in MMS file types, size and character limits. For more information on creating an S3 bucket and managing + * objects, see Creating a bucket and Uploading objects in the S3 user guide.

+ * @public + */ + MediaUrls?: string[]; + + /** + *

The name of the configuration set to use. This can be either the ConfigurationSetName + * or ConfigurationSetArn.

+ * @public + */ + ConfigurationSetName?: string; + + /** + *

The maximum amount that you want to spend, in US dollars, per each MMS message.

+ * @public + */ + MaxPrice?: string; + + /** + *

How long the text message is valid for. By default this is 72 hours.

+ * @public + */ + TimeToLive?: number; + + /** + *

You can specify custom data in this field. If you do, that data is logged to the event + * destination.

+ * @public + */ + Context?: Record; + + /** + *

When set to true, the message is checked and validated, but isn't sent to the end + * recipient.

+ * @public + */ + DryRun?: boolean; + + /** + *

The unique identifier of the protect configuration to use.

+ * @public + */ + ProtectConfigurationId?: string; +} + +/** + * @public + */ +export interface SendMediaMessageResult { + /** + *

The unique identifier for the message.

+ * @public + */ + MessageId?: string; +} + /** * @public */ @@ -6323,6 +6875,12 @@ export interface SendTextMessageRequest { * @public */ DryRun?: boolean; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId?: string; } /** @@ -6500,6 +7058,12 @@ export interface SendVoiceMessageRequest { * @public */ DryRun?: boolean; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId?: string; } /** @@ -6513,6 +7077,34 @@ export interface SendVoiceMessageResult { MessageId?: string; } +/** + * @public + */ +export interface SetAccountDefaultProtectConfigurationRequest { + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; +} + +/** + * @public + */ +export interface SetAccountDefaultProtectConfigurationResult { + /** + *

The Amazon Resource Name (ARN) of the account default protect configuration.

+ * @public + */ + DefaultProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier of the account default protect configuration.

+ * @public + */ + DefaultProtectConfigurationId: string | undefined; +} + /** * @public */ @@ -6601,6 +7193,28 @@ export interface SetDefaultSenderIdResult { SenderId?: string; } +/** + * @public + */ +export interface SetMediaMessageSpendLimitOverrideRequest { + /** + *

The new monthly limit to enforce on text messages.

+ * @public + */ + MonthlyLimit: number | undefined; +} + +/** + * @public + */ +export interface SetMediaMessageSpendLimitOverrideResult { + /** + *

The current monthly limit to enforce on sending text messages.

+ * @public + */ + MonthlyLimit?: number; +} + /** * @public */ @@ -7154,6 +7768,113 @@ export interface UpdatePoolResult { CreatedTimestamp?: Date; } +/** + * @public + */ +export interface UpdateProtectConfigurationRequest { + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

When set to true deletion protection is enabled. By default this is set to false. + *

+ * @public + */ + DeletionProtectionEnabled?: boolean; +} + +/** + * @public + */ +export interface UpdateProtectConfigurationResult { + /** + *

The Amazon Resource Name (ARN) of the protect configuration.

+ * @public + */ + ProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

The time when the protect configuration was created, in UNIX epoch time format.

+ * @public + */ + CreatedTimestamp: Date | undefined; + + /** + *

This is true if the protect configuration is set as your account default protect configuration.

+ * @public + */ + AccountDefault: boolean | undefined; + + /** + *

The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false. + *

+ * @public + */ + DeletionProtectionEnabled: boolean | undefined; +} + +/** + * @public + */ +export interface UpdateProtectConfigurationCountryRuleSetRequest { + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

The number capability to apply the CountryRuleSetUpdates updates to.

+ * @public + */ + NumberCapability: NumberCapability | undefined; + + /** + *

A map of ProtectConfigurationCountryRuleSetInformation objects that contain the + * details for the requested NumberCapability. The Key is the two-letter ISO country code. For a list of supported ISO country codes, see Supported countries and regions (SMS channel) in the Amazon Pinpoint SMS user guide.

+ * @public + */ + CountryRuleSetUpdates: Record | undefined; +} + +/** + * @public + */ +export interface UpdateProtectConfigurationCountryRuleSetResult { + /** + *

The Amazon Resource Name (ARN) of the protect configuration.

+ * @public + */ + ProtectConfigurationArn: string | undefined; + + /** + *

The unique identifier for the protect configuration.

+ * @public + */ + ProtectConfigurationId: string | undefined; + + /** + *

The number capability that was updated

+ * @public + */ + NumberCapability: NumberCapability | undefined; + + /** + *

An array of ProtectConfigurationCountryRuleSetInformation containing the rules for the NumberCapability.

+ * @public + */ + CountryRuleSet: Record | undefined; +} + /** * @public */ diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeProtectConfigurationsPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeProtectConfigurationsPaginator.ts new file mode 100644 index 000000000000..d65857946379 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeProtectConfigurationsPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { + DescribeProtectConfigurationsCommand, + DescribeProtectConfigurationsCommandInput, + DescribeProtectConfigurationsCommandOutput, +} from "../commands/DescribeProtectConfigurationsCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateDescribeProtectConfigurations: ( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: DescribeProtectConfigurationsCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + PinpointSMSVoiceV2PaginationConfiguration, + DescribeProtectConfigurationsCommandInput, + DescribeProtectConfigurationsCommandOutput +>(PinpointSMSVoiceV2Client, DescribeProtectConfigurationsCommand, "NextToken", "NextToken", "MaxResults"); diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/index.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/index.ts index c0cdd20f251a..9cac11f2420f 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/pagination/index.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/index.ts @@ -14,11 +14,12 @@ export * from "./DescribePhoneNumbersPaginator"; export * from "./DescribePoolsPaginator"; -export * from "./DescribeRegistrationAttachmentsPaginator"; +export * from "./DescribeProtectConfigurationsPaginator"; -export * from "./DescribeRegistrationFieldDefinitionsPaginator"; +export * from "./DescribeRegistrationAttachmentsPaginator"; // smithy-typescript generated code export * from "./Interfaces"; +export * from "./DescribeRegistrationFieldDefinitionsPaginator"; export * from "./DescribeRegistrationFieldValuesPaginator"; export * from "./DescribeRegistrationSectionDefinitionsPaginator"; export * from "./DescribeRegistrationTypeDefinitionsPaginator"; diff --git a/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts b/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts index 2f732cb24006..c39a4d70677b 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts @@ -26,6 +26,10 @@ import { AssociateOriginationIdentityCommandInput, AssociateOriginationIdentityCommandOutput, } from "../commands/AssociateOriginationIdentityCommand"; +import { + AssociateProtectConfigurationCommandInput, + AssociateProtectConfigurationCommandOutput, +} from "../commands/AssociateProtectConfigurationCommand"; import { CreateConfigurationSetCommandInput, CreateConfigurationSetCommandOutput, @@ -36,6 +40,10 @@ import { } from "../commands/CreateEventDestinationCommand"; import { CreateOptOutListCommandInput, CreateOptOutListCommandOutput } from "../commands/CreateOptOutListCommand"; import { CreatePoolCommandInput, CreatePoolCommandOutput } from "../commands/CreatePoolCommand"; +import { + CreateProtectConfigurationCommandInput, + CreateProtectConfigurationCommandOutput, +} from "../commands/CreateProtectConfigurationCommand"; import { CreateRegistrationAssociationCommandInput, CreateRegistrationAssociationCommandOutput, @@ -53,6 +61,10 @@ import { CreateVerifiedDestinationNumberCommandInput, CreateVerifiedDestinationNumberCommandOutput, } from "../commands/CreateVerifiedDestinationNumberCommand"; +import { + DeleteAccountDefaultProtectConfigurationCommandInput, + DeleteAccountDefaultProtectConfigurationCommandOutput, +} from "../commands/DeleteAccountDefaultProtectConfigurationCommand"; import { DeleteConfigurationSetCommandInput, DeleteConfigurationSetCommandOutput, @@ -70,12 +82,20 @@ import { DeleteEventDestinationCommandOutput, } from "../commands/DeleteEventDestinationCommand"; import { DeleteKeywordCommandInput, DeleteKeywordCommandOutput } from "../commands/DeleteKeywordCommand"; +import { + DeleteMediaMessageSpendLimitOverrideCommandInput, + DeleteMediaMessageSpendLimitOverrideCommandOutput, +} from "../commands/DeleteMediaMessageSpendLimitOverrideCommand"; import { DeleteOptedOutNumberCommandInput, DeleteOptedOutNumberCommandOutput, } from "../commands/DeleteOptedOutNumberCommand"; import { DeleteOptOutListCommandInput, DeleteOptOutListCommandOutput } from "../commands/DeleteOptOutListCommand"; import { DeletePoolCommandInput, DeletePoolCommandOutput } from "../commands/DeletePoolCommand"; +import { + DeleteProtectConfigurationCommandInput, + DeleteProtectConfigurationCommandOutput, +} from "../commands/DeleteProtectConfigurationCommand"; import { DeleteRegistrationAttachmentCommandInput, DeleteRegistrationAttachmentCommandOutput, @@ -123,6 +143,10 @@ import { DescribePhoneNumbersCommandOutput, } from "../commands/DescribePhoneNumbersCommand"; import { DescribePoolsCommandInput, DescribePoolsCommandOutput } from "../commands/DescribePoolsCommand"; +import { + DescribeProtectConfigurationsCommandInput, + DescribeProtectConfigurationsCommandOutput, +} from "../commands/DescribeProtectConfigurationsCommand"; import { DescribeRegistrationAttachmentsCommandInput, DescribeRegistrationAttachmentsCommandOutput, @@ -164,10 +188,18 @@ import { DisassociateOriginationIdentityCommandInput, DisassociateOriginationIdentityCommandOutput, } from "../commands/DisassociateOriginationIdentityCommand"; +import { + DisassociateProtectConfigurationCommandInput, + DisassociateProtectConfigurationCommandOutput, +} from "../commands/DisassociateProtectConfigurationCommand"; import { DiscardRegistrationVersionCommandInput, DiscardRegistrationVersionCommandOutput, } from "../commands/DiscardRegistrationVersionCommand"; +import { + GetProtectConfigurationCountryRuleSetCommandInput, + GetProtectConfigurationCountryRuleSetCommandOutput, +} from "../commands/GetProtectConfigurationCountryRuleSetCommand"; import { ListPoolOriginationIdentitiesCommandInput, ListPoolOriginationIdentitiesCommandOutput, @@ -194,13 +226,22 @@ import { SendDestinationNumberVerificationCodeCommandInput, SendDestinationNumberVerificationCodeCommandOutput, } from "../commands/SendDestinationNumberVerificationCodeCommand"; +import { SendMediaMessageCommandInput, SendMediaMessageCommandOutput } from "../commands/SendMediaMessageCommand"; import { SendTextMessageCommandInput, SendTextMessageCommandOutput } from "../commands/SendTextMessageCommand"; import { SendVoiceMessageCommandInput, SendVoiceMessageCommandOutput } from "../commands/SendVoiceMessageCommand"; +import { + SetAccountDefaultProtectConfigurationCommandInput, + SetAccountDefaultProtectConfigurationCommandOutput, +} from "../commands/SetAccountDefaultProtectConfigurationCommand"; import { SetDefaultMessageTypeCommandInput, SetDefaultMessageTypeCommandOutput, } from "../commands/SetDefaultMessageTypeCommand"; import { SetDefaultSenderIdCommandInput, SetDefaultSenderIdCommandOutput } from "../commands/SetDefaultSenderIdCommand"; +import { + SetMediaMessageSpendLimitOverrideCommandInput, + SetMediaMessageSpendLimitOverrideCommandOutput, +} from "../commands/SetMediaMessageSpendLimitOverrideCommand"; import { SetTextMessageSpendLimitOverrideCommandInput, SetTextMessageSpendLimitOverrideCommandOutput, @@ -221,6 +262,14 @@ import { } from "../commands/UpdateEventDestinationCommand"; import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "../commands/UpdatePhoneNumberCommand"; import { UpdatePoolCommandInput, UpdatePoolCommandOutput } from "../commands/UpdatePoolCommand"; +import { + UpdateProtectConfigurationCommandInput, + UpdateProtectConfigurationCommandOutput, +} from "../commands/UpdateProtectConfigurationCommand"; +import { + UpdateProtectConfigurationCountryRuleSetCommandInput, + UpdateProtectConfigurationCountryRuleSetCommandOutput, +} from "../commands/UpdateProtectConfigurationCountryRuleSetCommand"; import { UpdateSenderIdCommandInput, UpdateSenderIdCommandOutput } from "../commands/UpdateSenderIdCommand"; import { VerifyDestinationNumberCommandInput, @@ -229,6 +278,7 @@ import { import { AccessDeniedException, AssociateOriginationIdentityRequest, + AssociateProtectConfigurationRequest, CloudWatchLogsDestination, ConfigurationSetFilter, ConfigurationSetInformation, @@ -240,6 +290,8 @@ import { CreateOptOutListResult, CreatePoolRequest, CreatePoolResult, + CreateProtectConfigurationRequest, + CreateProtectConfigurationResult, CreateRegistrationAssociationRequest, CreateRegistrationAttachmentRequest, CreateRegistrationAttachmentResult, @@ -249,18 +301,22 @@ import { CreateRegistrationVersionResult, CreateVerifiedDestinationNumberRequest, CreateVerifiedDestinationNumberResult, + DeleteAccountDefaultProtectConfigurationRequest, DeleteConfigurationSetRequest, DeleteConfigurationSetResult, DeleteDefaultMessageTypeRequest, DeleteDefaultSenderIdRequest, DeleteEventDestinationRequest, DeleteKeywordRequest, + DeleteMediaMessageSpendLimitOverrideRequest, DeleteOptedOutNumberRequest, DeleteOptedOutNumberResult, DeleteOptOutListRequest, DeleteOptOutListResult, DeletePoolRequest, DeletePoolResult, + DeleteProtectConfigurationRequest, + DeleteProtectConfigurationResult, DeleteRegistrationAttachmentRequest, DeleteRegistrationAttachmentResult, DeleteRegistrationFieldValueRequest, @@ -283,6 +339,8 @@ import { DescribePhoneNumbersResult, DescribePoolsRequest, DescribePoolsResult, + DescribeProtectConfigurationsRequest, + DescribeProtectConfigurationsResult, DescribeRegistrationAttachmentsRequest, DescribeRegistrationAttachmentsResult, DescribeRegistrationFieldDefinitionsRequest, @@ -299,9 +357,11 @@ import { DescribeVerifiedDestinationNumbersResult, DestinationCountryParameterKey, DisassociateOriginationIdentityRequest, + DisassociateProtectConfigurationRequest, DiscardRegistrationVersionRequest, DiscardRegistrationVersionResult, EventType, + GetProtectConfigurationCountryRuleSetRequest, InternalServerException, KeywordFilter, KinesisFirehoseDestination, @@ -318,6 +378,9 @@ import { PoolFilter, PoolInformation, PoolOriginationIdentitiesFilter, + ProtectConfigurationCountryRuleSetInformation, + ProtectConfigurationFilter, + ProtectConfigurationInformation, PutKeywordRequest, PutOptedOutNumberRequest, PutOptedOutNumberResult, @@ -341,11 +404,14 @@ import { SendDestinationNumberVerificationCodeRequest, SenderIdAndCountry, SenderIdFilter, + SendMediaMessageRequest, SendTextMessageRequest, SendVoiceMessageRequest, ServiceQuotaExceededException, + SetAccountDefaultProtectConfigurationRequest, SetDefaultMessageTypeRequest, SetDefaultSenderIdRequest, + SetMediaMessageSpendLimitOverrideRequest, SetTextMessageSpendLimitOverrideRequest, SetVoiceMessageSpendLimitOverrideRequest, SnsDestination, @@ -360,6 +426,9 @@ import { UpdatePhoneNumberResult, UpdatePoolRequest, UpdatePoolResult, + UpdateProtectConfigurationCountryRuleSetRequest, + UpdateProtectConfigurationRequest, + UpdateProtectConfigurationResult, UpdateSenderIdRequest, ValidationException, VerifiedDestinationNumberFilter, @@ -382,6 +451,19 @@ export const se_AssociateOriginationIdentityCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0AssociateProtectConfigurationCommand + */ +export const se_AssociateProtectConfigurationCommand = async ( + input: AssociateProtectConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("AssociateProtectConfiguration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0CreateConfigurationSetCommand */ @@ -434,6 +516,19 @@ export const se_CreatePoolCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0CreateProtectConfigurationCommand + */ +export const se_CreateProtectConfigurationCommand = async ( + input: CreateProtectConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateProtectConfiguration"); + let body: any; + body = JSON.stringify(se_CreateProtectConfigurationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0CreateRegistrationCommand */ @@ -499,6 +594,19 @@ export const se_CreateVerifiedDestinationNumberCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DeleteAccountDefaultProtectConfigurationCommand + */ +export const se_DeleteAccountDefaultProtectConfigurationCommand = async ( + input: DeleteAccountDefaultProtectConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteAccountDefaultProtectConfiguration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DeleteConfigurationSetCommand */ @@ -564,6 +672,19 @@ export const se_DeleteKeywordCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DeleteMediaMessageSpendLimitOverrideCommand + */ +export const se_DeleteMediaMessageSpendLimitOverrideCommand = async ( + input: DeleteMediaMessageSpendLimitOverrideCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteMediaMessageSpendLimitOverride"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DeleteOptedOutNumberCommand */ @@ -603,6 +724,19 @@ export const se_DeletePoolCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DeleteProtectConfigurationCommand + */ +export const se_DeleteProtectConfigurationCommand = async ( + input: DeleteProtectConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteProtectConfiguration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DeleteRegistrationCommand */ @@ -785,6 +919,19 @@ export const se_DescribePoolsCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DescribeProtectConfigurationsCommand + */ +export const se_DescribeProtectConfigurationsCommand = async ( + input: DescribeProtectConfigurationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeProtectConfigurations"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DescribeRegistrationAttachmentsCommand */ @@ -928,6 +1075,19 @@ export const se_DisassociateOriginationIdentityCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DisassociateProtectConfigurationCommand + */ +export const se_DisassociateProtectConfigurationCommand = async ( + input: DisassociateProtectConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DisassociateProtectConfiguration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DiscardRegistrationVersionCommand */ @@ -941,6 +1101,19 @@ export const se_DiscardRegistrationVersionCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0GetProtectConfigurationCountryRuleSetCommand + */ +export const se_GetProtectConfigurationCountryRuleSetCommand = async ( + input: GetProtectConfigurationCountryRuleSetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetProtectConfigurationCountryRuleSet"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0ListPoolOriginationIdentitiesCommand */ @@ -1084,6 +1257,19 @@ export const se_SendDestinationNumberVerificationCodeCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0SendMediaMessageCommand + */ +export const se_SendMediaMessageCommand = async ( + input: SendMediaMessageCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("SendMediaMessage"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0SendTextMessageCommand */ @@ -1110,6 +1296,19 @@ export const se_SendVoiceMessageCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0SetAccountDefaultProtectConfigurationCommand + */ +export const se_SetAccountDefaultProtectConfigurationCommand = async ( + input: SetAccountDefaultProtectConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("SetAccountDefaultProtectConfiguration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0SetDefaultMessageTypeCommand */ @@ -1136,6 +1335,19 @@ export const se_SetDefaultSenderIdCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0SetMediaMessageSpendLimitOverrideCommand + */ +export const se_SetMediaMessageSpendLimitOverrideCommand = async ( + input: SetMediaMessageSpendLimitOverrideCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("SetMediaMessageSpendLimitOverride"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0SetTextMessageSpendLimitOverrideCommand */ @@ -1240,6 +1452,32 @@ export const se_UpdatePoolCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0UpdateProtectConfigurationCommand + */ +export const se_UpdateProtectConfigurationCommand = async ( + input: UpdateProtectConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateProtectConfiguration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0UpdateProtectConfigurationCountryRuleSetCommand + */ +export const se_UpdateProtectConfigurationCountryRuleSetCommand = async ( + input: UpdateProtectConfigurationCountryRuleSetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateProtectConfigurationCountryRuleSet"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0UpdateSenderIdCommand */ @@ -1286,6 +1524,26 @@ export const de_AssociateOriginationIdentityCommand = async ( return response; }; +/** + * deserializeAws_json1_0AssociateProtectConfigurationCommand + */ +export const de_AssociateProtectConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: AssociateProtectConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0CreateConfigurationSetCommand */ @@ -1366,6 +1624,26 @@ export const de_CreatePoolCommand = async ( return response; }; +/** + * deserializeAws_json1_0CreateProtectConfigurationCommand + */ +export const de_CreateProtectConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_CreateProtectConfigurationResult(data, context); + const response: CreateProtectConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0CreateRegistrationCommand */ @@ -1466,6 +1744,26 @@ export const de_CreateVerifiedDestinationNumberCommand = async ( return response; }; +/** + * deserializeAws_json1_0DeleteAccountDefaultProtectConfigurationCommand + */ +export const de_DeleteAccountDefaultProtectConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DeleteAccountDefaultProtectConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0DeleteConfigurationSetCommand */ @@ -1566,6 +1864,26 @@ export const de_DeleteKeywordCommand = async ( return response; }; +/** + * deserializeAws_json1_0DeleteMediaMessageSpendLimitOverrideCommand + */ +export const de_DeleteMediaMessageSpendLimitOverrideCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DeleteMediaMessageSpendLimitOverrideCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0DeleteOptedOutNumberCommand */ @@ -1626,6 +1944,26 @@ export const de_DeletePoolCommand = async ( return response; }; +/** + * deserializeAws_json1_0DeleteProtectConfigurationCommand + */ +export const de_DeleteProtectConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_DeleteProtectConfigurationResult(data, context); + const response: DeleteProtectConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0DeleteRegistrationCommand */ @@ -1906,6 +2244,26 @@ export const de_DescribePoolsCommand = async ( return response; }; +/** + * deserializeAws_json1_0DescribeProtectConfigurationsCommand + */ +export const de_DescribeProtectConfigurationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_DescribeProtectConfigurationsResult(data, context); + const response: DescribeProtectConfigurationsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0DescribeRegistrationAttachmentsCommand */ @@ -2126,6 +2484,26 @@ export const de_DisassociateOriginationIdentityCommand = async ( return response; }; +/** + * deserializeAws_json1_0DisassociateProtectConfigurationCommand + */ +export const de_DisassociateProtectConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DisassociateProtectConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0DiscardRegistrationVersionCommand */ @@ -2146,6 +2524,26 @@ export const de_DiscardRegistrationVersionCommand = async ( return response; }; +/** + * deserializeAws_json1_0GetProtectConfigurationCountryRuleSetCommand + */ +export const de_GetProtectConfigurationCountryRuleSetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetProtectConfigurationCountryRuleSetCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0ListPoolOriginationIdentitiesCommand */ @@ -2366,6 +2764,26 @@ export const de_SendDestinationNumberVerificationCodeCommand = async ( return response; }; +/** + * deserializeAws_json1_0SendMediaMessageCommand + */ +export const de_SendMediaMessageCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: SendMediaMessageCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0SendTextMessageCommand */ @@ -2406,6 +2824,26 @@ export const de_SendVoiceMessageCommand = async ( return response; }; +/** + * deserializeAws_json1_0SetAccountDefaultProtectConfigurationCommand + */ +export const de_SetAccountDefaultProtectConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: SetAccountDefaultProtectConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0SetDefaultMessageTypeCommand */ @@ -2446,6 +2884,26 @@ export const de_SetDefaultSenderIdCommand = async ( return response; }; +/** + * deserializeAws_json1_0SetMediaMessageSpendLimitOverrideCommand + */ +export const de_SetMediaMessageSpendLimitOverrideCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: SetMediaMessageSpendLimitOverrideCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0SetTextMessageSpendLimitOverrideCommand */ @@ -2606,6 +3064,46 @@ export const de_UpdatePoolCommand = async ( return response; }; +/** + * deserializeAws_json1_0UpdateProtectConfigurationCommand + */ +export const de_UpdateProtectConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_UpdateProtectConfigurationResult(data, context); + const response: UpdateProtectConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0UpdateProtectConfigurationCountryRuleSetCommand + */ +export const de_UpdateProtectConfigurationCountryRuleSetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateProtectConfigurationCountryRuleSetCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_0UpdateSenderIdCommand */ @@ -2805,6 +3303,8 @@ const se_AssociateOriginationIdentityRequest = ( }); }; +// se_AssociateProtectConfigurationRequest omitted. + // se_CloudWatchLogsDestination omitted. // se_ConfigurationSetFilter omitted. @@ -2866,6 +3366,20 @@ const se_CreatePoolRequest = (input: CreatePoolRequest, context: __SerdeContext) }); }; +/** + * serializeAws_json1_0CreateProtectConfigurationRequest + */ +const se_CreateProtectConfigurationRequest = ( + input: CreateProtectConfigurationRequest, + context: __SerdeContext +): any => { + return take(input, { + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], + DeletionProtectionEnabled: [], + Tags: _json, + }); +}; + // se_CreateRegistrationAssociationRequest omitted. /** @@ -2910,6 +3424,8 @@ const se_CreateVerifiedDestinationNumberRequest = ( }); }; +// se_DeleteAccountDefaultProtectConfigurationRequest omitted. + // se_DeleteConfigurationSetRequest omitted. // se_DeleteDefaultMessageTypeRequest omitted. @@ -2920,12 +3436,16 @@ const se_CreateVerifiedDestinationNumberRequest = ( // se_DeleteKeywordRequest omitted. +// se_DeleteMediaMessageSpendLimitOverrideRequest omitted. + // se_DeleteOptedOutNumberRequest omitted. // se_DeleteOptOutListRequest omitted. // se_DeletePoolRequest omitted. +// se_DeleteProtectConfigurationRequest omitted. + // se_DeleteRegistrationAttachmentRequest omitted. // se_DeleteRegistrationFieldValueRequest omitted. @@ -2954,6 +3474,8 @@ const se_CreateVerifiedDestinationNumberRequest = ( // se_DescribePoolsRequest omitted. +// se_DescribeProtectConfigurationsRequest omitted. + // se_DescribeRegistrationAttachmentsRequest omitted. // se_DescribeRegistrationFieldDefinitionsRequest omitted. @@ -2993,6 +3515,8 @@ const se_DisassociateOriginationIdentityRequest = ( }); }; +// se_DisassociateProtectConfigurationRequest omitted. + // se_DiscardRegistrationVersionRequest omitted. // se_EventTypeList omitted. @@ -3001,6 +3525,8 @@ const se_DisassociateOriginationIdentityRequest = ( // se_FilterValueList omitted. +// se_GetProtectConfigurationCountryRuleSetRequest omitted. + // se_KeywordFilter omitted. // se_KeywordFilterList omitted. @@ -3015,6 +3541,8 @@ const se_DisassociateOriginationIdentityRequest = ( // se_ListTagsForResourceRequest omitted. +// se_MediaUrlList omitted. + // se_MessageTypeList omitted. // se_NonEmptyTagList omitted. @@ -3045,6 +3573,16 @@ const se_DisassociateOriginationIdentityRequest = ( // se_PoolOriginationIdentitiesFilterList omitted. +// se_ProtectConfigurationCountryRuleSet omitted. + +// se_ProtectConfigurationCountryRuleSetInformation omitted. + +// se_ProtectConfigurationFilter omitted. + +// se_ProtectConfigurationFilterList omitted. + +// se_ProtectConfigurationIdList omitted. + // se_PutKeywordRequest omitted. // se_PutOptedOutNumberRequest omitted. @@ -3129,14 +3667,20 @@ const se_RequestSenderIdRequest = (input: RequestSenderIdRequest, context: __Ser // se_SenderIdList omitted. +// se_SendMediaMessageRequest omitted. + // se_SendTextMessageRequest omitted. // se_SendVoiceMessageRequest omitted. +// se_SetAccountDefaultProtectConfigurationRequest omitted. + // se_SetDefaultMessageTypeRequest omitted. // se_SetDefaultSenderIdRequest omitted. +// se_SetMediaMessageSpendLimitOverrideRequest omitted. + // se_SetTextMessageSpendLimitOverrideRequest omitted. // se_SetVoiceMessageSpendLimitOverrideRequest omitted. @@ -3161,6 +3705,10 @@ const se_RequestSenderIdRequest = (input: RequestSenderIdRequest, context: __Ser // se_UpdatePoolRequest omitted. +// se_UpdateProtectConfigurationCountryRuleSetRequest omitted. + +// se_UpdateProtectConfigurationRequest omitted. + // se_UpdateSenderIdRequest omitted. // se_VerifiedDestinationNumberFilter omitted. @@ -3183,6 +3731,8 @@ const se_RequestSenderIdRequest = (input: RequestSenderIdRequest, context: __Ser // de_AssociateOriginationIdentityResult omitted. +// de_AssociateProtectConfigurationResult omitted. + // de_CloudWatchLogsDestination omitted. /** @@ -3196,6 +3746,7 @@ const de_ConfigurationSetInformation = (output: any, context: __SerdeContext): C DefaultMessageType: __expectString, DefaultSenderId: __expectString, EventDestinations: _json, + ProtectConfigurationId: __expectString, }) as any; }; @@ -3260,6 +3811,23 @@ const de_CreatePoolResult = (output: any, context: __SerdeContext): CreatePoolRe }) as any; }; +/** + * deserializeAws_json1_0CreateProtectConfigurationResult + */ +const de_CreateProtectConfigurationResult = ( + output: any, + context: __SerdeContext +): CreateProtectConfigurationResult => { + return take(output, { + AccountDefault: __expectBoolean, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DeletionProtectionEnabled: __expectBoolean, + ProtectConfigurationArn: __expectString, + ProtectConfigurationId: __expectString, + Tags: _json, + }) as any; +}; + // de_CreateRegistrationAssociationResult omitted. /** @@ -3324,6 +3892,8 @@ const de_CreateVerifiedDestinationNumberResult = ( }) as any; }; +// de_DeleteAccountDefaultProtectConfigurationResult omitted. + /** * deserializeAws_json1_0DeleteConfigurationSetResult */ @@ -3346,6 +3916,8 @@ const de_DeleteConfigurationSetResult = (output: any, context: __SerdeContext): // de_DeleteKeywordResult omitted. +// de_DeleteMediaMessageSpendLimitOverrideResult omitted. + /** * deserializeAws_json1_0DeleteOptedOutNumberResult */ @@ -3389,6 +3961,22 @@ const de_DeletePoolResult = (output: any, context: __SerdeContext): DeletePoolRe }) as any; }; +/** + * deserializeAws_json1_0DeleteProtectConfigurationResult + */ +const de_DeleteProtectConfigurationResult = ( + output: any, + context: __SerdeContext +): DeleteProtectConfigurationResult => { + return take(output, { + AccountDefault: __expectBoolean, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DeletionProtectionEnabled: __expectBoolean, + ProtectConfigurationArn: __expectString, + ProtectConfigurationId: __expectString, + }) as any; +}; + /** * deserializeAws_json1_0DeleteRegistrationAttachmentResult */ @@ -3501,6 +4089,19 @@ const de_DescribePoolsResult = (output: any, context: __SerdeContext): DescribeP }) as any; }; +/** + * deserializeAws_json1_0DescribeProtectConfigurationsResult + */ +const de_DescribeProtectConfigurationsResult = ( + output: any, + context: __SerdeContext +): DescribeProtectConfigurationsResult => { + return take(output, { + NextToken: __expectString, + ProtectConfigurations: (_: any) => de_ProtectConfigurationInformationList(_, context), + }) as any; +}; + /** * deserializeAws_json1_0DescribeRegistrationAttachmentsResult */ @@ -3566,6 +4167,8 @@ const de_DescribeVerifiedDestinationNumbersResult = ( // de_DisassociateOriginationIdentityResult omitted. +// de_DisassociateProtectConfigurationResult omitted. + /** * deserializeAws_json1_0DiscardRegistrationVersionResult */ @@ -3588,6 +4191,8 @@ const de_DiscardRegistrationVersionResult = ( // de_EventTypeList omitted. +// de_GetProtectConfigurationCountryRuleSetResult omitted. + // de_InternalServerException omitted. // de_KeywordInformation omitted. @@ -3726,6 +4331,38 @@ const de_PoolInformationList = (output: any, context: __SerdeContext): PoolInfor return retVal; }; +// de_ProtectConfigurationCountryRuleSet omitted. + +// de_ProtectConfigurationCountryRuleSetInformation omitted. + +/** + * deserializeAws_json1_0ProtectConfigurationInformation + */ +const de_ProtectConfigurationInformation = (output: any, context: __SerdeContext): ProtectConfigurationInformation => { + return take(output, { + AccountDefault: __expectBoolean, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DeletionProtectionEnabled: __expectBoolean, + ProtectConfigurationArn: __expectString, + ProtectConfigurationId: __expectString, + }) as any; +}; + +/** + * deserializeAws_json1_0ProtectConfigurationInformationList + */ +const de_ProtectConfigurationInformationList = ( + output: any, + context: __SerdeContext +): ProtectConfigurationInformation[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_ProtectConfigurationInformation(entry, context); + }); + return retVal; +}; + // de_PutKeywordResult omitted. /** @@ -3950,16 +4587,22 @@ const de_RequestPhoneNumberResult = (output: any, context: __SerdeContext): Requ // de_SenderIdInformationList omitted. +// de_SendMediaMessageResult omitted. + // de_SendTextMessageResult omitted. // de_SendVoiceMessageResult omitted. // de_ServiceQuotaExceededException omitted. +// de_SetAccountDefaultProtectConfigurationResult omitted. + // de_SetDefaultMessageTypeResult omitted. // de_SetDefaultSenderIdResult omitted. +// de_SetMediaMessageSpendLimitOverrideResult omitted. + // de_SetTextMessageSpendLimitOverrideResult omitted. // de_SetVoiceMessageSpendLimitOverrideResult omitted. @@ -4050,6 +4693,24 @@ const de_UpdatePoolResult = (output: any, context: __SerdeContext): UpdatePoolRe }) as any; }; +// de_UpdateProtectConfigurationCountryRuleSetResult omitted. + +/** + * deserializeAws_json1_0UpdateProtectConfigurationResult + */ +const de_UpdateProtectConfigurationResult = ( + output: any, + context: __SerdeContext +): UpdateProtectConfigurationResult => { + return take(output, { + AccountDefault: __expectBoolean, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DeletionProtectionEnabled: __expectBoolean, + ProtectConfigurationArn: __expectString, + ProtectConfigurationId: __expectString, + }) as any; +}; + // de_UpdateSenderIdResult omitted. // de_ValidationException omitted. diff --git a/codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json b/codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json index 548e2c2014da..d1f52708e96b 100644 --- a/codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json +++ b/codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json @@ -69,6 +69,10 @@ { "value": "ACCOUNT_TIER", "name": "ACCOUNT_TIER" + }, + { + "value": "DEFAULT_PROTECT_CONFIGURATION_ID", + "name": "DEFAULT_PROTECT_CONFIGURATION_ID" } ] } @@ -268,6 +272,96 @@ "smithy.api#output": {} } }, + "com.amazonaws.pinpointsmsvoicev2#AssociateProtectConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#AssociateProtectConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#AssociateProtectConfigurationResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Associate a protect configuration with a configuration set. This replaces the\n configuration sets current protect configuration. A configuration set can\n only be associated with one protect configuration at a time. A protect configuration can\n be associated with multiple configuration sets.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#AssociateProtectConfigurationRequest": { + "type": "structure", + "members": { + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "traits": { + "smithy.api#documentation": "

The name of the ConfigurationSet.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#AssociateProtectConfigurationResult": { + "type": "structure", + "members": { + "ConfigurationSetArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the configuration set.

", + "smithy.api#required": {} + } + }, + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", + "traits": { + "smithy.api#documentation": "

The name of the ConfigurationSet.

", + "smithy.api#required": {} + } + }, + "ProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the protect configuration.

", + "smithy.api#required": {} + } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#AttachmentBody": { "type": "blob", "traits": { @@ -337,7 +431,7 @@ "IamRoleArn": { "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role\n that is able to write event data to an Amazon CloudWatch destination.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management role\n that is able to write event data to an Amazon CloudWatch destination.

", "smithy.api#required": {} } }, @@ -405,6 +499,10 @@ { "value": "default-sender-id", "name": "DEFAULT_SENDER_ID" + }, + { + "value": "protect-configuration-id", + "name": "PROTECT_CONFIGURATION_ID" } ] } @@ -451,6 +549,12 @@ "smithy.api#documentation": "

The time when the ConfigurationSet was created, in UNIX epoch time format.

", "smithy.api#required": {} } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

" + } } }, "traits": { @@ -651,6 +755,22 @@ { "value": "VERIFICATION_ALREADY_COMPLETE", "name": "VERIFICATION_ALREADY_COMPLETE" + }, + { + "value": "PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT", + "name": "PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT" + }, + { + "value": "PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET", + "name": "PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET" + }, + { + "value": "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET", + "name": "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET" + }, + { + "value": "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION", + "name": "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION" } ] } @@ -843,13 +963,13 @@ "CloudWatchLogsDestination": { "target": "com.amazonaws.pinpointsmsvoicev2#CloudWatchLogsDestination", "traits": { - "smithy.api#documentation": "

An object that contains information about an event destination for logging to Amazon\n CloudWatch logs.

" + "smithy.api#documentation": "

An object that contains information about an event destination for logging to Amazon CloudWatch Logs.

" } }, "KinesisFirehoseDestination": { "target": "com.amazonaws.pinpointsmsvoicev2#KinesisFirehoseDestination", "traits": { - "smithy.api#documentation": "

An object that contains information about an event destination for logging to Amazon\n Kinesis Data Firehose.

" + "smithy.api#documentation": "

An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

" } }, "SnsDestination": { @@ -1161,6 +1281,113 @@ "smithy.api#output": {} } }, + "com.amazonaws.pinpointsmsvoicev2#CreateProtectConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateProtectConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateProtectConfigurationResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Create a new protect configuration. By default all country rule sets for each capability are set to ALLOW. Update the country rule sets using UpdateProtectConfigurationCountryRuleSet. A protect configurations name is stored as a Tag with the key set to Name and value as the name of the protect configuration.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#CreateProtectConfigurationRequest": { + "type": "structure", + "members": { + "ClientToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#ClientToken", + "traits": { + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If you don't specify a client token, a randomly generated token is used for the\n request to ensure idempotency.

", + "smithy.api#idempotencyToken": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

When set to true deletion protection is enabled. By default this is set to false.\n

" + } + }, + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "traits": { + "smithy.api#documentation": "

An array of key and value pair tags that are associated with the resource.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#CreateProtectConfigurationResult": { + "type": "structure", + "members": { + "ProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the protect configuration.

", + "smithy.api#required": {} + } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The time when the protect configuration was created, in UNIX epoch time format.

", + "smithy.api#required": {} + } + }, + "AccountDefault": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

This is true if the protect configuration is set as your account default protect configuration.

", + "smithy.api#required": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

When set to true deletion protection is enabled. By default this is set to false.\n

", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "traits": { + "smithy.api#documentation": "

An array of key and value pair tags that are associated with the resource.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#CreateRegistration": { "type": "operation", "input": { @@ -1711,6 +1938,64 @@ "smithy.api#output": {} } }, + "com.amazonaws.pinpointsmsvoicev2#DeleteAccountDefaultProtectConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteAccountDefaultProtectConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteAccountDefaultProtectConfigurationResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Removes the current account default protect configuration.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteAccountDefaultProtectConfigurationRequest": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteAccountDefaultProtectConfigurationResult": { + "type": "structure", + "members": { + "DefaultProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the account default protect configuration.

", + "smithy.api#required": {} + } + }, + "DefaultProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", + "traits": { + "smithy.api#documentation": "

The unique identifier of the account default protect configuration.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSet": { "type": "operation", "input": { @@ -2108,27 +2393,21 @@ "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutList": { + "com.amazonaws.pinpointsmsvoicev2#DeleteMediaMessageSpendLimitOverride": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteMediaMessageSpendLimitOverrideRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteMediaMessageSpendLimitOverrideResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -2137,36 +2416,89 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are\n deleted.

\n

If the specified opt-out list name doesn't exist or is in-use by an origination phone\n number or pool, an error is returned.

" + "smithy.api#documentation": "

Deletes an account-level monthly spending limit override for sending multimedia messages (MMS).\n Deleting a spend limit override will set the EnforcedLimit to equal the\n MaxLimit, which is controlled by Amazon Web Services. For more\n information on spend limits (quotas) see Quotas for Server Migration Service\n in the Server Migration Service User Guide.

" } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteMediaMessageSpendLimitOverrideRequest": { "type": "structure", - "members": { - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", - "traits": { - "smithy.api#documentation": "

The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and\n OptOutListArn.

", - "smithy.api#required": {} - } - } - }, + "members": {}, "traits": { "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteMediaMessageSpendLimitOverrideResult": { "type": "structure", "members": { - "OptOutListArn": { - "target": "smithy.api#String", + "MonthlyLimit": { + "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the OptOutList that was removed.

" + "smithy.api#documentation": "

The current monthly limit, in US dollars.

" } - }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", - "traits": { + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutList": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are\n deleted.

\n

If the specified opt-out list name doesn't exist or is in-use by an origination phone\n number or pool, an error is returned.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListRequest": { + "type": "structure", + "members": { + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "traits": { + "smithy.api#documentation": "

The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and\n OptOutListArn.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListResult": { + "type": "structure", + "members": { + "OptOutListArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the OptOutList that was removed.

" + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "traits": { "smithy.api#documentation": "

The name of the OptOutList that was removed.

" } }, @@ -2398,6 +2730,98 @@ "smithy.api#output": {} } }, + "com.amazonaws.pinpointsmsvoicev2#DeleteProtectConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteProtectConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteProtectConfigurationResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Permanently delete the protect configuration. The protect configuration must have deletion protection disabled and must not be associated as the account default protect configuration or associated with a configuration set.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteProtectConfigurationRequest": { + "type": "structure", + "members": { + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteProtectConfigurationResult": { + "type": "structure", + "members": { + "ProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the protect configuration.

", + "smithy.api#required": {} + } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The time when the protect configuration was created, in UNIX epoch time format.

", + "smithy.api#required": {} + } + }, + "AccountDefault": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

This is true if the protect configuration is set as your account default protect configuration.

", + "smithy.api#required": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#DeleteRegistration": { "type": "operation", "input": { @@ -3571,6 +3995,90 @@ "smithy.api#output": {} } }, + "com.amazonaws.pinpointsmsvoicev2#DescribeProtectConfigurations": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeProtectConfigurationsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeProtectConfigurationsResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves the protect configurations that match any of filters. If a filter isn’t provided then all protect configurations are returned.

", + "smithy.api#paginated": { + "items": "ProtectConfigurations" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeProtectConfigurationsRequest": { + "type": "structure", + "members": { + "ProtectConfigurationIds": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdList", + "traits": { + "smithy.api#documentation": "

An array of protect configuration identifiers to search for.

" + } + }, + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationFilterList", + "traits": { + "smithy.api#documentation": "

An array of ProtectConfigurationFilter objects to filter the results.

" + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

" + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return per each request.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeProtectConfigurationsResult": { + "type": "structure", + "members": { + "ProtectConfigurations": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationInformationList", + "traits": { + "smithy.api#documentation": "

An array of ProtectConfigurationInformation objects that contain the details for the request.

" + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationAttachments": { "type": "operation", "input": { @@ -4634,13 +5142,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersion": { + "com.amazonaws.pinpointsmsvoicev2#DisassociateProtectConfiguration": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateProtectConfigurationRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateProtectConfigurationResult" }, "errors": [ { @@ -4663,16 +5171,23 @@ } ], "traits": { - "smithy.api#documentation": "

Discard the current version of the registration.

" + "smithy.api#documentation": "

Disassociate a protect configuration from a configuration set.

" } }, - "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionRequest": { + "com.amazonaws.pinpointsmsvoicev2#DisassociateProtectConfigurationRequest": { "type": "structure", "members": { - "RegistrationId": { - "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", "traits": { - "smithy.api#documentation": "

The unique identifier for the registration.

", + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "traits": { + "smithy.api#documentation": "

The name of the ConfigurationSet.

", "smithy.api#required": {} } } @@ -4681,41 +5196,34 @@ "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionResult": { + "com.amazonaws.pinpointsmsvoicev2#DisassociateProtectConfigurationResult": { "type": "structure", "members": { - "RegistrationArn": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the registration.

", - "smithy.api#required": {} - } - }, - "RegistrationId": { + "ConfigurationSetArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

The unique identifier for the registration.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the configuration set.

", "smithy.api#required": {} } }, - "VersionNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", "traits": { - "smithy.api#documentation": "

The version number of the registration.

", + "smithy.api#documentation": "

The name of the ConfigurationSet.

", "smithy.api#required": {} } }, - "RegistrationVersionStatus": { - "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatus", + "ProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", "traits": { - "smithy.api#documentation": "

The status of the registration version.

\n
    \n
  • \n

    \n DRAFT: The initial status of a registration version after it’s created.

    \n
  • \n
  • \n

    \n SUBMITTED: Your registration has been submitted.

    \n
  • \n
  • \n

    \n REVIEWING: Your registration has been accepted and is being reviewed.

    \n
  • \n
  • \n

    \n APPROVED: Your registration has been approved.

    \n
  • \n
  • \n

    \n DISCARDED: You've abandon this version of their registration to start over with a new version.

    \n
  • \n
  • \n

    \n DENIED: You must fix your registration and resubmit it.

    \n
  • \n
  • \n

    \n REVOKED: Your previously approved registration has been revoked.

    \n
  • \n
  • \n

    \n ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

    \n
  • \n
", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the protect configuration.

", "smithy.api#required": {} } }, - "RegistrationVersionStatusHistory": { - "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatusHistory", + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", "traits": { - "smithy.api#documentation": "

The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

", + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", "smithy.api#required": {} } } @@ -4724,19 +5232,109 @@ "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#EventDestination": { - "type": "structure", - "members": { - "EventDestinationName": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationName", - "traits": { - "smithy.api#documentation": "

The name of the EventDestination.

", - "smithy.api#required": {} - } - }, - "Enabled": { - "target": "smithy.api#Boolean", - "traits": { + "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Discard the current version of the registration.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionRequest": { + "type": "structure", + "members": { + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the registration.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionResult": { + "type": "structure", + "members": { + "RegistrationArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the registration.

", + "smithy.api#required": {} + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier for the registration.

", + "smithy.api#required": {} + } + }, + "VersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

The version number of the registration.

", + "smithy.api#required": {} + } + }, + "RegistrationVersionStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatus", + "traits": { + "smithy.api#documentation": "

The status of the registration version.

\n
    \n
  • \n

    \n DRAFT: The initial status of a registration version after it’s created.

    \n
  • \n
  • \n

    \n SUBMITTED: Your registration has been submitted.

    \n
  • \n
  • \n

    \n REVIEWING: Your registration has been accepted and is being reviewed.

    \n
  • \n
  • \n

    \n APPROVED: Your registration has been approved.

    \n
  • \n
  • \n

    \n DISCARDED: You've abandon this version of their registration to start over with a new version.

    \n
  • \n
  • \n

    \n DENIED: You must fix your registration and resubmit it.

    \n
  • \n
  • \n

    \n REVOKED: Your previously approved registration has been revoked.

    \n
  • \n
  • \n

    \n ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

    \n
  • \n
", + "smithy.api#required": {} + } + }, + "RegistrationVersionStatusHistory": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatusHistory", + "traits": { + "smithy.api#documentation": "

The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#EventDestination": { + "type": "structure", + "members": { + "EventDestinationName": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationName", + "traits": { + "smithy.api#documentation": "

The name of the EventDestination.

", + "smithy.api#required": {} + } + }, + "Enabled": { + "target": "smithy.api#Boolean", + "traits": { "smithy.api#documentation": "

When set to true events will be logged.

", "smithy.api#required": {} } @@ -4757,7 +5355,7 @@ "KinesisFirehoseDestination": { "target": "com.amazonaws.pinpointsmsvoicev2#KinesisFirehoseDestination", "traits": { - "smithy.api#documentation": "

An object that contains information about an event destination for logging to Amazon\n Kinesis Data Firehose.

" + "smithy.api#documentation": "

An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

" } }, "SnsDestination": { @@ -4768,7 +5366,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about an event destination.

\n

Event destinations are associated with configuration sets, which enable you to publish\n message sending events to CloudWatch, Kinesis Data Firehose,or Amazon SNS.

" + "smithy.api#documentation": "

Contains information about an event destination.

\n

Event destinations are associated with configuration sets, which enable you to publish\n message sending events to CloudWatch, Kinesis Data Firehose, or Amazon SNS.

" } }, "com.amazonaws.pinpointsmsvoicev2#EventDestinationList": { @@ -4890,6 +5488,74 @@ { "value": "VOICE_TTL_EXPIRED", "name": "VOICE_TTL_EXPIRED" + }, + { + "value": "MEDIA_ALL", + "name": "MEDIA_ALL" + }, + { + "value": "MEDIA_PENDING", + "name": "MEDIA_PENDING" + }, + { + "value": "MEDIA_QUEUED", + "name": "MEDIA_QUEUED" + }, + { + "value": "MEDIA_SUCCESSFUL", + "name": "MEDIA_SUCCESSFUL" + }, + { + "value": "MEDIA_DELIVERED", + "name": "MEDIA_DELIVERED" + }, + { + "value": "MEDIA_INVALID", + "name": "MEDIA_INVALID" + }, + { + "value": "MEDIA_INVALID_MESSAGE", + "name": "MEDIA_INVALID_MESSAGE" + }, + { + "value": "MEDIA_UNREACHABLE", + "name": "MEDIA_UNREACHABLE" + }, + { + "value": "MEDIA_CARRIER_UNREACHABLE", + "name": "MEDIA_CARRIER_UNREACHABLE" + }, + { + "value": "MEDIA_BLOCKED", + "name": "MEDIA_BLOCKED" + }, + { + "value": "MEDIA_CARRIER_BLOCKED", + "name": "MEDIA_CARRIER_BLOCKED" + }, + { + "value": "MEDIA_SPAM", + "name": "MEDIA_SPAM" + }, + { + "value": "MEDIA_UNKNOWN", + "name": "MEDIA_UNKNOWN" + }, + { + "value": "MEDIA_TTL_EXPIRED", + "name": "MEDIA_TTL_EXPIRED" + }, + { + "value": "MEDIA_FILE_INACCESSIBLE", + "name": "MEDIA_FILE_INACCESSIBLE" + }, + { + "value": "MEDIA_FILE_TYPE_UNSUPPORTED", + "name": "MEDIA_FILE_TYPE_UNSUPPORTED" + }, + { + "value": "MEDIA_FILE_SIZE_EXCEEDED", + "name": "MEDIA_FILE_SIZE_EXCEEDED" } ] } @@ -4902,7 +5568,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 25 + "max": 43 } } }, @@ -4970,9 +5636,9 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 100 + "max": 128 }, - "smithy.api#pattern": "^[\\.:A-Za-z0-9_-]+$" + "smithy.api#pattern": "^[/\\.:A-Za-z0-9_-]+$" } }, "com.amazonaws.pinpointsmsvoicev2#FilterValueList": { @@ -4987,6 +5653,93 @@ } } }, + "com.amazonaws.pinpointsmsvoicev2#GetProtectConfigurationCountryRuleSet": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#GetProtectConfigurationCountryRuleSetRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#GetProtectConfigurationCountryRuleSetResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieve the CountryRuleSet for the specified NumberCapability from a protect configuration.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#GetProtectConfigurationCountryRuleSetRequest": { + "type": "structure", + "members": { + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "NumberCapability": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapability", + "traits": { + "smithy.api#documentation": "

The capability type to return the CountryRuleSet for. Valid values are SMS, VOICE, or MMS.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#GetProtectConfigurationCountryRuleSetResult": { + "type": "structure", + "members": { + "ProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the protect configuration.

", + "smithy.api#required": {} + } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "NumberCapability": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapability", + "traits": { + "smithy.api#documentation": "

The capability type associated with the returned ProtectConfigurationCountryRuleSetInformation objects.

", + "smithy.api#required": {} + } + }, + "CountryRuleSet": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationCountryRuleSet", + "traits": { + "smithy.api#documentation": "

A map of ProtectConfigurationCountryRuleSetInformation objects that contain the\n details for the requested NumberCapability. The Key is the two-letter ISO country code. For a list of supported ISO country codes, see Supported countries and regions (SMS channel) in the Amazon Pinpoint SMS user guide.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#IamRoleArn": { "type": "string", "traits": { @@ -5161,7 +5914,7 @@ "IamRoleArn": { "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", "traits": { - "smithy.api#documentation": "

The ARN of an Amazon Identity and Access Management (IAM) role that is able to write\n event data to an Amazon Firehose destination.

", + "smithy.api#documentation": "

The ARN of an Identity and Access Management role that is able to write\n event data to an Amazon Kinesis Data Firehose destination.

", "smithy.api#required": {} } }, @@ -5174,7 +5927,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the Identity and Access Management (IAM) role associated with an Kinesis Data Firehose event\n destination.

\n

Event destinations, such as Kinesis Data Firehose, are associated with configuration\n sets, which enable you to publish message sending events.

" + "smithy.api#documentation": "

Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the Identity and Access Management (IAM) role associated with a Kinesis Data Firehose event\n destination.

\n

Event destinations, such as Kinesis Data Firehose, are associated with configuration\n sets, which enable you to publish message sending events.

" } }, "com.amazonaws.pinpointsmsvoicev2#LanguageCode": { @@ -5533,6 +6286,38 @@ } } }, + "com.amazonaws.pinpointsmsvoicev2#MediaMessageOriginationIdentity": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/\\+-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#MediaUrlList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#MediaUrlValue" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#MediaUrlValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^s3://([a-z0-9\\.-]{3,63})/(.+)$" + } + }, "com.amazonaws.pinpointsmsvoicev2#MessageType": { "type": "string", "traits": { @@ -5601,6 +6386,10 @@ { "value": "VOICE", "name": "VOICE" + }, + { + "value": "MMS", + "name": "MMS" } ] } @@ -5613,7 +6402,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 2 + "max": 3 } } }, @@ -6152,6 +6941,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#AssociateOriginationIdentity" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#AssociateProtectConfiguration" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#CreateConfigurationSet" }, @@ -6164,6 +6956,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#CreatePool" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateProtectConfiguration" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistration" }, @@ -6179,6 +6974,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#CreateVerifiedDestinationNumber" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteAccountDefaultProtectConfiguration" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSet" }, @@ -6194,6 +6992,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#DeleteKeyword" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteMediaMessageSpendLimitOverride" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumber" }, @@ -6203,6 +7004,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#DeletePool" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteProtectConfiguration" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistration" }, @@ -6245,6 +7049,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#DescribePools" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeProtectConfigurations" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationAttachments" }, @@ -6278,9 +7085,15 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentity" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateProtectConfiguration" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersion" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#GetProtectConfigurationCountryRuleSet" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentities" }, @@ -6314,18 +7127,27 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#SendDestinationNumberVerificationCode" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SendMediaMessage" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#SendTextMessage" }, { "target": "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessage" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SetAccountDefaultProtectConfiguration" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageType" }, { "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderId" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SetMediaMessageSpendLimitOverride" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverride" }, @@ -6350,6 +7172,12 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePool" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfiguration" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationCountryRuleSet" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#UpdateSenderId" }, @@ -6367,7 +7195,7 @@ "name": "sms-voice" }, "aws.protocols#awsJson1_0": {}, - "smithy.api#documentation": "

Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference.\n This guide provides information about Amazon Pinpoint SMS and Voice, version 2 API\n resources, including supported HTTP methods, parameters, and schemas.

\n

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with\n your recipients across multiple messaging channels. The Amazon Pinpoint SMS and\n Voice, version 2 API provides programmatic access to options that are unique to the SMS\n and voice channels and supplements the resources provided by the Amazon Pinpoint\n API.

\n

If you're new to Amazon Pinpoint, it's also helpful to review the \n Amazon Pinpoint Developer Guide. The Amazon Pinpoint\n Developer Guide provides tutorials, code samples, and procedures that\n demonstrate how to use Amazon Pinpoint features programmatically and how to integrate\n Amazon Pinpoint functionality into mobile apps and other types of applications.\n The guide also provides key information, such as Amazon Pinpoint integration with\n other Amazon Web Services services, and the quotas that apply to use of the\n service.

\n

\n Regional availability\n

\n

The Amazon Pinpoint SMS and Voice, version 2 API Reference is\n available in several Amazon Web Services Regions and it provides an endpoint for each of\n these Regions. For a list of all the Regions and endpoints where the API is currently\n available, see Amazon Web Services Service Endpoints and Amazon Pinpoint\n endpoints and quotas in the Amazon Web Services General Reference. To\n learn more about Amazon Web Services Regions, see Managing\n Amazon Web Services Regions in the Amazon Web Services General\n Reference.

\n

In each Region, Amazon Web Services maintains multiple Availability Zones. These\n Availability Zones are physically isolated from each other, but are united by private,\n low-latency, high-throughput, and highly redundant network connections. These\n Availability Zones enable us to provide very high levels of availability and redundancy,\n while also minimizing latency. To learn more about the number of Availability Zones that\n are available in each Region, see Amazon Web Services\n Global Infrastructure.\n

", + "smithy.api#documentation": "

Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference.\n This guide provides information about Amazon Pinpoint SMS and Voice, version 2 API\n resources, including supported HTTP methods, parameters, and schemas.

\n

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with\n your recipients across multiple messaging channels. The Amazon Pinpoint SMS and\n Voice, version 2 API provides programmatic access to options that are unique to the SMS\n and voice channels. Amazon Pinpoint SMS and Voice, version 2 resources such as phone numbers, sender IDs, and opt-out lists can be used by the Amazon Pinpoint API.

\n

If you're new to Amazon Pinpoint SMS, it's also helpful to review the \n Amazon Pinpoint SMS User Guide. The Amazon Pinpoint\n Developer Guide provides tutorials, code samples, and procedures that\n demonstrate how to use Amazon Pinpoint SMS features programmatically and how to integrate\n Amazon Pinpoint functionality into mobile apps and other types of applications.\n The guide also provides key information, such as Amazon Pinpoint integration with\n other Amazon Web Services services, and the quotas that apply to use of the\n service.

\n

\n Regional availability\n

\n

The Amazon Pinpoint SMS and Voice, version 2 API Reference is\n available in several Amazon Web Services Regions and it provides an endpoint for each of\n these Regions. For a list of all the Regions and endpoints where the API is currently\n available, see Amazon Web Services Service Endpoints and Amazon Pinpoint\n endpoints and quotas in the Amazon Web Services General Reference. To\n learn more about Amazon Web Services Regions, see Managing\n Amazon Web Services Regions in the Amazon Web Services General\n Reference.

\n

In each Region, Amazon Web Services maintains multiple Availability Zones. These\n Availability Zones are physically isolated from each other, but are united by private,\n low-latency, high-throughput, and highly redundant network connections. These\n Availability Zones enable us to provide very high levels of availability and redundancy,\n while also minimizing latency. To learn more about the number of Availability Zones that\n are available in each Region, see Amazon Web Services\n Global Infrastructure.\n

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -7394,6 +8222,197 @@ ] } }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^arn:\\S+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationCountryRuleSet": { + "type": "map", + "key": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode" + }, + "value": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationCountryRuleSetInformation" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 300 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationCountryRuleSetInformation": { + "type": "structure", + "members": { + "ProtectStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectStatus", + "traits": { + "smithy.api#documentation": "

The types of protection that can be used.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The types of statuses that can be used.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationFilterName", + "traits": { + "smithy.api#documentation": "

The name of the attribute to filter on.

", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

An array of values to filter for.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The filter definition for filtering protect configurations that meet a specified criteria.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "account-default", + "name": "ACCOUNT_DEFAULT" + }, + { + "value": "deletion-protection-enabled", + "name": "DELETION_PROTECTION_ENABLED" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[A-Za-z0-9_-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationInformation": { + "type": "structure", + "members": { + "ProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the protect configuration.

", + "smithy.api#required": {} + } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The time when the protect configuration was created, in UNIX epoch time format.

", + "smithy.api#required": {} + } + }, + "AccountDefault": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

This is true if the protect configuration is set as your account default protect configuration.

", + "smithy.api#required": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Provides information on the specified protect configuration.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationInformation" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#ProtectStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ALLOW", + "name": "ALLOW" + }, + { + "value": "BLOCK", + "name": "BLOCK" + } + ] + } + }, "com.amazonaws.pinpointsmsvoicev2#PutKeyword": { "type": "operation", "input": { @@ -9516,6 +10535,10 @@ { "value": "verified-destination-number", "name": "VERIFIED_DESTINATION_NUMBER" + }, + { + "value": "protect-configuration", + "name": "PROTECT_CONFIGURATION" } ] } @@ -9725,6 +10748,126 @@ "smithy.api#output": {} } }, + "com.amazonaws.pinpointsmsvoicev2#SendMediaMessage": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#SendMediaMessageRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#SendMediaMessageResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new multimedia message (MMS) and sends it to a recipient's phone number.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendMediaMessageRequest": { + "type": "structure", + "members": { + "DestinationPhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

The destination phone number in E.164 format.

", + "smithy.api#required": {} + } + }, + "OriginationIdentity": { + "target": "com.amazonaws.pinpointsmsvoicev2#MediaMessageOriginationIdentity", + "traits": { + "smithy.api#documentation": "

The origination identity of the message. This can be either the PhoneNumber,\n PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

", + "smithy.api#required": {} + } + }, + "MessageBody": { + "target": "com.amazonaws.pinpointsmsvoicev2#TextMessageBody", + "traits": { + "smithy.api#documentation": "

The text body of the message.

" + } + }, + "MediaUrls": { + "target": "com.amazonaws.pinpointsmsvoicev2#MediaUrlList", + "traits": { + "smithy.api#documentation": "

An array of URLs to each media file to send.

\n

The media files have to be stored in a publicly available S3 bucket. Supported media file formats\n are listed in MMS file types, size and character limits. For more information on creating an S3 bucket and managing\n objects, see Creating a bucket and Uploading objects in the S3 user guide.

" + } + }, + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "traits": { + "smithy.api#documentation": "

The name of the configuration set to use. This can be either the ConfigurationSetName\n or ConfigurationSetArn.

" + } + }, + "MaxPrice": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxPrice", + "traits": { + "smithy.api#documentation": "

The maximum amount that you want to spend, in US dollars, per each MMS message.

" + } + }, + "TimeToLive": { + "target": "com.amazonaws.pinpointsmsvoicev2#TimeToLive", + "traits": { + "smithy.api#documentation": "

How long the text message is valid for. By default this is 72 hours.

" + } + }, + "Context": { + "target": "com.amazonaws.pinpointsmsvoicev2#ContextMap", + "traits": { + "smithy.api#documentation": "

You can specify custom data in this field. If you do, that data is logged to the event\n destination.

" + } + }, + "DryRun": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

When set to true, the message is checked and validated, but isn't sent to the end\n recipient.

" + } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier of the protect configuration to use.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendMediaMessageResult": { + "type": "structure", + "members": { + "MessageId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier for the message.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#SendTextMessage": { "type": "operation", "input": { @@ -9830,6 +10973,12 @@ "smithy.api#default": false, "smithy.api#documentation": "

When set to true, the message is checked and validated, but isn't sent to the end\n recipient.

" } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

" + } } }, "traits": { @@ -9950,6 +11099,12 @@ "smithy.api#default": false, "smithy.api#documentation": "

When set to true, the message is checked and validated, but isn't sent to the end\n recipient.

" } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

" + } } }, "traits": { @@ -10200,6 +11355,10 @@ "value": "KEYWORDS_PER_POOL", "name": "KEYWORDS_PER_POOL" }, + { + "value": "MONTHLY_SPEND_LIMIT_REACHED_FOR_MEDIA", + "name": "MONTHLY_SPEND_LIMIT_REACHED_FOR_MEDIA" + }, { "value": "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT", "name": "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT" @@ -10259,10 +11418,80 @@ { "value": "VERIFICATION_ATTEMPTS_PER_DAY", "name": "VERIFICATION_ATTEMPTS_PER_DAY" + }, + { + "value": "PROTECT_CONFIGURATIONS_PER_ACCOUNT", + "name": "PROTECT_CONFIGURATIONS_PER_ACCOUNT" } ] } }, + "com.amazonaws.pinpointsmsvoicev2#SetAccountDefaultProtectConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#SetAccountDefaultProtectConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#SetAccountDefaultProtectConfigurationResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Set a protect configuration as your account default. You can only have one account\n default protect configuration at a time. The current account default protect configuration is replaced with the provided protect configuration.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#SetAccountDefaultProtectConfigurationRequest": { + "type": "structure", + "members": { + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SetAccountDefaultProtectConfigurationResult": { + "type": "structure", + "members": { + "DefaultProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the account default protect configuration.

", + "smithy.api#required": {} + } + }, + "DefaultProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", + "traits": { + "smithy.api#documentation": "

The unique identifier of the account default protect configuration.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageType": { "type": "operation", "input": { @@ -10417,6 +11646,61 @@ "smithy.api#output": {} } }, + "com.amazonaws.pinpointsmsvoicev2#SetMediaMessageSpendLimitOverride": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#SetMediaMessageSpendLimitOverrideRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#SetMediaMessageSpendLimitOverrideResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Sets an account level monthly spend limit override for sending MMS messages. The\n requested spend limit must be less than or equal to the MaxLimit, which is\n set by Amazon Web Services.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#SetMediaMessageSpendLimitOverrideRequest": { + "type": "structure", + "members": { + "MonthlyLimit": { + "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "traits": { + "smithy.api#documentation": "

The new monthly limit to enforce on text messages.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SetMediaMessageSpendLimitOverrideResult": { + "type": "structure", + "members": { + "MonthlyLimit": { + "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "traits": { + "smithy.api#documentation": "

The current monthly limit to enforce on sending text messages.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverride": { "type": "operation", "input": { @@ -10608,6 +11892,10 @@ { "value": "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT", "name": "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT" + }, + { + "value": "MEDIA_MESSAGE_MONTHLY_SPEND_LIMIT", + "name": "MEDIA_MESSAGE_MONTHLY_SPEND_LIMIT" } ] } @@ -11512,6 +12800,195 @@ "smithy.api#output": {} } }, + "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Update the setting for an existing protect configuration.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationCountryRuleSet": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationCountryRuleSetRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationCountryRuleSetResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Update a country rule set to ALLOW or BLOCK messages to be sent to the specified destination counties. You can update one or multiple countries at a time. The updates are only applied to the specified NumberCapability type.

" + } + }, + "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationCountryRuleSetRequest": { + "type": "structure", + "members": { + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "NumberCapability": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapability", + "traits": { + "smithy.api#documentation": "

The number capability to apply the CountryRuleSetUpdates updates to.

", + "smithy.api#required": {} + } + }, + "CountryRuleSetUpdates": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationCountryRuleSet", + "traits": { + "smithy.api#documentation": "

A map of ProtectConfigurationCountryRuleSetInformation objects that contain the\n details for the requested NumberCapability. The Key is the two-letter ISO country code. For a list of supported ISO country codes, see Supported countries and regions (SMS channel) in the Amazon Pinpoint SMS user guide.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationCountryRuleSetResult": { + "type": "structure", + "members": { + "ProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the protect configuration.

", + "smithy.api#required": {} + } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "NumberCapability": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapability", + "traits": { + "smithy.api#documentation": "

The number capability that was updated

", + "smithy.api#required": {} + } + }, + "CountryRuleSet": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationCountryRuleSet", + "traits": { + "smithy.api#documentation": "

An array of ProtectConfigurationCountryRuleSetInformation containing the rules for the NumberCapability.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationRequest": { + "type": "structure", + "members": { + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationIdOrArn", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

When set to true deletion protection is enabled. By default this is set to false.\n

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#UpdateProtectConfigurationResult": { + "type": "structure", + "members": { + "ProtectConfigurationArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the protect configuration.

", + "smithy.api#required": {} + } + }, + "ProtectConfigurationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ProtectConfigurationId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the protect configuration.

", + "smithy.api#required": {} + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The time when the protect configuration was created, in UNIX epoch time format.

", + "smithy.api#required": {} + } + }, + "AccountDefault": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

This is true if the protect configuration is set as your account default protect configuration.

", + "smithy.api#required": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.pinpointsmsvoicev2#UpdateSenderId": { "type": "operation", "input": { @@ -11746,6 +13223,10 @@ "value": "MAXIMUM_SIZE_EXCEEDED", "name": "MAXIMUM_SIZE_EXCEEDED" }, + { + "value": "MEDIA_TYPE_NOT_SUPPORTED", + "name": "MEDIA_TYPE_NOT_SUPPORTED" + }, { "value": "MISSING_PARAMETER", "name": "MISSING_PARAMETER"