AccessDeniedReason

May 22, 2025 ยท View on GitHub

Example Usage

import { AccessDeniedReason } from "@launchdarkly/mcp-server/models/components";

let value: AccessDeniedReason = {
  resources: [
    "proj/*:env/*;qa_*:/flag/*",
  ],
  actions: [
    "*",
  ],
  effect: "allow",
};

Fields

FieldTypeRequiredDescriptionExample
resourcesstring[]:heavy_minus_sign:Resource specifier strings[
"proj/:env/;qa_:/flag/"
]
notResourcesstring[]:heavy_minus_sign:Targeted resources are the resources NOT in this list. The resources and notActions fields must be empty to use this field.
actionsstring[]:heavy_minus_sign:Actions to perform on a resource[
"*"
]
notActionsstring[]:heavy_minus_sign:Targeted actions are the actions NOT in this list. The actions and notResources fields must be empty to use this field.
effectcomponents.AccessDeniedReasonEffect:heavy_check_mark:Whether this statement should allow or deny actions on the resources.allow
roleNamestring:heavy_minus_sign:N/A