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 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:
- Sls
Group List<Pulumi.Configs Ali Cloud. Cms. Inputs. Sls Group Sls Group Config> - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - Sls
Group stringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter. - Sls
Group stringDescription - The Description of the Sls Group.
- Sls
Group []SlsConfigs Group Sls Group Config Args - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - Sls
Group stringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter. - Sls
Group stringDescription - The Description of the Sls Group.
- sls
Group List<SlsConfigs Group Sls Group Config> - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - sls
Group StringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter. - sls
Group StringDescription - The Description of the Sls Group.
- sls
Group SlsConfigs Group Sls Group Config[] - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - sls
Group stringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter. - sls
Group stringDescription - The Description of the Sls Group.
- sls_
group_ Sequence[Slsconfigs Group Sls Group Config Args] - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - sls_
group_ strname - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter. - sls_
group_ strdescription - The Description of the Sls Group.
- sls
Group List<Property Map>Configs - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - sls
Group StringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter. - sls
Group StringDescription - 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.
- Sls
Group List<Pulumi.Configs Ali Cloud. Cms. Inputs. Sls Group Sls Group Config> - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - Sls
Group stringDescription - The Description of the Sls Group.
- Sls
Group stringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
- Sls
Group []SlsConfigs Group Sls Group Config Args - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - Sls
Group stringDescription - The Description of the Sls Group.
- Sls
Group stringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
- sls
Group List<SlsConfigs Group Sls Group Config> - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - sls
Group StringDescription - The Description of the Sls Group.
- sls
Group StringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
- sls
Group SlsConfigs Group Sls Group Config[] - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - sls
Group stringDescription - The Description of the Sls Group.
- sls
Group stringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
- sls_
group_ Sequence[Slsconfigs Group Sls Group Config Args] - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - sls_
group_ strdescription - The Description of the Sls Group.
- sls_
group_ strname - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
- sls
Group List<Property Map>Configs - The Config of the Sls Group. You can specify up to 25 Config. See
sls_group_config
below. - sls
Group StringDescription - The Description of the Sls Group.
- sls
Group StringName - The name of the resource. The name must be
2
to32
characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
Supporting Types
SlsGroupSlsGroupConfig, SlsGroupSlsGroupConfigArgs
- Sls
Logstore string - The name of the Log Store.
- Sls
Project string - The name of the Project.
- Sls
Region string - The Sls Region.
- Sls
User stringId - The ID of the Sls User.
- Sls
Logstore string - The name of the Log Store.
- Sls
Project string - The name of the Project.
- Sls
Region string - The Sls Region.
- Sls
User stringId - The ID of the Sls User.
- sls
Logstore String - The name of the Log Store.
- sls
Project String - The name of the Project.
- sls
Region String - The Sls Region.
- sls
User StringId - The ID of the Sls User.
- sls
Logstore string - The name of the Log Store.
- sls
Project string - The name of the Project.
- sls
Region string - The Sls Region.
- sls
User stringId - 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_ strid - The ID of the Sls User.
- sls
Logstore String - The name of the Log Store.
- sls
Project String - The name of the Project.
- sls
Region String - The Sls Region.
- sls
User StringId - 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.