Package com.pulumi.aws.cloudwatch
Class LogDeliverySource
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.cloudwatch.LogDeliverySource
-
public class LogDeliverySource extends com.pulumi.resources.CustomResourceResource for managing an AWS CloudWatch Logs Delivery Source. ## Example Usage ### Basic Usage
## Import ### Identity Schema #### Required * `name` (String) Name of the delivery source. #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import Delivery Sources using `name`. For example: ```sh $ pulumi import aws:cloudwatch/logDeliverySource:LogDeliverySource example example ```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.ArrayList; import java.util.Arrays; 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()); } }
-
-
Constructor Summary
Constructors Constructor Description LogDeliverySource(java.lang.String name)LogDeliverySource(java.lang.String name, LogDeliverySourceArgs args)LogDeliverySource(java.lang.String name, LogDeliverySourceArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()static LogDeliverySourceget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, LogDeliverySourceState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>logType()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>resourceArn()com.pulumi.core.Output<java.lang.String>service()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()
-
-
-
Constructor Detail
-
LogDeliverySource
public LogDeliverySource(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
LogDeliverySource
public LogDeliverySource(java.lang.String name, LogDeliverySourceArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
LogDeliverySource
public LogDeliverySource(java.lang.String name, LogDeliverySourceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the delivery source.
-
logType
public com.pulumi.core.Output<java.lang.String> logType()
- Returns:
- The type of log that the source is sending. For Amazon Bedrock, the valid value is `APPLICATION_LOGS`. For Amazon Bedrock AgentCore, the valid values are `APPLICATION_LOGS`, `TRACES`, and `USAGE_LOGS`. For Amazon CloudFront, the valid value is `ACCESS_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`. See [Enable logging from AWS services](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html) for the log types supported by each service.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name for this delivery source.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- 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.
-
resourceArn
public com.pulumi.core.Output<java.lang.String> resourceArn()
- Returns:
- The ARN of the AWS resource that is generating and sending logs.
-
service
public com.pulumi.core.Output<java.lang.String> service()
- Returns:
- The AWS service that is sending logs.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
get
public static LogDeliverySource get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable LogDeliverySourceState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-