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

alicloud.cms.SlsGroup

Explore with Pulumi AI

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

    Provides a Cloud Monitor Service Sls Group resource.

    For information about Cloud Monitor Service Sls Group and how to use it, see What is Sls Group.

    NOTE: Available since v1.171.0.

    Create SlsGroup Resource

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

    Constructor syntax

    new SlsGroup(name: string, args: SlsGroupArgs, opts?: CustomResourceOptions);
    @overload
    def SlsGroup(resource_name: str,
                 args: SlsGroupArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SlsGroup(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 sls_group_configs: Optional[Sequence[SlsGroupSlsGroupConfigArgs]] = None,
                 sls_group_name: Optional[str] = None,
                 sls_group_description: Optional[str] = None)
    func NewSlsGroup(ctx *Context, name string, args SlsGroupArgs, opts ...ResourceOption) (*SlsGroup, error)
    public SlsGroup(string name, SlsGroupArgs args, CustomResourceOptions? opts = null)
    public SlsGroup(String name, SlsGroupArgs args)
    public SlsGroup(String name, SlsGroupArgs args, CustomResourceOptions options)
    
    type: alicloud:cms:SlsGroup
    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 SlsGroupArgs
    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 SlsGroupArgs
    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 SlsGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SlsGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SlsGroupArgs
    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 slsGroupResource = new AliCloud.Cms.SlsGroup("slsGroupResource", new()
    {
        SlsGroupConfigs = new[]
        {
            new AliCloud.Cms.Inputs.SlsGroupSlsGroupConfigArgs
            {
                SlsLogstore = "string",
                SlsProject = "string",
                SlsRegion = "string",
                SlsUserId = "string",
            },
        },
        SlsGroupName = "string",
        SlsGroupDescription = "string",
    });
    
    example, err := cms.NewSlsGroup(ctx, "slsGroupResource", &cms.SlsGroupArgs{
    	SlsGroupConfigs: cms.SlsGroupSlsGroupConfigArray{
    		&cms.SlsGroupSlsGroupConfigArgs{
    			SlsLogstore: pulumi.String("string"),
    			SlsProject:  pulumi.String("string"),
    			SlsRegion:   pulumi.String("string"),
    			SlsUserId:   pulumi.String("string"),
    		},
    	},
    	SlsGroupName:        pulumi.String("string"),
    	SlsGroupDescription: pulumi.String("string"),
    })
    
    var slsGroupResource = new SlsGroup("slsGroupResource", SlsGroupArgs.builder()
        .slsGroupConfigs(SlsGroupSlsGroupConfigArgs.builder()
            .slsLogstore("string")
            .slsProject("string")
            .slsRegion("string")
            .slsUserId("string")
            .build())
        .slsGroupName("string")
        .slsGroupDescription("string")
        .build());
    
    sls_group_resource = alicloud.cms.SlsGroup("slsGroupResource",
        sls_group_configs=[alicloud.cms.SlsGroupSlsGroupConfigArgs(
            sls_logstore="string",
            sls_project="string",
            sls_region="string",
            sls_user_id="string",
        )],
        sls_group_name="string",
        sls_group_description="string")
    
    const slsGroupResource = new alicloud.cms.SlsGroup("slsGroupResource", {
        slsGroupConfigs: [{
            slsLogstore: "string",
            slsProject: "string",
            slsRegion: "string",
            slsUserId: "string",
        }],
        slsGroupName: "string",
        slsGroupDescription: "string",
    });
    
    type: alicloud:cms:SlsGroup
    properties:
        slsGroupConfigs:
            - slsLogstore: string
              slsProject: string
              slsRegion: string
              slsUserId: string
        slsGroupDescription: string
        slsGroupName: string
    

    SlsGroup Resource Properties

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

    Inputs

    The SlsGroup resource accepts the following input properties:

    SlsGroupConfigs List<Pulumi.AliCloud.Cms.Inputs.SlsGroupSlsGroupConfig>
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    SlsGroupName string
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    SlsGroupDescription string
    The Description of the Sls Group.
    SlsGroupConfigs []SlsGroupSlsGroupConfigArgs
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    SlsGroupName string
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    SlsGroupDescription string
    The Description of the Sls Group.
    slsGroupConfigs List<SlsGroupSlsGroupConfig>
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    slsGroupName String
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    slsGroupDescription String
    The Description of the Sls Group.
    slsGroupConfigs SlsGroupSlsGroupConfig[]
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    slsGroupName string
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    slsGroupDescription string
    The Description of the Sls Group.
    sls_group_configs Sequence[SlsGroupSlsGroupConfigArgs]
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    sls_group_name str
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    sls_group_description str
    The Description of the Sls Group.
    slsGroupConfigs List<Property Map>
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    slsGroupName String
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    slsGroupDescription String
    The Description of the Sls Group.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SlsGroup 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 SlsGroup Resource

    Get an existing SlsGroup 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?: SlsGroupState, opts?: CustomResourceOptions): SlsGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            sls_group_configs: Optional[Sequence[SlsGroupSlsGroupConfigArgs]] = None,
            sls_group_description: Optional[str] = None,
            sls_group_name: Optional[str] = None) -> SlsGroup
    func GetSlsGroup(ctx *Context, name string, id IDInput, state *SlsGroupState, opts ...ResourceOption) (*SlsGroup, error)
    public static SlsGroup Get(string name, Input<string> id, SlsGroupState? state, CustomResourceOptions? opts = null)
    public static SlsGroup get(String name, Output<String> id, SlsGroupState 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:
    SlsGroupConfigs List<Pulumi.AliCloud.Cms.Inputs.SlsGroupSlsGroupConfig>
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    SlsGroupDescription string
    The Description of the Sls Group.
    SlsGroupName string
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    SlsGroupConfigs []SlsGroupSlsGroupConfigArgs
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    SlsGroupDescription string
    The Description of the Sls Group.
    SlsGroupName string
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    slsGroupConfigs List<SlsGroupSlsGroupConfig>
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    slsGroupDescription String
    The Description of the Sls Group.
    slsGroupName String
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    slsGroupConfigs SlsGroupSlsGroupConfig[]
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    slsGroupDescription string
    The Description of the Sls Group.
    slsGroupName string
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    sls_group_configs Sequence[SlsGroupSlsGroupConfigArgs]
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    sls_group_description str
    The Description of the Sls Group.
    sls_group_name str
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
    slsGroupConfigs List<Property Map>
    The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
    slsGroupDescription String
    The Description of the Sls Group.
    slsGroupName String
    The name of the resource. The name must be 2 to 32 characters in length, and can contain letters, digits and underscores (_). It must start with a letter.

    Supporting Types

    SlsGroupSlsGroupConfig, SlsGroupSlsGroupConfigArgs

    SlsLogstore string
    The name of the Log Store.
    SlsProject string
    The name of the Project.
    SlsRegion string
    The Sls Region.
    SlsUserId string
    The ID of the Sls User.
    SlsLogstore string
    The name of the Log Store.
    SlsProject string
    The name of the Project.
    SlsRegion string
    The Sls Region.
    SlsUserId string
    The ID of the Sls User.
    slsLogstore String
    The name of the Log Store.
    slsProject String
    The name of the Project.
    slsRegion String
    The Sls Region.
    slsUserId String
    The ID of the Sls User.
    slsLogstore string
    The name of the Log Store.
    slsProject string
    The name of the Project.
    slsRegion string
    The Sls Region.
    slsUserId string
    The ID of the Sls User.
    sls_logstore str
    The name of the Log Store.
    sls_project str
    The name of the Project.
    sls_region str
    The Sls Region.
    sls_user_id str
    The ID of the Sls User.
    slsLogstore String
    The name of the Log Store.
    slsProject String
    The name of the Project.
    slsRegion String
    The Sls Region.
    slsUserId String
    The ID of the Sls User.

    Import

    Cloud Monitor Service Sls Group can be imported using the id, e.g.

    $ pulumi import alicloud:cms/slsGroup:SlsGroup example <sls_group_name>
    

    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.62.1 published on Monday, Sep 16, 2024 by Pulumi