Class PolicyEngineProps
(experimental) Properties for creating a PolicyEngine resource.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
Assembly: Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.dll
Syntax (csharp)
public class PolicyEngineProps : IPolicyEngineProps
Syntax (vb)
Public Class PolicyEngineProps Implements IPolicyEngineProps
Remarks
Stability: Experimental
ExampleMetadata: fixture=default infused
Examples
var gateway = new Gateway(this, "MyGateway", new GatewayProps {
GatewayName = "my-gateway"
});
var policyEngine = new PolicyEngine(this, "MyPolicyEngine", new PolicyEngineProps {
PolicyEngineName = "my_policy_engine"
});
var allowAllPolicy = new Policy(this, "AllowAllPolicy", new PolicyProps {
PolicyEngine = policyEngine,
PolicyName = "allow_all",
Statement = PolicyStatement.Permit().ForAllPrincipals().OnAllActions().OnResource("AgentCore::Gateway", gateway.GatewayArn),
Description = "Allow all actions on specific gateway (development only)",
ValidationMode = PolicyValidationMode.IGNORE_ALL_FINDINGS
});
Synopsis
Constructors
| PolicyEngineProps() | (experimental) Properties for creating a PolicyEngine resource. |
Properties
| Description | (experimental) Optional description for the policy engine. |
| KmsKey | (experimental) Custom KMS key for encryption. |
| PolicyEngineName | (experimental) The name of the policy engine. |
| Tags | (experimental) Tags for the policy engine. |
Constructors
PolicyEngineProps()
(experimental) Properties for creating a PolicyEngine resource.
public PolicyEngineProps()
Remarks
Stability: Experimental
ExampleMetadata: fixture=default infused
Examples
var gateway = new Gateway(this, "MyGateway", new GatewayProps {
GatewayName = "my-gateway"
});
var policyEngine = new PolicyEngine(this, "MyPolicyEngine", new PolicyEngineProps {
PolicyEngineName = "my_policy_engine"
});
var allowAllPolicy = new Policy(this, "AllowAllPolicy", new PolicyProps {
PolicyEngine = policyEngine,
PolicyName = "allow_all",
Statement = PolicyStatement.Permit().ForAllPrincipals().OnAllActions().OnResource("AgentCore::Gateway", gateway.GatewayArn),
Description = "Allow all actions on specific gateway (development only)",
ValidationMode = PolicyValidationMode.IGNORE_ALL_FINDINGS
});
Properties
Description
(experimental) Optional description for the policy engine.
public string? Description { get; set; }
Property Value
Remarks
Maximum 4,096 characters.
Default: - No description
Stability: Experimental
KmsKey
(experimental) Custom KMS key for encryption.
public IKey? KmsKey { get; set; }
Property Value
Remarks
[disable-awslint:prefer-ref-interface]
Default: - AWS owned key
Stability: Experimental
PolicyEngineName
(experimental) The name of the policy engine.
public string? PolicyEngineName { get; set; }
Property Value
Remarks
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.
public IDictionary<string, string>? Tags { get; set; }
Property Value
Remarks
Maximum 50 tags.
Default: - No tags
Stability: Experimental