resourcegroups

package
v6.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.
	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{
			ResourceQuery: &resourcegroups.GroupResourceQueryArgs{
				Query: pulumi.String(`{
  "ResourceTypeFilters": [
    "AWS::EC2::Instance"
  ],
  "TagFilters": [
    {
      "Key": "Stage",
      "Values": ["Test"]
    }
  ]
}

`),

			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

terraform import {

to = aws_resourcegroups_group.foo

id = "resource-group-name" } Using `pulumi import`, import resource groups using the `name`. For exampleconsole % pulumi import aws_resourcegroups_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) ElementType() reflect.Type

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

func (GroupArgs) ElementType() reflect.Type

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 (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) Index

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

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

Specifies the type of group configuration item.

type GroupConfigurationParameter

type GroupConfigurationParameter struct {
	// The name of the group configuration parameter.
	Name string `pulumi:"name"`
	// The value or values to be used for the specified parameter.
	Values []string `pulumi:"values"`
}

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) 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) 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) Index

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) Name

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

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) ElementType() reflect.Type

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 (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

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

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

func (o GroupOutput) TagsAll() pulumi.StringMapOutput

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

func (GroupOutput) ToGroupOutput

func (o GroupOutput) ToGroupOutput() GroupOutput

func (GroupOutput) ToGroupOutputWithContext

func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput

type GroupResourceQuery

type GroupResourceQuery struct {
	// The resource query as a JSON string.
	Query string `pulumi:"query"`
	// The type of the resource query. Defaults to `TAG_FILTERS_1_0`.
	Type *string `pulumi:"type"`
}

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

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

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

type GroupResourceQueryPtrOutput

type GroupResourceQueryPtrOutput struct{ *pulumi.OutputState }

func (GroupResourceQueryPtrOutput) Elem

func (GroupResourceQueryPtrOutput) ElementType

func (GroupResourceQueryPtrOutput) Query

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

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.
	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 {
		exampleDedicatedHost, err := ec2.NewDedicatedHost(ctx, "exampleDedicatedHost", &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, "exampleGroup", nil)
		if err != nil {
			return err
		}
		_, err = resourcegroups.NewResource(ctx, "exampleResource", &resourcegroups.ResourceArgs{
			GroupArn:    exampleGroup.Arn,
			ResourceArn: exampleDedicatedHost.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) ElementType() reflect.Type

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 (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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL