Interface IPolicy.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, IPolicy, IPolicyRef, IPolicyRef.Jsii$Default, IResource, IResource.Jsii$Default, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
IPolicy.Jsii$Proxy
Enclosing interface:
IPolicy

@Internal public static interface IPolicy.Jsii$Default extends IPolicy, IResource.Jsii$Default, IPolicyRef.Jsii$Default, IGrantable.Jsii$Default
Internal default implementation for IPolicy.
  • Method Details

    • getPolicyArn

      @Stability(Stable) @NotNull default String getPolicyArn()
      The ARN of the policy resource.
      Specified by:
      getPolicyArn in interface IPolicy
    • getPolicyEngine

      @Stability(Stable) @NotNull default IPolicyEngine getPolicyEngine()
      The policy engine this policy belongs to.
      Specified by:
      getPolicyEngine in interface IPolicy
    • getPolicyId

      @Stability(Stable) @NotNull default String getPolicyId()
      The ID of the policy.
      Specified by:
      getPolicyId in interface IPolicy
    • getPolicyName

      @Stability(Stable) @NotNull default String getPolicyName()
      The name of the policy.
      Specified by:
      getPolicyName in interface IPolicy
    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      The description of the policy.
      Specified by:
      getDescription in interface IPolicy
    • getValidationMode

      @Stability(Stable) @Nullable default PolicyValidationMode getValidationMode()
      The validation mode for the policy.
      Specified by:
      getValidationMode in interface IPolicy
    • grant

      @Stability(Stable) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
      Grants IAM actions to the IAM Principal.

      Specified by:
      grant in interface IPolicy
      Parameters:
      grantee -
      • The IAM principal to grant permissions to.
      This parameter is required.
      actions -
      • The actions to grant.
      This parameter is required.
    • grantRead

      @Stability(Stable) @NotNull default Grant grantRead(@NotNull IGrantable grantee)
      Grants read permissions on the Policy (data plane).

      This grants runtime read access to policy configuration. Use this for monitoring, audit, or read-only administrative roles that need to inspect policy definitions.

      Specified by:
      grantRead in interface IPolicy
      Parameters:
      grantee -
      • The IAM principal to grant read permissions to.
      This parameter is required.
    • metric

      @Stability(Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
      Return the given named metric for this policy.

      Specified by:
      metric in interface IPolicy
      Parameters:
      metricName - The name of the metric. This parameter is required.
      props - Optional metric configuration.
    • metric

      @Stability(Stable) @NotNull default Metric metric(@NotNull String metricName)
      Return the given named metric for this policy.

      Specified by:
      metric in interface IPolicy
      Parameters:
      metricName - The name of the metric. This parameter is required.
    • metricEvaluationLatency

      @Stability(Stable) @NotNull default Metric metricEvaluationLatency(@Nullable MetricOptions props)
      Return a metric measuring the evaluation latency for this policy.

      This metric represents the time taken to evaluate this specific policy.

      Specified by:
      metricEvaluationLatency in interface IPolicy
      Parameters:
      props - Optional metric configuration.
    • metricEvaluationLatency

      @Stability(Stable) @NotNull default Metric metricEvaluationLatency()
      Return a metric measuring the evaluation latency for this policy.

      This metric represents the time taken to evaluate this specific policy.

      Specified by:
      metricEvaluationLatency in interface IPolicy
    • metricEvaluations

      @Stability(Stable) @NotNull default Metric metricEvaluations(@Nullable MetricOptions props)
      Return a metric containing the total number of evaluations for this policy.

      This metric tracks how many times this policy has been evaluated.

      Specified by:
      metricEvaluations in interface IPolicy
      Parameters:
      props - Optional metric configuration.
    • metricEvaluations

      @Stability(Stable) @NotNull default Metric metricEvaluations()
      Return a metric containing the total number of evaluations for this policy.

      This metric tracks how many times this policy has been evaluated.

      Specified by:
      metricEvaluations in interface IPolicy