Skip to content

Commit ff42eb9

Browse files
AWS End User Messaging has added MONITOR and FILTER functionality to SMS Protect.
1 parent 0bc9875 commit ff42eb9

17 files changed

+210
-93
lines changed

generator/ServiceModels/pinpoint-sms-voice-v2/pinpoint-sms-voice-v2-2022-03-31.api.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
{"shape":"ThrottlingException"},
4646
{"shape":"AccessDeniedException"},
4747
{"shape":"ResourceNotFoundException"},
48-
{"shape":"ValidationException"},
4948
{"shape":"ConflictException"},
49+
{"shape":"ValidationException"},
5050
{"shape":"InternalServerException"}
5151
]
5252
},
@@ -133,6 +133,7 @@
133133
{"shape":"ThrottlingException"},
134134
{"shape":"AccessDeniedException"},
135135
{"shape":"ValidationException"},
136+
{"shape":"ConflictException"},
136137
{"shape":"InternalServerException"}
137138
]
138139
},
@@ -398,8 +399,8 @@
398399
{"shape":"ThrottlingException"},
399400
{"shape":"AccessDeniedException"},
400401
{"shape":"ResourceNotFoundException"},
401-
{"shape":"ValidationException"},
402402
{"shape":"ConflictException"},
403+
{"shape":"ValidationException"},
403404
{"shape":"InternalServerException"}
404405
]
405406
},
@@ -860,8 +861,8 @@
860861
{"shape":"ThrottlingException"},
861862
{"shape":"AccessDeniedException"},
862863
{"shape":"ResourceNotFoundException"},
863-
{"shape":"ValidationException"},
864864
{"shape":"ConflictException"},
865+
{"shape":"ValidationException"},
865866
{"shape":"InternalServerException"}
866867
]
867868
},
@@ -3856,7 +3857,9 @@
38563857
"type":"string",
38573858
"enum":[
38583859
"ALLOW",
3859-
"BLOCK"
3860+
"BLOCK",
3861+
"MONITOR",
3862+
"FILTER"
38603863
]
38613864
},
38623865
"PutKeywordRequest":{

generator/ServiceModels/pinpoint-sms-voice-v2/pinpoint-sms-voice-v2-2022-03-31.docs.json

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

generator/ServiceModels/pinpoint-sms-voice-v2/pinpoint-sms-voice-v2-2022-03-31.normal.json

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
{"shape":"ThrottlingException"},
4747
{"shape":"AccessDeniedException"},
4848
{"shape":"ResourceNotFoundException"},
49-
{"shape":"ValidationException"},
5049
{"shape":"ConflictException"},
50+
{"shape":"ValidationException"},
5151
{"shape":"InternalServerException"}
5252
],
5353
"documentation":"<p>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.</p>"
@@ -87,7 +87,7 @@
8787
{"shape":"ConflictException"},
8888
{"shape":"InternalServerException"}
8989
],
90-
"documentation":"<p>Creates a new event destination in a configuration set.</p> <p>An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic.</p> <p>Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a reference to a single destination, such as a CloudWatch or Firehose destination.</p>"
90+
"documentation":"<p>Creates a new event destination in a configuration set.</p> <p>An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic. </p> <p>You can only create one event destination at a time. You must provide a value for a single event destination using either <code>CloudWatchLogsDestination</code>, <code>KinesisFirehoseDestination</code> or <code>SnsDestination</code>. If an event destination isn't provided then an exception is returned.</p> <p>Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a reference to a single destination, such as a CloudWatch or Firehose destination.</p>"
9191
},
9292
"CreateOptOutList":{
9393
"name":"CreateOptOutList",
@@ -139,6 +139,7 @@
139139
{"shape":"ThrottlingException"},
140140
{"shape":"AccessDeniedException"},
141141
{"shape":"ValidationException"},
142+
{"shape":"ConflictException"},
142143
{"shape":"InternalServerException"}
143144
],
144145
"documentation":"<p>Create a new protect configuration. By default all country rule sets for each capability are set to <code>ALLOW</code>. Update the country rule sets using <code>UpdateProtectConfigurationCountryRuleSet</code>. A protect configurations name is stored as a Tag with the key set to <code>Name</code> and value as the name of the protect configuration.</p>"
@@ -420,8 +421,8 @@
420421
{"shape":"ThrottlingException"},
421422
{"shape":"AccessDeniedException"},
422423
{"shape":"ResourceNotFoundException"},
423-
{"shape":"ValidationException"},
424424
{"shape":"ConflictException"},
425+
{"shape":"ValidationException"},
425426
{"shape":"InternalServerException"}
426427
],
427428
"documentation":"<p>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.</p>"
@@ -911,8 +912,8 @@
911912
{"shape":"ThrottlingException"},
912913
{"shape":"AccessDeniedException"},
913914
{"shape":"ResourceNotFoundException"},
914-
{"shape":"ValidationException"},
915915
{"shape":"ConflictException"},
916+
{"shape":"ValidationException"},
916917
{"shape":"InternalServerException"}
917918
],
918919
"documentation":"<p>Disassociate a protect configuration from a configuration set.</p>"
@@ -1106,7 +1107,7 @@
11061107
{"shape":"ConflictException"},
11071108
{"shape":"InternalServerException"}
11081109
],
1109-
"documentation":"<p>Create or update a RuleSetNumberOverride and associate it with a protect configuration.</p>"
1110+
"documentation":"<p>Create or update a phone number rule override and associate it with a protect configuration.</p>"
11101111
},
11111112
"PutRegistrationFieldValue":{
11121113
"name":"PutRegistrationFieldValue",
@@ -1442,7 +1443,7 @@
14421443
{"shape":"ValidationException"},
14431444
{"shape":"InternalServerException"}
14441445
],
1445-
"documentation":"<p>Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see <a href=\"https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-tags.html\">Tags </a> in the <i>AWS End User Messaging SMS User Guide</i>.</p>"
1446+
"documentation":"<p>Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see <a href=\"https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-tags.html\">Tags </a> in the <i>AWS End User Messaging SMS User Guide</i>.</p>"
14461447
},
14471448
"UntagResource":{
14481449
"name":"UntagResource",
@@ -1547,7 +1548,7 @@
15471548
{"shape":"ValidationException"},
15481549
{"shape":"InternalServerException"}
15491550
],
1550-
"documentation":"<p>Update a country rule set to <code>ALLOW</code> or <code>BLOCK</code> 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.</p>"
1551+
"documentation":"<p>Update a country rule set to <code>ALLOW</code>, <code>BLOCK</code>, <code>MONITOR</code>, or <code>FILTER</code> 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.</p>"
15511552
},
15521553
"UpdateSenderId":{
15531554
"name":"UpdateSenderId",
@@ -5422,7 +5423,7 @@
54225423
"documentation":"<p>The time the rule will expire at. If <code>ExpirationTimestamp</code> is not set then the rule will not expire.</p>"
54235424
}
54245425
},
5425-
"documentation":"<p>Provides details on a RuleSetNumberOverride.</p>"
5426+
"documentation":"<p>Provides details on phone number rule overrides for a protect configuration.</p>"
54265427
},
54275428
"ProtectConfigurationRuleSetNumberOverrideFilterItem":{
54285429
"type":"structure",
@@ -5464,7 +5465,9 @@
54645465
"type":"string",
54655466
"enum":[
54665467
"ALLOW",
5467-
"BLOCK"
5468+
"BLOCK",
5469+
"MONITOR",
5470+
"FILTER"
54685471
]
54695472
},
54705473
"PutKeywordRequest":{
@@ -6616,15 +6619,15 @@
66166619
},
66176620
"MessageType":{
66186621
"shape":"MessageType",
6619-
"documentation":"<p>The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.</p>"
6622+
"documentation":"<p>The type of message. Valid values are <code>TRANSACTIONAL</code> for messages that are critical or time-sensitive and <code>PROMOTIONAL</code> for messages that aren't critical or time-sensitive.</p>"
66206623
},
66216624
"NumberCapabilities":{
66226625
"shape":"NumberCapabilityList",
66236626
"documentation":"<p>Indicates if the phone number will be used for text messages, voice messages, or both. </p>"
66246627
},
66256628
"NumberType":{
66266629
"shape":"RequestableNumberType",
6627-
"documentation":"<p>The type of phone number to request.</p>"
6630+
"documentation":"<p>The type of phone number to request.</p> <p>When you request a <code>SIMULATOR</code> phone number, you must set <b>MessageType</b> as <code>TRANSACTIONAL</code>. </p>"
66286631
},
66296632
"OptOutListName":{
66306633
"shape":"OptOutListNameOrArn",
@@ -7007,7 +7010,7 @@
70077010
},
70087011
"MediaUrls":{
70097012
"shape":"MediaUrlList",
7010-
"documentation":"<p>An array of URLs to each media file to send. </p> <p>The media files have to be stored in a publicly available S3 bucket. Supported media file formats are listed in <a href=\"https://docs.aws.amazon.com/sms-voice/latest/userguide/mms-limitations-character.html\">MMS file types, size and character limits</a>. For more information on creating an S3 bucket and managing objects, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html\">Creating a bucket</a> and <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/userguide/upload-objects.html\">Uploading objects</a> in the S3 user guide.</p>"
7013+
"documentation":"<p>An array of URLs to each media file to send. </p> <p>The media files have to be stored in an S3 bucket. Supported media file formats are listed in <a href=\"https://docs.aws.amazon.com/sms-voice/latest/userguide/mms-limitations-character.html\">MMS file types, size and character limits</a>. For more information on creating an S3 bucket and managing objects, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html\">Creating a bucket</a>, <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/userguide/upload-objects.html\">Uploading objects</a> in the <i>Amazon S3 User Guide</i>, and <a href=\"https://docs.aws.amazon.com/sms-voice/latest/userguide/send-mms-message.html#send-mms-message-bucket\">Setting up an Amazon S3 bucket for MMS files</a> in the <i>Amazon Web Services End User Messaging SMS User Guide</i>.</p>"
70117014
},
70127015
"ConfigurationSetName":{
70137016
"shape":"ConfigurationSetNameOrArn",
@@ -7655,7 +7658,7 @@
76557658
},
76567659
"AssociationBehavior":{
76577660
"shape":"RegistrationAssociationBehavior",
7658-
"documentation":"<p>The association behavior.</p> <ul> <li> <p> <code>ASSOCIATE_BEFORE_SUBMIT</code> The origination identity has to be supplied when creating a registration.</p> </li> <li> <p> <code>ASSOCIATE_ON_APPROVAL</code> This applies to all short code registrations. The short code will be automatically provisioned once the registration is approved.</p> </li> <li> <p> <code>ASSOCIATE_AFTER_COMPLETE</code> This applies to phone number registrations when you must complete a registration first, then associate one or more phone numbers later. For example 10DLC campaigns and long codes. </p> </li> </ul>"
7661+
"documentation":"<p>The association behavior.</p> <ul> <li> <p> <code>ASSOCIATE_BEFORE_SUBMIT</code> The origination identity has to be supplied when creating a registration.</p> </li> <li> <p> <code>ASSOCIATE_ON_APPROVAL</code> This applies to all sender ID registrations. The sender ID will be automatically provisioned once the registration is approved.</p> </li> <li> <p> <code>ASSOCIATE_AFTER_COMPLETE</code> This applies to phone number registrations when you must complete a registration first, then associate one or more phone numbers later. For example 10DLC campaigns and long codes. </p> </li> </ul>"
76597662
},
76607663
"DisassociationBehavior":{
76617664
"shape":"RegistrationDisassociationBehavior",
@@ -8086,7 +8089,7 @@
80868089
},
80878090
"CountryRuleSetUpdates":{
80888091
"shape":"ProtectConfigurationCountryRuleSet",
8089-
"documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-sms-by-country.html\">Supported countries and regions (SMS channel)</a> in the AWS End User Messaging SMS User Guide.</p>"
8092+
"documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-sms-by-country.html\">Supported countries and regions (SMS channel)</a> in the AWS End User Messaging SMS User Guide.</p> <p>For example, to set the United States as allowed and Canada as blocked, the <code>CountryRuleSetUpdates</code> would be formatted as: <code>\"CountryRuleSetUpdates\": { \"US\" : { \"ProtectStatus\": \"ALLOW\" } \"CA\" : { \"ProtectStatus\": \"BLOCK\" } }</code> </p>"
80908093
}
80918094
}
80928095
},

sdk/src/Services/PinpointSMSVoiceV2/Generated/Model/CreateEventDestinationRequest.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ namespace Amazon.PinpointSMSVoiceV2.Model
3838
/// An event destination is a location where you send message events. The event options
3939
/// are Amazon CloudWatch, Amazon Data Firehose, or Amazon SNS. For example, when a message
4040
/// is delivered successfully, you can send information about that event to an event destination,
41-
/// or send notifications to endpoints that are subscribed to an Amazon SNS topic.
41+
/// or send notifications to endpoints that are subscribed to an Amazon SNS topic.
42+
/// </para>
43+
///
44+
/// <para>
45+
/// You can only create one event destination at a time. You must provide a value for
46+
/// a single event destination using either <c>CloudWatchLogsDestination</c>, <c>KinesisFirehoseDestination</c>
47+
/// or <c>SnsDestination</c>. If an event destination isn't provided then an exception
48+
/// is returned.
4249
/// </para>
4350
///
4451
/// <para>

sdk/src/Services/PinpointSMSVoiceV2/Generated/Model/Internal/MarshallTransformations/CreateProtectConfigurationResponseUnmarshaller.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte
117117
{
118118
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse, ref readerCopy);
119119
}
120+
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException"))
121+
{
122+
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse, ref readerCopy);
123+
}
120124
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
121125
{
122126
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse, ref readerCopy);

sdk/src/Services/PinpointSMSVoiceV2/Generated/Model/ProtectConfigurationRuleSetNumberOverride.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
namespace Amazon.PinpointSMSVoiceV2.Model
3131
{
3232
/// <summary>
33-
/// Provides details on a RuleSetNumberOverride.
33+
/// Provides details on phone number rule overrides for a protect configuration.
3434
/// </summary>
3535
public partial class ProtectConfigurationRuleSetNumberOverride
3636
{

sdk/src/Services/PinpointSMSVoiceV2/Generated/Model/PutProtectConfigurationRuleSetNumberOverrideRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Amazon.PinpointSMSVoiceV2.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the PutProtectConfigurationRuleSetNumberOverride operation.
34-
/// Create or update a RuleSetNumberOverride and associate it with a protect configuration.
34+
/// Create or update a phone number rule override and associate it with a protect configuration.
3535
/// </summary>
3636
public partial class PutProtectConfigurationRuleSetNumberOverrideRequest : AmazonPinpointSMSVoiceV2Request
3737
{

sdk/src/Services/PinpointSMSVoiceV2/Generated/Model/RequestPhoneNumberRequest.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ internal bool IsSetIsoCountryCode()
109109
/// <summary>
110110
/// Gets and sets the property MessageType.
111111
/// <para>
112-
/// The type of message. Valid values are TRANSACTIONAL for messages that are critical
113-
/// or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
112+
/// The type of message. Valid values are <c>TRANSACTIONAL</c> for messages that are critical
113+
/// or time-sensitive and <c>PROMOTIONAL</c> for messages that aren't critical or time-sensitive.
114114
/// </para>
115115
/// </summary>
116116
[AWSProperty(Required=true)]
@@ -151,6 +151,11 @@ internal bool IsSetNumberCapabilities()
151151
/// <para>
152152
/// The type of phone number to request.
153153
/// </para>
154+
///
155+
/// <para>
156+
/// When you request a <c>SIMULATOR</c> phone number, you must set <b>MessageType</b>
157+
/// as <c>TRANSACTIONAL</c>.
158+
/// </para>
154159
/// </summary>
155160
[AWSProperty(Required=true)]
156161
public RequestableNumberType NumberType

sdk/src/Services/PinpointSMSVoiceV2/Generated/Model/SendMediaMessageRequest.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,14 @@ internal bool IsSetMaxPrice()
151151
/// </para>
152152
///
153153
/// <para>
154-
/// The media files have to be stored in a publicly available S3 bucket. Supported media
155-
/// file formats are listed in <a href="https://docs.aws.amazon.com/sms-voice/latest/userguide/mms-limitations-character.html">MMS
154+
/// The media files have to be stored in an S3 bucket. Supported media file formats are
155+
/// listed in <a href="https://docs.aws.amazon.com/sms-voice/latest/userguide/mms-limitations-character.html">MMS
156156
/// file types, size and character limits</a>. For more information on creating an S3
157157
/// bucket and managing objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">Creating
158-
/// a bucket</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/upload-objects.html">Uploading
159-
/// objects</a> in the S3 user guide.
158+
/// a bucket</a>, <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/upload-objects.html">Uploading
159+
/// objects</a> in the <i>Amazon S3 User Guide</i>, and <a href="https://docs.aws.amazon.com/sms-voice/latest/userguide/send-mms-message.html#send-mms-message-bucket">Setting
160+
/// up an Amazon S3 bucket for MMS files</a> in the <i>Amazon Web Services End User Messaging
161+
/// SMS User Guide</i>.
160162
/// </para>
161163
/// </summary>
162164
[AWSProperty(Min=1, Max=1)]

sdk/src/Services/PinpointSMSVoiceV2/Generated/Model/SupportedAssociation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public partial class SupportedAssociation
5252
/// </para>
5353
/// </li> <li>
5454
/// <para>
55-
/// <c>ASSOCIATE_ON_APPROVAL</c> This applies to all short code registrations. The short
56-
/// code will be automatically provisioned once the registration is approved.
55+
/// <c>ASSOCIATE_ON_APPROVAL</c> This applies to all sender ID registrations. The sender
56+
/// ID will be automatically provisioned once the registration is approved.
5757
/// </para>
5858
/// </li> <li>
5959
/// <para>

0 commit comments

Comments
 (0)