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 string
- The unique name of the resource.
- args GatewaySecurityPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args GatewaySecurityPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewaySecurityPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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
The GatewaySecurityPolicy resource accepts the following input properties:
- Gateway
Security stringPolicy Id - 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 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 string
- 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 stringPolicy Id - 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 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 string
- 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 StringPolicy Id - 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 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 String
- 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 stringPolicy Id - 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 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 string
- 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_ strpolicy_ id - 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 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 str
- 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 StringPolicy Id - 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 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 String
- 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.