1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. actiontrail
  5. GlobalEventsStorageRegion
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.actiontrail.GlobalEventsStorageRegion

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a Global events storage region resource.

    For information about global events storage region and how to use it, see What is Global Events Storage Region.

    NOTE: Available since v1.201.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const foo = new alicloud.actiontrail.GlobalEventsStorageRegion("foo", {storageRegion: "cn-hangzhou"});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    foo = alicloud.actiontrail.GlobalEventsStorageRegion("foo", storage_region="cn-hangzhou")
    
    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 {
    		_, err := actiontrail.NewGlobalEventsStorageRegion(ctx, "foo", &actiontrail.GlobalEventsStorageRegionArgs{
    			StorageRegion: pulumi.String("cn-hangzhou"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new AliCloud.ActionTrail.GlobalEventsStorageRegion("foo", new()
        {
            StorageRegion = "cn-hangzhou",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.actiontrail.GlobalEventsStorageRegion;
    import com.pulumi.alicloud.actiontrail.GlobalEventsStorageRegionArgs;
    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) {
            var foo = new GlobalEventsStorageRegion("foo", GlobalEventsStorageRegionArgs.builder()
                .storageRegion("cn-hangzhou")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: alicloud:actiontrail:GlobalEventsStorageRegion
        properties:
          storageRegion: cn-hangzhou
    

    Create GlobalEventsStorageRegion Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GlobalEventsStorageRegion(name: string, args?: GlobalEventsStorageRegionArgs, opts?: CustomResourceOptions);
    @overload
    def GlobalEventsStorageRegion(resource_name: str,
                                  args: Optional[GlobalEventsStorageRegionArgs] = None,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def GlobalEventsStorageRegion(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  storage_region: Optional[str] = None)
    func NewGlobalEventsStorageRegion(ctx *Context, name string, args *GlobalEventsStorageRegionArgs, opts ...ResourceOption) (*GlobalEventsStorageRegion, error)
    public GlobalEventsStorageRegion(string name, GlobalEventsStorageRegionArgs? args = null, CustomResourceOptions? opts = null)
    public GlobalEventsStorageRegion(String name, GlobalEventsStorageRegionArgs args)
    public GlobalEventsStorageRegion(String name, GlobalEventsStorageRegionArgs args, CustomResourceOptions options)
    
    type: alicloud:actiontrail:GlobalEventsStorageRegion
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GlobalEventsStorageRegionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GlobalEventsStorageRegionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GlobalEventsStorageRegionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GlobalEventsStorageRegionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GlobalEventsStorageRegionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var globalEventsStorageRegionResource = new AliCloud.ActionTrail.GlobalEventsStorageRegion("globalEventsStorageRegionResource", new()
    {
        StorageRegion = "string",
    });
    
    example, err := actiontrail.NewGlobalEventsStorageRegion(ctx, "globalEventsStorageRegionResource", &actiontrail.GlobalEventsStorageRegionArgs{
    	StorageRegion: pulumi.String("string"),
    })
    
    var globalEventsStorageRegionResource = new GlobalEventsStorageRegion("globalEventsStorageRegionResource", GlobalEventsStorageRegionArgs.builder()
        .storageRegion("string")
        .build());
    
    global_events_storage_region_resource = alicloud.actiontrail.GlobalEventsStorageRegion("globalEventsStorageRegionResource", storage_region="string")
    
    const globalEventsStorageRegionResource = new alicloud.actiontrail.GlobalEventsStorageRegion("globalEventsStorageRegionResource", {storageRegion: "string"});
    
    type: alicloud:actiontrail:GlobalEventsStorageRegion
    properties:
        storageRegion: string
    

    GlobalEventsStorageRegion Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The GlobalEventsStorageRegion resource accepts the following input properties:

    StorageRegion string
    Global Events Storage Region.
    StorageRegion string
    Global Events Storage Region.
    storageRegion String
    Global Events Storage Region.
    storageRegion string
    Global Events Storage Region.
    storage_region str
    Global Events Storage Region.
    storageRegion String
    Global Events Storage Region.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GlobalEventsStorageRegion resource produces the following output properties:

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

    Look up Existing GlobalEventsStorageRegion Resource

    Get an existing GlobalEventsStorageRegion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GlobalEventsStorageRegionState, opts?: CustomResourceOptions): GlobalEventsStorageRegion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            storage_region: Optional[str] = None) -> GlobalEventsStorageRegion
    func GetGlobalEventsStorageRegion(ctx *Context, name string, id IDInput, state *GlobalEventsStorageRegionState, opts ...ResourceOption) (*GlobalEventsStorageRegion, error)
    public static GlobalEventsStorageRegion Get(string name, Input<string> id, GlobalEventsStorageRegionState? state, CustomResourceOptions? opts = null)
    public static GlobalEventsStorageRegion get(String name, Output<String> id, GlobalEventsStorageRegionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    StorageRegion string
    Global Events Storage Region.
    StorageRegion string
    Global Events Storage Region.
    storageRegion String
    Global Events Storage Region.
    storageRegion string
    Global Events Storage Region.
    storage_region str
    Global Events Storage Region.
    storageRegion String
    Global Events Storage Region.

    Import

    Global events storage region not can be imported.

    To learn more about importing existing cloud resources, see Importing resources.

    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.66.0 published on Friday, Nov 15, 2024 by Pulumi