1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. artifactregistry
  5. VpcscConfig
Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi

gcp.artifactregistry.VpcscConfig

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi

    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",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    my_config = gcp.artifactregistry.VpcscConfig("my-config",
        location="us-central1",
        vpcsc_policy="ALLOW")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      my-config:
        type: gcp:artifactregistry:VpcscConfig
        properties:
          location: us-central1
          vpcscPolicy: ALLOW
    

    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 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 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 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 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 String
    The unique name of the resource.
    args 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",
    });
    
    example, err := artifactregistry.NewVpcscConfig(ctx, "vpcscConfigResource", &artifactregistry.VpcscConfigArgs{
    	Location:    pulumi.String("string"),
    	Project:     pulumi.String("string"),
    	VpcscPolicy: pulumi.String("string"),
    })
    
    var vpcscConfigResource = new VpcscConfig("vpcscConfigResource", VpcscConfigArgs.builder()
        .location("string")
        .project("string")
        .vpcscPolicy("string")
        .build());
    
    vpcsc_config_resource = gcp.artifactregistry.VpcscConfig("vpcscConfigResource",
        location="string",
        project="string",
        vpcsc_policy="string")
    
    const vpcscConfigResource = new gcp.artifactregistry.VpcscConfig("vpcscConfigResource", {
        location: "string",
        project: "string",
        vpcscPolicy: "string",
    });
    
    type: gcp:artifactregistry:VpcscConfig
    properties:
        location: string
        project: string
        vpcscPolicy: string
    

    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

    The VpcscConfig resource accepts the following input properties:

    Location string
    The name of the location this config is located in.
    Project 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 string
    The name of the location this config is located in.
    Project 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 String
    The name of the location this config is located in.
    project 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 string
    The name of the location this config is located in.
    project 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 str
    The name of the location this config is located in.
    project 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 String
    The name of the location this config is located in.
    project 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)
    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:
    Location 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 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 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 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 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 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 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 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 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 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 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 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}}
    
    $ pulumi import gcp:artifactregistry/vpcscConfig:VpcscConfig default {{project}}/{{location}}/{{name}}
    
    $ pulumi import gcp:artifactregistry/vpcscConfig:VpcscConfig 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 v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi