AWS v6.74.0 published on Wednesday, Mar 26, 2025 by Pulumi
aws.devopsguru.getResourceCollection
Explore with Pulumi AI
Data source for managing an AWS DevOps Guru Resource Collection.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.devopsguru.getResourceCollection({
    type: "AWS_SERVICE",
});
import pulumi
import pulumi_aws as aws
example = aws.devopsguru.get_resource_collection(type="AWS_SERVICE")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/devopsguru"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devopsguru.LookupResourceCollection(ctx, &devopsguru.LookupResourceCollectionArgs{
			Type: "AWS_SERVICE",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.DevOpsGuru.GetResourceCollection.Invoke(new()
    {
        Type = "AWS_SERVICE",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.devopsguru.DevopsguruFunctions;
import com.pulumi.aws.devopsguru.inputs.GetResourceCollectionArgs;
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) {
        final var example = DevopsguruFunctions.getResourceCollection(GetResourceCollectionArgs.builder()
            .type("AWS_SERVICE")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:devopsguru:getResourceCollection
      arguments:
        type: AWS_SERVICE
Using getResourceCollection
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getResourceCollection(args: GetResourceCollectionArgs, opts?: InvokeOptions): Promise<GetResourceCollectionResult>
function getResourceCollectionOutput(args: GetResourceCollectionOutputArgs, opts?: InvokeOptions): Output<GetResourceCollectionResult>def get_resource_collection(cloudformations: Optional[Sequence[GetResourceCollectionCloudformation]] = None,
                            tags: Optional[Sequence[GetResourceCollectionTag]] = None,
                            type: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetResourceCollectionResult
def get_resource_collection_output(cloudformations: Optional[pulumi.Input[Sequence[pulumi.Input[GetResourceCollectionCloudformationArgs]]]] = None,
                            tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetResourceCollectionTagArgs]]]] = None,
                            type: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetResourceCollectionResult]func LookupResourceCollection(ctx *Context, args *LookupResourceCollectionArgs, opts ...InvokeOption) (*LookupResourceCollectionResult, error)
func LookupResourceCollectionOutput(ctx *Context, args *LookupResourceCollectionOutputArgs, opts ...InvokeOption) LookupResourceCollectionResultOutput> Note: This function is named LookupResourceCollection in the Go SDK.
public static class GetResourceCollection 
{
    public static Task<GetResourceCollectionResult> InvokeAsync(GetResourceCollectionArgs args, InvokeOptions? opts = null)
    public static Output<GetResourceCollectionResult> Invoke(GetResourceCollectionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetResourceCollectionResult> getResourceCollection(GetResourceCollectionArgs args, InvokeOptions options)
public static Output<GetResourceCollectionResult> getResourceCollection(GetResourceCollectionArgs args, InvokeOptions options)
fn::invoke:
  function: aws:devopsguru/getResourceCollection:getResourceCollection
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Type string
- Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION,AWS_SERVICE, andAWS_TAGS.
- Cloudformations
List<GetResource Collection Cloudformation> 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
List<GetResource Collection Tag> 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- Type string
- Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION,AWS_SERVICE, andAWS_TAGS.
- Cloudformations
[]GetResource Collection Cloudformation 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
[]GetResource Collection Tag 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- type String
- Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION,AWS_SERVICE, andAWS_TAGS.
- cloudformations
List<GetResource Collection Cloudformation> 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
List<GetResource Collection Tag> 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- type string
- Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION,AWS_SERVICE, andAWS_TAGS.
- cloudformations
GetResource Collection Cloudformation[] 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
GetResource Collection Tag[] 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- type str
- Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION,AWS_SERVICE, andAWS_TAGS.
- cloudformations
Sequence[GetResource Collection Cloudformation] 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
Sequence[GetResource Collection Tag] 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- type String
- Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION,AWS_SERVICE, andAWS_TAGS.
- cloudformations List<Property Map>
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- List<Property Map>
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
getResourceCollection Result
The following output properties are available:
- Id string
- Type of AWS resource collection to create (same value as type).
- Type string
- Cloudformations
List<GetResource Collection Cloudformation> 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
List<GetResource Collection Tag> 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- Id string
- Type of AWS resource collection to create (same value as type).
- Type string
- Cloudformations
[]GetResource Collection Cloudformation 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
[]GetResource Collection Tag 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- id String
- Type of AWS resource collection to create (same value as type).
- type String
- cloudformations
List<GetResource Collection Cloudformation> 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
List<GetResource Collection Tag> 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- id string
- Type of AWS resource collection to create (same value as type).
- type string
- cloudformations
GetResource Collection Cloudformation[] 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
GetResource Collection Tag[] 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- id str
- Type of AWS resource collection to create (same value as type).
- type str
- cloudformations
Sequence[GetResource Collection Cloudformation] 
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- 
Sequence[GetResource Collection Tag] 
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
- id String
- Type of AWS resource collection to create (same value as type).
- type String
- cloudformations List<Property Map>
- A collection of AWS CloudFormation stacks. See cloudformationbelow for additional details.
- List<Property Map>
- AWS tags used to filter the resources in the resource collection. See tagsbelow for additional details.
Supporting Types
GetResourceCollectionCloudformation   
- StackNames List<string>
- Array of the names of the AWS CloudFormation stacks.
- StackNames []string
- Array of the names of the AWS CloudFormation stacks.
- stackNames List<String>
- Array of the names of the AWS CloudFormation stacks.
- stackNames string[]
- Array of the names of the AWS CloudFormation stacks.
- stack_names Sequence[str]
- Array of the names of the AWS CloudFormation stacks.
- stackNames List<String>
- Array of the names of the AWS CloudFormation stacks.
GetResourceCollectionTag   
- AppBoundary stringKey 
- An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- TagValues List<string>
- Array of tag values.
- AppBoundary stringKey 
- An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- TagValues []string
- Array of tag values.
- appBoundary StringKey 
- An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- tagValues List<String>
- Array of tag values.
- appBoundary stringKey 
- An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- tagValues string[]
- Array of tag values.
- app_boundary_ strkey 
- An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- tag_values Sequence[str]
- Array of tag values.
- appBoundary StringKey 
- An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- tagValues List<String>
- Array of tag values.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.