DefaultPolicyFactories
- class aws_cdk.aws_iam.DefaultPolicyFactories
Bases:
objectDefault factories for resources with policies.
- ExampleMetadata:
fixture=_generated
Example:
# 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_policy_factories = iam.DefaultPolicyFactories()
Static Methods
- classmethod get(type)
Get the default factory for a given CloudFormation resource type.
- Parameters:
type (
str) – the CloudFormation resource type (e.g., ‘AWS::DynamoDB::Table’).- Return type:
Optional[IResourcePolicyFactory]
- classmethod has(type)
Check if a default factory is registered for a given CloudFormation resource type.
- Parameters:
type (
str) – the CloudFormation resource type (e.g., ‘AWS::DynamoDB::Table’).- Return type:
bool
- classmethod set(type, factory)
Register a default factory for a given CloudFormation resource type.
- Parameters:
type (
str) – the CloudFormation resource type (e.g., ‘AWS::DynamoDB::Table’).factory (
IResourcePolicyFactory) – the factory to register for this resource type.
- Return type:
None