Skip to content

OpenSearchIngestionClient#

Index > OpenSearchIngestion > OpenSearchIngestionClient

Auto-generated documentation for OpenSearchIngestion type annotations stubs module mypy-boto3-osis.

OpenSearchIngestionClient#

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

# OpenSearchIngestionClient usage example

from boto3.session import Session
from mypy_boto3_osis.client import OpenSearchIngestionClient

def get_osis_client() -> OpenSearchIngestionClient:
    return Session().client("osis")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("osis").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("osis")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalException,
    client.exceptions.InvalidPaginationTokenException,
    client.exceptions.LimitExceededException,
    client.exceptions.ResourceAlreadyExistsException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_osis.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 boto3.client("osis").can_paginate method. boto3 documentation

# can_paginate method definition

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

close#

Closes underlying endpoint connections.

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

# close method definition

def close(
    self,
) -> None:
    ...

create_pipeline#

Creates an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").create_pipeline method. boto3 documentation

# create_pipeline method definition

def create_pipeline(
    self,
    *,
    PipelineName: str,
    MinUnits: int,
    MaxUnits: int,
    PipelineConfigurationBody: str,
    LogPublishingOptions: LogPublishingOptionsTypeDef = ...,  # (1)
    VpcOptions: VpcOptionsTypeDef = ...,  # (2)
    BufferOptions: BufferOptionsTypeDef = ...,  # (3)
    EncryptionAtRestOptions: EncryptionAtRestOptionsTypeDef = ...,  # (4)
    Tags: Sequence[TagTypeDef] = ...,  # (5)
) -> CreatePipelineResponseTypeDef:  # (6)
    ...
  1. See LogPublishingOptionsTypeDef
  2. See VpcOptionsTypeDef
  3. See BufferOptionsTypeDef
  4. See EncryptionAtRestOptionsTypeDef
  5. See TagTypeDef
  6. See CreatePipelineResponseTypeDef
# create_pipeline method usage example with argument unpacking

kwargs: CreatePipelineRequestRequestTypeDef = {  # (1)
    "PipelineName": ...,
    "MinUnits": ...,
    "MaxUnits": ...,
    "PipelineConfigurationBody": ...,
}

parent.create_pipeline(**kwargs)
  1. See CreatePipelineRequestRequestTypeDef

delete_pipeline#

Deletes an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").delete_pipeline method. boto3 documentation

# delete_pipeline method definition

def delete_pipeline(
    self,
    *,
    PipelineName: str,
) -> Dict[str, Any]:
    ...
# delete_pipeline method usage example with argument unpacking

kwargs: DeletePipelineRequestRequestTypeDef = {  # (1)
    "PipelineName": ...,
}

parent.delete_pipeline(**kwargs)
  1. See DeletePipelineRequestRequestTypeDef

generate_presigned_url#

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

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

# generate_presigned_url method definition

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

get_pipeline#

Retrieves information about an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").get_pipeline method. boto3 documentation

# get_pipeline method definition

def get_pipeline(
    self,
    *,
    PipelineName: str,
) -> GetPipelineResponseTypeDef:  # (1)
    ...
  1. See GetPipelineResponseTypeDef
# get_pipeline method usage example with argument unpacking

kwargs: GetPipelineRequestRequestTypeDef = {  # (1)
    "PipelineName": ...,
}

parent.get_pipeline(**kwargs)
  1. See GetPipelineRequestRequestTypeDef

get_pipeline_blueprint#

Retrieves information about a specific blueprint for OpenSearch Ingestion.

Type annotations and code completion for boto3.client("osis").get_pipeline_blueprint method. boto3 documentation

# get_pipeline_blueprint method definition

def get_pipeline_blueprint(
    self,
    *,
    BlueprintName: str,
) -> GetPipelineBlueprintResponseTypeDef:  # (1)
    ...
  1. See GetPipelineBlueprintResponseTypeDef
# get_pipeline_blueprint method usage example with argument unpacking

kwargs: GetPipelineBlueprintRequestRequestTypeDef = {  # (1)
    "BlueprintName": ...,
}

parent.get_pipeline_blueprint(**kwargs)
  1. See GetPipelineBlueprintRequestRequestTypeDef

get_pipeline_change_progress#

Returns progress information for the current change happening on an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").get_pipeline_change_progress method. boto3 documentation

# get_pipeline_change_progress method definition

def get_pipeline_change_progress(
    self,
    *,
    PipelineName: str,
) -> GetPipelineChangeProgressResponseTypeDef:  # (1)
    ...
  1. See GetPipelineChangeProgressResponseTypeDef
# get_pipeline_change_progress method usage example with argument unpacking

kwargs: GetPipelineChangeProgressRequestRequestTypeDef = {  # (1)
    "PipelineName": ...,
}

parent.get_pipeline_change_progress(**kwargs)
  1. See GetPipelineChangeProgressRequestRequestTypeDef

list_pipeline_blueprints#

Retrieves a list of all available blueprints for Data Prepper.

Type annotations and code completion for boto3.client("osis").list_pipeline_blueprints method. boto3 documentation

# list_pipeline_blueprints method definition

def list_pipeline_blueprints(
    self,
) -> ListPipelineBlueprintsResponseTypeDef:  # (1)
    ...
  1. See ListPipelineBlueprintsResponseTypeDef

list_pipelines#

Lists all OpenSearch Ingestion pipelines in the current Amazon Web Services account and Region.

Type annotations and code completion for boto3.client("osis").list_pipelines method. boto3 documentation

# list_pipelines method definition

def list_pipelines(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListPipelinesResponseTypeDef:  # (1)
    ...
  1. See ListPipelinesResponseTypeDef
# list_pipelines method usage example with argument unpacking

kwargs: ListPipelinesRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_pipelines(**kwargs)
  1. See ListPipelinesRequestRequestTypeDef

list_tags_for_resource#

Lists all resource tags associated with an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").list_tags_for_resource method. boto3 documentation

# list_tags_for_resource method definition

def list_tags_for_resource(
    self,
    *,
    Arn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "Arn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

start_pipeline#

Starts an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").start_pipeline method. boto3 documentation

# start_pipeline method definition

def start_pipeline(
    self,
    *,
    PipelineName: str,
) -> StartPipelineResponseTypeDef:  # (1)
    ...
  1. See StartPipelineResponseTypeDef
# start_pipeline method usage example with argument unpacking

kwargs: StartPipelineRequestRequestTypeDef = {  # (1)
    "PipelineName": ...,
}

parent.start_pipeline(**kwargs)
  1. See StartPipelineRequestRequestTypeDef

stop_pipeline#

Stops an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").stop_pipeline method. boto3 documentation

# stop_pipeline method definition

def stop_pipeline(
    self,
    *,
    PipelineName: str,
) -> StopPipelineResponseTypeDef:  # (1)
    ...
  1. See StopPipelineResponseTypeDef
# stop_pipeline method usage example with argument unpacking

kwargs: StopPipelineRequestRequestTypeDef = {  # (1)
    "PipelineName": ...,
}

parent.stop_pipeline(**kwargs)
  1. See StopPipelineRequestRequestTypeDef

tag_resource#

Tags an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").tag_resource method. boto3 documentation

# tag_resource method definition

def tag_resource(
    self,
    *,
    Arn: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "Arn": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource#

Removes one or more tags from an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").untag_resource method. boto3 documentation

# untag_resource method definition

def untag_resource(
    self,
    *,
    Arn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "Arn": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_pipeline#

Updates an OpenSearch Ingestion pipeline.

Type annotations and code completion for boto3.client("osis").update_pipeline method. boto3 documentation

# update_pipeline method definition

def update_pipeline(
    self,
    *,
    PipelineName: str,
    MinUnits: int = ...,
    MaxUnits: int = ...,
    PipelineConfigurationBody: str = ...,
    LogPublishingOptions: LogPublishingOptionsTypeDef = ...,  # (1)
    BufferOptions: BufferOptionsTypeDef = ...,  # (2)
    EncryptionAtRestOptions: EncryptionAtRestOptionsTypeDef = ...,  # (3)
) -> UpdatePipelineResponseTypeDef:  # (4)
    ...
  1. See LogPublishingOptionsTypeDef
  2. See BufferOptionsTypeDef
  3. See EncryptionAtRestOptionsTypeDef
  4. See UpdatePipelineResponseTypeDef
# update_pipeline method usage example with argument unpacking

kwargs: UpdatePipelineRequestRequestTypeDef = {  # (1)
    "PipelineName": ...,
}

parent.update_pipeline(**kwargs)
  1. See UpdatePipelineRequestRequestTypeDef

validate_pipeline#

Checks whether an OpenSearch Ingestion pipeline configuration is valid prior to creation.

Type annotations and code completion for boto3.client("osis").validate_pipeline method.