aws-sdk-pinpointsmsvoicev2 1.25.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  module Aws::PinpointSMSVoiceV2
11
12
  # @api private
12
13
  module ClientApi
@@ -94,6 +95,8 @@ module Aws::PinpointSMSVoiceV2
94
95
  DeleteRegistrationFieldValueResult = Shapes::StructureShape.new(name: 'DeleteRegistrationFieldValueResult')
95
96
  DeleteRegistrationRequest = Shapes::StructureShape.new(name: 'DeleteRegistrationRequest')
96
97
  DeleteRegistrationResult = Shapes::StructureShape.new(name: 'DeleteRegistrationResult')
98
+ DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
99
+ DeleteResourcePolicyResult = Shapes::StructureShape.new(name: 'DeleteResourcePolicyResult')
97
100
  DeleteTextMessageSpendLimitOverrideRequest = Shapes::StructureShape.new(name: 'DeleteTextMessageSpendLimitOverrideRequest')
98
101
  DeleteTextMessageSpendLimitOverrideResult = Shapes::StructureShape.new(name: 'DeleteTextMessageSpendLimitOverrideResult')
99
102
  DeleteVerifiedDestinationNumberRequest = Shapes::StructureShape.new(name: 'DeleteVerifiedDestinationNumberRequest')
@@ -162,6 +165,8 @@ module Aws::PinpointSMSVoiceV2
162
165
  FilterValueList = Shapes::ListShape.new(name: 'FilterValueList')
163
166
  GetProtectConfigurationCountryRuleSetRequest = Shapes::StructureShape.new(name: 'GetProtectConfigurationCountryRuleSetRequest')
164
167
  GetProtectConfigurationCountryRuleSetResult = Shapes::StructureShape.new(name: 'GetProtectConfigurationCountryRuleSetResult')
168
+ GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
169
+ GetResourcePolicyResult = Shapes::StructureShape.new(name: 'GetResourcePolicyResult')
165
170
  IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
166
171
  Integer = Shapes::IntegerShape.new(name: 'Integer')
167
172
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
@@ -211,6 +216,7 @@ module Aws::PinpointSMSVoiceV2
211
216
  OptedOutNumberList = Shapes::ListShape.new(name: 'OptedOutNumberList')
212
217
  OriginationIdentityMetadata = Shapes::StructureShape.new(name: 'OriginationIdentityMetadata')
213
218
  OriginationIdentityMetadataList = Shapes::ListShape.new(name: 'OriginationIdentityMetadataList')
219
+ Owner = Shapes::StringShape.new(name: 'Owner')
214
220
  PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
215
221
  PhoneNumberFilter = Shapes::StructureShape.new(name: 'PhoneNumberFilter')
216
222
  PhoneNumberFilterList = Shapes::ListShape.new(name: 'PhoneNumberFilterList')
@@ -252,6 +258,8 @@ module Aws::PinpointSMSVoiceV2
252
258
  PutOptedOutNumberResult = Shapes::StructureShape.new(name: 'PutOptedOutNumberResult')
253
259
  PutRegistrationFieldValueRequest = Shapes::StructureShape.new(name: 'PutRegistrationFieldValueRequest')
254
260
  PutRegistrationFieldValueResult = Shapes::StructureShape.new(name: 'PutRegistrationFieldValueResult')
261
+ PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
262
+ PutResourcePolicyResult = Shapes::StructureShape.new(name: 'PutResourcePolicyResult')
255
263
  RegistrationAssociationBehavior = Shapes::StringShape.new(name: 'RegistrationAssociationBehavior')
256
264
  RegistrationAssociationFilter = Shapes::StructureShape.new(name: 'RegistrationAssociationFilter')
257
265
  RegistrationAssociationFilterList = Shapes::ListShape.new(name: 'RegistrationAssociationFilterList')
@@ -312,6 +320,7 @@ module Aws::PinpointSMSVoiceV2
312
320
  RequestableNumberType = Shapes::StringShape.new(name: 'RequestableNumberType')
313
321
  ResourceIdOrArn = Shapes::StringShape.new(name: 'ResourceIdOrArn')
314
322
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
323
+ ResourcePolicy = Shapes::StringShape.new(name: 'ResourcePolicy')
315
324
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
316
325
  SectionPath = Shapes::StringShape.new(name: 'SectionPath')
317
326
  SectionPathList = Shapes::ListShape.new(name: 'SectionPathList')
@@ -763,6 +772,14 @@ module Aws::PinpointSMSVoiceV2
763
772
  DeleteRegistrationResult.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreatedTimestamp"))
764
773
  DeleteRegistrationResult.struct_class = Types::DeleteRegistrationResult
765
774
 
775
+ DeleteResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
776
+ DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
777
+
778
+ DeleteResourcePolicyResult.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceArn"))
779
+ DeleteResourcePolicyResult.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
780
+ DeleteResourcePolicyResult.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedTimestamp"))
781
+ DeleteResourcePolicyResult.struct_class = Types::DeleteResourcePolicyResult
782
+
766
783
  DeleteTextMessageSpendLimitOverrideRequest.struct_class = Types::DeleteTextMessageSpendLimitOverrideRequest
767
784
 
768
785
  DeleteTextMessageSpendLimitOverrideResult.add_member(:monthly_limit, Shapes::ShapeRef.new(shape: MonthlyLimit, location_name: "MonthlyLimit"))
@@ -824,6 +841,7 @@ module Aws::PinpointSMSVoiceV2
824
841
  DescribeOptOutListsRequest.add_member(:opt_out_list_names, Shapes::ShapeRef.new(shape: OptOutListNameList, location_name: "OptOutListNames"))
825
842
  DescribeOptOutListsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
826
843
  DescribeOptOutListsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
844
+ DescribeOptOutListsRequest.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
827
845
  DescribeOptOutListsRequest.struct_class = Types::DescribeOptOutListsRequest
828
846
 
829
847
  DescribeOptOutListsResult.add_member(:opt_out_lists, Shapes::ShapeRef.new(shape: OptOutListInformationList, location_name: "OptOutLists"))
@@ -847,6 +865,7 @@ module Aws::PinpointSMSVoiceV2
847
865
  DescribePhoneNumbersRequest.add_member(:filters, Shapes::ShapeRef.new(shape: PhoneNumberFilterList, location_name: "Filters"))
848
866
  DescribePhoneNumbersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
849
867
  DescribePhoneNumbersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
868
+ DescribePhoneNumbersRequest.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
850
869
  DescribePhoneNumbersRequest.struct_class = Types::DescribePhoneNumbersRequest
851
870
 
852
871
  DescribePhoneNumbersResult.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: PhoneNumberInformationList, location_name: "PhoneNumbers"))
@@ -857,6 +876,7 @@ module Aws::PinpointSMSVoiceV2
857
876
  DescribePoolsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: PoolFilterList, location_name: "Filters"))
858
877
  DescribePoolsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
859
878
  DescribePoolsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
879
+ DescribePoolsRequest.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
860
880
  DescribePoolsRequest.struct_class = Types::DescribePoolsRequest
861
881
 
862
882
  DescribePoolsResult.add_member(:pools, Shapes::ShapeRef.new(shape: PoolInformationList, location_name: "Pools"))
@@ -958,6 +978,7 @@ module Aws::PinpointSMSVoiceV2
958
978
  DescribeSenderIdsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SenderIdFilterList, location_name: "Filters"))
959
979
  DescribeSenderIdsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
960
980
  DescribeSenderIdsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
981
+ DescribeSenderIdsRequest.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
961
982
  DescribeSenderIdsRequest.struct_class = Types::DescribeSenderIdsRequest
962
983
 
963
984
  DescribeSenderIdsResult.add_member(:sender_ids, Shapes::ShapeRef.new(shape: SenderIdInformationList, location_name: "SenderIds"))
@@ -1047,6 +1068,14 @@ module Aws::PinpointSMSVoiceV2
1047
1068
  GetProtectConfigurationCountryRuleSetResult.add_member(:country_rule_set, Shapes::ShapeRef.new(shape: ProtectConfigurationCountryRuleSet, required: true, location_name: "CountryRuleSet"))
1048
1069
  GetProtectConfigurationCountryRuleSetResult.struct_class = Types::GetProtectConfigurationCountryRuleSetResult
1049
1070
 
1071
+ GetResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
1072
+ GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
1073
+
1074
+ GetResourcePolicyResult.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceArn"))
1075
+ GetResourcePolicyResult.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
1076
+ GetResourcePolicyResult.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedTimestamp"))
1077
+ GetResourcePolicyResult.struct_class = Types::GetResourcePolicyResult
1078
+
1050
1079
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
1051
1080
  InternalServerException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
1052
1081
  InternalServerException.struct_class = Types::InternalServerException
@@ -1266,6 +1295,15 @@ module Aws::PinpointSMSVoiceV2
1266
1295
  PutRegistrationFieldValueResult.add_member(:registration_attachment_id, Shapes::ShapeRef.new(shape: String, location_name: "RegistrationAttachmentId"))
1267
1296
  PutRegistrationFieldValueResult.struct_class = Types::PutRegistrationFieldValueResult
1268
1297
 
1298
+ PutResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
1299
+ PutResourcePolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, required: true, location_name: "Policy"))
1300
+ PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
1301
+
1302
+ PutResourcePolicyResult.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceArn"))
1303
+ PutResourcePolicyResult.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
1304
+ PutResourcePolicyResult.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedTimestamp"))
1305
+ PutResourcePolicyResult.struct_class = Types::PutResourcePolicyResult
1306
+
1269
1307
  RegistrationAssociationFilter.add_member(:name, Shapes::ShapeRef.new(shape: RegistrationAssociationFilterName, required: true, location_name: "Name"))
1270
1308
  RegistrationAssociationFilter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValueList, required: true, location_name: "Values"))
1271
1309
  RegistrationAssociationFilter.struct_class = Types::RegistrationAssociationFilter
@@ -2242,6 +2280,19 @@ module Aws::PinpointSMSVoiceV2
2242
2280
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2243
2281
  end)
2244
2282
 
2283
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2284
+ o.name = "DeleteResourcePolicy"
2285
+ o.http_method = "POST"
2286
+ o.http_request_uri = "/"
2287
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
2288
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePolicyResult)
2289
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2290
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2291
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2292
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2293
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2294
+ end)
2295
+
2245
2296
  api.add_operation(:delete_text_message_spend_limit_override, Seahorse::Model::Operation.new.tap do |o|
2246
2297
  o.name = "DeleteTextMessageSpendLimitOverride"
2247
2298
  o.http_method = "POST"
@@ -2690,6 +2741,19 @@ module Aws::PinpointSMSVoiceV2
2690
2741
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2691
2742
  end)
2692
2743
 
2744
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2745
+ o.name = "GetResourcePolicy"
2746
+ o.http_method = "POST"
2747
+ o.http_request_uri = "/"
2748
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
2749
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResult)
2750
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2751
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2752
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2753
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2754
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2755
+ end)
2756
+
2693
2757
  api.add_operation(:list_pool_origination_identities, Seahorse::Model::Operation.new.tap do |o|
2694
2758
  o.name = "ListPoolOriginationIdentities"
2695
2759
  o.http_method = "POST"
@@ -2783,6 +2847,19 @@ module Aws::PinpointSMSVoiceV2
2783
2847
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2784
2848
  end)
2785
2849
 
2850
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2851
+ o.name = "PutResourcePolicy"
2852
+ o.http_method = "POST"
2853
+ o.http_request_uri = "/"
2854
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
2855
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResult)
2856
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2857
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2858
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2859
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2860
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2861
+ end)
2862
+
2786
2863
  api.add_operation(:release_phone_number, Seahorse::Model::Operation.new.tap do |o|
2787
2864
  o.name = "ReleasePhoneNumber"
2788
2865
  o.http_method = "POST"
@@ -298,6 +298,17 @@ module Aws::PinpointSMSVoiceV2
298
298
  end
299
299
  end
300
300
 
301
+ class DeleteResourcePolicy
302
+ def self.build(context)
303
+ Aws::PinpointSMSVoiceV2::EndpointParameters.new(
304
+ region: context.config.region,
305
+ use_dual_stack: context.config.use_dualstack_endpoint,
306
+ use_fips: context.config.use_fips_endpoint,
307
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
308
+ )
309
+ end
310
+ end
311
+
301
312
  class DeleteTextMessageSpendLimitOverride
302
313
  def self.build(context)
303
314
  Aws::PinpointSMSVoiceV2::EndpointParameters.new(
@@ -584,6 +595,17 @@ module Aws::PinpointSMSVoiceV2
584
595
  end
585
596
  end
586
597
 
598
+ class GetResourcePolicy
599
+ def self.build(context)
600
+ Aws::PinpointSMSVoiceV2::EndpointParameters.new(
601
+ region: context.config.region,
602
+ use_dual_stack: context.config.use_dualstack_endpoint,
603
+ use_fips: context.config.use_fips_endpoint,
604
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
605
+ )
606
+ end
607
+ end
608
+
587
609
  class ListPoolOriginationIdentities
588
610
  def self.build(context)
589
611
  Aws::PinpointSMSVoiceV2::EndpointParameters.new(
@@ -650,6 +672,17 @@ module Aws::PinpointSMSVoiceV2
650
672
  end
651
673
  end
652
674
 
675
+ class PutResourcePolicy
676
+ def self.build(context)
677
+ Aws::PinpointSMSVoiceV2::EndpointParameters.new(
678
+ region: context.config.region,
679
+ use_dual_stack: context.config.use_dualstack_endpoint,
680
+ use_fips: context.config.use_fips_endpoint,
681
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
682
+ )
683
+ end
684
+ end
685
+
653
686
  class ReleasePhoneNumber
654
687
  def self.build(context)
655
688
  Aws::PinpointSMSVoiceV2::EndpointParameters.new(
@@ -122,6 +122,8 @@ The endpoint provider used to resolve endpoints. Any object that responds to
122
122
  Aws::PinpointSMSVoiceV2::Endpoints::DeleteRegistrationAttachment.build(context)
123
123
  when :delete_registration_field_value
124
124
  Aws::PinpointSMSVoiceV2::Endpoints::DeleteRegistrationFieldValue.build(context)
125
+ when :delete_resource_policy
126
+ Aws::PinpointSMSVoiceV2::Endpoints::DeleteResourcePolicy.build(context)
125
127
  when :delete_text_message_spend_limit_override
126
128
  Aws::PinpointSMSVoiceV2::Endpoints::DeleteTextMessageSpendLimitOverride.build(context)
127
129
  when :delete_verified_destination_number
@@ -174,6 +176,8 @@ The endpoint provider used to resolve endpoints. Any object that responds to
174
176
  Aws::PinpointSMSVoiceV2::Endpoints::DiscardRegistrationVersion.build(context)
175
177
  when :get_protect_configuration_country_rule_set
176
178
  Aws::PinpointSMSVoiceV2::Endpoints::GetProtectConfigurationCountryRuleSet.build(context)
179
+ when :get_resource_policy
180
+ Aws::PinpointSMSVoiceV2::Endpoints::GetResourcePolicy.build(context)
177
181
  when :list_pool_origination_identities
178
182
  Aws::PinpointSMSVoiceV2::Endpoints::ListPoolOriginationIdentities.build(context)
179
183
  when :list_registration_associations
@@ -186,6 +190,8 @@ The endpoint provider used to resolve endpoints. Any object that responds to
186
190
  Aws::PinpointSMSVoiceV2::Endpoints::PutOptedOutNumber.build(context)
187
191
  when :put_registration_field_value
188
192
  Aws::PinpointSMSVoiceV2::Endpoints::PutRegistrationFieldValue.build(context)
193
+ when :put_resource_policy
194
+ Aws::PinpointSMSVoiceV2::Endpoints::PutResourcePolicy.build(context)
189
195
  when :release_phone_number
190
196
  Aws::PinpointSMSVoiceV2::Endpoints::ReleasePhoneNumber.build(context)
191
197
  when :release_sender_id