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/v7/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=gcp.networksecurity.SecurityProfileThreatPreventionProfileArgs(
        severity_overrides=[
            gcp.networksecurity.SecurityProfileThreatPreventionProfileSeverityOverrideArgs(
                action="ALLOW",
                severity="INFORMATIONAL",
            ),
            gcp.networksecurity.SecurityProfileThreatPreventionProfileSeverityOverrideArgs(
                action="DENY",
                severity="HIGH",
            ),
        ],
        threat_overrides=[gcp.networksecurity.SecurityProfileThreatPreventionProfileThreatOverrideArgs(
            action="ALLOW",
            threat_id="280647",
        )],
    ))
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v7/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=gcp.networksecurity.SecurityProfileThreatPreventionProfileArgs(
        severity_overrides=[gcp.networksecurity.SecurityProfileThreatPreventionProfileSeverityOverrideArgs(
            action="string",
            severity="string",
        )],
        threat_overrides=[gcp.networksecurity.SecurityProfileThreatPreventionProfileThreatOverrideArgs(
            action="string",
            threat_id="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_labelsfor 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}.
- ThreatPrevention 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_labelsfor 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}.
- ThreatPrevention 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_labelsfor 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}.
- threatPrevention 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_labelsfor 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}.
- threatPrevention 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_labelsfor 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_labelsfor 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}.
- threatPrevention 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:
- CreateTime string
- Time the security profile was created in UTC.
- EffectiveLabels 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.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- SelfLink string
- Server-defined URL of this resource.
- UpdateTime string
- Time the security profile was updated in UTC.
- CreateTime string
- Time the security profile was created in UTC.
- EffectiveLabels 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.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- SelfLink string
- Server-defined URL of this resource.
- UpdateTime string
- Time the security profile was updated in UTC.
- createTime String
- Time the security profile was created in UTC.
- effectiveLabels 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.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink String
- Server-defined URL of this resource.
- updateTime String
- Time the security profile was updated in UTC.
- createTime string
- Time the security profile was created in UTC.
- effectiveLabels {[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.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink string
- Server-defined URL of this resource.
- updateTime 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.
- createTime String
- Time the security profile was created in UTC.
- effectiveLabels 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.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink String
- Server-defined URL of this resource.
- updateTime 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) -> SecurityProfilefunc 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.
- CreateTime string
- Time the security profile was created in UTC.
- Description string
- An optional description of the security profile. The Max length is 512 characters.
- EffectiveLabels 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_labelsfor 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}.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- SelfLink string
- Server-defined URL of this resource.
- ThreatPrevention 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.
- UpdateTime string
- Time the security profile was updated in UTC.
- CreateTime string
- Time the security profile was created in UTC.
- Description string
- An optional description of the security profile. The Max length is 512 characters.
- EffectiveLabels 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_labelsfor 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}.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- SelfLink string
- Server-defined URL of this resource.
- ThreatPrevention 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.
- UpdateTime string
- Time the security profile was updated in UTC.
- createTime String
- Time the security profile was created in UTC.
- description String
- An optional description of the security profile. The Max length is 512 characters.
- effectiveLabels 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_labelsfor 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}.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink String
- Server-defined URL of this resource.
- threatPrevention 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.
- updateTime String
- Time the security profile was updated in UTC.
- createTime string
- Time the security profile was created in UTC.
- description string
- An optional description of the security profile. The Max length is 512 characters.
- effectiveLabels {[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_labelsfor 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}.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink string
- Server-defined URL of this resource.
- threatPrevention 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.
- updateTime 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_labelsfor 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.
- createTime String
- Time the security profile was created in UTC.
- description String
- An optional description of the security profile. The Max length is 512 characters.
- effectiveLabels 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_labelsfor 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}.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink String
- Server-defined URL of this resource.
- threatPrevention 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.
- updateTime String
- Time the security profile was updated in UTC.
Supporting Types
SecurityProfileThreatPreventionProfile, SecurityProfileThreatPreventionProfileArgs          
- SeverityOverrides List<SecurityProfile Threat Prevention Profile Severity Override> 
- The configuration for overriding threats actions by severity match. Structure is documented below.
- ThreatOverrides 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.
- SeverityOverrides []SecurityProfile Threat Prevention Profile Severity Override 
- The configuration for overriding threats actions by severity match. Structure is documented below.
- ThreatOverrides []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.
- severityOverrides List<SecurityProfile Threat Prevention Profile Severity Override> 
- The configuration for overriding threats actions by severity match. Structure is documented below.
- threatOverrides 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.
- severityOverrides SecurityProfile Threat Prevention Profile Severity Override[] 
- The configuration for overriding threats actions by severity match. Structure is documented below.
- threatOverrides 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.
- severityOverrides List<Property Map>
- The configuration for overriding threats actions by severity match. Structure is documented below.
- threatOverrides 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-betaTerraform Provider.