@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
103 lines • 4.28 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.IngestionDestination = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Resource for managing an AWS AppFabric Ingestion Destination.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.appfabric.IngestionDestination("example", {
* appBundleArn: exampleAwsAppfabricAppBundle.arn,
* ingestionArn: exampleAwsAppfabricIngestion.arn,
* processingConfiguration: {
* auditLog: {
* format: "json",
* schema: "raw",
* },
* },
* destinationConfiguration: {
* auditLog: {
* destination: {
* s3Bucket: {
* bucketName: exampleAwsS3Bucket.bucket,
* },
* },
* },
* },
* });
* ```
*/
class IngestionDestination extends pulumi.CustomResource {
/**
* Get an existing IngestionDestination 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 IngestionDestination(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of IngestionDestination. 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'] === IngestionDestination.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["appBundleArn"] = state?.appBundleArn;
resourceInputs["arn"] = state?.arn;
resourceInputs["destinationConfiguration"] = state?.destinationConfiguration;
resourceInputs["ingestionArn"] = state?.ingestionArn;
resourceInputs["processingConfiguration"] = state?.processingConfiguration;
resourceInputs["region"] = state?.region;
resourceInputs["tags"] = state?.tags;
resourceInputs["tagsAll"] = state?.tagsAll;
resourceInputs["timeouts"] = state?.timeouts;
}
else {
const args = argsOrState;
if (args?.appBundleArn === undefined && !opts.urn) {
throw new Error("Missing required property 'appBundleArn'");
}
if (args?.ingestionArn === undefined && !opts.urn) {
throw new Error("Missing required property 'ingestionArn'");
}
resourceInputs["appBundleArn"] = args?.appBundleArn;
resourceInputs["destinationConfiguration"] = args?.destinationConfiguration;
resourceInputs["ingestionArn"] = args?.ingestionArn;
resourceInputs["processingConfiguration"] = args?.processingConfiguration;
resourceInputs["region"] = args?.region;
resourceInputs["tags"] = args?.tags;
resourceInputs["timeouts"] = args?.timeouts;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["tagsAll"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IngestionDestination.__pulumiType, name, resourceInputs, opts);
}
}
exports.IngestionDestination = IngestionDestination;
/** @internal */
IngestionDestination.__pulumiType = 'aws:appfabric/ingestionDestination:IngestionDestination';
//# sourceMappingURL=ingestionDestination.js.map
;