getLocation

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

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.directconnect.DirectconnectFunctions;
import com.pulumi.aws.directconnect.inputs.GetLocationArgs;
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 = DirectconnectFunctions.getLocation(GetLocationArgs.builder()
.locationCode("CS32A-24FL")
.build());
}
}

Return

A collection of values returned by getLocation.

Parameters

argument

A collection of arguments for invoking getLocation.


suspend fun getLocation(locationCode: String): GetLocationResult

Return

A collection of values returned by getLocation.

Parameters

locationCode

Code for the location to retrieve.

See also


suspend fun getLocation(argument: suspend GetLocationPlainArgsBuilder.() -> Unit): GetLocationResult

Return

A collection of values returned by getLocation.

Parameters

argument

Builder for com.pulumi.aws.directconnect.kotlin.inputs.GetLocationPlainArgs.

See also