# CfnPublicKeyProps

Properties for defining a `CfnPublicKey`.

Used as props by: [CfnPublicKey](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnPublicKey.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnPublicKeyProps: cloudfront.CfnPublicKeyProps = {
  publicKeyConfig: {
    callerReference: 'callerReference',
    encodedKey: 'encodedKey',
    name: 'name',

    // the properties below are optional
    comment: 'comment',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

cfn_public_key_props = cloudfront.CfnPublicKeyProps(
    public_key_config=cloudfront.CfnPublicKey.PublicKeyConfigProperty(
        caller_reference="callerReference",
        encoded_key="encodedKey",
        name="name",

        # the properties below are optional
        comment="comment"
    )
)
```

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.cloudfront.*;

CfnPublicKeyProps cfnPublicKeyProps = CfnPublicKeyProps.builder()
        .publicKeyConfig(PublicKeyConfigProperty.builder()
                .callerReference("callerReference")
                .encodedKey("encodedKey")
                .name("name")

                // the properties below are optional
                .comment("comment")
                .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.CloudFront;

var cfnPublicKeyProps = new CfnPublicKeyProps {
    PublicKeyConfig = new PublicKeyConfigProperty {
        CallerReference = "callerReference",
        EncodedKey = "encodedKey",
        Name = "name",

        // the properties below are optional
        Comment = "comment"
    }
};
```

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"

cfnPublicKeyProps := &CfnPublicKeyProps{
	PublicKeyConfig: &PublicKeyConfigProperty{
		CallerReference: jsii.String("callerReference"),
		EncodedKey: jsii.String("encodedKey"),
		Name: jsii.String("name"),

		// the properties below are optional
		Comment: jsii.String("comment"),
	},
}
```

## Properties

- `publicKeyConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPublicKey.PublicKeyConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnPublicKey.PublicKeyConfigProperty.html) (required) — Configuration information about a public key that you can use with [signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) , or with [field-level encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html) .
