1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. developerconnect
  5. InsightsConfig
Google Cloud v9.5.0 published on Monday, Nov 17, 2025 by Pulumi
gcp logo
Google Cloud v9.5.0 published on Monday, Nov 17, 2025 by Pulumi

    Description

    Example Usage

    Developer Connect Insights Config Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    import * as std from "@pulumi/std";
    import * as time from "@pulumiverse/time";
    
    const project = new gcp.organizations.Project("project", {
        projectId: "dci-tf-_60646",
        name: "Service Project",
        orgId: "123456789",
        billingAccount: "000000-0000000-0000000-000000",
        deletionPolicy: "DELETE",
    });
    // Grant Permissions
    const apphubPermissions = new gcp.projects.IAMMember("apphub_permissions", {
        project: project.projectId,
        role: "roles/apphub.admin",
        member: "serviceAccount:hashicorp-test-runner@ci-test-project-188019.iam.gserviceaccount.com",
    });
    const insightsAgent = new gcp.projects.IAMMember("insights_agent", {
        project: project.projectId,
        role: "roles/developerconnect.insightsAgent",
        member: "serviceAccount:66214305248-compute@developer.gserviceaccount.com",
    });
    // Enable APIs
    const apphubApiService = new gcp.projects.Service("apphub_api_service", {
        project: project.projectId,
        service: "apphub.googleapis.com",
        disableDependentServices: true,
    }, {
        dependsOn: [project],
    });
    const containeranalysisApi = new gcp.projects.Service("containeranalysis_api", {
        project: project.projectId,
        service: "containeranalysis.googleapis.com",
        disableDependentServices: true,
    }, {
        dependsOn: [project],
    });
    const containerscanningApi = new gcp.projects.Service("containerscanning_api", {
        project: project.projectId,
        service: "containerscanning.googleapis.com",
        disableDependentServices: true,
    }, {
        dependsOn: [project],
    });
    const containerApi = new gcp.projects.Service("container_api", {
        project: project.projectId,
        service: "container.googleapis.com",
        disableDependentServices: true,
    }, {
        dependsOn: [project],
    });
    const artifactregistryApi = new gcp.projects.Service("artifactregistry_api", {
        project: project.projectId,
        service: "artifactregistry.googleapis.com",
        disableDependentServices: true,
    }, {
        dependsOn: [project],
    });
    const cloudbuildApi = new gcp.projects.Service("cloudbuild_api", {
        project: project.projectId,
        service: "cloudbuild.googleapis.com",
        disableDependentServices: true,
    }, {
        dependsOn: [project],
    });
    const cloudassetApi = new gcp.projects.Service("cloudasset_api", {
        project: project.projectId,
        service: "cloudasset.googleapis.com",
        disableDependentServices: true,
    }, {
        dependsOn: [project],
    });
    const computeApi = new gcp.projects.Service("compute_api", {
        project: project.projectId,
        service: "compute.googleapis.com",
        disableDependentServices: true,
    }, {
        dependsOn: [project],
    });
    const devconnectApi = new gcp.projects.Service("devconnect_api", {
        project: project.projectId,
        service: "developerconnect.googleapis.com",
    }, {
        dependsOn: [project],
    });
    // Wait delay after enabling APIs and granting permissions
    const waitForPropagation = new time.Sleep("wait_for_propagation", {createDuration: "120s"}, {
        dependsOn: [
            apphubPermissions,
            insightsAgent,
            apphubApiService,
            containeranalysisApi,
            containerscanningApi,
            containerApi,
            artifactregistryApi,
            artifactregistryApi,
            cloudbuildApi,
            cloudassetApi,
            computeApi,
            devconnectApi,
        ],
    });
    const myApphubApplication = new gcp.apphub.Application("my_apphub_application", {
        location: "us-central1",
        applicationId: "tf-test-example-application_9394",
        scope: {
            type: "REGIONAL",
        },
        project: project.projectId,
    }, {
        dependsOn: [waitForPropagation],
    });
    const insightsConfig = new gcp.developerconnect.InsightsConfig("insights_config", {
        location: "us-central1",
        insightsConfigId: "tf-test-ic_11380",
        project: project.projectId,
        annotations: {},
        labels: {},
        appHubApplication: std.format({
            input: "//apphub.googleapis.com/projects/%s/locations/%s/applications/%s",
            args: [
                project.number,
                myApphubApplication.location,
                myApphubApplication.applicationId,
            ],
        }).then(invoke => invoke.result),
        artifactConfigs: [{
            googleArtifactAnalysis: {
                projectId: project.projectId,
            },
            googleArtifactRegistry: {
                artifactRegistryPackage: "my-package",
                projectId: project.projectId,
            },
            uri: "us-docker.pkg.dev/my-project/my-repo/my-image",
        }],
    }, {
        dependsOn: [waitForPropagation],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    import pulumi_std as std
    import pulumiverse_time as time
    
    project = gcp.organizations.Project("project",
        project_id="dci-tf-_60646",
        name="Service Project",
        org_id="123456789",
        billing_account="000000-0000000-0000000-000000",
        deletion_policy="DELETE")
    # Grant Permissions
    apphub_permissions = gcp.projects.IAMMember("apphub_permissions",
        project=project.project_id,
        role="roles/apphub.admin",
        member="serviceAccount:hashicorp-test-runner@ci-test-project-188019.iam.gserviceaccount.com")
    insights_agent = gcp.projects.IAMMember("insights_agent",
        project=project.project_id,
        role="roles/developerconnect.insightsAgent",
        member="serviceAccount:66214305248-compute@developer.gserviceaccount.com")
    # Enable APIs
    apphub_api_service = gcp.projects.Service("apphub_api_service",
        project=project.project_id,
        service="apphub.googleapis.com",
        disable_dependent_services=True,
        opts = pulumi.ResourceOptions(depends_on=[project]))
    containeranalysis_api = gcp.projects.Service("containeranalysis_api",
        project=project.project_id,
        service="containeranalysis.googleapis.com",
        disable_dependent_services=True,
        opts = pulumi.ResourceOptions(depends_on=[project]))
    containerscanning_api = gcp.projects.Service("containerscanning_api",
        project=project.project_id,
        service="containerscanning.googleapis.com",
        disable_dependent_services=True,
        opts = pulumi.ResourceOptions(depends_on=[project]))
    container_api = gcp.projects.Service("container_api",
        project=project.project_id,
        service="container.googleapis.com",
        disable_dependent_services=True,
        opts = pulumi.ResourceOptions(depends_on=[project]))
    artifactregistry_api = gcp.projects.Service("artifactregistry_api",
        project=project.project_id,
        service="artifactregistry.googleapis.com",
        disable_dependent_services=True,
        opts = pulumi.ResourceOptions(depends_on=[project]))
    cloudbuild_api = gcp.projects.Service("cloudbuild_api",
        project=project.project_id,
        service="cloudbuild.googleapis.com",
        disable_dependent_services=True,
        opts = pulumi.ResourceOptions(depends_on=[project]))
    cloudasset_api = gcp.projects.Service("cloudasset_api",
        project=project.project_id,
        service="cloudasset.googleapis.com",
        disable_dependent_services=True,
        opts = pulumi.ResourceOptions(depends_on=[project]))
    compute_api = gcp.projects.Service("compute_api",
        project=project.project_id,
        service="compute.googleapis.com",
        disable_dependent_services=True,
        opts = pulumi.ResourceOptions(depends_on=[project]))
    devconnect_api = gcp.projects.Service("devconnect_api",
        project=project.project_id,
        service="developerconnect.googleapis.com",
        opts = pulumi.ResourceOptions(depends_on=[project]))
    # Wait delay after enabling APIs and granting permissions
    wait_for_propagation = time.Sleep("wait_for_propagation", create_duration="120s",
    opts = pulumi.ResourceOptions(depends_on=[
            apphub_permissions,
            insights_agent,
            apphub_api_service,
            containeranalysis_api,
            containerscanning_api,
            container_api,
            artifactregistry_api,
            artifactregistry_api,
            cloudbuild_api,
            cloudasset_api,
            compute_api,
            devconnect_api,
        ]))
    my_apphub_application = gcp.apphub.Application("my_apphub_application",
        location="us-central1",
        application_id="tf-test-example-application_9394",
        scope={
            "type": "REGIONAL",
        },
        project=project.project_id,
        opts = pulumi.ResourceOptions(depends_on=[wait_for_propagation]))
    insights_config = gcp.developerconnect.InsightsConfig("insights_config",
        location="us-central1",
        insights_config_id="tf-test-ic_11380",
        project=project.project_id,
        annotations={},
        labels={},
        app_hub_application=std.format(input="//apphub.googleapis.com/projects/%s/locations/%s/applications/%s",
            args=[
                project.number,
                my_apphub_application.location,
                my_apphub_application.application_id,
            ]).result,
        artifact_configs=[{
            "google_artifact_analysis": {
                "project_id": project.project_id,
            },
            "google_artifact_registry": {
                "artifact_registry_package": "my-package",
                "project_id": project.project_id,
            },
            "uri": "us-docker.pkg.dev/my-project/my-repo/my-image",
        }],
        opts = pulumi.ResourceOptions(depends_on=[wait_for_propagation]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/apphub"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/developerconnect"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/projects"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-time/sdk/go/time"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		project, err := organizations.NewProject(ctx, "project", &organizations.ProjectArgs{
    			ProjectId:      pulumi.String("dci-tf-_60646"),
    			Name:           pulumi.String("Service Project"),
    			OrgId:          pulumi.String("123456789"),
    			BillingAccount: pulumi.String("000000-0000000-0000000-000000"),
    			DeletionPolicy: pulumi.String("DELETE"),
    		})
    		if err != nil {
    			return err
    		}
    		// Grant Permissions
    		apphubPermissions, err := projects.NewIAMMember(ctx, "apphub_permissions", &projects.IAMMemberArgs{
    			Project: project.ProjectId,
    			Role:    pulumi.String("roles/apphub.admin"),
    			Member:  pulumi.String("serviceAccount:hashicorp-test-runner@ci-test-project-188019.iam.gserviceaccount.com"),
    		})
    		if err != nil {
    			return err
    		}
    		insightsAgent, err := projects.NewIAMMember(ctx, "insights_agent", &projects.IAMMemberArgs{
    			Project: project.ProjectId,
    			Role:    pulumi.String("roles/developerconnect.insightsAgent"),
    			Member:  pulumi.String("serviceAccount:66214305248-compute@developer.gserviceaccount.com"),
    		})
    		if err != nil {
    			return err
    		}
    		// Enable APIs
    		apphubApiService, err := projects.NewService(ctx, "apphub_api_service", &projects.ServiceArgs{
    			Project:                  project.ProjectId,
    			Service:                  pulumi.String("apphub.googleapis.com"),
    			DisableDependentServices: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			project,
    		}))
    		if err != nil {
    			return err
    		}
    		containeranalysisApi, err := projects.NewService(ctx, "containeranalysis_api", &projects.ServiceArgs{
    			Project:                  project.ProjectId,
    			Service:                  pulumi.String("containeranalysis.googleapis.com"),
    			DisableDependentServices: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			project,
    		}))
    		if err != nil {
    			return err
    		}
    		containerscanningApi, err := projects.NewService(ctx, "containerscanning_api", &projects.ServiceArgs{
    			Project:                  project.ProjectId,
    			Service:                  pulumi.String("containerscanning.googleapis.com"),
    			DisableDependentServices: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			project,
    		}))
    		if err != nil {
    			return err
    		}
    		containerApi, err := projects.NewService(ctx, "container_api", &projects.ServiceArgs{
    			Project:                  project.ProjectId,
    			Service:                  pulumi.String("container.googleapis.com"),
    			DisableDependentServices: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			project,
    		}))
    		if err != nil {
    			return err
    		}
    		artifactregistryApi, err := projects.NewService(ctx, "artifactregistry_api", &projects.ServiceArgs{
    			Project:                  project.ProjectId,
    			Service:                  pulumi.String("artifactregistry.googleapis.com"),
    			DisableDependentServices: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			project,
    		}))
    		if err != nil {
    			return err
    		}
    		cloudbuildApi, err := projects.NewService(ctx, "cloudbuild_api", &projects.ServiceArgs{
    			Project:                  project.ProjectId,
    			Service:                  pulumi.String("cloudbuild.googleapis.com"),
    			DisableDependentServices: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			project,
    		}))
    		if err != nil {
    			return err
    		}
    		cloudassetApi, err := projects.NewService(ctx, "cloudasset_api", &projects.ServiceArgs{
    			Project:                  project.ProjectId,
    			Service:                  pulumi.String("cloudasset.googleapis.com"),
    			DisableDependentServices: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			project,
    		}))
    		if err != nil {
    			return err
    		}
    		computeApi, err := projects.NewService(ctx, "compute_api", &projects.ServiceArgs{
    			Project:                  project.ProjectId,
    			Service:                  pulumi.String("compute.googleapis.com"),
    			DisableDependentServices: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			project,
    		}))
    		if err != nil {
    			return err
    		}
    		devconnectApi, err := projects.NewService(ctx, "devconnect_api", &projects.ServiceArgs{
    			Project: project.ProjectId,
    			Service: pulumi.String("developerconnect.googleapis.com"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			project,
    		}))
    		if err != nil {
    			return err
    		}
    		// Wait delay after enabling APIs and granting permissions
    		waitForPropagation, err := time.NewSleep(ctx, "wait_for_propagation", &time.SleepArgs{
    			CreateDuration: pulumi.String("120s"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			apphubPermissions,
    			insightsAgent,
    			apphubApiService,
    			containeranalysisApi,
    			containerscanningApi,
    			containerApi,
    			artifactregistryApi,
    			artifactregistryApi,
    			cloudbuildApi,
    			cloudassetApi,
    			computeApi,
    			devconnectApi,
    		}))
    		if err != nil {
    			return err
    		}
    		myApphubApplication, err := apphub.NewApplication(ctx, "my_apphub_application", &apphub.ApplicationArgs{
    			Location:      pulumi.String("us-central1"),
    			ApplicationId: pulumi.String("tf-test-example-application_9394"),
    			Scope: &apphub.ApplicationScopeArgs{
    				Type: pulumi.String("REGIONAL"),
    			},
    			Project: project.ProjectId,
    		}, pulumi.DependsOn([]pulumi.Resource{
    			waitForPropagation,
    		}))
    		if err != nil {
    			return err
    		}
    		invokeFormat, err := std.Format(ctx, &std.FormatArgs{
    			Input: "//apphub.googleapis.com/projects/%s/locations/%s/applications/%s",
    			Args: pulumi.StringArray{
    				project.Number,
    				myApphubApplication.Location,
    				myApphubApplication.ApplicationId,
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = developerconnect.NewInsightsConfig(ctx, "insights_config", &developerconnect.InsightsConfigArgs{
    			Location:          pulumi.String("us-central1"),
    			InsightsConfigId:  pulumi.String("tf-test-ic_11380"),
    			Project:           project.ProjectId,
    			Annotations:       pulumi.StringMap{},
    			Labels:            pulumi.StringMap{},
    			AppHubApplication: pulumi.String(invokeFormat.Result),
    			ArtifactConfigs: developerconnect.InsightsConfigArtifactConfigArray{
    				&developerconnect.InsightsConfigArtifactConfigArgs{
    					GoogleArtifactAnalysis: &developerconnect.InsightsConfigArtifactConfigGoogleArtifactAnalysisArgs{
    						ProjectId: project.ProjectId,
    					},
    					GoogleArtifactRegistry: &developerconnect.InsightsConfigArtifactConfigGoogleArtifactRegistryArgs{
    						ArtifactRegistryPackage: pulumi.String("my-package"),
    						ProjectId:               project.ProjectId,
    					},
    					Uri: pulumi.String("us-docker.pkg.dev/my-project/my-repo/my-image"),
    				},
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			waitForPropagation,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    using Std = Pulumi.Std;
    using Time = Pulumiverse.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var project = new Gcp.Organizations.Project("project", new()
        {
            ProjectId = "dci-tf-_60646",
            Name = "Service Project",
            OrgId = "123456789",
            BillingAccount = "000000-0000000-0000000-000000",
            DeletionPolicy = "DELETE",
        });
    
        // Grant Permissions
        var apphubPermissions = new Gcp.Projects.IAMMember("apphub_permissions", new()
        {
            Project = project.ProjectId,
            Role = "roles/apphub.admin",
            Member = "serviceAccount:hashicorp-test-runner@ci-test-project-188019.iam.gserviceaccount.com",
        });
    
        var insightsAgent = new Gcp.Projects.IAMMember("insights_agent", new()
        {
            Project = project.ProjectId,
            Role = "roles/developerconnect.insightsAgent",
            Member = "serviceAccount:66214305248-compute@developer.gserviceaccount.com",
        });
    
        // Enable APIs
        var apphubApiService = new Gcp.Projects.Service("apphub_api_service", new()
        {
            Project = project.ProjectId,
            ServiceName = "apphub.googleapis.com",
            DisableDependentServices = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                project,
            },
        });
    
        var containeranalysisApi = new Gcp.Projects.Service("containeranalysis_api", new()
        {
            Project = project.ProjectId,
            ServiceName = "containeranalysis.googleapis.com",
            DisableDependentServices = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                project,
            },
        });
    
        var containerscanningApi = new Gcp.Projects.Service("containerscanning_api", new()
        {
            Project = project.ProjectId,
            ServiceName = "containerscanning.googleapis.com",
            DisableDependentServices = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                project,
            },
        });
    
        var containerApi = new Gcp.Projects.Service("container_api", new()
        {
            Project = project.ProjectId,
            ServiceName = "container.googleapis.com",
            DisableDependentServices = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                project,
            },
        });
    
        var artifactregistryApi = new Gcp.Projects.Service("artifactregistry_api", new()
        {
            Project = project.ProjectId,
            ServiceName = "artifactregistry.googleapis.com",
            DisableDependentServices = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                project,
            },
        });
    
        var cloudbuildApi = new Gcp.Projects.Service("cloudbuild_api", new()
        {
            Project = project.ProjectId,
            ServiceName = "cloudbuild.googleapis.com",
            DisableDependentServices = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                project,
            },
        });
    
        var cloudassetApi = new Gcp.Projects.Service("cloudasset_api", new()
        {
            Project = project.ProjectId,
            ServiceName = "cloudasset.googleapis.com",
            DisableDependentServices = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                project,
            },
        });
    
        var computeApi = new Gcp.Projects.Service("compute_api", new()
        {
            Project = project.ProjectId,
            ServiceName = "compute.googleapis.com",
            DisableDependentServices = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                project,
            },
        });
    
        var devconnectApi = new Gcp.Projects.Service("devconnect_api", new()
        {
            Project = project.ProjectId,
            ServiceName = "developerconnect.googleapis.com",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                project,
            },
        });
    
        // Wait delay after enabling APIs and granting permissions
        var waitForPropagation = new Time.Sleep("wait_for_propagation", new()
        {
            CreateDuration = "120s",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                apphubPermissions,
                insightsAgent,
                apphubApiService,
                containeranalysisApi,
                containerscanningApi,
                containerApi,
                artifactregistryApi,
                artifactregistryApi,
                cloudbuildApi,
                cloudassetApi,
                computeApi,
                devconnectApi,
            },
        });
    
        var myApphubApplication = new Gcp.Apphub.Application("my_apphub_application", new()
        {
            Location = "us-central1",
            ApplicationId = "tf-test-example-application_9394",
            Scope = new Gcp.Apphub.Inputs.ApplicationScopeArgs
            {
                Type = "REGIONAL",
            },
            Project = project.ProjectId,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                waitForPropagation,
            },
        });
    
        var insightsConfig = new Gcp.DeveloperConnect.InsightsConfig("insights_config", new()
        {
            Location = "us-central1",
            InsightsConfigId = "tf-test-ic_11380",
            Project = project.ProjectId,
            Annotations = null,
            Labels = null,
            AppHubApplication = Std.Format.Invoke(new()
            {
                Input = "//apphub.googleapis.com/projects/%s/locations/%s/applications/%s",
                Args = new[]
                {
                    project.Number,
                    myApphubApplication.Location,
                    myApphubApplication.ApplicationId,
                },
            }).Apply(invoke => invoke.Result),
            ArtifactConfigs = new[]
            {
                new Gcp.DeveloperConnect.Inputs.InsightsConfigArtifactConfigArgs
                {
                    GoogleArtifactAnalysis = new Gcp.DeveloperConnect.Inputs.InsightsConfigArtifactConfigGoogleArtifactAnalysisArgs
                    {
                        ProjectId = project.ProjectId,
                    },
                    GoogleArtifactRegistry = new Gcp.DeveloperConnect.Inputs.InsightsConfigArtifactConfigGoogleArtifactRegistryArgs
                    {
                        ArtifactRegistryPackage = "my-package",
                        ProjectId = project.ProjectId,
                    },
                    Uri = "us-docker.pkg.dev/my-project/my-repo/my-image",
                },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                waitForPropagation,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.organizations.Project;
    import com.pulumi.gcp.organizations.ProjectArgs;
    import com.pulumi.gcp.projects.IAMMember;
    import com.pulumi.gcp.projects.IAMMemberArgs;
    import com.pulumi.gcp.projects.Service;
    import com.pulumi.gcp.projects.ServiceArgs;
    import com.pulumiverse.time.Sleep;
    import com.pulumiverse.time.SleepArgs;
    import com.pulumi.gcp.apphub.Application;
    import com.pulumi.gcp.apphub.ApplicationArgs;
    import com.pulumi.gcp.apphub.inputs.ApplicationScopeArgs;
    import com.pulumi.gcp.developerconnect.InsightsConfig;
    import com.pulumi.gcp.developerconnect.InsightsConfigArgs;
    import com.pulumi.gcp.developerconnect.inputs.InsightsConfigArtifactConfigArgs;
    import com.pulumi.gcp.developerconnect.inputs.InsightsConfigArtifactConfigGoogleArtifactAnalysisArgs;
    import com.pulumi.gcp.developerconnect.inputs.InsightsConfigArtifactConfigGoogleArtifactRegistryArgs;
    import com.pulumi.std.StdFunctions;
    import com.pulumi.std.inputs.FormatArgs;
    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 project = new Project("project", ProjectArgs.builder()
                .projectId("dci-tf-_60646")
                .name("Service Project")
                .orgId("123456789")
                .billingAccount("000000-0000000-0000000-000000")
                .deletionPolicy("DELETE")
                .build());
    
            // Grant Permissions
            var apphubPermissions = new IAMMember("apphubPermissions", IAMMemberArgs.builder()
                .project(project.projectId())
                .role("roles/apphub.admin")
                .member("serviceAccount:hashicorp-test-runner@ci-test-project-188019.iam.gserviceaccount.com")
                .build());
    
            var insightsAgent = new IAMMember("insightsAgent", IAMMemberArgs.builder()
                .project(project.projectId())
                .role("roles/developerconnect.insightsAgent")
                .member("serviceAccount:66214305248-compute@developer.gserviceaccount.com")
                .build());
    
            // Enable APIs
            var apphubApiService = new Service("apphubApiService", ServiceArgs.builder()
                .project(project.projectId())
                .service("apphub.googleapis.com")
                .disableDependentServices(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(project)
                    .build());
    
            var containeranalysisApi = new Service("containeranalysisApi", ServiceArgs.builder()
                .project(project.projectId())
                .service("containeranalysis.googleapis.com")
                .disableDependentServices(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(project)
                    .build());
    
            var containerscanningApi = new Service("containerscanningApi", ServiceArgs.builder()
                .project(project.projectId())
                .service("containerscanning.googleapis.com")
                .disableDependentServices(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(project)
                    .build());
    
            var containerApi = new Service("containerApi", ServiceArgs.builder()
                .project(project.projectId())
                .service("container.googleapis.com")
                .disableDependentServices(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(project)
                    .build());
    
            var artifactregistryApi = new Service("artifactregistryApi", ServiceArgs.builder()
                .project(project.projectId())
                .service("artifactregistry.googleapis.com")
                .disableDependentServices(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(project)
                    .build());
    
            var cloudbuildApi = new Service("cloudbuildApi", ServiceArgs.builder()
                .project(project.projectId())
                .service("cloudbuild.googleapis.com")
                .disableDependentServices(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(project)
                    .build());
    
            var cloudassetApi = new Service("cloudassetApi", ServiceArgs.builder()
                .project(project.projectId())
                .service("cloudasset.googleapis.com")
                .disableDependentServices(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(project)
                    .build());
    
            var computeApi = new Service("computeApi", ServiceArgs.builder()
                .project(project.projectId())
                .service("compute.googleapis.com")
                .disableDependentServices(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(project)
                    .build());
    
            var devconnectApi = new Service("devconnectApi", ServiceArgs.builder()
                .project(project.projectId())
                .service("developerconnect.googleapis.com")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(project)
                    .build());
    
            // Wait delay after enabling APIs and granting permissions
            var waitForPropagation = new Sleep("waitForPropagation", SleepArgs.builder()
                .createDuration("120s")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        apphubPermissions,
                        insightsAgent,
                        apphubApiService,
                        containeranalysisApi,
                        containerscanningApi,
                        containerApi,
                        artifactregistryApi,
                        artifactregistryApi,
                        cloudbuildApi,
                        cloudassetApi,
                        computeApi,
                        devconnectApi)
                    .build());
    
            var myApphubApplication = new Application("myApphubApplication", ApplicationArgs.builder()
                .location("us-central1")
                .applicationId("tf-test-example-application_9394")
                .scope(ApplicationScopeArgs.builder()
                    .type("REGIONAL")
                    .build())
                .project(project.projectId())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(waitForPropagation)
                    .build());
    
            var insightsConfig = new InsightsConfig("insightsConfig", InsightsConfigArgs.builder()
                .location("us-central1")
                .insightsConfigId("tf-test-ic_11380")
                .project(project.projectId())
                .annotations(Map.ofEntries(
                ))
                .labels(Map.ofEntries(
                ))
                .appHubApplication(StdFunctions.format(FormatArgs.builder()
                    .input("//apphub.googleapis.com/projects/%s/locations/%s/applications/%s")
                    .args(                
                        project.number(),
                        myApphubApplication.location(),
                        myApphubApplication.applicationId())
                    .build()).result())
                .artifactConfigs(InsightsConfigArtifactConfigArgs.builder()
                    .googleArtifactAnalysis(InsightsConfigArtifactConfigGoogleArtifactAnalysisArgs.builder()
                        .projectId(project.projectId())
                        .build())
                    .googleArtifactRegistry(InsightsConfigArtifactConfigGoogleArtifactRegistryArgs.builder()
                        .artifactRegistryPackage("my-package")
                        .projectId(project.projectId())
                        .build())
                    .uri("us-docker.pkg.dev/my-project/my-repo/my-image")
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(waitForPropagation)
                    .build());
    
        }
    }
    
    resources:
      project:
        type: gcp:organizations:Project
        properties:
          projectId: dci-tf-_60646
          name: Service Project
          orgId: '123456789'
          billingAccount: 000000-0000000-0000000-000000
          deletionPolicy: DELETE
      # Grant Permissions
      apphubPermissions:
        type: gcp:projects:IAMMember
        name: apphub_permissions
        properties:
          project: ${project.projectId}
          role: roles/apphub.admin
          member: serviceAccount:hashicorp-test-runner@ci-test-project-188019.iam.gserviceaccount.com
      insightsAgent:
        type: gcp:projects:IAMMember
        name: insights_agent
        properties:
          project: ${project.projectId}
          role: roles/developerconnect.insightsAgent
          member: serviceAccount:66214305248-compute@developer.gserviceaccount.com
      # Enable APIs
      apphubApiService:
        type: gcp:projects:Service
        name: apphub_api_service
        properties:
          project: ${project.projectId}
          service: apphub.googleapis.com
          disableDependentServices: true
        options:
          dependsOn:
            - ${project}
      containeranalysisApi:
        type: gcp:projects:Service
        name: containeranalysis_api
        properties:
          project: ${project.projectId}
          service: containeranalysis.googleapis.com
          disableDependentServices: true
        options:
          dependsOn:
            - ${project}
      containerscanningApi:
        type: gcp:projects:Service
        name: containerscanning_api
        properties:
          project: ${project.projectId}
          service: containerscanning.googleapis.com
          disableDependentServices: true
        options:
          dependsOn:
            - ${project}
      containerApi:
        type: gcp:projects:Service
        name: container_api
        properties:
          project: ${project.projectId}
          service: container.googleapis.com
          disableDependentServices: true
        options:
          dependsOn:
            - ${project}
      artifactregistryApi:
        type: gcp:projects:Service
        name: artifactregistry_api
        properties:
          project: ${project.projectId}
          service: artifactregistry.googleapis.com
          disableDependentServices: true
        options:
          dependsOn:
            - ${project}
      cloudbuildApi:
        type: gcp:projects:Service
        name: cloudbuild_api
        properties:
          project: ${project.projectId}
          service: cloudbuild.googleapis.com
          disableDependentServices: true
        options:
          dependsOn:
            - ${project}
      cloudassetApi:
        type: gcp:projects:Service
        name: cloudasset_api
        properties:
          project: ${project.projectId}
          service: cloudasset.googleapis.com
          disableDependentServices: true
        options:
          dependsOn:
            - ${project}
      computeApi:
        type: gcp:projects:Service
        name: compute_api
        properties:
          project: ${project.projectId}
          service: compute.googleapis.com
          disableDependentServices: true
        options:
          dependsOn:
            - ${project}
      devconnectApi:
        type: gcp:projects:Service
        name: devconnect_api
        properties:
          project: ${project.projectId}
          service: developerconnect.googleapis.com
        options:
          dependsOn:
            - ${project}
      # Wait delay after enabling APIs and granting permissions
      waitForPropagation:
        type: time:Sleep
        name: wait_for_propagation
        properties:
          createDuration: 120s
        options:
          dependsOn:
            - ${apphubPermissions}
            - ${insightsAgent}
            - ${apphubApiService}
            - ${containeranalysisApi}
            - ${containerscanningApi}
            - ${containerApi}
            - ${artifactregistryApi}
            - ${artifactregistryApi}
            - ${cloudbuildApi}
            - ${cloudassetApi}
            - ${computeApi}
            - ${devconnectApi}
      myApphubApplication:
        type: gcp:apphub:Application
        name: my_apphub_application
        properties:
          location: us-central1
          applicationId: tf-test-example-application_9394
          scope:
            type: REGIONAL
          project: ${project.projectId}
        options:
          dependsOn:
            - ${waitForPropagation}
      insightsConfig:
        type: gcp:developerconnect:InsightsConfig
        name: insights_config
        properties:
          location: us-central1
          insightsConfigId: tf-test-ic_11380
          project: ${project.projectId}
          annotations: {}
          labels: {}
          appHubApplication:
            fn::invoke:
              function: std:format
              arguments:
                input: //apphub.googleapis.com/projects/%s/locations/%s/applications/%s
                args:
                  - ${project.number}
                  - ${myApphubApplication.location}
                  - ${myApphubApplication.applicationId}
              return: result
          artifactConfigs:
            - googleArtifactAnalysis:
                projectId: ${project.projectId}
              googleArtifactRegistry:
                artifactRegistryPackage: my-package
                projectId: ${project.projectId}
              uri: us-docker.pkg.dev/my-project/my-repo/my-image
        options:
          dependsOn:
            - ${waitForPropagation}
    

    Create InsightsConfig Resource

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

    Constructor syntax

    new InsightsConfig(name: string, args: InsightsConfigArgs, opts?: CustomResourceOptions);
    @overload
    def InsightsConfig(resource_name: str,
                       args: InsightsConfigArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def InsightsConfig(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       app_hub_application: Optional[str] = None,
                       insights_config_id: Optional[str] = None,
                       location: Optional[str] = None,
                       annotations: Optional[Mapping[str, str]] = None,
                       artifact_configs: Optional[Sequence[InsightsConfigArtifactConfigArgs]] = None,
                       labels: Optional[Mapping[str, str]] = None,
                       project: Optional[str] = None)
    func NewInsightsConfig(ctx *Context, name string, args InsightsConfigArgs, opts ...ResourceOption) (*InsightsConfig, error)
    public InsightsConfig(string name, InsightsConfigArgs args, CustomResourceOptions? opts = null)
    public InsightsConfig(String name, InsightsConfigArgs args)
    public InsightsConfig(String name, InsightsConfigArgs args, CustomResourceOptions options)
    
    type: gcp:developerconnect:InsightsConfig
    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 InsightsConfigArgs
    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 InsightsConfigArgs
    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 InsightsConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InsightsConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InsightsConfigArgs
    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 insightsConfigResource = new Gcp.DeveloperConnect.InsightsConfig("insightsConfigResource", new()
    {
        AppHubApplication = "string",
        InsightsConfigId = "string",
        Location = "string",
        Annotations = 
        {
            { "string", "string" },
        },
        ArtifactConfigs = new[]
        {
            new Gcp.DeveloperConnect.Inputs.InsightsConfigArtifactConfigArgs
            {
                GoogleArtifactAnalysis = new Gcp.DeveloperConnect.Inputs.InsightsConfigArtifactConfigGoogleArtifactAnalysisArgs
                {
                    ProjectId = "string",
                },
                GoogleArtifactRegistry = new Gcp.DeveloperConnect.Inputs.InsightsConfigArtifactConfigGoogleArtifactRegistryArgs
                {
                    ArtifactRegistryPackage = "string",
                    ProjectId = "string",
                },
                Uri = "string",
            },
        },
        Labels = 
        {
            { "string", "string" },
        },
        Project = "string",
    });
    
    example, err := developerconnect.NewInsightsConfig(ctx, "insightsConfigResource", &developerconnect.InsightsConfigArgs{
    	AppHubApplication: pulumi.String("string"),
    	InsightsConfigId:  pulumi.String("string"),
    	Location:          pulumi.String("string"),
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ArtifactConfigs: developerconnect.InsightsConfigArtifactConfigArray{
    		&developerconnect.InsightsConfigArtifactConfigArgs{
    			GoogleArtifactAnalysis: &developerconnect.InsightsConfigArtifactConfigGoogleArtifactAnalysisArgs{
    				ProjectId: pulumi.String("string"),
    			},
    			GoogleArtifactRegistry: &developerconnect.InsightsConfigArtifactConfigGoogleArtifactRegistryArgs{
    				ArtifactRegistryPackage: pulumi.String("string"),
    				ProjectId:               pulumi.String("string"),
    			},
    			Uri: pulumi.String("string"),
    		},
    	},
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    })
    
    var insightsConfigResource = new InsightsConfig("insightsConfigResource", InsightsConfigArgs.builder()
        .appHubApplication("string")
        .insightsConfigId("string")
        .location("string")
        .annotations(Map.of("string", "string"))
        .artifactConfigs(InsightsConfigArtifactConfigArgs.builder()
            .googleArtifactAnalysis(InsightsConfigArtifactConfigGoogleArtifactAnalysisArgs.builder()
                .projectId("string")
                .build())
            .googleArtifactRegistry(InsightsConfigArtifactConfigGoogleArtifactRegistryArgs.builder()
                .artifactRegistryPackage("string")
                .projectId("string")
                .build())
            .uri("string")
            .build())
        .labels(Map.of("string", "string"))
        .project("string")
        .build());
    
    insights_config_resource = gcp.developerconnect.InsightsConfig("insightsConfigResource",
        app_hub_application="string",
        insights_config_id="string",
        location="string",
        annotations={
            "string": "string",
        },
        artifact_configs=[{
            "google_artifact_analysis": {
                "project_id": "string",
            },
            "google_artifact_registry": {
                "artifact_registry_package": "string",
                "project_id": "string",
            },
            "uri": "string",
        }],
        labels={
            "string": "string",
        },
        project="string")
    
    const insightsConfigResource = new gcp.developerconnect.InsightsConfig("insightsConfigResource", {
        appHubApplication: "string",
        insightsConfigId: "string",
        location: "string",
        annotations: {
            string: "string",
        },
        artifactConfigs: [{
            googleArtifactAnalysis: {
                projectId: "string",
            },
            googleArtifactRegistry: {
                artifactRegistryPackage: "string",
                projectId: "string",
            },
            uri: "string",
        }],
        labels: {
            string: "string",
        },
        project: "string",
    });
    
    type: gcp:developerconnect:InsightsConfig
    properties:
        annotations:
            string: string
        appHubApplication: string
        artifactConfigs:
            - googleArtifactAnalysis:
                projectId: string
              googleArtifactRegistry:
                artifactRegistryPackage: string
                projectId: string
              uri: string
        insightsConfigId: string
        labels:
            string: string
        location: string
        project: string
    

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

    AppHubApplication string
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    InsightsConfigId string
    ID of the requesting InsightsConfig.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Annotations Dictionary<string, string>
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    ArtifactConfigs List<InsightsConfigArtifactConfig>
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    Labels Dictionary<string, string>
    Set of labels associated with an InsightsConfig. 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.
    AppHubApplication string
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    InsightsConfigId string
    ID of the requesting InsightsConfig.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Annotations map[string]string
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    ArtifactConfigs []InsightsConfigArtifactConfigArgs
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    Labels map[string]string
    Set of labels associated with an InsightsConfig. 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.
    appHubApplication String
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    insightsConfigId String
    ID of the requesting InsightsConfig.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    annotations Map<String,String>
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    artifactConfigs List<InsightsConfigArtifactConfig>
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    labels Map<String,String>
    Set of labels associated with an InsightsConfig. 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.
    appHubApplication string
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    insightsConfigId string
    ID of the requesting InsightsConfig.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    annotations {[key: string]: string}
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    artifactConfigs InsightsConfigArtifactConfig[]
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    labels {[key: string]: string}
    Set of labels associated with an InsightsConfig. 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.
    app_hub_application str
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    insights_config_id str
    ID of the requesting InsightsConfig.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    annotations Mapping[str, str]
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    artifact_configs Sequence[InsightsConfigArtifactConfigArgs]
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    labels Mapping[str, str]
    Set of labels associated with an InsightsConfig. 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.
    appHubApplication String
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    insightsConfigId String
    ID of the requesting InsightsConfig.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    annotations Map<String>
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    artifactConfigs List<Property Map>
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    labels Map<String>
    Set of labels associated with an InsightsConfig. 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 InsightsConfig resource produces the following output properties:

    CreateTime string
    [Output only] Create timestamp
    EffectiveAnnotations Dictionary<string, string>
    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.
    Errors List<InsightsConfigError>
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Reconciling bool
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    RuntimeConfigs List<InsightsConfigRuntimeConfig>
    The runtime configurations where the application is deployed. Structure is documented below.
    State string
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    UpdateTime string
    [Output only] Update timestamp
    CreateTime string
    [Output only] Create timestamp
    EffectiveAnnotations map[string]string
    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.
    Errors []InsightsConfigError
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Reconciling bool
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    RuntimeConfigs []InsightsConfigRuntimeConfig
    The runtime configurations where the application is deployed. Structure is documented below.
    State string
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    UpdateTime string
    [Output only] Update timestamp
    createTime String
    [Output only] Create timestamp
    effectiveAnnotations Map<String,String>
    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.
    errors List<InsightsConfigError>
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling Boolean
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    runtimeConfigs List<InsightsConfigRuntimeConfig>
    The runtime configurations where the application is deployed. Structure is documented below.
    state String
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    updateTime String
    [Output only] Update timestamp
    createTime string
    [Output only] Create timestamp
    effectiveAnnotations {[key: string]: string}
    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.
    errors InsightsConfigError[]
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling boolean
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    runtimeConfigs InsightsConfigRuntimeConfig[]
    The runtime configurations where the application is deployed. Structure is documented below.
    state string
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    updateTime string
    [Output only] Update timestamp
    create_time str
    [Output only] Create timestamp
    effective_annotations Mapping[str, str]
    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.
    errors Sequence[InsightsConfigError]
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling bool
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    runtime_configs Sequence[InsightsConfigRuntimeConfig]
    The runtime configurations where the application is deployed. Structure is documented below.
    state str
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    update_time str
    [Output only] Update timestamp
    createTime String
    [Output only] Create timestamp
    effectiveAnnotations Map<String>
    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.
    errors List<Property Map>
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling Boolean
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    runtimeConfigs List<Property Map>
    The runtime configurations where the application is deployed. Structure is documented below.
    state String
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    updateTime String
    [Output only] Update timestamp

    Look up Existing InsightsConfig Resource

    Get an existing InsightsConfig 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?: InsightsConfigState, opts?: CustomResourceOptions): InsightsConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            annotations: Optional[Mapping[str, str]] = None,
            app_hub_application: Optional[str] = None,
            artifact_configs: Optional[Sequence[InsightsConfigArtifactConfigArgs]] = None,
            create_time: Optional[str] = None,
            effective_annotations: Optional[Mapping[str, str]] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            errors: Optional[Sequence[InsightsConfigErrorArgs]] = None,
            insights_config_id: 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,
            reconciling: Optional[bool] = None,
            runtime_configs: Optional[Sequence[InsightsConfigRuntimeConfigArgs]] = None,
            state: Optional[str] = None,
            update_time: Optional[str] = None) -> InsightsConfig
    func GetInsightsConfig(ctx *Context, name string, id IDInput, state *InsightsConfigState, opts ...ResourceOption) (*InsightsConfig, error)
    public static InsightsConfig Get(string name, Input<string> id, InsightsConfigState? state, CustomResourceOptions? opts = null)
    public static InsightsConfig get(String name, Output<String> id, InsightsConfigState state, CustomResourceOptions options)
    resources:  _:    type: gcp:developerconnect:InsightsConfig    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:
    Annotations Dictionary<string, string>
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    AppHubApplication string
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    ArtifactConfigs List<InsightsConfigArtifactConfig>
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    CreateTime string
    [Output only] Create timestamp
    EffectiveAnnotations Dictionary<string, string>
    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.
    Errors List<InsightsConfigError>
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    InsightsConfigId string
    ID of the requesting InsightsConfig.
    Labels Dictionary<string, string>
    Set of labels associated with an InsightsConfig. 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
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    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.
    Reconciling bool
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    RuntimeConfigs List<InsightsConfigRuntimeConfig>
    The runtime configurations where the application is deployed. Structure is documented below.
    State string
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    UpdateTime string
    [Output only] Update timestamp
    Annotations map[string]string
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    AppHubApplication string
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    ArtifactConfigs []InsightsConfigArtifactConfigArgs
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    CreateTime string
    [Output only] Create timestamp
    EffectiveAnnotations map[string]string
    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.
    Errors []InsightsConfigErrorArgs
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    InsightsConfigId string
    ID of the requesting InsightsConfig.
    Labels map[string]string
    Set of labels associated with an InsightsConfig. 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
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    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.
    Reconciling bool
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    RuntimeConfigs []InsightsConfigRuntimeConfigArgs
    The runtime configurations where the application is deployed. Structure is documented below.
    State string
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    UpdateTime string
    [Output only] Update timestamp
    annotations Map<String,String>
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    appHubApplication String
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    artifactConfigs List<InsightsConfigArtifactConfig>
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    createTime String
    [Output only] Create timestamp
    effectiveAnnotations Map<String,String>
    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.
    errors List<InsightsConfigError>
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    insightsConfigId String
    ID of the requesting InsightsConfig.
    labels Map<String,String>
    Set of labels associated with an InsightsConfig. 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
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    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.
    reconciling Boolean
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    runtimeConfigs List<InsightsConfigRuntimeConfig>
    The runtime configurations where the application is deployed. Structure is documented below.
    state String
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    updateTime String
    [Output only] Update timestamp
    annotations {[key: string]: string}
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    appHubApplication string
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    artifactConfigs InsightsConfigArtifactConfig[]
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    createTime string
    [Output only] Create timestamp
    effectiveAnnotations {[key: string]: string}
    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.
    errors InsightsConfigError[]
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    insightsConfigId string
    ID of the requesting InsightsConfig.
    labels {[key: string]: string}
    Set of labels associated with an InsightsConfig. 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
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name string
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    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.
    reconciling boolean
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    runtimeConfigs InsightsConfigRuntimeConfig[]
    The runtime configurations where the application is deployed. Structure is documented below.
    state string
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    updateTime string
    [Output only] Update timestamp
    annotations Mapping[str, str]
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    app_hub_application str
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    artifact_configs Sequence[InsightsConfigArtifactConfigArgs]
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    create_time str
    [Output only] Create timestamp
    effective_annotations Mapping[str, str]
    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.
    errors Sequence[InsightsConfigErrorArgs]
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    insights_config_id str
    ID of the requesting InsightsConfig.
    labels Mapping[str, str]
    Set of labels associated with an InsightsConfig. 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
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name str
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    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.
    reconciling bool
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    runtime_configs Sequence[InsightsConfigRuntimeConfigArgs]
    The runtime configurations where the application is deployed. Structure is documented below.
    state str
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    update_time str
    [Output only] Update timestamp
    annotations Map<String>
    User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    appHubApplication String
    The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
    artifactConfigs List<Property Map>
    The artifact configurations of the artifacts that are deployed. Structure is documented below.
    createTime String
    [Output only] Create timestamp
    effectiveAnnotations Map<String>
    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.
    errors List<Property Map>
    Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: field_name:<span pulumi-lang-nodejs=" errorMessage" pulumi-lang-dotnet=" ErrorMessage" pulumi-lang-go=" errorMessage" pulumi-lang-python=" error_message" pulumi-lang-yaml=" errorMessage" pulumi-lang-java=" errorMessage"> error_message, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. Structure is documented below.
    insightsConfigId String
    ID of the requesting InsightsConfig.
    labels Map<String>
    Set of labels associated with an InsightsConfig. 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
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
    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.
    reconciling Boolean
    Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
    runtimeConfigs List<Property Map>
    The runtime configurations where the application is deployed. Structure is documented below.
    state String
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    updateTime String
    [Output only] Update timestamp

    Supporting Types

    InsightsConfigArtifactConfig, InsightsConfigArtifactConfigArgs

    GoogleArtifactAnalysis InsightsConfigArtifactConfigGoogleArtifactAnalysis
    Google Artifact Analysis configurations. Structure is documented below.
    GoogleArtifactRegistry InsightsConfigArtifactConfigGoogleArtifactRegistry
    Google Artifact Registry configurations. Structure is documented below.
    Uri string
    The URI of the artifact that is deployed. e.g. us-docker.pkg.dev/my-project/my-repo/image. The URI does not include the tag / digest because it captures a lineage of artifacts.
    GoogleArtifactAnalysis InsightsConfigArtifactConfigGoogleArtifactAnalysis
    Google Artifact Analysis configurations. Structure is documented below.
    GoogleArtifactRegistry InsightsConfigArtifactConfigGoogleArtifactRegistry
    Google Artifact Registry configurations. Structure is documented below.
    Uri string
    The URI of the artifact that is deployed. e.g. us-docker.pkg.dev/my-project/my-repo/image. The URI does not include the tag / digest because it captures a lineage of artifacts.
    googleArtifactAnalysis InsightsConfigArtifactConfigGoogleArtifactAnalysis
    Google Artifact Analysis configurations. Structure is documented below.
    googleArtifactRegistry InsightsConfigArtifactConfigGoogleArtifactRegistry
    Google Artifact Registry configurations. Structure is documented below.
    uri String
    The URI of the artifact that is deployed. e.g. us-docker.pkg.dev/my-project/my-repo/image. The URI does not include the tag / digest because it captures a lineage of artifacts.
    googleArtifactAnalysis InsightsConfigArtifactConfigGoogleArtifactAnalysis
    Google Artifact Analysis configurations. Structure is documented below.
    googleArtifactRegistry InsightsConfigArtifactConfigGoogleArtifactRegistry
    Google Artifact Registry configurations. Structure is documented below.
    uri string
    The URI of the artifact that is deployed. e.g. us-docker.pkg.dev/my-project/my-repo/image. The URI does not include the tag / digest because it captures a lineage of artifacts.
    google_artifact_analysis InsightsConfigArtifactConfigGoogleArtifactAnalysis
    Google Artifact Analysis configurations. Structure is documented below.
    google_artifact_registry InsightsConfigArtifactConfigGoogleArtifactRegistry
    Google Artifact Registry configurations. Structure is documented below.
    uri str
    The URI of the artifact that is deployed. e.g. us-docker.pkg.dev/my-project/my-repo/image. The URI does not include the tag / digest because it captures a lineage of artifacts.
    googleArtifactAnalysis Property Map
    Google Artifact Analysis configurations. Structure is documented below.
    googleArtifactRegistry Property Map
    Google Artifact Registry configurations. Structure is documented below.
    uri String
    The URI of the artifact that is deployed. e.g. us-docker.pkg.dev/my-project/my-repo/image. The URI does not include the tag / digest because it captures a lineage of artifacts.

    InsightsConfigArtifactConfigGoogleArtifactAnalysis, InsightsConfigArtifactConfigGoogleArtifactAnalysisArgs

    ProjectId string
    The project id of the project where the provenance is stored.
    ProjectId string
    The project id of the project where the provenance is stored.
    projectId String
    The project id of the project where the provenance is stored.
    projectId string
    The project id of the project where the provenance is stored.
    project_id str
    The project id of the project where the provenance is stored.
    projectId String
    The project id of the project where the provenance is stored.

    InsightsConfigArtifactConfigGoogleArtifactRegistry, InsightsConfigArtifactConfigGoogleArtifactRegistryArgs

    ArtifactRegistryPackage string
    The name of the artifact registry package.
    ProjectId string
    The host project of Artifact Registry.
    ArtifactRegistryPackage string
    The name of the artifact registry package.
    ProjectId string
    The host project of Artifact Registry.
    artifactRegistryPackage String
    The name of the artifact registry package.
    projectId String
    The host project of Artifact Registry.
    artifactRegistryPackage string
    The name of the artifact registry package.
    projectId string
    The host project of Artifact Registry.
    artifact_registry_package str
    The name of the artifact registry package.
    project_id str
    The host project of Artifact Registry.
    artifactRegistryPackage String
    The name of the artifact registry package.
    projectId String
    The host project of Artifact Registry.

    InsightsConfigError, InsightsConfigErrorArgs

    Code int
    (Output) The status code, which should be an enum value of google.rpc.Code.
    Details List<InsightsConfigErrorDetail>
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use. Structure is documented below.
    Message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    Code int
    (Output) The status code, which should be an enum value of google.rpc.Code.
    Details []InsightsConfigErrorDetail
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use. Structure is documented below.
    Message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code Integer
    (Output) The status code, which should be an enum value of google.rpc.Code.
    details List<InsightsConfigErrorDetail>
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use. Structure is documented below.
    message String
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code number
    (Output) The status code, which should be an enum value of google.rpc.Code.
    details InsightsConfigErrorDetail[]
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use. Structure is documented below.
    message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code int
    (Output) The status code, which should be an enum value of google.rpc.Code.
    details Sequence[InsightsConfigErrorDetail]
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use. Structure is documented below.
    message str
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code Number
    (Output) The status code, which should be an enum value of google.rpc.Code.
    details List<Property Map>
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use. Structure is documented below.
    message String
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

    InsightsConfigErrorDetail, InsightsConfigErrorDetailArgs

    DetailMessage string
    (Output) A message with details about the error.
    DetailMessage string
    (Output) A message with details about the error.
    detailMessage String
    (Output) A message with details about the error.
    detailMessage string
    (Output) A message with details about the error.
    detail_message str
    (Output) A message with details about the error.
    detailMessage String
    (Output) A message with details about the error.

    InsightsConfigRuntimeConfig, InsightsConfigRuntimeConfigArgs

    Uri string
    The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name.
    AppHubWorkload InsightsConfigRuntimeConfigAppHubWorkload
    AppHubWorkload represents the App Hub Workload. Structure is documented below.
    GkeWorkload InsightsConfigRuntimeConfigGkeWorkload
    GKEWorkload represents the Google Kubernetes Engine runtime. Structure is documented below.
    State string
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    Uri string
    The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name.
    AppHubWorkload InsightsConfigRuntimeConfigAppHubWorkload
    AppHubWorkload represents the App Hub Workload. Structure is documented below.
    GkeWorkload InsightsConfigRuntimeConfigGkeWorkload
    GKEWorkload represents the Google Kubernetes Engine runtime. Structure is documented below.
    State string
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    uri String
    The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name.
    appHubWorkload InsightsConfigRuntimeConfigAppHubWorkload
    AppHubWorkload represents the App Hub Workload. Structure is documented below.
    gkeWorkload InsightsConfigRuntimeConfigGkeWorkload
    GKEWorkload represents the Google Kubernetes Engine runtime. Structure is documented below.
    state String
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    uri string
    The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name.
    appHubWorkload InsightsConfigRuntimeConfigAppHubWorkload
    AppHubWorkload represents the App Hub Workload. Structure is documented below.
    gkeWorkload InsightsConfigRuntimeConfigGkeWorkload
    GKEWorkload represents the Google Kubernetes Engine runtime. Structure is documented below.
    state string
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    uri str
    The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name.
    app_hub_workload InsightsConfigRuntimeConfigAppHubWorkload
    AppHubWorkload represents the App Hub Workload. Structure is documented below.
    gke_workload InsightsConfigRuntimeConfigGkeWorkload
    GKEWorkload represents the Google Kubernetes Engine runtime. Structure is documented below.
    state str
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED
    uri String
    The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name.
    appHubWorkload Property Map
    AppHubWorkload represents the App Hub Workload. Structure is documented below.
    gkeWorkload Property Map
    GKEWorkload represents the Google Kubernetes Engine runtime. Structure is documented below.
    state String
    (Output) The state of the Runtime. Possible values: STATE_UNSPECIFIED LINKED UNLINKED

    InsightsConfigRuntimeConfigAppHubWorkload, InsightsConfigRuntimeConfigAppHubWorkloadArgs

    Criticality string
    (Output) The criticality of the App Hub Workload.
    Environment string
    (Output) The environment of the App Hub Workload.
    Workload string
    (Output) Output only. The name of the App Hub Workload. Format: projects/{project}/locations/{location}/applications/{application}/workloads/{workload}.
    Criticality string
    (Output) The criticality of the App Hub Workload.
    Environment string
    (Output) The environment of the App Hub Workload.
    Workload string
    (Output) Output only. The name of the App Hub Workload. Format: projects/{project}/locations/{location}/applications/{application}/workloads/{workload}.
    criticality String
    (Output) The criticality of the App Hub Workload.
    environment String
    (Output) The environment of the App Hub Workload.
    workload String
    (Output) Output only. The name of the App Hub Workload. Format: projects/{project}/locations/{location}/applications/{application}/workloads/{workload}.
    criticality string
    (Output) The criticality of the App Hub Workload.
    environment string
    (Output) The environment of the App Hub Workload.
    workload string
    (Output) Output only. The name of the App Hub Workload. Format: projects/{project}/locations/{location}/applications/{application}/workloads/{workload}.
    criticality str
    (Output) The criticality of the App Hub Workload.
    environment str
    (Output) The environment of the App Hub Workload.
    workload str
    (Output) Output only. The name of the App Hub Workload. Format: projects/{project}/locations/{location}/applications/{application}/workloads/{workload}.
    criticality String
    (Output) The criticality of the App Hub Workload.
    environment String
    (Output) The environment of the App Hub Workload.
    workload String
    (Output) Output only. The name of the App Hub Workload. Format: projects/{project}/locations/{location}/applications/{application}/workloads/{workload}.

    InsightsConfigRuntimeConfigGkeWorkload, InsightsConfigRuntimeConfigGkeWorkloadArgs

    Cluster string
    The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.
    Deployment string
    (Output) The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.
    Cluster string
    The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.
    Deployment string
    (Output) The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.
    cluster String
    The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.
    deployment String
    (Output) The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.
    cluster string
    The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.
    deployment string
    (Output) The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.
    cluster str
    The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.
    deployment str
    (Output) The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.
    cluster String
    The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.
    deployment String
    (Output) The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.

    Import

    InsightsConfig can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/insightsConfigs/{{insights_config_id}}

    • {{project}}/{{location}}/{{insights_config_id}}

    • {{location}}/{{insights_config_id}}

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

    $ pulumi import gcp:developerconnect/insightsConfig:InsightsConfig default projects/{{project}}/locations/{{location}}/insightsConfigs/{{insights_config_id}}
    
    $ pulumi import gcp:developerconnect/insightsConfig:InsightsConfig default {{project}}/{{location}}/{{insights_config_id}}
    
    $ pulumi import gcp:developerconnect/insightsConfig:InsightsConfig default {{location}}/{{insights_config_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 v9.5.0 published on Monday, Nov 17, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate