# KeySigningKeyProps

Properties for constructing a Key Signing Key.

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

- Source: [`aws-route53/lib/key-signing-key.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-route53/lib/key-signing-key.ts#L15)
- Type last changed: v2.138.0 · 18 Apr 2024

## Example

TypeScript:

```ts
declare const hostedZone: route53.HostedZone;
declare const kmsKey: kms.Key;
new route53.KeySigningKey(this, 'KeySigningKey', {
  hostedZone,
  kmsKey,
  keySigningKeyName: 'ksk',
  status: route53.KeySigningKeyStatus.ACTIVE,
});
```

Python:

```python
# hosted_zone: route53.HostedZone
# kms_key: kms.Key

route53.KeySigningKey(self, "KeySigningKey",
    hosted_zone=hosted_zone,
    kms_key=kms_key,
    key_signing_key_name="ksk",
    status=route53.KeySigningKeyStatus.ACTIVE
)
```

Java:

```java
HostedZone hostedZone;
Key kmsKey;

KeySigningKey.Builder.create(this, "KeySigningKey")
        .hostedZone(hostedZone)
        .kmsKey(kmsKey)
        .keySigningKeyName("ksk")
        .status(KeySigningKeyStatus.ACTIVE)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
HostedZone hostedZone;
Key kmsKey;

new KeySigningKey(this, "KeySigningKey", new KeySigningKeyProps {
    HostedZone = hostedZone,
    KmsKey = kmsKey,
    KeySigningKeyName = "ksk",
    Status = KeySigningKeyStatus.ACTIVE
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var hostedZone HostedZone
var kmsKey Key

route53.NewKeySigningKey(this, jsii.String("KeySigningKey"), &KeySigningKeyProps{
	HostedZone: HostedZone,
	KmsKey: KmsKey,
	KeySigningKeyName: jsii.String("ksk"),
	Status: route53.KeySigningKeyStatus_ACTIVE,
})
```

## Properties

- `hostedZone`: [IHostedZone](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53.IHostedZone.html) (required) — The hosted zone that this key will be used to sign.

- `keySigningKeyName`: string — The name for the key signing key.

  **Default:** an autogenerated name

  This name must be unique within a hosted zone.

- `kmsKey`: [IKey](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html) (required) — The customer-managed KMS key that will be used to sign the records.

  The KMS Key must be unique for each KSK within a hosted zone. Additionally, the
  KMS key must be an asymetric customer-managed key using the ECC_NIST_P256 algorithm.

- `status`: [KeySigningKeyStatus](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53.KeySigningKeyStatus.html) = ACTIVE — The status of the key signing key.
