Skip to content

signerClient#

Index > signer > signerClient

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

signerClient#

Type annotations and code completion for session.create_client("signer") boto3 documentation

signerClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_signer.client import signerClient

session = get_session()
async with session.create_client("signer") as client:
    client: signerClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("signer").exceptions structure.

signerClient.exceptions usage example

async with session.create_client("signer") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.BadRequestException,
        client.ClientError,
        client.ConflictException,
        client.InternalServiceErrorException,
        client.NotFoundException,
        client.ResourceNotFoundException,
        client.ServiceLimitExceededException,
        client.ThrottlingException,
        client.TooManyRequestsException,
        client.ValidationException,
    ) as e:
        print(e)
signerClient usage type checking example

from types_aiobotocore_signer.client import Exceptions

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

Methods#

add_profile_permission#

Adds cross-account permissions to a signing profile.

Type annotations and code completion for session.create_client("signer").add_profile_permission method. boto3 documentation

# add_profile_permission method definition

await def add_profile_permission(
    self,
    *,
    profileName: str,
    action: str,
    principal: str,
    statementId: str,
    profileVersion: str = ...,
    revisionId: str = ...,
) -> AddProfilePermissionResponseTypeDef:  # (1)
    ...
  1. See AddProfilePermissionResponseTypeDef
# add_profile_permission method usage example with argument unpacking

kwargs: AddProfilePermissionRequestRequestTypeDef = {  # (1)
    "profileName": ...,
    "action": ...,
    "principal": ...,
    "statementId": ...,
}

parent.add_profile_permission(**kwargs)
  1. See AddProfilePermissionRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("signer").can_paginate method. boto3 documentation

# can_paginate method definition

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

cancel_signing_profile#

Changes the state of an ACTIVE signing profile to CANCELED.

Type annotations and code completion for session.create_client("signer").cancel_signing_profile method. boto3 documentation

# cancel_signing_profile method definition

await def cancel_signing_profile(
    self,
    *,
    profileName: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# cancel_signing_profile method usage example with argument unpacking

kwargs: CancelSigningProfileRequestRequestTypeDef = {  # (1)
    "profileName": ...,
}

parent.cancel_signing_profile(**kwargs)
  1. See CancelSigningProfileRequestRequestTypeDef

close#

Closes underlying endpoint connections.

Type annotations and code completion for session.create_client("signer").close method. boto3 documentation

# close method definition

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

describe_signing_job#

Returns information about a specific code signing job.

Type annotations and code completion for session.create_client("signer").describe_signing_job method. boto3 documentation

# describe_signing_job method definition

await def describe_signing_job(
    self,
    *,
    jobId: str,
) -> DescribeSigningJobResponseTypeDef:  # (1)
    ...
  1. See DescribeSigningJobResponseTypeDef
# describe_signing_job method usage example with argument unpacking

kwargs: DescribeSigningJobRequestRequestTypeDef = {  # (1)
    "jobId": ...,
}

parent.describe_signing_job(**kwargs)
  1. See DescribeSigningJobRequestRequestTypeDef

generate_presigned_url#

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

Type annotations and code completion for session.create_client("signer").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:
    ...

get_revocation_status#

Retrieves the revocation status of one or more of the signing profile, signing job, and signing certificate.

Type annotations and code completion for session.create_client("signer").get_revocation_status method. boto3 documentation

# get_revocation_status method definition

await def get_revocation_status(
    self,
    *,
    signatureTimestamp: Union[datetime, str],
    platformId: str,
    profileVersionArn: str,
    jobArn: str,
    certificateHashes: Sequence[str],
) -> GetRevocationStatusResponseTypeDef:  # (1)
    ...
  1. See GetRevocationStatusResponseTypeDef
# get_revocation_status method usage example with argument unpacking

kwargs: GetRevocationStatusRequestRequestTypeDef = {  # (1)
    "signatureTimestamp": ...,
    "platformId": ...,
    "profileVersionArn": ...,
    "jobArn": ...,
    "certificateHashes": ...,
}

parent.get_revocation_status(**kwargs)
  1. See GetRevocationStatusRequestRequestTypeDef

get_signing_platform#

Returns information on a specific signing platform.

Type annotations and code completion for session.create_client("signer").get_signing_platform method. boto3 documentation

# get_signing_platform method definition

await def get_signing_platform(
    self,
    *,
    platformId: str,
) -> GetSigningPlatformResponseTypeDef:  # (1)
    ...
  1. See GetSigningPlatformResponseTypeDef
# get_signing_platform method usage example with argument unpacking

kwargs: GetSigningPlatformRequestRequestTypeDef = {  # (1)
    "platformId": ...,
}

parent.get_signing_platform(**kwargs)
  1. See GetSigningPlatformRequestRequestTypeDef

get_signing_profile#

Returns information on a specific signing profile.

Type annotations and code completion for session.create_client("signer").get_signing_profile method. boto3 documentation

# get_signing_profile method definition

await def get_signing_profile(
    self,
    *,
    profileName: str,
    profileOwner: str = ...,
) -> GetSigningProfileResponseTypeDef:  # (1)
    ...
  1. See GetSigningProfileResponseTypeDef
# get_signing_profile method usage example with argument unpacking

kwargs: GetSigningProfileRequestRequestTypeDef = {  # (1)
    "profileName": ...,
}

parent.get_signing_profile(**kwargs)
  1. See GetSigningProfileRequestRequestTypeDef

list_profile_permissions#

Lists the cross-account permissions associated with a signing profile.

Type annotations and code completion for session.create_client("signer").list_profile_permissions method. boto3 documentation

# list_profile_permissions method definition

await def list_profile_permissions(
    self,
    *,
    profileName: str,
    nextToken: str = ...,
) -> ListProfilePermissionsResponseTypeDef:  # (1)
    ...
  1. See ListProfilePermissionsResponseTypeDef
# list_profile_permissions method usage example with argument unpacking

kwargs: ListProfilePermissionsRequestRequestTypeDef = {  # (1)
    "profileName": ...,
}

parent.list_profile_permissions(**kwargs)
  1. See ListProfilePermissionsRequestRequestTypeDef

list_signing_jobs#

Lists all your signing jobs.

Type annotations and code completion for session.create_client("signer").list_signing_jobs method. boto3 documentation

# list_signing_jobs method definition

await def list_signing_jobs(
    self,
    *,
    status: SigningStatusType = ...,  # (1)
    platformId: str = ...,
    requestedBy: str = ...,
    maxResults: int = ...,
    nextToken: str = ...,
    isRevoked: bool = ...,
    signatureExpiresBefore: Union[datetime, str] = ...,
    signatureExpiresAfter: Union[datetime, str] = ...,
    jobInvoker: str = ...,
) -> ListSigningJobsResponseTypeDef:  # (2)
    ...
  1. See SigningStatusType
  2. See ListSigningJobsResponseTypeDef
# list_signing_jobs method usage example with argument unpacking

kwargs: ListSigningJobsRequestRequestTypeDef = {  # (1)
    "status": ...,
}

parent.list_signing_jobs(**kwargs)
  1. See ListSigningJobsRequestRequestTypeDef

list_signing_platforms#

Lists all signing platforms available in code signing that match the request parameters.

Type annotations and code completion for session.create_client("signer").list_signing_platforms method. boto3 documentation

# list_signing_platforms method definition

await def list_signing_platforms(
    self,
    *,
    category: str = ...,
    partner: str = ...,
    target: str = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListSigningPlatformsResponseTypeDef:  # (1)
    ...
  1. See ListSigningPlatformsResponseTypeDef
# list_signing_platforms method usage example with argument unpacking

kwargs: ListSigningPlatformsRequestRequestTypeDef = {  # (1)
    "category": ...,
}

parent.list_signing_platforms(**kwargs)
  1. See ListSigningPlatformsRequestRequestTypeDef

list_signing_profiles#

Lists all available signing profiles in your AWS account.

Type annotations and code completion for session.create_client("signer").list_signing_profiles method. boto3 documentation

# list_signing_profiles method definition

await def list_signing_profiles(
    self,
    *,
    includeCanceled: bool = ...,
    maxResults: int = ...,
    nextToken: str = ...,
    platformId: str = ...,
    statuses: Sequence[SigningProfileStatusType] = ...,  # (1)
) -> ListSigningProfilesResponseTypeDef:  # (2)
    ...
  1. See SigningProfileStatusType
  2. See ListSigningProfilesResponseTypeDef
# list_signing_profiles method usage example with argument unpacking

kwargs: ListSigningProfilesRequestRequestTypeDef = {  # (1)
    "includeCanceled": ...,
}

parent.list_signing_profiles(**kwargs)
  1. See ListSigningProfilesRequestRequestTypeDef

list_tags_for_resource#

Returns a list of the tags associated with a signing profile resource.

Type annotations and code completion for session.create_client("signer").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_signing_profile#

Creates a signing profile.

Type annotations and code completion for session.create_client("signer").put_signing_profile method. boto3 documentation

# put_signing_profile method definition

await def put_signing_profile(
    self,
    *,
    profileName: str,
    platformId: str,
    signingMaterial: SigningMaterialTypeDef = ...,  # (1)
    signatureValidityPeriod: SignatureValidityPeriodTypeDef = ...,  # (2)
    overrides: SigningPlatformOverridesTypeDef = ...,  # (3)
    signingParameters: Mapping[str, str] = ...,
    tags: Mapping[str, str] = ...,
) -> PutSigningProfileResponseTypeDef:  # (4)
    ...
  1. See SigningMaterialTypeDef
  2. See SignatureValidityPeriodTypeDef
  3. See SigningPlatformOverridesTypeDef
  4. See PutSigningProfileResponseTypeDef
# put_signing_profile method usage example with argument unpacking

kwargs: PutSigningProfileRequestRequestTypeDef = {  # (1)
    "profileName": ...,
    "platformId": ...,
}

parent.put_signing_profile(**kwargs)
  1. See PutSigningProfileRequestRequestTypeDef

remove_profile_permission#

Removes cross-account permissions from a signing profile.

Type annotations and code completion for session.create_client("signer").remove_profile_permission method. boto3 documentation

# remove_profile_permission method definition

await def remove_profile_permission(
    self,
    *,
    profileName: str,
    revisionId: str,
    statementId: str,
) -> RemoveProfilePermissionResponseTypeDef:  # (1)
    ...
  1. See RemoveProfilePermissionResponseTypeDef
# remove_profile_permission method usage example with argument unpacking

kwargs: RemoveProfilePermissionRequestRequestTypeDef = {  # (1)
    "profileName": ...,
    "revisionId": ...,
    "statementId": ...,
}

parent.remove_profile_permission(**kwargs)
  1. See RemoveProfilePermissionRequestRequestTypeDef

revoke_signature#

Changes the state of a signing job to REVOKED.

Type annotations and code completion for session.create_client("signer").revoke_signature method. boto3 documentation

# revoke_signature method definition

await def revoke_signature(
    self,
    *,
    jobId: str,
    reason: str,
    jobOwner: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# revoke_signature method usage example with argument unpacking

kwargs: RevokeSignatureRequestRequestTypeDef = {  # (1)
    "jobId": ...,
    "reason": ...,
}

parent.revoke_signature(**kwargs)
  1. See RevokeSignatureRequestRequestTypeDef

revoke_signing_profile#

Changes the state of a signing profile to REVOKED.

Type annotations and code completion for session.create_client("signer").revoke_signing_profile method. boto3 documentation

# revoke_signing_profile method definition

await def revoke_signing_profile(
    self,
    *,
    profileName: str,
    profileVersion: str,
    reason: str,
    effectiveTime: Union[datetime, str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# revoke_signing_profile method usage example with argument unpacking

kwargs: RevokeSigningProfileRequestRequestTypeDef = {  # (1)
    "profileName": ...,
    "profileVersion": ...,
    "reason": ...,
    "effectiveTime": ...,
}

parent.revoke_signing_profile(**kwargs)
  1. See RevokeSigningProfileRequestRequestTypeDef

sign_payload#

Signs a binary payload and returns a signature envelope.

Type annotations and code completion for session.create_client("signer").sign_payload method. boto3 documentation

# sign_payload method definition

await def sign_payload(
    self,
    *,
    profileName: str,
    payload: Union[str, bytes, IO[Any], StreamingBody],
    payloadFormat: str,
    profileOwner: str = ...,
) -> SignPayloadResponseTypeDef:  # (1)
    ...
  1. See SignPayloadResponseTypeDef
# sign_payload method usage example with argument unpacking

kwargs: SignPayloadRequestRequestTypeDef = {  # (1)
    "profileName": ...,
    "payload": ...,
    "payloadFormat": ...,
}

parent.sign_payload(**kwargs)
  1. See SignPayloadRequestRequestTypeDef

start_signing_job#

Initiates a signing job to be performed on the code provided.

Type annotations and code completion for session.create_client("signer").start_signing_job method. boto3 documentation

# start_signing_job method definition

await def start_signing_job(
    self,
    *,
    source: SourceTypeDef,  # (1)
    destination: DestinationTypeDef,  # (2)
    profileName: str,
    clientRequestToken: str,
    profileOwner: str = ...,
) -> StartSigningJobResponseTypeDef:  # (3)
    ...
  1. See SourceTypeDef
  2. See DestinationTypeDef
  3. See StartSigningJobResponseTypeDef
# start_signing_job method usage example with argument unpacking

kwargs: StartSigningJobRequestRequestTypeDef = {  # (1)
    "source": ...,
    "destination": ...,
    "profileName": ...,
    "clientRequestToken": ...,
}

parent.start_signing_job(**kwargs)
  1. See StartSigningJobRequestRequestTypeDef

tag_resource#

Adds one or more tags to a signing profile.

Type annotations and code completion for session.create_client("signer").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": ...,
    "tags": ...,
}

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

untag_resource#

Removes one or more tags from a signing profile.

Type annotations and code completion for session.create_client("signer").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.create_client("signer").__aenter__ method. boto3 documentation

# __aenter__ method definition

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

__aexit__#

Type annotations and code completion for session.create_client("signer").__aexit__ method. boto3 documentation

# __aexit__ 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.create_client("signer").get_paginator method with overloads.

get_waiter#

Type annotations and code completion for session.create_client("signer").get_waiter method with overloads.