AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.vpclattice.getServiceNetwork
Explore with Pulumi AI
Data source 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 = aws.vpclattice.getServiceNetwork({
serviceNetworkIdentifier: "snsa-01112223334445556",
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.get_service_network(service_network_identifier="snsa-01112223334445556")
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.LookupServiceNetwork(ctx, &vpclattice.LookupServiceNetworkArgs{
ServiceNetworkIdentifier: "snsa-01112223334445556",
}, nil)
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 = Aws.VpcLattice.GetServiceNetwork.Invoke(new()
{
ServiceNetworkIdentifier = "snsa-01112223334445556",
});
});
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.GetServiceNetworkArgs;
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.getServiceNetwork(GetServiceNetworkArgs.builder()
.serviceNetworkIdentifier("snsa-01112223334445556")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:vpclattice:getServiceNetwork
Arguments:
serviceNetworkIdentifier: snsa-01112223334445556
Using getServiceNetwork
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 getServiceNetwork(args: GetServiceNetworkArgs, opts?: InvokeOptions): Promise<GetServiceNetworkResult>
function getServiceNetworkOutput(args: GetServiceNetworkOutputArgs, opts?: InvokeOptions): Output<GetServiceNetworkResult>
def get_service_network(service_network_identifier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceNetworkResult
def get_service_network_output(service_network_identifier: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceNetworkResult]
func LookupServiceNetwork(ctx *Context, args *LookupServiceNetworkArgs, opts ...InvokeOption) (*LookupServiceNetworkResult, error)
func LookupServiceNetworkOutput(ctx *Context, args *LookupServiceNetworkOutputArgs, opts ...InvokeOption) LookupServiceNetworkResultOutput
> Note: This function is named LookupServiceNetwork
in the Go SDK.
public static class GetServiceNetwork
{
public static Task<GetServiceNetworkResult> InvokeAsync(GetServiceNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetServiceNetworkResult> Invoke(GetServiceNetworkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceNetworkResult> getServiceNetwork(GetServiceNetworkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:vpclattice/getServiceNetwork:getServiceNetwork
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Network stringIdentifier - Identifier of the service network.
- Dictionary<string, string>
- Service
Network stringIdentifier - Identifier of the service network.
- map[string]string
- service
Network StringIdentifier - Identifier of the service network.
- Map<String,String>
- service
Network stringIdentifier - Identifier of the service network.
- {[key: string]: string}
- service_
network_ stridentifier - Identifier of the service network.
- Mapping[str, str]
- service
Network StringIdentifier - Identifier of the service network.
- Map<String>
getServiceNetwork Result
The following output properties are available:
- Arn string
- ARN of the Service Network.
- Auth
Type string - Authentication type for the service network. Either
NONE
orAWS_IAM
. - Created
At string - Date and time the service network was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Date and time the service network was last updated.
- Name string
- Name of the service network.
- Number
Of intAssociated Services - Number of services associated with this service network.
- Number
Of intAssociated Vpcs - Number of VPCs associated with this service network.
- Service
Network stringIdentifier - Dictionary<string, string>
- Arn string
- ARN of the Service Network.
- Auth
Type string - Authentication type for the service network. Either
NONE
orAWS_IAM
. - Created
At string - Date and time the service network was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Date and time the service network was last updated.
- Name string
- Name of the service network.
- Number
Of intAssociated Services - Number of services associated with this service network.
- Number
Of intAssociated Vpcs - Number of VPCs associated with this service network.
- Service
Network stringIdentifier - map[string]string
- arn String
- ARN of the Service Network.
- auth
Type String - Authentication type for the service network. Either
NONE
orAWS_IAM
. - created
At String - Date and time the service network was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - Date and time the service network was last updated.
- name String
- Name of the service network.
- number
Of IntegerAssociated Services - Number of services associated with this service network.
- number
Of IntegerAssociated Vpcs - Number of VPCs associated with this service network.
- service
Network StringIdentifier - Map<String,String>
- arn string
- ARN of the Service Network.
- auth
Type string - Authentication type for the service network. Either
NONE
orAWS_IAM
. - created
At string - Date and time the service network was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringAt - Date and time the service network was last updated.
- name string
- Name of the service network.
- number
Of numberAssociated Services - Number of services associated with this service network.
- number
Of numberAssociated Vpcs - Number of VPCs associated with this service network.
- service
Network stringIdentifier - {[key: string]: string}
- arn str
- ARN of the Service Network.
- auth_
type str - Authentication type for the service network. Either
NONE
orAWS_IAM
. - created_
at str - Date and time the service network was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strat - Date and time the service network was last updated.
- name str
- Name of the service network.
- number_
of_ intassociated_ services - Number of services associated with this service network.
- number_
of_ intassociated_ vpcs - Number of VPCs associated with this service network.
- service_
network_ stridentifier - Mapping[str, str]
- arn String
- ARN of the Service Network.
- auth
Type String - Authentication type for the service network. Either
NONE
orAWS_IAM
. - created
At String - Date and time the service network was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - Date and time the service network was last updated.
- name String
- Name of the service network.
- number
Of NumberAssociated Services - Number of services associated with this service network.
- number
Of NumberAssociated Vpcs - Number of VPCs associated with this service network.
- service
Network StringIdentifier - Map<String>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.