1. Packages
  2. AWS Classic
  3. API Docs
  4. devopsguru
  5. getResourceCollection

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.devopsguru.getResourceCollection

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:devopsguru/getResourceCollection:getResourceCollection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Type string
    Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION, AWS_SERVICE, and AWS_TAGS.
    Cloudformations List<GetResourceCollectionCloudformation>
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    Tags List<GetResourceCollectionTag>
    AWS tags used to filter the resources in the resource collection. See tags below for additional details.
    Type string
    Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION, AWS_SERVICE, and AWS_TAGS.
    Cloudformations []GetResourceCollectionCloudformation
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    Tags []GetResourceCollectionTag
    AWS tags used to filter the resources in the resource collection. See tags below for additional details.
    type String
    Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION, AWS_SERVICE, and AWS_TAGS.
    cloudformations List<GetResourceCollectionCloudformation>
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    tags List<GetResourceCollectionTag>
    AWS tags used to filter the resources in the resource collection. See tags below for additional details.
    type string
    Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION, AWS_SERVICE, and AWS_TAGS.
    cloudformations GetResourceCollectionCloudformation[]
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    tags GetResourceCollectionTag[]
    AWS tags used to filter the resources in the resource collection. See tags below for additional details.
    type str
    Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION, AWS_SERVICE, and AWS_TAGS.
    cloudformations Sequence[GetResourceCollectionCloudformation]
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    tags Sequence[GetResourceCollectionTag]
    AWS tags used to filter the resources in the resource collection. See tags below for additional details.
    type String
    Type of AWS resource collection to create. Valid values are AWS_CLOUD_FORMATION, AWS_SERVICE, and AWS_TAGS.
    cloudformations List<Property Map>
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    tags List<Property Map>
    AWS tags used to filter the resources in the resource collection. See tags below 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<GetResourceCollectionCloudformation>
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    Tags List<GetResourceCollectionTag>
    AWS tags used to filter the resources in the resource collection. See tags below for additional details.
    Id string
    Type of AWS resource collection to create (same value as type).
    Type string
    Cloudformations []GetResourceCollectionCloudformation
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    Tags []GetResourceCollectionTag
    AWS tags used to filter the resources in the resource collection. See tags below for additional details.
    id String
    Type of AWS resource collection to create (same value as type).
    type String
    cloudformations List<GetResourceCollectionCloudformation>
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    tags List<GetResourceCollectionTag>
    AWS tags used to filter the resources in the resource collection. See tags below for additional details.
    id string
    Type of AWS resource collection to create (same value as type).
    type string
    cloudformations GetResourceCollectionCloudformation[]
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    tags GetResourceCollectionTag[]
    AWS tags used to filter the resources in the resource collection. See tags below for additional details.
    id str
    Type of AWS resource collection to create (same value as type).
    type str
    cloudformations Sequence[GetResourceCollectionCloudformation]
    A collection of AWS CloudFormation stacks. See cloudformation below for additional details.
    tags Sequence[GetResourceCollectionTag]
    AWS tags used to filter the resources in the resource collection. See tags below 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 cloudformation below for additional details.
    tags List<Property Map>
    AWS tags used to filter the resources in the resource collection. See tags below 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

    AppBoundaryKey string
    An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
    TagValues List<string>
    Array of tag values.
    AppBoundaryKey string
    An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
    TagValues []string
    Array of tag values.
    appBoundaryKey String
    An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
    tagValues List<String>
    Array of tag values.
    appBoundaryKey string
    An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
    tagValues string[]
    Array of tag values.
    app_boundary_key str
    An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
    tag_values Sequence[str]
    Array of tag values.
    appBoundaryKey String
    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 aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi