AccessLogSubscriptionArgs

data class AccessLogSubscriptionArgs(val destinationArn: Output<String>? = null, val resourceIdentifier: Output<String>? = null, val serviceNetworkLogType: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AccessLogSubscriptionArgs>

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,
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.AccessLogSubscription("example",
resource_identifier=example_aws_vpclattice_service_network["id"],
destination_arn=bucket["arn"])
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,
});
});
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
})
}
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());
}
}
resources:
example:
type: aws:vpclattice:AccessLogSubscription
properties:
resourceIdentifier: ${exampleAwsVpclatticeServiceNetwork.id}
destinationArn: ${bucket.arn}

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

Constructors

Link copied to clipboard
constructor(destinationArn: Output<String>? = null, resourceIdentifier: Output<String>? = null, serviceNetworkLogType: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Amazon Resource Name (ARN) of the log destination.

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

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
val serviceNetworkLogType: Output<String>? = null

Type of log that monitors your Amazon VPC Lattice service networks. Valid values are: SERVICE, RESOURCE. Defaults to SERVICE.

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

Functions

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