UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

64 lines (63 loc) 2.94 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * A delivery source is an AWS resource that sends logs to an AWS destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose. * * Only some AWS services support being configured as a delivery source. These services are listed as Supported [V2 Permissions] in the table at [Enabling logging from AWS services](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html). */ export declare function getDeliverySource(args: GetDeliverySourceArgs, opts?: pulumi.InvokeOptions): Promise<GetDeliverySourceResult>; export interface GetDeliverySourceArgs { /** * The unique name of the Log source. */ name: string; } export interface GetDeliverySourceResult { /** * The Amazon Resource Name (ARN) that uniquely identifies this delivery source. */ readonly arn?: string; /** * A map of key-value pairs to configure the delivery source. Both keys and values must be between 1 and 255 characters in length. */ readonly deliverySourceConfiguration?: { [key: string]: string; }; /** * The type of logs being delivered. Only mandatory when the resourceArn could match more than one. In such a case, the error message will contain all the possible options. */ readonly logType?: string; /** * This array contains the ARN of the AWS resource that sends logs and is represented by this delivery source. Currently, only one ARN can be in the array. */ readonly resourceArns?: string[]; /** * The AWS service that is sending logs. */ readonly service?: string; /** * The status of this delivery source. The value can be ACTIVE or INACTIVE. */ readonly status?: enums.logs.DeliverySourceStatus; /** * The reason for the status of this delivery source, such as RESOURCE_DELETED. */ readonly statusReason?: enums.logs.DeliverySourceStatusReason; /** * The tags that have been assigned to this delivery source. */ readonly tags?: outputs.Tag[]; } /** * A delivery source is an AWS resource that sends logs to an AWS destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose. * * Only some AWS services support being configured as a delivery source. These services are listed as Supported [V2 Permissions] in the table at [Enabling logging from AWS services](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html). */ export declare function getDeliverySourceOutput(args: GetDeliverySourceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDeliverySourceResult>; export interface GetDeliverySourceOutputArgs { /** * The unique name of the Log source. */ name: pulumi.Input<string>; }