forked from NixOS/nixops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsns-topic.nix
64 lines (52 loc) · 1.35 KB
/
sns-topic.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{ config, lib, uuid, name, ... }:
with lib;
{
options = {
name = mkOption {
default = "charon-${uuid}-${name}";
type = types.str;
description = "Name of the SNS topic.";
};
region = mkOption {
type = types.str;
description = "AWS region.";
};
accessKeyId = mkOption {
type = types.str;
description = "The AWS Access Key ID.";
};
displayName = mkOption {
default = null;
type = types.nullOr (types.str);
description = "Display name of the topic";
};
policy = mkOption {
default = "";
type = types.str;
description = "Policy to apply to the SNS topic.";
};
subscriptions = mkOption {
description = "List of subscriptions to apply to the topic.";
default = [];
type = with types; listOf (submodule {
options = {
protocol = mkOption {
default = null;
description = "The protocol to use.";
type = types.str;
};
endpoint = mkOption {
default = null;
description = "The endpoint to send data to.";
type = types.str;
};
};
});
};
arn = mkOption {
default = "";
type = types.str;
description = "Amazon Resource Name (ARN) of the SNS topic. This is set by NixOps.";
};
};
}