Skip to content

S3OutpostsClient

Index > S3Outposts > S3OutpostsClient

Auto-generated documentation for S3Outposts type annotations stubs module types-aiobotocore-s3outposts.

S3OutpostsClient

Type annotations and code completion for session.client("s3outposts") boto3 documentation

Usage example
from aioboto3.session import Session
from types_aiobotocore_s3outposts.client import S3OutpostsClient

session = Session()
async with session.client("s3outposts") as client:
    client: S3OutpostsClient

Exceptions

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("s3outposts").exceptions structure.

Usage example
async with session.client("s3outposts") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.ClientError,
        client.ConflictException,
        client.InternalServerException,
        client.ResourceNotFoundException,
        client.ValidationException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_s3outposts.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for session.client("s3outposts").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for session.client("s3outposts").close method. boto3 documentation

Method definition
await def close(
    self,
) -> None:
    ...

create_endpoint

Creates an endpoint and associates it with the specified Outpost.

Type annotations and code completion for session.client("s3outposts").create_endpoint method. boto3 documentation

Method definition
await def create_endpoint(
    self,
    *,
    OutpostId: str,
    SubnetId: str,
    SecurityGroupId: str,
    AccessType: EndpointAccessTypeType = ...,  # (1)
    CustomerOwnedIpv4Pool: str = ...,
) -> CreateEndpointResultTypeDef:  # (2)
    ...
  1. See EndpointAccessTypeType
  2. See CreateEndpointResultTypeDef
Usage example with kwargs
kwargs: CreateEndpointRequestRequestTypeDef = {  # (1)
    "OutpostId": ...,
    "SubnetId": ...,
    "SecurityGroupId": ...,
}

parent.create_endpoint(**kwargs)
  1. See CreateEndpointRequestRequestTypeDef

delete_endpoint

Deletes an endpoint.

Type annotations and code completion for session.client("s3outposts").delete_endpoint method. boto3 documentation

Method definition
await def delete_endpoint(
    self,
    *,
    EndpointId: str,
    OutpostId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteEndpointRequestRequestTypeDef = {  # (1)
    "EndpointId": ...,
    "OutpostId": ...,
}

parent.delete_endpoint(**kwargs)
  1. See DeleteEndpointRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.client("s3outposts").generate_presigned_url method. boto3 documentation

Method definition
await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

list_endpoints

Lists endpoints associated with the specified Outpost.

Type annotations and code completion for session.client("s3outposts").list_endpoints method. boto3 documentation

Method definition
await def list_endpoints(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListEndpointsResultTypeDef:  # (1)
    ...
  1. See ListEndpointsResultTypeDef
Usage example with kwargs
kwargs: ListEndpointsRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_endpoints(**kwargs)
  1. See ListEndpointsRequestRequestTypeDef

list_shared_endpoints

Lists all endpoints associated with an Outpost that has been shared by Amazon Web Services Resource Access Manager (RAM).

Type annotations and code completion for session.client("s3outposts").list_shared_endpoints method. boto3 documentation

Method definition
await def list_shared_endpoints(
    self,
    *,
    OutpostId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListSharedEndpointsResultTypeDef:  # (1)
    ...
  1. See ListSharedEndpointsResultTypeDef
Usage example with kwargs
kwargs: ListSharedEndpointsRequestRequestTypeDef = {  # (1)
    "OutpostId": ...,
}

parent.list_shared_endpoints(**kwargs)
  1. See ListSharedEndpointsRequestRequestTypeDef

__aenter__

Type annotations and code completion for session.client("s3outposts").__aenter__ method. boto3 documentation

Method definition
await def __aenter__(
    self,
) -> S3OutpostsClient:
    ...

__aexit__

Type annotations and code completion for session.client("s3outposts").__aexit__ method. boto3 documentation

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator

Type annotations and code completion for session.client("s3outposts").get_paginator method with overloads.