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

gcp.firebase.ExtensionsInstance

Explore with Pulumi AI

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

    Example Usage

    Firebase Extentions Instance Resize Image

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const images = new gcp.storage.Bucket("images", {
        project: "my-project-name",
        name: "bucket-id",
        location: "US",
        uniformBucketLevelAccess: true,
        forceDestroy: true,
    });
    const resizeImage = new gcp.firebase.ExtensionsInstance("resize_image", {
        project: "my-project-name",
        instanceId: "storage-resize-images",
        config: {
            extensionRef: "firebase/storage-resize-images",
            extensionVersion: "0.2.2",
            params: {
                DELETE_ORIGINAL_FILE: "false",
                MAKE_PUBLIC: "false",
                IMAGE_TYPE: "false",
                IS_ANIMATED: "true",
                FUNCTION_MEMORY: "1024",
                DO_BACKFILL: "false",
                IMG_SIZES: "200x200",
                IMG_BUCKET: images.name,
            },
            systemParams: {
                "firebaseextensions.v1beta.function/location": "",
                "firebaseextensions.v1beta.function/maxInstances": "3000",
                "firebaseextensions.v1beta.function/minInstances": "0",
                "firebaseextensions.v1beta.function/vpcConnectorEgressSettings": "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED",
            },
            allowedEventTypes: ["firebase.extensions.storage-resize-images.v1.onCompletion"],
            eventarcChannel: "projects/my-project-name/locations//channels/firebase",
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    images = gcp.storage.Bucket("images",
        project="my-project-name",
        name="bucket-id",
        location="US",
        uniform_bucket_level_access=True,
        force_destroy=True)
    resize_image = gcp.firebase.ExtensionsInstance("resize_image",
        project="my-project-name",
        instance_id="storage-resize-images",
        config={
            "extension_ref": "firebase/storage-resize-images",
            "extension_version": "0.2.2",
            "params": {
                "delet_e__origina_l__file": "false",
                "mak_e__public": "false",
                "imag_e__type": "false",
                "i_s__animated": "true",
                "functio_n__memory": "1024",
                "d_o__backfill": "false",
                "im_g__sizes": "200x200",
                "im_g__bucket": images.name,
            },
            "system_params": {
                "firebaseextensions_v1beta_function_location": "",
                "firebaseextensions_v1beta_function_max_instances": "3000",
                "firebaseextensions_v1beta_function_min_instances": "0",
                "firebaseextensions_v1beta_function_vpc_connector_egress_settings": "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED",
            },
            "allowed_event_types": ["firebase.extensions.storage-resize-images.v1.onCompletion"],
            "eventarc_channel": "projects/my-project-name/locations//channels/firebase",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		images, err := storage.NewBucket(ctx, "images", &storage.BucketArgs{
    			Project:                  pulumi.String("my-project-name"),
    			Name:                     pulumi.String("bucket-id"),
    			Location:                 pulumi.String("US"),
    			UniformBucketLevelAccess: pulumi.Bool(true),
    			ForceDestroy:             pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = firebase.NewExtensionsInstance(ctx, "resize_image", &firebase.ExtensionsInstanceArgs{
    			Project:    pulumi.String("my-project-name"),
    			InstanceId: pulumi.String("storage-resize-images"),
    			Config: &firebase.ExtensionsInstanceConfigArgs{
    				ExtensionRef:     pulumi.String("firebase/storage-resize-images"),
    				ExtensionVersion: pulumi.String("0.2.2"),
    				Params: pulumi.StringMap{
    					"DELETE_ORIGINAL_FILE": pulumi.String("false"),
    					"MAKE_PUBLIC":          pulumi.String("false"),
    					"IMAGE_TYPE":           pulumi.String("false"),
    					"IS_ANIMATED":          pulumi.String("true"),
    					"FUNCTION_MEMORY":      pulumi.String("1024"),
    					"DO_BACKFILL":          pulumi.String("false"),
    					"IMG_SIZES":            pulumi.String("200x200"),
    					"IMG_BUCKET":           images.Name,
    				},
    				SystemParams: pulumi.StringMap{
    					"firebaseextensions.v1beta.function/location":                   pulumi.String(""),
    					"firebaseextensions.v1beta.function/maxInstances":               pulumi.String("3000"),
    					"firebaseextensions.v1beta.function/minInstances":               pulumi.String("0"),
    					"firebaseextensions.v1beta.function/vpcConnectorEgressSettings": pulumi.String("VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED"),
    				},
    				AllowedEventTypes: pulumi.StringArray{
    					pulumi.String("firebase.extensions.storage-resize-images.v1.onCompletion"),
    				},
    				EventarcChannel: pulumi.String("projects/my-project-name/locations//channels/firebase"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var images = new Gcp.Storage.Bucket("images", new()
        {
            Project = "my-project-name",
            Name = "bucket-id",
            Location = "US",
            UniformBucketLevelAccess = true,
            ForceDestroy = true,
        });
    
        var resizeImage = new Gcp.Firebase.ExtensionsInstance("resize_image", new()
        {
            Project = "my-project-name",
            InstanceId = "storage-resize-images",
            Config = new Gcp.Firebase.Inputs.ExtensionsInstanceConfigArgs
            {
                ExtensionRef = "firebase/storage-resize-images",
                ExtensionVersion = "0.2.2",
                Params = 
                {
                    { "DELETE_ORIGINAL_FILE", "false" },
                    { "MAKE_PUBLIC", "false" },
                    { "IMAGE_TYPE", "false" },
                    { "IS_ANIMATED", "true" },
                    { "FUNCTION_MEMORY", "1024" },
                    { "DO_BACKFILL", "false" },
                    { "IMG_SIZES", "200x200" },
                    { "IMG_BUCKET", images.Name },
                },
                SystemParams = 
                {
                    { "firebaseextensions.v1beta.function/location", "" },
                    { "firebaseextensions.v1beta.function/maxInstances", "3000" },
                    { "firebaseextensions.v1beta.function/minInstances", "0" },
                    { "firebaseextensions.v1beta.function/vpcConnectorEgressSettings", "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED" },
                },
                AllowedEventTypes = new[]
                {
                    "firebase.extensions.storage-resize-images.v1.onCompletion",
                },
                EventarcChannel = "projects/my-project-name/locations//channels/firebase",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.storage.Bucket;
    import com.pulumi.gcp.storage.BucketArgs;
    import com.pulumi.gcp.firebase.ExtensionsInstance;
    import com.pulumi.gcp.firebase.ExtensionsInstanceArgs;
    import com.pulumi.gcp.firebase.inputs.ExtensionsInstanceConfigArgs;
    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 images = new Bucket("images", BucketArgs.builder()
                .project("my-project-name")
                .name("bucket-id")
                .location("US")
                .uniformBucketLevelAccess(true)
                .forceDestroy(true)
                .build());
    
            var resizeImage = new ExtensionsInstance("resizeImage", ExtensionsInstanceArgs.builder()
                .project("my-project-name")
                .instanceId("storage-resize-images")
                .config(ExtensionsInstanceConfigArgs.builder()
                    .extensionRef("firebase/storage-resize-images")
                    .extensionVersion("0.2.2")
                    .params(Map.ofEntries(
                        Map.entry("DELETE_ORIGINAL_FILE", false),
                        Map.entry("MAKE_PUBLIC", false),
                        Map.entry("IMAGE_TYPE", false),
                        Map.entry("IS_ANIMATED", true),
                        Map.entry("FUNCTION_MEMORY", 1024),
                        Map.entry("DO_BACKFILL", false),
                        Map.entry("IMG_SIZES", "200x200"),
                        Map.entry("IMG_BUCKET", images.name())
                    ))
                    .systemParams(Map.ofEntries(
                        Map.entry("firebaseextensions.v1beta.function/location", ""),
                        Map.entry("firebaseextensions.v1beta.function/maxInstances", 3000),
                        Map.entry("firebaseextensions.v1beta.function/minInstances", 0),
                        Map.entry("firebaseextensions.v1beta.function/vpcConnectorEgressSettings", "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED")
                    ))
                    .allowedEventTypes("firebase.extensions.storage-resize-images.v1.onCompletion")
                    .eventarcChannel("projects/my-project-name/locations//channels/firebase")
                    .build())
                .build());
    
        }
    }
    
    resources:
      images:
        type: gcp:storage:Bucket
        properties:
          project: my-project-name
          name: bucket-id
          location: US
          uniformBucketLevelAccess: true # Delete all objects when the bucket is deleted
          forceDestroy: true
      resizeImage:
        type: gcp:firebase:ExtensionsInstance
        name: resize_image
        properties:
          project: my-project-name
          instanceId: storage-resize-images
          config:
            extensionRef: firebase/storage-resize-images
            extensionVersion: 0.2.2
            params:
              DELETE_ORIGINAL_FILE: false
              MAKE_PUBLIC: false
              IMAGE_TYPE: false
              IS_ANIMATED: true
              FUNCTION_MEMORY: 1024
              DO_BACKFILL: false
              IMG_SIZES: 200x200
              IMG_BUCKET: ${images.name}
            systemParams:
              firebaseextensions.v1beta.function/location:
              firebaseextensions.v1beta.function/maxInstances: 3000
              firebaseextensions.v1beta.function/minInstances: 0
              firebaseextensions.v1beta.function/vpcConnectorEgressSettings: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED
            allowedEventTypes:
              - firebase.extensions.storage-resize-images.v1.onCompletion
            eventarcChannel: projects/my-project-name/locations//channels/firebase
    

    Create ExtensionsInstance Resource

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

    Constructor syntax

    new ExtensionsInstance(name: string, args: ExtensionsInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def ExtensionsInstance(resource_name: str,
                           args: ExtensionsInstanceArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ExtensionsInstance(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           config: Optional[ExtensionsInstanceConfigArgs] = None,
                           instance_id: Optional[str] = None,
                           project: Optional[str] = None)
    func NewExtensionsInstance(ctx *Context, name string, args ExtensionsInstanceArgs, opts ...ResourceOption) (*ExtensionsInstance, error)
    public ExtensionsInstance(string name, ExtensionsInstanceArgs args, CustomResourceOptions? opts = null)
    public ExtensionsInstance(String name, ExtensionsInstanceArgs args)
    public ExtensionsInstance(String name, ExtensionsInstanceArgs args, CustomResourceOptions options)
    
    type: gcp:firebase:ExtensionsInstance
    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 ExtensionsInstanceArgs
    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 ExtensionsInstanceArgs
    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 ExtensionsInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ExtensionsInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ExtensionsInstanceArgs
    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 extensionsInstanceResource = new Gcp.Firebase.ExtensionsInstance("extensionsInstanceResource", new()
    {
        Config = new Gcp.Firebase.Inputs.ExtensionsInstanceConfigArgs
        {
            ExtensionRef = "string",
            Params = 
            {
                { "string", "string" },
            },
            AllowedEventTypes = new[]
            {
                "string",
            },
            CreateTime = "string",
            EventarcChannel = "string",
            ExtensionVersion = "string",
            Name = "string",
            PopulatedPostinstallContent = "string",
            SystemParams = 
            {
                { "string", "string" },
            },
        },
        InstanceId = "string",
        Project = "string",
    });
    
    example, err := firebase.NewExtensionsInstance(ctx, "extensionsInstanceResource", &firebase.ExtensionsInstanceArgs{
    	Config: &firebase.ExtensionsInstanceConfigArgs{
    		ExtensionRef: pulumi.String("string"),
    		Params: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		AllowedEventTypes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		CreateTime:                  pulumi.String("string"),
    		EventarcChannel:             pulumi.String("string"),
    		ExtensionVersion:            pulumi.String("string"),
    		Name:                        pulumi.String("string"),
    		PopulatedPostinstallContent: pulumi.String("string"),
    		SystemParams: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	InstanceId: pulumi.String("string"),
    	Project:    pulumi.String("string"),
    })
    
    var extensionsInstanceResource = new ExtensionsInstance("extensionsInstanceResource", ExtensionsInstanceArgs.builder()
        .config(ExtensionsInstanceConfigArgs.builder()
            .extensionRef("string")
            .params(Map.of("string", "string"))
            .allowedEventTypes("string")
            .createTime("string")
            .eventarcChannel("string")
            .extensionVersion("string")
            .name("string")
            .populatedPostinstallContent("string")
            .systemParams(Map.of("string", "string"))
            .build())
        .instanceId("string")
        .project("string")
        .build());
    
    extensions_instance_resource = gcp.firebase.ExtensionsInstance("extensionsInstanceResource",
        config={
            "extensionRef": "string",
            "params": {
                "string": "string",
            },
            "allowedEventTypes": ["string"],
            "createTime": "string",
            "eventarcChannel": "string",
            "extensionVersion": "string",
            "name": "string",
            "populatedPostinstallContent": "string",
            "systemParams": {
                "string": "string",
            },
        },
        instance_id="string",
        project="string")
    
    const extensionsInstanceResource = new gcp.firebase.ExtensionsInstance("extensionsInstanceResource", {
        config: {
            extensionRef: "string",
            params: {
                string: "string",
            },
            allowedEventTypes: ["string"],
            createTime: "string",
            eventarcChannel: "string",
            extensionVersion: "string",
            name: "string",
            populatedPostinstallContent: "string",
            systemParams: {
                string: "string",
            },
        },
        instanceId: "string",
        project: "string",
    });
    
    type: gcp:firebase:ExtensionsInstance
    properties:
        config:
            allowedEventTypes:
                - string
            createTime: string
            eventarcChannel: string
            extensionRef: string
            extensionVersion: string
            name: string
            params:
                string: string
            populatedPostinstallContent: string
            systemParams:
                string: string
        instanceId: string
        project: string
    

    ExtensionsInstance Resource Properties

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

    Inputs

    The ExtensionsInstance resource accepts the following input properties:

    Config ExtensionsInstanceConfig
    The current Config of the Extension Instance. Structure is documented below.
    InstanceId string
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    Project string
    Config ExtensionsInstanceConfigArgs
    The current Config of the Extension Instance. Structure is documented below.
    InstanceId string
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    Project string
    config ExtensionsInstanceConfig
    The current Config of the Extension Instance. Structure is documented below.
    instanceId String
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    project String
    config ExtensionsInstanceConfig
    The current Config of the Extension Instance. Structure is documented below.
    instanceId string
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    project string
    config ExtensionsInstanceConfigArgs
    The current Config of the Extension Instance. Structure is documented below.
    instance_id str
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    project str
    config Property Map
    The current Config of the Extension Instance. Structure is documented below.
    instanceId String
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    project String

    Outputs

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

    CreateTime string
    The time at which the Extension Instance was created.
    ErrorStatuses List<ExtensionsInstanceErrorStatus>
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    Etag string
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastOperationName string
    The name of the last operation that acted on this Extension Instance
    LastOperationType string
    The type of the last operation that acted on the Extension Instance.
    Name string
    The fully-qualified resource name of the Extension Instance.
    RuntimeDatas List<ExtensionsInstanceRuntimeData>
    Data set by the extension instance at runtime. Structure is documented below.
    ServiceAccountEmail string
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    State string
    The processing state of the extension instance.
    UpdateTime string
    The time at which the Extension Instance was updated.
    CreateTime string
    The time at which the Extension Instance was created.
    ErrorStatuses []ExtensionsInstanceErrorStatus
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    Etag string
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastOperationName string
    The name of the last operation that acted on this Extension Instance
    LastOperationType string
    The type of the last operation that acted on the Extension Instance.
    Name string
    The fully-qualified resource name of the Extension Instance.
    RuntimeDatas []ExtensionsInstanceRuntimeData
    Data set by the extension instance at runtime. Structure is documented below.
    ServiceAccountEmail string
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    State string
    The processing state of the extension instance.
    UpdateTime string
    The time at which the Extension Instance was updated.
    createTime String
    The time at which the Extension Instance was created.
    errorStatuses List<ExtensionsInstanceErrorStatus>
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    etag String
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    id String
    The provider-assigned unique ID for this managed resource.
    lastOperationName String
    The name of the last operation that acted on this Extension Instance
    lastOperationType String
    The type of the last operation that acted on the Extension Instance.
    name String
    The fully-qualified resource name of the Extension Instance.
    runtimeDatas List<ExtensionsInstanceRuntimeData>
    Data set by the extension instance at runtime. Structure is documented below.
    serviceAccountEmail String
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    state String
    The processing state of the extension instance.
    updateTime String
    The time at which the Extension Instance was updated.
    createTime string
    The time at which the Extension Instance was created.
    errorStatuses ExtensionsInstanceErrorStatus[]
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    etag string
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    id string
    The provider-assigned unique ID for this managed resource.
    lastOperationName string
    The name of the last operation that acted on this Extension Instance
    lastOperationType string
    The type of the last operation that acted on the Extension Instance.
    name string
    The fully-qualified resource name of the Extension Instance.
    runtimeDatas ExtensionsInstanceRuntimeData[]
    Data set by the extension instance at runtime. Structure is documented below.
    serviceAccountEmail string
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    state string
    The processing state of the extension instance.
    updateTime string
    The time at which the Extension Instance was updated.
    create_time str
    The time at which the Extension Instance was created.
    error_statuses Sequence[ExtensionsInstanceErrorStatus]
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    etag str
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    id str
    The provider-assigned unique ID for this managed resource.
    last_operation_name str
    The name of the last operation that acted on this Extension Instance
    last_operation_type str
    The type of the last operation that acted on the Extension Instance.
    name str
    The fully-qualified resource name of the Extension Instance.
    runtime_datas Sequence[ExtensionsInstanceRuntimeData]
    Data set by the extension instance at runtime. Structure is documented below.
    service_account_email str
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    state str
    The processing state of the extension instance.
    update_time str
    The time at which the Extension Instance was updated.
    createTime String
    The time at which the Extension Instance was created.
    errorStatuses List<Property Map>
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    etag String
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    id String
    The provider-assigned unique ID for this managed resource.
    lastOperationName String
    The name of the last operation that acted on this Extension Instance
    lastOperationType String
    The type of the last operation that acted on the Extension Instance.
    name String
    The fully-qualified resource name of the Extension Instance.
    runtimeDatas List<Property Map>
    Data set by the extension instance at runtime. Structure is documented below.
    serviceAccountEmail String
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    state String
    The processing state of the extension instance.
    updateTime String
    The time at which the Extension Instance was updated.

    Look up Existing ExtensionsInstance Resource

    Get an existing ExtensionsInstance 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?: ExtensionsInstanceState, opts?: CustomResourceOptions): ExtensionsInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[ExtensionsInstanceConfigArgs] = None,
            create_time: Optional[str] = None,
            error_statuses: Optional[Sequence[ExtensionsInstanceErrorStatusArgs]] = None,
            etag: Optional[str] = None,
            instance_id: Optional[str] = None,
            last_operation_name: Optional[str] = None,
            last_operation_type: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            runtime_datas: Optional[Sequence[ExtensionsInstanceRuntimeDataArgs]] = None,
            service_account_email: Optional[str] = None,
            state: Optional[str] = None,
            update_time: Optional[str] = None) -> ExtensionsInstance
    func GetExtensionsInstance(ctx *Context, name string, id IDInput, state *ExtensionsInstanceState, opts ...ResourceOption) (*ExtensionsInstance, error)
    public static ExtensionsInstance Get(string name, Input<string> id, ExtensionsInstanceState? state, CustomResourceOptions? opts = null)
    public static ExtensionsInstance get(String name, Output<String> id, ExtensionsInstanceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Config ExtensionsInstanceConfig
    The current Config of the Extension Instance. Structure is documented below.
    CreateTime string
    The time at which the Extension Instance was created.
    ErrorStatuses List<ExtensionsInstanceErrorStatus>
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    Etag string
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    InstanceId string
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    LastOperationName string
    The name of the last operation that acted on this Extension Instance
    LastOperationType string
    The type of the last operation that acted on the Extension Instance.
    Name string
    The fully-qualified resource name of the Extension Instance.
    Project string
    RuntimeDatas List<ExtensionsInstanceRuntimeData>
    Data set by the extension instance at runtime. Structure is documented below.
    ServiceAccountEmail string
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    State string
    The processing state of the extension instance.
    UpdateTime string
    The time at which the Extension Instance was updated.
    Config ExtensionsInstanceConfigArgs
    The current Config of the Extension Instance. Structure is documented below.
    CreateTime string
    The time at which the Extension Instance was created.
    ErrorStatuses []ExtensionsInstanceErrorStatusArgs
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    Etag string
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    InstanceId string
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    LastOperationName string
    The name of the last operation that acted on this Extension Instance
    LastOperationType string
    The type of the last operation that acted on the Extension Instance.
    Name string
    The fully-qualified resource name of the Extension Instance.
    Project string
    RuntimeDatas []ExtensionsInstanceRuntimeDataArgs
    Data set by the extension instance at runtime. Structure is documented below.
    ServiceAccountEmail string
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    State string
    The processing state of the extension instance.
    UpdateTime string
    The time at which the Extension Instance was updated.
    config ExtensionsInstanceConfig
    The current Config of the Extension Instance. Structure is documented below.
    createTime String
    The time at which the Extension Instance was created.
    errorStatuses List<ExtensionsInstanceErrorStatus>
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    etag String
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    instanceId String
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    lastOperationName String
    The name of the last operation that acted on this Extension Instance
    lastOperationType String
    The type of the last operation that acted on the Extension Instance.
    name String
    The fully-qualified resource name of the Extension Instance.
    project String
    runtimeDatas List<ExtensionsInstanceRuntimeData>
    Data set by the extension instance at runtime. Structure is documented below.
    serviceAccountEmail String
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    state String
    The processing state of the extension instance.
    updateTime String
    The time at which the Extension Instance was updated.
    config ExtensionsInstanceConfig
    The current Config of the Extension Instance. Structure is documented below.
    createTime string
    The time at which the Extension Instance was created.
    errorStatuses ExtensionsInstanceErrorStatus[]
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    etag string
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    instanceId string
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    lastOperationName string
    The name of the last operation that acted on this Extension Instance
    lastOperationType string
    The type of the last operation that acted on the Extension Instance.
    name string
    The fully-qualified resource name of the Extension Instance.
    project string
    runtimeDatas ExtensionsInstanceRuntimeData[]
    Data set by the extension instance at runtime. Structure is documented below.
    serviceAccountEmail string
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    state string
    The processing state of the extension instance.
    updateTime string
    The time at which the Extension Instance was updated.
    config ExtensionsInstanceConfigArgs
    The current Config of the Extension Instance. Structure is documented below.
    create_time str
    The time at which the Extension Instance was created.
    error_statuses Sequence[ExtensionsInstanceErrorStatusArgs]
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    etag str
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    instance_id str
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    last_operation_name str
    The name of the last operation that acted on this Extension Instance
    last_operation_type str
    The type of the last operation that acted on the Extension Instance.
    name str
    The fully-qualified resource name of the Extension Instance.
    project str
    runtime_datas Sequence[ExtensionsInstanceRuntimeDataArgs]
    Data set by the extension instance at runtime. Structure is documented below.
    service_account_email str
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    state str
    The processing state of the extension instance.
    update_time str
    The time at which the Extension Instance was updated.
    config Property Map
    The current Config of the Extension Instance. Structure is documented below.
    createTime String
    The time at which the Extension Instance was created.
    errorStatuses List<Property Map>
    If this Instance has state: ERRORED, the error messages will be found here. Structure is documented below.
    etag String
    A weak etag that is computed by the server based on other configuration values and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    instanceId String
    The ID to use for the Extension Instance, which will become the final component of the instance's name.
    lastOperationName String
    The name of the last operation that acted on this Extension Instance
    lastOperationType String
    The type of the last operation that acted on the Extension Instance.
    name String
    The fully-qualified resource name of the Extension Instance.
    project String
    runtimeDatas List<Property Map>
    Data set by the extension instance at runtime. Structure is documented below.
    serviceAccountEmail String
    The email of the service account to be used at runtime by compute resources created for the operation of the Extension instance.
    state String
    The processing state of the extension instance.
    updateTime String
    The time at which the Extension Instance was updated.

    Supporting Types

    ExtensionsInstanceConfig, ExtensionsInstanceConfigArgs

    ExtensionRef string
    The ref of the Extension from the Registry (e.g. publisher-id/awesome-extension)
    Params Dictionary<string, string>
    Environment variables that may be configured for the Extension
    AllowedEventTypes List<string>
    List of extension events selected by consumer that extension is allowed to emit, identified by their types.
    CreateTime string
    (Output) The time at which the Extension Instance Config was created.
    EventarcChannel string
    Fully qualified Eventarc resource name that consumers should use for event triggers.
    ExtensionVersion string
    The version of the Extension from the Registry (e.g. 1.0.3). If left blank, latest is assumed.
    Name string
    (Output) The unique identifier for this configuration.
    PopulatedPostinstallContent string
    (Output) Postinstall instructions to be shown for this Extension, with template strings representing function and parameter values substituted with actual values. These strings include: ${param:FOO}, ${function:myFunc.url}, ${function:myFunc.name}, and ${function:myFunc.location}


    SystemParams Dictionary<string, string>
    Params whose values are only available at deployment time. Unlike other params, these will not be set as environment variables on functions. See a full list of system parameters at https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters
    ExtensionRef string
    The ref of the Extension from the Registry (e.g. publisher-id/awesome-extension)
    Params map[string]string
    Environment variables that may be configured for the Extension
    AllowedEventTypes []string
    List of extension events selected by consumer that extension is allowed to emit, identified by their types.
    CreateTime string
    (Output) The time at which the Extension Instance Config was created.
    EventarcChannel string
    Fully qualified Eventarc resource name that consumers should use for event triggers.
    ExtensionVersion string
    The version of the Extension from the Registry (e.g. 1.0.3). If left blank, latest is assumed.
    Name string
    (Output) The unique identifier for this configuration.
    PopulatedPostinstallContent string
    (Output) Postinstall instructions to be shown for this Extension, with template strings representing function and parameter values substituted with actual values. These strings include: ${param:FOO}, ${function:myFunc.url}, ${function:myFunc.name}, and ${function:myFunc.location}


    SystemParams map[string]string
    Params whose values are only available at deployment time. Unlike other params, these will not be set as environment variables on functions. See a full list of system parameters at https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters
    extensionRef String
    The ref of the Extension from the Registry (e.g. publisher-id/awesome-extension)
    params Map<String,String>
    Environment variables that may be configured for the Extension
    allowedEventTypes List<String>
    List of extension events selected by consumer that extension is allowed to emit, identified by their types.
    createTime String
    (Output) The time at which the Extension Instance Config was created.
    eventarcChannel String
    Fully qualified Eventarc resource name that consumers should use for event triggers.
    extensionVersion String
    The version of the Extension from the Registry (e.g. 1.0.3). If left blank, latest is assumed.
    name String
    (Output) The unique identifier for this configuration.
    populatedPostinstallContent String
    (Output) Postinstall instructions to be shown for this Extension, with template strings representing function and parameter values substituted with actual values. These strings include: ${param:FOO}, ${function:myFunc.url}, ${function:myFunc.name}, and ${function:myFunc.location}


    systemParams Map<String,String>
    Params whose values are only available at deployment time. Unlike other params, these will not be set as environment variables on functions. See a full list of system parameters at https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters
    extensionRef string
    The ref of the Extension from the Registry (e.g. publisher-id/awesome-extension)
    params {[key: string]: string}
    Environment variables that may be configured for the Extension
    allowedEventTypes string[]
    List of extension events selected by consumer that extension is allowed to emit, identified by their types.
    createTime string
    (Output) The time at which the Extension Instance Config was created.
    eventarcChannel string
    Fully qualified Eventarc resource name that consumers should use for event triggers.
    extensionVersion string
    The version of the Extension from the Registry (e.g. 1.0.3). If left blank, latest is assumed.
    name string
    (Output) The unique identifier for this configuration.
    populatedPostinstallContent string
    (Output) Postinstall instructions to be shown for this Extension, with template strings representing function and parameter values substituted with actual values. These strings include: ${param:FOO}, ${function:myFunc.url}, ${function:myFunc.name}, and ${function:myFunc.location}


    systemParams {[key: string]: string}
    Params whose values are only available at deployment time. Unlike other params, these will not be set as environment variables on functions. See a full list of system parameters at https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters
    extension_ref str
    The ref of the Extension from the Registry (e.g. publisher-id/awesome-extension)
    params Mapping[str, str]
    Environment variables that may be configured for the Extension
    allowed_event_types Sequence[str]
    List of extension events selected by consumer that extension is allowed to emit, identified by their types.
    create_time str
    (Output) The time at which the Extension Instance Config was created.
    eventarc_channel str
    Fully qualified Eventarc resource name that consumers should use for event triggers.
    extension_version str
    The version of the Extension from the Registry (e.g. 1.0.3). If left blank, latest is assumed.
    name str
    (Output) The unique identifier for this configuration.
    populated_postinstall_content str
    (Output) Postinstall instructions to be shown for this Extension, with template strings representing function and parameter values substituted with actual values. These strings include: ${param:FOO}, ${function:myFunc.url}, ${function:myFunc.name}, and ${function:myFunc.location}


    system_params Mapping[str, str]
    Params whose values are only available at deployment time. Unlike other params, these will not be set as environment variables on functions. See a full list of system parameters at https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters
    extensionRef String
    The ref of the Extension from the Registry (e.g. publisher-id/awesome-extension)
    params Map<String>
    Environment variables that may be configured for the Extension
    allowedEventTypes List<String>
    List of extension events selected by consumer that extension is allowed to emit, identified by their types.
    createTime String
    (Output) The time at which the Extension Instance Config was created.
    eventarcChannel String
    Fully qualified Eventarc resource name that consumers should use for event triggers.
    extensionVersion String
    The version of the Extension from the Registry (e.g. 1.0.3). If left blank, latest is assumed.
    name String
    (Output) The unique identifier for this configuration.
    populatedPostinstallContent String
    (Output) Postinstall instructions to be shown for this Extension, with template strings representing function and parameter values substituted with actual values. These strings include: ${param:FOO}, ${function:myFunc.url}, ${function:myFunc.name}, and ${function:myFunc.location}


    systemParams Map<String>
    Params whose values are only available at deployment time. Unlike other params, these will not be set as environment variables on functions. See a full list of system parameters at https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters

    ExtensionsInstanceErrorStatus, ExtensionsInstanceErrorStatusArgs

    Code int
    The status code, which should be an enum value of google.rpc.Code.
    Details List<ImmutableDictionary<string, string>>
    A list of messages that carry the error details.
    Message string
    A developer-facing error message, which should be in English.
    Code int
    The status code, which should be an enum value of google.rpc.Code.
    Details []map[string]string
    A list of messages that carry the error details.
    Message string
    A developer-facing error message, which should be in English.
    code Integer
    The status code, which should be an enum value of google.rpc.Code.
    details List<Map<String,String>>
    A list of messages that carry the error details.
    message String
    A developer-facing error message, which should be in English.
    code number
    The status code, which should be an enum value of google.rpc.Code.
    details {[key: string]: string}[]
    A list of messages that carry the error details.
    message string
    A developer-facing error message, which should be in English.
    code int
    The status code, which should be an enum value of google.rpc.Code.
    details Sequence[Mapping[str, str]]
    A list of messages that carry the error details.
    message str
    A developer-facing error message, which should be in English.
    code Number
    The status code, which should be an enum value of google.rpc.Code.
    details List<Map<String>>
    A list of messages that carry the error details.
    message String
    A developer-facing error message, which should be in English.

    ExtensionsInstanceRuntimeData, ExtensionsInstanceRuntimeDataArgs

    FatalError ExtensionsInstanceRuntimeDataFatalError
    The fatal error state for the extension instance Structure is documented below.
    ProcessingState ExtensionsInstanceRuntimeDataProcessingState
    The processing state for the extension instance Structure is documented below.
    StateUpdateTime string
    The time of the last state update.
    FatalError ExtensionsInstanceRuntimeDataFatalError
    The fatal error state for the extension instance Structure is documented below.
    ProcessingState ExtensionsInstanceRuntimeDataProcessingState
    The processing state for the extension instance Structure is documented below.
    StateUpdateTime string
    The time of the last state update.
    fatalError ExtensionsInstanceRuntimeDataFatalError
    The fatal error state for the extension instance Structure is documented below.
    processingState ExtensionsInstanceRuntimeDataProcessingState
    The processing state for the extension instance Structure is documented below.
    stateUpdateTime String
    The time of the last state update.
    fatalError ExtensionsInstanceRuntimeDataFatalError
    The fatal error state for the extension instance Structure is documented below.
    processingState ExtensionsInstanceRuntimeDataProcessingState
    The processing state for the extension instance Structure is documented below.
    stateUpdateTime string
    The time of the last state update.
    fatal_error ExtensionsInstanceRuntimeDataFatalError
    The fatal error state for the extension instance Structure is documented below.
    processing_state ExtensionsInstanceRuntimeDataProcessingState
    The processing state for the extension instance Structure is documented below.
    state_update_time str
    The time of the last state update.
    fatalError Property Map
    The fatal error state for the extension instance Structure is documented below.
    processingState Property Map
    The processing state for the extension instance Structure is documented below.
    stateUpdateTime String
    The time of the last state update.

    ExtensionsInstanceRuntimeDataFatalError, ExtensionsInstanceRuntimeDataFatalErrorArgs

    ErrorMessage string
    The error message. This is set by the extension developer to give more detail on why the extension is unusable and must be re-installed or reconfigured.
    ErrorMessage string
    The error message. This is set by the extension developer to give more detail on why the extension is unusable and must be re-installed or reconfigured.
    errorMessage String
    The error message. This is set by the extension developer to give more detail on why the extension is unusable and must be re-installed or reconfigured.
    errorMessage string
    The error message. This is set by the extension developer to give more detail on why the extension is unusable and must be re-installed or reconfigured.
    error_message str
    The error message. This is set by the extension developer to give more detail on why the extension is unusable and must be re-installed or reconfigured.
    errorMessage String
    The error message. This is set by the extension developer to give more detail on why the extension is unusable and must be re-installed or reconfigured.

    ExtensionsInstanceRuntimeDataProcessingState, ExtensionsInstanceRuntimeDataProcessingStateArgs

    DetailMessage string
    Details about the processing. e.g. This could include the type of processing in progress or it could list errors or failures. This information will be shown in the console on the detail page for the extension instance.
    State string
    The processing state of the extension instance.
    DetailMessage string
    Details about the processing. e.g. This could include the type of processing in progress or it could list errors or failures. This information will be shown in the console on the detail page for the extension instance.
    State string
    The processing state of the extension instance.
    detailMessage String
    Details about the processing. e.g. This could include the type of processing in progress or it could list errors or failures. This information will be shown in the console on the detail page for the extension instance.
    state String
    The processing state of the extension instance.
    detailMessage string
    Details about the processing. e.g. This could include the type of processing in progress or it could list errors or failures. This information will be shown in the console on the detail page for the extension instance.
    state string
    The processing state of the extension instance.
    detail_message str
    Details about the processing. e.g. This could include the type of processing in progress or it could list errors or failures. This information will be shown in the console on the detail page for the extension instance.
    state str
    The processing state of the extension instance.
    detailMessage String
    Details about the processing. e.g. This could include the type of processing in progress or it could list errors or failures. This information will be shown in the console on the detail page for the extension instance.
    state String
    The processing state of the extension instance.

    Import

    Instance can be imported using any of these accepted formats:

    • projects/{{project}}/instances/{{instance_id}}

    • {{project}}/{{instance_id}}

    • {{instance_id}}

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

    $ pulumi import gcp:firebase/extensionsInstance:ExtensionsInstance default projects/{{project}}/instances/{{instance_id}}
    
    $ pulumi import gcp:firebase/extensionsInstance:ExtensionsInstance default {{project}}/{{instance_id}}
    
    $ pulumi import gcp:firebase/extensionsInstance:ExtensionsInstance default {{instance_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 Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi