Skip to content

Commit e9b1287

Browse files
Use rule overrides to always allow or always block messages to specific phone numbers. Use message feedback to monitor if a customer interacts with your message.
1 parent c0770c6 commit e9b1287

File tree

52 files changed

+6388
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+6388
-37
lines changed

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

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

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

Lines changed: 151 additions & 4 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: 453 additions & 7 deletions
Large diffs are not rendered by default.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@
120120
"limit_key": "MaxResults",
121121
"result_key": "OriginationIdentities"
122122
},
123+
"ListProtectConfigurationRuleSetNumberOverrides": {
124+
"input_token": "NextToken",
125+
"output_token": "NextToken",
126+
"limit_key": "MaxResults",
127+
"result_key": "RuleSetNumberOverrides"
128+
},
123129
"ListRegistrationAssociations": {
124130
"input_token": "NextToken",
125131
"output_token": "NextToken",

sdk/code-analysis/ServiceAnalysis/PinpointSMSVoiceV2/Generated/PropertyValueRules.xml

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,42 @@
458458
<max>64</max>
459459
<pattern>[A-Za-z0-9_-]+</pattern>
460460
</property-value-rule>
461+
<property-value-rule>
462+
<property>Amazon.PinpointSMSVoiceV2.Model.DeleteProtectConfigurationRuleSetNumberOverrideRequest.DestinationPhoneNumber</property>
463+
<min>1</min>
464+
<max>20</max>
465+
<pattern>\+?[1-9][0-9]{1,18}</pattern>
466+
</property-value-rule>
467+
<property-value-rule>
468+
<property>Amazon.PinpointSMSVoiceV2.Model.DeleteProtectConfigurationRuleSetNumberOverrideRequest.ProtectConfigurationId</property>
469+
<min>1</min>
470+
<max>256</max>
471+
<pattern>[A-Za-z0-9_:/-]+</pattern>
472+
</property-value-rule>
473+
<property-value-rule>
474+
<property>Amazon.PinpointSMSVoiceV2.Model.DeleteProtectConfigurationRuleSetNumberOverrideResponse.DestinationPhoneNumber</property>
475+
<min>1</min>
476+
<max>20</max>
477+
<pattern>\+?[1-9][0-9]{1,18}</pattern>
478+
</property-value-rule>
479+
<property-value-rule>
480+
<property>Amazon.PinpointSMSVoiceV2.Model.DeleteProtectConfigurationRuleSetNumberOverrideResponse.IsoCountryCode</property>
481+
<min>2</min>
482+
<max>2</max>
483+
<pattern>[A-Z]{2}</pattern>
484+
</property-value-rule>
485+
<property-value-rule>
486+
<property>Amazon.PinpointSMSVoiceV2.Model.DeleteProtectConfigurationRuleSetNumberOverrideResponse.ProtectConfigurationArn</property>
487+
<min>1</min>
488+
<max>256</max>
489+
<pattern>arn:\S+</pattern>
490+
</property-value-rule>
491+
<property-value-rule>
492+
<property>Amazon.PinpointSMSVoiceV2.Model.DeleteProtectConfigurationRuleSetNumberOverrideResponse.ProtectConfigurationId</property>
493+
<min>1</min>
494+
<max>64</max>
495+
<pattern>[A-Za-z0-9_-]+</pattern>
496+
</property-value-rule>
461497
<property-value-rule>
462498
<property>Amazon.PinpointSMSVoiceV2.Model.DeleteRegistrationRequest.RegistrationId</property>
463499
<min>1</min>
@@ -1086,6 +1122,41 @@
10861122
<max>1024</max>
10871123
<pattern>.+</pattern>
10881124
</property-value-rule>
1125+
<property-value-rule>
1126+
<property>Amazon.PinpointSMSVoiceV2.Model.ListProtectConfigurationRuleSetNumberOverridesRequest.MaxResults</property>
1127+
<min>1</min>
1128+
<max>100</max>
1129+
</property-value-rule>
1130+
<property-value-rule>
1131+
<property>Amazon.PinpointSMSVoiceV2.Model.ListProtectConfigurationRuleSetNumberOverridesRequest.NextToken</property>
1132+
<min>1</min>
1133+
<max>1024</max>
1134+
<pattern>.+</pattern>
1135+
</property-value-rule>
1136+
<property-value-rule>
1137+
<property>Amazon.PinpointSMSVoiceV2.Model.ListProtectConfigurationRuleSetNumberOverridesRequest.ProtectConfigurationId</property>
1138+
<min>1</min>
1139+
<max>256</max>
1140+
<pattern>[A-Za-z0-9_:/-]+</pattern>
1141+
</property-value-rule>
1142+
<property-value-rule>
1143+
<property>Amazon.PinpointSMSVoiceV2.Model.ListProtectConfigurationRuleSetNumberOverridesResponse.NextToken</property>
1144+
<min>1</min>
1145+
<max>1024</max>
1146+
<pattern>.+</pattern>
1147+
</property-value-rule>
1148+
<property-value-rule>
1149+
<property>Amazon.PinpointSMSVoiceV2.Model.ListProtectConfigurationRuleSetNumberOverridesResponse.ProtectConfigurationArn</property>
1150+
<min>1</min>
1151+
<max>256</max>
1152+
<pattern>arn:\S+</pattern>
1153+
</property-value-rule>
1154+
<property-value-rule>
1155+
<property>Amazon.PinpointSMSVoiceV2.Model.ListProtectConfigurationRuleSetNumberOverridesResponse.ProtectConfigurationId</property>
1156+
<min>1</min>
1157+
<max>64</max>
1158+
<pattern>[A-Za-z0-9_-]+</pattern>
1159+
</property-value-rule>
10891160
<property-value-rule>
10901161
<property>Amazon.PinpointSMSVoiceV2.Model.ListRegistrationAssociationsRequest.MaxResults</property>
10911162
<min>1</min>
@@ -1157,6 +1228,18 @@
11571228
<max>1600</max>
11581229
<pattern>(?!\s*$)[\s\S]+</pattern>
11591230
</property-value-rule>
1231+
<property-value-rule>
1232+
<property>Amazon.PinpointSMSVoiceV2.Model.PutMessageFeedbackRequest.MessageId</property>
1233+
<min>1</min>
1234+
<max>64</max>
1235+
<pattern>[A-Za-z0-9_:/-]+</pattern>
1236+
</property-value-rule>
1237+
<property-value-rule>
1238+
<property>Amazon.PinpointSMSVoiceV2.Model.PutMessageFeedbackResponse.MessageId</property>
1239+
<min>1</min>
1240+
<max>64</max>
1241+
<pattern>[A-Za-z0-9_:/-]+</pattern>
1242+
</property-value-rule>
11601243
<property-value-rule>
11611244
<property>Amazon.PinpointSMSVoiceV2.Model.PutOptedOutNumberRequest.OptedOutNumber</property>
11621245
<min>1</min>
@@ -1181,6 +1264,48 @@
11811264
<max>64</max>
11821265
<pattern>[A-Za-z0-9_-]+</pattern>
11831266
</property-value-rule>
1267+
<property-value-rule>
1268+
<property>Amazon.PinpointSMSVoiceV2.Model.PutProtectConfigurationRuleSetNumberOverrideRequest.ClientToken</property>
1269+
<min>1</min>
1270+
<max>64</max>
1271+
<pattern>[!-~]+</pattern>
1272+
</property-value-rule>
1273+
<property-value-rule>
1274+
<property>Amazon.PinpointSMSVoiceV2.Model.PutProtectConfigurationRuleSetNumberOverrideRequest.DestinationPhoneNumber</property>
1275+
<min>1</min>
1276+
<max>20</max>
1277+
<pattern>\+?[1-9][0-9]{1,18}</pattern>
1278+
</property-value-rule>
1279+
<property-value-rule>
1280+
<property>Amazon.PinpointSMSVoiceV2.Model.PutProtectConfigurationRuleSetNumberOverrideRequest.ProtectConfigurationId</property>
1281+
<min>1</min>
1282+
<max>256</max>
1283+
<pattern>[A-Za-z0-9_:/-]+</pattern>
1284+
</property-value-rule>
1285+
<property-value-rule>
1286+
<property>Amazon.PinpointSMSVoiceV2.Model.PutProtectConfigurationRuleSetNumberOverrideResponse.DestinationPhoneNumber</property>
1287+
<min>1</min>
1288+
<max>20</max>
1289+
<pattern>\+?[1-9][0-9]{1,18}</pattern>
1290+
</property-value-rule>
1291+
<property-value-rule>
1292+
<property>Amazon.PinpointSMSVoiceV2.Model.PutProtectConfigurationRuleSetNumberOverrideResponse.IsoCountryCode</property>
1293+
<min>2</min>
1294+
<max>2</max>
1295+
<pattern>[A-Z]{2}</pattern>
1296+
</property-value-rule>
1297+
<property-value-rule>
1298+
<property>Amazon.PinpointSMSVoiceV2.Model.PutProtectConfigurationRuleSetNumberOverrideResponse.ProtectConfigurationArn</property>
1299+
<min>1</min>
1300+
<max>256</max>
1301+
<pattern>arn:\S+</pattern>
1302+
</property-value-rule>
1303+
<property-value-rule>
1304+
<property>Amazon.PinpointSMSVoiceV2.Model.PutProtectConfigurationRuleSetNumberOverrideResponse.ProtectConfigurationId</property>
1305+
<min>1</min>
1306+
<max>64</max>
1307+
<pattern>[A-Za-z0-9_-]+</pattern>
1308+
</property-value-rule>
11841309
<property-value-rule>
11851310
<property>Amazon.PinpointSMSVoiceV2.Model.PutRegistrationFieldValueRequest.FieldPath</property>
11861311
<min>1</min>
@@ -1557,6 +1682,18 @@
15571682
<max>64</max>
15581683
<pattern>[A-Za-z0-9_-]+</pattern>
15591684
</property-value-rule>
1685+
<property-value-rule>
1686+
<property>Amazon.PinpointSMSVoiceV2.Model.SetDefaultMessageFeedbackEnabledRequest.ConfigurationSetName</property>
1687+
<min>1</min>
1688+
<max>256</max>
1689+
<pattern>[A-Za-z0-9_:/-]+</pattern>
1690+
</property-value-rule>
1691+
<property-value-rule>
1692+
<property>Amazon.PinpointSMSVoiceV2.Model.SetDefaultMessageFeedbackEnabledResponse.ConfigurationSetName</property>
1693+
<min>1</min>
1694+
<max>64</max>
1695+
<pattern>[A-Za-z0-9_-]+</pattern>
1696+
</property-value-rule>
15601697
<property-value-rule>
15611698
<property>Amazon.PinpointSMSVoiceV2.Model.SetDefaultMessageTypeRequest.ConfigurationSetName</property>
15621699
<min>1</min>
@@ -1982,6 +2119,18 @@
19822119
<max>64</max>
19832120
<pattern>[A-Za-z0-9_-]+</pattern>
19842121
</property-value-rule>
2122+
<property-value-rule>
2123+
<property>Amazon.PinpointSMSVoiceV2.Model.ProtectConfigurationRuleSetNumberOverride.DestinationPhoneNumber</property>
2124+
<min>1</min>
2125+
<max>20</max>
2126+
<pattern>\+?[1-9][0-9]{1,18}</pattern>
2127+
</property-value-rule>
2128+
<property-value-rule>
2129+
<property>Amazon.PinpointSMSVoiceV2.Model.ProtectConfigurationRuleSetNumberOverride.IsoCountryCode</property>
2130+
<min>2</min>
2131+
<max>2</max>
2132+
<pattern>[A-Z]{2}</pattern>
2133+
</property-value-rule>
19852134
<property-value-rule>
19862135
<property>Amazon.PinpointSMSVoiceV2.Model.RegistrationAssociationMetadata.IsoCountryCode</property>
19872136
<min>2</min>

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class ConfigurationSetInformation
3737
private string _configurationSetArn;
3838
private string _configurationSetName;
3939
private DateTime? _createdTimestamp;
40+
private bool? _defaultMessageFeedbackEnabled;
4041
private MessageType _defaultMessageType;
4142
private string _defaultSenderId;
4243
private List<EventDestination> _eventDestinations = AWSConfigs.InitializeCollections ? new List<EventDestination>() : null;
@@ -100,6 +101,24 @@ internal bool IsSetCreatedTimestamp()
100101
return this._createdTimestamp.HasValue;
101102
}
102103

104+
/// <summary>
105+
/// Gets and sets the property DefaultMessageFeedbackEnabled.
106+
/// <para>
107+
/// True if message feedback is enabled.
108+
/// </para>
109+
/// </summary>
110+
public bool DefaultMessageFeedbackEnabled
111+
{
112+
get { return this._defaultMessageFeedbackEnabled.GetValueOrDefault(); }
113+
set { this._defaultMessageFeedbackEnabled = value; }
114+
}
115+
116+
// Check to see if DefaultMessageFeedbackEnabled property is set
117+
internal bool IsSetDefaultMessageFeedbackEnabled()
118+
{
119+
return this._defaultMessageFeedbackEnabled.HasValue;
120+
}
121+
103122
/// <summary>
104123
/// Gets and sets the property DefaultMessageType.
105124
/// <para>

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class DeleteConfigurationSetResponse : AmazonWebServiceResponse
3737
private string _configurationSetArn;
3838
private string _configurationSetName;
3939
private DateTime? _createdTimestamp;
40+
private bool? _defaultMessageFeedbackEnabled;
4041
private MessageType _defaultMessageType;
4142
private string _defaultSenderId;
4243
private List<EventDestination> _eventDestinations = AWSConfigs.InitializeCollections ? new List<EventDestination>() : null;
@@ -97,6 +98,25 @@ internal bool IsSetCreatedTimestamp()
9798
return this._createdTimestamp.HasValue;
9899
}
99100

101+
/// <summary>
102+
/// Gets and sets the property DefaultMessageFeedbackEnabled.
103+
/// <para>
104+
/// True if the configuration set has message feedback enabled. By default this is set
105+
/// to false.
106+
/// </para>
107+
/// </summary>
108+
public bool DefaultMessageFeedbackEnabled
109+
{
110+
get { return this._defaultMessageFeedbackEnabled.GetValueOrDefault(); }
111+
set { this._defaultMessageFeedbackEnabled = value; }
112+
}
113+
114+
// Check to see if DefaultMessageFeedbackEnabled property is set
115+
internal bool IsSetDefaultMessageFeedbackEnabled()
116+
{
117+
return this._defaultMessageFeedbackEnabled.HasValue;
118+
}
119+
100120
/// <summary>
101121
/// Gets and sets the property DefaultMessageType.
102122
/// <para>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the pinpoint-sms-voice-v2-2022-03-31.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.PinpointSMSVoiceV2.Model
31+
{
32+
/// <summary>
33+
/// Container for the parameters to the DeleteProtectConfigurationRuleSetNumberOverride operation.
34+
/// Permanently delete the protect configuration rule set number override.
35+
/// </summary>
36+
public partial class DeleteProtectConfigurationRuleSetNumberOverrideRequest : AmazonPinpointSMSVoiceV2Request
37+
{
38+
private string _destinationPhoneNumber;
39+
private string _protectConfigurationId;
40+
41+
/// <summary>
42+
/// Gets and sets the property DestinationPhoneNumber.
43+
/// <para>
44+
/// The destination phone number in E.164 format.
45+
/// </para>
46+
/// </summary>
47+
[AWSProperty(Required=true, Min=1, Max=20)]
48+
public string DestinationPhoneNumber
49+
{
50+
get { return this._destinationPhoneNumber; }
51+
set { this._destinationPhoneNumber = value; }
52+
}
53+
54+
// Check to see if DestinationPhoneNumber property is set
55+
internal bool IsSetDestinationPhoneNumber()
56+
{
57+
return this._destinationPhoneNumber != null;
58+
}
59+
60+
/// <summary>
61+
/// Gets and sets the property ProtectConfigurationId.
62+
/// <para>
63+
/// The unique identifier for the protect configuration.
64+
/// </para>
65+
/// </summary>
66+
[AWSProperty(Required=true, Min=1, Max=256)]
67+
public string ProtectConfigurationId
68+
{
69+
get { return this._protectConfigurationId; }
70+
set { this._protectConfigurationId = value; }
71+
}
72+
73+
// Check to see if ProtectConfigurationId property is set
74+
internal bool IsSetProtectConfigurationId()
75+
{
76+
return this._protectConfigurationId != null;
77+
}
78+
79+
}
80+
}

0 commit comments

Comments
 (0)