aws-sdk-pinpointsmsvoicev2 1.26.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -95,6 +95,8 @@ module Aws::PinpointSMSVoiceV2
95
95
  DeleteRegistrationFieldValueResult = Shapes::StructureShape.new(name: 'DeleteRegistrationFieldValueResult')
96
96
  DeleteRegistrationRequest = Shapes::StructureShape.new(name: 'DeleteRegistrationRequest')
97
97
  DeleteRegistrationResult = Shapes::StructureShape.new(name: 'DeleteRegistrationResult')
98
+ DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
99
+ DeleteResourcePolicyResult = Shapes::StructureShape.new(name: 'DeleteResourcePolicyResult')
98
100
  DeleteTextMessageSpendLimitOverrideRequest = Shapes::StructureShape.new(name: 'DeleteTextMessageSpendLimitOverrideRequest')
99
101
  DeleteTextMessageSpendLimitOverrideResult = Shapes::StructureShape.new(name: 'DeleteTextMessageSpendLimitOverrideResult')
100
102
  DeleteVerifiedDestinationNumberRequest = Shapes::StructureShape.new(name: 'DeleteVerifiedDestinationNumberRequest')
@@ -163,6 +165,8 @@ module Aws::PinpointSMSVoiceV2
163
165
  FilterValueList = Shapes::ListShape.new(name: 'FilterValueList')
164
166
  GetProtectConfigurationCountryRuleSetRequest = Shapes::StructureShape.new(name: 'GetProtectConfigurationCountryRuleSetRequest')
165
167
  GetProtectConfigurationCountryRuleSetResult = Shapes::StructureShape.new(name: 'GetProtectConfigurationCountryRuleSetResult')
168
+ GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
169
+ GetResourcePolicyResult = Shapes::StructureShape.new(name: 'GetResourcePolicyResult')
166
170
  IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
167
171
  Integer = Shapes::IntegerShape.new(name: 'Integer')
168
172
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
@@ -212,6 +216,7 @@ module Aws::PinpointSMSVoiceV2
212
216
  OptedOutNumberList = Shapes::ListShape.new(name: 'OptedOutNumberList')
213
217
  OriginationIdentityMetadata = Shapes::StructureShape.new(name: 'OriginationIdentityMetadata')
214
218
  OriginationIdentityMetadataList = Shapes::ListShape.new(name: 'OriginationIdentityMetadataList')
219
+ Owner = Shapes::StringShape.new(name: 'Owner')
215
220
  PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
216
221
  PhoneNumberFilter = Shapes::StructureShape.new(name: 'PhoneNumberFilter')
217
222
  PhoneNumberFilterList = Shapes::ListShape.new(name: 'PhoneNumberFilterList')
@@ -253,6 +258,8 @@ module Aws::PinpointSMSVoiceV2
253
258
  PutOptedOutNumberResult = Shapes::StructureShape.new(name: 'PutOptedOutNumberResult')
254
259
  PutRegistrationFieldValueRequest = Shapes::StructureShape.new(name: 'PutRegistrationFieldValueRequest')
255
260
  PutRegistrationFieldValueResult = Shapes::StructureShape.new(name: 'PutRegistrationFieldValueResult')
261
+ PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
262
+ PutResourcePolicyResult = Shapes::StructureShape.new(name: 'PutResourcePolicyResult')
256
263
  RegistrationAssociationBehavior = Shapes::StringShape.new(name: 'RegistrationAssociationBehavior')
257
264
  RegistrationAssociationFilter = Shapes::StructureShape.new(name: 'RegistrationAssociationFilter')
258
265
  RegistrationAssociationFilterList = Shapes::ListShape.new(name: 'RegistrationAssociationFilterList')
@@ -313,6 +320,7 @@ module Aws::PinpointSMSVoiceV2
313
320
  RequestableNumberType = Shapes::StringShape.new(name: 'RequestableNumberType')
314
321
  ResourceIdOrArn = Shapes::StringShape.new(name: 'ResourceIdOrArn')
315
322
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
323
+ ResourcePolicy = Shapes::StringShape.new(name: 'ResourcePolicy')
316
324
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
317
325
  SectionPath = Shapes::StringShape.new(name: 'SectionPath')
318
326
  SectionPathList = Shapes::ListShape.new(name: 'SectionPathList')
@@ -764,6 +772,14 @@ module Aws::PinpointSMSVoiceV2
764
772
  DeleteRegistrationResult.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreatedTimestamp"))
765
773
  DeleteRegistrationResult.struct_class = Types::DeleteRegistrationResult
766
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
+
767
783
  DeleteTextMessageSpendLimitOverrideRequest.struct_class = Types::DeleteTextMessageSpendLimitOverrideRequest
768
784
 
769
785
  DeleteTextMessageSpendLimitOverrideResult.add_member(:monthly_limit, Shapes::ShapeRef.new(shape: MonthlyLimit, location_name: "MonthlyLimit"))
@@ -825,6 +841,7 @@ module Aws::PinpointSMSVoiceV2
825
841
  DescribeOptOutListsRequest.add_member(:opt_out_list_names, Shapes::ShapeRef.new(shape: OptOutListNameList, location_name: "OptOutListNames"))
826
842
  DescribeOptOutListsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
827
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"))
828
845
  DescribeOptOutListsRequest.struct_class = Types::DescribeOptOutListsRequest
829
846
 
830
847
  DescribeOptOutListsResult.add_member(:opt_out_lists, Shapes::ShapeRef.new(shape: OptOutListInformationList, location_name: "OptOutLists"))
@@ -848,6 +865,7 @@ module Aws::PinpointSMSVoiceV2
848
865
  DescribePhoneNumbersRequest.add_member(:filters, Shapes::ShapeRef.new(shape: PhoneNumberFilterList, location_name: "Filters"))
849
866
  DescribePhoneNumbersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
850
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"))
851
869
  DescribePhoneNumbersRequest.struct_class = Types::DescribePhoneNumbersRequest
852
870
 
853
871
  DescribePhoneNumbersResult.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: PhoneNumberInformationList, location_name: "PhoneNumbers"))
@@ -858,6 +876,7 @@ module Aws::PinpointSMSVoiceV2
858
876
  DescribePoolsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: PoolFilterList, location_name: "Filters"))
859
877
  DescribePoolsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
860
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"))
861
880
  DescribePoolsRequest.struct_class = Types::DescribePoolsRequest
862
881
 
863
882
  DescribePoolsResult.add_member(:pools, Shapes::ShapeRef.new(shape: PoolInformationList, location_name: "Pools"))
@@ -959,6 +978,7 @@ module Aws::PinpointSMSVoiceV2
959
978
  DescribeSenderIdsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SenderIdFilterList, location_name: "Filters"))
960
979
  DescribeSenderIdsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
961
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"))
962
982
  DescribeSenderIdsRequest.struct_class = Types::DescribeSenderIdsRequest
963
983
 
964
984
  DescribeSenderIdsResult.add_member(:sender_ids, Shapes::ShapeRef.new(shape: SenderIdInformationList, location_name: "SenderIds"))
@@ -1048,6 +1068,14 @@ module Aws::PinpointSMSVoiceV2
1048
1068
  GetProtectConfigurationCountryRuleSetResult.add_member(:country_rule_set, Shapes::ShapeRef.new(shape: ProtectConfigurationCountryRuleSet, required: true, location_name: "CountryRuleSet"))
1049
1069
  GetProtectConfigurationCountryRuleSetResult.struct_class = Types::GetProtectConfigurationCountryRuleSetResult
1050
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
+
1051
1079
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
1052
1080
  InternalServerException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
1053
1081
  InternalServerException.struct_class = Types::InternalServerException
@@ -1267,6 +1295,15 @@ module Aws::PinpointSMSVoiceV2
1267
1295
  PutRegistrationFieldValueResult.add_member(:registration_attachment_id, Shapes::ShapeRef.new(shape: String, location_name: "RegistrationAttachmentId"))
1268
1296
  PutRegistrationFieldValueResult.struct_class = Types::PutRegistrationFieldValueResult
1269
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
+
1270
1307
  RegistrationAssociationFilter.add_member(:name, Shapes::ShapeRef.new(shape: RegistrationAssociationFilterName, required: true, location_name: "Name"))
1271
1308
  RegistrationAssociationFilter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValueList, required: true, location_name: "Values"))
1272
1309
  RegistrationAssociationFilter.struct_class = Types::RegistrationAssociationFilter
@@ -2243,6 +2280,19 @@ module Aws::PinpointSMSVoiceV2
2243
2280
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2244
2281
  end)
2245
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
+
2246
2296
  api.add_operation(:delete_text_message_spend_limit_override, Seahorse::Model::Operation.new.tap do |o|
2247
2297
  o.name = "DeleteTextMessageSpendLimitOverride"
2248
2298
  o.http_method = "POST"
@@ -2691,6 +2741,19 @@ module Aws::PinpointSMSVoiceV2
2691
2741
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2692
2742
  end)
2693
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
+
2694
2757
  api.add_operation(:list_pool_origination_identities, Seahorse::Model::Operation.new.tap do |o|
2695
2758
  o.name = "ListPoolOriginationIdentities"
2696
2759
  o.http_method = "POST"
@@ -2784,6 +2847,19 @@ module Aws::PinpointSMSVoiceV2
2784
2847
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2785
2848
  end)
2786
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
+
2787
2863
  api.add_operation(:release_phone_number, Seahorse::Model::Operation.new.tap do |o|
2788
2864
  o.name = "ReleasePhoneNumber"
2789
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