Skip to content

Data Source: awsGlobalacceleratorAccelerator

Provides information about a Global Accelerator accelerator.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
/*Terraform Variables are not always the best fit for getting inputs in the context of Terraform CDK.
You can read more about this at https://cdk.tf/variables*/
const acceleratorArn = new cdktf.TerraformVariable(this, "accelerator_arn", {
  default: "",
});
const acceleratorName = new cdktf.TerraformVariable(this, "accelerator_name", {
  default: "",
});
new aws.dataAwsGlobalacceleratorAccelerator.DataAwsGlobalacceleratorAccelerator(
  this,
  "example",
  {
    arn: acceleratorArn.value,
    name: acceleratorName.value,
  }
);

Argument Reference

The following arguments are supported:

  • arn - (Optional) Full ARN of the Global Accelerator.
  • name - (Optional) Unique name of the Global Accelerator.

\~> NOTE: When both arn and name are specified, arn takes precedence.

Attributes Reference

See the awsGlobalacceleratorAccelerator resource for details on the returned attributes - they are identical.