1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. LtsGroup
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.LtsGroup

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a log group resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const group1 = new flexibleengine.LtsGroup("group1", {groupName: "log_group1"});
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    group1 = flexibleengine.LtsGroup("group1", group_name="log_group1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewLtsGroup(ctx, "group1", &flexibleengine.LtsGroupArgs{
    			GroupName: pulumi.String("log_group1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var group1 = new Flexibleengine.LtsGroup("group1", new()
        {
            GroupName = "log_group1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.LtsGroup;
    import com.pulumi.flexibleengine.LtsGroupArgs;
    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 group1 = new LtsGroup("group1", LtsGroupArgs.builder()
                .groupName("log_group1")
                .build());
    
        }
    }
    
    resources:
      group1:
        type: flexibleengine:LtsGroup
        properties:
          groupName: log_group1
    

    Create LtsGroup Resource

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

    Constructor syntax

    new LtsGroup(name: string, args: LtsGroupArgs, opts?: CustomResourceOptions);
    @overload
    def LtsGroup(resource_name: str,
                 args: LtsGroupArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def LtsGroup(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 group_name: Optional[str] = None,
                 lts_group_id: Optional[str] = None,
                 region: Optional[str] = None)
    func NewLtsGroup(ctx *Context, name string, args LtsGroupArgs, opts ...ResourceOption) (*LtsGroup, error)
    public LtsGroup(string name, LtsGroupArgs args, CustomResourceOptions? opts = null)
    public LtsGroup(String name, LtsGroupArgs args)
    public LtsGroup(String name, LtsGroupArgs args, CustomResourceOptions options)
    
    type: flexibleengine:LtsGroup
    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 LtsGroupArgs
    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 LtsGroupArgs
    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 LtsGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LtsGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LtsGroupArgs
    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 ltsGroupResource = new Flexibleengine.LtsGroup("ltsGroupResource", new()
    {
        GroupName = "string",
        LtsGroupId = "string",
        Region = "string",
    });
    
    example, err := flexibleengine.NewLtsGroup(ctx, "ltsGroupResource", &flexibleengine.LtsGroupArgs{
    	GroupName:  pulumi.String("string"),
    	LtsGroupId: pulumi.String("string"),
    	Region:     pulumi.String("string"),
    })
    
    var ltsGroupResource = new LtsGroup("ltsGroupResource", LtsGroupArgs.builder()
        .groupName("string")
        .ltsGroupId("string")
        .region("string")
        .build());
    
    lts_group_resource = flexibleengine.LtsGroup("ltsGroupResource",
        group_name="string",
        lts_group_id="string",
        region="string")
    
    const ltsGroupResource = new flexibleengine.LtsGroup("ltsGroupResource", {
        groupName: "string",
        ltsGroupId: "string",
        region: "string",
    });
    
    type: flexibleengine:LtsGroup
    properties:
        groupName: string
        ltsGroupId: string
        region: string
    

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

    GroupName string
    Specifies the log group name. Changing this parameter will create a new resource.
    LtsGroupId string
    The log group ID in UUID format.
    Region string
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    GroupName string
    Specifies the log group name. Changing this parameter will create a new resource.
    LtsGroupId string
    The log group ID in UUID format.
    Region string
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    groupName String
    Specifies the log group name. Changing this parameter will create a new resource.
    ltsGroupId String
    The log group ID in UUID format.
    region String
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    groupName string
    Specifies the log group name. Changing this parameter will create a new resource.
    ltsGroupId string
    The log group ID in UUID format.
    region string
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    group_name str
    Specifies the log group name. Changing this parameter will create a new resource.
    lts_group_id str
    The log group ID in UUID format.
    region str
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    groupName String
    Specifies the log group name. Changing this parameter will create a new resource.
    ltsGroupId String
    The log group ID in UUID format.
    region String
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    TtlInDays double
    Indicates the log expiration time. The value is fixed to 7 days.
    Id string
    The provider-assigned unique ID for this managed resource.
    TtlInDays float64
    Indicates the log expiration time. The value is fixed to 7 days.
    id String
    The provider-assigned unique ID for this managed resource.
    ttlInDays Double
    Indicates the log expiration time. The value is fixed to 7 days.
    id string
    The provider-assigned unique ID for this managed resource.
    ttlInDays number
    Indicates the log expiration time. The value is fixed to 7 days.
    id str
    The provider-assigned unique ID for this managed resource.
    ttl_in_days float
    Indicates the log expiration time. The value is fixed to 7 days.
    id String
    The provider-assigned unique ID for this managed resource.
    ttlInDays Number
    Indicates the log expiration time. The value is fixed to 7 days.

    Look up Existing LtsGroup Resource

    Get an existing LtsGroup 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?: LtsGroupState, opts?: CustomResourceOptions): LtsGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_name: Optional[str] = None,
            lts_group_id: Optional[str] = None,
            region: Optional[str] = None,
            ttl_in_days: Optional[float] = None) -> LtsGroup
    func GetLtsGroup(ctx *Context, name string, id IDInput, state *LtsGroupState, opts ...ResourceOption) (*LtsGroup, error)
    public static LtsGroup Get(string name, Input<string> id, LtsGroupState? state, CustomResourceOptions? opts = null)
    public static LtsGroup get(String name, Output<String> id, LtsGroupState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:LtsGroup    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:
    GroupName string
    Specifies the log group name. Changing this parameter will create a new resource.
    LtsGroupId string
    The log group ID in UUID format.
    Region string
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    TtlInDays double
    Indicates the log expiration time. The value is fixed to 7 days.
    GroupName string
    Specifies the log group name. Changing this parameter will create a new resource.
    LtsGroupId string
    The log group ID in UUID format.
    Region string
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    TtlInDays float64
    Indicates the log expiration time. The value is fixed to 7 days.
    groupName String
    Specifies the log group name. Changing this parameter will create a new resource.
    ltsGroupId String
    The log group ID in UUID format.
    region String
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    ttlInDays Double
    Indicates the log expiration time. The value is fixed to 7 days.
    groupName string
    Specifies the log group name. Changing this parameter will create a new resource.
    ltsGroupId string
    The log group ID in UUID format.
    region string
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    ttlInDays number
    Indicates the log expiration time. The value is fixed to 7 days.
    group_name str
    Specifies the log group name. Changing this parameter will create a new resource.
    lts_group_id str
    The log group ID in UUID format.
    region str
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    ttl_in_days float
    Indicates the log expiration time. The value is fixed to 7 days.
    groupName String
    Specifies the log group name. Changing this parameter will create a new resource.
    ltsGroupId String
    The log group ID in UUID format.
    region String
    The region in which to create the log group resource. If omitted, the provider-level region will be used. Changing this creates a new log group resource.
    ttlInDays Number
    Indicates the log expiration time. The value is fixed to 7 days.

    Import

    Log group can be imported using the id, e.g.

    $ pulumi import flexibleengine:index/ltsGroup:LtsGroup group_1 6e728c21-e3b6-11eb-b081-286ed488cb76
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud