Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
Data source for managing an AWS VPC Lattice Service.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.VpcLattice.GetService.Invoke();
});
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.LookupService(ctx, nil, nil)
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.VpclatticeFunctions;
import com.pulumi.aws.vpclattice.inputs.GetServiceArgs;
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) {
final var example = VpclatticeFunctions.getService();
}
}
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.vpclattice.getService({});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.get_service()
variables:
example:
fn::invoke:
Function: aws:vpclattice:getService
Arguments: {}
Using getService
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>def get_service(service_identifier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(service_identifier: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput> Note: This function is named LookupService in the Go SDK.
public static class GetService
{
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
fn::invoke:
function: aws:vpclattice/getService:getService
arguments:
# arguments dictionaryThe following arguments are supported:
- Service
Identifier string - ID or Amazon Resource Name (ARN) of the service network
- Dictionary<string, string>
- List of tags associated with the service.
- Service
Identifier string - ID or Amazon Resource Name (ARN) of the service network
- map[string]string
- List of tags associated with the service.
- service
Identifier String - ID or Amazon Resource Name (ARN) of the service network
- Map<String,String>
- List of tags associated with the service.
- service
Identifier string - ID or Amazon Resource Name (ARN) of the service network
- {[key: string]: string}
- List of tags associated with the service.
- service_
identifier str - ID or Amazon Resource Name (ARN) of the service network
- Mapping[str, str]
- List of tags associated with the service.
- service
Identifier String - ID or Amazon Resource Name (ARN) of the service network
- Map<String>
- List of tags associated with the service.
getService Result
The following output properties are available:
- Arn string
- ARN of the service.
- Auth
Type string - Type of IAM policy. Either
NONEorAWS_IAM. - Certificate
Arn string - Amazon Resource Name (ARN) of the certificate.
- Custom
Domain stringName - Custom domain name of the service.
- Dns
Entries List<GetService Dns Entry> - DNS name of the service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Service
Identifier string - Status string
- Status of the service.
- Dictionary<string, string>
- List of tags associated with the service.
- Arn string
- ARN of the service.
- Auth
Type string - Type of IAM policy. Either
NONEorAWS_IAM. - Certificate
Arn string - Amazon Resource Name (ARN) of the certificate.
- Custom
Domain stringName - Custom domain name of the service.
- Dns
Entries []GetService Dns Entry - DNS name of the service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Service
Identifier string - Status string
- Status of the service.
- map[string]string
- List of tags associated with the service.
- arn String
- ARN of the service.
- auth
Type String - Type of IAM policy. Either
NONEorAWS_IAM. - certificate
Arn String - Amazon Resource Name (ARN) of the certificate.
- custom
Domain StringName - Custom domain name of the service.
- dns
Entries List<GetService Dns Entry> - DNS name of the service.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- service
Identifier String - status String
- Status of the service.
- Map<String,String>
- List of tags associated with the service.
- arn string
- ARN of the service.
- auth
Type string - Type of IAM policy. Either
NONEorAWS_IAM. - certificate
Arn string - Amazon Resource Name (ARN) of the certificate.
- custom
Domain stringName - Custom domain name of the service.
- dns
Entries GetService Dns Entry[] - DNS name of the service.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- service
Identifier string - status string
- Status of the service.
- {[key: string]: string}
- List of tags associated with the service.
- arn str
- ARN of the service.
- auth_
type str - Type of IAM policy. Either
NONEorAWS_IAM. - certificate_
arn str - Amazon Resource Name (ARN) of the certificate.
- custom_
domain_ strname - Custom domain name of the service.
- dns_
entries Sequence[GetService Dns Entry] - DNS name of the service.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- service_
identifier str - status str
- Status of the service.
- Mapping[str, str]
- List of tags associated with the service.
- arn String
- ARN of the service.
- auth
Type String - Type of IAM policy. Either
NONEorAWS_IAM. - certificate
Arn String - Amazon Resource Name (ARN) of the certificate.
- custom
Domain StringName - Custom domain name of the service.
- dns
Entries List<Property Map> - DNS name of the service.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- service
Identifier String - status String
- Status of the service.
- Map<String>
- List of tags associated with the service.
Supporting Types
GetServiceDnsEntry
- Domain
Name string - Hosted
Zone stringId
- Domain
Name string - Hosted
Zone stringId
- domain
Name String - hosted
Zone StringId
- domain
Name string - hosted
Zone stringId
- domain_
name str - hosted_
zone_ strid
- domain
Name String - hosted
Zone StringId
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi