@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
91 lines (90 loc) • 3.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieve information about a specific AWS Direct Connect location in the current AWS Region.
* These are the locations that can be specified when configuring `aws.directconnect.Connection` or `aws.directconnect.LinkAggregationGroup` resources.
*
* > **Note:** This data source is different from the `aws.directconnect.getLocations` data source which retrieves information about all the AWS Direct Connect locations in the current AWS Region.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.directconnect.getLocation({
* locationCode: "CS32A-24FL",
* });
* ```
*/
export declare function getLocation(args: GetLocationArgs, opts?: pulumi.InvokeOptions): Promise<GetLocationResult>;
/**
* A collection of arguments for invoking getLocation.
*/
export interface GetLocationArgs {
/**
* Code for the location to retrieve.
*/
locationCode: 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;
}
/**
* A collection of values returned by getLocation.
*/
export interface GetLocationResult {
/**
* The available MAC Security (MACsec) port speeds for the location.
*/
readonly availableMacsecPortSpeeds: string[];
/**
* The available port speeds for the location.
*/
readonly availablePortSpeeds: string[];
/**
* Names of the service providers for the location.
*/
readonly availableProviders: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly locationCode: string;
/**
* Name of the location. This includes the name of the colocation partner and the physical site of the building.
*/
readonly locationName: string;
readonly region: string;
}
/**
* Retrieve information about a specific AWS Direct Connect location in the current AWS Region.
* These are the locations that can be specified when configuring `aws.directconnect.Connection` or `aws.directconnect.LinkAggregationGroup` resources.
*
* > **Note:** This data source is different from the `aws.directconnect.getLocations` data source which retrieves information about all the AWS Direct Connect locations in the current AWS Region.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.directconnect.getLocation({
* locationCode: "CS32A-24FL",
* });
* ```
*/
export declare function getLocationOutput(args: GetLocationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLocationResult>;
/**
* A collection of arguments for invoking getLocation.
*/
export interface GetLocationOutputArgs {
/**
* Code for the location to retrieve.
*/
locationCode: 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>;
}