Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.rds.getCollationTimeZones
Explore with Pulumi AI
Operation to query the character set collations and time zones available for use in ApsaraDB RDS.
NOTE: Available in v1.198.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const zones = alicloud.rds.getCollationTimeZones({
outputFile: "./classes.txt",
});
export const firstRdsCollationTimeZones = zones.then(zones => zones.collationTimeZones?.[0]);
import pulumi
import pulumi_alicloud as alicloud
zones = alicloud.rds.get_collation_time_zones(output_file="./classes.txt")
pulumi.export("firstRdsCollationTimeZones", zones.collation_time_zones[0])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
zones, err := rds.GetCollationTimeZones(ctx, &rds.GetCollationTimeZonesArgs{
OutputFile: pulumi.StringRef("./classes.txt"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstRdsCollationTimeZones", zones.CollationTimeZones[0])
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var zones = AliCloud.Rds.GetCollationTimeZones.Invoke(new()
{
OutputFile = "./classes.txt",
});
return new Dictionary<string, object?>
{
["firstRdsCollationTimeZones"] = zones.Apply(getCollationTimeZonesResult => getCollationTimeZonesResult.CollationTimeZones[0]),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rds.RdsFunctions;
import com.pulumi.alicloud.rds.inputs.GetCollationTimeZonesArgs;
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 zones = RdsFunctions.getCollationTimeZones(GetCollationTimeZonesArgs.builder()
.outputFile("./classes.txt")
.build());
ctx.export("firstRdsCollationTimeZones", zones.applyValue(getCollationTimeZonesResult -> getCollationTimeZonesResult.collationTimeZones()[0]));
}
}
variables:
zones:
fn::invoke:
Function: alicloud:rds:getCollationTimeZones
Arguments:
outputFile: ./classes.txt
outputs:
firstRdsCollationTimeZones: ${zones.collationTimeZones[0]}
Using getCollationTimeZones
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 getCollationTimeZones(args: GetCollationTimeZonesArgs, opts?: InvokeOptions): Promise<GetCollationTimeZonesResult>
function getCollationTimeZonesOutput(args: GetCollationTimeZonesOutputArgs, opts?: InvokeOptions): Output<GetCollationTimeZonesResult>
def get_collation_time_zones(collation_time_zones: Optional[Sequence[GetCollationTimeZonesCollationTimeZone]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCollationTimeZonesResult
def get_collation_time_zones_output(collation_time_zones: Optional[pulumi.Input[Sequence[pulumi.Input[GetCollationTimeZonesCollationTimeZoneArgs]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCollationTimeZonesResult]
func GetCollationTimeZones(ctx *Context, args *GetCollationTimeZonesArgs, opts ...InvokeOption) (*GetCollationTimeZonesResult, error)
func GetCollationTimeZonesOutput(ctx *Context, args *GetCollationTimeZonesOutputArgs, opts ...InvokeOption) GetCollationTimeZonesResultOutput
> Note: This function is named GetCollationTimeZones
in the Go SDK.
public static class GetCollationTimeZones
{
public static Task<GetCollationTimeZonesResult> InvokeAsync(GetCollationTimeZonesArgs args, InvokeOptions? opts = null)
public static Output<GetCollationTimeZonesResult> Invoke(GetCollationTimeZonesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCollationTimeZonesResult> getCollationTimeZones(GetCollationTimeZonesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:rds/getCollationTimeZones:getCollationTimeZones
arguments:
# arguments dictionary
The following arguments are supported:
- Collation
Time List<Pulumi.Zones Ali Cloud. Rds. Inputs. Get Collation Time Zones Collation Time Zone> - An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
- Output
File string - File name where to save data source results (after running
pulumi up
).
- Collation
Time []GetZones Collation Time Zones Collation Time Zone - An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
- Output
File string - File name where to save data source results (after running
pulumi up
).
- collation
Time List<GetZones Collation Time Zones Collation Time Zone> - An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
- output
File String - File name where to save data source results (after running
pulumi up
).
- collation
Time GetZones Collation Time Zones Collation Time Zone[] - An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
- output
File string - File name where to save data source results (after running
pulumi up
).
- collation_
time_ Sequence[Getzones Collation Time Zones Collation Time Zone] - An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
- output_
file str - File name where to save data source results (after running
pulumi up
).
- collation
Time List<Property Map>Zones - An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
- output
File String - File name where to save data source results (after running
pulumi up
).
getCollationTimeZones Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Collation
Time List<Pulumi.Zones Ali Cloud. Rds. Outputs. Get Collation Time Zones Collation Time Zone> - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Collation
Time []GetZones Collation Time Zones Collation Time Zone - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- collation
Time List<GetZones Collation Time Zones Collation Time Zone> - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- collation
Time GetZones Collation Time Zones Collation Time Zone[] - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- collation_
time_ Sequence[Getzones Collation Time Zones Collation Time Zone] - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- collation
Time List<Property Map>Zones - output
File String
Supporting Types
GetCollationTimeZonesCollationTimeZone
- Description string
- The code of the instance type.
- Standard
Time stringOffset - The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
- Time
Zone string - The time zone that is available for use in ApsaraDB RDS.
- Description string
- The code of the instance type.
- Standard
Time stringOffset - The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
- Time
Zone string - The time zone that is available for use in ApsaraDB RDS.
- description String
- The code of the instance type.
- standard
Time StringOffset - The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
- time
Zone String - The time zone that is available for use in ApsaraDB RDS.
- description string
- The code of the instance type.
- standard
Time stringOffset - The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
- time
Zone string - The time zone that is available for use in ApsaraDB RDS.
- description str
- The code of the instance type.
- standard_
time_ stroffset - The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
- time_
zone str - The time zone that is available for use in ApsaraDB RDS.
- description String
- The code of the instance type.
- standard
Time StringOffset - The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
- time
Zone String - The time zone that is available for use in ApsaraDB RDS.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.