PolicyEngineProps
- class aws_cdk.aws_bedrock_agentcore_alpha.PolicyEngineProps(*, description=None, kms_key=None, policy_engine_name=None, tags=None)
Bases:
object(experimental) Properties for creating a PolicyEngine resource.
- Parameters:
description (
Optional[str]) – (experimental) Optional description for the policy engine. Maximum 4,096 characters. Default: - No descriptionkms_key (
Optional[IKey]) – (experimental) Custom KMS key for encryption. [disable-awslint:prefer-ref-interface] Default: - AWS owned keypolicy_engine_name (
Optional[str]) – (experimental) The name of the policy engine. Valid characters: a-z, A-Z, 0-9, _ (underscore) Must start with a letter, 1-48 characters Pattern: ^[A-Za-z][A-Za-z0-9_]*$ Default: - Auto-generated unique nametags (
Optional[Mapping[str,str]]) – (experimental) Tags for the policy engine. Maximum 50 tags. Default: - No tags
- Stability:
experimental
- ExampleMetadata:
fixture=default infused
Example:
gateway = agentcore.Gateway(self, "MyGateway", gateway_name="my-gateway" ) policy_engine = agentcore.PolicyEngine(self, "MyPolicyEngine", policy_engine_name="my_policy_engine" ) allow_all_policy = agentcore.Policy(self, "AllowAllPolicy", policy_engine=policy_engine, policy_name="allow_all", statement=agentcore.PolicyStatement.permit().for_all_principals().on_all_actions().on_resource("AgentCore::Gateway", gateway.gateway_arn), description="Allow all actions on specific gateway (development only)", validation_mode=agentcore.PolicyValidationMode.IGNORE_ALL_FINDINGS )
Attributes
- description
(experimental) Optional description for the policy engine.
Maximum 4,096 characters.
- Default:
No description
- Stability:
experimental
- kms_key
(experimental) Custom KMS key for encryption.
[disable-awslint:prefer-ref-interface]
- Default:
AWS owned key
- Stability:
experimental
- policy_engine_name
(experimental) The name of the policy engine.
Valid characters: a-z, A-Z, 0-9, _ (underscore) Must start with a letter, 1-48 characters Pattern: ^[A-Za-z][A-Za-z0-9_]*$
- Default:
Auto-generated unique name
- Stability:
experimental
- tags
(experimental) Tags for the policy engine.
Maximum 50 tags.
- Default:
No tags
- Stability:
experimental