Group

class Group : KotlinCustomResource

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());
}
}

Import

Resource groups can be imported using the name, e.g.,

$ pulumi import aws:resourcegroups/group:Group foo resource-group-name

Properties

Link copied to clipboard
val arn: Output<String>

The ARN assigned by AWS for this resource group.

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
val description: Output<String>?

A description of the resource group.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The resource group's name. A resource group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A resource_query block. Resource queries are documented below.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>