1. Packages
  2. Alicloud Provider
  3. API Docs
  4. rds
  5. getCollationTimeZones
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.rds.getCollationTimeZones

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    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:

    CollationTimeZones List<Pulumi.AliCloud.Rds.Inputs.GetCollationTimeZonesCollationTimeZone>
    An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
    OutputFile string
    File name where to save data source results (after running pulumi up).
    CollationTimeZones []GetCollationTimeZonesCollationTimeZone
    An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
    OutputFile string
    File name where to save data source results (after running pulumi up).
    collationTimeZones List<GetCollationTimeZonesCollationTimeZone>
    An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
    outputFile String
    File name where to save data source results (after running pulumi up).
    collationTimeZones GetCollationTimeZonesCollationTimeZone[]
    An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
    outputFile string
    File name where to save data source results (after running pulumi up).
    collation_time_zones Sequence[GetCollationTimeZonesCollationTimeZone]
    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).
    collationTimeZones List<Property Map>
    An array that consists of the character set collations and time zones that are available for use in ApsaraDB RDS.
    outputFile 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>
    CollationTimeZones List<Pulumi.AliCloud.Rds.Outputs.GetCollationTimeZonesCollationTimeZone>
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    CollationTimeZones []GetCollationTimeZonesCollationTimeZone
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    collationTimeZones List<GetCollationTimeZonesCollationTimeZone>
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    collationTimeZones GetCollationTimeZonesCollationTimeZone[]
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    collation_time_zones Sequence[GetCollationTimeZonesCollationTimeZone]
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    collationTimeZones List<Property Map>
    outputFile String

    Supporting Types

    GetCollationTimeZonesCollationTimeZone

    Description string
    The code of the instance type.
    StandardTimeOffset string
    The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
    TimeZone string
    The time zone that is available for use in ApsaraDB RDS.
    Description string
    The code of the instance type.
    StandardTimeOffset string
    The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
    TimeZone string
    The time zone that is available for use in ApsaraDB RDS.
    description String
    The code of the instance type.
    standardTimeOffset String
    The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
    timeZone String
    The time zone that is available for use in ApsaraDB RDS.
    description string
    The code of the instance type.
    standardTimeOffset string
    The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
    timeZone string
    The time zone that is available for use in ApsaraDB RDS.
    description str
    The code of the instance type.
    standard_time_offset str
    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.
    standardTimeOffset String
    The offset of the UTC time. The offset is in the following format: (UTC+HH:mm).
    timeZone 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.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi