|
5 | 5 |
|
6 | 6 | No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7 | 7 |
|
8 |
| - The version of the OpenAPI document: latest |
| 8 | + The version of the OpenAPI document: 4.3.0 |
9 | 9 | Contact: info@localstack.cloud
|
10 | 10 | Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11 | 11 |
|
|
21 | 21 | from typing import Optional
|
22 | 22 | from typing_extensions import Annotated
|
23 | 23 | from localstack.sdk.models.aws_pinpoint_application_id_reference_id_get200_response import AwsPinpointApplicationIdReferenceIdGet200Response
|
| 24 | +from localstack.sdk.models.check_actions_request import CheckActionsRequest |
| 25 | +from localstack.sdk.models.check_actions_response import CheckActionsResponse |
24 | 26 | from localstack.sdk.models.cloud_watch_metrics import CloudWatchMetrics
|
25 | 27 | from localstack.sdk.models.delete_ddb_expired_items200_response import DeleteDdbExpiredItems200Response
|
26 | 28 | from localstack.sdk.models.get_lambda_runtimes200_response import GetLambdaRuntimes200Response
|
@@ -3339,6 +3341,279 @@ def _aws_cognito_idp_signup_post_serialize(
|
3339 | 3341 |
|
3340 | 3342 |
|
3341 | 3343 |
|
| 3344 | + @validate_call |
| 3345 | + def aws_iam_check_actions_allowed_post( |
| 3346 | + self, |
| 3347 | + check_actions_request: CheckActionsRequest, |
| 3348 | + _request_timeout: Union[ |
| 3349 | + None, |
| 3350 | + Annotated[StrictFloat, Field(gt=0)], |
| 3351 | + Tuple[ |
| 3352 | + Annotated[StrictFloat, Field(gt=0)], |
| 3353 | + Annotated[StrictFloat, Field(gt=0)] |
| 3354 | + ] |
| 3355 | + ] = None, |
| 3356 | + _request_auth: Optional[Dict[StrictStr, Any]] = None, |
| 3357 | + _content_type: Optional[StrictStr] = None, |
| 3358 | + _headers: Optional[Dict[StrictStr, Any]] = None, |
| 3359 | + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
| 3360 | + ) -> CheckActionsResponse: |
| 3361 | + """aws_iam_check_actions_allowed_post |
| 3362 | +
|
| 3363 | + Test if the given actions are allowed on the specific resource |
| 3364 | +
|
| 3365 | + :param check_actions_request: (required) |
| 3366 | + :type check_actions_request: CheckActionsRequest |
| 3367 | + :param _request_timeout: timeout setting for this request. If one |
| 3368 | + number provided, it will be total request |
| 3369 | + timeout. It can also be a pair (tuple) of |
| 3370 | + (connection, read) timeouts. |
| 3371 | + :type _request_timeout: int, tuple(int, int), optional |
| 3372 | + :param _request_auth: set to override the auth_settings for an a single |
| 3373 | + request; this effectively ignores the |
| 3374 | + authentication in the spec for a single request. |
| 3375 | + :type _request_auth: dict, optional |
| 3376 | + :param _content_type: force content-type for the request. |
| 3377 | + :type _content_type: str, Optional |
| 3378 | + :param _headers: set to override the headers for a single |
| 3379 | + request; this effectively ignores the headers |
| 3380 | + in the spec for a single request. |
| 3381 | + :type _headers: dict, optional |
| 3382 | + :param _host_index: set to override the host_index for a single |
| 3383 | + request; this effectively ignores the host_index |
| 3384 | + in the spec for a single request. |
| 3385 | + :type _host_index: int, optional |
| 3386 | + :return: Returns the result object. |
| 3387 | + """ # noqa: E501 |
| 3388 | + |
| 3389 | + _param = self._aws_iam_check_actions_allowed_post_serialize( |
| 3390 | + check_actions_request=check_actions_request, |
| 3391 | + _request_auth=_request_auth, |
| 3392 | + _content_type=_content_type, |
| 3393 | + _headers=_headers, |
| 3394 | + _host_index=_host_index |
| 3395 | + ) |
| 3396 | + |
| 3397 | + _response_types_map: Dict[str, Optional[str]] = { |
| 3398 | + '200': "CheckActionsResponse", |
| 3399 | + } |
| 3400 | + response_data = self.api_client.call_api( |
| 3401 | + *_param, |
| 3402 | + _request_timeout=_request_timeout |
| 3403 | + ) |
| 3404 | + response_data.read() |
| 3405 | + return self.api_client.response_deserialize( |
| 3406 | + response_data=response_data, |
| 3407 | + response_types_map=_response_types_map, |
| 3408 | + ).data |
| 3409 | + |
| 3410 | + |
| 3411 | + @validate_call |
| 3412 | + def aws_iam_check_actions_allowed_post_with_http_info( |
| 3413 | + self, |
| 3414 | + check_actions_request: CheckActionsRequest, |
| 3415 | + _request_timeout: Union[ |
| 3416 | + None, |
| 3417 | + Annotated[StrictFloat, Field(gt=0)], |
| 3418 | + Tuple[ |
| 3419 | + Annotated[StrictFloat, Field(gt=0)], |
| 3420 | + Annotated[StrictFloat, Field(gt=0)] |
| 3421 | + ] |
| 3422 | + ] = None, |
| 3423 | + _request_auth: Optional[Dict[StrictStr, Any]] = None, |
| 3424 | + _content_type: Optional[StrictStr] = None, |
| 3425 | + _headers: Optional[Dict[StrictStr, Any]] = None, |
| 3426 | + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
| 3427 | + ) -> ApiResponse[CheckActionsResponse]: |
| 3428 | + """aws_iam_check_actions_allowed_post |
| 3429 | +
|
| 3430 | + Test if the given actions are allowed on the specific resource |
| 3431 | +
|
| 3432 | + :param check_actions_request: (required) |
| 3433 | + :type check_actions_request: CheckActionsRequest |
| 3434 | + :param _request_timeout: timeout setting for this request. If one |
| 3435 | + number provided, it will be total request |
| 3436 | + timeout. It can also be a pair (tuple) of |
| 3437 | + (connection, read) timeouts. |
| 3438 | + :type _request_timeout: int, tuple(int, int), optional |
| 3439 | + :param _request_auth: set to override the auth_settings for an a single |
| 3440 | + request; this effectively ignores the |
| 3441 | + authentication in the spec for a single request. |
| 3442 | + :type _request_auth: dict, optional |
| 3443 | + :param _content_type: force content-type for the request. |
| 3444 | + :type _content_type: str, Optional |
| 3445 | + :param _headers: set to override the headers for a single |
| 3446 | + request; this effectively ignores the headers |
| 3447 | + in the spec for a single request. |
| 3448 | + :type _headers: dict, optional |
| 3449 | + :param _host_index: set to override the host_index for a single |
| 3450 | + request; this effectively ignores the host_index |
| 3451 | + in the spec for a single request. |
| 3452 | + :type _host_index: int, optional |
| 3453 | + :return: Returns the result object. |
| 3454 | + """ # noqa: E501 |
| 3455 | + |
| 3456 | + _param = self._aws_iam_check_actions_allowed_post_serialize( |
| 3457 | + check_actions_request=check_actions_request, |
| 3458 | + _request_auth=_request_auth, |
| 3459 | + _content_type=_content_type, |
| 3460 | + _headers=_headers, |
| 3461 | + _host_index=_host_index |
| 3462 | + ) |
| 3463 | + |
| 3464 | + _response_types_map: Dict[str, Optional[str]] = { |
| 3465 | + '200': "CheckActionsResponse", |
| 3466 | + } |
| 3467 | + response_data = self.api_client.call_api( |
| 3468 | + *_param, |
| 3469 | + _request_timeout=_request_timeout |
| 3470 | + ) |
| 3471 | + response_data.read() |
| 3472 | + return self.api_client.response_deserialize( |
| 3473 | + response_data=response_data, |
| 3474 | + response_types_map=_response_types_map, |
| 3475 | + ) |
| 3476 | + |
| 3477 | + |
| 3478 | + @validate_call |
| 3479 | + def aws_iam_check_actions_allowed_post_without_preload_content( |
| 3480 | + self, |
| 3481 | + check_actions_request: CheckActionsRequest, |
| 3482 | + _request_timeout: Union[ |
| 3483 | + None, |
| 3484 | + Annotated[StrictFloat, Field(gt=0)], |
| 3485 | + Tuple[ |
| 3486 | + Annotated[StrictFloat, Field(gt=0)], |
| 3487 | + Annotated[StrictFloat, Field(gt=0)] |
| 3488 | + ] |
| 3489 | + ] = None, |
| 3490 | + _request_auth: Optional[Dict[StrictStr, Any]] = None, |
| 3491 | + _content_type: Optional[StrictStr] = None, |
| 3492 | + _headers: Optional[Dict[StrictStr, Any]] = None, |
| 3493 | + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
| 3494 | + ) -> RESTResponseType: |
| 3495 | + """aws_iam_check_actions_allowed_post |
| 3496 | +
|
| 3497 | + Test if the given actions are allowed on the specific resource |
| 3498 | +
|
| 3499 | + :param check_actions_request: (required) |
| 3500 | + :type check_actions_request: CheckActionsRequest |
| 3501 | + :param _request_timeout: timeout setting for this request. If one |
| 3502 | + number provided, it will be total request |
| 3503 | + timeout. It can also be a pair (tuple) of |
| 3504 | + (connection, read) timeouts. |
| 3505 | + :type _request_timeout: int, tuple(int, int), optional |
| 3506 | + :param _request_auth: set to override the auth_settings for an a single |
| 3507 | + request; this effectively ignores the |
| 3508 | + authentication in the spec for a single request. |
| 3509 | + :type _request_auth: dict, optional |
| 3510 | + :param _content_type: force content-type for the request. |
| 3511 | + :type _content_type: str, Optional |
| 3512 | + :param _headers: set to override the headers for a single |
| 3513 | + request; this effectively ignores the headers |
| 3514 | + in the spec for a single request. |
| 3515 | + :type _headers: dict, optional |
| 3516 | + :param _host_index: set to override the host_index for a single |
| 3517 | + request; this effectively ignores the host_index |
| 3518 | + in the spec for a single request. |
| 3519 | + :type _host_index: int, optional |
| 3520 | + :return: Returns the result object. |
| 3521 | + """ # noqa: E501 |
| 3522 | + |
| 3523 | + _param = self._aws_iam_check_actions_allowed_post_serialize( |
| 3524 | + check_actions_request=check_actions_request, |
| 3525 | + _request_auth=_request_auth, |
| 3526 | + _content_type=_content_type, |
| 3527 | + _headers=_headers, |
| 3528 | + _host_index=_host_index |
| 3529 | + ) |
| 3530 | + |
| 3531 | + _response_types_map: Dict[str, Optional[str]] = { |
| 3532 | + '200': "CheckActionsResponse", |
| 3533 | + } |
| 3534 | + response_data = self.api_client.call_api( |
| 3535 | + *_param, |
| 3536 | + _request_timeout=_request_timeout |
| 3537 | + ) |
| 3538 | + return response_data.response |
| 3539 | + |
| 3540 | + |
| 3541 | + def _aws_iam_check_actions_allowed_post_serialize( |
| 3542 | + self, |
| 3543 | + check_actions_request, |
| 3544 | + _request_auth, |
| 3545 | + _content_type, |
| 3546 | + _headers, |
| 3547 | + _host_index, |
| 3548 | + ) -> RequestSerialized: |
| 3549 | + |
| 3550 | + _host = None |
| 3551 | + |
| 3552 | + _collection_formats: Dict[str, str] = { |
| 3553 | + } |
| 3554 | + |
| 3555 | + _path_params: Dict[str, str] = {} |
| 3556 | + _query_params: List[Tuple[str, str]] = [] |
| 3557 | + _header_params: Dict[str, Optional[str]] = _headers or {} |
| 3558 | + _form_params: List[Tuple[str, str]] = [] |
| 3559 | + _files: Dict[ |
| 3560 | + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] |
| 3561 | + ] = {} |
| 3562 | + _body_params: Optional[bytes] = None |
| 3563 | + |
| 3564 | + # process the path parameters |
| 3565 | + # process the query parameters |
| 3566 | + # process the header parameters |
| 3567 | + # process the form parameters |
| 3568 | + # process the body parameter |
| 3569 | + if check_actions_request is not None: |
| 3570 | + _body_params = check_actions_request |
| 3571 | + |
| 3572 | + |
| 3573 | + # set the HTTP header `Accept` |
| 3574 | + if 'Accept' not in _header_params: |
| 3575 | + _header_params['Accept'] = self.api_client.select_header_accept( |
| 3576 | + [ |
| 3577 | + 'application/json' |
| 3578 | + ] |
| 3579 | + ) |
| 3580 | + |
| 3581 | + # set the HTTP header `Content-Type` |
| 3582 | + if _content_type: |
| 3583 | + _header_params['Content-Type'] = _content_type |
| 3584 | + else: |
| 3585 | + _default_content_type = ( |
| 3586 | + self.api_client.select_header_content_type( |
| 3587 | + [ |
| 3588 | + 'application/json' |
| 3589 | + ] |
| 3590 | + ) |
| 3591 | + ) |
| 3592 | + if _default_content_type is not None: |
| 3593 | + _header_params['Content-Type'] = _default_content_type |
| 3594 | + |
| 3595 | + # authentication setting |
| 3596 | + _auth_settings: List[str] = [ |
| 3597 | + ] |
| 3598 | + |
| 3599 | + return self.api_client.param_serialize( |
| 3600 | + method='POST', |
| 3601 | + resource_path='/_aws/iam/check-actions-allowed', |
| 3602 | + path_params=_path_params, |
| 3603 | + query_params=_query_params, |
| 3604 | + header_params=_header_params, |
| 3605 | + body=_body_params, |
| 3606 | + post_params=_form_params, |
| 3607 | + files=_files, |
| 3608 | + auth_settings=_auth_settings, |
| 3609 | + collection_formats=_collection_formats, |
| 3610 | + _host=_host, |
| 3611 | + _request_auth=_request_auth |
| 3612 | + ) |
| 3613 | + |
| 3614 | + |
| 3615 | + |
| 3616 | + |
3342 | 3617 | @validate_call
|
3343 | 3618 | def aws_iam_config_get(
|
3344 | 3619 | self,
|
|
0 commit comments