-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathmongodb-atlas-databaseuser.json
More file actions
189 lines (189 loc) · 5.83 KB
/
mongodb-atlas-databaseuser.json
File metadata and controls
189 lines (189 loc) · 5.83 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"additionalProperties": false,
"definitions": {
"labelDefinition": {
"additionalProperties": false,
"properties": {
"Key": {
"minLength": 1,
"type": "string"
},
"Value": {
"minLength": 1,
"type": "string"
}
},
"type": "object"
},
"roleDefinition": {
"additionalProperties": false,
"properties": {
"CollectionName": {
"type": "string"
},
"DatabaseName": {
"type": "string"
},
"RoleName": {
"minLength": 1,
"type": "string"
}
},
"type": "object"
},
"scopeDefinition": {
"additionalProperties": false,
"properties": {
"Name": {
"minLength": 1,
"type": "string"
},
"Type": {
"enum": [
"CLUSTER",
"DATA_LAKE"
],
"type": "string"
}
},
"type": "object"
}
},
"handlers": {
"create": {
"permissions": [
"secretsmanager:GetSecretValue"
]
},
"read": {
"permissions": [
"secretsmanager:GetSecretValue"
]
},
"update": {
"permissions": [
"secretsmanager:GetSecretValue"
]
},
"delete": {
"permissions": [
"secretsmanager:GetSecretValue"
]
}
},
"properties": {
"DeleteAfterDate": {
"description": "Date and time when MongoDB Cloud deletes the user. This parameter expresses its value in the ISO 8601 timestamp format in UTC and can include the time zone designation. You must specify a future date that falls within one week of making the Application Programming Interface (API) request.",
"type": "string"
},
"AWSIAMType": {
"description": "Human-readable label that indicates whether the new database user authenticates with the Amazon Web Services (AWS) Identity and Access Management (IAM) credentials associated with the user or the user's role. Default value is `NONE`.",
"enum": [
"NONE",
"USER",
"ROLE"
],
"type": "string"
},
"DatabaseName": {
"description": "MongoDB database against which the MongoDB database user authenticates. MongoDB database users must provide both a username and authentication database to log into MongoDB. Default value is `admin`.",
"type": "string"
},
"Description": {
"description": "Description of this database user.",
"type": "string"
},
"Labels": {
"description": "List that contains the key-value pairs for tagging and categorizing the MongoDB database user. The labels that you define do not appear in the console.",
"items": {
"$ref": "#/definitions/labelDefinition"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"LdapAuthType": {
"description": "Method by which the provided username is authenticated. Default value is `NONE`.",
"enum": [
"NONE",
"USER",
"GROUP"
],
"type": "string"
},
"X509Type": {
"description": "Method that briefs who owns the certificate provided. Default value is `NONE`.",
"enum": [
"NONE",
"MANAGED",
"CUSTOMER"
],
"type": "string"
},
"Password": {
"description": "The user’s password. This field is not included in the entity returned from the server.",
"type": "string"
},
"ProjectId": {
"description": "Unique 24-hexadecimal digit string that identifies your Atlas Project.",
"type": "string"
},
"Roles": {
"description": "List that provides the pairings of one role with one applicable database.",
"items": {
"$ref": "#/definitions/roleDefinition"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"Scopes": {
"description": "List that contains clusters and MongoDB Atlas Data Federation that this database user can access. If omitted, MongoDB Cloud grants the database user access to all the clusters and MongoDB Atlas Data Federation in the project.",
"items": {
"$ref": "#/definitions/scopeDefinition"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"UserCFNIdentifier": {
"description": "A unique identifier comprised of the Atlas Project ID and Username.",
"type": "string"
},
"Username": {
"description": "Human-readable label that represents the user that authenticates to MongoDB. The format of this label depends on the method of authentication. This will be USER_ARN or ROLE_ARN if AWSIAMType is USER or ROLE. Refer https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Database-Users/operation/createDatabaseUser for details.",
"type": "string"
},
"Profile": {
"type": "string",
"description": "Profile used to provide credentials information, (a secret with the cfn/atlas/profile/{Profile}, is required), if not provided `default` is used",
"default": "default"
}
},
"readOnlyProperties": [
"/properties/UserCFNIdentifier"
],
"createOnlyProperties": [
"/properties/ProjectId",
"/properties/Profile"
],
"required": [
"DatabaseName",
"ProjectId",
"Roles",
"Username"
],
"primaryIdentifier": [
"/properties/ProjectId",
"/properties/DatabaseName",
"/properties/Username",
"/properties/Profile"
],
"description": "Returns, adds, edits, and removes database users.",
"typeName": "MongoDB::Atlas::DatabaseUser",
"documentationUrl": "https://github.com/mongodb/mongodbatlas-cloudformation-resources/blob/master/cfn-resources/database-user/README.md",
"tagging": {
"taggable": false
},
"sourceUrl": "https://github.com/mongodb/mongodbatlas-cloudformation-resources/tree/master/cfn-resources/database-user"
}