UNPKG

@pulumi/aws

Version:

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

83 lines 3.09 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.AwsLogSource = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an Amazon Security Lake AWS Log Source. * * > **NOTE:** A single `aws.securitylake.AwsLogSource` should be used to configure a log source across all regions and accounts. * * > **NOTE:** The underlying `aws.securitylake.DataLake` must be configured before creating the `aws.securitylake.AwsLogSource`. Use a `dependsOn` statement. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.securitylake.AwsLogSource("example", {source: { * accounts: ["123456789012"], * regions: ["eu-west-1"], * sourceName: "ROUTE53", * }}, { * dependsOn: [exampleAwsSecuritylakeDataLake], * }); * ``` * * ## Import * * Using `pulumi import`, import AWS log sources using the source name. For example: * * ```sh * $ pulumi import aws:securitylake/awsLogSource:AwsLogSource example ROUTE53 * ``` */ class AwsLogSource extends pulumi.CustomResource { /** * Get an existing AwsLogSource 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 AwsLogSource(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of AwsLogSource. 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'] === AwsLogSource.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["region"] = state?.region; resourceInputs["source"] = state?.source; } else { const args = argsOrState; resourceInputs["region"] = args?.region; resourceInputs["source"] = args?.source; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AwsLogSource.__pulumiType, name, resourceInputs, opts); } } exports.AwsLogSource = AwsLogSource; /** @internal */ AwsLogSource.__pulumiType = 'aws:securitylake/awsLogSource:AwsLogSource'; //# sourceMappingURL=awsLogSource.js.map