CreatePolicySettingInput
CreatePolicySettingInput
Create a policy setting for the given type, resource and precedence. Provide the setting in either standard form (either value (as JSON) or valueSource (as YAML string), or as a calculated setting with inputTemplate (as YAML Nunjucks template) and optional input (as GraphQL query string). Optionally provide note, validFromTimestamp and validToTimestamp
force | Boolean | Optional force which allows you to create a policy setting even when guardrails are attached with preview/check/enforce phases |
note | String | Optional note for the policy setting, as a string |
precedence | PolicySettingPrecedence | Optional precedence of the policy setting. Defaults to REQUIRED if not specified |
resource | ID! | The resource level to create the policy setting at, either as an id, or an AKA |
template | String | Optional template of a calculated policy setting, as a YAML Nunjucks string |
templateInput | Scalar | Optional Graphql templateInput query of a calculated policy setting, as a string, or array of strings |
type | ID! | The type of the policy setting to create, either as an id, or an AKA |
validFromTimestamp | String | Optional validFromTimestamp for the policy setting, as an ISO string |
validToTimestamp | String | Optional validToTimestamp for the policy setting, as an ISO string |
value | JSON | Optional value of a standard policy setting, as a JSON object |
valueSource | String | Optional valueSource of a standard policy setting, as a YAML string |