@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
60 lines • 2.25 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGeoRegionsOutput = exports.getGeoRegions = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `dynatrace.getGeoRegions` data source retrieves the list of regions and their codes based on country code.
*
* - `countryCode` (String) - The ISO code of the required country
*
* Geographic regions API: GET regions of a country - https://docs.dynatrace.com/docs/shortlink/api-v2-rum-geographic-regions-get-regions-country
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getGeoRegions({
* countryCode: "FR",
* });
* export const test = example;
* ```
*/
function getGeoRegions(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getGeoRegions:getGeoRegions", {
"countryCode": args.countryCode,
}, opts);
}
exports.getGeoRegions = getGeoRegions;
/**
* The `dynatrace.getGeoRegions` data source retrieves the list of regions and their codes based on country code.
*
* - `countryCode` (String) - The ISO code of the required country
*
* Geographic regions API: GET regions of a country - https://docs.dynatrace.com/docs/shortlink/api-v2-rum-geographic-regions-get-regions-country
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getGeoRegions({
* countryCode: "FR",
* });
* export const test = example;
* ```
*/
function getGeoRegionsOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getGeoRegions:getGeoRegions", {
"countryCode": args.countryCode,
}, opts);
}
exports.getGeoRegionsOutput = getGeoRegionsOutput;
//# sourceMappingURL=getGeoRegions.js.map