Skip to content

describe_s3_access_point_attachments async

describe_s3_access_point_attachments(
    *,
    config_overrides: Optional[AsyncFSxClientConfig] = None,
    names: Optional[S3AccessPointAttachmentNames] = None,
    filters: Optional[S3AccessPointAttachmentsFilters] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> DescribeS3AccessPointAttachmentsResponse

Describes one or more S3 access points attached to Amazon FSx volumes.

The requester requires the following permission to perform this action:

  • fsx:DescribeS3AccessPointAttachments

Parameters:

Raises:

Source code in docs_src/capo_fsx/_services/async_f_sx.py
async def describe_s3_access_point_attachments(
    self,
    *,
    config_overrides: Optional[AsyncFSxClientConfig] = None,
    names: Optional[
        "capo_fsx.types.s3_access_point_attachment_names.S3AccessPointAttachmentNames"
    ] = None,
    filters: Optional[
        "capo_fsx.types.s3_access_point_attachments_filters.S3AccessPointAttachmentsFilters"
    ] = None,
    max_results: Optional["capo_fsx.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_fsx.types.next_token.NextToken"] = None,
) -> "capo_fsx.types.describe_s3_access_point_attachments_response.DescribeS3AccessPointAttachmentsResponse":
    """<p>Describes one or more S3 access points attached to Amazon FSx volumes.</p> <p>The requester requires the following permission to perform this action:</p> <ul> <li> <p> <code>fsx:DescribeS3AccessPointAttachments</code> </p> </li> </ul>

    Args:
        names: <p>The names of the S3 access point attachments whose descriptions you want to retrieve.</p>
        filters: <p>Enter a filter Name and Values pair to view a select set of S3 access point attachments.</p>

    Raises:
        capo_fsx.errors.bad_request.BadRequest: <p>A generic error indicating a failure with a client request.</p>
        capo_fsx.errors.internal_server_error.InternalServerError: <p>A generic error indicating a server-side failure.</p>
        capo_fsx.errors.s3_access_point_attachment_not_found.S3AccessPointAttachmentNotFound: <p>The access point specified was not found.</p>
        capo_fsx.errors.unsupported_operation.UnsupportedOperation: <p>The requested operation is not supported for this resource or API.</p>
        capo_fsx.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_fsx.types.describe_s3_access_point_attachments_request.DescribeS3AccessPointAttachmentsRequest]",
    ) -> AsyncOperationResponse[
        "capo_fsx.types.describe_s3_access_point_attachments_response.DescribeS3AccessPointAttachmentsResponse"
    ]:
        import capo_fsx._operations.aws_simba_api_service_v20180301.describe_s3_access_point_attachments

        (
            output,
            http_response,
        ) = await capo_fsx._operations.aws_simba_api_service_v20180301.describe_s3_access_point_attachments.async_describe_s3_access_point_attachments(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeS3AccessPointAttachments")
    )
    input_: capo_fsx.types.describe_s3_access_point_attachments_request.DescribeS3AccessPointAttachmentsRequest = {}
    if names is not None:
        input_["names"] = names
    if filters is not None:
        input_["filters"] = filters
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output