1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. actiontrail
  5. getGlobalEventsStorageRegion
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

alicloud.actiontrail.getGlobalEventsStorageRegion

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

    This data source provides the Actiontrail Global Events Storage Region of the current Alibaba Cloud user.

    NOTE: Available in v1.201.0+.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.ActionTrail.GetGlobalEventsStorageRegion.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["alicloudActiontrailGlobalEventsStorageRegion1"] = @default.Apply(@default => @default.Apply(getGlobalEventsStorageRegionResult => getGlobalEventsStorageRegionResult.StorageRegion)),
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/actiontrail"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := actiontrail.LookupGlobalEventsStorageRegion(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("alicloudActiontrailGlobalEventsStorageRegion1", _default.StorageRegion)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.actiontrail.ActiontrailFunctions;
    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 = ActiontrailFunctions.getGlobalEventsStorageRegion();
    
            ctx.export("alicloudActiontrailGlobalEventsStorageRegion1", default_.storageRegion());
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.actiontrail.get_global_events_storage_region()
    pulumi.export("alicloudActiontrailGlobalEventsStorageRegion1", default.storage_region)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.actiontrail.getGlobalEventsStorageRegion({});
    export const alicloudActiontrailGlobalEventsStorageRegion1 = _default.then(_default => _default.storageRegion);
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:actiontrail:getGlobalEventsStorageRegion
          Arguments: {}
    outputs:
      alicloudActiontrailGlobalEventsStorageRegion1: ${default.storageRegion}
    

    Using getGlobalEventsStorageRegion

    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 getGlobalEventsStorageRegion(opts?: InvokeOptions): Promise<GetGlobalEventsStorageRegionResult>
    function getGlobalEventsStorageRegionOutput(opts?: InvokeOptions): Output<GetGlobalEventsStorageRegionResult>
    def get_global_events_storage_region(opts: Optional[InvokeOptions] = None) -> GetGlobalEventsStorageRegionResult
    def get_global_events_storage_region_output(opts: Optional[InvokeOptions] = None) -> Output[GetGlobalEventsStorageRegionResult]
    func LookupGlobalEventsStorageRegion(ctx *Context, opts ...InvokeOption) (*LookupGlobalEventsStorageRegionResult, error)
    func LookupGlobalEventsStorageRegionOutput(ctx *Context, opts ...InvokeOption) LookupGlobalEventsStorageRegionResultOutput

    > Note: This function is named LookupGlobalEventsStorageRegion in the Go SDK.

    public static class GetGlobalEventsStorageRegion 
    {
        public static Task<GetGlobalEventsStorageRegionResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetGlobalEventsStorageRegionResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGlobalEventsStorageRegionResult> getGlobalEventsStorageRegion(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:actiontrail/getGlobalEventsStorageRegion:getGlobalEventsStorageRegion
      arguments:
        # arguments dictionary

    getGlobalEventsStorageRegion Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    StorageRegion string
    Id string
    The provider-assigned unique ID for this managed resource.
    StorageRegion string
    id String
    The provider-assigned unique ID for this managed resource.
    storageRegion String
    id string
    The provider-assigned unique ID for this managed resource.
    storageRegion string
    id str
    The provider-assigned unique ID for this managed resource.
    storage_region str
    id String
    The provider-assigned unique ID for this managed resource.
    storageRegion String

    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.49.0 published on Sunday, Feb 4, 2024 by Pulumi