UNPKG

@pulumi/aws

Version:

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

96 lines 3.91 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.Ingestion = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an AWS QuickSight Ingestion. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.quicksight.Ingestion("example", { * dataSetId: exampleAwsQuicksightDataSet.dataSetId, * ingestionId: "example-id", * ingestionType: "FULL_REFRESH", * }); * ``` * * ## Import * * Using `pulumi import`, import QuickSight Ingestion using the AWS account ID, data set ID, and ingestion ID separated by commas (`,`). For example: * * ```sh * $ pulumi import aws:quicksight/ingestion:Ingestion example 123456789012,example-dataset-id,example-ingestion-id * ``` */ class Ingestion extends pulumi.CustomResource { /** * Get an existing Ingestion 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 Ingestion(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of Ingestion. 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'] === Ingestion.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state?.arn; resourceInputs["awsAccountId"] = state?.awsAccountId; resourceInputs["dataSetId"] = state?.dataSetId; resourceInputs["ingestionId"] = state?.ingestionId; resourceInputs["ingestionStatus"] = state?.ingestionStatus; resourceInputs["ingestionType"] = state?.ingestionType; resourceInputs["region"] = state?.region; } else { const args = argsOrState; if (args?.dataSetId === undefined && !opts.urn) { throw new Error("Missing required property 'dataSetId'"); } if (args?.ingestionId === undefined && !opts.urn) { throw new Error("Missing required property 'ingestionId'"); } if (args?.ingestionType === undefined && !opts.urn) { throw new Error("Missing required property 'ingestionType'"); } resourceInputs["awsAccountId"] = args?.awsAccountId; resourceInputs["dataSetId"] = args?.dataSetId; resourceInputs["ingestionId"] = args?.ingestionId; resourceInputs["ingestionType"] = args?.ingestionType; resourceInputs["region"] = args?.region; resourceInputs["arn"] = undefined /*out*/; resourceInputs["ingestionStatus"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Ingestion.__pulumiType, name, resourceInputs, opts); } } exports.Ingestion = Ingestion; /** @internal */ Ingestion.__pulumiType = 'aws:quicksight/ingestion:Ingestion'; //# sourceMappingURL=ingestion.js.map