Interface IPolicyEngine.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IGrantable,IGrantable.Jsii$Default,IPolicyEngine,IPolicyEngineRef,IPolicyEngineRef.Jsii$Default,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IPolicyEngine.Jsii$Proxy
- Enclosing interface:
IPolicyEngine
IPolicyEngine.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.IPolicyEngine
IPolicyEngine.Jsii$Default, IPolicyEngine.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IPolicyEngineRef
IPolicyEngineRef.Jsii$Default, IPolicyEngineRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault StringThe description of the policy engine.default IKeyThe KMS key used for encryption.default StringThe ARN of the policy engine resource.default StringThe ID of the policy engine.default StringThe name of the policy engine.default Grantgrant(IGrantable grantee, String... actions) Grants IAM actions to the IAM Principal.default GrantgrantEvaluate(IGrantable grantee) Grants permissions to evaluate policies at runtime .default GrantgrantEvaluateForGateway(IGrantable grantee, IGateway gateway) Grants the full set of permissions required for a gateway execution role to use this policy engine, correctly scoped to both the policy engine and gateway ARNs.default GrantgrantRead(IGrantable grantee) Grants read permissions on the PolicyEngine.default MetricReturn the given named metric for this policy engine.default Metricmetric(String metricName, MetricOptions props) Return the given named metric for this policy engine.default MetricReturn a metric measuring the authorization latency for this policy engine.default MetricReturn a metric measuring the authorization latency for this policy engine.default MetricReturn a metric containing the number of denied authorization requests for this policy engine.default MetricReturn a metric containing the number of denied authorization requests for this policy engine.default MetricReturn a metric containing the number of errors during authorization for this policy engine.default MetricmetricErrors(MetricOptions props) Return a metric containing the number of errors during authorization for this policy engine.Methods inherited from interface software.constructs.IConstruct.Jsii$Default
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware.Jsii$Default
getEnvMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable.Jsii$Default
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IPolicyEngineRef.Jsii$Default
getPolicyEngineRefMethods inherited from interface software.amazon.awscdk.IResource.Jsii$Default
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPolicyEngineArn
The ARN of the policy engine resource.- Specified by:
getPolicyEngineArnin interfaceIPolicyEngine
-
getPolicyEngineId
The ID of the policy engine.- Specified by:
getPolicyEngineIdin interfaceIPolicyEngine
-
getPolicyEngineName
The name of the policy engine.- Specified by:
getPolicyEngineNamein interfaceIPolicyEngine
-
getDescription
The description of the policy engine.- Specified by:
getDescriptionin interfaceIPolicyEngine
-
getKmsKey
The KMS key used for encryption.- Specified by:
getKmsKeyin interfaceIPolicyEngine
-
grant
@Stability(Stable) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) Grants IAM actions to the IAM Principal.- Specified by:
grantin interfaceIPolicyEngine- Parameters:
grantee-- The IAM principal to grant permissions to.
actions-- The actions to grant.
-
grantEvaluate
Grants permissions to evaluate policies at runtime .This is the primary permission needed by Gateway execution roles to evaluate authorization decisions during agent requests. Grant this to roles that need to call AuthorizeAction or PartiallyAuthorizeActions.
- Specified by:
grantEvaluatein interfaceIPolicyEngine- Parameters:
grantee-- The IAM principal to grant evaluation permissions to.
-
grantEvaluateForGateway
@Stability(Stable) @NotNull default Grant grantEvaluateForGateway(@NotNull IGrantable grantee, @NotNull IGateway gateway) Grants the full set of permissions required for a gateway execution role to use this policy engine, correctly scoped to both the policy engine and gateway ARNs.Per the AWS docs,
AuthorizeActionandPartiallyAuthorizeActionsrequire both the policy engine ARN and the gateway ARN as resources, whileGetPolicyEngineonly needs the policy engine ARN.This follows the same pattern as Lambda's
grantInvokeVersion(grantee, version).- Specified by:
grantEvaluateForGatewayin interfaceIPolicyEngine- Parameters:
grantee-- The IAM principal (gateway execution role) to grant permissions to.
gateway-- The gateway that will use this policy engine [disable-awslint:prefer-ref-interface].
-
grantRead
Grants read permissions on the PolicyEngine.This grants runtime read access to policy engine configuration. Use this for monitoring, observability, or read-only administrative roles.
- Specified by:
grantReadin interfaceIPolicyEngine- Parameters:
grantee-- The IAM principal to grant read permissions to.
-
metric
@Stability(Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this policy engine.- Specified by:
metricin interfaceIPolicyEngine- Parameters:
metricName- The name of the metric. This parameter is required.props- Optional metric configuration.
-
metric
Return the given named metric for this policy engine.- Specified by:
metricin interfaceIPolicyEngine- Parameters:
metricName- The name of the metric. This parameter is required.
-
metricAuthorizationLatency
@Stability(Stable) @NotNull default Metric metricAuthorizationLatency(@Nullable MetricOptions props) Return a metric measuring the authorization latency for this policy engine.This metric represents the time taken to evaluate authorization policies.
- Specified by:
metricAuthorizationLatencyin interfaceIPolicyEngine- Parameters:
props- Optional metric configuration.
-
metricAuthorizationLatency
Return a metric measuring the authorization latency for this policy engine.This metric represents the time taken to evaluate authorization policies.
- Specified by:
metricAuthorizationLatencyin interfaceIPolicyEngine
-
metricDeniedRequests
Return a metric containing the number of denied authorization requests for this policy engine.This metric tracks authorization requests that were explicitly denied by policies.
- Specified by:
metricDeniedRequestsin interfaceIPolicyEngine- Parameters:
props- Optional metric configuration.
-
metricDeniedRequests
Return a metric containing the number of denied authorization requests for this policy engine.This metric tracks authorization requests that were explicitly denied by policies.
- Specified by:
metricDeniedRequestsin interfaceIPolicyEngine
-
metricErrors
Return a metric containing the number of errors during authorization for this policy engine.This metric tracks errors encountered during policy evaluation.
- Specified by:
metricErrorsin interfaceIPolicyEngine- Parameters:
props- Optional metric configuration.
-
metricErrors
Return a metric containing the number of errors during authorization for this policy engine.This metric tracks errors encountered during policy evaluation.
- Specified by:
metricErrorsin interfaceIPolicyEngine
-