Try AWS Native preview for resources not in the classic version.
aws.vpclattice.AccessLogSubscription
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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:
- Destination
Arn string Amazon Resource Name (ARN) of the log destination.
- Resource
Identifier 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.
- Dictionary<string, string>
- Destination
Arn string Amazon Resource Name (ARN) of the log destination.
- Resource
Identifier 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.
- map[string]string
- destination
Arn String Amazon Resource Name (ARN) of the log destination.
- resource
Identifier 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.
- Map<String,String>
- destination
Arn string Amazon Resource Name (ARN) of the log destination.
- resource
Identifier 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.
- {[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.
- Mapping[str, str]
- destination
Arn String Amazon Resource Name (ARN) of the log destination.
- resource
Identifier 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.
- 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.
- Resource
Arn string Amazon Resource Name (ARN) of the service network or service.
- 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.
- Resource
Arn string Amazon Resource Name (ARN) of the service network or service.
- 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.
- resource
Arn String Amazon Resource Name (ARN) of the service network or service.
- 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.
- resource
Arn string Amazon Resource Name (ARN) of the service network or service.
- {[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.
- 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.
- resource
Arn String Amazon Resource Name (ARN) of the service network or service.
- 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.
- Arn string
Amazon Resource Name (ARN) of the access log subscription.
- Destination
Arn string Amazon Resource Name (ARN) of the log destination.
- Resource
Arn string Amazon Resource Name (ARN) of the service network or service.
- Resource
Identifier 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.
- Dictionary<string, string>
- Dictionary<string, string>
- Arn string
Amazon Resource Name (ARN) of the access log subscription.
- Destination
Arn string Amazon Resource Name (ARN) of the log destination.
- Resource
Arn string Amazon Resource Name (ARN) of the service network or service.
- Resource
Identifier 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.
- map[string]string
- map[string]string
- arn String
Amazon Resource Name (ARN) of the access log subscription.
- destination
Arn String Amazon Resource Name (ARN) of the log destination.
- resource
Arn String Amazon Resource Name (ARN) of the service network or service.
- resource
Identifier 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.
- Map<String,String>
- Map<String,String>
- arn string
Amazon Resource Name (ARN) of the access log subscription.
- destination
Arn string Amazon Resource Name (ARN) of the log destination.
- resource
Arn string Amazon Resource Name (ARN) of the service network or service.
- resource
Identifier 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.
- {[key: string]: string}
- {[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.
- Mapping[str, str]
- Mapping[str, str]
- arn String
Amazon Resource Name (ARN) of the access log subscription.
- destination
Arn String Amazon Resource Name (ARN) of the log destination.
- resource
Arn String Amazon Resource Name (ARN) of the service network or service.
- resource
Identifier 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.
- Map<String>
- 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.
Try AWS Native preview for resources not in the classic version.