1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. gemini
  5. CodeRepositoryIndex
Google Cloud v8.15.0 published on Wednesday, Jan 22, 2025 by Pulumi

gcp.gemini.CodeRepositoryIndex

Explore with Pulumi AI

gcp logo
Google Cloud v8.15.0 published on Wednesday, Jan 22, 2025 by Pulumi

    Example Usage

    Gemini Code Repository Index Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const example = new gcp.gemini.CodeRepositoryIndex("example", {
        location: "us-central1",
        codeRepositoryIndexId: "",
        kmsKey: "projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    example = gcp.gemini.CodeRepositoryIndex("example",
        location="us-central1",
        code_repository_index_id="",
        kms_key="projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/gemini"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gemini.NewCodeRepositoryIndex(ctx, "example", &gemini.CodeRepositoryIndexArgs{
    			Location:              pulumi.String("us-central1"),
    			CodeRepositoryIndexId: pulumi.String(""),
    			KmsKey:                pulumi.String("projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample"),
    		})
    		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 example = new Gcp.Gemini.CodeRepositoryIndex("example", new()
        {
            Location = "us-central1",
            CodeRepositoryIndexId = "",
            KmsKey = "projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.gemini.CodeRepositoryIndex;
    import com.pulumi.gcp.gemini.CodeRepositoryIndexArgs;
    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 example = new CodeRepositoryIndex("example", CodeRepositoryIndexArgs.builder()
                .location("us-central1")
                .codeRepositoryIndexId("")
                .kmsKey("projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample")
                .build());
    
        }
    }
    
    resources:
      example:
        type: gcp:gemini:CodeRepositoryIndex
        properties:
          location: us-central1
          codeRepositoryIndexId: ""
          kmsKey: projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample
    

    Create CodeRepositoryIndex Resource

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

    Constructor syntax

    new CodeRepositoryIndex(name: string, args: CodeRepositoryIndexArgs, opts?: CustomResourceOptions);
    @overload
    def CodeRepositoryIndex(resource_name: str,
                            args: CodeRepositoryIndexArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def CodeRepositoryIndex(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            code_repository_index_id: Optional[str] = None,
                            location: Optional[str] = None,
                            force_destroy: Optional[bool] = None,
                            kms_key: Optional[str] = None,
                            labels: Optional[Mapping[str, str]] = None,
                            project: Optional[str] = None)
    func NewCodeRepositoryIndex(ctx *Context, name string, args CodeRepositoryIndexArgs, opts ...ResourceOption) (*CodeRepositoryIndex, error)
    public CodeRepositoryIndex(string name, CodeRepositoryIndexArgs args, CustomResourceOptions? opts = null)
    public CodeRepositoryIndex(String name, CodeRepositoryIndexArgs args)
    public CodeRepositoryIndex(String name, CodeRepositoryIndexArgs args, CustomResourceOptions options)
    
    type: gcp:gemini:CodeRepositoryIndex
    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 CodeRepositoryIndexArgs
    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 CodeRepositoryIndexArgs
    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 CodeRepositoryIndexArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CodeRepositoryIndexArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CodeRepositoryIndexArgs
    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 codeRepositoryIndexResource = new Gcp.Gemini.CodeRepositoryIndex("codeRepositoryIndexResource", new()
    {
        CodeRepositoryIndexId = "string",
        Location = "string",
        ForceDestroy = false,
        KmsKey = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Project = "string",
    });
    
    example, err := gemini.NewCodeRepositoryIndex(ctx, "codeRepositoryIndexResource", &gemini.CodeRepositoryIndexArgs{
    	CodeRepositoryIndexId: pulumi.String("string"),
    	Location:              pulumi.String("string"),
    	ForceDestroy:          pulumi.Bool(false),
    	KmsKey:                pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    })
    
    var codeRepositoryIndexResource = new CodeRepositoryIndex("codeRepositoryIndexResource", CodeRepositoryIndexArgs.builder()
        .codeRepositoryIndexId("string")
        .location("string")
        .forceDestroy(false)
        .kmsKey("string")
        .labels(Map.of("string", "string"))
        .project("string")
        .build());
    
    code_repository_index_resource = gcp.gemini.CodeRepositoryIndex("codeRepositoryIndexResource",
        code_repository_index_id="string",
        location="string",
        force_destroy=False,
        kms_key="string",
        labels={
            "string": "string",
        },
        project="string")
    
    const codeRepositoryIndexResource = new gcp.gemini.CodeRepositoryIndex("codeRepositoryIndexResource", {
        codeRepositoryIndexId: "string",
        location: "string",
        forceDestroy: false,
        kmsKey: "string",
        labels: {
            string: "string",
        },
        project: "string",
    });
    
    type: gcp:gemini:CodeRepositoryIndex
    properties:
        codeRepositoryIndexId: string
        forceDestroy: false
        kmsKey: string
        labels:
            string: string
        location: string
        project: string
    

    CodeRepositoryIndex 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 CodeRepositoryIndex resource accepts the following input properties:

    CodeRepositoryIndexId string
    Required. Id of the Code Repository Index.


    Location string
    The location of the Code Repository Index, for example us-central1.
    ForceDestroy bool
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    KmsKey string
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    Labels Dictionary<string, string>
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    CodeRepositoryIndexId string
    Required. Id of the Code Repository Index.


    Location string
    The location of the Code Repository Index, for example us-central1.
    ForceDestroy bool
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    KmsKey string
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    Labels map[string]string
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    codeRepositoryIndexId String
    Required. Id of the Code Repository Index.


    location String
    The location of the Code Repository Index, for example us-central1.
    forceDestroy Boolean
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    kmsKey String
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    labels Map<String,String>
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    codeRepositoryIndexId string
    Required. Id of the Code Repository Index.


    location string
    The location of the Code Repository Index, for example us-central1.
    forceDestroy boolean
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    kmsKey string
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    labels {[key: string]: string}
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    code_repository_index_id str
    Required. Id of the Code Repository Index.


    location str
    The location of the Code Repository Index, for example us-central1.
    force_destroy bool
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    kms_key str
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    labels Mapping[str, str]
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    codeRepositoryIndexId String
    Required. Id of the Code Repository Index.


    location String
    The location of the Code Repository Index, for example us-central1.
    forceDestroy Boolean
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    kmsKey String
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    labels Map<String>
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

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

    CreateTime string
    Output only. Create time stamp.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Immutable. Identifier. Name of Code Repository Index.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    UpdateTime string
    Output only. Update time stamp.
    CreateTime string
    Output only. Create time stamp.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Immutable. Identifier. Name of Code Repository Index.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    UpdateTime string
    Output only. Update time stamp.
    createTime String
    Output only. Create time stamp.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Immutable. Identifier. Name of Code Repository Index.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    updateTime String
    Output only. Update time stamp.
    createTime string
    Output only. Create time stamp.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Immutable. Identifier. Name of Code Repository Index.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state string
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    updateTime string
    Output only. Update time stamp.
    create_time str
    Output only. Create time stamp.
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Immutable. Identifier. Name of Code Repository Index.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state str
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    update_time str
    Output only. Update time stamp.
    createTime String
    Output only. Create time stamp.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Immutable. Identifier. Name of Code Repository Index.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    updateTime String
    Output only. Update time stamp.

    Look up Existing CodeRepositoryIndex Resource

    Get an existing CodeRepositoryIndex 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?: CodeRepositoryIndexState, opts?: CustomResourceOptions): CodeRepositoryIndex
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            code_repository_index_id: Optional[str] = None,
            create_time: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            force_destroy: Optional[bool] = None,
            kms_key: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            state: Optional[str] = None,
            update_time: Optional[str] = None) -> CodeRepositoryIndex
    func GetCodeRepositoryIndex(ctx *Context, name string, id IDInput, state *CodeRepositoryIndexState, opts ...ResourceOption) (*CodeRepositoryIndex, error)
    public static CodeRepositoryIndex Get(string name, Input<string> id, CodeRepositoryIndexState? state, CustomResourceOptions? opts = null)
    public static CodeRepositoryIndex get(String name, Output<String> id, CodeRepositoryIndexState state, CustomResourceOptions options)
    resources:  _:    type: gcp:gemini:CodeRepositoryIndex    get:      id: ${id}
    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:
    CodeRepositoryIndexId string
    Required. Id of the Code Repository Index.


    CreateTime string
    Output only. Create time stamp.
    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.
    ForceDestroy bool
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    KmsKey string
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    Labels Dictionary<string, string>
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    The location of the Code Repository Index, for example us-central1.
    Name string
    Immutable. Identifier. Name of Code Repository Index.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    UpdateTime string
    Output only. Update time stamp.
    CodeRepositoryIndexId string
    Required. Id of the Code Repository Index.


    CreateTime string
    Output only. Create time stamp.
    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.
    ForceDestroy bool
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    KmsKey string
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    Labels map[string]string
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    The location of the Code Repository Index, for example us-central1.
    Name string
    Immutable. Identifier. Name of Code Repository Index.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    UpdateTime string
    Output only. Update time stamp.
    codeRepositoryIndexId String
    Required. Id of the Code Repository Index.


    createTime String
    Output only. Create time stamp.
    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.
    forceDestroy Boolean
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    kmsKey String
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    labels Map<String,String>
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    The location of the Code Repository Index, for example us-central1.
    name String
    Immutable. Identifier. Name of Code Repository Index.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    updateTime String
    Output only. Update time stamp.
    codeRepositoryIndexId string
    Required. Id of the Code Repository Index.


    createTime string
    Output only. Create time stamp.
    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.
    forceDestroy boolean
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    kmsKey string
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    labels {[key: string]: string}
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location string
    The location of the Code Repository Index, for example us-central1.
    name string
    Immutable. Identifier. Name of Code Repository Index.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state string
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    updateTime string
    Output only. Update time stamp.
    code_repository_index_id str
    Required. Id of the Code Repository Index.


    create_time str
    Output only. Create time stamp.
    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.
    force_destroy bool
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    kms_key str
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    labels Mapping[str, str]
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location str
    The location of the Code Repository Index, for example us-central1.
    name str
    Immutable. Identifier. Name of Code Repository Index.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state str
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    update_time str
    Output only. Update time stamp.
    codeRepositoryIndexId String
    Required. Id of the Code Repository Index.


    createTime String
    Output only. Create time stamp.
    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.
    forceDestroy Boolean
    If set to true, will allow deletion of the CodeRepositoryIndex even if there are existing RepositoryGroups for the resource. These RepositoryGroups will also be deleted.
    kmsKey String
    Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
    labels Map<String>
    Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    The location of the Code Repository Index, for example us-central1.
    name String
    Immutable. Identifier. Name of Code Repository Index.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
    updateTime String
    Output only. Update time stamp.

    Import

    CodeRepositoryIndex can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{code_repository_index_id}}

    • {{project}}/{{location}}/{{code_repository_index_id}}

    • {{location}}/{{code_repository_index_id}}

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

    $ pulumi import gcp:gemini/codeRepositoryIndex:CodeRepositoryIndex default projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{code_repository_index_id}}
    
    $ pulumi import gcp:gemini/codeRepositoryIndex:CodeRepositoryIndex default {{project}}/{{location}}/{{code_repository_index_id}}
    
    $ pulumi import gcp:gemini/codeRepositoryIndex:CodeRepositoryIndex default {{location}}/{{code_repository_index_id}}
    

    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 v8.15.0 published on Wednesday, Jan 22, 2025 by Pulumi