1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. artifactregistry
  5. VpcscConfig
Google Cloud v8.25.1 published on Wednesday, Apr 9, 2025 by Pulumi

gcp.artifactregistry.VpcscConfig

Explore with Pulumi AI

Example Usage

Artifact Registry Vpcsc Config

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const my_config = new gcp.artifactregistry.VpcscConfig("my-config", {
    location: "us-central1",
    vpcscPolicy: "ALLOW",
});
Copy
import pulumi
import pulumi_gcp as gcp

my_config = gcp.artifactregistry.VpcscConfig("my-config",
    location="us-central1",
    vpcsc_policy="ALLOW")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/artifactregistry"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := artifactregistry.NewVpcscConfig(ctx, "my-config", &artifactregistry.VpcscConfigArgs{
			Location:    pulumi.String("us-central1"),
			VpcscPolicy: pulumi.String("ALLOW"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var my_config = new Gcp.ArtifactRegistry.VpcscConfig("my-config", new()
    {
        Location = "us-central1",
        VpcscPolicy = "ALLOW",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.artifactregistry.VpcscConfig;
import com.pulumi.gcp.artifactregistry.VpcscConfigArgs;
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 my_config = new VpcscConfig("my-config", VpcscConfigArgs.builder()
            .location("us-central1")
            .vpcscPolicy("ALLOW")
            .build());

    }
}
Copy
resources:
  my-config:
    type: gcp:artifactregistry:VpcscConfig
    properties:
      location: us-central1
      vpcscPolicy: ALLOW
Copy

Create VpcscConfig Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new VpcscConfig(name: string, args?: VpcscConfigArgs, opts?: CustomResourceOptions);
@overload
def VpcscConfig(resource_name: str,
                args: Optional[VpcscConfigArgs] = None,
                opts: Optional[ResourceOptions] = None)

@overload
def VpcscConfig(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                location: Optional[str] = None,
                project: Optional[str] = None,
                vpcsc_policy: Optional[str] = None)
func NewVpcscConfig(ctx *Context, name string, args *VpcscConfigArgs, opts ...ResourceOption) (*VpcscConfig, error)
public VpcscConfig(string name, VpcscConfigArgs? args = null, CustomResourceOptions? opts = null)
public VpcscConfig(String name, VpcscConfigArgs args)
public VpcscConfig(String name, VpcscConfigArgs args, CustomResourceOptions options)
type: gcp:artifactregistry:VpcscConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args VpcscConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args VpcscConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args VpcscConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args VpcscConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VpcscConfigArgs
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 vpcscConfigResource = new Gcp.ArtifactRegistry.VpcscConfig("vpcscConfigResource", new()
{
    Location = "string",
    Project = "string",
    VpcscPolicy = "string",
});
Copy
example, err := artifactregistry.NewVpcscConfig(ctx, "vpcscConfigResource", &artifactregistry.VpcscConfigArgs{
	Location:    pulumi.String("string"),
	Project:     pulumi.String("string"),
	VpcscPolicy: pulumi.String("string"),
})
Copy
var vpcscConfigResource = new VpcscConfig("vpcscConfigResource", VpcscConfigArgs.builder()
    .location("string")
    .project("string")
    .vpcscPolicy("string")
    .build());
Copy
vpcsc_config_resource = gcp.artifactregistry.VpcscConfig("vpcscConfigResource",
    location="string",
    project="string",
    vpcsc_policy="string")
Copy
const vpcscConfigResource = new gcp.artifactregistry.VpcscConfig("vpcscConfigResource", {
    location: "string",
    project: "string",
    vpcscPolicy: "string",
});
Copy
type: gcp:artifactregistry:VpcscConfig
properties:
    location: string
    project: string
    vpcscPolicy: string
Copy

VpcscConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The VpcscConfig resource accepts the following input properties:

Location Changes to this property will trigger replacement. string
The name of the location this config is located in.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
VpcscPolicy string
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
Location Changes to this property will trigger replacement. string
The name of the location this config is located in.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
VpcscPolicy string
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
location Changes to this property will trigger replacement. String
The name of the location this config is located in.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
vpcscPolicy String
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
location Changes to this property will trigger replacement. string
The name of the location this config is located in.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
vpcscPolicy string
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
location Changes to this property will trigger replacement. str
The name of the location this config is located in.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
vpcsc_policy str
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
location Changes to this property will trigger replacement. String
The name of the location this config is located in.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
vpcscPolicy String
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig

Look up Existing VpcscConfig Resource

Get an existing VpcscConfig 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?: VpcscConfigState, opts?: CustomResourceOptions): VpcscConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        vpcsc_policy: Optional[str] = None) -> VpcscConfig
func GetVpcscConfig(ctx *Context, name string, id IDInput, state *VpcscConfigState, opts ...ResourceOption) (*VpcscConfig, error)
public static VpcscConfig Get(string name, Input<string> id, VpcscConfigState? state, CustomResourceOptions? opts = null)
public static VpcscConfig get(String name, Output<String> id, VpcscConfigState state, CustomResourceOptions options)
resources:  _:    type: gcp:artifactregistry:VpcscConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Location Changes to this property will trigger replacement. string
The name of the location this config is located in.
Name string
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
VpcscPolicy string
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
Location Changes to this property will trigger replacement. string
The name of the location this config is located in.
Name string
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
VpcscPolicy string
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
location Changes to this property will trigger replacement. String
The name of the location this config is located in.
name String
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
vpcscPolicy String
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
location Changes to this property will trigger replacement. string
The name of the location this config is located in.
name string
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
vpcscPolicy string
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
location Changes to this property will trigger replacement. str
The name of the location this config is located in.
name str
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
vpcsc_policy str
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.
location Changes to this property will trigger replacement. String
The name of the location this config is located in.
name String
The name of the project's VPC SC Config. Always of the form: projects/{project}/location/{location}/vpcscConfig
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
vpcscPolicy String
The VPC SC policy for project and location. Possible values are: DENY, ALLOW.

Import

VPCSCConfig can be imported using any of these accepted formats:

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

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

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

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

$ pulumi import gcp:artifactregistry/vpcscConfig:VpcscConfig default projects/{{project}}/locations/{{location}}/vpcscConfig/{{name}}
Copy
$ pulumi import gcp:artifactregistry/vpcscConfig:VpcscConfig default {{project}}/{{location}}/{{name}}
Copy
$ pulumi import gcp:artifactregistry/vpcscConfig:VpcscConfig default {{location}}/{{name}}
Copy

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.