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
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"])
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
})
}
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 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}
Create AccessLogSubscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessLogSubscription(name: string, args: AccessLogSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def AccessLogSubscription(resource_name: str,
args: AccessLogSubscriptionArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var accessLogSubscriptionResource = new Aws.VpcLattice.AccessLogSubscription("accessLogSubscriptionResource", new()
{
DestinationArn = "string",
ResourceIdentifier = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := vpclattice.NewAccessLogSubscription(ctx, "accessLogSubscriptionResource", &vpclattice.AccessLogSubscriptionArgs{
DestinationArn: pulumi.String("string"),
ResourceIdentifier: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var accessLogSubscriptionResource = new AccessLogSubscription("accessLogSubscriptionResource", AccessLogSubscriptionArgs.builder()
.destinationArn("string")
.resourceIdentifier("string")
.tags(Map.of("string", "string"))
.build());
access_log_subscription_resource = aws.vpclattice.AccessLogSubscription("accessLogSubscriptionResource",
destination_arn="string",
resource_identifier="string",
tags={
"string": "string",
})
const accessLogSubscriptionResource = new aws.vpclattice.AccessLogSubscription("accessLogSubscriptionResource", {
destinationArn: "string",
resourceIdentifier: "string",
tags: {
string: "string",
},
});
type: aws:vpclattice:AccessLogSubscription
properties:
destinationArn: string
resourceIdentifier: string
tags:
string: string
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
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
To learn more about importing existing cloud resources, see Importing resources.
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.