Skip to content
v2.273.0

DefaultEncryptedResourceFactories Class ​

Default factories for encrypted resources.

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();
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_iam as iam

default_encrypted_resource_factories = iam.DefaultEncryptedResourceFactories()
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.iam.*;

DefaultEncryptedResourceFactories defaultEncryptedResourceFactories = new DefaultEncryptedResourceFactories();
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.IAM;

var defaultEncryptedResourceFactories = new DefaultEncryptedResourceFactories();
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"

defaultEncryptedResourceFactories := awscdk.Aws_iam.NewDefaultEncryptedResourceFactories()

Initializer ​

ts
new DefaultEncryptedResourceFactories()
python
DefaultEncryptedResourceFactories()
java
new DefaultEncryptedResourceFactories()
csharp
new DefaultEncryptedResourceFactories()
go
NewDefaultEncryptedResourceFactories()

Methods ​

get(type: string): IEncryptedResourceFactory@staticmethod def get(type: str) -> IEncryptedResourceFactorypublic static IEncryptedResourceFactory get(String type)public static IEncryptedResourceFactory Get(string type)func Get(Type *string) IEncryptedResourceFactorystatic#
Get the default factory for a given CloudFormation resource type.
1 parameter

Parameters

  • typetypetypetypeType — the CloudFormation resource type (e.g., 'AWS::DynamoDB::Table').
has(type: string): boolean@staticmethod def has(type: str) -> boolpublic static Boolean has(String type)public static bool Has(string type)func Has(Type *string) *boolstatic#
Check if a default factory is registered for a given CloudFormation resource type.
1 parameter

Parameters

  • typetypetypetypeType — the CloudFormation resource type (e.g., 'AWS::DynamoDB::Table').
set(type: string, factory: IEncryptedResourceFactory): void@staticmethod def set(type: str, factory: IEncryptedResourceFactory) -> Nonepublic static void set(String type, IEncryptedResourceFactory factory)public static void Set(string type, IEncryptedResourceFactory factory)func Set(Type *string, Factory IEncryptedResourceFactory)static#
Register a default factory for a given CloudFormation resource type.
2 parameters

Parameters

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