Access Log Subscription
Resource for managing an AWS VPC Lattice Service Network or Service Access log subscription.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.AccessLogSubscription("example", {
resourceIdentifier: exampleAwsVpclatticeServiceNetwork.id,
destinationArn: bucket.arn,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.AccessLogSubscription("example",
resource_identifier=example_aws_vpclattice_service_network["id"],
destination_arn=bucket["arn"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VpcLattice.AccessLogSubscription("example", new()
{
ResourceIdentifier = exampleAwsVpclatticeServiceNetwork.Id,
DestinationArn = bucket.Arn,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpclattice.NewAccessLogSubscription(ctx, "example", &vpclattice.AccessLogSubscriptionArgs{
ResourceIdentifier: pulumi.Any(exampleAwsVpclatticeServiceNetwork.Id),
DestinationArn: pulumi.Any(bucket.Arn),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpclattice.AccessLogSubscription;
import com.pulumi.aws.vpclattice.AccessLogSubscriptionArgs;
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 AccessLogSubscription("example", AccessLogSubscriptionArgs.builder()
.resourceIdentifier(exampleAwsVpclatticeServiceNetwork.id())
.destinationArn(bucket.arn())
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:vpclattice:AccessLogSubscription
properties:
resourceIdentifier: ${exampleAwsVpclatticeServiceNetwork.id}
destinationArn: ${bucket.arn}
Content copied to clipboard
Import
Using pulumi import
, import VPC Lattice Access Log Subscription using the access log subscription ID. For example:
$ pulumi import aws:vpclattice/accessLogSubscription:AccessLogSubscription example rft-8012925589
Content copied to clipboard
Properties
Link copied to clipboard
Amazon Resource Name (ARN) of the log destination.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Amazon Resource Name (ARN) of the service network or service.
Link copied to clipboard
The ID or Amazon Resource Identifier (ARN) of the service network or service. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
Link copied to clipboard
Type of log that monitors your Amazon VPC Lattice service networks. Valid values are: SERVICE
, RESOURCE
. Defaults to SERVICE
.