Skip to content

Commit

Permalink
feat(client-pinpoint-sms-voice-v2): Use rule overrides to always allo…
Browse files Browse the repository at this point in the history
…w or always block messages to specific phone numbers. Use message feedback to monitor if a customer interacts with your message.
  • Loading branch information
awstools committed Nov 15, 2024
1 parent bee0309 commit 8381a63
Show file tree
Hide file tree
Showing 21 changed files with 2,337 additions and 22 deletions.
40 changes: 40 additions & 0 deletions clients/client-pinpoint-sms-voice-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,14 @@ 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/)

</details>
<details>
<summary>
DeleteProtectConfigurationRuleSetNumberOverride
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/DeleteProtectConfigurationRuleSetNumberOverrideCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteProtectConfigurationRuleSetNumberOverrideCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/DeleteProtectConfigurationRuleSetNumberOverrideCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -674,6 +682,14 @@ ListPoolOriginationIdentities

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/ListPoolOriginationIdentitiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/ListPoolOriginationIdentitiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/ListPoolOriginationIdentitiesCommandOutput/)

</details>
<details>
<summary>
ListProtectConfigurationRuleSetNumberOverrides
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/ListProtectConfigurationRuleSetNumberOverridesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/ListProtectConfigurationRuleSetNumberOverridesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/ListProtectConfigurationRuleSetNumberOverridesCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -698,6 +714,14 @@ PutKeyword

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/PutKeywordCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutKeywordCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutKeywordCommandOutput/)

</details>
<details>
<summary>
PutMessageFeedback
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/PutMessageFeedbackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutMessageFeedbackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutMessageFeedbackCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -706,6 +730,14 @@ PutOptedOutNumber

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/PutOptedOutNumberCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutOptedOutNumberCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutOptedOutNumberCommandOutput/)

</details>
<details>
<summary>
PutProtectConfigurationRuleSetNumberOverride
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/PutProtectConfigurationRuleSetNumberOverrideCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutProtectConfigurationRuleSetNumberOverrideCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/PutProtectConfigurationRuleSetNumberOverrideCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -794,6 +826,14 @@ 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/)

</details>
<details>
<summary>
SetDefaultMessageFeedbackEnabled
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/SetDefaultMessageFeedbackEnabledCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SetDefaultMessageFeedbackEnabledCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/SetDefaultMessageFeedbackEnabledCommandOutput/)

</details>
<details>
<summary>
Expand Down
115 changes: 115 additions & 0 deletions clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ import {
DeleteProtectConfigurationCommandInput,
DeleteProtectConfigurationCommandOutput,
} from "./commands/DeleteProtectConfigurationCommand";
import {
DeleteProtectConfigurationRuleSetNumberOverrideCommand,
DeleteProtectConfigurationRuleSetNumberOverrideCommandInput,
DeleteProtectConfigurationRuleSetNumberOverrideCommandOutput,
} from "./commands/DeleteProtectConfigurationRuleSetNumberOverrideCommand";
import {
DeleteRegistrationAttachmentCommand,
DeleteRegistrationAttachmentCommandInput,
Expand Down Expand Up @@ -269,6 +274,11 @@ import {
ListPoolOriginationIdentitiesCommandInput,
ListPoolOriginationIdentitiesCommandOutput,
} from "./commands/ListPoolOriginationIdentitiesCommand";
import {
ListProtectConfigurationRuleSetNumberOverridesCommand,
ListProtectConfigurationRuleSetNumberOverridesCommandInput,
ListProtectConfigurationRuleSetNumberOverridesCommandOutput,
} from "./commands/ListProtectConfigurationRuleSetNumberOverridesCommand";
import {
ListRegistrationAssociationsCommand,
ListRegistrationAssociationsCommandInput,
Expand All @@ -280,11 +290,21 @@ import {
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { PutKeywordCommand, PutKeywordCommandInput, PutKeywordCommandOutput } from "./commands/PutKeywordCommand";
import {
PutMessageFeedbackCommand,
PutMessageFeedbackCommandInput,
PutMessageFeedbackCommandOutput,
} from "./commands/PutMessageFeedbackCommand";
import {
PutOptedOutNumberCommand,
PutOptedOutNumberCommandInput,
PutOptedOutNumberCommandOutput,
} from "./commands/PutOptedOutNumberCommand";
import {
PutProtectConfigurationRuleSetNumberOverrideCommand,
PutProtectConfigurationRuleSetNumberOverrideCommandInput,
PutProtectConfigurationRuleSetNumberOverrideCommandOutput,
} from "./commands/PutProtectConfigurationRuleSetNumberOverrideCommand";
import {
PutRegistrationFieldValueCommand,
PutRegistrationFieldValueCommandInput,
Expand Down Expand Up @@ -340,6 +360,11 @@ import {
SetAccountDefaultProtectConfigurationCommandInput,
SetAccountDefaultProtectConfigurationCommandOutput,
} from "./commands/SetAccountDefaultProtectConfigurationCommand";
import {
SetDefaultMessageFeedbackEnabledCommand,
SetDefaultMessageFeedbackEnabledCommandInput,
SetDefaultMessageFeedbackEnabledCommandOutput,
} from "./commands/SetDefaultMessageFeedbackEnabledCommand";
import {
SetDefaultMessageTypeCommand,
SetDefaultMessageTypeCommandInput,
Expand Down Expand Up @@ -433,6 +458,7 @@ const commands = {
DeleteOptOutListCommand,
DeletePoolCommand,
DeleteProtectConfigurationCommand,
DeleteProtectConfigurationRuleSetNumberOverrideCommand,
DeleteRegistrationCommand,
DeleteRegistrationAttachmentCommand,
DeleteRegistrationFieldValueCommand,
Expand Down Expand Up @@ -465,10 +491,13 @@ const commands = {
GetProtectConfigurationCountryRuleSetCommand,
GetResourcePolicyCommand,
ListPoolOriginationIdentitiesCommand,
ListProtectConfigurationRuleSetNumberOverridesCommand,
ListRegistrationAssociationsCommand,
ListTagsForResourceCommand,
PutKeywordCommand,
PutMessageFeedbackCommand,
PutOptedOutNumberCommand,
PutProtectConfigurationRuleSetNumberOverrideCommand,
PutRegistrationFieldValueCommand,
PutResourcePolicyCommand,
ReleasePhoneNumberCommand,
Expand All @@ -480,6 +509,7 @@ const commands = {
SendTextMessageCommand,
SendVoiceMessageCommand,
SetAccountDefaultProtectConfigurationCommand,
SetDefaultMessageFeedbackEnabledCommand,
SetDefaultMessageTypeCommand,
SetDefaultSenderIdCommand,
SetMediaMessageSpendLimitOverrideCommand,
Expand Down Expand Up @@ -875,6 +905,23 @@ export interface PinpointSMSVoiceV2 {
cb: (err: any, data?: DeleteProtectConfigurationCommandOutput) => void
): void;

/**
* @see {@link DeleteProtectConfigurationRuleSetNumberOverrideCommand}
*/
deleteProtectConfigurationRuleSetNumberOverride(
args: DeleteProtectConfigurationRuleSetNumberOverrideCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteProtectConfigurationRuleSetNumberOverrideCommandOutput>;
deleteProtectConfigurationRuleSetNumberOverride(
args: DeleteProtectConfigurationRuleSetNumberOverrideCommandInput,
cb: (err: any, data?: DeleteProtectConfigurationRuleSetNumberOverrideCommandOutput) => void
): void;
deleteProtectConfigurationRuleSetNumberOverride(
args: DeleteProtectConfigurationRuleSetNumberOverrideCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteProtectConfigurationRuleSetNumberOverrideCommandOutput) => void
): void;

/**
* @see {@link DeleteRegistrationCommand}
*/
Expand Down Expand Up @@ -1428,6 +1475,23 @@ export interface PinpointSMSVoiceV2 {
cb: (err: any, data?: ListPoolOriginationIdentitiesCommandOutput) => void
): void;

/**
* @see {@link ListProtectConfigurationRuleSetNumberOverridesCommand}
*/
listProtectConfigurationRuleSetNumberOverrides(
args: ListProtectConfigurationRuleSetNumberOverridesCommandInput,
options?: __HttpHandlerOptions
): Promise<ListProtectConfigurationRuleSetNumberOverridesCommandOutput>;
listProtectConfigurationRuleSetNumberOverrides(
args: ListProtectConfigurationRuleSetNumberOverridesCommandInput,
cb: (err: any, data?: ListProtectConfigurationRuleSetNumberOverridesCommandOutput) => void
): void;
listProtectConfigurationRuleSetNumberOverrides(
args: ListProtectConfigurationRuleSetNumberOverridesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListProtectConfigurationRuleSetNumberOverridesCommandOutput) => void
): void;

/**
* @see {@link ListRegistrationAssociationsCommand}
*/
Expand Down Expand Up @@ -1473,6 +1537,23 @@ export interface PinpointSMSVoiceV2 {
cb: (err: any, data?: PutKeywordCommandOutput) => void
): void;

/**
* @see {@link PutMessageFeedbackCommand}
*/
putMessageFeedback(
args: PutMessageFeedbackCommandInput,
options?: __HttpHandlerOptions
): Promise<PutMessageFeedbackCommandOutput>;
putMessageFeedback(
args: PutMessageFeedbackCommandInput,
cb: (err: any, data?: PutMessageFeedbackCommandOutput) => void
): void;
putMessageFeedback(
args: PutMessageFeedbackCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PutMessageFeedbackCommandOutput) => void
): void;

/**
* @see {@link PutOptedOutNumberCommand}
*/
Expand All @@ -1490,6 +1571,23 @@ export interface PinpointSMSVoiceV2 {
cb: (err: any, data?: PutOptedOutNumberCommandOutput) => void
): void;

/**
* @see {@link PutProtectConfigurationRuleSetNumberOverrideCommand}
*/
putProtectConfigurationRuleSetNumberOverride(
args: PutProtectConfigurationRuleSetNumberOverrideCommandInput,
options?: __HttpHandlerOptions
): Promise<PutProtectConfigurationRuleSetNumberOverrideCommandOutput>;
putProtectConfigurationRuleSetNumberOverride(
args: PutProtectConfigurationRuleSetNumberOverrideCommandInput,
cb: (err: any, data?: PutProtectConfigurationRuleSetNumberOverrideCommandOutput) => void
): void;
putProtectConfigurationRuleSetNumberOverride(
args: PutProtectConfigurationRuleSetNumberOverrideCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PutProtectConfigurationRuleSetNumberOverrideCommandOutput) => void
): void;

/**
* @see {@link PutRegistrationFieldValueCommand}
*/
Expand Down Expand Up @@ -1668,6 +1766,23 @@ export interface PinpointSMSVoiceV2 {
cb: (err: any, data?: SetAccountDefaultProtectConfigurationCommandOutput) => void
): void;

/**
* @see {@link SetDefaultMessageFeedbackEnabledCommand}
*/
setDefaultMessageFeedbackEnabled(
args: SetDefaultMessageFeedbackEnabledCommandInput,
options?: __HttpHandlerOptions
): Promise<SetDefaultMessageFeedbackEnabledCommandOutput>;
setDefaultMessageFeedbackEnabled(
args: SetDefaultMessageFeedbackEnabledCommandInput,
cb: (err: any, data?: SetDefaultMessageFeedbackEnabledCommandOutput) => void
): void;
setDefaultMessageFeedbackEnabled(
args: SetDefaultMessageFeedbackEnabledCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: SetDefaultMessageFeedbackEnabledCommandOutput) => void
): void;

/**
* @see {@link SetDefaultMessageTypeCommand}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ import {
DeleteProtectConfigurationCommandInput,
DeleteProtectConfigurationCommandOutput,
} from "./commands/DeleteProtectConfigurationCommand";
import {
DeleteProtectConfigurationRuleSetNumberOverrideCommandInput,
DeleteProtectConfigurationRuleSetNumberOverrideCommandOutput,
} from "./commands/DeleteProtectConfigurationRuleSetNumberOverrideCommand";
import {
DeleteRegistrationAttachmentCommandInput,
DeleteRegistrationAttachmentCommandOutput,
Expand Down Expand Up @@ -240,6 +244,10 @@ import {
ListPoolOriginationIdentitiesCommandInput,
ListPoolOriginationIdentitiesCommandOutput,
} from "./commands/ListPoolOriginationIdentitiesCommand";
import {
ListProtectConfigurationRuleSetNumberOverridesCommandInput,
ListProtectConfigurationRuleSetNumberOverridesCommandOutput,
} from "./commands/ListProtectConfigurationRuleSetNumberOverridesCommand";
import {
ListRegistrationAssociationsCommandInput,
ListRegistrationAssociationsCommandOutput,
Expand All @@ -249,7 +257,12 @@ import {
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { PutKeywordCommandInput, PutKeywordCommandOutput } from "./commands/PutKeywordCommand";
import { PutMessageFeedbackCommandInput, PutMessageFeedbackCommandOutput } from "./commands/PutMessageFeedbackCommand";
import { PutOptedOutNumberCommandInput, PutOptedOutNumberCommandOutput } from "./commands/PutOptedOutNumberCommand";
import {
PutProtectConfigurationRuleSetNumberOverrideCommandInput,
PutProtectConfigurationRuleSetNumberOverrideCommandOutput,
} from "./commands/PutProtectConfigurationRuleSetNumberOverrideCommand";
import {
PutRegistrationFieldValueCommandInput,
PutRegistrationFieldValueCommandOutput,
Expand All @@ -270,6 +283,10 @@ import {
SetAccountDefaultProtectConfigurationCommandInput,
SetAccountDefaultProtectConfigurationCommandOutput,
} from "./commands/SetAccountDefaultProtectConfigurationCommand";
import {
SetDefaultMessageFeedbackEnabledCommandInput,
SetDefaultMessageFeedbackEnabledCommandOutput,
} from "./commands/SetDefaultMessageFeedbackEnabledCommand";
import {
SetDefaultMessageTypeCommandInput,
SetDefaultMessageTypeCommandOutput,
Expand Down Expand Up @@ -350,6 +367,7 @@ export type ServiceInputTypes =
| DeleteOptedOutNumberCommandInput
| DeletePoolCommandInput
| DeleteProtectConfigurationCommandInput
| DeleteProtectConfigurationRuleSetNumberOverrideCommandInput
| DeleteRegistrationAttachmentCommandInput
| DeleteRegistrationCommandInput
| DeleteRegistrationFieldValueCommandInput
Expand Down Expand Up @@ -382,10 +400,13 @@ export type ServiceInputTypes =
| GetProtectConfigurationCountryRuleSetCommandInput
| GetResourcePolicyCommandInput
| ListPoolOriginationIdentitiesCommandInput
| ListProtectConfigurationRuleSetNumberOverridesCommandInput
| ListRegistrationAssociationsCommandInput
| ListTagsForResourceCommandInput
| PutKeywordCommandInput
| PutMessageFeedbackCommandInput
| PutOptedOutNumberCommandInput
| PutProtectConfigurationRuleSetNumberOverrideCommandInput
| PutRegistrationFieldValueCommandInput
| PutResourcePolicyCommandInput
| ReleasePhoneNumberCommandInput
Expand All @@ -397,6 +418,7 @@ export type ServiceInputTypes =
| SendTextMessageCommandInput
| SendVoiceMessageCommandInput
| SetAccountDefaultProtectConfigurationCommandInput
| SetDefaultMessageFeedbackEnabledCommandInput
| SetDefaultMessageTypeCommandInput
| SetDefaultSenderIdCommandInput
| SetMediaMessageSpendLimitOverrideCommandInput
Expand Down Expand Up @@ -440,6 +462,7 @@ export type ServiceOutputTypes =
| DeleteOptedOutNumberCommandOutput
| DeletePoolCommandOutput
| DeleteProtectConfigurationCommandOutput
| DeleteProtectConfigurationRuleSetNumberOverrideCommandOutput
| DeleteRegistrationAttachmentCommandOutput
| DeleteRegistrationCommandOutput
| DeleteRegistrationFieldValueCommandOutput
Expand Down Expand Up @@ -472,10 +495,13 @@ export type ServiceOutputTypes =
| GetProtectConfigurationCountryRuleSetCommandOutput
| GetResourcePolicyCommandOutput
| ListPoolOriginationIdentitiesCommandOutput
| ListProtectConfigurationRuleSetNumberOverridesCommandOutput
| ListRegistrationAssociationsCommandOutput
| ListTagsForResourceCommandOutput
| PutKeywordCommandOutput
| PutMessageFeedbackCommandOutput
| PutOptedOutNumberCommandOutput
| PutProtectConfigurationRuleSetNumberOverrideCommandOutput
| PutRegistrationFieldValueCommandOutput
| PutResourcePolicyCommandOutput
| ReleasePhoneNumberCommandOutput
Expand All @@ -487,6 +513,7 @@ export type ServiceOutputTypes =
| SendTextMessageCommandOutput
| SendVoiceMessageCommandOutput
| SetAccountDefaultProtectConfigurationCommandOutput
| SetDefaultMessageFeedbackEnabledCommandOutput
| SetDefaultMessageTypeCommandOutput
| SetDefaultSenderIdCommandOutput
| SetMediaMessageSpendLimitOverrideCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export interface DeleteConfigurationSetCommandOutput extends DeleteConfiguration
* // ],
* // DefaultMessageType: "STRING_VALUE",
* // DefaultSenderId: "STRING_VALUE",
* // DefaultMessageFeedbackEnabled: true || false,
* // CreatedTimestamp: new Date("TIMESTAMP"),
* // };
*
Expand Down
Loading

0 comments on commit 8381a63

Please sign in to comment.