Skip to content

Create Access Log Subscription

vpclattice_create_access_log_subscription R Documentation

Enables access logs to be sent to Amazon CloudWatch, Amazon S3, and Amazon Kinesis Data Firehose

Description

Enables access logs to be sent to Amazon CloudWatch, Amazon S3, and Amazon Kinesis Data Firehose. The service network owner can use the access logs to audit the services in the network. The service network owner can only see access logs from clients and services that are associated with their service network. Access log entries represent traffic originated from VPCs associated with that network. For more information, see Access logs in the Amazon VPC Lattice User Guide.

Usage

vpclattice_create_access_log_subscription(clientToken, destinationArn,
  resourceIdentifier, tags)

Arguments

clientToken

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.

destinationArn

[required] The Amazon Resource Name (ARN) of the destination. The supported destination types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and Amazon S3 buckets.

resourceIdentifier

[required] The ID or Amazon Resource Name (ARN) of the service network or service.

tags

The tags for the access log subscription.

Value

A list with the following syntax:

list(
  arn = "string",
  destinationArn = "string",
  id = "string",
  resourceArn = "string",
  resourceId = "string"
)

Request syntax

svc$create_access_log_subscription(
  clientToken = "string",
  destinationArn = "string",
  resourceIdentifier = "string",
  tags = list(
    "string"
  )
)