Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.appmesh.getVirtualGateway
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Data source for managing an AWS App Mesh Virtual Gateway.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.appmesh.getVirtualGateway({
    meshName: "mesh-gateway",
    name: "example-mesh",
});
import pulumi
import pulumi_aws as aws
example = aws.appmesh.get_virtual_gateway(mesh_name="mesh-gateway",
    name="example-mesh")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appmesh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appmesh.LookupVirtualGateway(ctx, &appmesh.LookupVirtualGatewayArgs{
			MeshName: "mesh-gateway",
			Name:     "example-mesh",
		}, 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.AppMesh.GetVirtualGateway.Invoke(new()
    {
        MeshName = "mesh-gateway",
        Name = "example-mesh",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appmesh.AppmeshFunctions;
import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
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 = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
            .meshName("mesh-gateway")
            .name("example-mesh")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      Function: aws:appmesh:getVirtualGateway
      Arguments:
        meshName: mesh-gateway
        name: example-mesh
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetCallerIdentityArgs;
import com.pulumi.aws.appmesh.AppmeshFunctions;
import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
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 current = AwsFunctions.getCallerIdentity();
        final var test = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
            .name("example.mesh.local")
            .meshName("example-mesh")
            .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
            .build());
    }
}
variables:
  current:
    fn::invoke:
      Function: aws:getCallerIdentity
      Arguments: {}
  test:
    fn::invoke:
      Function: aws:appmesh:getVirtualGateway
      Arguments:
        name: example.mesh.local
        meshName: example-mesh
        meshOwner: ${current.accountId}
Using getVirtualGateway
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 getVirtualGateway(args: GetVirtualGatewayArgs, opts?: InvokeOptions): Promise<GetVirtualGatewayResult>
function getVirtualGatewayOutput(args: GetVirtualGatewayOutputArgs, opts?: InvokeOptions): Output<GetVirtualGatewayResult>def get_virtual_gateway(mesh_name: Optional[str] = None,
                        name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVirtualGatewayResult
def get_virtual_gateway_output(mesh_name: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetVirtualGatewayResult]func LookupVirtualGateway(ctx *Context, args *LookupVirtualGatewayArgs, opts ...InvokeOption) (*LookupVirtualGatewayResult, error)
func LookupVirtualGatewayOutput(ctx *Context, args *LookupVirtualGatewayOutputArgs, opts ...InvokeOption) LookupVirtualGatewayResultOutput> Note: This function is named LookupVirtualGateway in the Go SDK.
public static class GetVirtualGateway 
{
    public static Task<GetVirtualGatewayResult> InvokeAsync(GetVirtualGatewayArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualGatewayResult> Invoke(GetVirtualGatewayInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualGatewayResult> getVirtualGateway(GetVirtualGatewayArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws:appmesh/getVirtualGateway:getVirtualGateway
  arguments:
    # arguments dictionaryThe following arguments are supported:
getVirtualGateway Result
The following output properties are available:
- Arn string
 - ARN of the virtual gateway.
 - Created
Date string - Creation date of the virtual gateway.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Last
Updated stringDate  - Last update date of the virtual gateway.
 - Mesh
Name string - Mesh
Owner string - Name string
 - Resource
Owner string - Resource owner's AWS account ID.
 - Specs
List<Get
Virtual Gateway Spec>  - Virtual gateway specification. See the 
aws.appmesh.VirtualGatewayresource for details. - Dictionary<string, string>
 - Map of tags.
 
- Arn string
 - ARN of the virtual gateway.
 - Created
Date string - Creation date of the virtual gateway.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Last
Updated stringDate  - Last update date of the virtual gateway.
 - Mesh
Name string - Mesh
Owner string - Name string
 - Resource
Owner string - Resource owner's AWS account ID.
 - Specs
[]Get
Virtual Gateway Spec  - Virtual gateway specification. See the 
aws.appmesh.VirtualGatewayresource for details. - map[string]string
 - Map of tags.
 
- arn String
 - ARN of the virtual gateway.
 - created
Date String - Creation date of the virtual gateway.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - last
Updated StringDate  - Last update date of the virtual gateway.
 - mesh
Name String - mesh
Owner String - name String
 - resource
Owner String - Resource owner's AWS account ID.
 - specs
List<Get
Virtual Gateway Spec>  - Virtual gateway specification. See the 
aws.appmesh.VirtualGatewayresource for details. - Map<String,String>
 - Map of tags.
 
- arn string
 - ARN of the virtual gateway.
 - created
Date string - Creation date of the virtual gateway.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - last
Updated stringDate  - Last update date of the virtual gateway.
 - mesh
Name string - mesh
Owner string - name string
 - resource
Owner string - Resource owner's AWS account ID.
 - specs
Get
Virtual Gateway Spec[]  - Virtual gateway specification. See the 
aws.appmesh.VirtualGatewayresource for details. - {[key: string]: string}
 - Map of tags.
 
- arn str
 - ARN of the virtual gateway.
 - created_
date str - Creation date of the virtual gateway.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - last_
updated_ strdate  - Last update date of the virtual gateway.
 - mesh_
name str - mesh_
owner str - name str
 - resource_
owner str - Resource owner's AWS account ID.
 - specs
Sequence[Get
Virtual Gateway Spec]  - Virtual gateway specification. See the 
aws.appmesh.VirtualGatewayresource for details. - Mapping[str, str]
 - Map of tags.
 
- arn String
 - ARN of the virtual gateway.
 - created
Date String - Creation date of the virtual gateway.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - last
Updated StringDate  - Last update date of the virtual gateway.
 - mesh
Name String - mesh
Owner String - name String
 - resource
Owner String - Resource owner's AWS account ID.
 - specs List<Property Map>
 - Virtual gateway specification. See the 
aws.appmesh.VirtualGatewayresource for details. - Map<String>
 - Map of tags.
 
Supporting Types
GetVirtualGatewaySpec   
GetVirtualGatewaySpecBackendDefault     
GetVirtualGatewaySpecBackendDefaultClientPolicy       
GetVirtualGatewaySpecBackendDefaultClientPolicyTl        
- certificates List<Property Map>
 - enforce Boolean
 - ports List<Number>
 - validations List<Property Map>
 
GetVirtualGatewaySpecBackendDefaultClientPolicyTlCertificate         
GetVirtualGatewaySpecBackendDefaultClientPolicyTlCertificateFile          
- Certificate
Chain string - Private
Key string 
- Certificate
Chain string - Private
Key string 
- certificate
Chain String - private
Key String 
- certificate
Chain string - private
Key string 
- certificate_
chain str - private_
key str 
- certificate
Chain String - private
Key String 
GetVirtualGatewaySpecBackendDefaultClientPolicyTlCertificateSd          
- Secret
Name string 
- Secret
Name string 
- secret
Name String 
- secret
Name string 
- secret_
name str 
- secret
Name String 
GetVirtualGatewaySpecBackendDefaultClientPolicyTlValidation         
GetVirtualGatewaySpecBackendDefaultClientPolicyTlValidationSubjectAlternativeName            
GetVirtualGatewaySpecBackendDefaultClientPolicyTlValidationSubjectAlternativeNameMatch             
- Exacts List<string>
 
- Exacts []string
 
- exacts List<String>
 
- exacts string[]
 
- exacts Sequence[str]
 
- exacts List<String>
 
GetVirtualGatewaySpecBackendDefaultClientPolicyTlValidationTrust          
GetVirtualGatewaySpecBackendDefaultClientPolicyTlValidationTrustAcm           
- List<string>
 
- []string
 
- List<String>
 
- string[]
 
- Sequence[str]
 
- List<String>
 
GetVirtualGatewaySpecBackendDefaultClientPolicyTlValidationTrustFile           
- Certificate
Chain string 
- Certificate
Chain string 
- certificate
Chain String 
- certificate
Chain string 
- certificate
Chain String 
GetVirtualGatewaySpecBackendDefaultClientPolicyTlValidationTrustSd           
- Secret
Name string 
- Secret
Name string 
- secret
Name String 
- secret
Name string 
- secret_
name str 
- secret
Name String 
GetVirtualGatewaySpecListener    
GetVirtualGatewaySpecListenerConnectionPool      
GetVirtualGatewaySpecListenerConnectionPoolGrpc       
- Max
Requests int 
- Max
Requests int 
- max
Requests Integer 
- max
Requests number 
- max_
requests int 
- max
Requests Number 
GetVirtualGatewaySpecListenerConnectionPoolHttp       
- Max
Connections int - Max
Pending intRequests  
- Max
Connections int - Max
Pending intRequests  
- max
Connections Integer - max
Pending IntegerRequests  
- max
Connections number - max
Pending numberRequests  
- max
Connections Number - max
Pending NumberRequests  
GetVirtualGatewaySpecListenerConnectionPoolHttp2       
- Max
Requests int 
- Max
Requests int 
- max
Requests Integer 
- max
Requests number 
- max_
requests int 
- max
Requests Number 
GetVirtualGatewaySpecListenerHealthCheck      
- Healthy
Threshold int - Interval
Millis int - Path string
 - Port int
 - Protocol string
 - Timeout
Millis int - Unhealthy
Threshold int 
- Healthy
Threshold int - Interval
Millis int - Path string
 - Port int
 - Protocol string
 - Timeout
Millis int - Unhealthy
Threshold int 
- healthy
Threshold Integer - interval
Millis Integer - path String
 - port Integer
 - protocol String
 - timeout
Millis Integer - unhealthy
Threshold Integer 
- healthy
Threshold number - interval
Millis number - path string
 - port number
 - protocol string
 - timeout
Millis number - unhealthy
Threshold number 
- healthy_
threshold int - interval_
millis int - path str
 - port int
 - protocol str
 - timeout_
millis int - unhealthy_
threshold int 
- healthy
Threshold Number - interval
Millis Number - path String
 - port Number
 - protocol String
 - timeout
Millis Number - unhealthy
Threshold Number 
GetVirtualGatewaySpecListenerPortMapping      
GetVirtualGatewaySpecListenerTl     
GetVirtualGatewaySpecListenerTlCertificate      
GetVirtualGatewaySpecListenerTlCertificateAcm       
- Certificate
Arn string 
- Certificate
Arn string 
- certificate
Arn String 
- certificate
Arn string 
- certificate_
arn str 
- certificate
Arn String 
GetVirtualGatewaySpecListenerTlCertificateFile       
- Certificate
Chain string - Private
Key string 
- Certificate
Chain string - Private
Key string 
- certificate
Chain String - private
Key String 
- certificate
Chain string - private
Key string 
- certificate_
chain str - private_
key str 
- certificate
Chain String - private
Key String 
GetVirtualGatewaySpecListenerTlCertificateSd       
- Secret
Name string 
- Secret
Name string 
- secret
Name String 
- secret
Name string 
- secret_
name str 
- secret
Name String 
GetVirtualGatewaySpecListenerTlValidation      
GetVirtualGatewaySpecListenerTlValidationSubjectAlternativeName         
GetVirtualGatewaySpecListenerTlValidationSubjectAlternativeNameMatch          
- Exacts List<string>
 
- Exacts []string
 
- exacts List<String>
 
- exacts string[]
 
- exacts Sequence[str]
 
- exacts List<String>
 
GetVirtualGatewaySpecListenerTlValidationTrust       
GetVirtualGatewaySpecListenerTlValidationTrustFile        
- Certificate
Chain string 
- Certificate
Chain string 
- certificate
Chain String 
- certificate
Chain string 
- certificate
Chain String 
GetVirtualGatewaySpecListenerTlValidationTrustSd        
- Secret
Name string 
- Secret
Name string 
- secret
Name String 
- secret
Name string 
- secret_
name str 
- secret
Name String 
GetVirtualGatewaySpecLogging    
GetVirtualGatewaySpecLoggingAccessLog      
GetVirtualGatewaySpecLoggingAccessLogFile       
- formats List<Property Map>
 - path String
 
GetVirtualGatewaySpecLoggingAccessLogFileFormat        
- jsons List<Property Map>
 - text String
 
GetVirtualGatewaySpecLoggingAccessLogFileFormatJson         
Package Details
- Repository
 - AWS Classic pulumi/pulumi-aws
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
awsTerraform Provider. 
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi