1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. LogtankTransferV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.LogtankTransferV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Create LogtankTransferV2 Resource

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

    Constructor syntax

    new LogtankTransferV2(name: string, args: LogtankTransferV2Args, opts?: CustomResourceOptions);
    @overload
    def LogtankTransferV2(resource_name: str,
                          args: LogtankTransferV2Args,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogtankTransferV2(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          log_group_id: Optional[str] = None,
                          log_stream_ids: Optional[Sequence[str]] = None,
                          obs_bucket_name: Optional[str] = None,
                          period: Optional[float] = None,
                          period_unit: Optional[str] = None,
                          storage_format: Optional[str] = None,
                          dir_prefix_name: Optional[str] = None,
                          logtank_transfer_v2_id: Optional[str] = None,
                          prefix_name: Optional[str] = None,
                          switch_on: Optional[bool] = None)
    func NewLogtankTransferV2(ctx *Context, name string, args LogtankTransferV2Args, opts ...ResourceOption) (*LogtankTransferV2, error)
    public LogtankTransferV2(string name, LogtankTransferV2Args args, CustomResourceOptions? opts = null)
    public LogtankTransferV2(String name, LogtankTransferV2Args args)
    public LogtankTransferV2(String name, LogtankTransferV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LogtankTransferV2
    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 LogtankTransferV2Args
    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 LogtankTransferV2Args
    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 LogtankTransferV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogtankTransferV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogtankTransferV2Args
    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 logtankTransferV2Resource = new Opentelekomcloud.LogtankTransferV2("logtankTransferV2Resource", new()
    {
        LogGroupId = "string",
        LogStreamIds = new[]
        {
            "string",
        },
        ObsBucketName = "string",
        Period = 0,
        PeriodUnit = "string",
        StorageFormat = "string",
        DirPrefixName = "string",
        LogtankTransferV2Id = "string",
        PrefixName = "string",
        SwitchOn = false,
    });
    
    example, err := opentelekomcloud.NewLogtankTransferV2(ctx, "logtankTransferV2Resource", &opentelekomcloud.LogtankTransferV2Args{
    	LogGroupId: pulumi.String("string"),
    	LogStreamIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ObsBucketName:       pulumi.String("string"),
    	Period:              pulumi.Float64(0),
    	PeriodUnit:          pulumi.String("string"),
    	StorageFormat:       pulumi.String("string"),
    	DirPrefixName:       pulumi.String("string"),
    	LogtankTransferV2Id: pulumi.String("string"),
    	PrefixName:          pulumi.String("string"),
    	SwitchOn:            pulumi.Bool(false),
    })
    
    var logtankTransferV2Resource = new LogtankTransferV2("logtankTransferV2Resource", LogtankTransferV2Args.builder()
        .logGroupId("string")
        .logStreamIds("string")
        .obsBucketName("string")
        .period(0)
        .periodUnit("string")
        .storageFormat("string")
        .dirPrefixName("string")
        .logtankTransferV2Id("string")
        .prefixName("string")
        .switchOn(false)
        .build());
    
    logtank_transfer_v2_resource = opentelekomcloud.LogtankTransferV2("logtankTransferV2Resource",
        log_group_id="string",
        log_stream_ids=["string"],
        obs_bucket_name="string",
        period=0,
        period_unit="string",
        storage_format="string",
        dir_prefix_name="string",
        logtank_transfer_v2_id="string",
        prefix_name="string",
        switch_on=False)
    
    const logtankTransferV2Resource = new opentelekomcloud.LogtankTransferV2("logtankTransferV2Resource", {
        logGroupId: "string",
        logStreamIds: ["string"],
        obsBucketName: "string",
        period: 0,
        periodUnit: "string",
        storageFormat: "string",
        dirPrefixName: "string",
        logtankTransferV2Id: "string",
        prefixName: "string",
        switchOn: false,
    });
    
    type: opentelekomcloud:LogtankTransferV2
    properties:
        dirPrefixName: string
        logGroupId: string
        logStreamIds:
            - string
        logtankTransferV2Id: string
        obsBucketName: string
        period: 0
        periodUnit: string
        prefixName: string
        storageFormat: string
        switchOn: false
    

    LogtankTransferV2 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 LogtankTransferV2 resource accepts the following input properties:

    logGroupId String
    logStreamIds List<String>
    obsBucketName String
    period Double
    periodUnit String
    storageFormat String
    dirPrefixName String
    logtankTransferV2Id String
    prefixName String
    switchOn Boolean
    logGroupId String
    logStreamIds List<String>
    obsBucketName String
    period Number
    periodUnit String
    storageFormat String
    dirPrefixName String
    logtankTransferV2Id String
    prefixName String
    switchOn Boolean

    Outputs

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

    CreateTime double
    Id string
    The provider-assigned unique ID for this managed resource.
    LogGroupName string
    LogTransferMode string
    LogTransferType string
    ObsEncryptionEnable bool
    ObsEncryptionId string
    Status string
    CreateTime float64
    Id string
    The provider-assigned unique ID for this managed resource.
    LogGroupName string
    LogTransferMode string
    LogTransferType string
    ObsEncryptionEnable bool
    ObsEncryptionId string
    Status string
    createTime Double
    id String
    The provider-assigned unique ID for this managed resource.
    logGroupName String
    logTransferMode String
    logTransferType String
    obsEncryptionEnable Boolean
    obsEncryptionId String
    status String
    createTime number
    id string
    The provider-assigned unique ID for this managed resource.
    logGroupName string
    logTransferMode string
    logTransferType string
    obsEncryptionEnable boolean
    obsEncryptionId string
    status string
    create_time float
    id str
    The provider-assigned unique ID for this managed resource.
    log_group_name str
    log_transfer_mode str
    log_transfer_type str
    obs_encryption_enable bool
    obs_encryption_id str
    status str
    createTime Number
    id String
    The provider-assigned unique ID for this managed resource.
    logGroupName String
    logTransferMode String
    logTransferType String
    obsEncryptionEnable Boolean
    obsEncryptionId String
    status String

    Look up Existing LogtankTransferV2 Resource

    Get an existing LogtankTransferV2 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?: LogtankTransferV2State, opts?: CustomResourceOptions): LogtankTransferV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[float] = None,
            dir_prefix_name: Optional[str] = None,
            log_group_id: Optional[str] = None,
            log_group_name: Optional[str] = None,
            log_stream_ids: Optional[Sequence[str]] = None,
            log_transfer_mode: Optional[str] = None,
            log_transfer_type: Optional[str] = None,
            logtank_transfer_v2_id: Optional[str] = None,
            obs_bucket_name: Optional[str] = None,
            obs_encryption_enable: Optional[bool] = None,
            obs_encryption_id: Optional[str] = None,
            period: Optional[float] = None,
            period_unit: Optional[str] = None,
            prefix_name: Optional[str] = None,
            status: Optional[str] = None,
            storage_format: Optional[str] = None,
            switch_on: Optional[bool] = None) -> LogtankTransferV2
    func GetLogtankTransferV2(ctx *Context, name string, id IDInput, state *LogtankTransferV2State, opts ...ResourceOption) (*LogtankTransferV2, error)
    public static LogtankTransferV2 Get(string name, Input<string> id, LogtankTransferV2State? state, CustomResourceOptions? opts = null)
    public static LogtankTransferV2 get(String name, Output<String> id, LogtankTransferV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LogtankTransferV2    get:      id: ${id}
    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:

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud