# KeyModesOfUseProperty

The list of cryptographic operations that you can perform using the key.

The modes of use are deﬁned in section A.5.3 of the TR-31 spec.

- 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 keyModesOfUseProperty: paymentcryptography.CfnKey.KeyModesOfUseProperty = {
  decrypt: false,
  deriveKey: false,
  encrypt: false,
  generate: false,
  noRestrictions: false,
  sign: false,
  unwrap: false,
  verify: false,
  wrap: false,
};
```

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

key_modes_of_use_property = paymentcryptography.CfnKey.KeyModesOfUseProperty(
    decrypt=False,
    derive_key=False,
    encrypt=False,
    generate=False,
    no_restrictions=False,
    sign=False,
    unwrap=False,
    verify=False,
    wrap=False
)
```

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

KeyModesOfUseProperty keyModesOfUseProperty = KeyModesOfUseProperty.builder()
        .decrypt(false)
        .deriveKey(false)
        .encrypt(false)
        .generate(false)
        .noRestrictions(false)
        .sign(false)
        .unwrap(false)
        .verify(false)
        .wrap(false)
        .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 keyModesOfUseProperty = new KeyModesOfUseProperty {
    Decrypt = false,
    DeriveKey = false,
    Encrypt = false,
    Generate = false,
    NoRestrictions = false,
    Sign = false,
    Unwrap = false,
    Verify = false,
    Wrap = false
};
```

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"

keyModesOfUseProperty := &KeyModesOfUseProperty{
	Decrypt: jsii.Boolean(false),
	DeriveKey: jsii.Boolean(false),
	Encrypt: jsii.Boolean(false),
	Generate: jsii.Boolean(false),
	NoRestrictions: jsii.Boolean(false),
	Sign: jsii.Boolean(false),
	Unwrap: jsii.Boolean(false),
	Verify: jsii.Boolean(false),
	Wrap: jsii.Boolean(false),
}
```

## Properties

- `decrypt`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Speciﬁes whether an AWS Payment Cryptography key can be used to decrypt data.

- `deriveKey`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Speciﬁes whether an AWS Payment Cryptography key can be used to derive new keys.

- `encrypt`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Speciﬁes whether an AWS Payment Cryptography key can be used to encrypt data.

- `generate`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Speciﬁes whether an AWS Payment Cryptography key can be used to generate and verify other card and PIN verification keys.

- `noRestrictions`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Speciﬁes whether an AWS Payment Cryptography key has no special restrictions other than the restrictions implied by `KeyUsage` .

- `sign`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Speciﬁes whether an AWS Payment Cryptography key can be used for signing.

- `unwrap`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false

- `verify`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Speciﬁes whether an AWS Payment Cryptography key can be used to verify signatures.

- `wrap`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Speciﬁes whether an AWS Payment Cryptography key can be used to wrap other keys.
