import * as pulumi from "@pulumi/pulumi"; /** * Provides a CloudWatch Log Stream resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const yada = new aws.cloudwatch.LogGroup("yada", {name: "Yada"}); * const foo = new aws.cloudwatch.LogStream("foo", { * name: "SampleLogStream1234", * logGroupName: yada.name, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `logGroupName` (String) Name of the log group. * * `name` (String) Name of the stream. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import Log Streams using `logGroupName` and `name` separated by a colon (`:`). For example: * * ```sh * $ pulumi import aws:cloudwatch/logStream:LogStream example example-group:example-stream * ``` */ export declare class LogStream extends pulumi.CustomResource { /** * Get an existing LogStream 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: string, id: pulumi.Input, state?: LogStreamState, opts?: pulumi.CustomResourceOptions): LogStream; /** * Returns true if the given object is an instance of LogStream. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is LogStream; /** * ARN specifying the log stream. */ readonly arn: pulumi.Output; /** * The name of the log group under which the log stream is to be created. */ readonly logGroupName: pulumi.Output; /** * The name of the log stream. Must not be longer than 512 characters and must not contain `:` */ readonly name: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Create a LogStream resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: LogStreamArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogStream resources. */ export interface LogStreamState { /** * ARN specifying the log stream. */ arn?: pulumi.Input; /** * The name of the log group under which the log stream is to be created. */ logGroupName?: pulumi.Input; /** * The name of the log stream. Must not be longer than 512 characters and must not contain `:` */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; } /** * The set of arguments for constructing a LogStream resource. */ export interface LogStreamArgs { /** * The name of the log group under which the log stream is to be created. */ logGroupName: pulumi.Input; /** * The name of the log stream. Must not be longer than 512 characters and must not contain `:` */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; } //# sourceMappingURL=logStream.d.ts.map