Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.08 KB

Statement.md

File metadata and controls

26 lines (20 loc) · 1.08 KB

LaunchDarklyApi::Statement

Properties

Name Type Description Notes
resources Array<String> Resource specifier strings [optional]
not_resources Array<String> Targeted resources are the resources NOT in this list. The <code>resources</code> and <code>notActions</code> fields must be empty to use this field. [optional]
actions Array<String> Actions to perform on a resource [optional]
not_actions Array<String> Targeted actions are the actions NOT in this list. The <code>actions</code> and <code>notResources</code> fields must be empty to use this field. [optional]
effect String Whether this statement should allow or deny actions on the resources.

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::Statement.new(
  resources: [&quot;proj/*:env/*;qa_*:/flag/*&quot;],
  not_resources: null,
  actions: [&quot;*&quot;],
  not_actions: null,
  effect: allow
)