# DefaultEncryptedResourceFactories

Default factories for encrypted resources.

- Source: [`aws-iam/lib/grant.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-iam/lib/grant.ts#L666)
- Type last changed: v2.239.0 · 19 Feb 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
const defaultEncryptedResourceFactories = new iam.DefaultEncryptedResourceFactories();
```

## Initializer

```ts
new DefaultEncryptedResourceFactories()
```

## Methods

- `get(type: string): IEncryptedResourceFactory` (static) — Get the default factory for a given CloudFormation resource type.

  **Parameters**

  - `type` — the CloudFormation resource type (e.g., 'AWS::DynamoDB::Table').

- `has(type: string): boolean` (static) — Check if a default factory is registered for a given CloudFormation resource type.

  **Parameters**

  - `type` — the CloudFormation resource type (e.g., 'AWS::DynamoDB::Table').

- `set(type: string, factory: IEncryptedResourceFactory): void` (static) — Register a default factory for a given CloudFormation resource type.

  **Parameters**

  - `type` — the CloudFormation resource type (e.g., 'AWS::DynamoDB::Table').
  - `factory` — the factory to register for this resource type.
