AWS v6.60.0 published on Tuesday, Nov 19, 2024 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)
// 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
, andAWS_TAGS
. - Cloudformations
List<Get
Resource Collection Cloudformation> - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - List<Get
Resource Collection Tag> - 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
, andAWS_TAGS
. - Cloudformations
[]Get
Resource Collection Cloudformation - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - []Get
Resource Collection Tag - 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
, andAWS_TAGS
. - cloudformations
List<Get
Resource Collection Cloudformation> - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - List<Get
Resource Collection Tag> - 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
, andAWS_TAGS
. - cloudformations
Get
Resource Collection Cloudformation[] - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - Get
Resource Collection Tag[] - 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
, andAWS_TAGS
. - cloudformations
Sequence[Get
Resource Collection Cloudformation] - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - Sequence[Get
Resource Collection Tag] - 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
, andAWS_TAGS
. - cloudformations List<Property Map>
- A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - 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<Get
Resource Collection Cloudformation> - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - List<Get
Resource Collection Tag> - 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
[]Get
Resource Collection Cloudformation - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - []Get
Resource Collection Tag - 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<Get
Resource Collection Cloudformation> - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - List<Get
Resource Collection Tag> - 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
Get
Resource Collection Cloudformation[] - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - Get
Resource Collection Tag[] - 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[Get
Resource Collection Cloudformation] - A collection of AWS CloudFormation stacks. See
cloudformation
below for additional details. - Sequence[Get
Resource Collection Tag] - 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. - List<Property Map>
- AWS tags used to filter the resources in the resource collection. See
tags
below for additional details.
Supporting Types
GetResourceCollectionCloudformation
- Stack
Names List<string> - Array of the names of the AWS CloudFormation stacks.
- Stack
Names []string - Array of the names of the AWS CloudFormation stacks.
- stack
Names List<String> - Array of the names of the AWS CloudFormation stacks.
- stack
Names string[] - Array of the names of the AWS CloudFormation stacks.
- stack_
names Sequence[str] - Array of the names of the AWS CloudFormation stacks.
- stack
Names List<String> - Array of the names of the AWS CloudFormation stacks.
GetResourceCollectionTag
- App
Boundary stringKey - An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- Tag
Values List<string> - Array of tag values.
- App
Boundary stringKey - An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- Tag
Values []string - Array of tag values.
- app
Boundary StringKey - An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- tag
Values List<String> - Array of tag values.
- app
Boundary stringKey - An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- tag
Values 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.
- app
Boundary StringKey - An AWS tag key that is used to identify the AWS resources that DevOps Guru analyzes.
- tag
Values 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.