Documentation ¶
Index ¶
- type Group
- type GroupArgs
- type GroupArray
- type GroupArrayInput
- type GroupArrayOutput
- type GroupConfiguration
- type GroupConfigurationArgs
- type GroupConfigurationArray
- type GroupConfigurationArrayInput
- type GroupConfigurationArrayOutput
- func (GroupConfigurationArrayOutput) ElementType() reflect.Type
- func (o GroupConfigurationArrayOutput) Index(i pulumi.IntInput) GroupConfigurationOutput
- func (o GroupConfigurationArrayOutput) ToGroupConfigurationArrayOutput() GroupConfigurationArrayOutput
- func (o GroupConfigurationArrayOutput) ToGroupConfigurationArrayOutputWithContext(ctx context.Context) GroupConfigurationArrayOutput
- type GroupConfigurationInput
- type GroupConfigurationOutput
- func (GroupConfigurationOutput) ElementType() reflect.Type
- func (o GroupConfigurationOutput) Parameters() GroupConfigurationParameterArrayOutput
- func (o GroupConfigurationOutput) ToGroupConfigurationOutput() GroupConfigurationOutput
- func (o GroupConfigurationOutput) ToGroupConfigurationOutputWithContext(ctx context.Context) GroupConfigurationOutput
- func (o GroupConfigurationOutput) Type() pulumi.StringOutput
- type GroupConfigurationParameter
- type GroupConfigurationParameterArgs
- func (GroupConfigurationParameterArgs) ElementType() reflect.Type
- func (i GroupConfigurationParameterArgs) ToGroupConfigurationParameterOutput() GroupConfigurationParameterOutput
- func (i GroupConfigurationParameterArgs) ToGroupConfigurationParameterOutputWithContext(ctx context.Context) GroupConfigurationParameterOutput
- type GroupConfigurationParameterArray
- func (GroupConfigurationParameterArray) ElementType() reflect.Type
- func (i GroupConfigurationParameterArray) ToGroupConfigurationParameterArrayOutput() GroupConfigurationParameterArrayOutput
- func (i GroupConfigurationParameterArray) ToGroupConfigurationParameterArrayOutputWithContext(ctx context.Context) GroupConfigurationParameterArrayOutput
- type GroupConfigurationParameterArrayInput
- type GroupConfigurationParameterArrayOutput
- func (GroupConfigurationParameterArrayOutput) ElementType() reflect.Type
- func (o GroupConfigurationParameterArrayOutput) Index(i pulumi.IntInput) GroupConfigurationParameterOutput
- func (o GroupConfigurationParameterArrayOutput) ToGroupConfigurationParameterArrayOutput() GroupConfigurationParameterArrayOutput
- func (o GroupConfigurationParameterArrayOutput) ToGroupConfigurationParameterArrayOutputWithContext(ctx context.Context) GroupConfigurationParameterArrayOutput
- type GroupConfigurationParameterInput
- type GroupConfigurationParameterOutput
- func (GroupConfigurationParameterOutput) ElementType() reflect.Type
- func (o GroupConfigurationParameterOutput) Name() pulumi.StringOutput
- func (o GroupConfigurationParameterOutput) ToGroupConfigurationParameterOutput() GroupConfigurationParameterOutput
- func (o GroupConfigurationParameterOutput) ToGroupConfigurationParameterOutputWithContext(ctx context.Context) GroupConfigurationParameterOutput
- func (o GroupConfigurationParameterOutput) Values() pulumi.StringArrayOutput
- type GroupInput
- type GroupMap
- type GroupMapInput
- type GroupMapOutput
- type GroupOutput
- func (o GroupOutput) Arn() pulumi.StringOutput
- func (o GroupOutput) Configurations() GroupConfigurationArrayOutput
- func (o GroupOutput) Description() pulumi.StringPtrOutput
- func (GroupOutput) ElementType() reflect.Type
- func (o GroupOutput) Name() pulumi.StringOutput
- func (o GroupOutput) ResourceQuery() GroupResourceQueryPtrOutput
- func (o GroupOutput) Tags() pulumi.StringMapOutput
- func (o GroupOutput) TagsAll() pulumi.StringMapOutputdeprecated
- func (o GroupOutput) ToGroupOutput() GroupOutput
- func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput
- 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
- type Resource
- type ResourceArgs
- type ResourceArray
- type ResourceArrayInput
- type ResourceArrayOutput
- type ResourceInput
- type ResourceMap
- type ResourceMapInput
- type ResourceMapOutput
- type ResourceOutput
- func (ResourceOutput) ElementType() reflect.Type
- func (o ResourceOutput) GroupArn() pulumi.StringOutput
- func (o ResourceOutput) ResourceArn() pulumi.StringOutput
- func (o ResourceOutput) ResourceType() pulumi.StringOutput
- func (o ResourceOutput) ToResourceOutput() ResourceOutput
- func (o ResourceOutput) ToResourceOutputWithContext(ctx context.Context) ResourceOutput
- type ResourceState
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 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. Configurations GroupConfigurationArrayOutput `pulumi:"configurations"` // 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 GroupResourceQueryPtrOutput `pulumi:"resourceQuery"` // Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapOutput `pulumi:"tags"` // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. // // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` }
Provides a Resource Group.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/resourcegroups" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := resourcegroups.NewGroup(ctx, "test", &resourcegroups.GroupArgs{ Name: pulumi.String("test-group"), ResourceQuery: &resourcegroups.GroupResourceQueryArgs{ Query: pulumi.String(`{ "ResourceTypeFilters": [ "AWS::EC2::Instance" ], "TagFilters": [ { "Key": "Stage", "Values": ["Test"] } ] }
`),
}, }) if err != nil { return err } return nil }) }
```
## Import
Using `pulumi import`, import resource groups using the `name`. For example:
```sh $ pulumi import aws:resourcegroups/group:Group foo resource-group-name ```
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).
func NewGroup ¶
func NewGroup(ctx *pulumi.Context, name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error)
NewGroup registers a new resource with the given unique name, arguments, and options.
func (*Group) ElementType ¶
func (*Group) ToGroupOutput ¶
func (i *Group) ToGroupOutput() GroupOutput
func (*Group) ToGroupOutputWithContext ¶
func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput
type GroupArgs ¶
type GroupArgs struct { // 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. Configurations GroupConfigurationArrayInput // 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. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput }
The set of arguments for constructing a Group resource.
func (GroupArgs) ElementType ¶
type GroupArray ¶
type GroupArray []GroupInput
func (GroupArray) ElementType ¶
func (GroupArray) ElementType() reflect.Type
func (GroupArray) ToGroupArrayOutput ¶
func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput
func (GroupArray) ToGroupArrayOutputWithContext ¶
func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput
type GroupArrayInput ¶
type GroupArrayInput interface { pulumi.Input ToGroupArrayOutput() GroupArrayOutput ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput }
GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. You can construct a concrete instance of `GroupArrayInput` via:
GroupArray{ GroupArgs{...} }
type GroupArrayOutput ¶
type GroupArrayOutput struct{ *pulumi.OutputState }
func (GroupArrayOutput) ElementType ¶
func (GroupArrayOutput) ElementType() reflect.Type
func (GroupArrayOutput) Index ¶
func (o GroupArrayOutput) Index(i pulumi.IntInput) GroupOutput
func (GroupArrayOutput) ToGroupArrayOutput ¶
func (o GroupArrayOutput) ToGroupArrayOutput() GroupArrayOutput
func (GroupArrayOutput) ToGroupArrayOutputWithContext ¶
func (o GroupArrayOutput) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput
type GroupConfiguration ¶
type GroupConfiguration struct { // A collection of parameters for this group configuration item. See below for details. Parameters []GroupConfigurationParameter `pulumi:"parameters"` // Specifies the type of group configuration item. Type string `pulumi:"type"` }
type GroupConfigurationArgs ¶
type GroupConfigurationArgs struct { // A collection of parameters for this group configuration item. See below for details. Parameters GroupConfigurationParameterArrayInput `pulumi:"parameters"` // Specifies the type of group configuration item. Type pulumi.StringInput `pulumi:"type"` }
func (GroupConfigurationArgs) ElementType ¶
func (GroupConfigurationArgs) ElementType() reflect.Type
func (GroupConfigurationArgs) ToGroupConfigurationOutput ¶
func (i GroupConfigurationArgs) ToGroupConfigurationOutput() GroupConfigurationOutput
func (GroupConfigurationArgs) ToGroupConfigurationOutputWithContext ¶
func (i GroupConfigurationArgs) ToGroupConfigurationOutputWithContext(ctx context.Context) GroupConfigurationOutput
type GroupConfigurationArray ¶
type GroupConfigurationArray []GroupConfigurationInput
func (GroupConfigurationArray) ElementType ¶
func (GroupConfigurationArray) ElementType() reflect.Type
func (GroupConfigurationArray) ToGroupConfigurationArrayOutput ¶
func (i GroupConfigurationArray) ToGroupConfigurationArrayOutput() GroupConfigurationArrayOutput
func (GroupConfigurationArray) ToGroupConfigurationArrayOutputWithContext ¶
func (i GroupConfigurationArray) ToGroupConfigurationArrayOutputWithContext(ctx context.Context) GroupConfigurationArrayOutput
type GroupConfigurationArrayInput ¶
type GroupConfigurationArrayInput interface { pulumi.Input ToGroupConfigurationArrayOutput() GroupConfigurationArrayOutput ToGroupConfigurationArrayOutputWithContext(context.Context) GroupConfigurationArrayOutput }
GroupConfigurationArrayInput is an input type that accepts GroupConfigurationArray and GroupConfigurationArrayOutput values. You can construct a concrete instance of `GroupConfigurationArrayInput` via:
GroupConfigurationArray{ GroupConfigurationArgs{...} }
type GroupConfigurationArrayOutput ¶
type GroupConfigurationArrayOutput struct{ *pulumi.OutputState }
func (GroupConfigurationArrayOutput) ElementType ¶
func (GroupConfigurationArrayOutput) ElementType() reflect.Type
func (GroupConfigurationArrayOutput) Index ¶
func (o GroupConfigurationArrayOutput) Index(i pulumi.IntInput) GroupConfigurationOutput
func (GroupConfigurationArrayOutput) ToGroupConfigurationArrayOutput ¶
func (o GroupConfigurationArrayOutput) ToGroupConfigurationArrayOutput() GroupConfigurationArrayOutput
func (GroupConfigurationArrayOutput) ToGroupConfigurationArrayOutputWithContext ¶
func (o GroupConfigurationArrayOutput) ToGroupConfigurationArrayOutputWithContext(ctx context.Context) GroupConfigurationArrayOutput
type GroupConfigurationInput ¶
type GroupConfigurationInput interface { pulumi.Input ToGroupConfigurationOutput() GroupConfigurationOutput ToGroupConfigurationOutputWithContext(context.Context) GroupConfigurationOutput }
GroupConfigurationInput is an input type that accepts GroupConfigurationArgs and GroupConfigurationOutput values. You can construct a concrete instance of `GroupConfigurationInput` via:
GroupConfigurationArgs{...}
type GroupConfigurationOutput ¶
type GroupConfigurationOutput struct{ *pulumi.OutputState }
func (GroupConfigurationOutput) ElementType ¶
func (GroupConfigurationOutput) ElementType() reflect.Type
func (GroupConfigurationOutput) Parameters ¶
func (o GroupConfigurationOutput) Parameters() GroupConfigurationParameterArrayOutput
A collection of parameters for this group configuration item. See below for details.
func (GroupConfigurationOutput) ToGroupConfigurationOutput ¶
func (o GroupConfigurationOutput) ToGroupConfigurationOutput() GroupConfigurationOutput
func (GroupConfigurationOutput) ToGroupConfigurationOutputWithContext ¶
func (o GroupConfigurationOutput) ToGroupConfigurationOutputWithContext(ctx context.Context) GroupConfigurationOutput
func (GroupConfigurationOutput) Type ¶
func (o GroupConfigurationOutput) Type() pulumi.StringOutput
Specifies the type of group configuration item.
type GroupConfigurationParameterArgs ¶
type GroupConfigurationParameterArgs struct { // The name of the group configuration parameter. Name pulumi.StringInput `pulumi:"name"` // The value or values to be used for the specified parameter. Values pulumi.StringArrayInput `pulumi:"values"` }
func (GroupConfigurationParameterArgs) ElementType ¶
func (GroupConfigurationParameterArgs) ElementType() reflect.Type
func (GroupConfigurationParameterArgs) ToGroupConfigurationParameterOutput ¶
func (i GroupConfigurationParameterArgs) ToGroupConfigurationParameterOutput() GroupConfigurationParameterOutput
func (GroupConfigurationParameterArgs) ToGroupConfigurationParameterOutputWithContext ¶
func (i GroupConfigurationParameterArgs) ToGroupConfigurationParameterOutputWithContext(ctx context.Context) GroupConfigurationParameterOutput
type GroupConfigurationParameterArray ¶
type GroupConfigurationParameterArray []GroupConfigurationParameterInput
func (GroupConfigurationParameterArray) ElementType ¶
func (GroupConfigurationParameterArray) ElementType() reflect.Type
func (GroupConfigurationParameterArray) ToGroupConfigurationParameterArrayOutput ¶
func (i GroupConfigurationParameterArray) ToGroupConfigurationParameterArrayOutput() GroupConfigurationParameterArrayOutput
func (GroupConfigurationParameterArray) ToGroupConfigurationParameterArrayOutputWithContext ¶
func (i GroupConfigurationParameterArray) ToGroupConfigurationParameterArrayOutputWithContext(ctx context.Context) GroupConfigurationParameterArrayOutput
type GroupConfigurationParameterArrayInput ¶
type GroupConfigurationParameterArrayInput interface { pulumi.Input ToGroupConfigurationParameterArrayOutput() GroupConfigurationParameterArrayOutput ToGroupConfigurationParameterArrayOutputWithContext(context.Context) GroupConfigurationParameterArrayOutput }
GroupConfigurationParameterArrayInput is an input type that accepts GroupConfigurationParameterArray and GroupConfigurationParameterArrayOutput values. You can construct a concrete instance of `GroupConfigurationParameterArrayInput` via:
GroupConfigurationParameterArray{ GroupConfigurationParameterArgs{...} }
type GroupConfigurationParameterArrayOutput ¶
type GroupConfigurationParameterArrayOutput struct{ *pulumi.OutputState }
func (GroupConfigurationParameterArrayOutput) ElementType ¶
func (GroupConfigurationParameterArrayOutput) ElementType() reflect.Type
func (GroupConfigurationParameterArrayOutput) ToGroupConfigurationParameterArrayOutput ¶
func (o GroupConfigurationParameterArrayOutput) ToGroupConfigurationParameterArrayOutput() GroupConfigurationParameterArrayOutput
func (GroupConfigurationParameterArrayOutput) ToGroupConfigurationParameterArrayOutputWithContext ¶
func (o GroupConfigurationParameterArrayOutput) ToGroupConfigurationParameterArrayOutputWithContext(ctx context.Context) GroupConfigurationParameterArrayOutput
type GroupConfigurationParameterInput ¶
type GroupConfigurationParameterInput interface { pulumi.Input ToGroupConfigurationParameterOutput() GroupConfigurationParameterOutput ToGroupConfigurationParameterOutputWithContext(context.Context) GroupConfigurationParameterOutput }
GroupConfigurationParameterInput is an input type that accepts GroupConfigurationParameterArgs and GroupConfigurationParameterOutput values. You can construct a concrete instance of `GroupConfigurationParameterInput` via:
GroupConfigurationParameterArgs{...}
type GroupConfigurationParameterOutput ¶
type GroupConfigurationParameterOutput struct{ *pulumi.OutputState }
func (GroupConfigurationParameterOutput) ElementType ¶
func (GroupConfigurationParameterOutput) ElementType() reflect.Type
func (GroupConfigurationParameterOutput) Name ¶
func (o GroupConfigurationParameterOutput) Name() pulumi.StringOutput
The name of the group configuration parameter.
func (GroupConfigurationParameterOutput) ToGroupConfigurationParameterOutput ¶
func (o GroupConfigurationParameterOutput) ToGroupConfigurationParameterOutput() GroupConfigurationParameterOutput
func (GroupConfigurationParameterOutput) ToGroupConfigurationParameterOutputWithContext ¶
func (o GroupConfigurationParameterOutput) ToGroupConfigurationParameterOutputWithContext(ctx context.Context) GroupConfigurationParameterOutput
func (GroupConfigurationParameterOutput) Values ¶
func (o GroupConfigurationParameterOutput) Values() pulumi.StringArrayOutput
The value or values to be used for the specified parameter.
type GroupInput ¶
type GroupInput interface { pulumi.Input ToGroupOutput() GroupOutput ToGroupOutputWithContext(ctx context.Context) GroupOutput }
type GroupMap ¶
type GroupMap map[string]GroupInput
func (GroupMap) ElementType ¶
func (GroupMap) ToGroupMapOutput ¶
func (i GroupMap) ToGroupMapOutput() GroupMapOutput
func (GroupMap) ToGroupMapOutputWithContext ¶
func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput
type GroupMapInput ¶
type GroupMapInput interface { pulumi.Input ToGroupMapOutput() GroupMapOutput ToGroupMapOutputWithContext(context.Context) GroupMapOutput }
GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. You can construct a concrete instance of `GroupMapInput` via:
GroupMap{ "key": GroupArgs{...} }
type GroupMapOutput ¶
type GroupMapOutput struct{ *pulumi.OutputState }
func (GroupMapOutput) ElementType ¶
func (GroupMapOutput) ElementType() reflect.Type
func (GroupMapOutput) MapIndex ¶
func (o GroupMapOutput) MapIndex(k pulumi.StringInput) GroupOutput
func (GroupMapOutput) ToGroupMapOutput ¶
func (o GroupMapOutput) ToGroupMapOutput() GroupMapOutput
func (GroupMapOutput) ToGroupMapOutputWithContext ¶
func (o GroupMapOutput) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput
type GroupOutput ¶
type GroupOutput struct{ *pulumi.OutputState }
func (GroupOutput) Arn ¶
func (o GroupOutput) Arn() pulumi.StringOutput
The ARN assigned by AWS for this resource group.
func (GroupOutput) Configurations ¶
func (o GroupOutput) Configurations() GroupConfigurationArrayOutput
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.
func (GroupOutput) Description ¶
func (o GroupOutput) Description() pulumi.StringPtrOutput
A description of the resource group.
func (GroupOutput) ElementType ¶
func (GroupOutput) ElementType() reflect.Type
func (GroupOutput) Name ¶
func (o GroupOutput) Name() pulumi.StringOutput
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`.
func (GroupOutput) ResourceQuery ¶
func (o GroupOutput) ResourceQuery() GroupResourceQueryPtrOutput
A `resourceQuery` block. Resource queries are documented below.
func (GroupOutput) Tags ¶
func (o GroupOutput) Tags() pulumi.StringMapOutput
Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (GroupOutput) TagsAll
deprecated
func (o GroupOutput) TagsAll() pulumi.StringMapOutput
A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
Deprecated: Please use `tags` instead.
func (GroupOutput) ToGroupOutput ¶
func (o GroupOutput) ToGroupOutput() GroupOutput
func (GroupOutput) ToGroupOutputWithContext ¶
func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput
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 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. Configurations GroupConfigurationArrayInput // 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. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. // // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapInput }
func (GroupState) ElementType ¶
func (GroupState) ElementType() reflect.Type
type Resource ¶
type Resource struct { pulumi.CustomResourceState // The name or the ARN of the resource group to add resources to. // // The following arguments are optional: GroupArn pulumi.StringOutput `pulumi:"groupArn"` // The ARN of the resource to be added to the group. ResourceArn pulumi.StringOutput `pulumi:"resourceArn"` // The resource type of a resource, such as `AWS::EC2::Instance`. ResourceType pulumi.StringOutput `pulumi:"resourceType"` }
Resource for managing an AWS Resource Groups Resource.
## Example Usage
### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/resourcegroups" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := ec2.NewDedicatedHost(ctx, "example", &ec2.DedicatedHostArgs{ InstanceFamily: pulumi.String("t3"), AvailabilityZone: pulumi.String("us-east-1a"), HostRecovery: pulumi.String("off"), AutoPlacement: pulumi.String("on"), }) if err != nil { return err } exampleGroup, err := resourcegroups.NewGroup(ctx, "example", &resourcegroups.GroupArgs{ Name: pulumi.String("example"), }) if err != nil { return err } _, err = resourcegroups.NewResource(ctx, "example", &resourcegroups.ResourceArgs{ GroupArn: exampleGroup.Arn, ResourceArn: example.Arn, }) if err != nil { return err } return nil }) }
```
func GetResource ¶
func GetResource(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ResourceState, opts ...pulumi.ResourceOption) (*Resource, error)
GetResource gets an existing Resource resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewResource ¶
func NewResource(ctx *pulumi.Context, name string, args *ResourceArgs, opts ...pulumi.ResourceOption) (*Resource, error)
NewResource registers a new resource with the given unique name, arguments, and options.
func (*Resource) ElementType ¶
func (*Resource) ToResourceOutput ¶
func (i *Resource) ToResourceOutput() ResourceOutput
func (*Resource) ToResourceOutputWithContext ¶
func (i *Resource) ToResourceOutputWithContext(ctx context.Context) ResourceOutput
type ResourceArgs ¶
type ResourceArgs struct { // The name or the ARN of the resource group to add resources to. // // The following arguments are optional: GroupArn pulumi.StringInput // The ARN of the resource to be added to the group. ResourceArn pulumi.StringInput }
The set of arguments for constructing a Resource resource.
func (ResourceArgs) ElementType ¶
func (ResourceArgs) ElementType() reflect.Type
type ResourceArray ¶
type ResourceArray []ResourceInput
func (ResourceArray) ElementType ¶
func (ResourceArray) ElementType() reflect.Type
func (ResourceArray) ToResourceArrayOutput ¶
func (i ResourceArray) ToResourceArrayOutput() ResourceArrayOutput
func (ResourceArray) ToResourceArrayOutputWithContext ¶
func (i ResourceArray) ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput
type ResourceArrayInput ¶
type ResourceArrayInput interface { pulumi.Input ToResourceArrayOutput() ResourceArrayOutput ToResourceArrayOutputWithContext(context.Context) ResourceArrayOutput }
ResourceArrayInput is an input type that accepts ResourceArray and ResourceArrayOutput values. You can construct a concrete instance of `ResourceArrayInput` via:
ResourceArray{ ResourceArgs{...} }
type ResourceArrayOutput ¶
type ResourceArrayOutput struct{ *pulumi.OutputState }
func (ResourceArrayOutput) ElementType ¶
func (ResourceArrayOutput) ElementType() reflect.Type
func (ResourceArrayOutput) Index ¶
func (o ResourceArrayOutput) Index(i pulumi.IntInput) ResourceOutput
func (ResourceArrayOutput) ToResourceArrayOutput ¶
func (o ResourceArrayOutput) ToResourceArrayOutput() ResourceArrayOutput
func (ResourceArrayOutput) ToResourceArrayOutputWithContext ¶
func (o ResourceArrayOutput) ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput
type ResourceInput ¶
type ResourceInput interface { pulumi.Input ToResourceOutput() ResourceOutput ToResourceOutputWithContext(ctx context.Context) ResourceOutput }
type ResourceMap ¶
type ResourceMap map[string]ResourceInput
func (ResourceMap) ElementType ¶
func (ResourceMap) ElementType() reflect.Type
func (ResourceMap) ToResourceMapOutput ¶
func (i ResourceMap) ToResourceMapOutput() ResourceMapOutput
func (ResourceMap) ToResourceMapOutputWithContext ¶
func (i ResourceMap) ToResourceMapOutputWithContext(ctx context.Context) ResourceMapOutput
type ResourceMapInput ¶
type ResourceMapInput interface { pulumi.Input ToResourceMapOutput() ResourceMapOutput ToResourceMapOutputWithContext(context.Context) ResourceMapOutput }
ResourceMapInput is an input type that accepts ResourceMap and ResourceMapOutput values. You can construct a concrete instance of `ResourceMapInput` via:
ResourceMap{ "key": ResourceArgs{...} }
type ResourceMapOutput ¶
type ResourceMapOutput struct{ *pulumi.OutputState }
func (ResourceMapOutput) ElementType ¶
func (ResourceMapOutput) ElementType() reflect.Type
func (ResourceMapOutput) MapIndex ¶
func (o ResourceMapOutput) MapIndex(k pulumi.StringInput) ResourceOutput
func (ResourceMapOutput) ToResourceMapOutput ¶
func (o ResourceMapOutput) ToResourceMapOutput() ResourceMapOutput
func (ResourceMapOutput) ToResourceMapOutputWithContext ¶
func (o ResourceMapOutput) ToResourceMapOutputWithContext(ctx context.Context) ResourceMapOutput
type ResourceOutput ¶
type ResourceOutput struct{ *pulumi.OutputState }
func (ResourceOutput) ElementType ¶
func (ResourceOutput) ElementType() reflect.Type
func (ResourceOutput) GroupArn ¶
func (o ResourceOutput) GroupArn() pulumi.StringOutput
The name or the ARN of the resource group to add resources to.
The following arguments are optional:
func (ResourceOutput) ResourceArn ¶
func (o ResourceOutput) ResourceArn() pulumi.StringOutput
The ARN of the resource to be added to the group.
func (ResourceOutput) ResourceType ¶
func (o ResourceOutput) ResourceType() pulumi.StringOutput
The resource type of a resource, such as `AWS::EC2::Instance`.
func (ResourceOutput) ToResourceOutput ¶
func (o ResourceOutput) ToResourceOutput() ResourceOutput
func (ResourceOutput) ToResourceOutputWithContext ¶
func (o ResourceOutput) ToResourceOutputWithContext(ctx context.Context) ResourceOutput
type ResourceState ¶
type ResourceState struct { // The name or the ARN of the resource group to add resources to. // // The following arguments are optional: GroupArn pulumi.StringPtrInput // The ARN of the resource to be added to the group. ResourceArn pulumi.StringPtrInput // The resource type of a resource, such as `AWS::EC2::Instance`. ResourceType pulumi.StringPtrInput }
func (ResourceState) ElementType ¶
func (ResourceState) ElementType() reflect.Type