# CfnAliasProps

Properties for defining a `CfnAlias`.

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

- Source: Generated at build time
- Type last changed: v2.140.0 · 2 May 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_paymentcryptography as paymentcryptography } from 'aws-cdk-lib';
const cfnAliasProps: paymentcryptography.CfnAliasProps = {
  aliasName: 'aliasName',

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

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_paymentcryptography as paymentcryptography

cfn_alias_props = paymentcryptography.CfnAliasProps(
    alias_name="aliasName",

    # the properties below are optional
    key_arn="keyArn"
)
```

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

CfnAliasProps cfnAliasProps = CfnAliasProps.builder()
        .aliasName("aliasName")

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

var cfnAliasProps = new CfnAliasProps {
    AliasName = "aliasName",

    // the properties below are optional
    KeyArn = "keyArn"
};
```

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"

cfnAliasProps := &CfnAliasProps{
	AliasName: jsii.String("aliasName"),

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

## Properties

- `aliasName`: string (required) — A friendly name that you can use to refer to a key. The value must begin with `alias/` .

  > Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in AWS CloudTrail logs and other output.

- `keyArn`: string — The `KeyARN` of the key associated with the alias.
