Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.networksecurity/v1.GatewaySecurityPolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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",
});
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"),
})
var gatewaySecurityPolicyResource = new GatewaySecurityPolicy("gatewaySecurityPolicyResource", GatewaySecurityPolicyArgs.builder()
.gatewaySecurityPolicyId("string")
.description("string")
.location("string")
.name("string")
.project("string")
.tlsInspectionPolicy("string")
.build());
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")
const gatewaySecurityPolicyResource = new google_native.networksecurity.v1.GatewaySecurityPolicy("gatewaySecurityPolicyResource", {
gatewaySecurityPolicyId: "string",
description: "string",
location: "string",
name: "string",
project: "string",
tlsInspectionPolicy: "string",
});
type: google-native:networksecurity/v1:GatewaySecurityPolicy
properties:
description: string
gatewaySecurityPolicyId: string
location: string
name: string
project: string
tlsInspectionPolicy: string
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:
- Gateway
Security Policy Id This property is required. Changes to this property will trigger replacement.
- 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.
- 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.
- Tls
Inspection stringPolicy - 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.
- 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.
- 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.
- Tls
Inspection stringPolicy - 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.
- 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.
- 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.
- tls
Inspection StringPolicy - 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.
- 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.
- 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.
- tls
Inspection stringPolicy - 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.
- 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.
- 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.
- tls_
inspection_ strpolicy - 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.
- 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.
- 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.
- tls
Inspection StringPolicy - 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:
- Create
Time string - The timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The timestamp when the resource was updated.
- Create
Time string - The timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The timestamp when the resource was updated.
- create
Time String - The timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The timestamp when the resource was updated.
- create
Time string - The timestamp when the resource was created.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time 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.
- create
Time String - The timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time 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.