aws-sdk-lambda 1.135.0 → 1.137.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.
@@ -52,7 +52,6 @@ module Aws::Lambda
52
52
  # * {PolicyLengthExceededException}
53
53
  # * {PreconditionFailedException}
54
54
  # * {ProvisionedConcurrencyConfigNotFoundException}
55
- # * {PublicPolicyException}
56
55
  # * {RecursiveInvocationException}
57
56
  # * {RequestTooLargeException}
58
57
  # * {ResourceConflictException}
@@ -578,26 +577,6 @@ module Aws::Lambda
578
577
  end
579
578
  end
580
579
 
581
- class PublicPolicyException < ServiceError
582
-
583
- # @param [Seahorse::Client::RequestContext] context
584
- # @param [String] message
585
- # @param [Aws::Lambda::Types::PublicPolicyException] data
586
- def initialize(context, message, data = Aws::EmptyStructure.new)
587
- super(context, message, data)
588
- end
589
-
590
- # @return [String]
591
- def type
592
- @data[:type]
593
- end
594
-
595
- # @return [String]
596
- def message
597
- @message || @data[:message]
598
- end
599
- end
600
-
601
580
  class RecursiveInvocationException < ServiceError
602
581
 
603
582
  # @param [Seahorse::Client::RequestContext] context
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::Lambda::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,157 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :add_layer_version_permission
74
- Aws::Lambda::Endpoints::AddLayerVersionPermission.build(context)
75
- when :add_permission
76
- Aws::Lambda::Endpoints::AddPermission.build(context)
77
- when :create_alias
78
- Aws::Lambda::Endpoints::CreateAlias.build(context)
79
- when :create_code_signing_config
80
- Aws::Lambda::Endpoints::CreateCodeSigningConfig.build(context)
81
- when :create_event_source_mapping
82
- Aws::Lambda::Endpoints::CreateEventSourceMapping.build(context)
83
- when :create_function
84
- Aws::Lambda::Endpoints::CreateFunction.build(context)
85
- when :create_function_url_config
86
- Aws::Lambda::Endpoints::CreateFunctionUrlConfig.build(context)
87
- when :delete_alias
88
- Aws::Lambda::Endpoints::DeleteAlias.build(context)
89
- when :delete_code_signing_config
90
- Aws::Lambda::Endpoints::DeleteCodeSigningConfig.build(context)
91
- when :delete_event_source_mapping
92
- Aws::Lambda::Endpoints::DeleteEventSourceMapping.build(context)
93
- when :delete_function
94
- Aws::Lambda::Endpoints::DeleteFunction.build(context)
95
- when :delete_function_code_signing_config
96
- Aws::Lambda::Endpoints::DeleteFunctionCodeSigningConfig.build(context)
97
- when :delete_function_concurrency
98
- Aws::Lambda::Endpoints::DeleteFunctionConcurrency.build(context)
99
- when :delete_function_event_invoke_config
100
- Aws::Lambda::Endpoints::DeleteFunctionEventInvokeConfig.build(context)
101
- when :delete_function_url_config
102
- Aws::Lambda::Endpoints::DeleteFunctionUrlConfig.build(context)
103
- when :delete_layer_version
104
- Aws::Lambda::Endpoints::DeleteLayerVersion.build(context)
105
- when :delete_provisioned_concurrency_config
106
- Aws::Lambda::Endpoints::DeleteProvisionedConcurrencyConfig.build(context)
107
- when :delete_resource_policy
108
- Aws::Lambda::Endpoints::DeleteResourcePolicy.build(context)
109
- when :get_account_settings
110
- Aws::Lambda::Endpoints::GetAccountSettings.build(context)
111
- when :get_alias
112
- Aws::Lambda::Endpoints::GetAlias.build(context)
113
- when :get_code_signing_config
114
- Aws::Lambda::Endpoints::GetCodeSigningConfig.build(context)
115
- when :get_event_source_mapping
116
- Aws::Lambda::Endpoints::GetEventSourceMapping.build(context)
117
- when :get_function
118
- Aws::Lambda::Endpoints::GetFunction.build(context)
119
- when :get_function_code_signing_config
120
- Aws::Lambda::Endpoints::GetFunctionCodeSigningConfig.build(context)
121
- when :get_function_concurrency
122
- Aws::Lambda::Endpoints::GetFunctionConcurrency.build(context)
123
- when :get_function_configuration
124
- Aws::Lambda::Endpoints::GetFunctionConfiguration.build(context)
125
- when :get_function_event_invoke_config
126
- Aws::Lambda::Endpoints::GetFunctionEventInvokeConfig.build(context)
127
- when :get_function_recursion_config
128
- Aws::Lambda::Endpoints::GetFunctionRecursionConfig.build(context)
129
- when :get_function_url_config
130
- Aws::Lambda::Endpoints::GetFunctionUrlConfig.build(context)
131
- when :get_layer_version
132
- Aws::Lambda::Endpoints::GetLayerVersion.build(context)
133
- when :get_layer_version_by_arn
134
- Aws::Lambda::Endpoints::GetLayerVersionByArn.build(context)
135
- when :get_layer_version_policy
136
- Aws::Lambda::Endpoints::GetLayerVersionPolicy.build(context)
137
- when :get_policy
138
- Aws::Lambda::Endpoints::GetPolicy.build(context)
139
- when :get_provisioned_concurrency_config
140
- Aws::Lambda::Endpoints::GetProvisionedConcurrencyConfig.build(context)
141
- when :get_public_access_block_config
142
- Aws::Lambda::Endpoints::GetPublicAccessBlockConfig.build(context)
143
- when :get_resource_policy
144
- Aws::Lambda::Endpoints::GetResourcePolicy.build(context)
145
- when :get_runtime_management_config
146
- Aws::Lambda::Endpoints::GetRuntimeManagementConfig.build(context)
147
- when :invoke
148
- Aws::Lambda::Endpoints::Invoke.build(context)
149
- when :invoke_async
150
- Aws::Lambda::Endpoints::InvokeAsync.build(context)
151
- when :invoke_with_response_stream
152
- Aws::Lambda::Endpoints::InvokeWithResponseStream.build(context)
153
- when :list_aliases
154
- Aws::Lambda::Endpoints::ListAliases.build(context)
155
- when :list_code_signing_configs
156
- Aws::Lambda::Endpoints::ListCodeSigningConfigs.build(context)
157
- when :list_event_source_mappings
158
- Aws::Lambda::Endpoints::ListEventSourceMappings.build(context)
159
- when :list_function_event_invoke_configs
160
- Aws::Lambda::Endpoints::ListFunctionEventInvokeConfigs.build(context)
161
- when :list_function_url_configs
162
- Aws::Lambda::Endpoints::ListFunctionUrlConfigs.build(context)
163
- when :list_functions
164
- Aws::Lambda::Endpoints::ListFunctions.build(context)
165
- when :list_functions_by_code_signing_config
166
- Aws::Lambda::Endpoints::ListFunctionsByCodeSigningConfig.build(context)
167
- when :list_layer_versions
168
- Aws::Lambda::Endpoints::ListLayerVersions.build(context)
169
- when :list_layers
170
- Aws::Lambda::Endpoints::ListLayers.build(context)
171
- when :list_provisioned_concurrency_configs
172
- Aws::Lambda::Endpoints::ListProvisionedConcurrencyConfigs.build(context)
173
- when :list_tags
174
- Aws::Lambda::Endpoints::ListTags.build(context)
175
- when :list_versions_by_function
176
- Aws::Lambda::Endpoints::ListVersionsByFunction.build(context)
177
- when :publish_layer_version
178
- Aws::Lambda::Endpoints::PublishLayerVersion.build(context)
179
- when :publish_version
180
- Aws::Lambda::Endpoints::PublishVersion.build(context)
181
- when :put_function_code_signing_config
182
- Aws::Lambda::Endpoints::PutFunctionCodeSigningConfig.build(context)
183
- when :put_function_concurrency
184
- Aws::Lambda::Endpoints::PutFunctionConcurrency.build(context)
185
- when :put_function_event_invoke_config
186
- Aws::Lambda::Endpoints::PutFunctionEventInvokeConfig.build(context)
187
- when :put_function_recursion_config
188
- Aws::Lambda::Endpoints::PutFunctionRecursionConfig.build(context)
189
- when :put_provisioned_concurrency_config
190
- Aws::Lambda::Endpoints::PutProvisionedConcurrencyConfig.build(context)
191
- when :put_public_access_block_config
192
- Aws::Lambda::Endpoints::PutPublicAccessBlockConfig.build(context)
193
- when :put_resource_policy
194
- Aws::Lambda::Endpoints::PutResourcePolicy.build(context)
195
- when :put_runtime_management_config
196
- Aws::Lambda::Endpoints::PutRuntimeManagementConfig.build(context)
197
- when :remove_layer_version_permission
198
- Aws::Lambda::Endpoints::RemoveLayerVersionPermission.build(context)
199
- when :remove_permission
200
- Aws::Lambda::Endpoints::RemovePermission.build(context)
201
- when :tag_resource
202
- Aws::Lambda::Endpoints::TagResource.build(context)
203
- when :untag_resource
204
- Aws::Lambda::Endpoints::UntagResource.build(context)
205
- when :update_alias
206
- Aws::Lambda::Endpoints::UpdateAlias.build(context)
207
- when :update_code_signing_config
208
- Aws::Lambda::Endpoints::UpdateCodeSigningConfig.build(context)
209
- when :update_event_source_mapping
210
- Aws::Lambda::Endpoints::UpdateEventSourceMapping.build(context)
211
- when :update_function_code
212
- Aws::Lambda::Endpoints::UpdateFunctionCode.build(context)
213
- when :update_function_configuration
214
- Aws::Lambda::Endpoints::UpdateFunctionConfiguration.build(context)
215
- when :update_function_event_invoke_config
216
- Aws::Lambda::Endpoints::UpdateFunctionEventInvokeConfig.build(context)
217
- when :update_function_url_config
218
- Aws::Lambda::Endpoints::UpdateFunctionUrlConfig.build(context)
219
- end
220
- end
221
70
  end
222
71
 
223
72
  def add_handlers(handlers, _config)
@@ -167,14 +167,14 @@ module Aws::Lambda
167
167
  # @return [String]
168
168
  #
169
169
  # @!attribute [rw] principal
170
- # The Amazon Web Servicesservice, Amazon Web Services account, IAM
170
+ # The Amazon Web Services service, Amazon Web Services account, IAM
171
171
  # user, or IAM role that invokes the function. If you specify a
172
172
  # service, use `SourceArn` or `SourceAccount` to limit who can invoke
173
173
  # the function through that service.
174
174
  # @return [String]
175
175
  #
176
176
  # @!attribute [rw] source_arn
177
- # For Amazon Web Servicesservices, the ARN of the Amazon Web Services
177
+ # For Amazon Web Services services, the ARN of the Amazon Web Services
178
178
  # resource that invokes the function. For example, an Amazon S3 bucket
179
179
  # or Amazon SNS topic.
180
180
  #
@@ -183,7 +183,7 @@ module Aws::Lambda
183
183
  # @return [String]
184
184
  #
185
185
  # @!attribute [rw] source_account
186
- # For Amazon Web Servicesservice, the ID of the Amazon Web Services
186
+ # For Amazon Web Services service, the ID of the Amazon Web Services
187
187
  # account that owns the resource. Use this together with `SourceArn`
188
188
  # to ensure that the specified account owns the resource. It is
189
189
  # possible for an Amazon S3 bucket to be deleted by its owner and
@@ -1542,28 +1542,6 @@ module Aws::Lambda
1542
1542
  include Aws::Structure
1543
1543
  end
1544
1544
 
1545
- # @!attribute [rw] resource_arn
1546
- # The Amazon Resource Name (ARN) of the function you want to delete
1547
- # the policy from. You can use either a qualified or an unqualified
1548
- # ARN, but the value you specify must be a complete ARN and wildcard
1549
- # characters are not accepted.
1550
- # @return [String]
1551
- #
1552
- # @!attribute [rw] revision_id
1553
- # Delete the existing policy only if its revision ID matches the
1554
- # string you specify. To find the revision ID of the policy currently
1555
- # attached to your function, use the GetResourcePolicy action.
1556
- # @return [String]
1557
- #
1558
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteResourcePolicyRequest AWS API Documentation
1559
- #
1560
- class DeleteResourcePolicyRequest < Struct.new(
1561
- :resource_arn,
1562
- :revision_id)
1563
- SENSITIVE = []
1564
- include Aws::Structure
1565
- end
1566
-
1567
1545
  # A configuration object that specifies the destination of an event
1568
1546
  # after Lambda processes it.
1569
1547
  #
@@ -3337,63 +3315,6 @@ module Aws::Lambda
3337
3315
  include Aws::Structure
3338
3316
  end
3339
3317
 
3340
- # @!attribute [rw] resource_arn
3341
- # The Amazon Resource Name (ARN) of the function you want to retrieve
3342
- # public-access settings for.
3343
- # @return [String]
3344
- #
3345
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPublicAccessBlockConfigRequest AWS API Documentation
3346
- #
3347
- class GetPublicAccessBlockConfigRequest < Struct.new(
3348
- :resource_arn)
3349
- SENSITIVE = []
3350
- include Aws::Structure
3351
- end
3352
-
3353
- # @!attribute [rw] public_access_block_config
3354
- # The public-access settings configured for the function you specified
3355
- # @return [Types::PublicAccessBlockConfig]
3356
- #
3357
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPublicAccessBlockConfigResponse AWS API Documentation
3358
- #
3359
- class GetPublicAccessBlockConfigResponse < Struct.new(
3360
- :public_access_block_config)
3361
- SENSITIVE = []
3362
- include Aws::Structure
3363
- end
3364
-
3365
- # @!attribute [rw] resource_arn
3366
- # The Amazon Resource Name (ARN) of the function you want to retrieve
3367
- # the policy for. You can use either a qualified or an unqualified
3368
- # ARN, but the value you specify must be a complete ARN and wildcard
3369
- # characters are not accepted.
3370
- # @return [String]
3371
- #
3372
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicyRequest AWS API Documentation
3373
- #
3374
- class GetResourcePolicyRequest < Struct.new(
3375
- :resource_arn)
3376
- SENSITIVE = []
3377
- include Aws::Structure
3378
- end
3379
-
3380
- # @!attribute [rw] policy
3381
- # The resource-based policy attached to the function you specified.
3382
- # @return [String]
3383
- #
3384
- # @!attribute [rw] revision_id
3385
- # The revision ID of the policy.
3386
- # @return [String]
3387
- #
3388
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetResourcePolicyResponse AWS API Documentation
3389
- #
3390
- class GetResourcePolicyResponse < Struct.new(
3391
- :policy,
3392
- :revision_id)
3393
- SENSITIVE = []
3394
- include Aws::Structure
3395
- end
3396
-
3397
3318
  # @!attribute [rw] function_name
3398
3319
  # The name or ARN of the Lambda function.
3399
3320
  #
@@ -5045,52 +4966,6 @@ module Aws::Lambda
5045
4966
  include Aws::Structure
5046
4967
  end
5047
4968
 
5048
- # An object that defines the public-access settings for a function.
5049
- #
5050
- # @!attribute [rw] block_public_policy
5051
- # To block the creation of resource-based policies that would grant
5052
- # public access to your function, set `BlockPublicPolicy` to `true`.
5053
- # To allow the creation of resource-based policies that would grant
5054
- # public access to your function, set `BlockPublicPolicy` to `false`.
5055
- # @return [Boolean]
5056
- #
5057
- # @!attribute [rw] restrict_public_resource
5058
- # To block public access to your function, even if its resource-based
5059
- # policy allows it, set `RestrictPublicResource` to `true`. To allow
5060
- # public access to a function with a resource-based policy that
5061
- # permits it, set `RestrictPublicResource` to `false`.
5062
- # @return [Boolean]
5063
- #
5064
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublicAccessBlockConfig AWS API Documentation
5065
- #
5066
- class PublicAccessBlockConfig < Struct.new(
5067
- :block_public_policy,
5068
- :restrict_public_resource)
5069
- SENSITIVE = []
5070
- include Aws::Structure
5071
- end
5072
-
5073
- # Lambda prevented your policy from being created because it would grant
5074
- # public access to your function. If you intended to create a public
5075
- # policy, use the PutPublicAccessBlockConfig API action to configure
5076
- # your function's public-access settings to allow public policies.
5077
- #
5078
- # @!attribute [rw] type
5079
- # The exception type.
5080
- # @return [String]
5081
- #
5082
- # @!attribute [rw] message
5083
- # @return [String]
5084
- #
5085
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublicPolicyException AWS API Documentation
5086
- #
5087
- class PublicPolicyException < Struct.new(
5088
- :type,
5089
- :message)
5090
- SENSITIVE = []
5091
- include Aws::Structure
5092
- end
5093
-
5094
4969
  # @!attribute [rw] layer_name
5095
4970
  # The name or Amazon Resource Name (ARN) of the layer.
5096
4971
  # @return [String]
@@ -5575,103 +5450,6 @@ module Aws::Lambda
5575
5450
  include Aws::Structure
5576
5451
  end
5577
5452
 
5578
- # @!attribute [rw] resource_arn
5579
- # The Amazon Resource Name (ARN) of the function you want to configure
5580
- # public-access settings for. Public-access settings are applied at
5581
- # the function level, so you can't apply different settings to
5582
- # function versions or aliases.
5583
- # @return [String]
5584
- #
5585
- # @!attribute [rw] public_access_block_config
5586
- # An object defining the public-access settings you want to apply.
5587
- #
5588
- # To block the creation of resource-based policies that would grant
5589
- # public access to your function, set `BlockPublicPolicy` to `true`.
5590
- # To allow the creation of resource-based policies that would grant
5591
- # public access to your function, set `BlockPublicPolicy` to `false`.
5592
- #
5593
- # To block public access to your function, even if its resource-based
5594
- # policy allows it, set `RestrictPublicResource` to `true`. To allow
5595
- # public access to a function with a resource-based policy that
5596
- # permits it, set `RestrictPublicResource` to `false`.
5597
- #
5598
- # The default setting for both `BlockPublicPolicy` and
5599
- # `RestrictPublicResource` is `true`.
5600
- # @return [Types::PublicAccessBlockConfig]
5601
- #
5602
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutPublicAccessBlockConfigRequest AWS API Documentation
5603
- #
5604
- class PutPublicAccessBlockConfigRequest < Struct.new(
5605
- :resource_arn,
5606
- :public_access_block_config)
5607
- SENSITIVE = []
5608
- include Aws::Structure
5609
- end
5610
-
5611
- # @!attribute [rw] public_access_block_config
5612
- # The public-access settings Lambda applied to your function.
5613
- # @return [Types::PublicAccessBlockConfig]
5614
- #
5615
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutPublicAccessBlockConfigResponse AWS API Documentation
5616
- #
5617
- class PutPublicAccessBlockConfigResponse < Struct.new(
5618
- :public_access_block_config)
5619
- SENSITIVE = []
5620
- include Aws::Structure
5621
- end
5622
-
5623
- # @!attribute [rw] resource_arn
5624
- # The Amazon Resource Name (ARN) of the function you want to add the
5625
- # policy to. You can use either a qualified or an unqualified ARN, but
5626
- # the value you specify must be a complete ARN and wildcard characters
5627
- # are not accepted.
5628
- # @return [String]
5629
- #
5630
- # @!attribute [rw] policy
5631
- # The JSON resource-based policy you want to add to your function.
5632
- #
5633
- # To learn more about creating resource-based policies for controlling
5634
- # access to Lambda, see [Working with resource-based IAM policies in
5635
- # Lambda][1] in the *Lambda Developer Guide*.
5636
- #
5637
- #
5638
- #
5639
- # [1]: https://docs.aws.amazon.com/
5640
- # @return [String]
5641
- #
5642
- # @!attribute [rw] revision_id
5643
- # Replace the existing policy only if its revision ID matches the
5644
- # string you specify. To find the revision ID of the policy currently
5645
- # attached to your function, use the GetResourcePolicy action.
5646
- # @return [String]
5647
- #
5648
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicyRequest AWS API Documentation
5649
- #
5650
- class PutResourcePolicyRequest < Struct.new(
5651
- :resource_arn,
5652
- :policy,
5653
- :revision_id)
5654
- SENSITIVE = []
5655
- include Aws::Structure
5656
- end
5657
-
5658
- # @!attribute [rw] policy
5659
- # The policy Lambda added to your function.
5660
- # @return [String]
5661
- #
5662
- # @!attribute [rw] revision_id
5663
- # The revision ID of the policy Lambda added to your function.
5664
- # @return [String]
5665
- #
5666
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutResourcePolicyResponse AWS API Documentation
5667
- #
5668
- class PutResourcePolicyResponse < Struct.new(
5669
- :policy,
5670
- :revision_id)
5671
- SENSITIVE = []
5672
- include Aws::Structure
5673
- end
5674
-
5675
5453
  # @!attribute [rw] function_name
5676
5454
  # The name or ARN of the Lambda function.
5677
5455
  #
@@ -56,7 +56,7 @@ module Aws::Lambda
56
56
  autoload :Endpoints, 'aws-sdk-lambda/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-lambda/event_streams'
58
58
 
59
- GEM_VERSION = '1.135.0'
59
+ GEM_VERSION = '1.137.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -476,13 +476,6 @@ module Aws
476
476
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
477
477
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
478
478
 
479
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_resource_policy-instance_method
480
- def delete_resource_policy: (
481
- resource_arn: ::String,
482
- ?revision_id: ::String
483
- ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
484
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
485
-
486
479
  interface _GetAccountSettingsResponseSuccess
487
480
  include ::Seahorse::Client::_ResponseSuccess[Types::GetAccountSettingsResponse]
488
481
  def account_limit: () -> Types::AccountLimit
@@ -758,27 +751,6 @@ module Aws
758
751
  ) -> _GetProvisionedConcurrencyConfigResponseSuccess
759
752
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedConcurrencyConfigResponseSuccess
760
753
 
761
- interface _GetPublicAccessBlockConfigResponseSuccess
762
- include ::Seahorse::Client::_ResponseSuccess[Types::GetPublicAccessBlockConfigResponse]
763
- def public_access_block_config: () -> Types::PublicAccessBlockConfig
764
- end
765
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_public_access_block_config-instance_method
766
- def get_public_access_block_config: (
767
- resource_arn: ::String
768
- ) -> _GetPublicAccessBlockConfigResponseSuccess
769
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPublicAccessBlockConfigResponseSuccess
770
-
771
- interface _GetResourcePolicyResponseSuccess
772
- include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyResponse]
773
- def policy: () -> ::String
774
- def revision_id: () -> ::String
775
- end
776
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_resource_policy-instance_method
777
- def get_resource_policy: (
778
- resource_arn: ::String
779
- ) -> _GetResourcePolicyResponseSuccess
780
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
781
-
782
754
  interface _GetRuntimeManagementConfigResponseSuccess
783
755
  include ::Seahorse::Client::_ResponseSuccess[Types::GetRuntimeManagementConfigResponse]
784
756
  def update_runtime_on: () -> ("Auto" | "Manual" | "FunctionUpdate")
@@ -1150,33 +1122,6 @@ module Aws
1150
1122
  ) -> _PutProvisionedConcurrencyConfigResponseSuccess
1151
1123
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutProvisionedConcurrencyConfigResponseSuccess
1152
1124
 
1153
- interface _PutPublicAccessBlockConfigResponseSuccess
1154
- include ::Seahorse::Client::_ResponseSuccess[Types::PutPublicAccessBlockConfigResponse]
1155
- def public_access_block_config: () -> Types::PublicAccessBlockConfig
1156
- end
1157
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_public_access_block_config-instance_method
1158
- def put_public_access_block_config: (
1159
- resource_arn: ::String,
1160
- public_access_block_config: {
1161
- block_public_policy: bool?,
1162
- restrict_public_resource: bool?
1163
- }
1164
- ) -> _PutPublicAccessBlockConfigResponseSuccess
1165
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutPublicAccessBlockConfigResponseSuccess
1166
-
1167
- interface _PutResourcePolicyResponseSuccess
1168
- include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyResponse]
1169
- def policy: () -> ::String
1170
- def revision_id: () -> ::String
1171
- end
1172
- # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_resource_policy-instance_method
1173
- def put_resource_policy: (
1174
- resource_arn: ::String,
1175
- policy: ::String,
1176
- ?revision_id: ::String
1177
- ) -> _PutResourcePolicyResponseSuccess
1178
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutResourcePolicyResponseSuccess
1179
-
1180
1125
  interface _PutRuntimeManagementConfigResponseSuccess
1181
1126
  include ::Seahorse::Client::_ResponseSuccess[Types::PutRuntimeManagementConfigResponse]
1182
1127
  def update_runtime_on: () -> ("Auto" | "Manual" | "FunctionUpdate")
data/sig/errors.rbs CHANGED
@@ -112,10 +112,6 @@ module Aws
112
112
  def type: () -> ::String
113
113
  def message: () -> ::String
114
114
  end
115
- class PublicPolicyException < ::Aws::Errors::ServiceError
116
- def type: () -> ::String
117
- def message: () -> ::String
118
- end
119
115
  class RecursiveInvocationException < ::Aws::Errors::ServiceError
120
116
  def type: () -> ::String
121
117
  def message: () -> ::String
data/sig/types.rbs CHANGED
@@ -295,12 +295,6 @@ module Aws::Lambda
295
295
  SENSITIVE: []
296
296
  end
297
297
 
298
- class DeleteResourcePolicyRequest
299
- attr_accessor resource_arn: ::String
300
- attr_accessor revision_id: ::String
301
- SENSITIVE: []
302
- end
303
-
304
298
  class DestinationConfig
305
299
  attr_accessor on_success: Types::OnSuccess
306
300
  attr_accessor on_failure: Types::OnFailure
@@ -686,27 +680,6 @@ module Aws::Lambda
686
680
  SENSITIVE: []
687
681
  end
688
682
 
689
- class GetPublicAccessBlockConfigRequest
690
- attr_accessor resource_arn: ::String
691
- SENSITIVE: []
692
- end
693
-
694
- class GetPublicAccessBlockConfigResponse
695
- attr_accessor public_access_block_config: Types::PublicAccessBlockConfig
696
- SENSITIVE: []
697
- end
698
-
699
- class GetResourcePolicyRequest
700
- attr_accessor resource_arn: ::String
701
- SENSITIVE: []
702
- end
703
-
704
- class GetResourcePolicyResponse
705
- attr_accessor policy: ::String
706
- attr_accessor revision_id: ::String
707
- SENSITIVE: []
708
- end
709
-
710
683
  class GetRuntimeManagementConfigRequest
711
684
  attr_accessor function_name: ::String
712
685
  attr_accessor qualifier: ::String
@@ -1115,18 +1088,6 @@ module Aws::Lambda
1115
1088
  SENSITIVE: []
1116
1089
  end
1117
1090
 
1118
- class PublicAccessBlockConfig
1119
- attr_accessor block_public_policy: bool
1120
- attr_accessor restrict_public_resource: bool
1121
- SENSITIVE: []
1122
- end
1123
-
1124
- class PublicPolicyException
1125
- attr_accessor type: ::String
1126
- attr_accessor message: ::String
1127
- SENSITIVE: []
1128
- end
1129
-
1130
1091
  class PublishLayerVersionRequest
1131
1092
  attr_accessor layer_name: ::String
1132
1093
  attr_accessor description: ::String
@@ -1213,30 +1174,6 @@ module Aws::Lambda
1213
1174
  SENSITIVE: []
1214
1175
  end
1215
1176
 
1216
- class PutPublicAccessBlockConfigRequest
1217
- attr_accessor resource_arn: ::String
1218
- attr_accessor public_access_block_config: Types::PublicAccessBlockConfig
1219
- SENSITIVE: []
1220
- end
1221
-
1222
- class PutPublicAccessBlockConfigResponse
1223
- attr_accessor public_access_block_config: Types::PublicAccessBlockConfig
1224
- SENSITIVE: []
1225
- end
1226
-
1227
- class PutResourcePolicyRequest
1228
- attr_accessor resource_arn: ::String
1229
- attr_accessor policy: ::String
1230
- attr_accessor revision_id: ::String
1231
- SENSITIVE: []
1232
- end
1233
-
1234
- class PutResourcePolicyResponse
1235
- attr_accessor policy: ::String
1236
- attr_accessor revision_id: ::String
1237
- SENSITIVE: []
1238
- end
1239
-
1240
1177
  class PutRuntimeManagementConfigRequest
1241
1178
  attr_accessor function_name: ::String
1242
1179
  attr_accessor qualifier: ::String