1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. networksecurity
  5. GatewaySecurityPolicy
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.networksecurity.GatewaySecurityPolicy

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    The GatewaySecurityPolicy resource contains a collection of GatewaySecurityPolicyRules and associated metadata.

    To get more information about GatewaySecurityPolicy, see:

    Example Usage

    Network Security Gateway Security Policy Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.networksecurity.GatewaySecurityPolicy("default", {
        name: "my-gateway-security-policy",
        location: "us-central1",
        description: "my description",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.networksecurity.GatewaySecurityPolicy("default",
        name="my-gateway-security-policy",
        location="us-central1",
        description="my description")
    
    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.NewGatewaySecurityPolicy(ctx, "default", &networksecurity.GatewaySecurityPolicyArgs{
    			Name:        pulumi.String("my-gateway-security-policy"),
    			Location:    pulumi.String("us-central1"),
    			Description: pulumi.String("my description"),
    		})
    		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.GatewaySecurityPolicy("default", new()
        {
            Name = "my-gateway-security-policy",
            Location = "us-central1",
            Description = "my description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.networksecurity.GatewaySecurityPolicy;
    import com.pulumi.gcp.networksecurity.GatewaySecurityPolicyArgs;
    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 GatewaySecurityPolicy("default", GatewaySecurityPolicyArgs.builder()
                .name("my-gateway-security-policy")
                .location("us-central1")
                .description("my description")
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:networksecurity:GatewaySecurityPolicy
        properties:
          name: my-gateway-security-policy
          location: us-central1
          description: my description
    

    Network Security Gateway Security Policy Tls Inspection Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.certificateauthority.CaPool("default", {
        name: "my-basic-ca-pool",
        location: "us-central1",
        tier: "DEVOPS",
        publishingOptions: {
            publishCaCert: false,
            publishCrl: false,
        },
        issuancePolicy: {
            maximumLifetime: "1209600s",
            baselineValues: {
                caOptions: {
                    isCa: false,
                },
                keyUsage: {
                    baseKeyUsage: {},
                    extendedKeyUsage: {
                        serverAuth: true,
                    },
                },
            },
        },
    });
    const defaultAuthority = new gcp.certificateauthority.Authority("default", {
        pool: _default.name,
        certificateAuthorityId: "my-basic-certificate-authority",
        location: "us-central1",
        lifetime: "86400s",
        type: "SELF_SIGNED",
        deletionProtection: false,
        skipGracePeriod: true,
        ignoreActiveCertificatesOnDeletion: true,
        config: {
            subjectConfig: {
                subject: {
                    organization: "Test LLC",
                    commonName: "my-ca",
                },
            },
            x509Config: {
                caOptions: {
                    isCa: true,
                },
                keyUsage: {
                    baseKeyUsage: {
                        certSign: true,
                        crlSign: true,
                    },
                    extendedKeyUsage: {
                        serverAuth: false,
                    },
                },
            },
        },
        keySpec: {
            algorithm: "RSA_PKCS1_4096_SHA256",
        },
    });
    const project = gcp.organizations.getProject({});
    const tlsInspectionPermission = new gcp.certificateauthority.CaPoolIamMember("tls_inspection_permission", {
        caPool: _default.id,
        role: "roles/privateca.certificateManager",
        member: project.then(project => `serviceAccount:service-${project.number}@gcp-sa-networksecurity.iam.gserviceaccount.com`),
    });
    const defaultTlsInspectionPolicy = new gcp.networksecurity.TlsInspectionPolicy("default", {
        name: "my-tls-inspection-policy",
        location: "us-central1",
        caPool: _default.id,
    }, {
        dependsOn: [
            _default,
            defaultAuthority,
            tlsInspectionPermission,
        ],
    });
    const defaultGatewaySecurityPolicy = new gcp.networksecurity.GatewaySecurityPolicy("default", {
        name: "my-gateway-security-policy",
        location: "us-central1",
        description: "my description",
        tlsInspectionPolicy: defaultTlsInspectionPolicy.id,
    }, {
        dependsOn: [defaultTlsInspectionPolicy],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.certificateauthority.CaPool("default",
        name="my-basic-ca-pool",
        location="us-central1",
        tier="DEVOPS",
        publishing_options=gcp.certificateauthority.CaPoolPublishingOptionsArgs(
            publish_ca_cert=False,
            publish_crl=False,
        ),
        issuance_policy=gcp.certificateauthority.CaPoolIssuancePolicyArgs(
            maximum_lifetime="1209600s",
            baseline_values=gcp.certificateauthority.CaPoolIssuancePolicyBaselineValuesArgs(
                ca_options=gcp.certificateauthority.CaPoolIssuancePolicyBaselineValuesCaOptionsArgs(
                    is_ca=False,
                ),
                key_usage=gcp.certificateauthority.CaPoolIssuancePolicyBaselineValuesKeyUsageArgs(
                    base_key_usage=gcp.certificateauthority.CaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageArgs(),
                    extended_key_usage=gcp.certificateauthority.CaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageArgs(
                        server_auth=True,
                    ),
                ),
            ),
        ))
    default_authority = gcp.certificateauthority.Authority("default",
        pool=default.name,
        certificate_authority_id="my-basic-certificate-authority",
        location="us-central1",
        lifetime="86400s",
        type="SELF_SIGNED",
        deletion_protection=False,
        skip_grace_period=True,
        ignore_active_certificates_on_deletion=True,
        config=gcp.certificateauthority.AuthorityConfigArgs(
            subject_config=gcp.certificateauthority.AuthorityConfigSubjectConfigArgs(
                subject=gcp.certificateauthority.AuthorityConfigSubjectConfigSubjectArgs(
                    organization="Test LLC",
                    common_name="my-ca",
                ),
            ),
            x509_config=gcp.certificateauthority.AuthorityConfigX509ConfigArgs(
                ca_options=gcp.certificateauthority.AuthorityConfigX509ConfigCaOptionsArgs(
                    is_ca=True,
                ),
                key_usage=gcp.certificateauthority.AuthorityConfigX509ConfigKeyUsageArgs(
                    base_key_usage=gcp.certificateauthority.AuthorityConfigX509ConfigKeyUsageBaseKeyUsageArgs(
                        cert_sign=True,
                        crl_sign=True,
                    ),
                    extended_key_usage=gcp.certificateauthority.AuthorityConfigX509ConfigKeyUsageExtendedKeyUsageArgs(
                        server_auth=False,
                    ),
                ),
            ),
        ),
        key_spec=gcp.certificateauthority.AuthorityKeySpecArgs(
            algorithm="RSA_PKCS1_4096_SHA256",
        ))
    project = gcp.organizations.get_project()
    tls_inspection_permission = gcp.certificateauthority.CaPoolIamMember("tls_inspection_permission",
        ca_pool=default.id,
        role="roles/privateca.certificateManager",
        member=f"serviceAccount:service-{project.number}@gcp-sa-networksecurity.iam.gserviceaccount.com")
    default_tls_inspection_policy = gcp.networksecurity.TlsInspectionPolicy("default",
        name="my-tls-inspection-policy",
        location="us-central1",
        ca_pool=default.id,
        opts = pulumi.ResourceOptions(depends_on=[
                default,
                default_authority,
                tls_inspection_permission,
            ]))
    default_gateway_security_policy = gcp.networksecurity.GatewaySecurityPolicy("default",
        name="my-gateway-security-policy",
        location="us-central1",
        description="my description",
        tls_inspection_policy=default_tls_inspection_policy.id,
        opts = pulumi.ResourceOptions(depends_on=[default_tls_inspection_policy]))
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/certificateauthority"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networksecurity"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := certificateauthority.NewCaPool(ctx, "default", &certificateauthority.CaPoolArgs{
    			Name:     pulumi.String("my-basic-ca-pool"),
    			Location: pulumi.String("us-central1"),
    			Tier:     pulumi.String("DEVOPS"),
    			PublishingOptions: &certificateauthority.CaPoolPublishingOptionsArgs{
    				PublishCaCert: pulumi.Bool(false),
    				PublishCrl:    pulumi.Bool(false),
    			},
    			IssuancePolicy: &certificateauthority.CaPoolIssuancePolicyArgs{
    				MaximumLifetime: pulumi.String("1209600s"),
    				BaselineValues: &certificateauthority.CaPoolIssuancePolicyBaselineValuesArgs{
    					CaOptions: &certificateauthority.CaPoolIssuancePolicyBaselineValuesCaOptionsArgs{
    						IsCa: pulumi.Bool(false),
    					},
    					KeyUsage: &certificateauthority.CaPoolIssuancePolicyBaselineValuesKeyUsageArgs{
    						BaseKeyUsage: nil,
    						ExtendedKeyUsage: &certificateauthority.CaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageArgs{
    							ServerAuth: pulumi.Bool(true),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultAuthority, err := certificateauthority.NewAuthority(ctx, "default", &certificateauthority.AuthorityArgs{
    			Pool:                               _default.Name,
    			CertificateAuthorityId:             pulumi.String("my-basic-certificate-authority"),
    			Location:                           pulumi.String("us-central1"),
    			Lifetime:                           pulumi.String("86400s"),
    			Type:                               pulumi.String("SELF_SIGNED"),
    			DeletionProtection:                 pulumi.Bool(false),
    			SkipGracePeriod:                    pulumi.Bool(true),
    			IgnoreActiveCertificatesOnDeletion: pulumi.Bool(true),
    			Config: &certificateauthority.AuthorityConfigArgs{
    				SubjectConfig: &certificateauthority.AuthorityConfigSubjectConfigArgs{
    					Subject: &certificateauthority.AuthorityConfigSubjectConfigSubjectArgs{
    						Organization: pulumi.String("Test LLC"),
    						CommonName:   pulumi.String("my-ca"),
    					},
    				},
    				X509Config: &certificateauthority.AuthorityConfigX509ConfigArgs{
    					CaOptions: &certificateauthority.AuthorityConfigX509ConfigCaOptionsArgs{
    						IsCa: pulumi.Bool(true),
    					},
    					KeyUsage: &certificateauthority.AuthorityConfigX509ConfigKeyUsageArgs{
    						BaseKeyUsage: &certificateauthority.AuthorityConfigX509ConfigKeyUsageBaseKeyUsageArgs{
    							CertSign: pulumi.Bool(true),
    							CrlSign:  pulumi.Bool(true),
    						},
    						ExtendedKeyUsage: &certificateauthority.AuthorityConfigX509ConfigKeyUsageExtendedKeyUsageArgs{
    							ServerAuth: pulumi.Bool(false),
    						},
    					},
    				},
    			},
    			KeySpec: &certificateauthority.AuthorityKeySpecArgs{
    				Algorithm: pulumi.String("RSA_PKCS1_4096_SHA256"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		project, err := organizations.LookupProject(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		tlsInspectionPermission, err := certificateauthority.NewCaPoolIamMember(ctx, "tls_inspection_permission", &certificateauthority.CaPoolIamMemberArgs{
    			CaPool: _default.ID(),
    			Role:   pulumi.String("roles/privateca.certificateManager"),
    			Member: pulumi.String(fmt.Sprintf("serviceAccount:service-%v@gcp-sa-networksecurity.iam.gserviceaccount.com", project.Number)),
    		})
    		if err != nil {
    			return err
    		}
    		defaultTlsInspectionPolicy, err := networksecurity.NewTlsInspectionPolicy(ctx, "default", &networksecurity.TlsInspectionPolicyArgs{
    			Name:     pulumi.String("my-tls-inspection-policy"),
    			Location: pulumi.String("us-central1"),
    			CaPool:   _default.ID(),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			_default,
    			defaultAuthority,
    			tlsInspectionPermission,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = networksecurity.NewGatewaySecurityPolicy(ctx, "default", &networksecurity.GatewaySecurityPolicyArgs{
    			Name:                pulumi.String("my-gateway-security-policy"),
    			Location:            pulumi.String("us-central1"),
    			Description:         pulumi.String("my description"),
    			TlsInspectionPolicy: defaultTlsInspectionPolicy.ID(),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			defaultTlsInspectionPolicy,
    		}))
    		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.CertificateAuthority.CaPool("default", new()
        {
            Name = "my-basic-ca-pool",
            Location = "us-central1",
            Tier = "DEVOPS",
            PublishingOptions = new Gcp.CertificateAuthority.Inputs.CaPoolPublishingOptionsArgs
            {
                PublishCaCert = false,
                PublishCrl = false,
            },
            IssuancePolicy = new Gcp.CertificateAuthority.Inputs.CaPoolIssuancePolicyArgs
            {
                MaximumLifetime = "1209600s",
                BaselineValues = new Gcp.CertificateAuthority.Inputs.CaPoolIssuancePolicyBaselineValuesArgs
                {
                    CaOptions = new Gcp.CertificateAuthority.Inputs.CaPoolIssuancePolicyBaselineValuesCaOptionsArgs
                    {
                        IsCa = false,
                    },
                    KeyUsage = new Gcp.CertificateAuthority.Inputs.CaPoolIssuancePolicyBaselineValuesKeyUsageArgs
                    {
                        BaseKeyUsage = null,
                        ExtendedKeyUsage = new Gcp.CertificateAuthority.Inputs.CaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageArgs
                        {
                            ServerAuth = true,
                        },
                    },
                },
            },
        });
    
        var defaultAuthority = new Gcp.CertificateAuthority.Authority("default", new()
        {
            Pool = @default.Name,
            CertificateAuthorityId = "my-basic-certificate-authority",
            Location = "us-central1",
            Lifetime = "86400s",
            Type = "SELF_SIGNED",
            DeletionProtection = false,
            SkipGracePeriod = true,
            IgnoreActiveCertificatesOnDeletion = true,
            Config = new Gcp.CertificateAuthority.Inputs.AuthorityConfigArgs
            {
                SubjectConfig = new Gcp.CertificateAuthority.Inputs.AuthorityConfigSubjectConfigArgs
                {
                    Subject = new Gcp.CertificateAuthority.Inputs.AuthorityConfigSubjectConfigSubjectArgs
                    {
                        Organization = "Test LLC",
                        CommonName = "my-ca",
                    },
                },
                X509Config = new Gcp.CertificateAuthority.Inputs.AuthorityConfigX509ConfigArgs
                {
                    CaOptions = new Gcp.CertificateAuthority.Inputs.AuthorityConfigX509ConfigCaOptionsArgs
                    {
                        IsCa = true,
                    },
                    KeyUsage = new Gcp.CertificateAuthority.Inputs.AuthorityConfigX509ConfigKeyUsageArgs
                    {
                        BaseKeyUsage = new Gcp.CertificateAuthority.Inputs.AuthorityConfigX509ConfigKeyUsageBaseKeyUsageArgs
                        {
                            CertSign = true,
                            CrlSign = true,
                        },
                        ExtendedKeyUsage = new Gcp.CertificateAuthority.Inputs.AuthorityConfigX509ConfigKeyUsageExtendedKeyUsageArgs
                        {
                            ServerAuth = false,
                        },
                    },
                },
            },
            KeySpec = new Gcp.CertificateAuthority.Inputs.AuthorityKeySpecArgs
            {
                Algorithm = "RSA_PKCS1_4096_SHA256",
            },
        });
    
        var project = Gcp.Organizations.GetProject.Invoke();
    
        var tlsInspectionPermission = new Gcp.CertificateAuthority.CaPoolIamMember("tls_inspection_permission", new()
        {
            CaPool = @default.Id,
            Role = "roles/privateca.certificateManager",
            Member = $"serviceAccount:service-{project.Apply(getProjectResult => getProjectResult.Number)}@gcp-sa-networksecurity.iam.gserviceaccount.com",
        });
    
        var defaultTlsInspectionPolicy = new Gcp.NetworkSecurity.TlsInspectionPolicy("default", new()
        {
            Name = "my-tls-inspection-policy",
            Location = "us-central1",
            CaPool = @default.Id,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                @default,
                defaultAuthority,
                tlsInspectionPermission,
            },
        });
    
        var defaultGatewaySecurityPolicy = new Gcp.NetworkSecurity.GatewaySecurityPolicy("default", new()
        {
            Name = "my-gateway-security-policy",
            Location = "us-central1",
            Description = "my description",
            TlsInspectionPolicy = defaultTlsInspectionPolicy.Id,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                defaultTlsInspectionPolicy,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.certificateauthority.CaPool;
    import com.pulumi.gcp.certificateauthority.CaPoolArgs;
    import com.pulumi.gcp.certificateauthority.inputs.CaPoolPublishingOptionsArgs;
    import com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyArgs;
    import com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesArgs;
    import com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesCaOptionsArgs;
    import com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesKeyUsageArgs;
    import com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageArgs;
    import com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageArgs;
    import com.pulumi.gcp.certificateauthority.Authority;
    import com.pulumi.gcp.certificateauthority.AuthorityArgs;
    import com.pulumi.gcp.certificateauthority.inputs.AuthorityConfigArgs;
    import com.pulumi.gcp.certificateauthority.inputs.AuthorityConfigSubjectConfigArgs;
    import com.pulumi.gcp.certificateauthority.inputs.AuthorityConfigSubjectConfigSubjectArgs;
    import com.pulumi.gcp.certificateauthority.inputs.AuthorityConfigX509ConfigArgs;
    import com.pulumi.gcp.certificateauthority.inputs.AuthorityConfigX509ConfigCaOptionsArgs;
    import com.pulumi.gcp.certificateauthority.inputs.AuthorityConfigX509ConfigKeyUsageArgs;
    import com.pulumi.gcp.certificateauthority.inputs.AuthorityConfigX509ConfigKeyUsageBaseKeyUsageArgs;
    import com.pulumi.gcp.certificateauthority.inputs.AuthorityConfigX509ConfigKeyUsageExtendedKeyUsageArgs;
    import com.pulumi.gcp.certificateauthority.inputs.AuthorityKeySpecArgs;
    import com.pulumi.gcp.organizations.OrganizationsFunctions;
    import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
    import com.pulumi.gcp.certificateauthority.CaPoolIamMember;
    import com.pulumi.gcp.certificateauthority.CaPoolIamMemberArgs;
    import com.pulumi.gcp.networksecurity.TlsInspectionPolicy;
    import com.pulumi.gcp.networksecurity.TlsInspectionPolicyArgs;
    import com.pulumi.gcp.networksecurity.GatewaySecurityPolicy;
    import com.pulumi.gcp.networksecurity.GatewaySecurityPolicyArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 CaPool("default", CaPoolArgs.builder()
                .name("my-basic-ca-pool")
                .location("us-central1")
                .tier("DEVOPS")
                .publishingOptions(CaPoolPublishingOptionsArgs.builder()
                    .publishCaCert(false)
                    .publishCrl(false)
                    .build())
                .issuancePolicy(CaPoolIssuancePolicyArgs.builder()
                    .maximumLifetime("1209600s")
                    .baselineValues(CaPoolIssuancePolicyBaselineValuesArgs.builder()
                        .caOptions(CaPoolIssuancePolicyBaselineValuesCaOptionsArgs.builder()
                            .isCa(false)
                            .build())
                        .keyUsage(CaPoolIssuancePolicyBaselineValuesKeyUsageArgs.builder()
                            .baseKeyUsage()
                            .extendedKeyUsage(CaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageArgs.builder()
                                .serverAuth(true)
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
            var defaultAuthority = new Authority("defaultAuthority", AuthorityArgs.builder()
                .pool(default_.name())
                .certificateAuthorityId("my-basic-certificate-authority")
                .location("us-central1")
                .lifetime("86400s")
                .type("SELF_SIGNED")
                .deletionProtection(false)
                .skipGracePeriod(true)
                .ignoreActiveCertificatesOnDeletion(true)
                .config(AuthorityConfigArgs.builder()
                    .subjectConfig(AuthorityConfigSubjectConfigArgs.builder()
                        .subject(AuthorityConfigSubjectConfigSubjectArgs.builder()
                            .organization("Test LLC")
                            .commonName("my-ca")
                            .build())
                        .build())
                    .x509Config(AuthorityConfigX509ConfigArgs.builder()
                        .caOptions(AuthorityConfigX509ConfigCaOptionsArgs.builder()
                            .isCa(true)
                            .build())
                        .keyUsage(AuthorityConfigX509ConfigKeyUsageArgs.builder()
                            .baseKeyUsage(AuthorityConfigX509ConfigKeyUsageBaseKeyUsageArgs.builder()
                                .certSign(true)
                                .crlSign(true)
                                .build())
                            .extendedKeyUsage(AuthorityConfigX509ConfigKeyUsageExtendedKeyUsageArgs.builder()
                                .serverAuth(false)
                                .build())
                            .build())
                        .build())
                    .build())
                .keySpec(AuthorityKeySpecArgs.builder()
                    .algorithm("RSA_PKCS1_4096_SHA256")
                    .build())
                .build());
    
            final var project = OrganizationsFunctions.getProject();
    
            var tlsInspectionPermission = new CaPoolIamMember("tlsInspectionPermission", CaPoolIamMemberArgs.builder()
                .caPool(default_.id())
                .role("roles/privateca.certificateManager")
                .member(String.format("serviceAccount:service-%s@gcp-sa-networksecurity.iam.gserviceaccount.com", project.applyValue(getProjectResult -> getProjectResult.number())))
                .build());
    
            var defaultTlsInspectionPolicy = new TlsInspectionPolicy("defaultTlsInspectionPolicy", TlsInspectionPolicyArgs.builder()
                .name("my-tls-inspection-policy")
                .location("us-central1")
                .caPool(default_.id())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        default_,
                        defaultAuthority,
                        tlsInspectionPermission)
                    .build());
    
            var defaultGatewaySecurityPolicy = new GatewaySecurityPolicy("defaultGatewaySecurityPolicy", GatewaySecurityPolicyArgs.builder()
                .name("my-gateway-security-policy")
                .location("us-central1")
                .description("my description")
                .tlsInspectionPolicy(defaultTlsInspectionPolicy.id())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(defaultTlsInspectionPolicy)
                    .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:certificateauthority:CaPool
        properties:
          name: my-basic-ca-pool
          location: us-central1
          tier: DEVOPS
          publishingOptions:
            publishCaCert: false
            publishCrl: false
          issuancePolicy:
            maximumLifetime: 1209600s
            baselineValues:
              caOptions:
                isCa: false
              keyUsage:
                baseKeyUsage: {}
                extendedKeyUsage:
                  serverAuth: true
      defaultAuthority:
        type: gcp:certificateauthority:Authority
        name: default
        properties:
          pool: ${default.name}
          certificateAuthorityId: my-basic-certificate-authority
          location: us-central1
          lifetime: 86400s
          type: SELF_SIGNED
          deletionProtection: false
          skipGracePeriod: true
          ignoreActiveCertificatesOnDeletion: true
          config:
            subjectConfig:
              subject:
                organization: Test LLC
                commonName: my-ca
            x509Config:
              caOptions:
                isCa: true
              keyUsage:
                baseKeyUsage:
                  certSign: true
                  crlSign: true
                extendedKeyUsage:
                  serverAuth: false
          keySpec:
            algorithm: RSA_PKCS1_4096_SHA256
      tlsInspectionPermission:
        type: gcp:certificateauthority:CaPoolIamMember
        name: tls_inspection_permission
        properties:
          caPool: ${default.id}
          role: roles/privateca.certificateManager
          member: serviceAccount:service-${project.number}@gcp-sa-networksecurity.iam.gserviceaccount.com
      defaultTlsInspectionPolicy:
        type: gcp:networksecurity:TlsInspectionPolicy
        name: default
        properties:
          name: my-tls-inspection-policy
          location: us-central1
          caPool: ${default.id}
        options:
          dependson:
            - ${default}
            - ${defaultAuthority}
            - ${tlsInspectionPermission}
      defaultGatewaySecurityPolicy:
        type: gcp:networksecurity:GatewaySecurityPolicy
        name: default
        properties:
          name: my-gateway-security-policy
          location: us-central1
          description: my description
          tlsInspectionPolicy: ${defaultTlsInspectionPolicy.id}
        options:
          dependson:
            - ${defaultTlsInspectionPolicy}
    variables:
      project:
        fn::invoke:
          Function: gcp:organizations:getProject
          Arguments: {}
    

    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: Optional[GatewaySecurityPolicyArgs] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def GatewaySecurityPolicy(resource_name: str,
                              opts: Optional[ResourceOptions] = 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 = null, CustomResourceOptions? opts = null)
    public GatewaySecurityPolicy(String name, GatewaySecurityPolicyArgs args)
    public GatewaySecurityPolicy(String name, GatewaySecurityPolicyArgs args, CustomResourceOptions options)
    
    type: gcp:networksecurity: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 Gcp.NetworkSecurity.GatewaySecurityPolicy("gatewaySecurityPolicyResource", new()
    {
        Description = "string",
        Location = "string",
        Name = "string",
        Project = "string",
        TlsInspectionPolicy = "string",
    });
    
    example, err := networksecurity.NewGatewaySecurityPolicy(ctx, "gatewaySecurityPolicyResource", &networksecurity.GatewaySecurityPolicyArgs{
    	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()
        .description("string")
        .location("string")
        .name("string")
        .project("string")
        .tlsInspectionPolicy("string")
        .build());
    
    gateway_security_policy_resource = gcp.networksecurity.GatewaySecurityPolicy("gatewaySecurityPolicyResource",
        description="string",
        location="string",
        name="string",
        project="string",
        tls_inspection_policy="string")
    
    const gatewaySecurityPolicyResource = new gcp.networksecurity.GatewaySecurityPolicy("gatewaySecurityPolicyResource", {
        description: "string",
        location: "string",
        name: "string",
        project: "string",
        tlsInspectionPolicy: "string",
    });
    
    type: gcp:networksecurity:GatewaySecurityPolicy
    properties:
        description: 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:

    Description string
    A free-text description of the resource. Max length 1024 characters.
    Location string
    The location of the gateway security policy. The default value is global.
    Name string
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TlsInspectionPolicy string
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    Description string
    A free-text description of the resource. Max length 1024 characters.
    Location string
    The location of the gateway security policy. The default value is global.
    Name string
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TlsInspectionPolicy string
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    description String
    A free-text description of the resource. Max length 1024 characters.
    location String
    The location of the gateway security policy. The default value is global.
    name String
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tlsInspectionPolicy String
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    description string
    A free-text description of the resource. Max length 1024 characters.
    location string
    The location of the gateway security policy. The default value is global.
    name string
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tlsInspectionPolicy string
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    description str
    A free-text description of the resource. Max length 1024 characters.
    location str
    The location of the gateway security policy. The default value is global.
    name str
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tls_inspection_policy str
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    description String
    A free-text description of the resource. Max length 1024 characters.
    location String
    The location of the gateway security policy. The default value is global.
    name String
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tlsInspectionPolicy String
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.

    Outputs

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

    CreateTime string
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    Server-defined URL of this resource.
    UpdateTime string
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    CreateTime string
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    Server-defined URL of this resource.
    UpdateTime string
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime String
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    Server-defined URL of this resource.
    updateTime String
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime string
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    id string
    The provider-assigned unique ID for this managed resource.
    selfLink string
    Server-defined URL of this resource.
    updateTime string
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    create_time str
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    id str
    The provider-assigned unique ID for this managed resource.
    self_link str
    Server-defined URL of this resource.
    update_time str
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime String
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    Server-defined URL of this resource.
    updateTime String
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

    Look up Existing GatewaySecurityPolicy Resource

    Get an existing GatewaySecurityPolicy 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?: GatewaySecurityPolicyState, opts?: CustomResourceOptions): GatewaySecurityPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            self_link: Optional[str] = None,
            tls_inspection_policy: Optional[str] = None,
            update_time: Optional[str] = None) -> GatewaySecurityPolicy
    func GetGatewaySecurityPolicy(ctx *Context, name string, id IDInput, state *GatewaySecurityPolicyState, opts ...ResourceOption) (*GatewaySecurityPolicy, error)
    public static GatewaySecurityPolicy Get(string name, Input<string> id, GatewaySecurityPolicyState? state, CustomResourceOptions? opts = null)
    public static GatewaySecurityPolicy get(String name, Output<String> id, GatewaySecurityPolicyState 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.
    The following state arguments are supported:
    CreateTime string
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    Description string
    A free-text description of the resource. Max length 1024 characters.
    Location string
    The location of the gateway security policy. The default value is global.
    Name string
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    SelfLink string
    Server-defined URL of this resource.
    TlsInspectionPolicy string
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    UpdateTime string
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    CreateTime string
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    Description string
    A free-text description of the resource. Max length 1024 characters.
    Location string
    The location of the gateway security policy. The default value is global.
    Name string
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    SelfLink string
    Server-defined URL of this resource.
    TlsInspectionPolicy string
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    UpdateTime string
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime String
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    description String
    A free-text description of the resource. Max length 1024 characters.
    location String
    The location of the gateway security policy. The default value is global.
    name String
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    selfLink String
    Server-defined URL of this resource.
    tlsInspectionPolicy String
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    updateTime String
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime string
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    description string
    A free-text description of the resource. Max length 1024 characters.
    location string
    The location of the gateway security policy. The default value is global.
    name string
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    selfLink string
    Server-defined URL of this resource.
    tlsInspectionPolicy string
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    updateTime string
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    create_time str
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    description str
    A free-text description of the resource. Max length 1024 characters.
    location str
    The location of the gateway security policy. The default value is global.
    name str
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    self_link str
    Server-defined URL of this resource.
    tls_inspection_policy str
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    update_time str
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime String
    The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"
    description String
    A free-text description of the resource. Max length 1024 characters.
    location String
    The location of the gateway security policy. The default value is global.
    name String
    Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(^a-z?$).


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    selfLink String
    Server-defined URL of this resource.
    tlsInspectionPolicy String
    Name of a TlsInspectionPolicy resource that defines how TLS inspection is performed for any rule that enables it.
    updateTime String
    The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

    Import

    GatewaySecurityPolicy can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/gatewaySecurityPolicies/{{name}}

    • {{project}}/{{location}}/{{name}}

    • {{location}}/{{name}}

    When using the pulumi import command, GatewaySecurityPolicy can be imported using one of the formats above. For example:

    $ pulumi import gcp:networksecurity/gatewaySecurityPolicy:GatewaySecurityPolicy default projects/{{project}}/locations/{{location}}/gatewaySecurityPolicies/{{name}}
    
    $ pulumi import gcp:networksecurity/gatewaySecurityPolicy:GatewaySecurityPolicy default {{project}}/{{location}}/{{name}}
    
    $ pulumi import gcp:networksecurity/gatewaySecurityPolicy:GatewaySecurityPolicy default {{location}}/{{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.
    gcp logo
    Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi