@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
77 lines (76 loc) • 2.31 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get a list of AWS Cloudwatch Log Groups
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.cloudwatch.getLogGroups({
* logGroupNamePrefix: "/MyImportantLogs",
* });
* ```
*/
export declare function getLogGroups(args?: GetLogGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetLogGroupsResult>;
/**
* A collection of arguments for invoking getLogGroups.
*/
export interface GetLogGroupsArgs {
/**
* Group prefix of the Cloudwatch log groups to list
*/
logGroupNamePrefix?: string;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: string;
}
/**
* A collection of values returned by getLogGroups.
*/
export interface GetLogGroupsResult {
/**
* Set of ARNs of the Cloudwatch log groups
*/
readonly arns: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly logGroupNamePrefix?: string;
/**
* Set of names of the Cloudwatch log groups
*/
readonly logGroupNames: string[];
readonly region: string;
}
/**
* Use this data source to get a list of AWS Cloudwatch Log Groups
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.cloudwatch.getLogGroups({
* logGroupNamePrefix: "/MyImportantLogs",
* });
* ```
*/
export declare function getLogGroupsOutput(args?: GetLogGroupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLogGroupsResult>;
/**
* A collection of arguments for invoking getLogGroups.
*/
export interface GetLogGroupsOutputArgs {
/**
* Group prefix of the Cloudwatch log groups to list
*/
logGroupNamePrefix?: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
}