Module resourcegroups
This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the
pulumi/pulumi-awsrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-awsrepo.
Resources
Others
Resources
Resource Group
class Group extends CustomResourceProvides a Resource Group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.resourcegroups.Group("test", {
resourceQuery: {
query: `{
"ResourceTypeFilters": [
"AWS::EC2::Instance"
],
"TagFilters": [
{
"Key": "Stage",
"Values": ["Test"]
}
]
}
`,
},
});constructor
new Group(name: string, args: GroupArgs, opts?: pulumi.CustomResourceOptions)Create a Group resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GroupState, opts?: pulumi.CustomResourceOptions): GroupGet an existing Group resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is GroupReturns true if the given object is an instance of Group. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property arn
public arn: pulumi.Output<string>;The ARN assigned by AWS for this resource group.
property description
public description: pulumi.Output<string | undefined>;A description of the resource group.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.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.
property resourceQuery
public resourceQuery: pulumi.Output<GroupResourceQuery>;A resourceQuery block. Resource queries are documented below.
property tags
public tags: pulumi.Output<{[key: string]: any} | undefined>;Key-value map of resource tags
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Others
interface GroupArgs
interface GroupArgsThe set of arguments for constructing a Group resource.
property description
description?: pulumi.Input<string>;A description of the resource group.
property name
name?: pulumi.Input<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.
property resourceQuery
resourceQuery: pulumi.Input<GroupResourceQuery>;A resourceQuery block. Resource queries are documented below.
property tags
tags?: pulumi.Input<{[key: string]: any}>;Key-value map of resource tags
interface GroupState
interface GroupStateInput properties used for looking up and filtering Group resources.
property arn
arn?: pulumi.Input<string>;The ARN assigned by AWS for this resource group.
property description
description?: pulumi.Input<string>;A description of the resource group.
property name
name?: pulumi.Input<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.
property resourceQuery
resourceQuery?: pulumi.Input<GroupResourceQuery>;A resourceQuery block. Resource queries are documented below.
property tags
tags?: pulumi.Input<{[key: string]: any}>;Key-value map of resource tags