CfnCodeSigningConfigProps Struct
Properties for defining a CfnCodeSigningConfig.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const cfnCodeSigningConfigProps: lambda.CfnCodeSigningConfigProps = {
allowedPublishers: {
signingProfileVersionArns: ['signingProfileVersionArns'],
},
// the properties below are optional
codeSigningPolicies: {
untrustedArtifactOnDeployment: 'untrustedArtifactOnDeployment',
},
description: 'description',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_
cfn_code_signing_config_props = lambda.CfnCodeSigningConfigProps(
allowed_publishers=lambda.CfnCodeSigningConfig.AllowedPublishersProperty(
signing_profile_version_arns=["signingProfileVersionArns"]
),
# the properties below are optional
code_signing_policies=lambda.CfnCodeSigningConfig.CodeSigningPoliciesProperty(
untrusted_artifact_on_deployment="untrustedArtifactOnDeployment"
),
description="description",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
CfnCodeSigningConfigProps cfnCodeSigningConfigProps = CfnCodeSigningConfigProps.builder()
.allowedPublishers(AllowedPublishersProperty.builder()
.signingProfileVersionArns(List.of("signingProfileVersionArns"))
.build())
// the properties below are optional
.codeSigningPolicies(CodeSigningPoliciesProperty.builder()
.untrustedArtifactOnDeployment("untrustedArtifactOnDeployment")
.build())
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var cfnCodeSigningConfigProps = new CfnCodeSigningConfigProps {
AllowedPublishers = new AllowedPublishersProperty {
SigningProfileVersionArns = new [] { "signingProfileVersionArns" }
},
// the properties below are optional
CodeSigningPolicies = new CodeSigningPoliciesProperty {
UntrustedArtifactOnDeployment = "untrustedArtifactOnDeployment"
},
Description = "description",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnCodeSigningConfigProps := &CfnCodeSigningConfigProps{
AllowedPublishers: &AllowedPublishersProperty{
SigningProfileVersionArns: []*string{
jsii.String("signingProfileVersionArns"),
},
},
// the properties below are optional
CodeSigningPolicies: &CodeSigningPoliciesProperty{
UntrustedArtifactOnDeployment: jsii.String("untrustedArtifactOnDeployment"),
},
Description: jsii.String("description"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
allowedPublishersIResolvable | CfnCodeSigningConfig.AllowedPublishersPropertyallowed_publisherstyping.Union[IResolvable, AllowedPublishersProperty]allowedPublishersIResolvableAllowedPublishersIResolvableAllowedPublishersinterface{}required#List of allowed publishers.
codeSigningPoliciesoptionalIResolvable | CfnCodeSigningConfig.CodeSigningPoliciesPropertycode_signing_policiesoptionaltyping.Union[IResolvable, CodeSigningPoliciesProperty]codeSigningPoliciesoptionalIResolvableCodeSigningPoliciesoptionalIResolvableCodeSigningPoliciesoptionalinterface{}#The code signing policy controls the validation failure action for signature mismatch or expiry.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#Code signing configuration description.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#A list of tags to add to the code signing configuration.
notes
You must have the
lambda:TagResource,lambda:UntagResource, andlambda:ListTagspermissions for your IAM principal to manage the CloudFormation stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.