ServiceArgs

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

Resource for managing an AWS VPC Lattice Service.

Example Usage

Basic Usage

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

Import

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

$ pulumi import aws:vpclattice/service:Service example svc-06728e2357ea55f8a

Constructors

Link copied to clipboard
constructor(authType: Output<String>? = null, certificateArn: Output<String>? = null, customDomainName: 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 certificateArn: Output<String>? = null

Amazon Resource Name (ARN) of the certificate.

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

Custom domain name of the service.

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

Name of the service. The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.Must be between 3 and 40 characters in length. 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(): ServiceArgs