LogDeliverySourceArgs

data class LogDeliverySourceArgs(val logType: Output<String>? = null, val name: Output<String>? = null, val resourceArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LogDeliverySourceArgs>

Resource for managing an AWS CloudWatch Logs Delivery Source.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.cloudwatch.LogDeliverySource("example", {
name: "example",
logType: "APPLICATION_LOGS",
resourceArn: exampleAwsBedrockagentKnowledgeBase.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.cloudwatch.LogDeliverySource("example",
name="example",
log_type="APPLICATION_LOGS",
resource_arn=example_aws_bedrockagent_knowledge_base["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CloudWatch.LogDeliverySource("example", new()
{
Name = "example",
LogType = "APPLICATION_LOGS",
ResourceArn = exampleAwsBedrockagentKnowledgeBase.Arn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudwatch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudwatch.NewLogDeliverySource(ctx, "example", &cloudwatch.LogDeliverySourceArgs{
Name: pulumi.String("example"),
LogType: pulumi.String("APPLICATION_LOGS"),
ResourceArn: pulumi.Any(exampleAwsBedrockagentKnowledgeBase.Arn),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatch.LogDeliverySource;
import com.pulumi.aws.cloudwatch.LogDeliverySourceArgs;
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) {
var example = new LogDeliverySource("example", LogDeliverySourceArgs.builder()
.name("example")
.logType("APPLICATION_LOGS")
.resourceArn(exampleAwsBedrockagentKnowledgeBase.arn())
.build());
}
}
resources:
example:
type: aws:cloudwatch:LogDeliverySource
properties:
name: example
logType: APPLICATION_LOGS
resourceArn: ${exampleAwsBedrockagentKnowledgeBase.arn}

Import

Using pulumi import, import CloudWatch Logs Delivery Source using the name. For example:

$ pulumi import aws:cloudwatch/logDeliverySource:LogDeliverySource example example

Constructors

Link copied to clipboard
constructor(logType: Output<String>? = null, name: Output<String>? = null, resourceArn: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val logType: Output<String>? = null

The type of log that the source is sending. For Amazon Bedrock, the valid value is APPLICATION_LOGS. For Amazon CodeWhisperer, the valid value is EVENT_LOGS. For IAM Identity Center, the valid value is ERROR_LOGS. For Amazon WorkMail, the valid values are ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and WORKMAIL_MAILBOX_ACCESS_LOGS.

Link copied to clipboard
val name: Output<String>? = null

The name for this delivery source.

Link copied to clipboard
val resourceArn: Output<String>? = null

The ARN of the AWS resource that is generating and sending logs.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): LogDeliverySourceArgs