Interface PolicyEngineAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PolicyEngineAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-10T17:51:40.358Z")
@Stability(Stable)
public interface PolicyEngineAttributes
extends software.amazon.jsii.JsiiSerializable
Attributes for importing an existing PolicyEngine.
Example:
IPolicyEngine importedEngine = PolicyEngine.fromPolicyEngineAttributes(this, "ImportedEngine", PolicyEngineAttributes.builder()
.policyEngineArn("policy-engine-arn")
.kmsKeyArn("kms-arn")
.build());
// Use the imported engine
Policy policy = Policy.Builder.create(this, "PolicyForImportedEngine")
.policyEngine(importedEngine)
.statement(PolicyStatement.fromCedar("permit(principal, action, resource);"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forPolicyEngineAttributesstatic final classAn implementation forPolicyEngineAttributes -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPolicyEngineArn
The ARN of the policy engine. -
getKmsKeyArn
The KMS key ARN used for encryption (optional).Default: - No KMS key
-
builder
- Returns:
- a
PolicyEngineAttributes.BuilderofPolicyEngineAttributes
-