Data Source: awsAppmeshVirtualService
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
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsAppmeshVirtualService.DataAwsAppmeshVirtualService(
this,
"test",
{
meshName: "example-mesh",
name: "example.mesh.local",
}
);
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const dataAwsCallerIdentityCurrent =
new aws.dataAwsCallerIdentity.DataAwsCallerIdentity(this, "current", {});
new aws.dataAwsAppmeshVirtualService.DataAwsAppmeshVirtualService(
this,
"test",
{
meshName: "example-mesh",
meshOwner: dataAwsCallerIdentityCurrent.accountId,
name: "example.mesh.local",
}
);
Argument Reference
The following arguments are supported:
name
- (Required) Name of the virtual service.meshName
- (Required) Name of the service mesh in which the virtual service exists.meshOwner
- (Optional) AWS account ID of the service mesh's owner.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- ARN of the virtual service.createdDate
- Creation date of the virtual service.lastUpdatedDate
- Last update date of the virtual service.resourceOwner
- Resource owner's AWS account ID.spec
- Virtual service specification. See theawsAppmeshVirtualService
resource for details.tags
- Map of tags.