UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

73 lines 2.85 kB
"use strict"; // *** 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.OptIn = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an AWS Lake Formation Opt In. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.lakeformation.OptIn("example", {}); * ``` */ class OptIn extends pulumi.CustomResource { /** * Get an existing OptIn 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 OptIn(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of OptIn. 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'] === OptIn.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["conditions"] = state?.conditions; resourceInputs["lastModified"] = state?.lastModified; resourceInputs["lastUpdatedBy"] = state?.lastUpdatedBy; resourceInputs["principals"] = state?.principals; resourceInputs["region"] = state?.region; resourceInputs["resourceDatas"] = state?.resourceDatas; } else { const args = argsOrState; resourceInputs["conditions"] = args?.conditions; resourceInputs["principals"] = args?.principals; resourceInputs["region"] = args?.region; resourceInputs["resourceDatas"] = args?.resourceDatas; resourceInputs["lastModified"] = undefined /*out*/; resourceInputs["lastUpdatedBy"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(OptIn.__pulumiType, name, resourceInputs, opts); } } exports.OptIn = OptIn; /** @internal */ OptIn.__pulumiType = 'aws:lakeformation/optIn:OptIn'; //# sourceMappingURL=optIn.js.map