1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cms
  5. SlsGroup
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cms.SlsGroup

Explore with Pulumi AI

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 This property is required. string
The unique name of the resource.
args This property is required. SlsGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SlsGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SlsGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
var slsGroupResource = new SlsGroup("slsGroupResource", SlsGroupArgs.builder()
    .slsGroupConfigs(SlsGroupSlsGroupConfigArgs.builder()
        .slsLogstore("string")
        .slsProject("string")
        .slsRegion("string")
        .slsUserId("string")
        .build())
    .slsGroupName("string")
    .slsGroupDescription("string")
    .build());
Copy
sls_group_resource = alicloud.cms.SlsGroup("slsGroupResource",
    sls_group_configs=[{
        "sls_logstore": "string",
        "sls_project": "string",
        "sls_region": "string",
        "sls_user_id": "string",
    }],
    sls_group_name="string",
    sls_group_description="string")
Copy
const slsGroupResource = new alicloud.cms.SlsGroup("slsGroupResource", {
    slsGroupConfigs: [{
        slsLogstore: "string",
        slsProject: "string",
        slsRegion: "string",
        slsUserId: "string",
    }],
    slsGroupName: "string",
    slsGroupDescription: "string",
});
Copy
type: alicloud:cms:SlsGroup
properties:
    slsGroupConfigs:
        - slsLogstore: string
          slsProject: string
          slsRegion: string
          slsUserId: string
    slsGroupDescription: string
    slsGroupName: string
Copy

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

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

The SlsGroup resource accepts the following input properties:

SlsGroupConfigs This property is required. 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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. []SlsGroupSlsGroupConfigArgs
The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
SlsGroupName
This property is required.
Changes to this property will trigger replacement.
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 This property is required. List<SlsGroupSlsGroupConfig>
The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
slsGroupName
This property is required.
Changes to this property will trigger replacement.
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 This property is required. SlsGroupSlsGroupConfig[]
The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
slsGroupName
This property is required.
Changes to this property will trigger replacement.
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 This property is required. Sequence[SlsGroupSlsGroupConfigArgs]
The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
sls_group_name
This property is required.
Changes to this property will trigger replacement.
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 This property is required. List<Property Map>
The Config of the Sls Group. You can specify up to 25 Config. See sls_group_config below.
slsGroupName
This property is required.
Changes to this property will trigger replacement.
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)
resources:  _:    type: alicloud:cms:SlsGroup    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. string
The name of the Log Store.
SlsProject This property is required. string
The name of the Project.
SlsRegion This property is required. string
The Sls Region.
SlsUserId string
The ID of the Sls User.
SlsLogstore This property is required. string
The name of the Log Store.
SlsProject This property is required. string
The name of the Project.
SlsRegion This property is required. string
The Sls Region.
SlsUserId string
The ID of the Sls User.
slsLogstore This property is required. String
The name of the Log Store.
slsProject This property is required. String
The name of the Project.
slsRegion This property is required. String
The Sls Region.
slsUserId String
The ID of the Sls User.
slsLogstore This property is required. string
The name of the Log Store.
slsProject This property is required. string
The name of the Project.
slsRegion This property is required. string
The Sls Region.
slsUserId string
The ID of the Sls User.
sls_logstore This property is required. str
The name of the Log Store.
sls_project This property is required. str
The name of the Project.
sls_region This property is required. str
The Sls Region.
sls_user_id str
The ID of the Sls User.
slsLogstore This property is required. String
The name of the Log Store.
slsProject This property is required. String
The name of the Project.
slsRegion This property is required. 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>
Copy

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.