How to use create_api_destination method in localstack

Best Python code snippet using localstack_python

client.pyi

Source:client.pyi Github

copy

Full Screen

...137 Closes underlying endpoint connections.138 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/events.html#EventBridge.Client.close)139 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_events/client.html#close)140 """141 def create_api_destination(142 self,143 *,144 Name: str,145 ConnectionArn: str,146 InvocationEndpoint: str,147 HttpMethod: ApiDestinationHttpMethodType,148 Description: str = None,149 InvocationRateLimitPerSecond: int = None150 ) -> CreateApiDestinationResponseTypeDef:151 """152 Creates an API destination, which is an HTTP invocation endpoint configured as a153 target for events.154 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/events.html#EventBridge.Client.create_api_destination)155 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_events/client.html#create_api_destination)...

Full Screen

Full Screen

responses.py

Source:responses.py Github

copy

Full Screen

...332 def delete_connection(self):333 name = self._get_param("Name")334 result = self.events_backend.delete_connection(name)335 return json.dumps(result), self.response_headers336 def create_api_destination(self):337 name = self._get_param("Name")338 description = self._get_param("Description")339 connection_arn = self._get_param("ConnectionArn")340 invocation_endpoint = self._get_param("InvocationEndpoint")341 invocation_rate_limit_per_second = self._get_param(342 "InvocationRateLimitPerSecond"343 )344 http_method = self._get_param("HttpMethod")345 result = self.events_backend.create_api_destination(346 name,347 description,348 connection_arn,349 invocation_endpoint,350 invocation_rate_limit_per_second,351 http_method,352 )353 return self._create_response(result)354 def list_api_destinations(self):355 destinations = self.events_backend.list_api_destinations()356 result = []357 for destination in destinations:358 result.append(359 {...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful