Skip to main content

code_signing_configs

Creates, updates, deletes or gets a code_signing_config resource or lists code_signing_configs in a region

Overview

Namecode_signing_configs
TypeResource
DescriptionResource Type definition for AWS::Lambda::CodeSigningConfig.
Idawscc.lambda.code_signing_configs

Fields

NameDatatypeDescription
descriptionstringA description of the CodeSigningConfig
allowed_publishersobjectWhen the CodeSigningConfig is later on attached to a function, the function code will be expected to be signed by profiles from this list
code_signing_policiesobjectPolicies to control how to act if a signature is invalid
code_signing_config_idstringA unique identifier for CodeSigningConfig resource
code_signing_config_arnstringA unique Arn for CodeSigningConfig resource
tagsarrayA list of tags to apply to CodeSigningConfig resource
regionstringAWS region.

For more information, see AWS::Lambda::CodeSigningConfig.

Methods

NameResourceAccessible byRequired Params
create_resourcecode_signing_configsINSERTAllowedPublishers, region
delete_resourcecode_signing_configsDELETEIdentifier, region
update_resourcecode_signing_configsUPDATEIdentifier, PatchDocument, region
list_resourcescode_signing_configs_list_onlySELECTregion
get_resourcecode_signing_configsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual code_signing_config.

SELECT
region,
description,
allowed_publishers,
code_signing_policies,
code_signing_config_id,
code_signing_config_arn,
tags
FROM awscc.lambda.code_signing_configs
WHERE
region = '{{ region }}' AND
Identifier = '{{ code_signing_config_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new code_signing_config resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.lambda.code_signing_configs (
AllowedPublishers,
region
)
SELECT
'{{ allowed_publishers }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a code_signing_config resource, using stack-deploy.

/*+ update */
UPDATE awscc.lambda.code_signing_configs
SET PatchDocument = string('{{ {
"Description": description,
"AllowedPublishers": allowed_publishers,
"CodeSigningPolicies": code_signing_policies,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ code_signing_config_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.lambda.code_signing_configs
WHERE
Identifier = '{{ code_signing_config_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the code_signing_configs resource, the following permissions are required:

lambda:CreateCodeSigningConfig,
lambda:TagResource