import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides an ECS Daemon resource, which manages a daemon that runs exactly one task on each container instance in an ECS cluster. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.ecs.Daemon("example", { * name: "example-daemon", * clusterArn: exampleAwsEcsCluster.arn, * daemonTaskDefinitionArn: exampleAwsEcsDaemonTaskDefinition.arn, * capacityProviderArns: [exampleAwsEcsCapacityProvider.arn], * }); * ``` * * ### With Deployment Configuration * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.ecs.Daemon("example", { * deploymentConfiguration: { * alarms: { * alarmNames: ["example-alarm"], * enable: true, * }, * drainPercent: 50, * bakeTimeInMinutes: 10, * }, * name: "example-daemon", * clusterArn: exampleAwsEcsCluster.arn, * daemonTaskDefinitionArn: exampleAwsEcsDaemonTaskDefinition.arn, * capacityProviderArns: [exampleAwsEcsCapacityProvider.arn], * }); * ``` * * ### With Tags * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.ecs.Daemon("example", { * name: "example-daemon", * clusterArn: exampleAwsEcsCluster.arn, * daemonTaskDefinitionArn: exampleAwsEcsDaemonTaskDefinition.arn, * capacityProviderArns: [exampleAwsEcsCapacityProvider.arn], * tags: { * Environment: "production", * Application: "example", * }, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `arn` (String) ARN of the ECS Daemon. * * Using `pulumi import`, import ECS Daemons using the ARN. For example: * * ```sh * $ pulumi import aws:ecs/daemon:Daemon example arn:aws:ecs:us-east-1:123456789012:daemon/example-cluster/example-daemon * ``` */ export declare class Daemon extends pulumi.CustomResource { /** * Get an existing Daemon 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?: DaemonState, opts?: pulumi.CustomResourceOptions): Daemon; /** * Returns true if the given object is an instance of Daemon. 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 Daemon; /** * ARN of the daemon. */ readonly arn: pulumi.Output; /** * Set of capacity provider ARNs to use for the daemon. */ readonly capacityProviderArns: pulumi.Output; /** * ARN of the ECS cluster where the daemon will run. */ readonly clusterArn: pulumi.Output; /** * ARN of the daemon task definition to use for the daemon. Drift is not detected on this attribute because the API may report a stale revision while a deployment is in progress. */ readonly daemonTaskDefinitionArn: pulumi.Output; /** * ARN of the most recent daemon deployment. */ readonly deploymentArn: pulumi.Output; /** * Configuration for daemon deployments. See Deployment Configuration below. */ readonly deploymentConfiguration: pulumi.Output; /** * Whether to enable Amazon ECS managed tags for the tasks within the daemon. */ readonly enableEcsManagedTags: pulumi.Output; /** * Whether to enable Amazon ECS Exec for the tasks within the daemon. */ readonly enableExecuteCommand: pulumi.Output; /** * Name of the daemon. */ readonly name: pulumi.Output; /** * Whether to propagate tags from the daemon to tasks. Valid values are `DAEMON` or `NONE`. */ readonly propagateTags: 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; /** * Status of the daemon. Valid values are `ACTIVE` or `DELETE_IN_PROGRESS`. */ readonly status: pulumi.Output; /** * Key-value map of resource tags. 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; }>; readonly timeouts: pulumi.Output; /** * Create a Daemon 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: DaemonArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Daemon resources. */ export interface DaemonState { /** * ARN of the daemon. */ arn?: pulumi.Input; /** * Set of capacity provider ARNs to use for the daemon. */ capacityProviderArns?: pulumi.Input[] | undefined>; /** * ARN of the ECS cluster where the daemon will run. */ clusterArn?: pulumi.Input; /** * ARN of the daemon task definition to use for the daemon. Drift is not detected on this attribute because the API may report a stale revision while a deployment is in progress. */ daemonTaskDefinitionArn?: pulumi.Input; /** * ARN of the most recent daemon deployment. */ deploymentArn?: pulumi.Input; /** * Configuration for daemon deployments. See Deployment Configuration below. */ deploymentConfiguration?: pulumi.Input; /** * Whether to enable Amazon ECS managed tags for the tasks within the daemon. */ enableEcsManagedTags?: pulumi.Input; /** * Whether to enable Amazon ECS Exec for the tasks within the daemon. */ enableExecuteCommand?: pulumi.Input; /** * Name of the daemon. */ name?: pulumi.Input; /** * Whether to propagate tags from the daemon to tasks. Valid values are `DAEMON` or `NONE`. */ propagateTags?: 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; /** * Status of the daemon. Valid values are `ACTIVE` or `DELETE_IN_PROGRESS`. */ status?: pulumi.Input; /** * Key-value map of resource tags. 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>; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a Daemon resource. */ export interface DaemonArgs { /** * Set of capacity provider ARNs to use for the daemon. */ capacityProviderArns: pulumi.Input[]>; /** * ARN of the ECS cluster where the daemon will run. */ clusterArn?: pulumi.Input; /** * ARN of the daemon task definition to use for the daemon. Drift is not detected on this attribute because the API may report a stale revision while a deployment is in progress. */ daemonTaskDefinitionArn: pulumi.Input; /** * Configuration for daemon deployments. See Deployment Configuration below. */ deploymentConfiguration?: pulumi.Input; /** * Whether to enable Amazon ECS managed tags for the tasks within the daemon. */ enableEcsManagedTags?: pulumi.Input; /** * Whether to enable Amazon ECS Exec for the tasks within the daemon. */ enableExecuteCommand?: pulumi.Input; /** * Name of the daemon. */ name?: pulumi.Input; /** * Whether to propagate tags from the daemon to tasks. Valid values are `DAEMON` or `NONE`. */ propagateTags?: 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; /** * Key-value map of resource tags. 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>; timeouts?: pulumi.Input; } //# sourceMappingURL=daemon.d.ts.map