forked from NixOS/nixops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqs-queue.nix
49 lines (38 loc) · 1012 Bytes
/
sqs-queue.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ config, lib, uuid, name, ... }:
with lib;
{
options = {
name = mkOption {
default = "charon-${uuid}-${name}";
type = types.str;
description = "Name of the SQS queue.";
};
region = mkOption {
type = types.str;
description = "AWS region.";
};
accessKeyId = mkOption {
type = types.str;
description = "The AWS Access Key ID.";
};
visibilityTimeout = mkOption {
default = 30;
type = types.int;
description =
''
The time interval in seconds after a message has been
received until it becomes visible again.
'';
};
url = mkOption {
default = ""; # FIXME: don't set a default
type = types.str;
description = "URL of the queue. This is set by NixOps.";
};
arn = mkOption {
default = ""; # FIXME: don't set a default
type = types.str;
description = "Amazon Resource Name (ARN) of the queue. This is set by NixOps.";
};
};
}