@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
108 lines • 4.4 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.EntryGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* > **Warning:** `gcp.datacatalog.EntryGroup` is deprecated and will be removed in a future major release. Use `gcp.dataplex.EntryGroup` instead. For steps to transition your Data Catalog users, workloads, and content to Dataplex Catalog, see https://cloud.google.com/dataplex/docs/transition-to-dataplex-catalog.
*
* An EntryGroup resource represents a logical grouping of zero or more Data Catalog Entry resources.
*
* To get more information about EntryGroup, see:
*
* * [API documentation](https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups)
* * How-to Guides
* * [Official Documentation](https://cloud.google.com/data-catalog/docs)
*
* ## Example Usage
*
* ### Data Catalog Entry Group Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const basicEntryGroup = new gcp.datacatalog.EntryGroup("basic_entry_group", {entryGroupId: "my_group"});
* ```
* ### Data Catalog Entry Group Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const basicEntryGroup = new gcp.datacatalog.EntryGroup("basic_entry_group", {
* entryGroupId: "my_group",
* displayName: "entry group",
* description: "example entry group",
* });
* ```
*
* ## Import
*
* EntryGroup can be imported using any of these accepted formats:
*
* * `{{name}}`
*
* When using the `pulumi import` command, EntryGroup can be imported using one of the formats above. For example:
*
* ```sh
* $ pulumi import gcp:datacatalog/entryGroup:EntryGroup default {{name}}
* ```
*/
class EntryGroup extends pulumi.CustomResource {
/**
* Get an existing EntryGroup resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new EntryGroup(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of EntryGroup. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === EntryGroup.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["description"] = state?.description;
resourceInputs["displayName"] = state?.displayName;
resourceInputs["entryGroupId"] = state?.entryGroupId;
resourceInputs["name"] = state?.name;
resourceInputs["project"] = state?.project;
resourceInputs["region"] = state?.region;
}
else {
const args = argsOrState;
if (args?.entryGroupId === undefined && !opts.urn) {
throw new Error("Missing required property 'entryGroupId'");
}
resourceInputs["description"] = args?.description;
resourceInputs["displayName"] = args?.displayName;
resourceInputs["entryGroupId"] = args?.entryGroupId;
resourceInputs["project"] = args?.project;
resourceInputs["region"] = args?.region;
resourceInputs["name"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(EntryGroup.__pulumiType, name, resourceInputs, opts);
}
}
exports.EntryGroup = EntryGroup;
/** @internal */
EntryGroup.__pulumiType = 'gcp:datacatalog/entryGroup:EntryGroup';
//# sourceMappingURL=entryGroup.js.map