This operation is not supported by directory buckets.
Returns some or all (up to 1,000) access points associated with the Object Lambda Access Point per call. If there are more access points than what can be returned in one call, the response will include a continuation token that you can use to list the additional access points.
The following actions are related to ListAccessPointsForObjectLambda:
Parameters:
-
account_id
(AccountId)
–
The account ID for the account that owns the specified Object Lambda Access Point.
-
next_token
(Optional[NonEmptyMaxLength1024String], default:
None
)
–
If the list has more access points than can be returned in one call to this API, this field contains a continuation token that you can provide in subsequent calls to this API to retrieve additional access points.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of access points that you want to include in the list. The response may contain fewer access points but will never contain more. If there are more than this number of access points, then the response will include a continuation token in the NextToken field that you can use to retrieve the next page of access points.
Raises:
Source code in docs_src/capo_s3_control/_services/async_s3_control.py
| async def list_access_points_for_object_lambda(
self,
account_id: "capo_s3_control.types.account_id.AccountId",
*,
config_overrides: Optional[AsyncS3ControlClientConfig] = None,
next_token: Optional[
"capo_s3_control.types.non_empty_max_length1024_string.NonEmptyMaxLength1024String"
] = None,
max_results: Optional["capo_s3_control.types.max_results.MaxResults"] = None,
) -> "capo_s3_control.types.list_access_points_for_object_lambda_result.ListAccessPointsForObjectLambdaResult":
"""<note> <p>This operation is not supported by directory buckets.</p> </note> <p>Returns some or all (up to 1,000) access points associated with the Object Lambda Access Point per call. If there are more access points than what can be returned in one call, the response will include a continuation token that you can use to list the additional access points.</p> <p>The following actions are related to <code>ListAccessPointsForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPointForObjectLambda.html">CreateAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointForObjectLambda.html">DeleteAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointForObjectLambda.html">GetAccessPointForObjectLambda</a> </p> </li> </ul>
Args:
account_id: <p>The account ID for the account that owns the specified Object Lambda Access Point.</p>
next_token: <p>If the list has more access points than can be returned in one call to this API, this field contains a continuation token that you can provide in subsequent calls to this API to retrieve additional access points.</p>
max_results: <p>The maximum number of access points that you want to include in the list. The response may contain fewer access points but will never contain more. If there are more than this number of access points, then the response will include a continuation token in the <code>NextToken</code> field that you can use to retrieve the next page of access points.</p>
Raises:
capo_s3_control.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_s3_control.types.list_access_points_for_object_lambda_request.ListAccessPointsForObjectLambdaRequest]",
) -> AsyncOperationResponse[
"capo_s3_control.types.list_access_points_for_object_lambda_result.ListAccessPointsForObjectLambdaResult"
]:
import capo_s3_control._operations.awss3_control_service_v20180820.list_access_points_for_object_lambda
(
output,
http_response,
) = await capo_s3_control._operations.awss3_control_service_v20180820.list_access_points_for_object_lambda.async_list_access_points_for_object_lambda(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListAccessPointsForObjectLambda")
)
input_: capo_s3_control.types.list_access_points_for_object_lambda_request.ListAccessPointsForObjectLambdaRequest = {
"account_id": account_id
}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|