Skip to content

update_code_signing_config async

update_code_signing_config(
    code_signing_config_arn: CodeSigningConfigArn,
    *,
    config_overrides: Optional[AsyncLambdaClientConfig] = None,
    description: Optional[Description] = None,
    allowed_publishers: Optional[AllowedPublishers] = None,
    code_signing_policies: Optional[CodeSigningPolicies] = None,
) -> UpdateCodeSigningConfigResponse

Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

Parameters:

Raises:

Source code in docs_src/capo_lambda/_services/async__lambda.py
async def update_code_signing_config(
    self,
    code_signing_config_arn: "capo_lambda.types.code_signing_config_arn.CodeSigningConfigArn",
    *,
    config_overrides: Optional[AsyncLambdaClientConfig] = None,
    description: Optional["capo_lambda.types.description.Description"] = None,
    allowed_publishers: Optional[
        "capo_lambda.types.allowed_publishers.AllowedPublishers"
    ] = None,
    code_signing_policies: Optional[
        "capo_lambda.types.code_signing_policies.CodeSigningPolicies"
    ] = None,
) -> "capo_lambda.types.update_code_signing_config_response.UpdateCodeSigningConfigResponse":
    """<p>Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function. </p>

    Args:
        code_signing_config_arn: <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p>
        description: <p>Descriptive name for this code signing configuration.</p>
        allowed_publishers: <p>Signing profiles for this code signing configuration.</p>
        code_signing_policies: <p>The code signing policy.</p>

    Raises:
        capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
        capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
        capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
        capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_lambda.types.update_code_signing_config_request.UpdateCodeSigningConfigRequest]",
    ) -> AsyncOperationResponse[
        "capo_lambda.types.update_code_signing_config_response.UpdateCodeSigningConfigResponse"
    ]:
        import capo_lambda._operations.aws_gir_api_service.update_code_signing_config

        (
            output,
            http_response,
        ) = await capo_lambda._operations.aws_gir_api_service.update_code_signing_config.async_update_code_signing_config(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateCodeSigningConfig")
    )
    input_: capo_lambda.types.update_code_signing_config_request.UpdateCodeSigningConfigRequest = {
        "code_signing_config_arn": code_signing_config_arn
    }
    if description is not None:
        input_["description"] = description
    if allowed_publishers is not None:
        input_["allowed_publishers"] = allowed_publishers
    if code_signing_policies is not None:
        input_["code_signing_policies"] = code_signing_policies

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output