@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
152 lines (151 loc) • 4.37 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* The App Mesh Virtual Service data source allows details of an App Mesh Virtual Service to be retrieved by its name, mesh_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.appmesh.getVirtualService({
* name: "example.mesh.local",
* meshName: "example-mesh",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const current = aws.getCallerIdentity({});
* const test = current.then(current => aws.appmesh.getVirtualService({
* name: "example.mesh.local",
* meshName: "example-mesh",
* meshOwner: current.accountId,
* }));
* ```
*/
export declare function getVirtualService(args: GetVirtualServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetVirtualServiceResult>;
/**
* A collection of arguments for invoking getVirtualService.
*/
export interface GetVirtualServiceArgs {
/**
* Name of the service mesh in which the virtual service exists.
*/
meshName: string;
/**
* AWS account ID of the service mesh's owner.
*/
meshOwner?: string;
/**
* Name of the virtual service.
*/
name: string;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: string;
/**
* Map of tags.
*/
tags?: {
[key: string]: string;
};
}
/**
* A collection of values returned by getVirtualService.
*/
export interface GetVirtualServiceResult {
/**
* ARN of the virtual service.
*/
readonly arn: string;
/**
* Creation date of the virtual service.
*/
readonly createdDate: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Last update date of the virtual service.
*/
readonly lastUpdatedDate: string;
readonly meshName: string;
readonly meshOwner: string;
readonly name: string;
readonly region: string;
/**
* Resource owner's AWS account ID.
*/
readonly resourceOwner: string;
/**
* Virtual service specification. See the `aws.appmesh.VirtualService` resource for details.
*/
readonly specs: outputs.appmesh.GetVirtualServiceSpec[];
/**
* Map of tags.
*/
readonly tags: {
[key: string]: string;
};
}
/**
* The App Mesh Virtual Service data source allows details of an App Mesh Virtual Service to be retrieved by its name, mesh_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.appmesh.getVirtualService({
* name: "example.mesh.local",
* meshName: "example-mesh",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const current = aws.getCallerIdentity({});
* const test = current.then(current => aws.appmesh.getVirtualService({
* name: "example.mesh.local",
* meshName: "example-mesh",
* meshOwner: current.accountId,
* }));
* ```
*/
export declare function getVirtualServiceOutput(args: GetVirtualServiceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVirtualServiceResult>;
/**
* A collection of arguments for invoking getVirtualService.
*/
export interface GetVirtualServiceOutputArgs {
/**
* Name of the service mesh in which the virtual service exists.
*/
meshName: pulumi.Input<string>;
/**
* AWS account ID of the service mesh's owner.
*/
meshOwner?: pulumi.Input<string>;
/**
* Name of the virtual service.
*/
name: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* Map of tags.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}