AuthorizationPolicyArgs

data class AuthorizationPolicyArgs(val action: Output<AuthorizationPolicyAction>? = null, val authorizationPolicyId: Output<String>? = null, val description: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val rules: Output<List<RuleArgs>>? = null) : ConvertibleToJava<AuthorizationPolicyArgs>

Creates a new AuthorizationPolicy in a given project and location.

Constructors

Link copied to clipboard
fun AuthorizationPolicyArgs(action: Output<AuthorizationPolicyAction>? = null, authorizationPolicyId: Output<String>? = null, description: Output<String>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, rules: Output<List<RuleArgs>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AuthorizationPolicyArgs

Properties

Link copied to clipboard
val action: Output<AuthorizationPolicyAction>? = null

The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".

Link copied to clipboard
val authorizationPolicyId: Output<String>? = null

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".

Link copied to clipboard
val description: Output<String>? = null

Optional. Free-text description of the resource.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Optional. Set of label tags associated with the AuthorizationPolicy resource.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

Name of the AuthorizationPolicy resource. It matches pattern projects/{project}/locations/{location}/authorizationPolicies/.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val rules: Output<List<RuleArgs>>? = null

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.