Skip to main content

signing_profiles

Creates, updates, deletes, gets or lists a signing_profiles resource.

Overview

Namesigning_profiles
TypeResource
Idaws.signer.signing_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) for the signing profile.
overridesobjectA list of overrides applied by the target signing profile for signing operations.
platform_display_namestringA human-readable name for the signing platform associated with the signing profile.
platform_idstringThe ID of the platform that is used by the target signing profile.
profile_namestringThe name of the target signing profile. (pattern: <code>^[a-zA-Z0-9_]{2,}</code>)
profile_versionstringThe current version of the signing profile. (pattern: <code>^[a-zA-Z0-9]{10}$</code>)
profile_version_arnstringThe signing profile ARN, including the profile version.
revocation_recordobjectRevocation information for a signing profile.
signature_validity_periodobjectThe validity period for a signing job.
signing_materialobjectThe ARN of the certificate that the target profile uses for signing operations.
signing_parametersobjectA map of key-value pairs for signing operations that is attached to the target signing profile.
statusstringThe status of the target signing profile. (Active, Canceled, Revoked)
status_reasonstringReason for the status of the target signing profile.
tagsobjectA list of tags associated with the signing profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_signing_profileselectprofile_name, regionprofileOwnerReturns information on a specific signing profile.
list_signing_profilesselectregionincludeCanceled, maxResults, nextToken, platformId, statusesLists all available signing profiles in your AWS account. Returns only profiles with an ACTIVE status unless the includeCanceled request field is set to true. If additional jobs remain to be listed, AWS Signer returns a nextToken value. Use this value in subsequent calls to ListSigningJobs to fetch the remaining values. You can continue calling ListSigningJobs with your maxResults parameter and with new values that Signer returns in the nextToken parameter until all of your signing jobs have been returned.
revoke_signing_profileupdateprofile_name, region, profileVersion, reason, effectiveTimeChanges the state of a signing profile to REVOKED. This indicates that signatures generated using the signing profile after an effective start date are no longer valid. A revoked profile is still viewable with the ListSigningProfiles operation, but it cannot perform new signing jobs. See Data Retention for more information on scheduled deletion of a revoked signing profile.
put_signing_profilereplaceprofile_name, region, platformIdCreates a signing profile. A signing profile is a code-signing template that can be used to carry out a pre-defined signing job.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
profile_namestringThe name of the signing profile to be created.
regionstringAWS region (default: us-east-1)
includeCanceledbooleanDesignates whether to include profiles with the status of CANCELED.
maxResultsintegerThe maximum number of profiles to be returned.
nextTokenstringValue for specifying the next set of paginated results to return. After you receive a response with truncated results, use this parameter in a subsequent request. Set it to the value of nextToken from the response that you just received.
platformIdstringFilters results to return only signing jobs initiated for a specified signing platform.
profileOwnerstringThe AWS account ID of the profile owner.
statusesarrayFilters results to return only signing jobs with statuses in the specified list.

SELECT examples

Returns information on a specific signing profile.

SELECT
arn,
overrides,
platform_display_name,
platform_id,
profile_name,
profile_version,
profile_version_arn,
revocation_record,
signature_validity_period,
signing_material,
signing_parameters,
status,
status_reason,
tags
FROM aws.signer.signing_profiles
WHERE profile_name = '{{ profile_name }}' -- required
AND region = '{{ region }}' -- required
AND profileOwner = '{{ profileOwner }}'
;

UPDATE examples

Changes the state of a signing profile to REVOKED. This indicates that signatures generated using the signing profile after an effective start date are no longer valid. A revoked profile is still viewable with the ListSigningProfiles operation, but it cannot perform new signing jobs. See Data Retention for more information on scheduled deletion of a revoked signing profile.

UPDATE aws.signer.signing_profiles
SET
profileVersion = '{{ profileVersion }}',
reason = '{{ reason }}',
effectiveTime = '{{ effectiveTime }}'
WHERE
profile_name = '{{ profile_name }}' --required
AND region = '{{ region }}' --required
AND profileVersion = '{{ profileVersion }}' --required
AND reason = '{{ reason }}' --required
AND effectiveTime = '{{ effectiveTime }}' --required;

REPLACE examples

Creates a signing profile. A signing profile is a code-signing template that can be used to carry out a pre-defined signing job.

REPLACE aws.signer.signing_profiles
SET
signingMaterial = '{{ signingMaterial }}',
signatureValidityPeriod = '{{ signatureValidityPeriod }}',
platformId = '{{ platformId }}',
overrides = '{{ overrides }}',
signingParameters = '{{ signingParameters }}',
tags = '{{ tags }}'
WHERE
profile_name = '{{ profile_name }}' --required
AND region = '{{ region }}' --required
AND platformId = '{{ platformId }}' --required
RETURNING
arn,
profile_version,
profile_version_arn;