AuthorizationPolicyArgs class
The set of arguments for AuthorizationPolicy. The set of arguments for AuthorizationPolicy.
Constructors
-
AuthorizationPolicyArgs({required Input<
AuthorizationPolicyAction> action, required Input<String> authorizationPolicyId, Input<String> ? description, Input<Map< ? labels, Input<String, String> >String> ? location, Input<String> ? name, Input<String> ? project, Input<List< ? rules})RuleNetworksecurityV1> > -
Creates a new AuthorizationPolicyArgs.
actionThe action to take when a rule match is found. Possible values are "ALLOW" or "DENY".authorizationPolicyIdRequired. 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".descriptionOptional. Free-text description of the resource.labelsOptional. Set of label tags associated with the AuthorizationPolicy resource.locationOptional.nameName of the AuthorizationPolicy resource. It matches patternprojects/{project}/locations/{location}/authorizationPolicies/.projectOptional.rulesOptional. 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 theactionfield will be applied on every request.const -
AuthorizationPolicyArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
action
→ Input<
AuthorizationPolicyAction> -
The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
final
-
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".
final
-
description
→ Input<
String> ? -
Optional. Free-text description of the resource.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ Input<
Map< ?String, String> > -
Optional. Set of label tags associated with the AuthorizationPolicy resource.
final
-
location
→ Input<
String> ? -
final
-
name
→ Input<
String> ? -
Name of the AuthorizationPolicy resource. It matches pattern
projects/{project}/locations/{location}/authorizationPolicies/.final -
project
→ Input<
String> ? -
final
-
rules
→ Input<
List< ?RuleNetworksecurityV1> > -
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
actionfield will be applied on every request.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited