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

alicloud.log.Project

Explore with Pulumi AI

Provides a SLS Project resource.

For information about SLS Project and how to use it, see What is Project.

NOTE: Available since v1.9.5.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";

const _default = new random.index.Integer("default", {
    max: 99999,
    min: 10000,
});
const example = new alicloud.log.Project("example", {
    projectName: `terraform-example-${_default.result}`,
    description: "terraform-example",
    tags: {
        Created: "TF",
        For: "example",
    },
});
Copy
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random

default = random.index.Integer("default",
    max=99999,
    min=10000)
example = alicloud.log.Project("example",
    project_name=f"terraform-example-{default['result']}",
    description="terraform-example",
    tags={
        "Created": "TF",
        "For": "example",
    })
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		_, err = log.NewProject(ctx, "example", &log.ProjectArgs{
			ProjectName: pulumi.Sprintf("terraform-example-%v", _default.Result),
			Description: pulumi.String("terraform-example"),
			Tags: pulumi.StringMap{
				"Created": pulumi.String("TF"),
				"For":     pulumi.String("example"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var @default = new Random.Index.Integer("default", new()
    {
        Max = 99999,
        Min = 10000,
    });

    var example = new AliCloud.Log.Project("example", new()
    {
        ProjectName = $"terraform-example-{@default.Result}",
        Description = "terraform-example",
        Tags = 
        {
            { "Created", "TF" },
            { "For", "example" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
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 default_ = new Integer("default", IntegerArgs.builder()
            .max(99999)
            .min(10000)
            .build());

        var example = new Project("example", ProjectArgs.builder()
            .projectName(String.format("terraform-example-%s", default_.result()))
            .description("terraform-example")
            .tags(Map.ofEntries(
                Map.entry("Created", "TF"),
                Map.entry("For", "example")
            ))
            .build());

    }
}
Copy
resources:
  default:
    type: random:integer
    properties:
      max: 99999
      min: 10000
  example:
    type: alicloud:log:Project
    properties:
      projectName: terraform-example-${default.result}
      description: terraform-example
      tags:
        Created: TF
        For: example
Copy

Project With Policy Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";

const _default = new random.index.Integer("default", {
    max: 99999,
    min: 10000,
});
const examplePolicy = new alicloud.log.Project("example_policy", {
    projectName: `terraform-example-${_default.result}`,
    description: "terraform-example",
    policy: `{
  "Statement": [
    {
      "Action": [
        "log:PostLogStoreLogs"
      ],
      "Condition": {
        "StringNotLike": {
          "acs:SourceVpc": [
            "vpc-*"
          ]
        }
      },
      "Effect": "Deny",
      "Resource": "acs:log:*:*:project/tf-log/*"
    }
  ],
  "Version": "1"
}
`,
});
Copy
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random

default = random.index.Integer("default",
    max=99999,
    min=10000)
example_policy = alicloud.log.Project("example_policy",
    project_name=f"terraform-example-{default['result']}",
    description="terraform-example",
    policy="""{
  "Statement": [
    {
      "Action": [
        "log:PostLogStoreLogs"
      ],
      "Condition": {
        "StringNotLike": {
          "acs:SourceVpc": [
            "vpc-*"
          ]
        }
      },
      "Effect": "Deny",
      "Resource": "acs:log:*:*:project/tf-log/*"
    }
  ],
  "Version": "1"
}
""")
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		_, err = log.NewProject(ctx, "example_policy", &log.ProjectArgs{
			ProjectName: pulumi.Sprintf("terraform-example-%v", _default.Result),
			Description: pulumi.String("terraform-example"),
			Policy: pulumi.String(`{
  "Statement": [
    {
      "Action": [
        "log:PostLogStoreLogs"
      ],
      "Condition": {
        "StringNotLike": {
          "acs:SourceVpc": [
            "vpc-*"
          ]
        }
      },
      "Effect": "Deny",
      "Resource": "acs:log:*:*:project/tf-log/*"
    }
  ],
  "Version": "1"
}
`),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var @default = new Random.Index.Integer("default", new()
    {
        Max = 99999,
        Min = 10000,
    });

    var examplePolicy = new AliCloud.Log.Project("example_policy", new()
    {
        ProjectName = $"terraform-example-{@default.Result}",
        Description = "terraform-example",
        Policy = @"{
  ""Statement"": [
    {
      ""Action"": [
        ""log:PostLogStoreLogs""
      ],
      ""Condition"": {
        ""StringNotLike"": {
          ""acs:SourceVpc"": [
            ""vpc-*""
          ]
        }
      },
      ""Effect"": ""Deny"",
      ""Resource"": ""acs:log:*:*:project/tf-log/*""
    }
  ],
  ""Version"": ""1""
}
",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
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 default_ = new Integer("default", IntegerArgs.builder()
            .max(99999)
            .min(10000)
            .build());

        var examplePolicy = new Project("examplePolicy", ProjectArgs.builder()
            .projectName(String.format("terraform-example-%s", default_.result()))
            .description("terraform-example")
            .policy("""
{
  "Statement": [
    {
      "Action": [
        "log:PostLogStoreLogs"
      ],
      "Condition": {
        "StringNotLike": {
          "acs:SourceVpc": [
            "vpc-*"
          ]
        }
      },
      "Effect": "Deny",
      "Resource": "acs:log:*:*:project/tf-log/*"
    }
  ],
  "Version": "1"
}
            """)
            .build());

    }
}
Copy
resources:
  default:
    type: random:integer
    properties:
      max: 99999
      min: 10000
  examplePolicy:
    type: alicloud:log:Project
    name: example_policy
    properties:
      projectName: terraform-example-${default.result}
      description: terraform-example
      policy: |
        {
          "Statement": [
            {
              "Action": [
                "log:PostLogStoreLogs"
              ],
              "Condition": {
                "StringNotLike": {
                  "acs:SourceVpc": [
                    "vpc-*"
                  ]
                }
              },
              "Effect": "Deny",
              "Resource": "acs:log:*:*:project/tf-log/*"
            }
          ],
          "Version": "1"
        }        
Copy

Module Support

You can use the existing sls module to create SLS project, store and store index one-click, like ECS instances.

Create Project Resource

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

Constructor syntax

new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);
@overload
def Project(resource_name: str,
            args: Optional[ProjectArgs] = None,
            opts: Optional[ResourceOptions] = None)

@overload
def Project(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            policy: Optional[str] = None,
            project_name: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)
func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: alicloud:log:Project
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 ProjectArgs
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 ProjectArgs
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 ProjectArgs
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 ProjectArgs
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. ProjectArgs
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 exampleprojectResourceResourceFromLogproject = new AliCloud.Log.Project("exampleprojectResourceResourceFromLogproject", new()
{
    Description = "string",
    Policy = "string",
    ProjectName = "string",
    ResourceGroupId = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := log.NewProject(ctx, "exampleprojectResourceResourceFromLogproject", &log.ProjectArgs{
	Description:     pulumi.String("string"),
	Policy:          pulumi.String("string"),
	ProjectName:     pulumi.String("string"),
	ResourceGroupId: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var exampleprojectResourceResourceFromLogproject = new Project("exampleprojectResourceResourceFromLogproject", ProjectArgs.builder()
    .description("string")
    .policy("string")
    .projectName("string")
    .resourceGroupId("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
exampleproject_resource_resource_from_logproject = alicloud.log.Project("exampleprojectResourceResourceFromLogproject",
    description="string",
    policy="string",
    project_name="string",
    resource_group_id="string",
    tags={
        "string": "string",
    })
Copy
const exampleprojectResourceResourceFromLogproject = new alicloud.log.Project("exampleprojectResourceResourceFromLogproject", {
    description: "string",
    policy: "string",
    projectName: "string",
    resourceGroupId: "string",
    tags: {
        string: "string",
    },
});
Copy
type: alicloud:log:Project
properties:
    description: string
    policy: string
    projectName: string
    resourceGroupId: string
    tags:
        string: string
Copy

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

Description string
Description.
Name Changes to this property will trigger replacement. string
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

Policy string
Log project policy, used to set a policy for a project.
ProjectName Changes to this property will trigger replacement. string
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
ResourceGroupId string
The ID of the resource group.
Tags Dictionary<string, string>

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

Description string
Description.
Name Changes to this property will trigger replacement. string
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

Policy string
Log project policy, used to set a policy for a project.
ProjectName Changes to this property will trigger replacement. string
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
ResourceGroupId string
The ID of the resource group.
Tags map[string]string

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

description String
Description.
name Changes to this property will trigger replacement. String
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

policy String
Log project policy, used to set a policy for a project.
projectName Changes to this property will trigger replacement. String
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
resourceGroupId String
The ID of the resource group.
tags Map<String,String>

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

description string
Description.
name Changes to this property will trigger replacement. string
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

policy string
Log project policy, used to set a policy for a project.
projectName Changes to this property will trigger replacement. string
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
resourceGroupId string
The ID of the resource group.
tags {[key: string]: string}

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

description str
Description.
name Changes to this property will trigger replacement. str
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

policy str
Log project policy, used to set a policy for a project.
project_name Changes to this property will trigger replacement. str
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
resource_group_id str
The ID of the resource group.
tags Mapping[str, str]

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

description String
Description.
name Changes to this property will trigger replacement. String
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

policy String
Log project policy, used to set a policy for a project.
projectName Changes to this property will trigger replacement. String
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
resourceGroupId String
The ID of the resource group.
tags Map<String>

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

Outputs

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

CreateTime string
CreateTime.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the resource.
CreateTime string
CreateTime.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the resource.
createTime String
CreateTime.
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the resource.
createTime string
CreateTime.
id string
The provider-assigned unique ID for this managed resource.
status string
The status of the resource.
create_time str
CreateTime.
id str
The provider-assigned unique ID for this managed resource.
status str
The status of the resource.
createTime String
CreateTime.
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the resource.

Look up Existing Project Resource

Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        policy: Optional[str] = None,
        project_name: Optional[str] = None,
        resource_group_id: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
resources:  _:    type: alicloud:log:Project    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:
CreateTime string
CreateTime.
Description string
Description.
Name Changes to this property will trigger replacement. string
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

Policy string
Log project policy, used to set a policy for a project.
ProjectName Changes to this property will trigger replacement. string
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
ResourceGroupId string
The ID of the resource group.
Status string
The status of the resource.
Tags Dictionary<string, string>

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

CreateTime string
CreateTime.
Description string
Description.
Name Changes to this property will trigger replacement. string
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

Policy string
Log project policy, used to set a policy for a project.
ProjectName Changes to this property will trigger replacement. string
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
ResourceGroupId string
The ID of the resource group.
Status string
The status of the resource.
Tags map[string]string

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

createTime String
CreateTime.
description String
Description.
name Changes to this property will trigger replacement. String
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

policy String
Log project policy, used to set a policy for a project.
projectName Changes to this property will trigger replacement. String
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
resourceGroupId String
The ID of the resource group.
status String
The status of the resource.
tags Map<String,String>

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

createTime string
CreateTime.
description string
Description.
name Changes to this property will trigger replacement. string
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

policy string
Log project policy, used to set a policy for a project.
projectName Changes to this property will trigger replacement. string
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
resourceGroupId string
The ID of the resource group.
status string
The status of the resource.
tags {[key: string]: string}

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

create_time str
CreateTime.
description str
Description.
name Changes to this property will trigger replacement. str
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

policy str
Log project policy, used to set a policy for a project.
project_name Changes to this property will trigger replacement. str
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
resource_group_id str
The ID of the resource group.
status str
The status of the resource.
tags Mapping[str, str]

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

createTime String
CreateTime.
description String
Description.
name Changes to this property will trigger replacement. String
. Field 'name' has been deprecated from provider version 1.223.0. New field 'project_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.223.0. New field 'project_name' instead.

policy String
Log project policy, used to set a policy for a project.
projectName Changes to this property will trigger replacement. String
The name of the log project. It is the only in one Alicloud account. The project name is globally unique in Alibaba Cloud and cannot be modified after it is created. The naming rules are as follows:

  • The project name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • It must start and end with a lowercase letter or number.
  • The value contains 3 to 63 characters.
resourceGroupId String
The ID of the resource group.
status String
The status of the resource.
tags Map<String>

Tag.

The following arguments will be discarded. Please use new fields as soon as possible:

Import

SLS Project can be imported using the id, e.g.

$ pulumi import alicloud:log/project:Project example <id>
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.