1. Packages
  2. AWS Classic
  3. API Docs
  4. vpclattice
  5. AccessLogSubscription

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

aws.vpclattice.AccessLogSubscription

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

    Resource for managing an AWS VPC Lattice Service Network or Service Access log subscription.

    Example Usage

    Basic Usage

    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 = aws_vpclattice_service_network.Example.Id,
            DestinationArn = aws_s3.Bucket.Arn,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v5/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(aws_vpclattice_service_network.Example.Id),
    			DestinationArn:     pulumi.Any(aws_s3.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(aws_vpclattice_service_network.example().id())
                .destinationArn(aws_s3.bucket().arn())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.vpclattice.AccessLogSubscription("example",
        resource_identifier=aws_vpclattice_service_network["example"]["id"],
        destination_arn=aws_s3["bucket"]["arn"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.vpclattice.AccessLogSubscription("example", {
        resourceIdentifier: aws_vpclattice_service_network.example.id,
        destinationArn: aws_s3.bucket.arn,
    });
    
    resources:
      example:
        type: aws:vpclattice:AccessLogSubscription
        properties:
          resourceIdentifier: ${aws_vpclattice_service_network.example.id}
          destinationArn: ${aws_s3.bucket.arn}
    

    Create AccessLogSubscription Resource

    new AccessLogSubscription(name: string, args: AccessLogSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def AccessLogSubscription(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              destination_arn: Optional[str] = None,
                              resource_identifier: Optional[str] = None,
                              tags: Optional[Mapping[str, str]] = None)
    @overload
    def AccessLogSubscription(resource_name: str,
                              args: AccessLogSubscriptionArgs,
                              opts: Optional[ResourceOptions] = None)
    func NewAccessLogSubscription(ctx *Context, name string, args AccessLogSubscriptionArgs, opts ...ResourceOption) (*AccessLogSubscription, error)
    public AccessLogSubscription(string name, AccessLogSubscriptionArgs args, CustomResourceOptions? opts = null)
    public AccessLogSubscription(String name, AccessLogSubscriptionArgs args)
    public AccessLogSubscription(String name, AccessLogSubscriptionArgs args, CustomResourceOptions options)
    
    type: aws:vpclattice:AccessLogSubscription
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AccessLogSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AccessLogSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AccessLogSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessLogSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccessLogSubscriptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AccessLogSubscription Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AccessLogSubscription resource accepts the following input properties:

    DestinationArn string

    Amazon Resource Name (ARN) of the log destination.

    ResourceIdentifier string

    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.

    Tags Dictionary<string, string>
    DestinationArn string

    Amazon Resource Name (ARN) of the log destination.

    ResourceIdentifier string

    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.

    Tags map[string]string
    destinationArn String

    Amazon Resource Name (ARN) of the log destination.

    resourceIdentifier String

    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.

    tags Map<String,String>
    destinationArn string

    Amazon Resource Name (ARN) of the log destination.

    resourceIdentifier string

    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.

    tags {[key: string]: string}
    destination_arn str

    Amazon Resource Name (ARN) of the log destination.

    resource_identifier str

    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.

    tags Mapping[str, str]
    destinationArn String

    Amazon Resource Name (ARN) of the log destination.

    resourceIdentifier String

    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.

    tags Map<String>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccessLogSubscription resource produces the following output properties:

    Arn string

    Amazon Resource Name (ARN) of the access log subscription.

    Id string

    The provider-assigned unique ID for this managed resource.

    ResourceArn string

    Amazon Resource Name (ARN) of the service network or service.

    TagsAll Dictionary<string, string>
    Arn string

    Amazon Resource Name (ARN) of the access log subscription.

    Id string

    The provider-assigned unique ID for this managed resource.

    ResourceArn string

    Amazon Resource Name (ARN) of the service network or service.

    TagsAll map[string]string
    arn String

    Amazon Resource Name (ARN) of the access log subscription.

    id String

    The provider-assigned unique ID for this managed resource.

    resourceArn String

    Amazon Resource Name (ARN) of the service network or service.

    tagsAll Map<String,String>
    arn string

    Amazon Resource Name (ARN) of the access log subscription.

    id string

    The provider-assigned unique ID for this managed resource.

    resourceArn string

    Amazon Resource Name (ARN) of the service network or service.

    tagsAll {[key: string]: string}
    arn str

    Amazon Resource Name (ARN) of the access log subscription.

    id str

    The provider-assigned unique ID for this managed resource.

    resource_arn str

    Amazon Resource Name (ARN) of the service network or service.

    tags_all Mapping[str, str]
    arn String

    Amazon Resource Name (ARN) of the access log subscription.

    id String

    The provider-assigned unique ID for this managed resource.

    resourceArn String

    Amazon Resource Name (ARN) of the service network or service.

    tagsAll Map<String>

    Look up Existing AccessLogSubscription Resource

    Get an existing AccessLogSubscription resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AccessLogSubscriptionState, opts?: CustomResourceOptions): AccessLogSubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            destination_arn: Optional[str] = None,
            resource_arn: Optional[str] = None,
            resource_identifier: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> AccessLogSubscription
    func GetAccessLogSubscription(ctx *Context, name string, id IDInput, state *AccessLogSubscriptionState, opts ...ResourceOption) (*AccessLogSubscription, error)
    public static AccessLogSubscription Get(string name, Input<string> id, AccessLogSubscriptionState? state, CustomResourceOptions? opts = null)
    public static AccessLogSubscription get(String name, Output<String> id, AccessLogSubscriptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string

    Amazon Resource Name (ARN) of the access log subscription.

    DestinationArn string

    Amazon Resource Name (ARN) of the log destination.

    ResourceArn string

    Amazon Resource Name (ARN) of the service network or service.

    ResourceIdentifier string

    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.

    Tags Dictionary<string, string>
    TagsAll Dictionary<string, string>
    Arn string

    Amazon Resource Name (ARN) of the access log subscription.

    DestinationArn string

    Amazon Resource Name (ARN) of the log destination.

    ResourceArn string

    Amazon Resource Name (ARN) of the service network or service.

    ResourceIdentifier string

    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.

    Tags map[string]string
    TagsAll map[string]string
    arn String

    Amazon Resource Name (ARN) of the access log subscription.

    destinationArn String

    Amazon Resource Name (ARN) of the log destination.

    resourceArn String

    Amazon Resource Name (ARN) of the service network or service.

    resourceIdentifier String

    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.

    tags Map<String,String>
    tagsAll Map<String,String>
    arn string

    Amazon Resource Name (ARN) of the access log subscription.

    destinationArn string

    Amazon Resource Name (ARN) of the log destination.

    resourceArn string

    Amazon Resource Name (ARN) of the service network or service.

    resourceIdentifier string

    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.

    tags {[key: string]: string}
    tagsAll {[key: string]: string}
    arn str

    Amazon Resource Name (ARN) of the access log subscription.

    destination_arn str

    Amazon Resource Name (ARN) of the log destination.

    resource_arn str

    Amazon Resource Name (ARN) of the service network or service.

    resource_identifier str

    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.

    tags Mapping[str, str]
    tags_all Mapping[str, str]
    arn String

    Amazon Resource Name (ARN) of the access log subscription.

    destinationArn String

    Amazon Resource Name (ARN) of the log destination.

    resourceArn String

    Amazon Resource Name (ARN) of the service network or service.

    resourceIdentifier String

    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.

    tags Map<String>
    tagsAll Map<String>

    Import

    VPC Lattice Access Log Subscription can be imported using the access log subscription ID, e.g.,

     $ pulumi import aws:vpclattice/accessLogSubscription:AccessLogSubscription example rft-8012925589
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi