# CfnCodeSigningConfigProps

Properties for defining a `CfnCodeSigningConfig`.

Used as props by: [CfnCodeSigningConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnCodeSigningConfig.html)

- Source: Generated at build time
- Type last changed: v2.159.0 · 19 Sep 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `allowedPublishers`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCodeSigningConfig.AllowedPublishersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnCodeSigningConfig.AllowedPublishersProperty.html) (required) — List of allowed publishers.

- `codeSigningPolicies`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCodeSigningConfig.CodeSigningPoliciesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnCodeSigningConfig.CodeSigningPoliciesProperty.html) — The code signing policy controls the validation failure action for signature mismatch or expiry.

- `description`: string — Code signing configuration description.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of tags to add to the code signing configuration.

  > You must have the `lambda:TagResource` , `lambda:UntagResource` , and `lambda:ListTags` permissions for your [IAM principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html) 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.
