Group Args
data class GroupArgs(val configurations: Output<List<GroupConfigurationArgs>>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val resourceQuery: Output<GroupResourceQueryArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<GroupArgs>
Provides a Resource Group.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resourcegroups.Group;
import com.pulumi.aws.resourcegroups.GroupArgs;
import com.pulumi.aws.resourcegroups.inputs.GroupResourceQueryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new Group("test", GroupArgs.builder()
.resourceQuery(GroupResourceQueryArgs.builder()
.query("""
{
"ResourceTypeFilters": [
"AWS::EC2::Instance"
],
"TagFilters": [
{
"Key": "Stage",
"Values": ["Test"]
}
]
}
""")
.build())
.build());
}
}
Content copied to clipboard
Import
Resource groups can be imported using the name
, e.g.,
$ pulumi import aws:resourcegroups/group:Group foo resource-group-name
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(configurations: Output<List<GroupConfigurationArgs>>? = null, description: Output<String>? = null, name: Output<String>? = null, resourceQuery: Output<GroupResourceQueryArgs>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
A configuration associates the resource group with an AWS service and specifies how the service can interact with the resources in the group. See below for details.
Link copied to clipboard
A description of the resource group.
Link copied to clipboard
A resource_query
block. Resource queries are documented below.