Documentation ¶
Index ¶
- type Group
- type GroupArgs
- type GroupResourceQuery
- type GroupResourceQueryArgs
- func (GroupResourceQueryArgs) ElementType() reflect.Type
- func (i GroupResourceQueryArgs) ToGroupResourceQueryOutput() GroupResourceQueryOutput
- func (i GroupResourceQueryArgs) ToGroupResourceQueryOutputWithContext(ctx context.Context) GroupResourceQueryOutput
- func (i GroupResourceQueryArgs) ToGroupResourceQueryPtrOutput() GroupResourceQueryPtrOutput
- func (i GroupResourceQueryArgs) ToGroupResourceQueryPtrOutputWithContext(ctx context.Context) GroupResourceQueryPtrOutput
- type GroupResourceQueryInput
- type GroupResourceQueryOutput
- func (GroupResourceQueryOutput) ElementType() reflect.Type
- func (o GroupResourceQueryOutput) Query() pulumi.StringOutput
- func (o GroupResourceQueryOutput) ToGroupResourceQueryOutput() GroupResourceQueryOutput
- func (o GroupResourceQueryOutput) ToGroupResourceQueryOutputWithContext(ctx context.Context) GroupResourceQueryOutput
- func (o GroupResourceQueryOutput) ToGroupResourceQueryPtrOutput() GroupResourceQueryPtrOutput
- func (o GroupResourceQueryOutput) ToGroupResourceQueryPtrOutputWithContext(ctx context.Context) GroupResourceQueryPtrOutput
- func (o GroupResourceQueryOutput) Type() pulumi.StringPtrOutput
- type GroupResourceQueryPtrInput
- type GroupResourceQueryPtrOutput
- func (o GroupResourceQueryPtrOutput) Elem() GroupResourceQueryOutput
- func (GroupResourceQueryPtrOutput) ElementType() reflect.Type
- func (o GroupResourceQueryPtrOutput) Query() pulumi.StringPtrOutput
- func (o GroupResourceQueryPtrOutput) ToGroupResourceQueryPtrOutput() GroupResourceQueryPtrOutput
- func (o GroupResourceQueryPtrOutput) ToGroupResourceQueryPtrOutputWithContext(ctx context.Context) GroupResourceQueryPtrOutput
- func (o GroupResourceQueryPtrOutput) Type() pulumi.StringPtrOutput
- type GroupState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { pulumi.CustomResourceState // The ARN assigned by AWS for this resource group. Arn pulumi.StringOutput `pulumi:"arn"` // A description of the resource group. Description pulumi.StringPtrOutput `pulumi:"description"` // 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`. Name pulumi.StringOutput `pulumi:"name"` // A `resourceQuery` block. Resource queries are documented below. ResourceQuery GroupResourceQueryOutput `pulumi:"resourceQuery"` // Key-value map of resource tags Tags pulumi.StringMapOutput `pulumi:"tags"` }
Provides a Resource Group.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/resourcegroups" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := resourcegroups.NewGroup(ctx, "test", &resourcegroups.GroupArgs{ ResourceQuery: &resourcegroups.GroupResourceQueryArgs{ Query: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", " \"ResourceTypeFilters\": [\n", " \"AWS::EC2::Instance\"\n", " ],\n", " \"TagFilters\": [\n", " {\n", " \"Key\": \"Stage\",\n", " \"Values\": [\"Test\"]\n", " }\n", " ]\n", "}\n", "\n")), }, }) if err != nil { return err } return nil }) }
```
func GetGroup ¶
func GetGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error)
GetGroup gets an existing Group resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
type GroupArgs ¶
type GroupArgs struct { // A description of the resource group. Description pulumi.StringPtrInput // 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`. Name pulumi.StringPtrInput // A `resourceQuery` block. Resource queries are documented below. ResourceQuery GroupResourceQueryInput // Key-value map of resource tags Tags pulumi.StringMapInput }
The set of arguments for constructing a Group resource.
func (GroupArgs) ElementType ¶
type GroupResourceQuery ¶
type GroupResourceQueryArgs ¶
type GroupResourceQueryArgs struct { // The resource query as a JSON string. Query pulumi.StringInput `pulumi:"query"` // The type of the resource query. Defaults to `TAG_FILTERS_1_0`. Type pulumi.StringPtrInput `pulumi:"type"` }
func (GroupResourceQueryArgs) ElementType ¶
func (GroupResourceQueryArgs) ElementType() reflect.Type
func (GroupResourceQueryArgs) ToGroupResourceQueryOutput ¶
func (i GroupResourceQueryArgs) ToGroupResourceQueryOutput() GroupResourceQueryOutput
func (GroupResourceQueryArgs) ToGroupResourceQueryOutputWithContext ¶
func (i GroupResourceQueryArgs) ToGroupResourceQueryOutputWithContext(ctx context.Context) GroupResourceQueryOutput
func (GroupResourceQueryArgs) ToGroupResourceQueryPtrOutput ¶
func (i GroupResourceQueryArgs) ToGroupResourceQueryPtrOutput() GroupResourceQueryPtrOutput
func (GroupResourceQueryArgs) ToGroupResourceQueryPtrOutputWithContext ¶
func (i GroupResourceQueryArgs) ToGroupResourceQueryPtrOutputWithContext(ctx context.Context) GroupResourceQueryPtrOutput
type GroupResourceQueryInput ¶
type GroupResourceQueryInput interface { pulumi.Input ToGroupResourceQueryOutput() GroupResourceQueryOutput ToGroupResourceQueryOutputWithContext(context.Context) GroupResourceQueryOutput }
GroupResourceQueryInput is an input type that accepts GroupResourceQueryArgs and GroupResourceQueryOutput values. You can construct a concrete instance of `GroupResourceQueryInput` via:
GroupResourceQueryArgs{...}
type GroupResourceQueryOutput ¶
type GroupResourceQueryOutput struct{ *pulumi.OutputState }
func (GroupResourceQueryOutput) ElementType ¶
func (GroupResourceQueryOutput) ElementType() reflect.Type
func (GroupResourceQueryOutput) Query ¶
func (o GroupResourceQueryOutput) Query() pulumi.StringOutput
The resource query as a JSON string.
func (GroupResourceQueryOutput) ToGroupResourceQueryOutput ¶
func (o GroupResourceQueryOutput) ToGroupResourceQueryOutput() GroupResourceQueryOutput
func (GroupResourceQueryOutput) ToGroupResourceQueryOutputWithContext ¶
func (o GroupResourceQueryOutput) ToGroupResourceQueryOutputWithContext(ctx context.Context) GroupResourceQueryOutput
func (GroupResourceQueryOutput) ToGroupResourceQueryPtrOutput ¶
func (o GroupResourceQueryOutput) ToGroupResourceQueryPtrOutput() GroupResourceQueryPtrOutput
func (GroupResourceQueryOutput) ToGroupResourceQueryPtrOutputWithContext ¶
func (o GroupResourceQueryOutput) ToGroupResourceQueryPtrOutputWithContext(ctx context.Context) GroupResourceQueryPtrOutput
func (GroupResourceQueryOutput) Type ¶
func (o GroupResourceQueryOutput) Type() pulumi.StringPtrOutput
The type of the resource query. Defaults to `TAG_FILTERS_1_0`.
type GroupResourceQueryPtrInput ¶
type GroupResourceQueryPtrInput interface { pulumi.Input ToGroupResourceQueryPtrOutput() GroupResourceQueryPtrOutput ToGroupResourceQueryPtrOutputWithContext(context.Context) GroupResourceQueryPtrOutput }
GroupResourceQueryPtrInput is an input type that accepts GroupResourceQueryArgs, GroupResourceQueryPtr and GroupResourceQueryPtrOutput values. You can construct a concrete instance of `GroupResourceQueryPtrInput` via:
GroupResourceQueryArgs{...} or: nil
func GroupResourceQueryPtr ¶
func GroupResourceQueryPtr(v *GroupResourceQueryArgs) GroupResourceQueryPtrInput
type GroupResourceQueryPtrOutput ¶
type GroupResourceQueryPtrOutput struct{ *pulumi.OutputState }
func (GroupResourceQueryPtrOutput) Elem ¶
func (o GroupResourceQueryPtrOutput) Elem() GroupResourceQueryOutput
func (GroupResourceQueryPtrOutput) ElementType ¶
func (GroupResourceQueryPtrOutput) ElementType() reflect.Type
func (GroupResourceQueryPtrOutput) Query ¶
func (o GroupResourceQueryPtrOutput) Query() pulumi.StringPtrOutput
The resource query as a JSON string.
func (GroupResourceQueryPtrOutput) ToGroupResourceQueryPtrOutput ¶
func (o GroupResourceQueryPtrOutput) ToGroupResourceQueryPtrOutput() GroupResourceQueryPtrOutput
func (GroupResourceQueryPtrOutput) ToGroupResourceQueryPtrOutputWithContext ¶
func (o GroupResourceQueryPtrOutput) ToGroupResourceQueryPtrOutputWithContext(ctx context.Context) GroupResourceQueryPtrOutput
func (GroupResourceQueryPtrOutput) Type ¶
func (o GroupResourceQueryPtrOutput) Type() pulumi.StringPtrOutput
The type of the resource query. Defaults to `TAG_FILTERS_1_0`.
type GroupState ¶
type GroupState struct { // The ARN assigned by AWS for this resource group. Arn pulumi.StringPtrInput // A description of the resource group. Description pulumi.StringPtrInput // 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`. Name pulumi.StringPtrInput // A `resourceQuery` block. Resource queries are documented below. ResourceQuery GroupResourceQueryPtrInput // Key-value map of resource tags Tags pulumi.StringMapInput }
func (GroupState) ElementType ¶
func (GroupState) ElementType() reflect.Type