Skip to content

MarketplaceDeploymentServiceClient#

Index > MarketplaceDeploymentService > MarketplaceDeploymentServiceClient

Auto-generated documentation for MarketplaceDeploymentService type annotations stubs module types-aiobotocore-marketplace-deployment.

MarketplaceDeploymentServiceClient#

Type annotations and code completion for session.client("marketplace-deployment") boto3 documentation

# MarketplaceDeploymentServiceClient usage example

from aioboto3.session import Session
from types_aiobotocore_marketplace_deployment.client import MarketplaceDeploymentServiceClient

session = Session()
async with session.client("marketplace-deployment") as client:
    client: MarketplaceDeploymentServiceClient

Exceptions#

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

# MarketplaceDeploymentServiceClient.exceptions usage example

async with session.client("marketplace-deployment") as client:
    try:
        do_something(client)
    except (
            client.exceptions.AccessDeniedException,
        client.exceptions.ClientError,
        client.exceptions.ConflictException,
        client.exceptions.InternalServerException,
        client.exceptions.ResourceNotFoundException,
        client.exceptions.ServiceQuotaExceededException,
        client.exceptions.ThrottlingException,
        client.exceptions.ValidationException,
    ) as e:
        print(e)
# MarketplaceDeploymentServiceClient.exceptions type checking example

from types_aiobotocore_marketplace_deployment.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("marketplace-deployment").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 session.client("marketplace-deployment").close method. boto3 documentation

# close method definition

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

generate_presigned_url#

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

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

# generate_presigned_url method definition

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

list_tags_for_resource#

Lists all tags that have been added to a deployment parameter resource.

Type annotations and code completion for session.client("marketplace-deployment").list_tags_for_resource method. boto3 documentation

# list_tags_for_resource method definition

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

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

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

put_deployment_parameter#

Creates or updates a deployment parameter and is targeted by catalog and agreementId.

Type annotations and code completion for session.client("marketplace-deployment").put_deployment_parameter method. boto3 documentation

# put_deployment_parameter method definition

await def put_deployment_parameter(
    self,
    *,
    agreementId: str,
    catalog: str,
    deploymentParameter: DeploymentParameterInputTypeDef,  # (1)
    productId: str,
    clientToken: str = ...,
    expirationDate: Union[datetime, str] = ...,
    tags: Mapping[str, str] = ...,
) -> PutDeploymentParameterResponseTypeDef:  # (2)
    ...
  1. See DeploymentParameterInputTypeDef
  2. See PutDeploymentParameterResponseTypeDef
# put_deployment_parameter method usage example with argument unpacking

kwargs: PutDeploymentParameterRequestRequestTypeDef = {  # (1)
    "agreementId": ...,
    "catalog": ...,
    "deploymentParameter": ...,
    "productId": ...,
}

parent.put_deployment_parameter(**kwargs)
  1. See PutDeploymentParameterRequestRequestTypeDef

tag_resource#

Tags a resource.

Type annotations and code completion for session.client("marketplace-deployment").tag_resource method. boto3 documentation

# tag_resource method definition

await def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Mapping[str, str] = ...,
) -> Dict[str, Any]:
    ...
# tag_resource method usage example with argument unpacking

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

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

untag_resource#

Removes a tag or list of tags from a resource.

Type annotations and code completion for session.client("marketplace-deployment").untag_resource method. boto3 documentation

# untag_resource method definition

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

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}

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

__aenter__#

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

# __aenter__ method definition

await def __aenter__(
    self,
) -> MarketplaceDeploymentServiceClient:
    ...

__aexit__#

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

# __aexit__ method definition

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