Queries Resource Access Management (RAM) user groups.
Syntax
{
"Type": "DATASOURCE::RAM::Groups",
"Properties": {
"GroupName": String,
"UserName": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
GroupName |
String |
No |
Yes |
The name of the user group. |
Supports the asterisk ( |
|
UserName |
String |
No |
Yes |
The name of the RAM user in the user group. |
None. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values (Fn::GetAtt)
-
GroupNames: the names of the user groups.
-
Groups: details of the user groups.
|
Property |
Type |
Description |
Constraint |
|
GroupNames |
List |
The names of the user groups. |
None. |
|
Groups |
List |
Details of the user groups. |
None. |
|
Comments |
String |
The remarks. |
None. |
|
GroupId |
String |
The ID of the user group. |
None. |
|
GroupName |
String |
The name of the user group. |
None. |
|
CreateDate |
String |
The time when the user group was created, in UTC. |
None. |
Examples
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GroupName": {
"Type": "String",
"Description": "Filter the results by a specific group name. Supports using * and ? to fuzzy match.",
"Default": "mdc-****"
}
},
"Resources": {
"Groups": {
"Type": "DATASOURCE::RAM::Groups",
"Properties": {
"GroupName": {
"Ref": "GroupName"
}
}
}
},
"Outputs": {
"GroupNames": {
"Description": "The list of group names.",
"Value": {
"Fn::GetAtt": [
"Groups",
"GroupNames"
]
}
},
"Groups": {
"Description": "The list of groups.",
"Value": {
"Fn::GetAtt": [
"Groups",
"Groups"
]
}
}
}
}