AuthorizationPolicyArgs constructor
Creates a new AuthorizationPolicyArgs.
action The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
authorizationPolicyId Required. Short name of the AuthorizationPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".
description Optional. Free-text description of the resource.
labels Optional. Set of label tags associated with the AuthorizationPolicy resource.
location Optional.
name Name of the AuthorizationPolicy resource. It matches pattern projects/{project}/locations/{location}/authorizationPolicies/.
project Optional.
rules Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the action field will be applied on every request.
Implementation
const AuthorizationPolicyArgs({
required this.action,
required this.authorizationPolicyId,
this.description,
this.labels,
this.location,
this.name,
this.project,
this.rules,
});