gcp.networksecurity.SecurityProfile
Explore with Pulumi AI
A security profile defines the behavior associated to a profile type.
To get more information about SecurityProfile, see:
- API documentation
- How-to Guides
Example Usage
Network Security Security Profile Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.networksecurity.SecurityProfile("default", {
name: "my-security-profile",
parent: "organizations/123456789",
description: "my description",
type: "THREAT_PREVENTION",
labels: {
foo: "bar",
},
});
import pulumi
import pulumi_gcp as gcp
default = gcp.networksecurity.SecurityProfile("default",
name="my-security-profile",
parent="organizations/123456789",
description="my description",
type="THREAT_PREVENTION",
labels={
"foo": "bar",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networksecurity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networksecurity.NewSecurityProfile(ctx, "default", &networksecurity.SecurityProfileArgs{
Name: pulumi.String("my-security-profile"),
Parent: pulumi.String("organizations/123456789"),
Description: pulumi.String("my description"),
Type: pulumi.String("THREAT_PREVENTION"),
Labels: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.NetworkSecurity.SecurityProfile("default", new()
{
Name = "my-security-profile",
Parent = "organizations/123456789",
Description = "my description",
Type = "THREAT_PREVENTION",
Labels =
{
{ "foo", "bar" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networksecurity.SecurityProfile;
import com.pulumi.gcp.networksecurity.SecurityProfileArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new SecurityProfile("default", SecurityProfileArgs.builder()
.name("my-security-profile")
.parent("organizations/123456789")
.description("my description")
.type("THREAT_PREVENTION")
.labels(Map.of("foo", "bar"))
.build());
}
}
resources:
default:
type: gcp:networksecurity:SecurityProfile
properties:
name: my-security-profile
parent: organizations/123456789
description: my description
type: THREAT_PREVENTION
labels:
foo: bar
Network Security Security Profile Overrides
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.networksecurity.SecurityProfile("default", {
name: "my-security-profile",
parent: "organizations/123456789",
description: "my description",
type: "THREAT_PREVENTION",
threatPreventionProfile: {
severityOverrides: [
{
action: "ALLOW",
severity: "INFORMATIONAL",
},
{
action: "DENY",
severity: "HIGH",
},
],
threatOverrides: [{
action: "ALLOW",
threatId: "280647",
}],
},
});
import pulumi
import pulumi_gcp as gcp
default = gcp.networksecurity.SecurityProfile("default",
name="my-security-profile",
parent="organizations/123456789",
description="my description",
type="THREAT_PREVENTION",
threat_prevention_profile={
"severity_overrides": [
{
"action": "ALLOW",
"severity": "INFORMATIONAL",
},
{
"action": "DENY",
"severity": "HIGH",
},
],
"threat_overrides": [{
"action": "ALLOW",
"threat_id": "280647",
}],
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networksecurity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networksecurity.NewSecurityProfile(ctx, "default", &networksecurity.SecurityProfileArgs{
Name: pulumi.String("my-security-profile"),
Parent: pulumi.String("organizations/123456789"),
Description: pulumi.String("my description"),
Type: pulumi.String("THREAT_PREVENTION"),
ThreatPreventionProfile: &networksecurity.SecurityProfileThreatPreventionProfileArgs{
SeverityOverrides: networksecurity.SecurityProfileThreatPreventionProfileSeverityOverrideArray{
&networksecurity.SecurityProfileThreatPreventionProfileSeverityOverrideArgs{
Action: pulumi.String("ALLOW"),
Severity: pulumi.String("INFORMATIONAL"),
},
&networksecurity.SecurityProfileThreatPreventionProfileSeverityOverrideArgs{
Action: pulumi.String("DENY"),
Severity: pulumi.String("HIGH"),
},
},
ThreatOverrides: networksecurity.SecurityProfileThreatPreventionProfileThreatOverrideArray{
&networksecurity.SecurityProfileThreatPreventionProfileThreatOverrideArgs{
Action: pulumi.String("ALLOW"),
ThreatId: pulumi.String("280647"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.NetworkSecurity.SecurityProfile("default", new()
{
Name = "my-security-profile",
Parent = "organizations/123456789",
Description = "my description",
Type = "THREAT_PREVENTION",
ThreatPreventionProfile = new Gcp.NetworkSecurity.Inputs.SecurityProfileThreatPreventionProfileArgs
{
SeverityOverrides = new[]
{
new Gcp.NetworkSecurity.Inputs.SecurityProfileThreatPreventionProfileSeverityOverrideArgs
{
Action = "ALLOW",
Severity = "INFORMATIONAL",
},
new Gcp.NetworkSecurity.Inputs.SecurityProfileThreatPreventionProfileSeverityOverrideArgs
{
Action = "DENY",
Severity = "HIGH",
},
},
ThreatOverrides = new[]
{
new Gcp.NetworkSecurity.Inputs.SecurityProfileThreatPreventionProfileThreatOverrideArgs
{
Action = "ALLOW",
ThreatId = "280647",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networksecurity.SecurityProfile;
import com.pulumi.gcp.networksecurity.SecurityProfileArgs;
import com.pulumi.gcp.networksecurity.inputs.SecurityProfileThreatPreventionProfileArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new SecurityProfile("default", SecurityProfileArgs.builder()
.name("my-security-profile")
.parent("organizations/123456789")
.description("my description")
.type("THREAT_PREVENTION")
.threatPreventionProfile(SecurityProfileThreatPreventionProfileArgs.builder()
.severityOverrides(
SecurityProfileThreatPreventionProfileSeverityOverrideArgs.builder()
.action("ALLOW")
.severity("INFORMATIONAL")
.build(),
SecurityProfileThreatPreventionProfileSeverityOverrideArgs.builder()
.action("DENY")
.severity("HIGH")
.build())
.threatOverrides(SecurityProfileThreatPreventionProfileThreatOverrideArgs.builder()
.action("ALLOW")
.threatId("280647")
.build())
.build())
.build());
}
}
resources:
default:
type: gcp:networksecurity:SecurityProfile
properties:
name: my-security-profile
parent: organizations/123456789
description: my description
type: THREAT_PREVENTION
threatPreventionProfile:
severityOverrides:
- action: ALLOW
severity: INFORMATIONAL
- action: DENY
severity: HIGH
threatOverrides:
- action: ALLOW
threatId: '280647'
Create SecurityProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityProfile(name: string, args: SecurityProfileArgs, opts?: CustomResourceOptions);
@overload
def SecurityProfile(resource_name: str,
args: SecurityProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
threat_prevention_profile: Optional[SecurityProfileThreatPreventionProfileArgs] = None)
func NewSecurityProfile(ctx *Context, name string, args SecurityProfileArgs, opts ...ResourceOption) (*SecurityProfile, error)
public SecurityProfile(string name, SecurityProfileArgs args, CustomResourceOptions? opts = null)
public SecurityProfile(String name, SecurityProfileArgs args)
public SecurityProfile(String name, SecurityProfileArgs args, CustomResourceOptions options)
type: gcp:networksecurity:SecurityProfile
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 SecurityProfileArgs
- 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 SecurityProfileArgs
- 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 SecurityProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityProfileArgs
- 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 securityProfileResource = new Gcp.NetworkSecurity.SecurityProfile("securityProfileResource", new()
{
Type = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Parent = "string",
ThreatPreventionProfile = new Gcp.NetworkSecurity.Inputs.SecurityProfileThreatPreventionProfileArgs
{
SeverityOverrides = new[]
{
new Gcp.NetworkSecurity.Inputs.SecurityProfileThreatPreventionProfileSeverityOverrideArgs
{
Action = "string",
Severity = "string",
},
},
ThreatOverrides = new[]
{
new Gcp.NetworkSecurity.Inputs.SecurityProfileThreatPreventionProfileThreatOverrideArgs
{
Action = "string",
ThreatId = "string",
Type = "string",
},
},
},
});
example, err := networksecurity.NewSecurityProfile(ctx, "securityProfileResource", &networksecurity.SecurityProfileArgs{
Type: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Parent: pulumi.String("string"),
ThreatPreventionProfile: &networksecurity.SecurityProfileThreatPreventionProfileArgs{
SeverityOverrides: networksecurity.SecurityProfileThreatPreventionProfileSeverityOverrideArray{
&networksecurity.SecurityProfileThreatPreventionProfileSeverityOverrideArgs{
Action: pulumi.String("string"),
Severity: pulumi.String("string"),
},
},
ThreatOverrides: networksecurity.SecurityProfileThreatPreventionProfileThreatOverrideArray{
&networksecurity.SecurityProfileThreatPreventionProfileThreatOverrideArgs{
Action: pulumi.String("string"),
ThreatId: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
},
})
var securityProfileResource = new SecurityProfile("securityProfileResource", SecurityProfileArgs.builder()
.type("string")
.description("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.parent("string")
.threatPreventionProfile(SecurityProfileThreatPreventionProfileArgs.builder()
.severityOverrides(SecurityProfileThreatPreventionProfileSeverityOverrideArgs.builder()
.action("string")
.severity("string")
.build())
.threatOverrides(SecurityProfileThreatPreventionProfileThreatOverrideArgs.builder()
.action("string")
.threatId("string")
.type("string")
.build())
.build())
.build());
security_profile_resource = gcp.networksecurity.SecurityProfile("securityProfileResource",
type="string",
description="string",
labels={
"string": "string",
},
location="string",
name="string",
parent="string",
threat_prevention_profile={
"severityOverrides": [{
"action": "string",
"severity": "string",
}],
"threatOverrides": [{
"action": "string",
"threatId": "string",
"type": "string",
}],
})
const securityProfileResource = new gcp.networksecurity.SecurityProfile("securityProfileResource", {
type: "string",
description: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
parent: "string",
threatPreventionProfile: {
severityOverrides: [{
action: "string",
severity: "string",
}],
threatOverrides: [{
action: "string",
threatId: "string",
type: "string",
}],
},
});
type: gcp:networksecurity:SecurityProfile
properties:
description: string
labels:
string: string
location: string
name: string
parent: string
threatPreventionProfile:
severityOverrides:
- action: string
severity: string
threatOverrides:
- action: string
threatId: string
type: string
type: string
SecurityProfile 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 SecurityProfile resource accepts the following input properties:
- Type string
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - Description string
- An optional description of the security profile. The Max length is 512 characters.
- Labels Dictionary<string, string>
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- The location of the security profile.
The default value is
global
. - Name string
- The name of the security profile resource.
- Parent string
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- Threat
Prevention SecurityProfile Profile Threat Prevention Profile - The threat prevention configuration for the security profile. Structure is documented below.
- Type string
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - Description string
- An optional description of the security profile. The Max length is 512 characters.
- Labels map[string]string
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- The location of the security profile.
The default value is
global
. - Name string
- The name of the security profile resource.
- Parent string
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- Threat
Prevention SecurityProfile Profile Threat Prevention Profile Args - The threat prevention configuration for the security profile. Structure is documented below.
- type String
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - description String
- An optional description of the security profile. The Max length is 512 characters.
- labels Map<String,String>
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- The location of the security profile.
The default value is
global
. - name String
- The name of the security profile resource.
- parent String
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- threat
Prevention SecurityProfile Profile Threat Prevention Profile - The threat prevention configuration for the security profile. Structure is documented below.
- type string
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - description string
- An optional description of the security profile. The Max length is 512 characters.
- labels {[key: string]: string}
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location string
- The location of the security profile.
The default value is
global
. - name string
- The name of the security profile resource.
- parent string
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- threat
Prevention SecurityProfile Profile Threat Prevention Profile - The threat prevention configuration for the security profile. Structure is documented below.
- type str
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - description str
- An optional description of the security profile. The Max length is 512 characters.
- labels Mapping[str, str]
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location str
- The location of the security profile.
The default value is
global
. - name str
- The name of the security profile resource.
- parent str
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- threat_
prevention_ Securityprofile Profile Threat Prevention Profile Args - The threat prevention configuration for the security profile. Structure is documented below.
- type String
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - description String
- An optional description of the security profile. The Max length is 512 characters.
- labels Map<String>
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- The location of the security profile.
The default value is
global
. - name String
- The name of the security profile resource.
- parent String
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- threat
Prevention Property MapProfile - The threat prevention configuration for the security profile. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityProfile resource produces the following output properties:
- Create
Time string - Time the security profile was created in UTC.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Self
Link string - Server-defined URL of this resource.
- Update
Time string - Time the security profile was updated in UTC.
- Create
Time string - Time the security profile was created in UTC.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Self
Link string - Server-defined URL of this resource.
- Update
Time string - Time the security profile was updated in UTC.
- create
Time String - Time the security profile was created in UTC.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link String - Server-defined URL of this resource.
- update
Time String - Time the security profile was updated in UTC.
- create
Time string - Time the security profile was created in UTC.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link string - Server-defined URL of this resource.
- update
Time string - Time the security profile was updated in UTC.
- create_
time str - Time the security profile was created in UTC.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag str
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- self_
link str - Server-defined URL of this resource.
- update_
time str - Time the security profile was updated in UTC.
- create
Time String - Time the security profile was created in UTC.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link String - Server-defined URL of this resource.
- update
Time String - Time the security profile was updated in UTC.
Look up Existing SecurityProfile Resource
Get an existing SecurityProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecurityProfileState, opts?: CustomResourceOptions): SecurityProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
etag: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
self_link: Optional[str] = None,
threat_prevention_profile: Optional[SecurityProfileThreatPreventionProfileArgs] = None,
type: Optional[str] = None,
update_time: Optional[str] = None) -> SecurityProfile
func GetSecurityProfile(ctx *Context, name string, id IDInput, state *SecurityProfileState, opts ...ResourceOption) (*SecurityProfile, error)
public static SecurityProfile Get(string name, Input<string> id, SecurityProfileState? state, CustomResourceOptions? opts = null)
public static SecurityProfile get(String name, Output<String> id, SecurityProfileState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - Time the security profile was created in UTC.
- Description string
- An optional description of the security profile. The Max length is 512 characters.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Labels Dictionary<string, string>
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- The location of the security profile.
The default value is
global
. - Name string
- The name of the security profile resource.
- Parent string
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Self
Link string - Server-defined URL of this resource.
- Threat
Prevention SecurityProfile Profile Threat Prevention Profile - The threat prevention configuration for the security profile. Structure is documented below.
- Type string
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - Update
Time string - Time the security profile was updated in UTC.
- Create
Time string - Time the security profile was created in UTC.
- Description string
- An optional description of the security profile. The Max length is 512 characters.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Labels map[string]string
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- The location of the security profile.
The default value is
global
. - Name string
- The name of the security profile resource.
- Parent string
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Self
Link string - Server-defined URL of this resource.
- Threat
Prevention SecurityProfile Profile Threat Prevention Profile Args - The threat prevention configuration for the security profile. Structure is documented below.
- Type string
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - Update
Time string - Time the security profile was updated in UTC.
- create
Time String - Time the security profile was created in UTC.
- description String
- An optional description of the security profile. The Max length is 512 characters.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Map<String,String>
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- The location of the security profile.
The default value is
global
. - name String
- The name of the security profile resource.
- parent String
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link String - Server-defined URL of this resource.
- threat
Prevention SecurityProfile Profile Threat Prevention Profile - The threat prevention configuration for the security profile. Structure is documented below.
- type String
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - update
Time String - Time the security profile was updated in UTC.
- create
Time string - Time the security profile was created in UTC.
- description string
- An optional description of the security profile. The Max length is 512 characters.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels {[key: string]: string}
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location string
- The location of the security profile.
The default value is
global
. - name string
- The name of the security profile resource.
- parent string
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link string - Server-defined URL of this resource.
- threat
Prevention SecurityProfile Profile Threat Prevention Profile - The threat prevention configuration for the security profile. Structure is documented below.
- type string
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - update
Time string - Time the security profile was updated in UTC.
- create_
time str - Time the security profile was created in UTC.
- description str
- An optional description of the security profile. The Max length is 512 characters.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag str
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Mapping[str, str]
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location str
- The location of the security profile.
The default value is
global
. - name str
- The name of the security profile resource.
- parent str
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- self_
link str - Server-defined URL of this resource.
- threat_
prevention_ Securityprofile Profile Threat Prevention Profile Args - The threat prevention configuration for the security profile. Structure is documented below.
- type str
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - update_
time str - Time the security profile was updated in UTC.
- create
Time String - Time the security profile was created in UTC.
- description String
- An optional description of the security profile. The Max length is 512 characters.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Map<String>
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- The location of the security profile.
The default value is
global
. - name String
- The name of the security profile resource.
- parent String
- The name of the parent this security profile belongs to. Format: organizations/{organization_id}.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link String - Server-defined URL of this resource.
- threat
Prevention Property MapProfile - The threat prevention configuration for the security profile. Structure is documented below.
- type String
- The type of security profile.
Possible values are:
THREAT_PREVENTION
. - update
Time String - Time the security profile was updated in UTC.
Supporting Types
SecurityProfileThreatPreventionProfile, SecurityProfileThreatPreventionProfileArgs
- Severity
Overrides List<SecurityProfile Threat Prevention Profile Severity Override> - The configuration for overriding threats actions by severity match. Structure is documented below.
- Threat
Overrides List<SecurityProfile Threat Prevention Profile Threat Override> - The configuration for overriding threats actions by threat id match. If a threat is matched both by configuration provided in severity overrides and threat overrides, the threat overrides action is applied. Structure is documented below.
- Severity
Overrides []SecurityProfile Threat Prevention Profile Severity Override - The configuration for overriding threats actions by severity match. Structure is documented below.
- Threat
Overrides []SecurityProfile Threat Prevention Profile Threat Override - The configuration for overriding threats actions by threat id match. If a threat is matched both by configuration provided in severity overrides and threat overrides, the threat overrides action is applied. Structure is documented below.
- severity
Overrides List<SecurityProfile Threat Prevention Profile Severity Override> - The configuration for overriding threats actions by severity match. Structure is documented below.
- threat
Overrides List<SecurityProfile Threat Prevention Profile Threat Override> - The configuration for overriding threats actions by threat id match. If a threat is matched both by configuration provided in severity overrides and threat overrides, the threat overrides action is applied. Structure is documented below.
- severity
Overrides SecurityProfile Threat Prevention Profile Severity Override[] - The configuration for overriding threats actions by severity match. Structure is documented below.
- threat
Overrides SecurityProfile Threat Prevention Profile Threat Override[] - The configuration for overriding threats actions by threat id match. If a threat is matched both by configuration provided in severity overrides and threat overrides, the threat overrides action is applied. Structure is documented below.
- severity_
overrides Sequence[SecurityProfile Threat Prevention Profile Severity Override] - The configuration for overriding threats actions by severity match. Structure is documented below.
- threat_
overrides Sequence[SecurityProfile Threat Prevention Profile Threat Override] - The configuration for overriding threats actions by threat id match. If a threat is matched both by configuration provided in severity overrides and threat overrides, the threat overrides action is applied. Structure is documented below.
- severity
Overrides List<Property Map> - The configuration for overriding threats actions by severity match. Structure is documented below.
- threat
Overrides List<Property Map> - The configuration for overriding threats actions by threat id match. If a threat is matched both by configuration provided in severity overrides and threat overrides, the threat overrides action is applied. Structure is documented below.
SecurityProfileThreatPreventionProfileSeverityOverride, SecurityProfileThreatPreventionProfileSeverityOverrideArgs
SecurityProfileThreatPreventionProfileThreatOverride, SecurityProfileThreatPreventionProfileThreatOverrideArgs
Import
SecurityProfile can be imported using any of these accepted formats:
{{parent}}/locations/{{location}}/securityProfiles/{{name}}
When using the pulumi import
command, SecurityProfile can be imported using one of the formats above. For example:
$ pulumi import gcp:networksecurity/securityProfile:SecurityProfile default {{parent}}/locations/{{location}}/securityProfiles/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.