Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.ecs.Regions
Explore with Pulumi AI
Use this data source to query detailed information of regions
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Ecs.Regions.Invoke(new()
{
Ids = new[]
{
"cn-beijing",
},
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.Regions(ctx, &ecs.RegionsArgs{
Ids: []string{
"cn-beijing",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.RegionsArgs;
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 default = EcsFunctions.Regions(RegionsArgs.builder()
.ids("cn-beijing")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.ecs.regions(ids=["cn-beijing"])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.ecs.Regions({
ids: ["cn-beijing"],
});
variables:
default:
fn::invoke:
Function: volcengine:ecs:Regions
Arguments:
ids:
- cn-beijing
Using Regions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function regions(args: RegionsArgs, opts?: InvokeOptions): Promise<RegionsResult>
function regionsOutput(args: RegionsOutputArgs, opts?: InvokeOptions): Output<RegionsResult>
def regions(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> RegionsResult
def regions_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[RegionsResult]
func Regions(ctx *Context, args *RegionsArgs, opts ...InvokeOption) (*RegionsResult, error)
func RegionsOutput(ctx *Context, args *RegionsOutputArgs, opts ...InvokeOption) RegionsResultOutput
public static class Regions
{
public static Task<RegionsResult> InvokeAsync(RegionsArgs args, InvokeOptions? opts = null)
public static Output<RegionsResult> Invoke(RegionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<RegionsResult> regions(RegionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:ecs:Regions
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of region ids.
- Output
File string - File name where to save data source results.
- Ids []string
- A list of region ids.
- Output
File string - File name where to save data source results.
- ids List<String>
- A list of region ids.
- output
File String - File name where to save data source results.
- ids string[]
- A list of region ids.
- output
File string - File name where to save data source results.
- ids Sequence[str]
- A list of region ids.
- output_
file str - File name where to save data source results.
- ids List<String>
- A list of region ids.
- output
File String - File name where to save data source results.
Regions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
List<Regions
Region> - The collection of region query.
- Total
Count int - The total count of region query.
- Ids List<string>
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
[]Regions
Region - The collection of region query.
- Total
Count int - The total count of region query.
- Ids []string
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- regions
List<Regions
Region> - The collection of region query.
- total
Count Integer - The total count of region query.
- ids List<String>
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- regions
Regions
Region[] - The collection of region query.
- total
Count number - The total count of region query.
- ids string[]
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- regions
Sequence[Regions
Region] - The collection of region query.
- total_
count int - The total count of region query.
- ids Sequence[str]
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- regions List<Property Map>
- The collection of region query.
- total
Count Number - The total count of region query.
- ids List<String>
- output
File String
Supporting Types
RegionsRegion
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.