import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS DSQL Stream. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const exampleCluster = new aws.dsql.Cluster("example", {}); * const exampleStream = new aws.kinesis.Stream("example", { * name: "example", * shardCount: 1, * }); * const example = new aws.dsql.Stream("example", { * targetDefinition: { * kinesis: { * roleArn: exampleAwsIamRole.arn, * streamArn: exampleStream.arn, * }, * }, * clusterIdentifier: exampleCluster.identifier, * format: "JSON", * ordering: "UNORDERED", * }, { * dependsOn: [exampleAwsIamRolePolicy], * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `clusterIdentifier` (String) ID of the cluster for which to create the stream. * * `streamIdentifier` (String) ID of the retrieved stream. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import DSQL Stream using the `clusterIdentifier` and `streamIdentifier`, separated by a comma. For example: * * ```sh * $ pulumi import aws:dsql/stream:Stream example "cluster-identifier-0123456789abcdef0,stream-identifier-0123456789abcdef0" * ``` */ export declare class Stream extends pulumi.CustomResource { /** * Get an existing Stream 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?: StreamState, opts?: pulumi.CustomResourceOptions): Stream; /** * Check whether an existing Stream resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: StreamState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of Stream. 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 Stream; /** * ARN of the retrieved stream. */ readonly arn: pulumi.Output; /** * ID of the cluster for which to create the stream. */ readonly clusterIdentifier: pulumi.Output; /** * Time when the stream was created. */ readonly creationTime: pulumi.Output; /** * Format of the stream records. Valid values: `JSON`. */ readonly format: pulumi.Output; /** * Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: `UNORDERED`. */ readonly ordering: 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; /** * Current status of the retrieved stream. Valid values: `CREATING`, `ACTIVE`, `DELETING`, `DELETED`, `FAILED`, `IMPAIRED`. */ readonly status: pulumi.Output; /** * ID of the retrieved stream. */ readonly streamIdentifier: pulumi.Output; /** * Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See `targetDefinition` Block below. * * The following arguments are optional: */ readonly targetDefinition: pulumi.Output; readonly timeouts: pulumi.Output; /** * Create a Stream 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: StreamArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Stream resources. */ export interface StreamState { /** * ARN of the retrieved stream. */ arn?: pulumi.Input; /** * ID of the cluster for which to create the stream. */ clusterIdentifier?: pulumi.Input; /** * Time when the stream was created. */ creationTime?: pulumi.Input; /** * Format of the stream records. Valid values: `JSON`. */ format?: pulumi.Input; /** * Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: `UNORDERED`. */ ordering?: 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; /** * Current status of the retrieved stream. Valid values: `CREATING`, `ACTIVE`, `DELETING`, `DELETED`, `FAILED`, `IMPAIRED`. */ status?: pulumi.Input; /** * ID of the retrieved stream. */ streamIdentifier?: pulumi.Input; /** * Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See `targetDefinition` Block below. * * The following arguments are optional: */ targetDefinition?: pulumi.Input; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a Stream resource. */ export interface StreamArgs { /** * ID of the cluster for which to create the stream. */ clusterIdentifier: pulumi.Input; /** * Format of the stream records. Valid values: `JSON`. */ format: pulumi.Input; /** * Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: `UNORDERED`. */ ordering: 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; /** * Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See `targetDefinition` Block below. * * The following arguments are optional: */ targetDefinition: pulumi.Input; timeouts?: pulumi.Input; } //# sourceMappingURL=stream.d.ts.map