1. Packages
  2. Google Cloud Native
  3. API Docs
  4. networksecurity
  5. networksecurity/v1
  6. GatewaySecurityPolicy

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.networksecurity/v1.GatewaySecurityPolicy

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Creates a new GatewaySecurityPolicy in a given project and location.

Create GatewaySecurityPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new GatewaySecurityPolicy(name: string, args: GatewaySecurityPolicyArgs, opts?: CustomResourceOptions);
@overload
def GatewaySecurityPolicy(resource_name: str,
                          args: GatewaySecurityPolicyArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def GatewaySecurityPolicy(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          gateway_security_policy_id: Optional[str] = None,
                          description: Optional[str] = None,
                          location: Optional[str] = None,
                          name: Optional[str] = None,
                          project: Optional[str] = None,
                          tls_inspection_policy: Optional[str] = None)
func NewGatewaySecurityPolicy(ctx *Context, name string, args GatewaySecurityPolicyArgs, opts ...ResourceOption) (*GatewaySecurityPolicy, error)
public GatewaySecurityPolicy(string name, GatewaySecurityPolicyArgs args, CustomResourceOptions? opts = null)
public GatewaySecurityPolicy(String name, GatewaySecurityPolicyArgs args)
public GatewaySecurityPolicy(String name, GatewaySecurityPolicyArgs args, CustomResourceOptions options)
type: google-native:networksecurity/v1:GatewaySecurityPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GatewaySecurityPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GatewaySecurityPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GatewaySecurityPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GatewaySecurityPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GatewaySecurityPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var gatewaySecurityPolicyResource = new GoogleNative.NetworkSecurity.V1.GatewaySecurityPolicy("gatewaySecurityPolicyResource", new()
{
    GatewaySecurityPolicyId = "string",
    Description = "string",
    Location = "string",
    Name = "string",
    Project = "string",
    TlsInspectionPolicy = "string",
});
Copy
example, err := networksecurity.NewGatewaySecurityPolicy(ctx, "gatewaySecurityPolicyResource", &networksecurity.GatewaySecurityPolicyArgs{
	GatewaySecurityPolicyId: pulumi.String("string"),
	Description:             pulumi.String("string"),
	Location:                pulumi.String("string"),
	Name:                    pulumi.String("string"),
	Project:                 pulumi.String("string"),
	TlsInspectionPolicy:     pulumi.String("string"),
})
Copy
var gatewaySecurityPolicyResource = new GatewaySecurityPolicy("gatewaySecurityPolicyResource", GatewaySecurityPolicyArgs.builder()
    .gatewaySecurityPolicyId("string")
    .description("string")
    .location("string")
    .name("string")
    .project("string")
    .tlsInspectionPolicy("string")
    .build());
Copy
gateway_security_policy_resource = google_native.networksecurity.v1.GatewaySecurityPolicy("gatewaySecurityPolicyResource",
    gateway_security_policy_id="string",
    description="string",
    location="string",
    name="string",
    project="string",
    tls_inspection_policy="string")
Copy
const gatewaySecurityPolicyResource = new google_native.networksecurity.v1.GatewaySecurityPolicy("gatewaySecurityPolicyResource", {
    gatewaySecurityPolicyId: "string",
    description: "string",
    location: "string",
    name: "string",
    project: "string",
    tlsInspectionPolicy: "string",
});
Copy
type: google-native:networksecurity/v1:GatewaySecurityPolicy
properties:
    description: string
    gatewaySecurityPolicyId: string
    location: string
    name: string
    project: string
    tlsInspectionPolicy: string
Copy

GatewaySecurityPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The GatewaySecurityPolicy resource accepts the following input properties:

GatewaySecurityPolicyId
This property is required.
Changes to this property will trigger replacement.
string
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1".
Description string
Optional. Free-text description of the resource.
Location Changes to this property will trigger replacement. string
Name string
Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
Project Changes to this property will trigger replacement. string
TlsInspectionPolicy string
Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
GatewaySecurityPolicyId
This property is required.
Changes to this property will trigger replacement.
string
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1".
Description string
Optional. Free-text description of the resource.
Location Changes to this property will trigger replacement. string
Name string
Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
Project Changes to this property will trigger replacement. string
TlsInspectionPolicy string
Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
gatewaySecurityPolicyId
This property is required.
Changes to this property will trigger replacement.
String
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1".
description String
Optional. Free-text description of the resource.
location Changes to this property will trigger replacement. String
name String
Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
project Changes to this property will trigger replacement. String
tlsInspectionPolicy String
Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
gatewaySecurityPolicyId
This property is required.
Changes to this property will trigger replacement.
string
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1".
description string
Optional. Free-text description of the resource.
location Changes to this property will trigger replacement. string
name string
Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
project Changes to this property will trigger replacement. string
tlsInspectionPolicy string
Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
gateway_security_policy_id
This property is required.
Changes to this property will trigger replacement.
str
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1".
description str
Optional. Free-text description of the resource.
location Changes to this property will trigger replacement. str
name str
Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
project Changes to this property will trigger replacement. str
tls_inspection_policy str
Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
gatewaySecurityPolicyId
This property is required.
Changes to this property will trigger replacement.
String
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1".
description String
Optional. Free-text description of the resource.
location Changes to this property will trigger replacement. String
name String
Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
project Changes to this property will trigger replacement. String
tlsInspectionPolicy String
Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.

Outputs

All input properties are implicitly available as output properties. Additionally, the GatewaySecurityPolicy resource produces the following output properties:

CreateTime string
The timestamp when the resource was created.
Id string
The provider-assigned unique ID for this managed resource.
UpdateTime string
The timestamp when the resource was updated.
CreateTime string
The timestamp when the resource was created.
Id string
The provider-assigned unique ID for this managed resource.
UpdateTime string
The timestamp when the resource was updated.
createTime String
The timestamp when the resource was created.
id String
The provider-assigned unique ID for this managed resource.
updateTime String
The timestamp when the resource was updated.
createTime string
The timestamp when the resource was created.
id string
The provider-assigned unique ID for this managed resource.
updateTime string
The timestamp when the resource was updated.
create_time str
The timestamp when the resource was created.
id str
The provider-assigned unique ID for this managed resource.
update_time str
The timestamp when the resource was updated.
createTime String
The timestamp when the resource was created.
id String
The provider-assigned unique ID for this managed resource.
updateTime String
The timestamp when the resource was updated.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi