ServiceNetworkArgs

data class ServiceNetworkArgs(val authType: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServiceNetworkArgs>

Resource for managing an AWS VPC Lattice Service Network.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.ServiceNetwork("example", {
name: "example",
authType: "AWS_IAM",
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.ServiceNetwork("example",
name="example",
auth_type="AWS_IAM")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VpcLattice.ServiceNetwork("example", new()
{
Name = "example",
AuthType = "AWS_IAM",
});
});
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.NewServiceNetwork(ctx, "example", &vpclattice.ServiceNetworkArgs{
Name: pulumi.String("example"),
AuthType: pulumi.String("AWS_IAM"),
})
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.ServiceNetwork;
import com.pulumi.aws.vpclattice.ServiceNetworkArgs;
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 ServiceNetwork("example", ServiceNetworkArgs.builder()
.name("example")
.authType("AWS_IAM")
.build());
}
}
resources:
example:
type: aws:vpclattice:ServiceNetwork
properties:
name: example
authType: AWS_IAM

Import

Using pulumi import, import VPC Lattice Service Network using the id. For example:

$ pulumi import aws:vpclattice/serviceNetwork:ServiceNetwork example sn-0158f91c1e3358dba

Constructors

Link copied to clipboard
constructor(authType: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Type of IAM policy. Either NONE or AWS_IAM.

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

Name of the service network The following arguments are optional:

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

Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

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