FirewallPolicyArgs

data class FirewallPolicyArgs(val associations: Output<List<FirewallPolicyAssociationArgs>>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val name: Output<String>? = null, val parentId: Output<String>? = null, val requestId: Output<String>? = null, val rules: Output<List<FirewallPolicyRuleArgs>>? = null, val shortName: Output<String>? = null, val vpcNetworkScope: Output<FirewallPolicyVpcNetworkScope>? = null) : ConvertibleToJava<FirewallPolicyArgs>

Creates a new policy in the specified project using the data included in the request.

Constructors

Link copied to clipboard
fun FirewallPolicyArgs(associations: Output<List<FirewallPolicyAssociationArgs>>? = null, description: Output<String>? = null, displayName: Output<String>? = null, name: Output<String>? = null, parentId: Output<String>? = null, requestId: Output<String>? = null, rules: Output<List<FirewallPolicyRuleArgs>>? = null, shortName: Output<String>? = null, vpcNetworkScope: Output<FirewallPolicyVpcNetworkScope>? = null)

Functions

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

Properties

Link copied to clipboard

A list of associations that belong to this firewall policy.

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

An optional description of this resource. Provide this property when you create the resource.

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

Deprecated, please use short name instead. User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

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

Name of the resource. For Organization Firewall Policies it's a Output Only numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy.

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

Parent ID for this request. The ID can be either be "folders/FOLDER_ID" if the parent is a folder or "organizations/ORGANIZATION_ID" if the parent is an organization.

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

An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).

Link copied to clipboard
val rules: Output<List<FirewallPolicyRuleArgs>>? = null

A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added.

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

User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Link copied to clipboard

The scope of networks allowed to be associated with the firewall policy. This field can be either GLOBAL_VPC_NETWORK or REGIONAL_VPC_NETWORK. A firewall policy with the VPC scope set to GLOBAL_VPC_NETWORK is allowed to be attached only to global networks. When the VPC scope is set to REGIONAL_VPC_NETWORK the firewall policy is allowed to be attached only to regional networks in the same scope as the firewall policy. Note: if not specified then GLOBAL_VPC_NETWORK will be used.