Skip to main content

CreateResourceGrantInput

Share a resource with recipient environments matching attribute conditions. The caller must have resource:update on the source resource.

input CreateResourceGrantInput {
action: String!
recipientConditions: Conditions!
}

Fields

CreateResourceGrantInput.action ● String! non-null scalar {#action}

The action being granted on the resource. Currently the only grantable resource action is resource:export — resource visibility is inferred from any granted action.

CreateResourceGrantInput.recipientConditions ● Conditions! non-null scalar {#recipient-conditions}

Restrict this grant to recipient environments whose attributes match every condition. Send the literal "*" to apply to every environment in the organization. Per-key, send "*" to match any value or a non-empty list of strings to match a closed set.

Member Of

createResourceGrant mutation