log

package
v3.49.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	pulumi.CustomResourceState

	// Alert description.
	AlertDescription pulumi.StringPtrOutput `pulumi:"alertDescription"`
	// Alert displayname.
	AlertDisplayname pulumi.StringOutput `pulumi:"alertDisplayname"`
	// Name of logstore for configuring alarm service.
	AlertName pulumi.StringOutput `pulumi:"alertName"`
	// Alert template annotations.
	Annotations AlertAnnotationArrayOutput `pulumi:"annotations"`
	// whether to add automatic annotation, default is false.
	AutoAnnotation pulumi.BoolPtrOutput `pulumi:"autoAnnotation"`
	// Join condition.
	//
	// Deprecated: Deprecated from 1.161.0+, use eval_condition in severity_configurations
	Condition pulumi.StringPtrOutput `pulumi:"condition"`
	// Deprecated: Deprecated from 1.161.0+, use dashboardId in query_list
	Dashboard pulumi.StringPtrOutput `pulumi:"dashboard"`
	// Group configuration for new alert.
	GroupConfiguration AlertGroupConfigurationPtrOutput `pulumi:"groupConfiguration"`
	// Join configuration for different queries.
	JoinConfigurations AlertJoinConfigurationArrayOutput `pulumi:"joinConfigurations"`
	// Labels for new alert.
	Labels AlertLabelArrayOutput `pulumi:"labels"`
	// Timestamp, notifications before closing again.
	MuteUntil pulumi.IntOutput `pulumi:"muteUntil"`
	// Switch for whether new alert fires when no data happens, default is false.
	NoDataFire pulumi.BoolPtrOutput `pulumi:"noDataFire"`
	// when no data happens, the severity of new alert.
	NoDataSeverity pulumi.IntPtrOutput `pulumi:"noDataSeverity"`
	// Alarm information notification list, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use policy_configuration for notification
	NotificationLists AlertNotificationListArrayOutput `pulumi:"notificationLists"`
	// Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use threshold
	NotifyThreshold pulumi.IntPtrOutput `pulumi:"notifyThreshold"`
	// Policy configuration for new alert.
	PolicyConfiguration AlertPolicyConfigurationPtrOutput `pulumi:"policyConfiguration"`
	// The project name.
	ProjectName pulumi.StringOutput `pulumi:"projectName"`
	// Multiple conditions for configured alarm query.
	QueryLists AlertQueryListArrayOutput `pulumi:"queryLists"`
	// schedule for alert.
	Schedule AlertSchedulePtrOutput `pulumi:"schedule"`
	// Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
	//
	// Deprecated: Field 'schedule_interval' has been deprecated from provider version 1.176.0. New field 'schedule' instead.
	ScheduleInterval pulumi.StringOutput `pulumi:"scheduleInterval"`
	// Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
	//
	// Deprecated: Field 'schedule_type' has been deprecated from provider version 1.176.0. New field 'schedule' instead.
	ScheduleType pulumi.StringOutput `pulumi:"scheduleType"`
	// when new alert is resolved, whether to notify, default is false.
	SendResolved pulumi.BoolPtrOutput `pulumi:"sendResolved"`
	// Severity configuration for new alert.
	SeverityConfigurations AlertSeverityConfigurationArrayOutput `pulumi:"severityConfigurations"`
	// Template configuration for alert, when `type` is `tpl`.
	TemplateConfiguration AlertTemplateConfigurationPtrOutput `pulumi:"templateConfiguration"`
	// Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
	Threshold pulumi.IntOutput `pulumi:"threshold"`
	// Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use repeat_interval in policy_configuration
	Throttling pulumi.StringPtrOutput `pulumi:"throttling"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type pulumi.StringPtrOutput `pulumi:"type"`
	// The version of alert, new alert is 2.0.
	Version pulumi.StringPtrOutput `pulumi:"version"`
}

Log alert is a unit of log service, which is used to monitor and alert the user's logstore status information. Log Service enables you to configure alerts based on the charts in a dashboard to monitor the service status in real time.

For information about SLS Alert and how to use it, see [SLS Alert Overview](https://www.alibabacloud.com/help/en/doc-detail/209202.html)

> **NOTE:** Available in 1.78.0

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewAlert(ctx, "exampleAlert", &log.AlertArgs{
			ProjectName:      exampleProject.Name,
			AlertName:        pulumi.String("example-alert"),
			AlertDisplayname: pulumi.String("example-alert"),
			Condition:        pulumi.String("count> 100"),
			Dashboard:        pulumi.String("example-dashboard"),
			Schedule: &log.AlertScheduleArgs{
				Type:           pulumi.String("FixedRate"),
				Interval:       pulumi.String("5m"),
				Hour:           pulumi.Int(0),
				DayOfWeek:      pulumi.Int(0),
				Delay:          pulumi.Int(0),
				RunImmediately: pulumi.Bool(false),
			},
			QueryLists: log.AlertQueryListArray{
				&log.AlertQueryListArgs{
					Logstore:   exampleStore.Name,
					ChartTitle: pulumi.String("chart_title"),
					Start:      pulumi.String("-60s"),
					End:        pulumi.String("20s"),
					Query:      pulumi.String("* AND aliyun"),
				},
			},
			NotificationLists: log.AlertNotificationListArray{
				&log.AlertNotificationListArgs{
					Type: pulumi.String("SMS"),
					MobileLists: pulumi.StringArray{
						pulumi.String("12345678"),
						pulumi.String("87654321"),
					},
					Content: pulumi.String("alert content"),
				},
				&log.AlertNotificationListArgs{
					Type: pulumi.String("Email"),
					EmailLists: pulumi.StringArray{
						pulumi.String("aliyun@alibaba-inc.com"),
						pulumi.String("tf-example@123.com"),
					},
					Content: pulumi.String("alert content"),
				},
				&log.AlertNotificationListArgs{
					Type:       pulumi.String("DingTalk"),
					ServiceUri: pulumi.String("www.aliyun.com"),
					Content:    pulumi.String("alert content"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Basic Usage for new alert

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewAlert(ctx, "example-2", &log.AlertArgs{
			Version:          pulumi.String("2.0"),
			Type:             pulumi.String("default"),
			ProjectName:      exampleProject.Name,
			AlertName:        pulumi.String("example-alert"),
			AlertDisplayname: pulumi.String("example-alert"),
			MuteUntil:        pulumi.Int(1632486684),
			NoDataFire:       pulumi.Bool(false),
			NoDataSeverity:   pulumi.Int(8),
			SendResolved:     pulumi.Bool(true),
			AutoAnnotation:   pulumi.Bool(true),
			Dashboard:        pulumi.String("example-dashboard"),
			Schedule: &log.AlertScheduleArgs{
				Type:           pulumi.String("FixedRate"),
				Interval:       pulumi.String("5m"),
				Hour:           pulumi.Int(0),
				DayOfWeek:      pulumi.Int(0),
				Delay:          pulumi.Int(0),
				RunImmediately: pulumi.Bool(false),
			},
			QueryLists: log.AlertQueryListArray{
				&log.AlertQueryListArgs{
					Store:        exampleStore.Name,
					StoreType:    pulumi.String("log"),
					Project:      exampleProject.Name,
					Region:       pulumi.String("cn-heyuan"),
					ChartTitle:   pulumi.String("chart_title"),
					Start:        pulumi.String("-60s"),
					End:          pulumi.String("20s"),
					Query:        pulumi.String("* AND aliyun | select count(1) as cnt"),
					PowerSqlMode: pulumi.String("auto"),
				},
				&log.AlertQueryListArgs{
					Store:        exampleStore.Name,
					StoreType:    pulumi.String("log"),
					Project:      exampleProject.Name,
					Region:       pulumi.String("cn-heyuan"),
					ChartTitle:   pulumi.String("chart_title"),
					Start:        pulumi.String("-60s"),
					End:          pulumi.String("20s"),
					Query:        pulumi.String("error | select count(1) as error_cnt"),
					PowerSqlMode: pulumi.String("enable"),
				},
			},
			Labels: log.AlertLabelArray{
				&log.AlertLabelArgs{
					Key:   pulumi.String("env"),
					Value: pulumi.String("test"),
				},
			},
			Annotations: log.AlertAnnotationArray{
				&log.AlertAnnotationArgs{
					Key:   pulumi.String("title"),
					Value: pulumi.String("alert title"),
				},
				&log.AlertAnnotationArgs{
					Key:   pulumi.String("desc"),
					Value: pulumi.String("alert desc"),
				},
				&log.AlertAnnotationArgs{
					Key:   pulumi.String("test_key"),
					Value: pulumi.String("test value"),
				},
			},
			GroupConfiguration: &log.AlertGroupConfigurationArgs{
				Type: pulumi.String("custom"),
				Fields: pulumi.StringArray{
					pulumi.String("cnt"),
				},
			},
			PolicyConfiguration: &log.AlertPolicyConfigurationArgs{
				AlertPolicyId:  pulumi.String("sls.bultin"),
				ActionPolicyId: pulumi.String("sls_test_action"),
				RepeatInterval: pulumi.String("4h"),
			},
			SeverityConfigurations: log.AlertSeverityConfigurationArray{
				&log.AlertSeverityConfigurationArgs{
					Severity: pulumi.Int(8),
					EvalCondition: pulumi.StringMap{
						"condition":       pulumi.String("cnt > 3"),
						"count_condition": pulumi.String("__count__ > 3"),
					},
				},
				&log.AlertSeverityConfigurationArgs{
					Severity: pulumi.Int(6),
					EvalCondition: pulumi.StringMap{
						"condition":       pulumi.String(""),
						"count_condition": pulumi.String("__count__ > 0"),
					},
				},
				&log.AlertSeverityConfigurationArgs{
					Severity: pulumi.Int(2),
					EvalCondition: pulumi.StringMap{
						"condition":       pulumi.String(""),
						"count_condition": pulumi.String(""),
					},
				},
			},
			JoinConfigurations: log.AlertJoinConfigurationArray{
				&log.AlertJoinConfigurationArgs{
					Type:      pulumi.String("cross_join"),
					Condition: pulumi.String(""),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Basic Usage for alert template

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		_, err = log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewAlert(ctx, "example-3", &log.AlertArgs{
			Version:          pulumi.String("2.0"),
			Type:             pulumi.String("tpl"),
			ProjectName:      exampleProject.Name,
			AlertName:        pulumi.String("example-alert"),
			AlertDisplayname: pulumi.String("example-alert"),
			MuteUntil:        pulumi.Int(1632486684),
			Schedule: &log.AlertScheduleArgs{
				Type:           pulumi.String("FixedRate"),
				Interval:       pulumi.String("5m"),
				Hour:           pulumi.Int(0),
				DayOfWeek:      pulumi.Int(0),
				Delay:          pulumi.Int(0),
				RunImmediately: pulumi.Bool(false),
			},
			TemplateConfiguration: &log.AlertTemplateConfigurationArgs{
				Id:          pulumi.String("sls.app.sls_ack.node.down"),
				Type:        pulumi.String("sys"),
				Lang:        pulumi.String("cn"),
				Annotations: nil,
				Tokens: pulumi.StringMap{
					"interval_minute":        pulumi.String("5"),
					"default.action_policy":  pulumi.String("sls.app.ack.builtin"),
					"default.severity":       pulumi.String("6"),
					"sendResolved":           pulumi.String("false"),
					"default.project":        exampleProject.Name,
					"default.logstore":       pulumi.String("k8s-event"),
					"default.repeatInterval": pulumi.String("4h"),
					"trigger_threshold":      pulumi.String("1"),
					"default.clusterId":      pulumi.String("example-cluster-id"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh $ pulumi import alicloud:log/alert:Alert example tf-log:tf-log-alert ```

func GetAlert

func GetAlert(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlertState, opts ...pulumi.ResourceOption) (*Alert, error)

GetAlert gets an existing Alert resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAlert

func NewAlert(ctx *pulumi.Context,
	name string, args *AlertArgs, opts ...pulumi.ResourceOption) (*Alert, error)

NewAlert registers a new resource with the given unique name, arguments, and options.

func (*Alert) ElementType

func (*Alert) ElementType() reflect.Type

func (*Alert) ToAlertOutput

func (i *Alert) ToAlertOutput() AlertOutput

func (*Alert) ToAlertOutputWithContext

func (i *Alert) ToAlertOutputWithContext(ctx context.Context) AlertOutput

type AlertAnnotation added in v3.20.0

type AlertAnnotation struct {
	// Annotations's key for new alert.
	Key string `pulumi:"key"`
	// Annotations's value for new alert.
	Value string `pulumi:"value"`
}

type AlertAnnotationArgs added in v3.20.0

type AlertAnnotationArgs struct {
	// Annotations's key for new alert.
	Key pulumi.StringInput `pulumi:"key"`
	// Annotations's value for new alert.
	Value pulumi.StringInput `pulumi:"value"`
}

func (AlertAnnotationArgs) ElementType added in v3.20.0

func (AlertAnnotationArgs) ElementType() reflect.Type

func (AlertAnnotationArgs) ToAlertAnnotationOutput added in v3.20.0

func (i AlertAnnotationArgs) ToAlertAnnotationOutput() AlertAnnotationOutput

func (AlertAnnotationArgs) ToAlertAnnotationOutputWithContext added in v3.20.0

func (i AlertAnnotationArgs) ToAlertAnnotationOutputWithContext(ctx context.Context) AlertAnnotationOutput

type AlertAnnotationArray added in v3.20.0

type AlertAnnotationArray []AlertAnnotationInput

func (AlertAnnotationArray) ElementType added in v3.20.0

func (AlertAnnotationArray) ElementType() reflect.Type

func (AlertAnnotationArray) ToAlertAnnotationArrayOutput added in v3.20.0

func (i AlertAnnotationArray) ToAlertAnnotationArrayOutput() AlertAnnotationArrayOutput

func (AlertAnnotationArray) ToAlertAnnotationArrayOutputWithContext added in v3.20.0

func (i AlertAnnotationArray) ToAlertAnnotationArrayOutputWithContext(ctx context.Context) AlertAnnotationArrayOutput

type AlertAnnotationArrayInput added in v3.20.0

type AlertAnnotationArrayInput interface {
	pulumi.Input

	ToAlertAnnotationArrayOutput() AlertAnnotationArrayOutput
	ToAlertAnnotationArrayOutputWithContext(context.Context) AlertAnnotationArrayOutput
}

AlertAnnotationArrayInput is an input type that accepts AlertAnnotationArray and AlertAnnotationArrayOutput values. You can construct a concrete instance of `AlertAnnotationArrayInput` via:

AlertAnnotationArray{ AlertAnnotationArgs{...} }

type AlertAnnotationArrayOutput added in v3.20.0

type AlertAnnotationArrayOutput struct{ *pulumi.OutputState }

func (AlertAnnotationArrayOutput) ElementType added in v3.20.0

func (AlertAnnotationArrayOutput) ElementType() reflect.Type

func (AlertAnnotationArrayOutput) Index added in v3.20.0

func (AlertAnnotationArrayOutput) ToAlertAnnotationArrayOutput added in v3.20.0

func (o AlertAnnotationArrayOutput) ToAlertAnnotationArrayOutput() AlertAnnotationArrayOutput

func (AlertAnnotationArrayOutput) ToAlertAnnotationArrayOutputWithContext added in v3.20.0

func (o AlertAnnotationArrayOutput) ToAlertAnnotationArrayOutputWithContext(ctx context.Context) AlertAnnotationArrayOutput

type AlertAnnotationInput added in v3.20.0

type AlertAnnotationInput interface {
	pulumi.Input

	ToAlertAnnotationOutput() AlertAnnotationOutput
	ToAlertAnnotationOutputWithContext(context.Context) AlertAnnotationOutput
}

AlertAnnotationInput is an input type that accepts AlertAnnotationArgs and AlertAnnotationOutput values. You can construct a concrete instance of `AlertAnnotationInput` via:

AlertAnnotationArgs{...}

type AlertAnnotationOutput added in v3.20.0

type AlertAnnotationOutput struct{ *pulumi.OutputState }

func (AlertAnnotationOutput) ElementType added in v3.20.0

func (AlertAnnotationOutput) ElementType() reflect.Type

func (AlertAnnotationOutput) Key added in v3.20.0

Annotations's key for new alert.

func (AlertAnnotationOutput) ToAlertAnnotationOutput added in v3.20.0

func (o AlertAnnotationOutput) ToAlertAnnotationOutput() AlertAnnotationOutput

func (AlertAnnotationOutput) ToAlertAnnotationOutputWithContext added in v3.20.0

func (o AlertAnnotationOutput) ToAlertAnnotationOutputWithContext(ctx context.Context) AlertAnnotationOutput

func (AlertAnnotationOutput) Value added in v3.20.0

Annotations's value for new alert.

type AlertArgs

type AlertArgs struct {
	// Alert description.
	AlertDescription pulumi.StringPtrInput
	// Alert displayname.
	AlertDisplayname pulumi.StringInput
	// Name of logstore for configuring alarm service.
	AlertName pulumi.StringInput
	// Alert template annotations.
	Annotations AlertAnnotationArrayInput
	// whether to add automatic annotation, default is false.
	AutoAnnotation pulumi.BoolPtrInput
	// Join condition.
	//
	// Deprecated: Deprecated from 1.161.0+, use eval_condition in severity_configurations
	Condition pulumi.StringPtrInput
	// Deprecated: Deprecated from 1.161.0+, use dashboardId in query_list
	Dashboard pulumi.StringPtrInput
	// Group configuration for new alert.
	GroupConfiguration AlertGroupConfigurationPtrInput
	// Join configuration for different queries.
	JoinConfigurations AlertJoinConfigurationArrayInput
	// Labels for new alert.
	Labels AlertLabelArrayInput
	// Timestamp, notifications before closing again.
	MuteUntil pulumi.IntPtrInput
	// Switch for whether new alert fires when no data happens, default is false.
	NoDataFire pulumi.BoolPtrInput
	// when no data happens, the severity of new alert.
	NoDataSeverity pulumi.IntPtrInput
	// Alarm information notification list, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use policy_configuration for notification
	NotificationLists AlertNotificationListArrayInput
	// Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use threshold
	NotifyThreshold pulumi.IntPtrInput
	// Policy configuration for new alert.
	PolicyConfiguration AlertPolicyConfigurationPtrInput
	// The project name.
	ProjectName pulumi.StringInput
	// Multiple conditions for configured alarm query.
	QueryLists AlertQueryListArrayInput
	// schedule for alert.
	Schedule AlertSchedulePtrInput
	// Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
	//
	// Deprecated: Field 'schedule_interval' has been deprecated from provider version 1.176.0. New field 'schedule' instead.
	ScheduleInterval pulumi.StringPtrInput
	// Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
	//
	// Deprecated: Field 'schedule_type' has been deprecated from provider version 1.176.0. New field 'schedule' instead.
	ScheduleType pulumi.StringPtrInput
	// when new alert is resolved, whether to notify, default is false.
	SendResolved pulumi.BoolPtrInput
	// Severity configuration for new alert.
	SeverityConfigurations AlertSeverityConfigurationArrayInput
	// Template configuration for alert, when `type` is `tpl`.
	TemplateConfiguration AlertTemplateConfigurationPtrInput
	// Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
	Threshold pulumi.IntPtrInput
	// Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use repeat_interval in policy_configuration
	Throttling pulumi.StringPtrInput
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type pulumi.StringPtrInput
	// The version of alert, new alert is 2.0.
	Version pulumi.StringPtrInput
}

The set of arguments for constructing a Alert resource.

func (AlertArgs) ElementType

func (AlertArgs) ElementType() reflect.Type

type AlertArray

type AlertArray []AlertInput

func (AlertArray) ElementType

func (AlertArray) ElementType() reflect.Type

func (AlertArray) ToAlertArrayOutput

func (i AlertArray) ToAlertArrayOutput() AlertArrayOutput

func (AlertArray) ToAlertArrayOutputWithContext

func (i AlertArray) ToAlertArrayOutputWithContext(ctx context.Context) AlertArrayOutput

type AlertArrayInput

type AlertArrayInput interface {
	pulumi.Input

	ToAlertArrayOutput() AlertArrayOutput
	ToAlertArrayOutputWithContext(context.Context) AlertArrayOutput
}

AlertArrayInput is an input type that accepts AlertArray and AlertArrayOutput values. You can construct a concrete instance of `AlertArrayInput` via:

AlertArray{ AlertArgs{...} }

type AlertArrayOutput

type AlertArrayOutput struct{ *pulumi.OutputState }

func (AlertArrayOutput) ElementType

func (AlertArrayOutput) ElementType() reflect.Type

func (AlertArrayOutput) Index

func (AlertArrayOutput) ToAlertArrayOutput

func (o AlertArrayOutput) ToAlertArrayOutput() AlertArrayOutput

func (AlertArrayOutput) ToAlertArrayOutputWithContext

func (o AlertArrayOutput) ToAlertArrayOutputWithContext(ctx context.Context) AlertArrayOutput

type AlertGroupConfiguration added in v3.20.0

type AlertGroupConfiguration struct {
	Fields []string `pulumi:"fields"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type string `pulumi:"type"`
}

type AlertGroupConfigurationArgs added in v3.20.0

type AlertGroupConfigurationArgs struct {
	Fields pulumi.StringArrayInput `pulumi:"fields"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type pulumi.StringInput `pulumi:"type"`
}

func (AlertGroupConfigurationArgs) ElementType added in v3.20.0

func (AlertGroupConfigurationArgs) ToAlertGroupConfigurationOutput added in v3.20.0

func (i AlertGroupConfigurationArgs) ToAlertGroupConfigurationOutput() AlertGroupConfigurationOutput

func (AlertGroupConfigurationArgs) ToAlertGroupConfigurationOutputWithContext added in v3.20.0

func (i AlertGroupConfigurationArgs) ToAlertGroupConfigurationOutputWithContext(ctx context.Context) AlertGroupConfigurationOutput

func (AlertGroupConfigurationArgs) ToAlertGroupConfigurationPtrOutput added in v3.20.0

func (i AlertGroupConfigurationArgs) ToAlertGroupConfigurationPtrOutput() AlertGroupConfigurationPtrOutput

func (AlertGroupConfigurationArgs) ToAlertGroupConfigurationPtrOutputWithContext added in v3.20.0

func (i AlertGroupConfigurationArgs) ToAlertGroupConfigurationPtrOutputWithContext(ctx context.Context) AlertGroupConfigurationPtrOutput

type AlertGroupConfigurationInput added in v3.20.0

type AlertGroupConfigurationInput interface {
	pulumi.Input

	ToAlertGroupConfigurationOutput() AlertGroupConfigurationOutput
	ToAlertGroupConfigurationOutputWithContext(context.Context) AlertGroupConfigurationOutput
}

AlertGroupConfigurationInput is an input type that accepts AlertGroupConfigurationArgs and AlertGroupConfigurationOutput values. You can construct a concrete instance of `AlertGroupConfigurationInput` via:

AlertGroupConfigurationArgs{...}

type AlertGroupConfigurationOutput added in v3.20.0

type AlertGroupConfigurationOutput struct{ *pulumi.OutputState }

func (AlertGroupConfigurationOutput) ElementType added in v3.20.0

func (AlertGroupConfigurationOutput) Fields added in v3.20.0

func (AlertGroupConfigurationOutput) ToAlertGroupConfigurationOutput added in v3.20.0

func (o AlertGroupConfigurationOutput) ToAlertGroupConfigurationOutput() AlertGroupConfigurationOutput

func (AlertGroupConfigurationOutput) ToAlertGroupConfigurationOutputWithContext added in v3.20.0

func (o AlertGroupConfigurationOutput) ToAlertGroupConfigurationOutputWithContext(ctx context.Context) AlertGroupConfigurationOutput

func (AlertGroupConfigurationOutput) ToAlertGroupConfigurationPtrOutput added in v3.20.0

func (o AlertGroupConfigurationOutput) ToAlertGroupConfigurationPtrOutput() AlertGroupConfigurationPtrOutput

func (AlertGroupConfigurationOutput) ToAlertGroupConfigurationPtrOutputWithContext added in v3.20.0

func (o AlertGroupConfigurationOutput) ToAlertGroupConfigurationPtrOutputWithContext(ctx context.Context) AlertGroupConfigurationPtrOutput

func (AlertGroupConfigurationOutput) Type added in v3.20.0

including FixedRate,Hourly,Daily,Weekly,Cron.

type AlertGroupConfigurationPtrInput added in v3.20.0

type AlertGroupConfigurationPtrInput interface {
	pulumi.Input

	ToAlertGroupConfigurationPtrOutput() AlertGroupConfigurationPtrOutput
	ToAlertGroupConfigurationPtrOutputWithContext(context.Context) AlertGroupConfigurationPtrOutput
}

AlertGroupConfigurationPtrInput is an input type that accepts AlertGroupConfigurationArgs, AlertGroupConfigurationPtr and AlertGroupConfigurationPtrOutput values. You can construct a concrete instance of `AlertGroupConfigurationPtrInput` via:

        AlertGroupConfigurationArgs{...}

or:

        nil

func AlertGroupConfigurationPtr added in v3.20.0

func AlertGroupConfigurationPtr(v *AlertGroupConfigurationArgs) AlertGroupConfigurationPtrInput

type AlertGroupConfigurationPtrOutput added in v3.20.0

type AlertGroupConfigurationPtrOutput struct{ *pulumi.OutputState }

func (AlertGroupConfigurationPtrOutput) Elem added in v3.20.0

func (AlertGroupConfigurationPtrOutput) ElementType added in v3.20.0

func (AlertGroupConfigurationPtrOutput) Fields added in v3.20.0

func (AlertGroupConfigurationPtrOutput) ToAlertGroupConfigurationPtrOutput added in v3.20.0

func (o AlertGroupConfigurationPtrOutput) ToAlertGroupConfigurationPtrOutput() AlertGroupConfigurationPtrOutput

func (AlertGroupConfigurationPtrOutput) ToAlertGroupConfigurationPtrOutputWithContext added in v3.20.0

func (o AlertGroupConfigurationPtrOutput) ToAlertGroupConfigurationPtrOutputWithContext(ctx context.Context) AlertGroupConfigurationPtrOutput

func (AlertGroupConfigurationPtrOutput) Type added in v3.20.0

including FixedRate,Hourly,Daily,Weekly,Cron.

type AlertInput

type AlertInput interface {
	pulumi.Input

	ToAlertOutput() AlertOutput
	ToAlertOutputWithContext(ctx context.Context) AlertOutput
}

type AlertJoinConfiguration added in v3.20.0

type AlertJoinConfiguration struct {
	// Join condition.
	Condition string `pulumi:"condition"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type string `pulumi:"type"`
}

type AlertJoinConfigurationArgs added in v3.20.0

type AlertJoinConfigurationArgs struct {
	// Join condition.
	Condition pulumi.StringInput `pulumi:"condition"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type pulumi.StringInput `pulumi:"type"`
}

func (AlertJoinConfigurationArgs) ElementType added in v3.20.0

func (AlertJoinConfigurationArgs) ElementType() reflect.Type

func (AlertJoinConfigurationArgs) ToAlertJoinConfigurationOutput added in v3.20.0

func (i AlertJoinConfigurationArgs) ToAlertJoinConfigurationOutput() AlertJoinConfigurationOutput

func (AlertJoinConfigurationArgs) ToAlertJoinConfigurationOutputWithContext added in v3.20.0

func (i AlertJoinConfigurationArgs) ToAlertJoinConfigurationOutputWithContext(ctx context.Context) AlertJoinConfigurationOutput

type AlertJoinConfigurationArray added in v3.20.0

type AlertJoinConfigurationArray []AlertJoinConfigurationInput

func (AlertJoinConfigurationArray) ElementType added in v3.20.0

func (AlertJoinConfigurationArray) ToAlertJoinConfigurationArrayOutput added in v3.20.0

func (i AlertJoinConfigurationArray) ToAlertJoinConfigurationArrayOutput() AlertJoinConfigurationArrayOutput

func (AlertJoinConfigurationArray) ToAlertJoinConfigurationArrayOutputWithContext added in v3.20.0

func (i AlertJoinConfigurationArray) ToAlertJoinConfigurationArrayOutputWithContext(ctx context.Context) AlertJoinConfigurationArrayOutput

type AlertJoinConfigurationArrayInput added in v3.20.0

type AlertJoinConfigurationArrayInput interface {
	pulumi.Input

	ToAlertJoinConfigurationArrayOutput() AlertJoinConfigurationArrayOutput
	ToAlertJoinConfigurationArrayOutputWithContext(context.Context) AlertJoinConfigurationArrayOutput
}

AlertJoinConfigurationArrayInput is an input type that accepts AlertJoinConfigurationArray and AlertJoinConfigurationArrayOutput values. You can construct a concrete instance of `AlertJoinConfigurationArrayInput` via:

AlertJoinConfigurationArray{ AlertJoinConfigurationArgs{...} }

type AlertJoinConfigurationArrayOutput added in v3.20.0

type AlertJoinConfigurationArrayOutput struct{ *pulumi.OutputState }

func (AlertJoinConfigurationArrayOutput) ElementType added in v3.20.0

func (AlertJoinConfigurationArrayOutput) Index added in v3.20.0

func (AlertJoinConfigurationArrayOutput) ToAlertJoinConfigurationArrayOutput added in v3.20.0

func (o AlertJoinConfigurationArrayOutput) ToAlertJoinConfigurationArrayOutput() AlertJoinConfigurationArrayOutput

func (AlertJoinConfigurationArrayOutput) ToAlertJoinConfigurationArrayOutputWithContext added in v3.20.0

func (o AlertJoinConfigurationArrayOutput) ToAlertJoinConfigurationArrayOutputWithContext(ctx context.Context) AlertJoinConfigurationArrayOutput

type AlertJoinConfigurationInput added in v3.20.0

type AlertJoinConfigurationInput interface {
	pulumi.Input

	ToAlertJoinConfigurationOutput() AlertJoinConfigurationOutput
	ToAlertJoinConfigurationOutputWithContext(context.Context) AlertJoinConfigurationOutput
}

AlertJoinConfigurationInput is an input type that accepts AlertJoinConfigurationArgs and AlertJoinConfigurationOutput values. You can construct a concrete instance of `AlertJoinConfigurationInput` via:

AlertJoinConfigurationArgs{...}

type AlertJoinConfigurationOutput added in v3.20.0

type AlertJoinConfigurationOutput struct{ *pulumi.OutputState }

func (AlertJoinConfigurationOutput) Condition added in v3.20.0

Join condition.

func (AlertJoinConfigurationOutput) ElementType added in v3.20.0

func (AlertJoinConfigurationOutput) ToAlertJoinConfigurationOutput added in v3.20.0

func (o AlertJoinConfigurationOutput) ToAlertJoinConfigurationOutput() AlertJoinConfigurationOutput

func (AlertJoinConfigurationOutput) ToAlertJoinConfigurationOutputWithContext added in v3.20.0

func (o AlertJoinConfigurationOutput) ToAlertJoinConfigurationOutputWithContext(ctx context.Context) AlertJoinConfigurationOutput

func (AlertJoinConfigurationOutput) Type added in v3.20.0

including FixedRate,Hourly,Daily,Weekly,Cron.

type AlertLabel added in v3.20.0

type AlertLabel struct {
	// Annotations's key for new alert.
	Key string `pulumi:"key"`
	// Annotations's value for new alert.
	Value string `pulumi:"value"`
}

type AlertLabelArgs added in v3.20.0

type AlertLabelArgs struct {
	// Annotations's key for new alert.
	Key pulumi.StringInput `pulumi:"key"`
	// Annotations's value for new alert.
	Value pulumi.StringInput `pulumi:"value"`
}

func (AlertLabelArgs) ElementType added in v3.20.0

func (AlertLabelArgs) ElementType() reflect.Type

func (AlertLabelArgs) ToAlertLabelOutput added in v3.20.0

func (i AlertLabelArgs) ToAlertLabelOutput() AlertLabelOutput

func (AlertLabelArgs) ToAlertLabelOutputWithContext added in v3.20.0

func (i AlertLabelArgs) ToAlertLabelOutputWithContext(ctx context.Context) AlertLabelOutput

type AlertLabelArray added in v3.20.0

type AlertLabelArray []AlertLabelInput

func (AlertLabelArray) ElementType added in v3.20.0

func (AlertLabelArray) ElementType() reflect.Type

func (AlertLabelArray) ToAlertLabelArrayOutput added in v3.20.0

func (i AlertLabelArray) ToAlertLabelArrayOutput() AlertLabelArrayOutput

func (AlertLabelArray) ToAlertLabelArrayOutputWithContext added in v3.20.0

func (i AlertLabelArray) ToAlertLabelArrayOutputWithContext(ctx context.Context) AlertLabelArrayOutput

type AlertLabelArrayInput added in v3.20.0

type AlertLabelArrayInput interface {
	pulumi.Input

	ToAlertLabelArrayOutput() AlertLabelArrayOutput
	ToAlertLabelArrayOutputWithContext(context.Context) AlertLabelArrayOutput
}

AlertLabelArrayInput is an input type that accepts AlertLabelArray and AlertLabelArrayOutput values. You can construct a concrete instance of `AlertLabelArrayInput` via:

AlertLabelArray{ AlertLabelArgs{...} }

type AlertLabelArrayOutput added in v3.20.0

type AlertLabelArrayOutput struct{ *pulumi.OutputState }

func (AlertLabelArrayOutput) ElementType added in v3.20.0

func (AlertLabelArrayOutput) ElementType() reflect.Type

func (AlertLabelArrayOutput) Index added in v3.20.0

func (AlertLabelArrayOutput) ToAlertLabelArrayOutput added in v3.20.0

func (o AlertLabelArrayOutput) ToAlertLabelArrayOutput() AlertLabelArrayOutput

func (AlertLabelArrayOutput) ToAlertLabelArrayOutputWithContext added in v3.20.0

func (o AlertLabelArrayOutput) ToAlertLabelArrayOutputWithContext(ctx context.Context) AlertLabelArrayOutput

type AlertLabelInput added in v3.20.0

type AlertLabelInput interface {
	pulumi.Input

	ToAlertLabelOutput() AlertLabelOutput
	ToAlertLabelOutputWithContext(context.Context) AlertLabelOutput
}

AlertLabelInput is an input type that accepts AlertLabelArgs and AlertLabelOutput values. You can construct a concrete instance of `AlertLabelInput` via:

AlertLabelArgs{...}

type AlertLabelOutput added in v3.20.0

type AlertLabelOutput struct{ *pulumi.OutputState }

func (AlertLabelOutput) ElementType added in v3.20.0

func (AlertLabelOutput) ElementType() reflect.Type

func (AlertLabelOutput) Key added in v3.20.0

Annotations's key for new alert.

func (AlertLabelOutput) ToAlertLabelOutput added in v3.20.0

func (o AlertLabelOutput) ToAlertLabelOutput() AlertLabelOutput

func (AlertLabelOutput) ToAlertLabelOutputWithContext added in v3.20.0

func (o AlertLabelOutput) ToAlertLabelOutputWithContext(ctx context.Context) AlertLabelOutput

func (AlertLabelOutput) Value added in v3.20.0

Annotations's value for new alert.

type AlertMap

type AlertMap map[string]AlertInput

func (AlertMap) ElementType

func (AlertMap) ElementType() reflect.Type

func (AlertMap) ToAlertMapOutput

func (i AlertMap) ToAlertMapOutput() AlertMapOutput

func (AlertMap) ToAlertMapOutputWithContext

func (i AlertMap) ToAlertMapOutputWithContext(ctx context.Context) AlertMapOutput

type AlertMapInput

type AlertMapInput interface {
	pulumi.Input

	ToAlertMapOutput() AlertMapOutput
	ToAlertMapOutputWithContext(context.Context) AlertMapOutput
}

AlertMapInput is an input type that accepts AlertMap and AlertMapOutput values. You can construct a concrete instance of `AlertMapInput` via:

AlertMap{ "key": AlertArgs{...} }

type AlertMapOutput

type AlertMapOutput struct{ *pulumi.OutputState }

func (AlertMapOutput) ElementType

func (AlertMapOutput) ElementType() reflect.Type

func (AlertMapOutput) MapIndex

func (AlertMapOutput) ToAlertMapOutput

func (o AlertMapOutput) ToAlertMapOutput() AlertMapOutput

func (AlertMapOutput) ToAlertMapOutputWithContext

func (o AlertMapOutput) ToAlertMapOutputWithContext(ctx context.Context) AlertMapOutput

type AlertNotificationList

type AlertNotificationList struct {
	// Notice content of alarm.
	Content string `pulumi:"content"`
	// Email address list.
	EmailLists []string `pulumi:"emailLists"`
	// SMS sending mobile number.
	MobileLists []string `pulumi:"mobileLists"`
	// Request address.
	ServiceUri *string `pulumi:"serviceUri"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type string `pulumi:"type"`
}

type AlertNotificationListArgs

type AlertNotificationListArgs struct {
	// Notice content of alarm.
	Content pulumi.StringInput `pulumi:"content"`
	// Email address list.
	EmailLists pulumi.StringArrayInput `pulumi:"emailLists"`
	// SMS sending mobile number.
	MobileLists pulumi.StringArrayInput `pulumi:"mobileLists"`
	// Request address.
	ServiceUri pulumi.StringPtrInput `pulumi:"serviceUri"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type pulumi.StringInput `pulumi:"type"`
}

func (AlertNotificationListArgs) ElementType

func (AlertNotificationListArgs) ElementType() reflect.Type

func (AlertNotificationListArgs) ToAlertNotificationListOutput

func (i AlertNotificationListArgs) ToAlertNotificationListOutput() AlertNotificationListOutput

func (AlertNotificationListArgs) ToAlertNotificationListOutputWithContext

func (i AlertNotificationListArgs) ToAlertNotificationListOutputWithContext(ctx context.Context) AlertNotificationListOutput

type AlertNotificationListArray

type AlertNotificationListArray []AlertNotificationListInput

func (AlertNotificationListArray) ElementType

func (AlertNotificationListArray) ElementType() reflect.Type

func (AlertNotificationListArray) ToAlertNotificationListArrayOutput

func (i AlertNotificationListArray) ToAlertNotificationListArrayOutput() AlertNotificationListArrayOutput

func (AlertNotificationListArray) ToAlertNotificationListArrayOutputWithContext

func (i AlertNotificationListArray) ToAlertNotificationListArrayOutputWithContext(ctx context.Context) AlertNotificationListArrayOutput

type AlertNotificationListArrayInput

type AlertNotificationListArrayInput interface {
	pulumi.Input

	ToAlertNotificationListArrayOutput() AlertNotificationListArrayOutput
	ToAlertNotificationListArrayOutputWithContext(context.Context) AlertNotificationListArrayOutput
}

AlertNotificationListArrayInput is an input type that accepts AlertNotificationListArray and AlertNotificationListArrayOutput values. You can construct a concrete instance of `AlertNotificationListArrayInput` via:

AlertNotificationListArray{ AlertNotificationListArgs{...} }

type AlertNotificationListArrayOutput

type AlertNotificationListArrayOutput struct{ *pulumi.OutputState }

func (AlertNotificationListArrayOutput) ElementType

func (AlertNotificationListArrayOutput) Index

func (AlertNotificationListArrayOutput) ToAlertNotificationListArrayOutput

func (o AlertNotificationListArrayOutput) ToAlertNotificationListArrayOutput() AlertNotificationListArrayOutput

func (AlertNotificationListArrayOutput) ToAlertNotificationListArrayOutputWithContext

func (o AlertNotificationListArrayOutput) ToAlertNotificationListArrayOutputWithContext(ctx context.Context) AlertNotificationListArrayOutput

type AlertNotificationListInput

type AlertNotificationListInput interface {
	pulumi.Input

	ToAlertNotificationListOutput() AlertNotificationListOutput
	ToAlertNotificationListOutputWithContext(context.Context) AlertNotificationListOutput
}

AlertNotificationListInput is an input type that accepts AlertNotificationListArgs and AlertNotificationListOutput values. You can construct a concrete instance of `AlertNotificationListInput` via:

AlertNotificationListArgs{...}

type AlertNotificationListOutput

type AlertNotificationListOutput struct{ *pulumi.OutputState }

func (AlertNotificationListOutput) Content

Notice content of alarm.

func (AlertNotificationListOutput) ElementType

func (AlertNotificationListOutput) EmailLists

Email address list.

func (AlertNotificationListOutput) MobileLists

SMS sending mobile number.

func (AlertNotificationListOutput) ServiceUri

Request address.

func (AlertNotificationListOutput) ToAlertNotificationListOutput

func (o AlertNotificationListOutput) ToAlertNotificationListOutput() AlertNotificationListOutput

func (AlertNotificationListOutput) ToAlertNotificationListOutputWithContext

func (o AlertNotificationListOutput) ToAlertNotificationListOutputWithContext(ctx context.Context) AlertNotificationListOutput

func (AlertNotificationListOutput) Type

including FixedRate,Hourly,Daily,Weekly,Cron.

type AlertOutput

type AlertOutput struct{ *pulumi.OutputState }

func (AlertOutput) AlertDescription added in v3.27.0

func (o AlertOutput) AlertDescription() pulumi.StringPtrOutput

Alert description.

func (AlertOutput) AlertDisplayname added in v3.27.0

func (o AlertOutput) AlertDisplayname() pulumi.StringOutput

Alert displayname.

func (AlertOutput) AlertName added in v3.27.0

func (o AlertOutput) AlertName() pulumi.StringOutput

Name of logstore for configuring alarm service.

func (AlertOutput) Annotations added in v3.27.0

func (o AlertOutput) Annotations() AlertAnnotationArrayOutput

Alert template annotations.

func (AlertOutput) AutoAnnotation added in v3.27.0

func (o AlertOutput) AutoAnnotation() pulumi.BoolPtrOutput

whether to add automatic annotation, default is false.

func (AlertOutput) Condition deprecated added in v3.27.0

func (o AlertOutput) Condition() pulumi.StringPtrOutput

Join condition.

Deprecated: Deprecated from 1.161.0+, use eval_condition in severity_configurations

func (AlertOutput) Dashboard deprecated added in v3.27.0

func (o AlertOutput) Dashboard() pulumi.StringPtrOutput

Deprecated: Deprecated from 1.161.0+, use dashboardId in query_list

func (AlertOutput) ElementType

func (AlertOutput) ElementType() reflect.Type

func (AlertOutput) GroupConfiguration added in v3.27.0

func (o AlertOutput) GroupConfiguration() AlertGroupConfigurationPtrOutput

Group configuration for new alert.

func (AlertOutput) JoinConfigurations added in v3.27.0

func (o AlertOutput) JoinConfigurations() AlertJoinConfigurationArrayOutput

Join configuration for different queries.

func (AlertOutput) Labels added in v3.27.0

Labels for new alert.

func (AlertOutput) MuteUntil added in v3.27.0

func (o AlertOutput) MuteUntil() pulumi.IntOutput

Timestamp, notifications before closing again.

func (AlertOutput) NoDataFire added in v3.27.0

func (o AlertOutput) NoDataFire() pulumi.BoolPtrOutput

Switch for whether new alert fires when no data happens, default is false.

func (AlertOutput) NoDataSeverity added in v3.27.0

func (o AlertOutput) NoDataSeverity() pulumi.IntPtrOutput

when no data happens, the severity of new alert.

func (AlertOutput) NotificationLists deprecated added in v3.27.0

func (o AlertOutput) NotificationLists() AlertNotificationListArrayOutput

Alarm information notification list, Deprecated from 1.161.0+.

Deprecated: Deprecated from 1.161.0+, use policy_configuration for notification

func (AlertOutput) NotifyThreshold deprecated added in v3.27.0

func (o AlertOutput) NotifyThreshold() pulumi.IntPtrOutput

Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.

Deprecated: Deprecated from 1.161.0+, use threshold

func (AlertOutput) PolicyConfiguration added in v3.27.0

func (o AlertOutput) PolicyConfiguration() AlertPolicyConfigurationPtrOutput

Policy configuration for new alert.

func (AlertOutput) ProjectName added in v3.27.0

func (o AlertOutput) ProjectName() pulumi.StringOutput

The project name.

func (AlertOutput) QueryLists added in v3.27.0

func (o AlertOutput) QueryLists() AlertQueryListArrayOutput

Multiple conditions for configured alarm query.

func (AlertOutput) Schedule added in v3.27.0

func (o AlertOutput) Schedule() AlertSchedulePtrOutput

schedule for alert.

func (AlertOutput) ScheduleInterval deprecated added in v3.27.0

func (o AlertOutput) ScheduleInterval() pulumi.StringOutput

Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.

Deprecated: Field 'schedule_interval' has been deprecated from provider version 1.176.0. New field 'schedule' instead.

func (AlertOutput) ScheduleType deprecated added in v3.27.0

func (o AlertOutput) ScheduleType() pulumi.StringOutput

Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.

Deprecated: Field 'schedule_type' has been deprecated from provider version 1.176.0. New field 'schedule' instead.

func (AlertOutput) SendResolved added in v3.27.0

func (o AlertOutput) SendResolved() pulumi.BoolPtrOutput

when new alert is resolved, whether to notify, default is false.

func (AlertOutput) SeverityConfigurations added in v3.27.0

func (o AlertOutput) SeverityConfigurations() AlertSeverityConfigurationArrayOutput

Severity configuration for new alert.

func (AlertOutput) TemplateConfiguration added in v3.36.0

func (o AlertOutput) TemplateConfiguration() AlertTemplateConfigurationPtrOutput

Template configuration for alert, when `type` is `tpl`.

func (AlertOutput) Threshold added in v3.27.0

func (o AlertOutput) Threshold() pulumi.IntOutput

Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.

func (AlertOutput) Throttling deprecated added in v3.27.0

func (o AlertOutput) Throttling() pulumi.StringPtrOutput

Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.

Deprecated: Deprecated from 1.161.0+, use repeat_interval in policy_configuration

func (AlertOutput) ToAlertOutput

func (o AlertOutput) ToAlertOutput() AlertOutput

func (AlertOutput) ToAlertOutputWithContext

func (o AlertOutput) ToAlertOutputWithContext(ctx context.Context) AlertOutput

func (AlertOutput) Type added in v3.27.0

including FixedRate,Hourly,Daily,Weekly,Cron.

func (AlertOutput) Version added in v3.27.0

func (o AlertOutput) Version() pulumi.StringPtrOutput

The version of alert, new alert is 2.0.

type AlertPolicyConfiguration added in v3.20.0

type AlertPolicyConfiguration struct {
	// Action Policy Id.
	ActionPolicyId *string `pulumi:"actionPolicyId"`
	// Alert Policy Id.
	AlertPolicyId string `pulumi:"alertPolicyId"`
	// Repeat interval used by alert policy, 1h, 1m.e.g.
	RepeatInterval string `pulumi:"repeatInterval"`
}

type AlertPolicyConfigurationArgs added in v3.20.0

type AlertPolicyConfigurationArgs struct {
	// Action Policy Id.
	ActionPolicyId pulumi.StringPtrInput `pulumi:"actionPolicyId"`
	// Alert Policy Id.
	AlertPolicyId pulumi.StringInput `pulumi:"alertPolicyId"`
	// Repeat interval used by alert policy, 1h, 1m.e.g.
	RepeatInterval pulumi.StringInput `pulumi:"repeatInterval"`
}

func (AlertPolicyConfigurationArgs) ElementType added in v3.20.0

func (AlertPolicyConfigurationArgs) ToAlertPolicyConfigurationOutput added in v3.20.0

func (i AlertPolicyConfigurationArgs) ToAlertPolicyConfigurationOutput() AlertPolicyConfigurationOutput

func (AlertPolicyConfigurationArgs) ToAlertPolicyConfigurationOutputWithContext added in v3.20.0

func (i AlertPolicyConfigurationArgs) ToAlertPolicyConfigurationOutputWithContext(ctx context.Context) AlertPolicyConfigurationOutput

func (AlertPolicyConfigurationArgs) ToAlertPolicyConfigurationPtrOutput added in v3.20.0

func (i AlertPolicyConfigurationArgs) ToAlertPolicyConfigurationPtrOutput() AlertPolicyConfigurationPtrOutput

func (AlertPolicyConfigurationArgs) ToAlertPolicyConfigurationPtrOutputWithContext added in v3.20.0

func (i AlertPolicyConfigurationArgs) ToAlertPolicyConfigurationPtrOutputWithContext(ctx context.Context) AlertPolicyConfigurationPtrOutput

type AlertPolicyConfigurationInput added in v3.20.0

type AlertPolicyConfigurationInput interface {
	pulumi.Input

	ToAlertPolicyConfigurationOutput() AlertPolicyConfigurationOutput
	ToAlertPolicyConfigurationOutputWithContext(context.Context) AlertPolicyConfigurationOutput
}

AlertPolicyConfigurationInput is an input type that accepts AlertPolicyConfigurationArgs and AlertPolicyConfigurationOutput values. You can construct a concrete instance of `AlertPolicyConfigurationInput` via:

AlertPolicyConfigurationArgs{...}

type AlertPolicyConfigurationOutput added in v3.20.0

type AlertPolicyConfigurationOutput struct{ *pulumi.OutputState }

func (AlertPolicyConfigurationOutput) ActionPolicyId added in v3.20.0

Action Policy Id.

func (AlertPolicyConfigurationOutput) AlertPolicyId added in v3.20.0

Alert Policy Id.

func (AlertPolicyConfigurationOutput) ElementType added in v3.20.0

func (AlertPolicyConfigurationOutput) RepeatInterval added in v3.20.0

Repeat interval used by alert policy, 1h, 1m.e.g.

func (AlertPolicyConfigurationOutput) ToAlertPolicyConfigurationOutput added in v3.20.0

func (o AlertPolicyConfigurationOutput) ToAlertPolicyConfigurationOutput() AlertPolicyConfigurationOutput

func (AlertPolicyConfigurationOutput) ToAlertPolicyConfigurationOutputWithContext added in v3.20.0

func (o AlertPolicyConfigurationOutput) ToAlertPolicyConfigurationOutputWithContext(ctx context.Context) AlertPolicyConfigurationOutput

func (AlertPolicyConfigurationOutput) ToAlertPolicyConfigurationPtrOutput added in v3.20.0

func (o AlertPolicyConfigurationOutput) ToAlertPolicyConfigurationPtrOutput() AlertPolicyConfigurationPtrOutput

func (AlertPolicyConfigurationOutput) ToAlertPolicyConfigurationPtrOutputWithContext added in v3.20.0

func (o AlertPolicyConfigurationOutput) ToAlertPolicyConfigurationPtrOutputWithContext(ctx context.Context) AlertPolicyConfigurationPtrOutput

type AlertPolicyConfigurationPtrInput added in v3.20.0

type AlertPolicyConfigurationPtrInput interface {
	pulumi.Input

	ToAlertPolicyConfigurationPtrOutput() AlertPolicyConfigurationPtrOutput
	ToAlertPolicyConfigurationPtrOutputWithContext(context.Context) AlertPolicyConfigurationPtrOutput
}

AlertPolicyConfigurationPtrInput is an input type that accepts AlertPolicyConfigurationArgs, AlertPolicyConfigurationPtr and AlertPolicyConfigurationPtrOutput values. You can construct a concrete instance of `AlertPolicyConfigurationPtrInput` via:

        AlertPolicyConfigurationArgs{...}

or:

        nil

func AlertPolicyConfigurationPtr added in v3.20.0

func AlertPolicyConfigurationPtr(v *AlertPolicyConfigurationArgs) AlertPolicyConfigurationPtrInput

type AlertPolicyConfigurationPtrOutput added in v3.20.0

type AlertPolicyConfigurationPtrOutput struct{ *pulumi.OutputState }

func (AlertPolicyConfigurationPtrOutput) ActionPolicyId added in v3.20.0

Action Policy Id.

func (AlertPolicyConfigurationPtrOutput) AlertPolicyId added in v3.20.0

Alert Policy Id.

func (AlertPolicyConfigurationPtrOutput) Elem added in v3.20.0

func (AlertPolicyConfigurationPtrOutput) ElementType added in v3.20.0

func (AlertPolicyConfigurationPtrOutput) RepeatInterval added in v3.20.0

Repeat interval used by alert policy, 1h, 1m.e.g.

func (AlertPolicyConfigurationPtrOutput) ToAlertPolicyConfigurationPtrOutput added in v3.20.0

func (o AlertPolicyConfigurationPtrOutput) ToAlertPolicyConfigurationPtrOutput() AlertPolicyConfigurationPtrOutput

func (AlertPolicyConfigurationPtrOutput) ToAlertPolicyConfigurationPtrOutputWithContext added in v3.20.0

func (o AlertPolicyConfigurationPtrOutput) ToAlertPolicyConfigurationPtrOutputWithContext(ctx context.Context) AlertPolicyConfigurationPtrOutput

type AlertQueryList

type AlertQueryList struct {
	// Chart title, optional from 1.161.0+.
	ChartTitle *string `pulumi:"chartTitle"`
	// Query dashboard id.
	DashboardId *string `pulumi:"dashboardId"`
	// End time. example: 20s.
	End string `pulumi:"end"`
	// Query logstore, use store for new alert, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use store
	Logstore *string `pulumi:"logstore"`
	// default disable, whether to use power sql. support auto, enable, disable.
	PowerSqlMode *string `pulumi:"powerSqlMode"`
	// Query project.
	Project *string `pulumi:"project"`
	// Query corresponding to chart. example: * AND aliyun.
	Query string `pulumi:"query"`
	// Query project region.
	Region *string `pulumi:"region"`
	// Query project store's ARN.
	RoleArn *string `pulumi:"roleArn"`
	// Begin time. example: -60s.
	Start string `pulumi:"start"`
	// Query store for new alert.
	Store *string `pulumi:"store"`
	// Query store type for new alert, including log,metric,meta.
	StoreType *string `pulumi:"storeType"`
	// default Custom. No need to configure this parameter.
	TimeSpanType *string `pulumi:"timeSpanType"`
}

type AlertQueryListArgs

type AlertQueryListArgs struct {
	// Chart title, optional from 1.161.0+.
	ChartTitle pulumi.StringPtrInput `pulumi:"chartTitle"`
	// Query dashboard id.
	DashboardId pulumi.StringPtrInput `pulumi:"dashboardId"`
	// End time. example: 20s.
	End pulumi.StringInput `pulumi:"end"`
	// Query logstore, use store for new alert, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use store
	Logstore pulumi.StringPtrInput `pulumi:"logstore"`
	// default disable, whether to use power sql. support auto, enable, disable.
	PowerSqlMode pulumi.StringPtrInput `pulumi:"powerSqlMode"`
	// Query project.
	Project pulumi.StringPtrInput `pulumi:"project"`
	// Query corresponding to chart. example: * AND aliyun.
	Query pulumi.StringInput `pulumi:"query"`
	// Query project region.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Query project store's ARN.
	RoleArn pulumi.StringPtrInput `pulumi:"roleArn"`
	// Begin time. example: -60s.
	Start pulumi.StringInput `pulumi:"start"`
	// Query store for new alert.
	Store pulumi.StringPtrInput `pulumi:"store"`
	// Query store type for new alert, including log,metric,meta.
	StoreType pulumi.StringPtrInput `pulumi:"storeType"`
	// default Custom. No need to configure this parameter.
	TimeSpanType pulumi.StringPtrInput `pulumi:"timeSpanType"`
}

func (AlertQueryListArgs) ElementType

func (AlertQueryListArgs) ElementType() reflect.Type

func (AlertQueryListArgs) ToAlertQueryListOutput

func (i AlertQueryListArgs) ToAlertQueryListOutput() AlertQueryListOutput

func (AlertQueryListArgs) ToAlertQueryListOutputWithContext

func (i AlertQueryListArgs) ToAlertQueryListOutputWithContext(ctx context.Context) AlertQueryListOutput

type AlertQueryListArray

type AlertQueryListArray []AlertQueryListInput

func (AlertQueryListArray) ElementType

func (AlertQueryListArray) ElementType() reflect.Type

func (AlertQueryListArray) ToAlertQueryListArrayOutput

func (i AlertQueryListArray) ToAlertQueryListArrayOutput() AlertQueryListArrayOutput

func (AlertQueryListArray) ToAlertQueryListArrayOutputWithContext

func (i AlertQueryListArray) ToAlertQueryListArrayOutputWithContext(ctx context.Context) AlertQueryListArrayOutput

type AlertQueryListArrayInput

type AlertQueryListArrayInput interface {
	pulumi.Input

	ToAlertQueryListArrayOutput() AlertQueryListArrayOutput
	ToAlertQueryListArrayOutputWithContext(context.Context) AlertQueryListArrayOutput
}

AlertQueryListArrayInput is an input type that accepts AlertQueryListArray and AlertQueryListArrayOutput values. You can construct a concrete instance of `AlertQueryListArrayInput` via:

AlertQueryListArray{ AlertQueryListArgs{...} }

type AlertQueryListArrayOutput

type AlertQueryListArrayOutput struct{ *pulumi.OutputState }

func (AlertQueryListArrayOutput) ElementType

func (AlertQueryListArrayOutput) ElementType() reflect.Type

func (AlertQueryListArrayOutput) Index

func (AlertQueryListArrayOutput) ToAlertQueryListArrayOutput

func (o AlertQueryListArrayOutput) ToAlertQueryListArrayOutput() AlertQueryListArrayOutput

func (AlertQueryListArrayOutput) ToAlertQueryListArrayOutputWithContext

func (o AlertQueryListArrayOutput) ToAlertQueryListArrayOutputWithContext(ctx context.Context) AlertQueryListArrayOutput

type AlertQueryListInput

type AlertQueryListInput interface {
	pulumi.Input

	ToAlertQueryListOutput() AlertQueryListOutput
	ToAlertQueryListOutputWithContext(context.Context) AlertQueryListOutput
}

AlertQueryListInput is an input type that accepts AlertQueryListArgs and AlertQueryListOutput values. You can construct a concrete instance of `AlertQueryListInput` via:

AlertQueryListArgs{...}

type AlertQueryListOutput

type AlertQueryListOutput struct{ *pulumi.OutputState }

func (AlertQueryListOutput) ChartTitle

Chart title, optional from 1.161.0+.

func (AlertQueryListOutput) DashboardId added in v3.20.0

Query dashboard id.

func (AlertQueryListOutput) ElementType

func (AlertQueryListOutput) ElementType() reflect.Type

func (AlertQueryListOutput) End

End time. example: 20s.

func (AlertQueryListOutput) Logstore deprecated

Query logstore, use store for new alert, Deprecated from 1.161.0+.

Deprecated: Deprecated from 1.161.0+, use store

func (AlertQueryListOutput) PowerSqlMode added in v3.20.0

func (o AlertQueryListOutput) PowerSqlMode() pulumi.StringPtrOutput

default disable, whether to use power sql. support auto, enable, disable.

func (AlertQueryListOutput) Project added in v3.20.0

Query project.

func (AlertQueryListOutput) Query

Query corresponding to chart. example: * AND aliyun.

func (AlertQueryListOutput) Region added in v3.20.0

Query project region.

func (AlertQueryListOutput) RoleArn added in v3.20.0

Query project store's ARN.

func (AlertQueryListOutput) Start

Begin time. example: -60s.

func (AlertQueryListOutput) Store added in v3.20.0

Query store for new alert.

func (AlertQueryListOutput) StoreType added in v3.20.0

Query store type for new alert, including log,metric,meta.

func (AlertQueryListOutput) TimeSpanType

func (o AlertQueryListOutput) TimeSpanType() pulumi.StringPtrOutput

default Custom. No need to configure this parameter.

func (AlertQueryListOutput) ToAlertQueryListOutput

func (o AlertQueryListOutput) ToAlertQueryListOutput() AlertQueryListOutput

func (AlertQueryListOutput) ToAlertQueryListOutputWithContext

func (o AlertQueryListOutput) ToAlertQueryListOutputWithContext(ctx context.Context) AlertQueryListOutput

type AlertSchedule added in v3.24.0

type AlertSchedule struct {
	// Cron expression when type is Cron.
	CronExpression *string `pulumi:"cronExpression"`
	// Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday
	DayOfWeek *int `pulumi:"dayOfWeek"`
	Delay     *int `pulumi:"delay"`
	// Hour of day when type is Weekly/Daily.
	Hour *int `pulumi:"hour"`
	// Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.
	Interval       *string `pulumi:"interval"`
	RunImmediately *bool   `pulumi:"runImmediately"`
	// Time zone for schedule.
	TimeZone *string `pulumi:"timeZone"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type string `pulumi:"type"`
}

type AlertScheduleArgs added in v3.24.0

type AlertScheduleArgs struct {
	// Cron expression when type is Cron.
	CronExpression pulumi.StringPtrInput `pulumi:"cronExpression"`
	// Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday
	DayOfWeek pulumi.IntPtrInput `pulumi:"dayOfWeek"`
	Delay     pulumi.IntPtrInput `pulumi:"delay"`
	// Hour of day when type is Weekly/Daily.
	Hour pulumi.IntPtrInput `pulumi:"hour"`
	// Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.
	Interval       pulumi.StringPtrInput `pulumi:"interval"`
	RunImmediately pulumi.BoolPtrInput   `pulumi:"runImmediately"`
	// Time zone for schedule.
	TimeZone pulumi.StringPtrInput `pulumi:"timeZone"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type pulumi.StringInput `pulumi:"type"`
}

func (AlertScheduleArgs) ElementType added in v3.24.0

func (AlertScheduleArgs) ElementType() reflect.Type

func (AlertScheduleArgs) ToAlertScheduleOutput added in v3.24.0

func (i AlertScheduleArgs) ToAlertScheduleOutput() AlertScheduleOutput

func (AlertScheduleArgs) ToAlertScheduleOutputWithContext added in v3.24.0

func (i AlertScheduleArgs) ToAlertScheduleOutputWithContext(ctx context.Context) AlertScheduleOutput

func (AlertScheduleArgs) ToAlertSchedulePtrOutput added in v3.24.0

func (i AlertScheduleArgs) ToAlertSchedulePtrOutput() AlertSchedulePtrOutput

func (AlertScheduleArgs) ToAlertSchedulePtrOutputWithContext added in v3.24.0

func (i AlertScheduleArgs) ToAlertSchedulePtrOutputWithContext(ctx context.Context) AlertSchedulePtrOutput

type AlertScheduleInput added in v3.24.0

type AlertScheduleInput interface {
	pulumi.Input

	ToAlertScheduleOutput() AlertScheduleOutput
	ToAlertScheduleOutputWithContext(context.Context) AlertScheduleOutput
}

AlertScheduleInput is an input type that accepts AlertScheduleArgs and AlertScheduleOutput values. You can construct a concrete instance of `AlertScheduleInput` via:

AlertScheduleArgs{...}

type AlertScheduleOutput added in v3.24.0

type AlertScheduleOutput struct{ *pulumi.OutputState }

func (AlertScheduleOutput) CronExpression added in v3.24.0

func (o AlertScheduleOutput) CronExpression() pulumi.StringPtrOutput

Cron expression when type is Cron.

func (AlertScheduleOutput) DayOfWeek added in v3.24.0

func (o AlertScheduleOutput) DayOfWeek() pulumi.IntPtrOutput

Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday

func (AlertScheduleOutput) Delay added in v3.24.0

func (AlertScheduleOutput) ElementType added in v3.24.0

func (AlertScheduleOutput) ElementType() reflect.Type

func (AlertScheduleOutput) Hour added in v3.24.0

Hour of day when type is Weekly/Daily.

func (AlertScheduleOutput) Interval added in v3.24.0

Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.

func (AlertScheduleOutput) RunImmediately added in v3.24.0

func (o AlertScheduleOutput) RunImmediately() pulumi.BoolPtrOutput

func (AlertScheduleOutput) TimeZone added in v3.24.0

Time zone for schedule.

func (AlertScheduleOutput) ToAlertScheduleOutput added in v3.24.0

func (o AlertScheduleOutput) ToAlertScheduleOutput() AlertScheduleOutput

func (AlertScheduleOutput) ToAlertScheduleOutputWithContext added in v3.24.0

func (o AlertScheduleOutput) ToAlertScheduleOutputWithContext(ctx context.Context) AlertScheduleOutput

func (AlertScheduleOutput) ToAlertSchedulePtrOutput added in v3.24.0

func (o AlertScheduleOutput) ToAlertSchedulePtrOutput() AlertSchedulePtrOutput

func (AlertScheduleOutput) ToAlertSchedulePtrOutputWithContext added in v3.24.0

func (o AlertScheduleOutput) ToAlertSchedulePtrOutputWithContext(ctx context.Context) AlertSchedulePtrOutput

func (AlertScheduleOutput) Type added in v3.24.0

including FixedRate,Hourly,Daily,Weekly,Cron.

type AlertSchedulePtrInput added in v3.24.0

type AlertSchedulePtrInput interface {
	pulumi.Input

	ToAlertSchedulePtrOutput() AlertSchedulePtrOutput
	ToAlertSchedulePtrOutputWithContext(context.Context) AlertSchedulePtrOutput
}

AlertSchedulePtrInput is an input type that accepts AlertScheduleArgs, AlertSchedulePtr and AlertSchedulePtrOutput values. You can construct a concrete instance of `AlertSchedulePtrInput` via:

        AlertScheduleArgs{...}

or:

        nil

func AlertSchedulePtr added in v3.24.0

func AlertSchedulePtr(v *AlertScheduleArgs) AlertSchedulePtrInput

type AlertSchedulePtrOutput added in v3.24.0

type AlertSchedulePtrOutput struct{ *pulumi.OutputState }

func (AlertSchedulePtrOutput) CronExpression added in v3.24.0

func (o AlertSchedulePtrOutput) CronExpression() pulumi.StringPtrOutput

Cron expression when type is Cron.

func (AlertSchedulePtrOutput) DayOfWeek added in v3.24.0

Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday

func (AlertSchedulePtrOutput) Delay added in v3.24.0

func (AlertSchedulePtrOutput) Elem added in v3.24.0

func (AlertSchedulePtrOutput) ElementType added in v3.24.0

func (AlertSchedulePtrOutput) ElementType() reflect.Type

func (AlertSchedulePtrOutput) Hour added in v3.24.0

Hour of day when type is Weekly/Daily.

func (AlertSchedulePtrOutput) Interval added in v3.24.0

Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.

func (AlertSchedulePtrOutput) RunImmediately added in v3.24.0

func (o AlertSchedulePtrOutput) RunImmediately() pulumi.BoolPtrOutput

func (AlertSchedulePtrOutput) TimeZone added in v3.24.0

Time zone for schedule.

func (AlertSchedulePtrOutput) ToAlertSchedulePtrOutput added in v3.24.0

func (o AlertSchedulePtrOutput) ToAlertSchedulePtrOutput() AlertSchedulePtrOutput

func (AlertSchedulePtrOutput) ToAlertSchedulePtrOutputWithContext added in v3.24.0

func (o AlertSchedulePtrOutput) ToAlertSchedulePtrOutputWithContext(ctx context.Context) AlertSchedulePtrOutput

func (AlertSchedulePtrOutput) Type added in v3.24.0

including FixedRate,Hourly,Daily,Weekly,Cron.

type AlertSeverityConfiguration added in v3.20.0

type AlertSeverityConfiguration struct {
	// Severity when this condition is met.
	EvalCondition map[string]string `pulumi:"evalCondition"`
	// Severity for new alert, including 2,4,6,8,10 for Report,Low,Medium,High,Critical.
	Severity int `pulumi:"severity"`
}

type AlertSeverityConfigurationArgs added in v3.20.0

type AlertSeverityConfigurationArgs struct {
	// Severity when this condition is met.
	EvalCondition pulumi.StringMapInput `pulumi:"evalCondition"`
	// Severity for new alert, including 2,4,6,8,10 for Report,Low,Medium,High,Critical.
	Severity pulumi.IntInput `pulumi:"severity"`
}

func (AlertSeverityConfigurationArgs) ElementType added in v3.20.0

func (AlertSeverityConfigurationArgs) ToAlertSeverityConfigurationOutput added in v3.20.0

func (i AlertSeverityConfigurationArgs) ToAlertSeverityConfigurationOutput() AlertSeverityConfigurationOutput

func (AlertSeverityConfigurationArgs) ToAlertSeverityConfigurationOutputWithContext added in v3.20.0

func (i AlertSeverityConfigurationArgs) ToAlertSeverityConfigurationOutputWithContext(ctx context.Context) AlertSeverityConfigurationOutput

type AlertSeverityConfigurationArray added in v3.20.0

type AlertSeverityConfigurationArray []AlertSeverityConfigurationInput

func (AlertSeverityConfigurationArray) ElementType added in v3.20.0

func (AlertSeverityConfigurationArray) ToAlertSeverityConfigurationArrayOutput added in v3.20.0

func (i AlertSeverityConfigurationArray) ToAlertSeverityConfigurationArrayOutput() AlertSeverityConfigurationArrayOutput

func (AlertSeverityConfigurationArray) ToAlertSeverityConfigurationArrayOutputWithContext added in v3.20.0

func (i AlertSeverityConfigurationArray) ToAlertSeverityConfigurationArrayOutputWithContext(ctx context.Context) AlertSeverityConfigurationArrayOutput

type AlertSeverityConfigurationArrayInput added in v3.20.0

type AlertSeverityConfigurationArrayInput interface {
	pulumi.Input

	ToAlertSeverityConfigurationArrayOutput() AlertSeverityConfigurationArrayOutput
	ToAlertSeverityConfigurationArrayOutputWithContext(context.Context) AlertSeverityConfigurationArrayOutput
}

AlertSeverityConfigurationArrayInput is an input type that accepts AlertSeverityConfigurationArray and AlertSeverityConfigurationArrayOutput values. You can construct a concrete instance of `AlertSeverityConfigurationArrayInput` via:

AlertSeverityConfigurationArray{ AlertSeverityConfigurationArgs{...} }

type AlertSeverityConfigurationArrayOutput added in v3.20.0

type AlertSeverityConfigurationArrayOutput struct{ *pulumi.OutputState }

func (AlertSeverityConfigurationArrayOutput) ElementType added in v3.20.0

func (AlertSeverityConfigurationArrayOutput) Index added in v3.20.0

func (AlertSeverityConfigurationArrayOutput) ToAlertSeverityConfigurationArrayOutput added in v3.20.0

func (o AlertSeverityConfigurationArrayOutput) ToAlertSeverityConfigurationArrayOutput() AlertSeverityConfigurationArrayOutput

func (AlertSeverityConfigurationArrayOutput) ToAlertSeverityConfigurationArrayOutputWithContext added in v3.20.0

func (o AlertSeverityConfigurationArrayOutput) ToAlertSeverityConfigurationArrayOutputWithContext(ctx context.Context) AlertSeverityConfigurationArrayOutput

type AlertSeverityConfigurationInput added in v3.20.0

type AlertSeverityConfigurationInput interface {
	pulumi.Input

	ToAlertSeverityConfigurationOutput() AlertSeverityConfigurationOutput
	ToAlertSeverityConfigurationOutputWithContext(context.Context) AlertSeverityConfigurationOutput
}

AlertSeverityConfigurationInput is an input type that accepts AlertSeverityConfigurationArgs and AlertSeverityConfigurationOutput values. You can construct a concrete instance of `AlertSeverityConfigurationInput` via:

AlertSeverityConfigurationArgs{...}

type AlertSeverityConfigurationOutput added in v3.20.0

type AlertSeverityConfigurationOutput struct{ *pulumi.OutputState }

func (AlertSeverityConfigurationOutput) ElementType added in v3.20.0

func (AlertSeverityConfigurationOutput) EvalCondition added in v3.20.0

Severity when this condition is met.

func (AlertSeverityConfigurationOutput) Severity added in v3.20.0

Severity for new alert, including 2,4,6,8,10 for Report,Low,Medium,High,Critical.

func (AlertSeverityConfigurationOutput) ToAlertSeverityConfigurationOutput added in v3.20.0

func (o AlertSeverityConfigurationOutput) ToAlertSeverityConfigurationOutput() AlertSeverityConfigurationOutput

func (AlertSeverityConfigurationOutput) ToAlertSeverityConfigurationOutputWithContext added in v3.20.0

func (o AlertSeverityConfigurationOutput) ToAlertSeverityConfigurationOutputWithContext(ctx context.Context) AlertSeverityConfigurationOutput

type AlertState

type AlertState struct {
	// Alert description.
	AlertDescription pulumi.StringPtrInput
	// Alert displayname.
	AlertDisplayname pulumi.StringPtrInput
	// Name of logstore for configuring alarm service.
	AlertName pulumi.StringPtrInput
	// Alert template annotations.
	Annotations AlertAnnotationArrayInput
	// whether to add automatic annotation, default is false.
	AutoAnnotation pulumi.BoolPtrInput
	// Join condition.
	//
	// Deprecated: Deprecated from 1.161.0+, use eval_condition in severity_configurations
	Condition pulumi.StringPtrInput
	// Deprecated: Deprecated from 1.161.0+, use dashboardId in query_list
	Dashboard pulumi.StringPtrInput
	// Group configuration for new alert.
	GroupConfiguration AlertGroupConfigurationPtrInput
	// Join configuration for different queries.
	JoinConfigurations AlertJoinConfigurationArrayInput
	// Labels for new alert.
	Labels AlertLabelArrayInput
	// Timestamp, notifications before closing again.
	MuteUntil pulumi.IntPtrInput
	// Switch for whether new alert fires when no data happens, default is false.
	NoDataFire pulumi.BoolPtrInput
	// when no data happens, the severity of new alert.
	NoDataSeverity pulumi.IntPtrInput
	// Alarm information notification list, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use policy_configuration for notification
	NotificationLists AlertNotificationListArrayInput
	// Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use threshold
	NotifyThreshold pulumi.IntPtrInput
	// Policy configuration for new alert.
	PolicyConfiguration AlertPolicyConfigurationPtrInput
	// The project name.
	ProjectName pulumi.StringPtrInput
	// Multiple conditions for configured alarm query.
	QueryLists AlertQueryListArrayInput
	// schedule for alert.
	Schedule AlertSchedulePtrInput
	// Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
	//
	// Deprecated: Field 'schedule_interval' has been deprecated from provider version 1.176.0. New field 'schedule' instead.
	ScheduleInterval pulumi.StringPtrInput
	// Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
	//
	// Deprecated: Field 'schedule_type' has been deprecated from provider version 1.176.0. New field 'schedule' instead.
	ScheduleType pulumi.StringPtrInput
	// when new alert is resolved, whether to notify, default is false.
	SendResolved pulumi.BoolPtrInput
	// Severity configuration for new alert.
	SeverityConfigurations AlertSeverityConfigurationArrayInput
	// Template configuration for alert, when `type` is `tpl`.
	TemplateConfiguration AlertTemplateConfigurationPtrInput
	// Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
	Threshold pulumi.IntPtrInput
	// Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
	//
	// Deprecated: Deprecated from 1.161.0+, use repeat_interval in policy_configuration
	Throttling pulumi.StringPtrInput
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type pulumi.StringPtrInput
	// The version of alert, new alert is 2.0.
	Version pulumi.StringPtrInput
}

func (AlertState) ElementType

func (AlertState) ElementType() reflect.Type

type AlertTemplateConfiguration added in v3.36.0

type AlertTemplateConfiguration struct {
	// Alert template annotations.
	Annotations map[string]string `pulumi:"annotations"`
	// Alert template id.
	Id string `pulumi:"id"`
	// Alert template language including `cn`, `en`.
	Lang *string `pulumi:"lang"`
	// Alert template tokens.
	Tokens map[string]string `pulumi:"tokens"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type string `pulumi:"type"`
}

type AlertTemplateConfigurationArgs added in v3.36.0

type AlertTemplateConfigurationArgs struct {
	// Alert template annotations.
	Annotations pulumi.StringMapInput `pulumi:"annotations"`
	// Alert template id.
	Id pulumi.StringInput `pulumi:"id"`
	// Alert template language including `cn`, `en`.
	Lang pulumi.StringPtrInput `pulumi:"lang"`
	// Alert template tokens.
	Tokens pulumi.StringMapInput `pulumi:"tokens"`
	// including FixedRate,Hourly,Daily,Weekly,Cron.
	Type pulumi.StringInput `pulumi:"type"`
}

func (AlertTemplateConfigurationArgs) ElementType added in v3.36.0

func (AlertTemplateConfigurationArgs) ToAlertTemplateConfigurationOutput added in v3.36.0

func (i AlertTemplateConfigurationArgs) ToAlertTemplateConfigurationOutput() AlertTemplateConfigurationOutput

func (AlertTemplateConfigurationArgs) ToAlertTemplateConfigurationOutputWithContext added in v3.36.0

func (i AlertTemplateConfigurationArgs) ToAlertTemplateConfigurationOutputWithContext(ctx context.Context) AlertTemplateConfigurationOutput

func (AlertTemplateConfigurationArgs) ToAlertTemplateConfigurationPtrOutput added in v3.36.0

func (i AlertTemplateConfigurationArgs) ToAlertTemplateConfigurationPtrOutput() AlertTemplateConfigurationPtrOutput

func (AlertTemplateConfigurationArgs) ToAlertTemplateConfigurationPtrOutputWithContext added in v3.36.0

func (i AlertTemplateConfigurationArgs) ToAlertTemplateConfigurationPtrOutputWithContext(ctx context.Context) AlertTemplateConfigurationPtrOutput

type AlertTemplateConfigurationInput added in v3.36.0

type AlertTemplateConfigurationInput interface {
	pulumi.Input

	ToAlertTemplateConfigurationOutput() AlertTemplateConfigurationOutput
	ToAlertTemplateConfigurationOutputWithContext(context.Context) AlertTemplateConfigurationOutput
}

AlertTemplateConfigurationInput is an input type that accepts AlertTemplateConfigurationArgs and AlertTemplateConfigurationOutput values. You can construct a concrete instance of `AlertTemplateConfigurationInput` via:

AlertTemplateConfigurationArgs{...}

type AlertTemplateConfigurationOutput added in v3.36.0

type AlertTemplateConfigurationOutput struct{ *pulumi.OutputState }

func (AlertTemplateConfigurationOutput) Annotations added in v3.36.0

Alert template annotations.

func (AlertTemplateConfigurationOutput) ElementType added in v3.36.0

func (AlertTemplateConfigurationOutput) Id added in v3.36.0

Alert template id.

func (AlertTemplateConfigurationOutput) Lang added in v3.36.0

Alert template language including `cn`, `en`.

func (AlertTemplateConfigurationOutput) ToAlertTemplateConfigurationOutput added in v3.36.0

func (o AlertTemplateConfigurationOutput) ToAlertTemplateConfigurationOutput() AlertTemplateConfigurationOutput

func (AlertTemplateConfigurationOutput) ToAlertTemplateConfigurationOutputWithContext added in v3.36.0

func (o AlertTemplateConfigurationOutput) ToAlertTemplateConfigurationOutputWithContext(ctx context.Context) AlertTemplateConfigurationOutput

func (AlertTemplateConfigurationOutput) ToAlertTemplateConfigurationPtrOutput added in v3.36.0

func (o AlertTemplateConfigurationOutput) ToAlertTemplateConfigurationPtrOutput() AlertTemplateConfigurationPtrOutput

func (AlertTemplateConfigurationOutput) ToAlertTemplateConfigurationPtrOutputWithContext added in v3.36.0

func (o AlertTemplateConfigurationOutput) ToAlertTemplateConfigurationPtrOutputWithContext(ctx context.Context) AlertTemplateConfigurationPtrOutput

func (AlertTemplateConfigurationOutput) Tokens added in v3.36.0

Alert template tokens.

func (AlertTemplateConfigurationOutput) Type added in v3.36.0

including FixedRate,Hourly,Daily,Weekly,Cron.

type AlertTemplateConfigurationPtrInput added in v3.36.0

type AlertTemplateConfigurationPtrInput interface {
	pulumi.Input

	ToAlertTemplateConfigurationPtrOutput() AlertTemplateConfigurationPtrOutput
	ToAlertTemplateConfigurationPtrOutputWithContext(context.Context) AlertTemplateConfigurationPtrOutput
}

AlertTemplateConfigurationPtrInput is an input type that accepts AlertTemplateConfigurationArgs, AlertTemplateConfigurationPtr and AlertTemplateConfigurationPtrOutput values. You can construct a concrete instance of `AlertTemplateConfigurationPtrInput` via:

        AlertTemplateConfigurationArgs{...}

or:

        nil

func AlertTemplateConfigurationPtr added in v3.36.0

type AlertTemplateConfigurationPtrOutput added in v3.36.0

type AlertTemplateConfigurationPtrOutput struct{ *pulumi.OutputState }

func (AlertTemplateConfigurationPtrOutput) Annotations added in v3.36.0

Alert template annotations.

func (AlertTemplateConfigurationPtrOutput) Elem added in v3.36.0

func (AlertTemplateConfigurationPtrOutput) ElementType added in v3.36.0

func (AlertTemplateConfigurationPtrOutput) Id added in v3.36.0

Alert template id.

func (AlertTemplateConfigurationPtrOutput) Lang added in v3.36.0

Alert template language including `cn`, `en`.

func (AlertTemplateConfigurationPtrOutput) ToAlertTemplateConfigurationPtrOutput added in v3.36.0

func (o AlertTemplateConfigurationPtrOutput) ToAlertTemplateConfigurationPtrOutput() AlertTemplateConfigurationPtrOutput

func (AlertTemplateConfigurationPtrOutput) ToAlertTemplateConfigurationPtrOutputWithContext added in v3.36.0

func (o AlertTemplateConfigurationPtrOutput) ToAlertTemplateConfigurationPtrOutputWithContext(ctx context.Context) AlertTemplateConfigurationPtrOutput

func (AlertTemplateConfigurationPtrOutput) Tokens added in v3.36.0

Alert template tokens.

func (AlertTemplateConfigurationPtrOutput) Type added in v3.36.0

including FixedRate,Hourly,Daily,Weekly,Cron.

type Audit

type Audit struct {
	pulumi.CustomResourceState

	// Aliuid value of your account.
	Aliuid pulumi.StringOutput `pulumi:"aliuid"`
	// Name of SLS log audit.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Multi-account configuration, please fill in multiple aliuid.
	MultiAccounts pulumi.StringArrayOutput `pulumi:"multiAccounts"`
	// Resource Directory type. Optional values are all or custom. If the value is custom, argument multiAccount should be provided.
	ResourceDirectoryType pulumi.StringPtrOutput `pulumi:"resourceDirectoryType"`
	// Log audit detailed configuration.
	VariableMap pulumi.MapOutput `pulumi:"variableMap"`
}

SLS log audit exists in the form of log service app.

In addition to inheriting all SLS functions, it also enhances the real-time automatic centralized collection of audit related logs across multi cloud products under multi accounts, and provides support for storage, query and information summary required by audit. It covers actiontrail, OSS, NAS, SLB, API gateway, RDS, WAF, cloud firewall, cloud security center and other products.

> **NOTE:** Available since v1.81.0

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = log.NewAudit(ctx, "example", &log.AuditArgs{
			DisplayName: pulumi.String("tf-audit-example"),
			Aliuid:      *pulumi.String(_default.Id),
			VariableMap: pulumi.Map{
				"actiontrail_enabled":             pulumi.Any("true"),
				"actiontrail_ttl":                 pulumi.Any("180"),
				"oss_access_enabled":              pulumi.Any("true"),
				"oss_access_ttl":                  pulumi.Any("7"),
				"oss_sync_enabled":                pulumi.Any("true"),
				"oss_sync_ttl":                    pulumi.Any("180"),
				"oss_metering_enabled":            pulumi.Any("true"),
				"oss_metering_ttl":                pulumi.Any("180"),
				"rds_enabled":                     pulumi.Any("true"),
				"rds_audit_collection_policy":     pulumi.Any(""),
				"rds_ttl":                         pulumi.Any("180"),
				"rds_slow_enabled":                pulumi.Any("false"),
				"rds_slow_collection_policy":      pulumi.Any(""),
				"rds_slow_ttl":                    pulumi.Any("180"),
				"rds_perf_enabled":                pulumi.Any("false"),
				"rds_perf_collection_policy":      pulumi.Any(""),
				"rds_perf_ttl":                    pulumi.Any("180"),
				"vpc_flow_enabled":                pulumi.Any("false"),
				"vpc_flow_ttl":                    pulumi.Any("7"),
				"vpc_flow_collection_policy":      pulumi.Any(""),
				"vpc_sync_enabled":                pulumi.Any("true"),
				"vpc_sync_ttl":                    pulumi.Any("180"),
				"polardb_enabled":                 pulumi.Any("true"),
				"polardb_audit_collection_policy": pulumi.Any(""),
				"polardb_ttl":                     pulumi.Any("180"),
				"polardb_slow_enabled":            pulumi.Any("false"),
				"polardb_slow_collection_policy":  pulumi.Any(""),
				"polardb_slow_ttl":                pulumi.Any("180"),
				"polardb_perf_enabled":            pulumi.Any("false"),
				"polardb_perf_collection_policy":  pulumi.Any(""),
				"polardb_perf_ttl":                pulumi.Any("180"),
				"drds_audit_enabled":              pulumi.Any("true"),
				"drds_audit_collection_policy":    pulumi.Any(""),
				"drds_audit_ttl":                  pulumi.Any("7"),
				"drds_sync_enabled":               pulumi.Any("true"),
				"drds_sync_ttl":                   pulumi.Any("180"),
				"slb_access_enabled":              pulumi.Any("true"),
				"slb_access_collection_policy":    pulumi.Any(""),
				"slb_access_ttl":                  pulumi.Any("7"),
				"slb_sync_enabled":                pulumi.Any("true"),
				"slb_sync_ttl":                    pulumi.Any("180"),
				"bastion_enabled":                 pulumi.Any("true"),
				"bastion_ttl":                     pulumi.Any("180"),
				"waf_enabled":                     pulumi.Any("true"),
				"waf_ttl":                         pulumi.Any("180"),
				"cloudfirewall_enabled":           pulumi.Any("true"),
				"cloudfirewall_ttl":               pulumi.Any("180"),
				"ddos_coo_access_enabled":         pulumi.Any("false"),
				"ddos_coo_access_ttl":             pulumi.Any("180"),
				"ddos_bgp_access_enabled":         pulumi.Any("false"),
				"ddos_bgp_access_ttl":             pulumi.Any("180"),
				"ddos_dip_access_enabled":         pulumi.Any("false"),
				"ddos_dip_access_ttl":             pulumi.Any("180"),
				"sas_crack_enabled":               pulumi.Any("true"),
				"sas_dns_enabled":                 pulumi.Any("true"),
				"sas_http_enabled":                pulumi.Any("true"),
				"sas_local_dns_enabled":           pulumi.Any("true"),
				"sas_login_enabled":               pulumi.Any("true"),
				"sas_network_enabled":             pulumi.Any("true"),
				"sas_process_enabled":             pulumi.Any("true"),
				"sas_security_alert_enabled":      pulumi.Any("true"),
				"sas_security_hc_enabled":         pulumi.Any("true"),
				"sas_security_vul_enabled":        pulumi.Any("true"),
				"sas_session_enabled":             pulumi.Any("true"),
				"sas_snapshot_account_enabled":    pulumi.Any("true"),
				"sas_snapshot_port_enabled":       pulumi.Any("true"),
				"sas_snapshot_process_enabled":    pulumi.Any("true"),
				"sas_ttl":                         pulumi.Any("180"),
				"apigateway_enabled":              pulumi.Any("true"),
				"apigateway_ttl":                  pulumi.Any("180"),
				"nas_enabled":                     pulumi.Any("true"),
				"nas_ttl":                         pulumi.Any("180"),
				"appconnect_enabled":              pulumi.Any("false"),
				"appconnect_ttl":                  pulumi.Any("180"),
				"cps_enabled":                     pulumi.Any("true"),
				"cps_ttl":                         pulumi.Any("180"),
				"k8s_audit_enabled":               pulumi.Any("true"),
				"k8s_audit_collection_policy":     pulumi.Any(""),
				"k8s_audit_ttl":                   pulumi.Any("180"),
				"k8s_event_enabled":               pulumi.Any("true"),
				"k8s_event_collection_policy":     pulumi.Any(""),
				"k8s_event_ttl":                   pulumi.Any("180"),
				"k8s_ingress_enabled":             pulumi.Any("true"),
				"k8s_ingress_collection_policy":   pulumi.Any(""),
				"k8s_ingress_ttl":                 pulumi.Any("180"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` Multiple accounts Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = log.NewAudit(ctx, "example", &log.AuditArgs{
			DisplayName: pulumi.String("tf-audit-example"),
			Aliuid:      *pulumi.String(_default.Id),
			VariableMap: pulumi.Map{
				"actiontrail_enabled": pulumi.Any("true"),
				"actiontrail_ttl":     pulumi.Any("180"),
				"oss_access_enabled":  pulumi.Any("true"),
				"oss_access_ttl":      pulumi.Any("180"),
			},
			MultiAccounts: pulumi.StringArray{
				pulumi.String("123456789123"),
				pulumi.String("12345678912300123"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` Resource Directory Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = log.NewAudit(ctx, "example", &log.AuditArgs{
			DisplayName: pulumi.String("tf-audit-example"),
			Aliuid:      *pulumi.String(_default.Id),
			VariableMap: pulumi.Map{
				"actiontrail_enabled": pulumi.Any("true"),
				"actiontrail_ttl":     pulumi.Any("180"),
				"oss_access_enabled":  pulumi.Any("true"),
				"oss_access_ttl":      pulumi.Any("180"),
			},
			ResourceDirectoryType: pulumi.String("all"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = log.NewAudit(ctx, "example", &log.AuditArgs{
			DisplayName: pulumi.String("tf-audit-example"),
			Aliuid:      *pulumi.String(_default.Id),
			VariableMap: pulumi.Map{
				"actiontrail_enabled": pulumi.Any("true"),
				"actiontrail_ttl":     pulumi.Any("180"),
				"oss_access_enabled":  pulumi.Any("true"),
				"oss_access_ttl":      pulumi.Any("180"),
			},
			MultiAccounts:         pulumi.StringArray{},
			ResourceDirectoryType: pulumi.String("custom"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh $ pulumi import alicloud:log/audit:Audit example tf-audit-example ```

func GetAudit

func GetAudit(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AuditState, opts ...pulumi.ResourceOption) (*Audit, error)

GetAudit gets an existing Audit resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAudit

func NewAudit(ctx *pulumi.Context,
	name string, args *AuditArgs, opts ...pulumi.ResourceOption) (*Audit, error)

NewAudit registers a new resource with the given unique name, arguments, and options.

func (*Audit) ElementType

func (*Audit) ElementType() reflect.Type

func (*Audit) ToAuditOutput

func (i *Audit) ToAuditOutput() AuditOutput

func (*Audit) ToAuditOutputWithContext

func (i *Audit) ToAuditOutputWithContext(ctx context.Context) AuditOutput

type AuditArgs

type AuditArgs struct {
	// Aliuid value of your account.
	Aliuid pulumi.StringInput
	// Name of SLS log audit.
	DisplayName pulumi.StringInput
	// Multi-account configuration, please fill in multiple aliuid.
	MultiAccounts pulumi.StringArrayInput
	// Resource Directory type. Optional values are all or custom. If the value is custom, argument multiAccount should be provided.
	ResourceDirectoryType pulumi.StringPtrInput
	// Log audit detailed configuration.
	VariableMap pulumi.MapInput
}

The set of arguments for constructing a Audit resource.

func (AuditArgs) ElementType

func (AuditArgs) ElementType() reflect.Type

type AuditArray

type AuditArray []AuditInput

func (AuditArray) ElementType

func (AuditArray) ElementType() reflect.Type

func (AuditArray) ToAuditArrayOutput

func (i AuditArray) ToAuditArrayOutput() AuditArrayOutput

func (AuditArray) ToAuditArrayOutputWithContext

func (i AuditArray) ToAuditArrayOutputWithContext(ctx context.Context) AuditArrayOutput

type AuditArrayInput

type AuditArrayInput interface {
	pulumi.Input

	ToAuditArrayOutput() AuditArrayOutput
	ToAuditArrayOutputWithContext(context.Context) AuditArrayOutput
}

AuditArrayInput is an input type that accepts AuditArray and AuditArrayOutput values. You can construct a concrete instance of `AuditArrayInput` via:

AuditArray{ AuditArgs{...} }

type AuditArrayOutput

type AuditArrayOutput struct{ *pulumi.OutputState }

func (AuditArrayOutput) ElementType

func (AuditArrayOutput) ElementType() reflect.Type

func (AuditArrayOutput) Index

func (AuditArrayOutput) ToAuditArrayOutput

func (o AuditArrayOutput) ToAuditArrayOutput() AuditArrayOutput

func (AuditArrayOutput) ToAuditArrayOutputWithContext

func (o AuditArrayOutput) ToAuditArrayOutputWithContext(ctx context.Context) AuditArrayOutput

type AuditInput

type AuditInput interface {
	pulumi.Input

	ToAuditOutput() AuditOutput
	ToAuditOutputWithContext(ctx context.Context) AuditOutput
}

type AuditMap

type AuditMap map[string]AuditInput

func (AuditMap) ElementType

func (AuditMap) ElementType() reflect.Type

func (AuditMap) ToAuditMapOutput

func (i AuditMap) ToAuditMapOutput() AuditMapOutput

func (AuditMap) ToAuditMapOutputWithContext

func (i AuditMap) ToAuditMapOutputWithContext(ctx context.Context) AuditMapOutput

type AuditMapInput

type AuditMapInput interface {
	pulumi.Input

	ToAuditMapOutput() AuditMapOutput
	ToAuditMapOutputWithContext(context.Context) AuditMapOutput
}

AuditMapInput is an input type that accepts AuditMap and AuditMapOutput values. You can construct a concrete instance of `AuditMapInput` via:

AuditMap{ "key": AuditArgs{...} }

type AuditMapOutput

type AuditMapOutput struct{ *pulumi.OutputState }

func (AuditMapOutput) ElementType

func (AuditMapOutput) ElementType() reflect.Type

func (AuditMapOutput) MapIndex

func (AuditMapOutput) ToAuditMapOutput

func (o AuditMapOutput) ToAuditMapOutput() AuditMapOutput

func (AuditMapOutput) ToAuditMapOutputWithContext

func (o AuditMapOutput) ToAuditMapOutputWithContext(ctx context.Context) AuditMapOutput

type AuditOutput

type AuditOutput struct{ *pulumi.OutputState }

func (AuditOutput) Aliuid added in v3.27.0

func (o AuditOutput) Aliuid() pulumi.StringOutput

Aliuid value of your account.

func (AuditOutput) DisplayName added in v3.27.0

func (o AuditOutput) DisplayName() pulumi.StringOutput

Name of SLS log audit.

func (AuditOutput) ElementType

func (AuditOutput) ElementType() reflect.Type

func (AuditOutput) MultiAccounts added in v3.27.0

func (o AuditOutput) MultiAccounts() pulumi.StringArrayOutput

Multi-account configuration, please fill in multiple aliuid.

func (AuditOutput) ResourceDirectoryType added in v3.27.0

func (o AuditOutput) ResourceDirectoryType() pulumi.StringPtrOutput

Resource Directory type. Optional values are all or custom. If the value is custom, argument multiAccount should be provided.

func (AuditOutput) ToAuditOutput

func (o AuditOutput) ToAuditOutput() AuditOutput

func (AuditOutput) ToAuditOutputWithContext

func (o AuditOutput) ToAuditOutputWithContext(ctx context.Context) AuditOutput

func (AuditOutput) VariableMap added in v3.27.0

func (o AuditOutput) VariableMap() pulumi.MapOutput

Log audit detailed configuration.

type AuditState

type AuditState struct {
	// Aliuid value of your account.
	Aliuid pulumi.StringPtrInput
	// Name of SLS log audit.
	DisplayName pulumi.StringPtrInput
	// Multi-account configuration, please fill in multiple aliuid.
	MultiAccounts pulumi.StringArrayInput
	// Resource Directory type. Optional values are all or custom. If the value is custom, argument multiAccount should be provided.
	ResourceDirectoryType pulumi.StringPtrInput
	// Log audit detailed configuration.
	VariableMap pulumi.MapInput
}

func (AuditState) ElementType

func (AuditState) ElementType() reflect.Type

type Dashboard

type Dashboard struct {
	pulumi.CustomResourceState

	// Dashboard attribute.
	Attribute pulumi.StringOutput `pulumi:"attribute"`
	// Configuration of charts in the dashboard.
	// **Note:** From version 1.164.0, `charList` can set parameter "action".
	CharList pulumi.StringOutput `pulumi:"charList"`
	// The name of the Log Dashboard.
	DashboardName pulumi.StringOutput `pulumi:"dashboardName"`
	// Dashboard alias.
	DisplayName pulumi.StringPtrOutput `pulumi:"displayName"`
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringOutput `pulumi:"projectName"`
}

The dashboard is a real-time data analysis platform provided by the log service. You can display frequently used query and analysis statements in the form of charts and save statistical charts to the dashboard. [Refer to details](https://www.alibabacloud.com/help/doc-detail/102530.htm).

> **NOTE:** Available since v1.86.0.

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		_, err = log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewDashboard(ctx, "exampleDashboard", &log.DashboardArgs{
			ProjectName:   exampleProject.Name,
			DashboardName: pulumi.String("terraform-example"),
			DisplayName:   pulumi.String("terraform-example"),
			Attribute:     pulumi.String("  {\n    \"type\":\"grid\"\n  }\n"),
			CharList: pulumi.String(`  [
    {
      "action": {},
      "title":"new_title",
      "type":"map",
      "search":{
        "logstore":"example-store",
        "topic":"new_topic",
        "query":"* | SELECT COUNT(name) as ct_name, COUNT(product) as ct_product, name,product GROUP BY name,product",
        "start":"-86400s",
        "end":"now"
      },
      "display":{
        "xAxis":[
          "ct_name"
        ],
        "yAxis":[
          "ct_product"
        ],
        "xPos":0,
        "yPos":0,
        "width":10,
        "height":12,
        "displayName":"terraform-example"
      }
    }
  ]

`),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh $ pulumi import alicloud:log/dashboard:Dashboard example <project_name>:<dashboard_name> ```

func GetDashboard

func GetDashboard(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DashboardState, opts ...pulumi.ResourceOption) (*Dashboard, error)

GetDashboard gets an existing Dashboard resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDashboard

func NewDashboard(ctx *pulumi.Context,
	name string, args *DashboardArgs, opts ...pulumi.ResourceOption) (*Dashboard, error)

NewDashboard registers a new resource with the given unique name, arguments, and options.

func (*Dashboard) ElementType

func (*Dashboard) ElementType() reflect.Type

func (*Dashboard) ToDashboardOutput

func (i *Dashboard) ToDashboardOutput() DashboardOutput

func (*Dashboard) ToDashboardOutputWithContext

func (i *Dashboard) ToDashboardOutputWithContext(ctx context.Context) DashboardOutput

type DashboardArgs

type DashboardArgs struct {
	// Dashboard attribute.
	Attribute pulumi.StringPtrInput
	// Configuration of charts in the dashboard.
	// **Note:** From version 1.164.0, `charList` can set parameter "action".
	CharList pulumi.StringInput
	// The name of the Log Dashboard.
	DashboardName pulumi.StringInput
	// Dashboard alias.
	DisplayName pulumi.StringPtrInput
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringInput
}

The set of arguments for constructing a Dashboard resource.

func (DashboardArgs) ElementType

func (DashboardArgs) ElementType() reflect.Type

type DashboardArray

type DashboardArray []DashboardInput

func (DashboardArray) ElementType

func (DashboardArray) ElementType() reflect.Type

func (DashboardArray) ToDashboardArrayOutput

func (i DashboardArray) ToDashboardArrayOutput() DashboardArrayOutput

func (DashboardArray) ToDashboardArrayOutputWithContext

func (i DashboardArray) ToDashboardArrayOutputWithContext(ctx context.Context) DashboardArrayOutput

type DashboardArrayInput

type DashboardArrayInput interface {
	pulumi.Input

	ToDashboardArrayOutput() DashboardArrayOutput
	ToDashboardArrayOutputWithContext(context.Context) DashboardArrayOutput
}

DashboardArrayInput is an input type that accepts DashboardArray and DashboardArrayOutput values. You can construct a concrete instance of `DashboardArrayInput` via:

DashboardArray{ DashboardArgs{...} }

type DashboardArrayOutput

type DashboardArrayOutput struct{ *pulumi.OutputState }

func (DashboardArrayOutput) ElementType

func (DashboardArrayOutput) ElementType() reflect.Type

func (DashboardArrayOutput) Index

func (DashboardArrayOutput) ToDashboardArrayOutput

func (o DashboardArrayOutput) ToDashboardArrayOutput() DashboardArrayOutput

func (DashboardArrayOutput) ToDashboardArrayOutputWithContext

func (o DashboardArrayOutput) ToDashboardArrayOutputWithContext(ctx context.Context) DashboardArrayOutput

type DashboardInput

type DashboardInput interface {
	pulumi.Input

	ToDashboardOutput() DashboardOutput
	ToDashboardOutputWithContext(ctx context.Context) DashboardOutput
}

type DashboardMap

type DashboardMap map[string]DashboardInput

func (DashboardMap) ElementType

func (DashboardMap) ElementType() reflect.Type

func (DashboardMap) ToDashboardMapOutput

func (i DashboardMap) ToDashboardMapOutput() DashboardMapOutput

func (DashboardMap) ToDashboardMapOutputWithContext

func (i DashboardMap) ToDashboardMapOutputWithContext(ctx context.Context) DashboardMapOutput

type DashboardMapInput

type DashboardMapInput interface {
	pulumi.Input

	ToDashboardMapOutput() DashboardMapOutput
	ToDashboardMapOutputWithContext(context.Context) DashboardMapOutput
}

DashboardMapInput is an input type that accepts DashboardMap and DashboardMapOutput values. You can construct a concrete instance of `DashboardMapInput` via:

DashboardMap{ "key": DashboardArgs{...} }

type DashboardMapOutput

type DashboardMapOutput struct{ *pulumi.OutputState }

func (DashboardMapOutput) ElementType

func (DashboardMapOutput) ElementType() reflect.Type

func (DashboardMapOutput) MapIndex

func (DashboardMapOutput) ToDashboardMapOutput

func (o DashboardMapOutput) ToDashboardMapOutput() DashboardMapOutput

func (DashboardMapOutput) ToDashboardMapOutputWithContext

func (o DashboardMapOutput) ToDashboardMapOutputWithContext(ctx context.Context) DashboardMapOutput

type DashboardOutput

type DashboardOutput struct{ *pulumi.OutputState }

func (DashboardOutput) Attribute added in v3.29.0

func (o DashboardOutput) Attribute() pulumi.StringOutput

Dashboard attribute.

func (DashboardOutput) CharList added in v3.27.0

func (o DashboardOutput) CharList() pulumi.StringOutput

Configuration of charts in the dashboard. **Note:** From version 1.164.0, `charList` can set parameter "action".

func (DashboardOutput) DashboardName added in v3.27.0

func (o DashboardOutput) DashboardName() pulumi.StringOutput

The name of the Log Dashboard.

func (DashboardOutput) DisplayName added in v3.27.0

func (o DashboardOutput) DisplayName() pulumi.StringPtrOutput

Dashboard alias.

func (DashboardOutput) ElementType

func (DashboardOutput) ElementType() reflect.Type

func (DashboardOutput) ProjectName added in v3.27.0

func (o DashboardOutput) ProjectName() pulumi.StringOutput

The name of the log project. It is the only in one Alicloud account.

func (DashboardOutput) ToDashboardOutput

func (o DashboardOutput) ToDashboardOutput() DashboardOutput

func (DashboardOutput) ToDashboardOutputWithContext

func (o DashboardOutput) ToDashboardOutputWithContext(ctx context.Context) DashboardOutput

type DashboardState

type DashboardState struct {
	// Dashboard attribute.
	Attribute pulumi.StringPtrInput
	// Configuration of charts in the dashboard.
	// **Note:** From version 1.164.0, `charList` can set parameter "action".
	CharList pulumi.StringPtrInput
	// The name of the Log Dashboard.
	DashboardName pulumi.StringPtrInput
	// Dashboard alias.
	DisplayName pulumi.StringPtrInput
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringPtrInput
}

func (DashboardState) ElementType

func (DashboardState) ElementType() reflect.Type

type Etl

type Etl struct {
	pulumi.CustomResourceState

	// Delivery target logstore access key id.
	AccessKeyId pulumi.StringPtrOutput `pulumi:"accessKeyId"`
	// Delivery target logstore access key secret.
	AccessKeySecret pulumi.StringPtrOutput `pulumi:"accessKeySecret"`
	// The etl job create time.
	CreateTime pulumi.IntOutput `pulumi:"createTime"`
	// Description of the log etl job.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Log service etl job alias.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The name of the log etl job.
	EtlName pulumi.StringOutput `pulumi:"etlName"`
	// Target logstore configuration for delivery after data processing.
	EtlSinks EtlEtlSinkArrayOutput `pulumi:"etlSinks"`
	// Log service etl type, the default value is `ETL`.
	EtlType pulumi.StringPtrOutput `pulumi:"etlType"`
	// The start time of the processing job, if not set the value is 0, indicates to start processing from the oldest data.
	FromTime pulumi.IntPtrOutput `pulumi:"fromTime"`
	// An KMS encrypts access key id used to a log etl job. If the `accessKeyId` is filled in, this field will be ignored.
	KmsEncryptedAccessKeyId pulumi.StringPtrOutput `pulumi:"kmsEncryptedAccessKeyId"`
	// An KMS encrypts access key secret used to a log etl job. If the `accessKeySecret` is filled in, this field will be ignored.
	KmsEncryptedAccessKeySecret pulumi.StringPtrOutput `pulumi:"kmsEncryptedAccessKeySecret"`
	// An KMS encryption context used to decrypt `kmsEncryptedAccessKeyId` before creating or updating an instance with `kmsEncryptedAccessKeyId`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set. When it is changed, the instance will reboot to make the change take effect.
	KmsEncryptionAccessKeyIdContext pulumi.MapOutput `pulumi:"kmsEncryptionAccessKeyIdContext"`
	// An KMS encryption context used to decrypt `kmsEncryptedAccessKeySecret` before creating or updating an instance with `kmsEncryptedAccessKeySecret`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set. When it is changed, the instance will reboot to make the change take effect.
	KmsEncryptionAccessKeySecretContext pulumi.MapOutput `pulumi:"kmsEncryptionAccessKeySecretContext"`
	// ETL job last modified time.
	LastModifiedTime pulumi.IntOutput `pulumi:"lastModifiedTime"`
	// Delivery target logstore.
	Logstore pulumi.StringOutput `pulumi:"logstore"`
	// Advanced parameter configuration of processing operations.
	Parameters pulumi.StringMapOutput `pulumi:"parameters"`
	// The project where the target logstore is delivered.
	Project pulumi.StringOutput `pulumi:"project"`
	// Sts role info under delivery target logstore. `roleArn` and `(access_key_id, access_key_secret)` fill in at most one. If you do not fill in both, then you must fill in `(kms_encrypted_access_key_id, kms_encrypted_access_key_secret, kms_encryption_access_key_id_context, kms_encryption_access_key_secret_context)` to use KMS to get the key pair.
	RoleArn pulumi.StringPtrOutput `pulumi:"roleArn"`
	// Job scheduling type, the default value is Resident.
	Schedule pulumi.StringPtrOutput `pulumi:"schedule"`
	// Processing operation grammar.
	Script pulumi.StringOutput `pulumi:"script"`
	// Log project tags. the default value is RUNNING, Only 4 values are supported: `STARTING`,`RUNNING`,`STOPPING`,`STOPPED`.
	Status pulumi.StringOutput `pulumi:"status"`
	// Deadline of processing job, if not set the value is 0, indicates that new data will be processed continuously.
	ToTime pulumi.IntPtrOutput `pulumi:"toTime"`
	// Log etl job version. the default value is `2`.
	Version pulumi.IntPtrOutput `pulumi:"version"`
}

The data transformation of the log service is a hosted, highly available, and scalable data processing service, which is widely applicable to scenarios such as data regularization, enrichment, distribution, aggregation, and index reconstruction. [Refer to details](https://www.alibabacloud.com/help/zh/doc-detail/125384.htm).

> **NOTE:** Available in 1.120.0

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		example2, err := log.NewStore(ctx, "example2", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		example3, err := log.NewStore(ctx, "example3", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewEtl(ctx, "exampleEtl", &log.EtlArgs{
			EtlName:         pulumi.String("terraform-example"),
			Project:         exampleProject.Name,
			DisplayName:     pulumi.String("terraform-example"),
			Description:     pulumi.String("terraform-example"),
			AccessKeyId:     pulumi.String("access_key_id"),
			AccessKeySecret: pulumi.String("access_key_secret"),
			Script:          pulumi.String("e_set('new','key')"),
			Logstore:        exampleStore.Name,
			EtlSinks: log.EtlEtlSinkArray{
				&log.EtlEtlSinkArgs{
					Name:            pulumi.String("target_name"),
					AccessKeyId:     pulumi.String("example2_access_key_id"),
					AccessKeySecret: pulumi.String("example2_access_key_secret"),
					Endpoint:        pulumi.String("cn-hangzhou.log.aliyuncs.com"),
					Project:         exampleProject.Name,
					Logstore:        example2.Name,
				},
				&log.EtlEtlSinkArgs{
					Name:            pulumi.String("target_name2"),
					AccessKeyId:     pulumi.String("example3_access_key_id"),
					AccessKeySecret: pulumi.String("example3_access_key_secret"),
					Endpoint:        pulumi.String("cn-hangzhou.log.aliyuncs.com"),
					Project:         exampleProject.Name,
					Logstore:        example3.Name,
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh $ pulumi import alicloud:log/etl:Etl example tf-log-project:tf-log-etl-name ```

func GetEtl

func GetEtl(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EtlState, opts ...pulumi.ResourceOption) (*Etl, error)

GetEtl gets an existing Etl resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEtl

func NewEtl(ctx *pulumi.Context,
	name string, args *EtlArgs, opts ...pulumi.ResourceOption) (*Etl, error)

NewEtl registers a new resource with the given unique name, arguments, and options.

func (*Etl) ElementType

func (*Etl) ElementType() reflect.Type

func (*Etl) ToEtlOutput

func (i *Etl) ToEtlOutput() EtlOutput

func (*Etl) ToEtlOutputWithContext

func (i *Etl) ToEtlOutputWithContext(ctx context.Context) EtlOutput

type EtlArgs

type EtlArgs struct {
	// Delivery target logstore access key id.
	AccessKeyId pulumi.StringPtrInput
	// Delivery target logstore access key secret.
	AccessKeySecret pulumi.StringPtrInput
	// The etl job create time.
	CreateTime pulumi.IntPtrInput
	// Description of the log etl job.
	Description pulumi.StringPtrInput
	// Log service etl job alias.
	DisplayName pulumi.StringInput
	// The name of the log etl job.
	EtlName pulumi.StringInput
	// Target logstore configuration for delivery after data processing.
	EtlSinks EtlEtlSinkArrayInput
	// Log service etl type, the default value is `ETL`.
	EtlType pulumi.StringPtrInput
	// The start time of the processing job, if not set the value is 0, indicates to start processing from the oldest data.
	FromTime pulumi.IntPtrInput
	// An KMS encrypts access key id used to a log etl job. If the `accessKeyId` is filled in, this field will be ignored.
	KmsEncryptedAccessKeyId pulumi.StringPtrInput
	// An KMS encrypts access key secret used to a log etl job. If the `accessKeySecret` is filled in, this field will be ignored.
	KmsEncryptedAccessKeySecret pulumi.StringPtrInput
	// An KMS encryption context used to decrypt `kmsEncryptedAccessKeyId` before creating or updating an instance with `kmsEncryptedAccessKeyId`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set. When it is changed, the instance will reboot to make the change take effect.
	KmsEncryptionAccessKeyIdContext pulumi.MapInput
	// An KMS encryption context used to decrypt `kmsEncryptedAccessKeySecret` before creating or updating an instance with `kmsEncryptedAccessKeySecret`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set. When it is changed, the instance will reboot to make the change take effect.
	KmsEncryptionAccessKeySecretContext pulumi.MapInput
	// ETL job last modified time.
	LastModifiedTime pulumi.IntPtrInput
	// Delivery target logstore.
	Logstore pulumi.StringInput
	// Advanced parameter configuration of processing operations.
	Parameters pulumi.StringMapInput
	// The project where the target logstore is delivered.
	Project pulumi.StringInput
	// Sts role info under delivery target logstore. `roleArn` and `(access_key_id, access_key_secret)` fill in at most one. If you do not fill in both, then you must fill in `(kms_encrypted_access_key_id, kms_encrypted_access_key_secret, kms_encryption_access_key_id_context, kms_encryption_access_key_secret_context)` to use KMS to get the key pair.
	RoleArn pulumi.StringPtrInput
	// Job scheduling type, the default value is Resident.
	Schedule pulumi.StringPtrInput
	// Processing operation grammar.
	Script pulumi.StringInput
	// Log project tags. the default value is RUNNING, Only 4 values are supported: `STARTING`,`RUNNING`,`STOPPING`,`STOPPED`.
	Status pulumi.StringPtrInput
	// Deadline of processing job, if not set the value is 0, indicates that new data will be processed continuously.
	ToTime pulumi.IntPtrInput
	// Log etl job version. the default value is `2`.
	Version pulumi.IntPtrInput
}

The set of arguments for constructing a Etl resource.

func (EtlArgs) ElementType

func (EtlArgs) ElementType() reflect.Type

type EtlArray

type EtlArray []EtlInput

func (EtlArray) ElementType

func (EtlArray) ElementType() reflect.Type

func (EtlArray) ToEtlArrayOutput

func (i EtlArray) ToEtlArrayOutput() EtlArrayOutput

func (EtlArray) ToEtlArrayOutputWithContext

func (i EtlArray) ToEtlArrayOutputWithContext(ctx context.Context) EtlArrayOutput

type EtlArrayInput

type EtlArrayInput interface {
	pulumi.Input

	ToEtlArrayOutput() EtlArrayOutput
	ToEtlArrayOutputWithContext(context.Context) EtlArrayOutput
}

EtlArrayInput is an input type that accepts EtlArray and EtlArrayOutput values. You can construct a concrete instance of `EtlArrayInput` via:

EtlArray{ EtlArgs{...} }

type EtlArrayOutput

type EtlArrayOutput struct{ *pulumi.OutputState }

func (EtlArrayOutput) ElementType

func (EtlArrayOutput) ElementType() reflect.Type

func (EtlArrayOutput) Index

func (EtlArrayOutput) ToEtlArrayOutput

func (o EtlArrayOutput) ToEtlArrayOutput() EtlArrayOutput

func (EtlArrayOutput) ToEtlArrayOutputWithContext

func (o EtlArrayOutput) ToEtlArrayOutputWithContext(ctx context.Context) EtlArrayOutput

type EtlEtlSink

type EtlEtlSink struct {
	// Delivery target logstore access key id.
	AccessKeyId *string `pulumi:"accessKeyId"`
	// Delivery target logstore access key secret.
	AccessKeySecret *string `pulumi:"accessKeySecret"`
	// Delivery target logstore region.
	Endpoint string `pulumi:"endpoint"`
	// An KMS encrypts access key id used to a log etl job. If the `accessKeyId` is filled in, this field will be ignored.
	KmsEncryptedAccessKeyId *string `pulumi:"kmsEncryptedAccessKeyId"`
	// An KMS encrypts access key secret used to a log etl job. If the `accessKeySecret` is filled in, this field will be ignored.
	KmsEncryptedAccessKeySecret *string `pulumi:"kmsEncryptedAccessKeySecret"`
	// Delivery target logstore.
	Logstore string `pulumi:"logstore"`
	// Delivery target name.
	Name string `pulumi:"name"`
	// The project where the target logstore is delivered.
	Project string `pulumi:"project"`
	// Sts role info under delivery target logstore. `roleArn` and `(access_key_id, access_key_secret)` fill in at most one. If you do not fill in both, then you must fill in `(kms_encrypted_access_key_id, kms_encrypted_access_key_secret, kms_encryption_access_key_id_context, kms_encryption_access_key_secret_context)` to use KMS to get the key pair.
	RoleArn *string `pulumi:"roleArn"`
	// ETL sinks type, the default value is AliyunLOG.
	//
	// > **Note:** `fromTime` and `toTime` no modification allowed after successful creation.
	Type *string `pulumi:"type"`
}

type EtlEtlSinkArgs

type EtlEtlSinkArgs struct {
	// Delivery target logstore access key id.
	AccessKeyId pulumi.StringPtrInput `pulumi:"accessKeyId"`
	// Delivery target logstore access key secret.
	AccessKeySecret pulumi.StringPtrInput `pulumi:"accessKeySecret"`
	// Delivery target logstore region.
	Endpoint pulumi.StringInput `pulumi:"endpoint"`
	// An KMS encrypts access key id used to a log etl job. If the `accessKeyId` is filled in, this field will be ignored.
	KmsEncryptedAccessKeyId pulumi.StringPtrInput `pulumi:"kmsEncryptedAccessKeyId"`
	// An KMS encrypts access key secret used to a log etl job. If the `accessKeySecret` is filled in, this field will be ignored.
	KmsEncryptedAccessKeySecret pulumi.StringPtrInput `pulumi:"kmsEncryptedAccessKeySecret"`
	// Delivery target logstore.
	Logstore pulumi.StringInput `pulumi:"logstore"`
	// Delivery target name.
	Name pulumi.StringInput `pulumi:"name"`
	// The project where the target logstore is delivered.
	Project pulumi.StringInput `pulumi:"project"`
	// Sts role info under delivery target logstore. `roleArn` and `(access_key_id, access_key_secret)` fill in at most one. If you do not fill in both, then you must fill in `(kms_encrypted_access_key_id, kms_encrypted_access_key_secret, kms_encryption_access_key_id_context, kms_encryption_access_key_secret_context)` to use KMS to get the key pair.
	RoleArn pulumi.StringPtrInput `pulumi:"roleArn"`
	// ETL sinks type, the default value is AliyunLOG.
	//
	// > **Note:** `fromTime` and `toTime` no modification allowed after successful creation.
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (EtlEtlSinkArgs) ElementType

func (EtlEtlSinkArgs) ElementType() reflect.Type

func (EtlEtlSinkArgs) ToEtlEtlSinkOutput

func (i EtlEtlSinkArgs) ToEtlEtlSinkOutput() EtlEtlSinkOutput

func (EtlEtlSinkArgs) ToEtlEtlSinkOutputWithContext

func (i EtlEtlSinkArgs) ToEtlEtlSinkOutputWithContext(ctx context.Context) EtlEtlSinkOutput

type EtlEtlSinkArray

type EtlEtlSinkArray []EtlEtlSinkInput

func (EtlEtlSinkArray) ElementType

func (EtlEtlSinkArray) ElementType() reflect.Type

func (EtlEtlSinkArray) ToEtlEtlSinkArrayOutput

func (i EtlEtlSinkArray) ToEtlEtlSinkArrayOutput() EtlEtlSinkArrayOutput

func (EtlEtlSinkArray) ToEtlEtlSinkArrayOutputWithContext

func (i EtlEtlSinkArray) ToEtlEtlSinkArrayOutputWithContext(ctx context.Context) EtlEtlSinkArrayOutput

type EtlEtlSinkArrayInput

type EtlEtlSinkArrayInput interface {
	pulumi.Input

	ToEtlEtlSinkArrayOutput() EtlEtlSinkArrayOutput
	ToEtlEtlSinkArrayOutputWithContext(context.Context) EtlEtlSinkArrayOutput
}

EtlEtlSinkArrayInput is an input type that accepts EtlEtlSinkArray and EtlEtlSinkArrayOutput values. You can construct a concrete instance of `EtlEtlSinkArrayInput` via:

EtlEtlSinkArray{ EtlEtlSinkArgs{...} }

type EtlEtlSinkArrayOutput

type EtlEtlSinkArrayOutput struct{ *pulumi.OutputState }

func (EtlEtlSinkArrayOutput) ElementType

func (EtlEtlSinkArrayOutput) ElementType() reflect.Type

func (EtlEtlSinkArrayOutput) Index

func (EtlEtlSinkArrayOutput) ToEtlEtlSinkArrayOutput

func (o EtlEtlSinkArrayOutput) ToEtlEtlSinkArrayOutput() EtlEtlSinkArrayOutput

func (EtlEtlSinkArrayOutput) ToEtlEtlSinkArrayOutputWithContext

func (o EtlEtlSinkArrayOutput) ToEtlEtlSinkArrayOutputWithContext(ctx context.Context) EtlEtlSinkArrayOutput

type EtlEtlSinkInput

type EtlEtlSinkInput interface {
	pulumi.Input

	ToEtlEtlSinkOutput() EtlEtlSinkOutput
	ToEtlEtlSinkOutputWithContext(context.Context) EtlEtlSinkOutput
}

EtlEtlSinkInput is an input type that accepts EtlEtlSinkArgs and EtlEtlSinkOutput values. You can construct a concrete instance of `EtlEtlSinkInput` via:

EtlEtlSinkArgs{...}

type EtlEtlSinkOutput

type EtlEtlSinkOutput struct{ *pulumi.OutputState }

func (EtlEtlSinkOutput) AccessKeyId

func (o EtlEtlSinkOutput) AccessKeyId() pulumi.StringPtrOutput

Delivery target logstore access key id.

func (EtlEtlSinkOutput) AccessKeySecret

func (o EtlEtlSinkOutput) AccessKeySecret() pulumi.StringPtrOutput

Delivery target logstore access key secret.

func (EtlEtlSinkOutput) ElementType

func (EtlEtlSinkOutput) ElementType() reflect.Type

func (EtlEtlSinkOutput) Endpoint

func (o EtlEtlSinkOutput) Endpoint() pulumi.StringOutput

Delivery target logstore region.

func (EtlEtlSinkOutput) KmsEncryptedAccessKeyId

func (o EtlEtlSinkOutput) KmsEncryptedAccessKeyId() pulumi.StringPtrOutput

An KMS encrypts access key id used to a log etl job. If the `accessKeyId` is filled in, this field will be ignored.

func (EtlEtlSinkOutput) KmsEncryptedAccessKeySecret

func (o EtlEtlSinkOutput) KmsEncryptedAccessKeySecret() pulumi.StringPtrOutput

An KMS encrypts access key secret used to a log etl job. If the `accessKeySecret` is filled in, this field will be ignored.

func (EtlEtlSinkOutput) Logstore

func (o EtlEtlSinkOutput) Logstore() pulumi.StringOutput

Delivery target logstore.

func (EtlEtlSinkOutput) Name

Delivery target name.

func (EtlEtlSinkOutput) Project

func (o EtlEtlSinkOutput) Project() pulumi.StringOutput

The project where the target logstore is delivered.

func (EtlEtlSinkOutput) RoleArn

Sts role info under delivery target logstore. `roleArn` and `(access_key_id, access_key_secret)` fill in at most one. If you do not fill in both, then you must fill in `(kms_encrypted_access_key_id, kms_encrypted_access_key_secret, kms_encryption_access_key_id_context, kms_encryption_access_key_secret_context)` to use KMS to get the key pair.

func (EtlEtlSinkOutput) ToEtlEtlSinkOutput

func (o EtlEtlSinkOutput) ToEtlEtlSinkOutput() EtlEtlSinkOutput

func (EtlEtlSinkOutput) ToEtlEtlSinkOutputWithContext

func (o EtlEtlSinkOutput) ToEtlEtlSinkOutputWithContext(ctx context.Context) EtlEtlSinkOutput

func (EtlEtlSinkOutput) Type

ETL sinks type, the default value is AliyunLOG.

> **Note:** `fromTime` and `toTime` no modification allowed after successful creation.

type EtlInput

type EtlInput interface {
	pulumi.Input

	ToEtlOutput() EtlOutput
	ToEtlOutputWithContext(ctx context.Context) EtlOutput
}

type EtlMap

type EtlMap map[string]EtlInput

func (EtlMap) ElementType

func (EtlMap) ElementType() reflect.Type

func (EtlMap) ToEtlMapOutput

func (i EtlMap) ToEtlMapOutput() EtlMapOutput

func (EtlMap) ToEtlMapOutputWithContext

func (i EtlMap) ToEtlMapOutputWithContext(ctx context.Context) EtlMapOutput

type EtlMapInput

type EtlMapInput interface {
	pulumi.Input

	ToEtlMapOutput() EtlMapOutput
	ToEtlMapOutputWithContext(context.Context) EtlMapOutput
}

EtlMapInput is an input type that accepts EtlMap and EtlMapOutput values. You can construct a concrete instance of `EtlMapInput` via:

EtlMap{ "key": EtlArgs{...} }

type EtlMapOutput

type EtlMapOutput struct{ *pulumi.OutputState }

func (EtlMapOutput) ElementType

func (EtlMapOutput) ElementType() reflect.Type

func (EtlMapOutput) MapIndex

func (o EtlMapOutput) MapIndex(k pulumi.StringInput) EtlOutput

func (EtlMapOutput) ToEtlMapOutput

func (o EtlMapOutput) ToEtlMapOutput() EtlMapOutput

func (EtlMapOutput) ToEtlMapOutputWithContext

func (o EtlMapOutput) ToEtlMapOutputWithContext(ctx context.Context) EtlMapOutput

type EtlOutput

type EtlOutput struct{ *pulumi.OutputState }

func (EtlOutput) AccessKeyId added in v3.27.0

func (o EtlOutput) AccessKeyId() pulumi.StringPtrOutput

Delivery target logstore access key id.

func (EtlOutput) AccessKeySecret added in v3.27.0

func (o EtlOutput) AccessKeySecret() pulumi.StringPtrOutput

Delivery target logstore access key secret.

func (EtlOutput) CreateTime added in v3.27.0

func (o EtlOutput) CreateTime() pulumi.IntOutput

The etl job create time.

func (EtlOutput) Description added in v3.27.0

func (o EtlOutput) Description() pulumi.StringPtrOutput

Description of the log etl job.

func (EtlOutput) DisplayName added in v3.27.0

func (o EtlOutput) DisplayName() pulumi.StringOutput

Log service etl job alias.

func (EtlOutput) ElementType

func (EtlOutput) ElementType() reflect.Type

func (EtlOutput) EtlName added in v3.27.0

func (o EtlOutput) EtlName() pulumi.StringOutput

The name of the log etl job.

func (EtlOutput) EtlSinks added in v3.27.0

func (o EtlOutput) EtlSinks() EtlEtlSinkArrayOutput

Target logstore configuration for delivery after data processing.

func (EtlOutput) EtlType added in v3.27.0

func (o EtlOutput) EtlType() pulumi.StringPtrOutput

Log service etl type, the default value is `ETL`.

func (EtlOutput) FromTime added in v3.27.0

func (o EtlOutput) FromTime() pulumi.IntPtrOutput

The start time of the processing job, if not set the value is 0, indicates to start processing from the oldest data.

func (EtlOutput) KmsEncryptedAccessKeyId added in v3.27.0

func (o EtlOutput) KmsEncryptedAccessKeyId() pulumi.StringPtrOutput

An KMS encrypts access key id used to a log etl job. If the `accessKeyId` is filled in, this field will be ignored.

func (EtlOutput) KmsEncryptedAccessKeySecret added in v3.27.0

func (o EtlOutput) KmsEncryptedAccessKeySecret() pulumi.StringPtrOutput

An KMS encrypts access key secret used to a log etl job. If the `accessKeySecret` is filled in, this field will be ignored.

func (EtlOutput) KmsEncryptionAccessKeyIdContext added in v3.27.0

func (o EtlOutput) KmsEncryptionAccessKeyIdContext() pulumi.MapOutput

An KMS encryption context used to decrypt `kmsEncryptedAccessKeyId` before creating or updating an instance with `kmsEncryptedAccessKeyId`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set. When it is changed, the instance will reboot to make the change take effect.

func (EtlOutput) KmsEncryptionAccessKeySecretContext added in v3.27.0

func (o EtlOutput) KmsEncryptionAccessKeySecretContext() pulumi.MapOutput

An KMS encryption context used to decrypt `kmsEncryptedAccessKeySecret` before creating or updating an instance with `kmsEncryptedAccessKeySecret`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set. When it is changed, the instance will reboot to make the change take effect.

func (EtlOutput) LastModifiedTime added in v3.27.0

func (o EtlOutput) LastModifiedTime() pulumi.IntOutput

ETL job last modified time.

func (EtlOutput) Logstore added in v3.27.0

func (o EtlOutput) Logstore() pulumi.StringOutput

Delivery target logstore.

func (EtlOutput) Parameters added in v3.27.0

func (o EtlOutput) Parameters() pulumi.StringMapOutput

Advanced parameter configuration of processing operations.

func (EtlOutput) Project added in v3.27.0

func (o EtlOutput) Project() pulumi.StringOutput

The project where the target logstore is delivered.

func (EtlOutput) RoleArn added in v3.27.0

func (o EtlOutput) RoleArn() pulumi.StringPtrOutput

Sts role info under delivery target logstore. `roleArn` and `(access_key_id, access_key_secret)` fill in at most one. If you do not fill in both, then you must fill in `(kms_encrypted_access_key_id, kms_encrypted_access_key_secret, kms_encryption_access_key_id_context, kms_encryption_access_key_secret_context)` to use KMS to get the key pair.

func (EtlOutput) Schedule added in v3.27.0

func (o EtlOutput) Schedule() pulumi.StringPtrOutput

Job scheduling type, the default value is Resident.

func (EtlOutput) Script added in v3.27.0

func (o EtlOutput) Script() pulumi.StringOutput

Processing operation grammar.

func (EtlOutput) Status added in v3.27.0

func (o EtlOutput) Status() pulumi.StringOutput

Log project tags. the default value is RUNNING, Only 4 values are supported: `STARTING`,`RUNNING`,`STOPPING`,`STOPPED`.

func (EtlOutput) ToEtlOutput

func (o EtlOutput) ToEtlOutput() EtlOutput

func (EtlOutput) ToEtlOutputWithContext

func (o EtlOutput) ToEtlOutputWithContext(ctx context.Context) EtlOutput

func (EtlOutput) ToTime added in v3.27.0

func (o EtlOutput) ToTime() pulumi.IntPtrOutput

Deadline of processing job, if not set the value is 0, indicates that new data will be processed continuously.

func (EtlOutput) Version added in v3.27.0

func (o EtlOutput) Version() pulumi.IntPtrOutput

Log etl job version. the default value is `2`.

type EtlState

type EtlState struct {
	// Delivery target logstore access key id.
	AccessKeyId pulumi.StringPtrInput
	// Delivery target logstore access key secret.
	AccessKeySecret pulumi.StringPtrInput
	// The etl job create time.
	CreateTime pulumi.IntPtrInput
	// Description of the log etl job.
	Description pulumi.StringPtrInput
	// Log service etl job alias.
	DisplayName pulumi.StringPtrInput
	// The name of the log etl job.
	EtlName pulumi.StringPtrInput
	// Target logstore configuration for delivery after data processing.
	EtlSinks EtlEtlSinkArrayInput
	// Log service etl type, the default value is `ETL`.
	EtlType pulumi.StringPtrInput
	// The start time of the processing job, if not set the value is 0, indicates to start processing from the oldest data.
	FromTime pulumi.IntPtrInput
	// An KMS encrypts access key id used to a log etl job. If the `accessKeyId` is filled in, this field will be ignored.
	KmsEncryptedAccessKeyId pulumi.StringPtrInput
	// An KMS encrypts access key secret used to a log etl job. If the `accessKeySecret` is filled in, this field will be ignored.
	KmsEncryptedAccessKeySecret pulumi.StringPtrInput
	// An KMS encryption context used to decrypt `kmsEncryptedAccessKeyId` before creating or updating an instance with `kmsEncryptedAccessKeyId`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set. When it is changed, the instance will reboot to make the change take effect.
	KmsEncryptionAccessKeyIdContext pulumi.MapInput
	// An KMS encryption context used to decrypt `kmsEncryptedAccessKeySecret` before creating or updating an instance with `kmsEncryptedAccessKeySecret`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set. When it is changed, the instance will reboot to make the change take effect.
	KmsEncryptionAccessKeySecretContext pulumi.MapInput
	// ETL job last modified time.
	LastModifiedTime pulumi.IntPtrInput
	// Delivery target logstore.
	Logstore pulumi.StringPtrInput
	// Advanced parameter configuration of processing operations.
	Parameters pulumi.StringMapInput
	// The project where the target logstore is delivered.
	Project pulumi.StringPtrInput
	// Sts role info under delivery target logstore. `roleArn` and `(access_key_id, access_key_secret)` fill in at most one. If you do not fill in both, then you must fill in `(kms_encrypted_access_key_id, kms_encrypted_access_key_secret, kms_encryption_access_key_id_context, kms_encryption_access_key_secret_context)` to use KMS to get the key pair.
	RoleArn pulumi.StringPtrInput
	// Job scheduling type, the default value is Resident.
	Schedule pulumi.StringPtrInput
	// Processing operation grammar.
	Script pulumi.StringPtrInput
	// Log project tags. the default value is RUNNING, Only 4 values are supported: `STARTING`,`RUNNING`,`STOPPING`,`STOPPED`.
	Status pulumi.StringPtrInput
	// Deadline of processing job, if not set the value is 0, indicates that new data will be processed continuously.
	ToTime pulumi.IntPtrInput
	// Log etl job version. the default value is `2`.
	Version pulumi.IntPtrInput
}

func (EtlState) ElementType

func (EtlState) ElementType() reflect.Type

type GetAlertResourceArgs added in v3.20.0

type GetAlertResourceArgs struct {
	// The lang of alert center resource when type is user.
	Lang *string `pulumi:"lang"`
	// The project of alert resource when type is project.
	Project *string `pulumi:"project"`
	// The type of alert resources, must be user or project, 'user' for init aliyuncloud account's alert center resource, including project named sls-alert-{uid}-{region} and some dashboards; 'project' for init project's alert resource, including logstore named internal-alert-history and alert dashboard.
	Type string `pulumi:"type"`
}

A collection of arguments for invoking getAlertResource.

type GetAlertResourceOutputArgs added in v3.20.0

type GetAlertResourceOutputArgs struct {
	// The lang of alert center resource when type is user.
	Lang pulumi.StringPtrInput `pulumi:"lang"`
	// The project of alert resource when type is project.
	Project pulumi.StringPtrInput `pulumi:"project"`
	// The type of alert resources, must be user or project, 'user' for init aliyuncloud account's alert center resource, including project named sls-alert-{uid}-{region} and some dashboards; 'project' for init project's alert resource, including logstore named internal-alert-history and alert dashboard.
	Type pulumi.StringInput `pulumi:"type"`
}

A collection of arguments for invoking getAlertResource.

func (GetAlertResourceOutputArgs) ElementType added in v3.20.0

func (GetAlertResourceOutputArgs) ElementType() reflect.Type

type GetAlertResourceResult added in v3.20.0

type GetAlertResourceResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id      string  `pulumi:"id"`
	Lang    *string `pulumi:"lang"`
	Project *string `pulumi:"project"`
	Type    string  `pulumi:"type"`
}

A collection of values returned by getAlertResource.

func GetAlertResource added in v3.20.0

func GetAlertResource(ctx *pulumi.Context, args *GetAlertResourceArgs, opts ...pulumi.InvokeOption) (*GetAlertResourceResult, error)

Using this data source can init SLS Alert resources automatically.

For information about SLS Alert and how to use it, see [SLS Alert Overview](https://www.alibabacloud.com/help/en/doc-detail/209202.html)

> **NOTE:** Available in v1.161.0+

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := log.GetAlertResource(ctx, &log.GetAlertResourceArgs{
			Lang: pulumi.StringRef("cn"),
			Type: "user",
		}, nil)
		if err != nil {
			return err
		}
		_, err = log.GetAlertResource(ctx, &log.GetAlertResourceArgs{
			Project: pulumi.StringRef("test-alert-tf"),
			Type:    "project",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetAlertResourceResultOutput added in v3.20.0

type GetAlertResourceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAlertResource.

func GetAlertResourceOutput added in v3.20.0

func (GetAlertResourceResultOutput) ElementType added in v3.20.0

func (GetAlertResourceResultOutput) Id added in v3.20.0

The provider-assigned unique ID for this managed resource.

func (GetAlertResourceResultOutput) Lang added in v3.20.0

func (GetAlertResourceResultOutput) Project added in v3.20.0

func (GetAlertResourceResultOutput) ToGetAlertResourceResultOutput added in v3.20.0

func (o GetAlertResourceResultOutput) ToGetAlertResourceResultOutput() GetAlertResourceResultOutput

func (GetAlertResourceResultOutput) ToGetAlertResourceResultOutputWithContext added in v3.20.0

func (o GetAlertResourceResultOutput) ToGetAlertResourceResultOutputWithContext(ctx context.Context) GetAlertResourceResultOutput

func (GetAlertResourceResultOutput) Type added in v3.20.0

type GetProjectsArgs added in v3.4.0

type GetProjectsArgs struct {
	// A list of project IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by project name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The status of project.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getProjects.

type GetProjectsOutputArgs added in v3.9.0

type GetProjectsOutputArgs struct {
	// A list of project IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by project name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of project.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getProjects.

func (GetProjectsOutputArgs) ElementType added in v3.9.0

func (GetProjectsOutputArgs) ElementType() reflect.Type

type GetProjectsProject added in v3.4.0

type GetProjectsProject struct {
	// The description of the project.
	Description string `pulumi:"description"`
	// The ID of the project.
	Id string `pulumi:"id"`
	// The last modify time of project.
	LastModifyTime string `pulumi:"lastModifyTime"`
	// The owner of project.
	Owner string `pulumi:"owner"`
	// The policy of project.
	Policy string `pulumi:"policy"`
	// The name of the project.
	ProjectName string `pulumi:"projectName"`
	// The region of project.
	Region string `pulumi:"region"`
	// The status of project.
	Status string `pulumi:"status"`
}

type GetProjectsProjectArgs added in v3.4.0

type GetProjectsProjectArgs struct {
	// The description of the project.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the project.
	Id pulumi.StringInput `pulumi:"id"`
	// The last modify time of project.
	LastModifyTime pulumi.StringInput `pulumi:"lastModifyTime"`
	// The owner of project.
	Owner pulumi.StringInput `pulumi:"owner"`
	// The policy of project.
	Policy pulumi.StringInput `pulumi:"policy"`
	// The name of the project.
	ProjectName pulumi.StringInput `pulumi:"projectName"`
	// The region of project.
	Region pulumi.StringInput `pulumi:"region"`
	// The status of project.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetProjectsProjectArgs) ElementType added in v3.4.0

func (GetProjectsProjectArgs) ElementType() reflect.Type

func (GetProjectsProjectArgs) ToGetProjectsProjectOutput added in v3.4.0

func (i GetProjectsProjectArgs) ToGetProjectsProjectOutput() GetProjectsProjectOutput

func (GetProjectsProjectArgs) ToGetProjectsProjectOutputWithContext added in v3.4.0

func (i GetProjectsProjectArgs) ToGetProjectsProjectOutputWithContext(ctx context.Context) GetProjectsProjectOutput

type GetProjectsProjectArray added in v3.4.0

type GetProjectsProjectArray []GetProjectsProjectInput

func (GetProjectsProjectArray) ElementType added in v3.4.0

func (GetProjectsProjectArray) ElementType() reflect.Type

func (GetProjectsProjectArray) ToGetProjectsProjectArrayOutput added in v3.4.0

func (i GetProjectsProjectArray) ToGetProjectsProjectArrayOutput() GetProjectsProjectArrayOutput

func (GetProjectsProjectArray) ToGetProjectsProjectArrayOutputWithContext added in v3.4.0

func (i GetProjectsProjectArray) ToGetProjectsProjectArrayOutputWithContext(ctx context.Context) GetProjectsProjectArrayOutput

type GetProjectsProjectArrayInput added in v3.4.0

type GetProjectsProjectArrayInput interface {
	pulumi.Input

	ToGetProjectsProjectArrayOutput() GetProjectsProjectArrayOutput
	ToGetProjectsProjectArrayOutputWithContext(context.Context) GetProjectsProjectArrayOutput
}

GetProjectsProjectArrayInput is an input type that accepts GetProjectsProjectArray and GetProjectsProjectArrayOutput values. You can construct a concrete instance of `GetProjectsProjectArrayInput` via:

GetProjectsProjectArray{ GetProjectsProjectArgs{...} }

type GetProjectsProjectArrayOutput added in v3.4.0

type GetProjectsProjectArrayOutput struct{ *pulumi.OutputState }

func (GetProjectsProjectArrayOutput) ElementType added in v3.4.0

func (GetProjectsProjectArrayOutput) Index added in v3.4.0

func (GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutput added in v3.4.0

func (o GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutput() GetProjectsProjectArrayOutput

func (GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutputWithContext added in v3.4.0

func (o GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutputWithContext(ctx context.Context) GetProjectsProjectArrayOutput

type GetProjectsProjectInput added in v3.4.0

type GetProjectsProjectInput interface {
	pulumi.Input

	ToGetProjectsProjectOutput() GetProjectsProjectOutput
	ToGetProjectsProjectOutputWithContext(context.Context) GetProjectsProjectOutput
}

GetProjectsProjectInput is an input type that accepts GetProjectsProjectArgs and GetProjectsProjectOutput values. You can construct a concrete instance of `GetProjectsProjectInput` via:

GetProjectsProjectArgs{...}

type GetProjectsProjectOutput added in v3.4.0

type GetProjectsProjectOutput struct{ *pulumi.OutputState }

func (GetProjectsProjectOutput) Description added in v3.4.0

The description of the project.

func (GetProjectsProjectOutput) ElementType added in v3.4.0

func (GetProjectsProjectOutput) ElementType() reflect.Type

func (GetProjectsProjectOutput) Id added in v3.4.0

The ID of the project.

func (GetProjectsProjectOutput) LastModifyTime added in v3.4.0

func (o GetProjectsProjectOutput) LastModifyTime() pulumi.StringOutput

The last modify time of project.

func (GetProjectsProjectOutput) Owner added in v3.4.0

The owner of project.

func (GetProjectsProjectOutput) Policy added in v3.31.0

The policy of project.

func (GetProjectsProjectOutput) ProjectName added in v3.4.0

The name of the project.

func (GetProjectsProjectOutput) Region added in v3.4.0

The region of project.

func (GetProjectsProjectOutput) Status added in v3.4.0

The status of project.

func (GetProjectsProjectOutput) ToGetProjectsProjectOutput added in v3.4.0

func (o GetProjectsProjectOutput) ToGetProjectsProjectOutput() GetProjectsProjectOutput

func (GetProjectsProjectOutput) ToGetProjectsProjectOutputWithContext added in v3.4.0

func (o GetProjectsProjectOutput) ToGetProjectsProjectOutputWithContext(ctx context.Context) GetProjectsProjectOutput

type GetProjectsResult added in v3.4.0

type GetProjectsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string               `pulumi:"id"`
	Ids        []string             `pulumi:"ids"`
	NameRegex  *string              `pulumi:"nameRegex"`
	Names      []string             `pulumi:"names"`
	OutputFile *string              `pulumi:"outputFile"`
	Projects   []GetProjectsProject `pulumi:"projects"`
	Status     *string              `pulumi:"status"`
}

A collection of values returned by getProjects.

func GetProjects added in v3.4.0

func GetProjects(ctx *pulumi.Context, args *GetProjectsArgs, opts ...pulumi.InvokeOption) (*GetProjectsResult, error)

This data source provides the Log Projects of the current Alibaba Cloud user.

> **NOTE:** Available in v1.126.0+.

type GetProjectsResultOutput added in v3.9.0

type GetProjectsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProjects.

func GetProjectsOutput added in v3.9.0

func GetProjectsOutput(ctx *pulumi.Context, args GetProjectsOutputArgs, opts ...pulumi.InvokeOption) GetProjectsResultOutput

func (GetProjectsResultOutput) ElementType added in v3.9.0

func (GetProjectsResultOutput) ElementType() reflect.Type

func (GetProjectsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetProjectsResultOutput) Ids added in v3.9.0

func (GetProjectsResultOutput) NameRegex added in v3.9.0

func (GetProjectsResultOutput) Names added in v3.9.0

func (GetProjectsResultOutput) OutputFile added in v3.9.0

func (GetProjectsResultOutput) Projects added in v3.9.0

func (GetProjectsResultOutput) Status added in v3.9.0

func (GetProjectsResultOutput) ToGetProjectsResultOutput added in v3.9.0

func (o GetProjectsResultOutput) ToGetProjectsResultOutput() GetProjectsResultOutput

func (GetProjectsResultOutput) ToGetProjectsResultOutputWithContext added in v3.9.0

func (o GetProjectsResultOutput) ToGetProjectsResultOutputWithContext(ctx context.Context) GetProjectsResultOutput

type GetServiceArgs

type GetServiceArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off".
	//
	// > **NOTE:** Setting `enable = "On"` to open the Log service that means you have read and agreed the [Log Terms of Service](https://help.aliyun.com/document_detail/53476.html). The service can not closed once it is opened.
	Enable *string `pulumi:"enable"`
}

A collection of arguments for invoking getService.

type GetServiceOutputArgs added in v3.9.0

type GetServiceOutputArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off".
	//
	// > **NOTE:** Setting `enable = "On"` to open the Log service that means you have read and agreed the [Log Terms of Service](https://help.aliyun.com/document_detail/53476.html). The service can not closed once it is opened.
	Enable pulumi.StringPtrInput `pulumi:"enable"`
}

A collection of arguments for invoking getService.

func (GetServiceOutputArgs) ElementType added in v3.9.0

func (GetServiceOutputArgs) ElementType() reflect.Type

type GetServiceResult

type GetServiceResult struct {
	Enable *string `pulumi:"enable"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current service enable status.
	Status string `pulumi:"status"`
}

A collection of values returned by getService.

func GetService

func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)

Using this data source can enable Log service automatically. If the service has been enabled, it will return `Opened`.

For information about Log service and how to use it, see [What is Log Service](https://www.alibabacloud.com/help/product/28958.htm).

> **NOTE:** Available in v1.96.0+

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := log.GetService(ctx, &log.GetServiceArgs{
			Enable: pulumi.StringRef("On"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetServiceResultOutput added in v3.9.0

type GetServiceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getService.

func GetServiceOutput added in v3.9.0

func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput

func (GetServiceResultOutput) ElementType added in v3.9.0

func (GetServiceResultOutput) ElementType() reflect.Type

func (GetServiceResultOutput) Enable added in v3.9.0

func (GetServiceResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetServiceResultOutput) Status added in v3.9.0

The current service enable status.

func (GetServiceResultOutput) ToGetServiceResultOutput added in v3.9.0

func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput

func (GetServiceResultOutput) ToGetServiceResultOutputWithContext added in v3.9.0

func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput

type GetStoresArgs added in v3.4.0

type GetStoresArgs struct {
	// A list of store IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by store name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	Project    string  `pulumi:"project"`
}

A collection of arguments for invoking getStores.

type GetStoresOutputArgs added in v3.9.0

type GetStoresOutputArgs struct {
	// A list of store IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by store name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	Project    pulumi.StringInput    `pulumi:"project"`
}

A collection of arguments for invoking getStores.

func (GetStoresOutputArgs) ElementType added in v3.9.0

func (GetStoresOutputArgs) ElementType() reflect.Type

type GetStoresResult added in v3.4.0

type GetStoresResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string           `pulumi:"id"`
	Ids        []string         `pulumi:"ids"`
	NameRegex  *string          `pulumi:"nameRegex"`
	Names      []string         `pulumi:"names"`
	OutputFile *string          `pulumi:"outputFile"`
	Project    string           `pulumi:"project"`
	Stores     []GetStoresStore `pulumi:"stores"`
}

A collection of values returned by getStores.

func GetStores added in v3.4.0

func GetStores(ctx *pulumi.Context, args *GetStoresArgs, opts ...pulumi.InvokeOption) (*GetStoresResult, error)

This data source provides the Log Stores of the current Alibaba Cloud user.

> **NOTE:** Available in v1.126.0+.

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := log.GetStores(ctx, &log.GetStoresArgs{
			Project: "the_project_name",
			Ids: []string{
				"the_store_name",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstLogStoreId", example.Stores[0].Id)
		return nil
	})
}

```

type GetStoresResultOutput added in v3.9.0

type GetStoresResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getStores.

func GetStoresOutput added in v3.9.0

func GetStoresOutput(ctx *pulumi.Context, args GetStoresOutputArgs, opts ...pulumi.InvokeOption) GetStoresResultOutput

func (GetStoresResultOutput) ElementType added in v3.9.0

func (GetStoresResultOutput) ElementType() reflect.Type

func (GetStoresResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetStoresResultOutput) Ids added in v3.9.0

func (GetStoresResultOutput) NameRegex added in v3.9.0

func (GetStoresResultOutput) Names added in v3.9.0

func (GetStoresResultOutput) OutputFile added in v3.9.0

func (GetStoresResultOutput) Project added in v3.9.0

func (GetStoresResultOutput) Stores added in v3.9.0

func (GetStoresResultOutput) ToGetStoresResultOutput added in v3.9.0

func (o GetStoresResultOutput) ToGetStoresResultOutput() GetStoresResultOutput

func (GetStoresResultOutput) ToGetStoresResultOutputWithContext added in v3.9.0

func (o GetStoresResultOutput) ToGetStoresResultOutputWithContext(ctx context.Context) GetStoresResultOutput

type GetStoresStore added in v3.4.0

type GetStoresStore struct {
	// The ID of the store.
	Id string `pulumi:"id"`
	// The name of the store.
	StoreName string `pulumi:"storeName"`
}

type GetStoresStoreArgs added in v3.4.0

type GetStoresStoreArgs struct {
	// The ID of the store.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the store.
	StoreName pulumi.StringInput `pulumi:"storeName"`
}

func (GetStoresStoreArgs) ElementType added in v3.4.0

func (GetStoresStoreArgs) ElementType() reflect.Type

func (GetStoresStoreArgs) ToGetStoresStoreOutput added in v3.4.0

func (i GetStoresStoreArgs) ToGetStoresStoreOutput() GetStoresStoreOutput

func (GetStoresStoreArgs) ToGetStoresStoreOutputWithContext added in v3.4.0

func (i GetStoresStoreArgs) ToGetStoresStoreOutputWithContext(ctx context.Context) GetStoresStoreOutput

type GetStoresStoreArray added in v3.4.0

type GetStoresStoreArray []GetStoresStoreInput

func (GetStoresStoreArray) ElementType added in v3.4.0

func (GetStoresStoreArray) ElementType() reflect.Type

func (GetStoresStoreArray) ToGetStoresStoreArrayOutput added in v3.4.0

func (i GetStoresStoreArray) ToGetStoresStoreArrayOutput() GetStoresStoreArrayOutput

func (GetStoresStoreArray) ToGetStoresStoreArrayOutputWithContext added in v3.4.0

func (i GetStoresStoreArray) ToGetStoresStoreArrayOutputWithContext(ctx context.Context) GetStoresStoreArrayOutput

type GetStoresStoreArrayInput added in v3.4.0

type GetStoresStoreArrayInput interface {
	pulumi.Input

	ToGetStoresStoreArrayOutput() GetStoresStoreArrayOutput
	ToGetStoresStoreArrayOutputWithContext(context.Context) GetStoresStoreArrayOutput
}

GetStoresStoreArrayInput is an input type that accepts GetStoresStoreArray and GetStoresStoreArrayOutput values. You can construct a concrete instance of `GetStoresStoreArrayInput` via:

GetStoresStoreArray{ GetStoresStoreArgs{...} }

type GetStoresStoreArrayOutput added in v3.4.0

type GetStoresStoreArrayOutput struct{ *pulumi.OutputState }

func (GetStoresStoreArrayOutput) ElementType added in v3.4.0

func (GetStoresStoreArrayOutput) ElementType() reflect.Type

func (GetStoresStoreArrayOutput) Index added in v3.4.0

func (GetStoresStoreArrayOutput) ToGetStoresStoreArrayOutput added in v3.4.0

func (o GetStoresStoreArrayOutput) ToGetStoresStoreArrayOutput() GetStoresStoreArrayOutput

func (GetStoresStoreArrayOutput) ToGetStoresStoreArrayOutputWithContext added in v3.4.0

func (o GetStoresStoreArrayOutput) ToGetStoresStoreArrayOutputWithContext(ctx context.Context) GetStoresStoreArrayOutput

type GetStoresStoreInput added in v3.4.0

type GetStoresStoreInput interface {
	pulumi.Input

	ToGetStoresStoreOutput() GetStoresStoreOutput
	ToGetStoresStoreOutputWithContext(context.Context) GetStoresStoreOutput
}

GetStoresStoreInput is an input type that accepts GetStoresStoreArgs and GetStoresStoreOutput values. You can construct a concrete instance of `GetStoresStoreInput` via:

GetStoresStoreArgs{...}

type GetStoresStoreOutput added in v3.4.0

type GetStoresStoreOutput struct{ *pulumi.OutputState }

func (GetStoresStoreOutput) ElementType added in v3.4.0

func (GetStoresStoreOutput) ElementType() reflect.Type

func (GetStoresStoreOutput) Id added in v3.4.0

The ID of the store.

func (GetStoresStoreOutput) StoreName added in v3.4.0

The name of the store.

func (GetStoresStoreOutput) ToGetStoresStoreOutput added in v3.4.0

func (o GetStoresStoreOutput) ToGetStoresStoreOutput() GetStoresStoreOutput

func (GetStoresStoreOutput) ToGetStoresStoreOutputWithContext added in v3.4.0

func (o GetStoresStoreOutput) ToGetStoresStoreOutputWithContext(ctx context.Context) GetStoresStoreOutput

type Ingestion added in v3.20.0

type Ingestion struct {
	pulumi.CustomResourceState

	// Ingestion job description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name displayed on the web page.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Ingestion job name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.
	IngestionName pulumi.StringOutput `pulumi:"ingestionName"`
	// Task execution interval, support minute `m`, hour `h`, day `d`, for example 30 minutes `30m`.
	Interval pulumi.StringOutput `pulumi:"interval"`
	// The name of the target logstore.
	Logstore pulumi.StringOutput `pulumi:"logstore"`
	// The name of the log project. It is the only in one Alicloud account.
	Project pulumi.StringOutput `pulumi:"project"`
	// Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
	RunImmediately pulumi.BoolOutput `pulumi:"runImmediately"`
	// Data source and data format details. [Refer to details](https://www.alibabacloud.com/help/en/doc-detail/147819.html).
	Source pulumi.StringOutput `pulumi:"source"`
	// Which time zone is the log time imported in, e.g. `+0800`.
	TimeZone pulumi.StringPtrOutput `pulumi:"timeZone"`
}

Log service ingestion, this service provides the function of importing logs of various data sources(OSS, MaxCompute) into logstore. [Refer to details](https://www.alibabacloud.com/help/en/doc-detail/147819.html).

> **NOTE:** Available in 1.161.0+

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
			Tags: pulumi.Map{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("example"),
			},
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewIngestion(ctx, "exampleIngestion", &log.IngestionArgs{
			Project:        exampleProject.Name,
			Logstore:       exampleStore.Name,
			IngestionName:  pulumi.String("terraform-example"),
			DisplayName:    pulumi.String("terraform-example"),
			Description:    pulumi.String("terraform-example"),
			Interval:       pulumi.String("30m"),
			RunImmediately: pulumi.Bool(true),
			TimeZone:       pulumi.String("+0800"),
			Source: pulumi.String(`        {
          "bucket": "bucket_name",
          "compressionCodec": "none",
          "encoding": "UTF-8",
          "endpoint": "oss-cn-hangzhou-internal.aliyuncs.com",
          "format": {
            "escapeChar": "\\",
            "fieldDelimiter": ",",
            "fieldNames": [],
            "firstRowAsHeader": true,
            "maxLines": 1,
            "quoteChar": "\"",
            "skipLeadingRows": 0,
            "timeField": "",
            "type": "DelimitedText"
          },
          "pattern": "",
          "prefix": "test-prefix/",
          "restoreObjectEnabled": false,
          "roleARN": "acs:ram::1049446484210612:role/aliyunlogimportossrole",
          "type": "AliyunOSS"
        }

`),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log ingestion can be imported using the id or name, e.g.

```sh $ pulumi import alicloud:log/ingestion:Ingestion example tf-log-project:tf-log-logstore:ingestion_name ```

func GetIngestion added in v3.20.0

func GetIngestion(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IngestionState, opts ...pulumi.ResourceOption) (*Ingestion, error)

GetIngestion gets an existing Ingestion resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewIngestion added in v3.20.0

func NewIngestion(ctx *pulumi.Context,
	name string, args *IngestionArgs, opts ...pulumi.ResourceOption) (*Ingestion, error)

NewIngestion registers a new resource with the given unique name, arguments, and options.

func (*Ingestion) ElementType added in v3.20.0

func (*Ingestion) ElementType() reflect.Type

func (*Ingestion) ToIngestionOutput added in v3.20.0

func (i *Ingestion) ToIngestionOutput() IngestionOutput

func (*Ingestion) ToIngestionOutputWithContext added in v3.20.0

func (i *Ingestion) ToIngestionOutputWithContext(ctx context.Context) IngestionOutput

type IngestionArgs added in v3.20.0

type IngestionArgs struct {
	// Ingestion job description.
	Description pulumi.StringPtrInput
	// The name displayed on the web page.
	DisplayName pulumi.StringInput
	// Ingestion job name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.
	IngestionName pulumi.StringInput
	// Task execution interval, support minute `m`, hour `h`, day `d`, for example 30 minutes `30m`.
	Interval pulumi.StringInput
	// The name of the target logstore.
	Logstore pulumi.StringInput
	// The name of the log project. It is the only in one Alicloud account.
	Project pulumi.StringInput
	// Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
	RunImmediately pulumi.BoolInput
	// Data source and data format details. [Refer to details](https://www.alibabacloud.com/help/en/doc-detail/147819.html).
	Source pulumi.StringInput
	// Which time zone is the log time imported in, e.g. `+0800`.
	TimeZone pulumi.StringPtrInput
}

The set of arguments for constructing a Ingestion resource.

func (IngestionArgs) ElementType added in v3.20.0

func (IngestionArgs) ElementType() reflect.Type

type IngestionArray added in v3.20.0

type IngestionArray []IngestionInput

func (IngestionArray) ElementType added in v3.20.0

func (IngestionArray) ElementType() reflect.Type

func (IngestionArray) ToIngestionArrayOutput added in v3.20.0

func (i IngestionArray) ToIngestionArrayOutput() IngestionArrayOutput

func (IngestionArray) ToIngestionArrayOutputWithContext added in v3.20.0

func (i IngestionArray) ToIngestionArrayOutputWithContext(ctx context.Context) IngestionArrayOutput

type IngestionArrayInput added in v3.20.0

type IngestionArrayInput interface {
	pulumi.Input

	ToIngestionArrayOutput() IngestionArrayOutput
	ToIngestionArrayOutputWithContext(context.Context) IngestionArrayOutput
}

IngestionArrayInput is an input type that accepts IngestionArray and IngestionArrayOutput values. You can construct a concrete instance of `IngestionArrayInput` via:

IngestionArray{ IngestionArgs{...} }

type IngestionArrayOutput added in v3.20.0

type IngestionArrayOutput struct{ *pulumi.OutputState }

func (IngestionArrayOutput) ElementType added in v3.20.0

func (IngestionArrayOutput) ElementType() reflect.Type

func (IngestionArrayOutput) Index added in v3.20.0

func (IngestionArrayOutput) ToIngestionArrayOutput added in v3.20.0

func (o IngestionArrayOutput) ToIngestionArrayOutput() IngestionArrayOutput

func (IngestionArrayOutput) ToIngestionArrayOutputWithContext added in v3.20.0

func (o IngestionArrayOutput) ToIngestionArrayOutputWithContext(ctx context.Context) IngestionArrayOutput

type IngestionInput added in v3.20.0

type IngestionInput interface {
	pulumi.Input

	ToIngestionOutput() IngestionOutput
	ToIngestionOutputWithContext(ctx context.Context) IngestionOutput
}

type IngestionMap added in v3.20.0

type IngestionMap map[string]IngestionInput

func (IngestionMap) ElementType added in v3.20.0

func (IngestionMap) ElementType() reflect.Type

func (IngestionMap) ToIngestionMapOutput added in v3.20.0

func (i IngestionMap) ToIngestionMapOutput() IngestionMapOutput

func (IngestionMap) ToIngestionMapOutputWithContext added in v3.20.0

func (i IngestionMap) ToIngestionMapOutputWithContext(ctx context.Context) IngestionMapOutput

type IngestionMapInput added in v3.20.0

type IngestionMapInput interface {
	pulumi.Input

	ToIngestionMapOutput() IngestionMapOutput
	ToIngestionMapOutputWithContext(context.Context) IngestionMapOutput
}

IngestionMapInput is an input type that accepts IngestionMap and IngestionMapOutput values. You can construct a concrete instance of `IngestionMapInput` via:

IngestionMap{ "key": IngestionArgs{...} }

type IngestionMapOutput added in v3.20.0

type IngestionMapOutput struct{ *pulumi.OutputState }

func (IngestionMapOutput) ElementType added in v3.20.0

func (IngestionMapOutput) ElementType() reflect.Type

func (IngestionMapOutput) MapIndex added in v3.20.0

func (IngestionMapOutput) ToIngestionMapOutput added in v3.20.0

func (o IngestionMapOutput) ToIngestionMapOutput() IngestionMapOutput

func (IngestionMapOutput) ToIngestionMapOutputWithContext added in v3.20.0

func (o IngestionMapOutput) ToIngestionMapOutputWithContext(ctx context.Context) IngestionMapOutput

type IngestionOutput added in v3.20.0

type IngestionOutput struct{ *pulumi.OutputState }

func (IngestionOutput) Description added in v3.27.0

func (o IngestionOutput) Description() pulumi.StringPtrOutput

Ingestion job description.

func (IngestionOutput) DisplayName added in v3.27.0

func (o IngestionOutput) DisplayName() pulumi.StringOutput

The name displayed on the web page.

func (IngestionOutput) ElementType added in v3.20.0

func (IngestionOutput) ElementType() reflect.Type

func (IngestionOutput) IngestionName added in v3.27.0

func (o IngestionOutput) IngestionName() pulumi.StringOutput

Ingestion job name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.

func (IngestionOutput) Interval added in v3.27.0

func (o IngestionOutput) Interval() pulumi.StringOutput

Task execution interval, support minute `m`, hour `h`, day `d`, for example 30 minutes `30m`.

func (IngestionOutput) Logstore added in v3.27.0

func (o IngestionOutput) Logstore() pulumi.StringOutput

The name of the target logstore.

func (IngestionOutput) Project added in v3.27.0

func (o IngestionOutput) Project() pulumi.StringOutput

The name of the log project. It is the only in one Alicloud account.

func (IngestionOutput) RunImmediately added in v3.27.0

func (o IngestionOutput) RunImmediately() pulumi.BoolOutput

Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.

func (IngestionOutput) Source added in v3.27.0

func (o IngestionOutput) Source() pulumi.StringOutput

Data source and data format details. [Refer to details](https://www.alibabacloud.com/help/en/doc-detail/147819.html).

func (IngestionOutput) TimeZone added in v3.27.0

func (o IngestionOutput) TimeZone() pulumi.StringPtrOutput

Which time zone is the log time imported in, e.g. `+0800`.

func (IngestionOutput) ToIngestionOutput added in v3.20.0

func (o IngestionOutput) ToIngestionOutput() IngestionOutput

func (IngestionOutput) ToIngestionOutputWithContext added in v3.20.0

func (o IngestionOutput) ToIngestionOutputWithContext(ctx context.Context) IngestionOutput

type IngestionState added in v3.20.0

type IngestionState struct {
	// Ingestion job description.
	Description pulumi.StringPtrInput
	// The name displayed on the web page.
	DisplayName pulumi.StringPtrInput
	// Ingestion job name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.
	IngestionName pulumi.StringPtrInput
	// Task execution interval, support minute `m`, hour `h`, day `d`, for example 30 minutes `30m`.
	Interval pulumi.StringPtrInput
	// The name of the target logstore.
	Logstore pulumi.StringPtrInput
	// The name of the log project. It is the only in one Alicloud account.
	Project pulumi.StringPtrInput
	// Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
	RunImmediately pulumi.BoolPtrInput
	// Data source and data format details. [Refer to details](https://www.alibabacloud.com/help/en/doc-detail/147819.html).
	Source pulumi.StringPtrInput
	// Which time zone is the log time imported in, e.g. `+0800`.
	TimeZone pulumi.StringPtrInput
}

func (IngestionState) ElementType added in v3.20.0

func (IngestionState) ElementType() reflect.Type

type LogTailAttachment

type LogTailAttachment struct {
	pulumi.CustomResourceState

	// The Logtail configuration name, which is unique in the same project.
	LogtailConfigName pulumi.StringOutput `pulumi:"logtailConfigName"`
	// The machine group name, which is unique in the same project.
	MachineGroupName pulumi.StringOutput `pulumi:"machineGroupName"`
	// The project name to the log store belongs.
	Project pulumi.StringOutput `pulumi:"project"`
}

The Logtail access service is a log collection agent provided by Log Service. You can use Logtail to collect logs from servers such as Alibaba Cloud Elastic Compute Service (ECS) instances in real time in the Log Service console. [Refer to details](https://www.alibabacloud.com/help/doc-detail/29058.htm)

This resource amis to attach one logtail configure to a machine group.

> **NOTE:** One logtail configure can be attached to multiple machine groups and one machine group can attach several logtail configures.

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		exampleLogTailConfig, err := log.NewLogTailConfig(ctx, "exampleLogTailConfig", &log.LogTailConfigArgs{
			Project:    exampleProject.Name,
			Logstore:   exampleStore.Name,
			InputType:  pulumi.String("file"),
			OutputType: pulumi.String("LogService"),
			InputDetail: pulumi.String(`  	{
		"logPath": "/logPath",
		"filePattern": "access.log",
		"logType": "json_log",
		"topicFormat": "default",
		"discardUnmatch": false,
		"enableRawLog": true,
		"fileEncoding": "gbk",
		"maxDepth": 10
	}

`),

		})
		if err != nil {
			return err
		}
		exampleMachineGroup, err := log.NewMachineGroup(ctx, "exampleMachineGroup", &log.MachineGroupArgs{
			Project:      exampleProject.Name,
			IdentifyType: pulumi.String("ip"),
			Topic:        pulumi.String("terraform"),
			IdentifyLists: pulumi.StringArray{
				pulumi.String("10.0.0.1"),
				pulumi.String("10.0.0.2"),
			},
		})
		if err != nil {
			return err
		}
		_, err = log.NewLogTailAttachment(ctx, "exampleLogTailAttachment", &log.LogTailAttachmentArgs{
			Project:           exampleProject.Name,
			LogtailConfigName: exampleLogTailConfig.Name,
			MachineGroupName:  exampleMachineGroup.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Logtial to machine group can be imported using the id, e.g.

```sh $ pulumi import alicloud:log/logTailAttachment:LogTailAttachment example tf-log:tf-log-config:tf-log-machine-group ```

func GetLogTailAttachment

func GetLogTailAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LogTailAttachmentState, opts ...pulumi.ResourceOption) (*LogTailAttachment, error)

GetLogTailAttachment gets an existing LogTailAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLogTailAttachment

func NewLogTailAttachment(ctx *pulumi.Context,
	name string, args *LogTailAttachmentArgs, opts ...pulumi.ResourceOption) (*LogTailAttachment, error)

NewLogTailAttachment registers a new resource with the given unique name, arguments, and options.

func (*LogTailAttachment) ElementType

func (*LogTailAttachment) ElementType() reflect.Type

func (*LogTailAttachment) ToLogTailAttachmentOutput

func (i *LogTailAttachment) ToLogTailAttachmentOutput() LogTailAttachmentOutput

func (*LogTailAttachment) ToLogTailAttachmentOutputWithContext

func (i *LogTailAttachment) ToLogTailAttachmentOutputWithContext(ctx context.Context) LogTailAttachmentOutput

type LogTailAttachmentArgs

type LogTailAttachmentArgs struct {
	// The Logtail configuration name, which is unique in the same project.
	LogtailConfigName pulumi.StringInput
	// The machine group name, which is unique in the same project.
	MachineGroupName pulumi.StringInput
	// The project name to the log store belongs.
	Project pulumi.StringInput
}

The set of arguments for constructing a LogTailAttachment resource.

func (LogTailAttachmentArgs) ElementType

func (LogTailAttachmentArgs) ElementType() reflect.Type

type LogTailAttachmentArray

type LogTailAttachmentArray []LogTailAttachmentInput

func (LogTailAttachmentArray) ElementType

func (LogTailAttachmentArray) ElementType() reflect.Type

func (LogTailAttachmentArray) ToLogTailAttachmentArrayOutput

func (i LogTailAttachmentArray) ToLogTailAttachmentArrayOutput() LogTailAttachmentArrayOutput

func (LogTailAttachmentArray) ToLogTailAttachmentArrayOutputWithContext

func (i LogTailAttachmentArray) ToLogTailAttachmentArrayOutputWithContext(ctx context.Context) LogTailAttachmentArrayOutput

type LogTailAttachmentArrayInput

type LogTailAttachmentArrayInput interface {
	pulumi.Input

	ToLogTailAttachmentArrayOutput() LogTailAttachmentArrayOutput
	ToLogTailAttachmentArrayOutputWithContext(context.Context) LogTailAttachmentArrayOutput
}

LogTailAttachmentArrayInput is an input type that accepts LogTailAttachmentArray and LogTailAttachmentArrayOutput values. You can construct a concrete instance of `LogTailAttachmentArrayInput` via:

LogTailAttachmentArray{ LogTailAttachmentArgs{...} }

type LogTailAttachmentArrayOutput

type LogTailAttachmentArrayOutput struct{ *pulumi.OutputState }

func (LogTailAttachmentArrayOutput) ElementType

func (LogTailAttachmentArrayOutput) Index

func (LogTailAttachmentArrayOutput) ToLogTailAttachmentArrayOutput

func (o LogTailAttachmentArrayOutput) ToLogTailAttachmentArrayOutput() LogTailAttachmentArrayOutput

func (LogTailAttachmentArrayOutput) ToLogTailAttachmentArrayOutputWithContext

func (o LogTailAttachmentArrayOutput) ToLogTailAttachmentArrayOutputWithContext(ctx context.Context) LogTailAttachmentArrayOutput

type LogTailAttachmentInput

type LogTailAttachmentInput interface {
	pulumi.Input

	ToLogTailAttachmentOutput() LogTailAttachmentOutput
	ToLogTailAttachmentOutputWithContext(ctx context.Context) LogTailAttachmentOutput
}

type LogTailAttachmentMap

type LogTailAttachmentMap map[string]LogTailAttachmentInput

func (LogTailAttachmentMap) ElementType

func (LogTailAttachmentMap) ElementType() reflect.Type

func (LogTailAttachmentMap) ToLogTailAttachmentMapOutput

func (i LogTailAttachmentMap) ToLogTailAttachmentMapOutput() LogTailAttachmentMapOutput

func (LogTailAttachmentMap) ToLogTailAttachmentMapOutputWithContext

func (i LogTailAttachmentMap) ToLogTailAttachmentMapOutputWithContext(ctx context.Context) LogTailAttachmentMapOutput

type LogTailAttachmentMapInput

type LogTailAttachmentMapInput interface {
	pulumi.Input

	ToLogTailAttachmentMapOutput() LogTailAttachmentMapOutput
	ToLogTailAttachmentMapOutputWithContext(context.Context) LogTailAttachmentMapOutput
}

LogTailAttachmentMapInput is an input type that accepts LogTailAttachmentMap and LogTailAttachmentMapOutput values. You can construct a concrete instance of `LogTailAttachmentMapInput` via:

LogTailAttachmentMap{ "key": LogTailAttachmentArgs{...} }

type LogTailAttachmentMapOutput

type LogTailAttachmentMapOutput struct{ *pulumi.OutputState }

func (LogTailAttachmentMapOutput) ElementType

func (LogTailAttachmentMapOutput) ElementType() reflect.Type

func (LogTailAttachmentMapOutput) MapIndex

func (LogTailAttachmentMapOutput) ToLogTailAttachmentMapOutput

func (o LogTailAttachmentMapOutput) ToLogTailAttachmentMapOutput() LogTailAttachmentMapOutput

func (LogTailAttachmentMapOutput) ToLogTailAttachmentMapOutputWithContext

func (o LogTailAttachmentMapOutput) ToLogTailAttachmentMapOutputWithContext(ctx context.Context) LogTailAttachmentMapOutput

type LogTailAttachmentOutput

type LogTailAttachmentOutput struct{ *pulumi.OutputState }

func (LogTailAttachmentOutput) ElementType

func (LogTailAttachmentOutput) ElementType() reflect.Type

func (LogTailAttachmentOutput) LogtailConfigName added in v3.27.0

func (o LogTailAttachmentOutput) LogtailConfigName() pulumi.StringOutput

The Logtail configuration name, which is unique in the same project.

func (LogTailAttachmentOutput) MachineGroupName added in v3.27.0

func (o LogTailAttachmentOutput) MachineGroupName() pulumi.StringOutput

The machine group name, which is unique in the same project.

func (LogTailAttachmentOutput) Project added in v3.27.0

The project name to the log store belongs.

func (LogTailAttachmentOutput) ToLogTailAttachmentOutput

func (o LogTailAttachmentOutput) ToLogTailAttachmentOutput() LogTailAttachmentOutput

func (LogTailAttachmentOutput) ToLogTailAttachmentOutputWithContext

func (o LogTailAttachmentOutput) ToLogTailAttachmentOutputWithContext(ctx context.Context) LogTailAttachmentOutput

type LogTailAttachmentState

type LogTailAttachmentState struct {
	// The Logtail configuration name, which is unique in the same project.
	LogtailConfigName pulumi.StringPtrInput
	// The machine group name, which is unique in the same project.
	MachineGroupName pulumi.StringPtrInput
	// The project name to the log store belongs.
	Project pulumi.StringPtrInput
}

func (LogTailAttachmentState) ElementType

func (LogTailAttachmentState) ElementType() reflect.Type

type LogTailConfig

type LogTailConfig struct {
	pulumi.CustomResourceState

	// The logtail configure the required JSON files. ([Refer to details](https://www.alibabacloud.com/help/doc-detail/29058.htm))
	InputDetail pulumi.StringOutput `pulumi:"inputDetail"`
	// The input type. Currently only two types of files and plugin are supported.
	InputType pulumi.StringOutput `pulumi:"inputType"`
	// (Optional)The log sample of the Logtail configuration. The log size cannot exceed 1,000 bytes.
	LogSample pulumi.StringPtrOutput `pulumi:"logSample"`
	// The log store name to the query index belongs.
	Logstore pulumi.StringOutput `pulumi:"logstore"`
	// The Logtail configuration name, which is unique in the same project.
	Name pulumi.StringOutput `pulumi:"name"`
	// The output type. Currently, only LogService is supported.
	OutputType pulumi.StringOutput `pulumi:"outputType"`
	// The project name to the log store belongs.
	Project pulumi.StringOutput `pulumi:"project"`
}

The Logtail access service is a log collection agent provided by Log Service. You can use Logtail to collect logs from servers such as Alibaba Cloud Elastic Compute Service (ECS) instances in real time in the Log Service console. [Refer to details](https://www.alibabacloud.com/help/doc-detail/29058.htm)

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewLogTailConfig(ctx, "exampleLogTailConfig", &log.LogTailConfigArgs{
			Project:    exampleProject.Name,
			Logstore:   exampleStore.Name,
			InputType:  pulumi.String("file"),
			OutputType: pulumi.String("LogService"),
			InputDetail: pulumi.String(`  	{
		"logPath": "/logPath",
		"filePattern": "access.log",
		"logType": "json_log",
		"topicFormat": "default",
		"discardUnmatch": false,
		"enableRawLog": true,
		"fileEncoding": "gbk",
		"maxDepth": 10
	}

`),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ## Module Support

You can use the existing sls-logtail module to create logtail config, machine group, install logtail on ECS instances and join instances into machine group one-click.

## Import

Logtial config can be imported using the id, e.g.

```sh $ pulumi import alicloud:log/logTailConfig:LogTailConfig example tf-log:tf-log-store:tf-log-config ```

func GetLogTailConfig

func GetLogTailConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LogTailConfigState, opts ...pulumi.ResourceOption) (*LogTailConfig, error)

GetLogTailConfig gets an existing LogTailConfig resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLogTailConfig

func NewLogTailConfig(ctx *pulumi.Context,
	name string, args *LogTailConfigArgs, opts ...pulumi.ResourceOption) (*LogTailConfig, error)

NewLogTailConfig registers a new resource with the given unique name, arguments, and options.

func (*LogTailConfig) ElementType

func (*LogTailConfig) ElementType() reflect.Type

func (*LogTailConfig) ToLogTailConfigOutput

func (i *LogTailConfig) ToLogTailConfigOutput() LogTailConfigOutput

func (*LogTailConfig) ToLogTailConfigOutputWithContext

func (i *LogTailConfig) ToLogTailConfigOutputWithContext(ctx context.Context) LogTailConfigOutput

type LogTailConfigArgs

type LogTailConfigArgs struct {
	// The logtail configure the required JSON files. ([Refer to details](https://www.alibabacloud.com/help/doc-detail/29058.htm))
	InputDetail pulumi.StringInput
	// The input type. Currently only two types of files and plugin are supported.
	InputType pulumi.StringInput
	// (Optional)The log sample of the Logtail configuration. The log size cannot exceed 1,000 bytes.
	LogSample pulumi.StringPtrInput
	// The log store name to the query index belongs.
	Logstore pulumi.StringInput
	// The Logtail configuration name, which is unique in the same project.
	Name pulumi.StringPtrInput
	// The output type. Currently, only LogService is supported.
	OutputType pulumi.StringInput
	// The project name to the log store belongs.
	Project pulumi.StringInput
}

The set of arguments for constructing a LogTailConfig resource.

func (LogTailConfigArgs) ElementType

func (LogTailConfigArgs) ElementType() reflect.Type

type LogTailConfigArray

type LogTailConfigArray []LogTailConfigInput

func (LogTailConfigArray) ElementType

func (LogTailConfigArray) ElementType() reflect.Type

func (LogTailConfigArray) ToLogTailConfigArrayOutput

func (i LogTailConfigArray) ToLogTailConfigArrayOutput() LogTailConfigArrayOutput

func (LogTailConfigArray) ToLogTailConfigArrayOutputWithContext

func (i LogTailConfigArray) ToLogTailConfigArrayOutputWithContext(ctx context.Context) LogTailConfigArrayOutput

type LogTailConfigArrayInput

type LogTailConfigArrayInput interface {
	pulumi.Input

	ToLogTailConfigArrayOutput() LogTailConfigArrayOutput
	ToLogTailConfigArrayOutputWithContext(context.Context) LogTailConfigArrayOutput
}

LogTailConfigArrayInput is an input type that accepts LogTailConfigArray and LogTailConfigArrayOutput values. You can construct a concrete instance of `LogTailConfigArrayInput` via:

LogTailConfigArray{ LogTailConfigArgs{...} }

type LogTailConfigArrayOutput

type LogTailConfigArrayOutput struct{ *pulumi.OutputState }

func (LogTailConfigArrayOutput) ElementType

func (LogTailConfigArrayOutput) ElementType() reflect.Type

func (LogTailConfigArrayOutput) Index

func (LogTailConfigArrayOutput) ToLogTailConfigArrayOutput

func (o LogTailConfigArrayOutput) ToLogTailConfigArrayOutput() LogTailConfigArrayOutput

func (LogTailConfigArrayOutput) ToLogTailConfigArrayOutputWithContext

func (o LogTailConfigArrayOutput) ToLogTailConfigArrayOutputWithContext(ctx context.Context) LogTailConfigArrayOutput

type LogTailConfigInput

type LogTailConfigInput interface {
	pulumi.Input

	ToLogTailConfigOutput() LogTailConfigOutput
	ToLogTailConfigOutputWithContext(ctx context.Context) LogTailConfigOutput
}

type LogTailConfigMap

type LogTailConfigMap map[string]LogTailConfigInput

func (LogTailConfigMap) ElementType

func (LogTailConfigMap) ElementType() reflect.Type

func (LogTailConfigMap) ToLogTailConfigMapOutput

func (i LogTailConfigMap) ToLogTailConfigMapOutput() LogTailConfigMapOutput

func (LogTailConfigMap) ToLogTailConfigMapOutputWithContext

func (i LogTailConfigMap) ToLogTailConfigMapOutputWithContext(ctx context.Context) LogTailConfigMapOutput

type LogTailConfigMapInput

type LogTailConfigMapInput interface {
	pulumi.Input

	ToLogTailConfigMapOutput() LogTailConfigMapOutput
	ToLogTailConfigMapOutputWithContext(context.Context) LogTailConfigMapOutput
}

LogTailConfigMapInput is an input type that accepts LogTailConfigMap and LogTailConfigMapOutput values. You can construct a concrete instance of `LogTailConfigMapInput` via:

LogTailConfigMap{ "key": LogTailConfigArgs{...} }

type LogTailConfigMapOutput

type LogTailConfigMapOutput struct{ *pulumi.OutputState }

func (LogTailConfigMapOutput) ElementType

func (LogTailConfigMapOutput) ElementType() reflect.Type

func (LogTailConfigMapOutput) MapIndex

func (LogTailConfigMapOutput) ToLogTailConfigMapOutput

func (o LogTailConfigMapOutput) ToLogTailConfigMapOutput() LogTailConfigMapOutput

func (LogTailConfigMapOutput) ToLogTailConfigMapOutputWithContext

func (o LogTailConfigMapOutput) ToLogTailConfigMapOutputWithContext(ctx context.Context) LogTailConfigMapOutput

type LogTailConfigOutput

type LogTailConfigOutput struct{ *pulumi.OutputState }

func (LogTailConfigOutput) ElementType

func (LogTailConfigOutput) ElementType() reflect.Type

func (LogTailConfigOutput) InputDetail added in v3.27.0

func (o LogTailConfigOutput) InputDetail() pulumi.StringOutput

The logtail configure the required JSON files. ([Refer to details](https://www.alibabacloud.com/help/doc-detail/29058.htm))

func (LogTailConfigOutput) InputType added in v3.27.0

func (o LogTailConfigOutput) InputType() pulumi.StringOutput

The input type. Currently only two types of files and plugin are supported.

func (LogTailConfigOutput) LogSample added in v3.27.0

(Optional)The log sample of the Logtail configuration. The log size cannot exceed 1,000 bytes.

func (LogTailConfigOutput) Logstore added in v3.27.0

The log store name to the query index belongs.

func (LogTailConfigOutput) Name added in v3.27.0

The Logtail configuration name, which is unique in the same project.

func (LogTailConfigOutput) OutputType added in v3.27.0

func (o LogTailConfigOutput) OutputType() pulumi.StringOutput

The output type. Currently, only LogService is supported.

func (LogTailConfigOutput) Project added in v3.27.0

The project name to the log store belongs.

func (LogTailConfigOutput) ToLogTailConfigOutput

func (o LogTailConfigOutput) ToLogTailConfigOutput() LogTailConfigOutput

func (LogTailConfigOutput) ToLogTailConfigOutputWithContext

func (o LogTailConfigOutput) ToLogTailConfigOutputWithContext(ctx context.Context) LogTailConfigOutput

type LogTailConfigState

type LogTailConfigState struct {
	// The logtail configure the required JSON files. ([Refer to details](https://www.alibabacloud.com/help/doc-detail/29058.htm))
	InputDetail pulumi.StringPtrInput
	// The input type. Currently only two types of files and plugin are supported.
	InputType pulumi.StringPtrInput
	// (Optional)The log sample of the Logtail configuration. The log size cannot exceed 1,000 bytes.
	LogSample pulumi.StringPtrInput
	// The log store name to the query index belongs.
	Logstore pulumi.StringPtrInput
	// The Logtail configuration name, which is unique in the same project.
	Name pulumi.StringPtrInput
	// The output type. Currently, only LogService is supported.
	OutputType pulumi.StringPtrInput
	// The project name to the log store belongs.
	Project pulumi.StringPtrInput
}

func (LogTailConfigState) ElementType

func (LogTailConfigState) ElementType() reflect.Type

type MachineGroup

type MachineGroup struct {
	pulumi.CustomResourceState

	// The specific machine identification, which can be an IP address or user-defined identity.
	IdentifyLists pulumi.StringArrayOutput `pulumi:"identifyLists"`
	// The machine identification type, including IP and user-defined identity. Valid values are "ip" and "userdefined". Default to "ip".
	IdentifyType pulumi.StringPtrOutput `pulumi:"identifyType"`
	// The machine group name, which is unique in the same project.
	Name pulumi.StringOutput `pulumi:"name"`
	// The project name to the machine group belongs.
	Project pulumi.StringOutput `pulumi:"project"`
	// The topic of a machine group.
	Topic pulumi.StringPtrOutput `pulumi:"topic"`
}

Log Service manages all the ECS instances whose logs need to be collected by using the Logtail client in the form of machine groups.

[Refer to details](https://www.alibabacloud.com/help/doc-detail/28966.htm)

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		_, err = log.NewMachineGroup(ctx, "exampleMachineGroup", &log.MachineGroupArgs{
			Project:      exampleProject.Name,
			IdentifyType: pulumi.String("ip"),
			Topic:        pulumi.String("terraform"),
			IdentifyLists: pulumi.StringArray{
				pulumi.String("10.0.0.1"),
				pulumi.String("10.0.0.2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ## Module Support

You can use the existing sls-logtail module to create logtail config, machine group, install logtail on ECS instances and join instances into machine group one-click.

## Import

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

```sh $ pulumi import alicloud:log/machineGroup:MachineGroup example tf-log:tf-machine-group ```

func GetMachineGroup

func GetMachineGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MachineGroupState, opts ...pulumi.ResourceOption) (*MachineGroup, error)

GetMachineGroup gets an existing MachineGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMachineGroup

func NewMachineGroup(ctx *pulumi.Context,
	name string, args *MachineGroupArgs, opts ...pulumi.ResourceOption) (*MachineGroup, error)

NewMachineGroup registers a new resource with the given unique name, arguments, and options.

func (*MachineGroup) ElementType

func (*MachineGroup) ElementType() reflect.Type

func (*MachineGroup) ToMachineGroupOutput

func (i *MachineGroup) ToMachineGroupOutput() MachineGroupOutput

func (*MachineGroup) ToMachineGroupOutputWithContext

func (i *MachineGroup) ToMachineGroupOutputWithContext(ctx context.Context) MachineGroupOutput

type MachineGroupArgs

type MachineGroupArgs struct {
	// The specific machine identification, which can be an IP address or user-defined identity.
	IdentifyLists pulumi.StringArrayInput
	// The machine identification type, including IP and user-defined identity. Valid values are "ip" and "userdefined". Default to "ip".
	IdentifyType pulumi.StringPtrInput
	// The machine group name, which is unique in the same project.
	Name pulumi.StringPtrInput
	// The project name to the machine group belongs.
	Project pulumi.StringInput
	// The topic of a machine group.
	Topic pulumi.StringPtrInput
}

The set of arguments for constructing a MachineGroup resource.

func (MachineGroupArgs) ElementType

func (MachineGroupArgs) ElementType() reflect.Type

type MachineGroupArray

type MachineGroupArray []MachineGroupInput

func (MachineGroupArray) ElementType

func (MachineGroupArray) ElementType() reflect.Type

func (MachineGroupArray) ToMachineGroupArrayOutput

func (i MachineGroupArray) ToMachineGroupArrayOutput() MachineGroupArrayOutput

func (MachineGroupArray) ToMachineGroupArrayOutputWithContext

func (i MachineGroupArray) ToMachineGroupArrayOutputWithContext(ctx context.Context) MachineGroupArrayOutput

type MachineGroupArrayInput

type MachineGroupArrayInput interface {
	pulumi.Input

	ToMachineGroupArrayOutput() MachineGroupArrayOutput
	ToMachineGroupArrayOutputWithContext(context.Context) MachineGroupArrayOutput
}

MachineGroupArrayInput is an input type that accepts MachineGroupArray and MachineGroupArrayOutput values. You can construct a concrete instance of `MachineGroupArrayInput` via:

MachineGroupArray{ MachineGroupArgs{...} }

type MachineGroupArrayOutput

type MachineGroupArrayOutput struct{ *pulumi.OutputState }

func (MachineGroupArrayOutput) ElementType

func (MachineGroupArrayOutput) ElementType() reflect.Type

func (MachineGroupArrayOutput) Index

func (MachineGroupArrayOutput) ToMachineGroupArrayOutput

func (o MachineGroupArrayOutput) ToMachineGroupArrayOutput() MachineGroupArrayOutput

func (MachineGroupArrayOutput) ToMachineGroupArrayOutputWithContext

func (o MachineGroupArrayOutput) ToMachineGroupArrayOutputWithContext(ctx context.Context) MachineGroupArrayOutput

type MachineGroupInput

type MachineGroupInput interface {
	pulumi.Input

	ToMachineGroupOutput() MachineGroupOutput
	ToMachineGroupOutputWithContext(ctx context.Context) MachineGroupOutput
}

type MachineGroupMap

type MachineGroupMap map[string]MachineGroupInput

func (MachineGroupMap) ElementType

func (MachineGroupMap) ElementType() reflect.Type

func (MachineGroupMap) ToMachineGroupMapOutput

func (i MachineGroupMap) ToMachineGroupMapOutput() MachineGroupMapOutput

func (MachineGroupMap) ToMachineGroupMapOutputWithContext

func (i MachineGroupMap) ToMachineGroupMapOutputWithContext(ctx context.Context) MachineGroupMapOutput

type MachineGroupMapInput

type MachineGroupMapInput interface {
	pulumi.Input

	ToMachineGroupMapOutput() MachineGroupMapOutput
	ToMachineGroupMapOutputWithContext(context.Context) MachineGroupMapOutput
}

MachineGroupMapInput is an input type that accepts MachineGroupMap and MachineGroupMapOutput values. You can construct a concrete instance of `MachineGroupMapInput` via:

MachineGroupMap{ "key": MachineGroupArgs{...} }

type MachineGroupMapOutput

type MachineGroupMapOutput struct{ *pulumi.OutputState }

func (MachineGroupMapOutput) ElementType

func (MachineGroupMapOutput) ElementType() reflect.Type

func (MachineGroupMapOutput) MapIndex

func (MachineGroupMapOutput) ToMachineGroupMapOutput

func (o MachineGroupMapOutput) ToMachineGroupMapOutput() MachineGroupMapOutput

func (MachineGroupMapOutput) ToMachineGroupMapOutputWithContext

func (o MachineGroupMapOutput) ToMachineGroupMapOutputWithContext(ctx context.Context) MachineGroupMapOutput

type MachineGroupOutput

type MachineGroupOutput struct{ *pulumi.OutputState }

func (MachineGroupOutput) ElementType

func (MachineGroupOutput) ElementType() reflect.Type

func (MachineGroupOutput) IdentifyLists added in v3.27.0

func (o MachineGroupOutput) IdentifyLists() pulumi.StringArrayOutput

The specific machine identification, which can be an IP address or user-defined identity.

func (MachineGroupOutput) IdentifyType added in v3.27.0

func (o MachineGroupOutput) IdentifyType() pulumi.StringPtrOutput

The machine identification type, including IP and user-defined identity. Valid values are "ip" and "userdefined". Default to "ip".

func (MachineGroupOutput) Name added in v3.27.0

The machine group name, which is unique in the same project.

func (MachineGroupOutput) Project added in v3.27.0

The project name to the machine group belongs.

func (MachineGroupOutput) ToMachineGroupOutput

func (o MachineGroupOutput) ToMachineGroupOutput() MachineGroupOutput

func (MachineGroupOutput) ToMachineGroupOutputWithContext

func (o MachineGroupOutput) ToMachineGroupOutputWithContext(ctx context.Context) MachineGroupOutput

func (MachineGroupOutput) Topic added in v3.27.0

The topic of a machine group.

type MachineGroupState

type MachineGroupState struct {
	// The specific machine identification, which can be an IP address or user-defined identity.
	IdentifyLists pulumi.StringArrayInput
	// The machine identification type, including IP and user-defined identity. Valid values are "ip" and "userdefined". Default to "ip".
	IdentifyType pulumi.StringPtrInput
	// The machine group name, which is unique in the same project.
	Name pulumi.StringPtrInput
	// The project name to the machine group belongs.
	Project pulumi.StringPtrInput
	// The topic of a machine group.
	Topic pulumi.StringPtrInput
}

func (MachineGroupState) ElementType

func (MachineGroupState) ElementType() reflect.Type

type OssExport added in v3.29.0

type OssExport struct {
	pulumi.CustomResourceState

	// The name of the oss bucket.
	Bucket pulumi.StringOutput `pulumi:"bucket"`
	// How often is it delivered every interval.
	BufferInterval pulumi.IntOutput `pulumi:"bufferInterval"`
	// Automatically control the creation interval of delivery tasks and set the upper limit of an OSS object size (calculated in uncompressed), unit: `MB`.
	BufferSize pulumi.IntOutput `pulumi:"bufferSize"`
	// OSS data storage compression method, support: `none`, `snappy`, `zstd`, `gzip`. Among them, none means that the original data is not compressed, and snappy means that the data is compressed using the snappy algorithm, which can reduce the storage space usage of the `OSS Bucket`.
	CompressType pulumi.StringOutput `pulumi:"compressType"`
	// Configure columns when `contentType` is `parquet` or `orc`.
	ConfigColumns OssExportConfigColumnArrayOutput `pulumi:"configColumns"`
	// Storage format, only supports three types: `json`, `parquet`, `orc`, `csv`.
	// **According to the different format, please select the following parameters**
	ContentType pulumi.StringOutput `pulumi:"contentType"`
	// Field configuration in csv content_type.
	CsvConfigColumns pulumi.StringArrayOutput `pulumi:"csvConfigColumns"`
	// Separator configuration in csv content_type.
	CsvConfigDelimiter pulumi.StringPtrOutput `pulumi:"csvConfigDelimiter"`
	// escape in csv content_type.
	CsvConfigEscape pulumi.StringPtrOutput `pulumi:"csvConfigEscape"`
	// Indicates whether to write the field name to the CSV file, the default value is `false`.
	CsvConfigHeader pulumi.BoolPtrOutput `pulumi:"csvConfigHeader"`
	// lineFeed in csv content_type.
	CsvConfigLinefeed pulumi.StringPtrOutput `pulumi:"csvConfigLinefeed"`
	// Invalid field content in csv content_type.
	CsvConfigNull pulumi.StringPtrOutput `pulumi:"csvConfigNull"`
	// Escape character in csv content_type.
	CsvConfigQuote pulumi.StringPtrOutput `pulumi:"csvConfigQuote"`
	// The display name for oss export.
	DisplayName pulumi.StringPtrOutput `pulumi:"displayName"`
	// Delivery configuration name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.
	ExportName pulumi.StringOutput `pulumi:"exportName"`
	// The log from when to export to oss.
	FromTime pulumi.IntPtrOutput `pulumi:"fromTime"`
	// Whether to deliver the label when `contentType` = `json`.
	JsonEnableTag pulumi.BoolPtrOutput `pulumi:"jsonEnableTag"`
	// Used for logstore reading, the role should have log read policy, such as `acs:ram::13234:role/logrole`, if `logReadRoleArn` is not set, `roleArn` is used to read logstore.
	LogReadRoleArn pulumi.StringPtrOutput `pulumi:"logReadRoleArn"`
	// The name of the log logstore.
	LogstoreName pulumi.StringOutput `pulumi:"logstoreName"`
	// The OSS Bucket directory is dynamically generated according to the creation time of the export task, it cannot start with a forward slash `/`, the default value is `%Y/%m/%d/%H/%M`.
	PathFormat pulumi.StringOutput `pulumi:"pathFormat"`
	// The data synchronized from Log Service to OSS will be stored in this directory of Bucket.
	Prefix pulumi.StringPtrOutput `pulumi:"prefix"`
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringOutput `pulumi:"projectName"`
	// Used to write to oss bucket, the OSS Bucket owner creates the role mark which has the oss bucket write policy, such as `acs:ram::13234:role/logrole`.
	RoleArn pulumi.StringPtrOutput `pulumi:"roleArn"`
	// The suffix for the objects in which the shipped data is stored.
	Suffix pulumi.StringPtrOutput `pulumi:"suffix"`
	// This time zone that is used to format the time, `+0800` e.g.
	TimeZone pulumi.StringOutput `pulumi:"timeZone"`
}

Log service data delivery management, this service provides the function of delivering data in logstore to oss product storage. [Refer to details](https://www.alibabacloud.com/help/en/log-service/latest/ship-logs-to-oss-new-version).

> **NOTE:** Available in 1.187.0+

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
			Tags: pulumi.Map{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("example"),
			},
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewOssExport(ctx, "exampleOssExport", &log.OssExportArgs{
			ProjectName:    exampleProject.Name,
			LogstoreName:   exampleStore.Name,
			ExportName:     pulumi.String("terraform-example"),
			DisplayName:    pulumi.String("terraform-example"),
			Bucket:         pulumi.String("example-bucket"),
			Prefix:         pulumi.String("root"),
			Suffix:         pulumi.String(""),
			BufferInterval: pulumi.Int(300),
			BufferSize:     pulumi.Int(250),
			CompressType:   pulumi.String("none"),
			PathFormat:     pulumi.String("%Y/%m/%d/%H/%M"),
			ContentType:    pulumi.String("json"),
			JsonEnableTag:  pulumi.Bool(true),
			RoleArn:        pulumi.String("role_arn_for_oss_write"),
			LogReadRoleArn: pulumi.String("role_arn_for_sls_read"),
			TimeZone:       pulumi.String("+0800"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log oss export can be imported using the id or name, e.g.

```sh $ pulumi import alicloud:log/ossExport:OssExport example tf-log-project:tf-log-logstore:tf-log-export ```

func GetOssExport added in v3.29.0

func GetOssExport(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OssExportState, opts ...pulumi.ResourceOption) (*OssExport, error)

GetOssExport gets an existing OssExport resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOssExport added in v3.29.0

func NewOssExport(ctx *pulumi.Context,
	name string, args *OssExportArgs, opts ...pulumi.ResourceOption) (*OssExport, error)

NewOssExport registers a new resource with the given unique name, arguments, and options.

func (*OssExport) ElementType added in v3.29.0

func (*OssExport) ElementType() reflect.Type

func (*OssExport) ToOssExportOutput added in v3.29.0

func (i *OssExport) ToOssExportOutput() OssExportOutput

func (*OssExport) ToOssExportOutputWithContext added in v3.29.0

func (i *OssExport) ToOssExportOutputWithContext(ctx context.Context) OssExportOutput

type OssExportArgs added in v3.29.0

type OssExportArgs struct {
	// The name of the oss bucket.
	Bucket pulumi.StringInput
	// How often is it delivered every interval.
	BufferInterval pulumi.IntInput
	// Automatically control the creation interval of delivery tasks and set the upper limit of an OSS object size (calculated in uncompressed), unit: `MB`.
	BufferSize pulumi.IntInput
	// OSS data storage compression method, support: `none`, `snappy`, `zstd`, `gzip`. Among them, none means that the original data is not compressed, and snappy means that the data is compressed using the snappy algorithm, which can reduce the storage space usage of the `OSS Bucket`.
	CompressType pulumi.StringPtrInput
	// Configure columns when `contentType` is `parquet` or `orc`.
	ConfigColumns OssExportConfigColumnArrayInput
	// Storage format, only supports three types: `json`, `parquet`, `orc`, `csv`.
	// **According to the different format, please select the following parameters**
	ContentType pulumi.StringInput
	// Field configuration in csv content_type.
	CsvConfigColumns pulumi.StringArrayInput
	// Separator configuration in csv content_type.
	CsvConfigDelimiter pulumi.StringPtrInput
	// escape in csv content_type.
	CsvConfigEscape pulumi.StringPtrInput
	// Indicates whether to write the field name to the CSV file, the default value is `false`.
	CsvConfigHeader pulumi.BoolPtrInput
	// lineFeed in csv content_type.
	CsvConfigLinefeed pulumi.StringPtrInput
	// Invalid field content in csv content_type.
	CsvConfigNull pulumi.StringPtrInput
	// Escape character in csv content_type.
	CsvConfigQuote pulumi.StringPtrInput
	// The display name for oss export.
	DisplayName pulumi.StringPtrInput
	// Delivery configuration name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.
	ExportName pulumi.StringInput
	// The log from when to export to oss.
	FromTime pulumi.IntPtrInput
	// Whether to deliver the label when `contentType` = `json`.
	JsonEnableTag pulumi.BoolPtrInput
	// Used for logstore reading, the role should have log read policy, such as `acs:ram::13234:role/logrole`, if `logReadRoleArn` is not set, `roleArn` is used to read logstore.
	LogReadRoleArn pulumi.StringPtrInput
	// The name of the log logstore.
	LogstoreName pulumi.StringInput
	// The OSS Bucket directory is dynamically generated according to the creation time of the export task, it cannot start with a forward slash `/`, the default value is `%Y/%m/%d/%H/%M`.
	PathFormat pulumi.StringInput
	// The data synchronized from Log Service to OSS will be stored in this directory of Bucket.
	Prefix pulumi.StringPtrInput
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringInput
	// Used to write to oss bucket, the OSS Bucket owner creates the role mark which has the oss bucket write policy, such as `acs:ram::13234:role/logrole`.
	RoleArn pulumi.StringPtrInput
	// The suffix for the objects in which the shipped data is stored.
	Suffix pulumi.StringPtrInput
	// This time zone that is used to format the time, `+0800` e.g.
	TimeZone pulumi.StringInput
}

The set of arguments for constructing a OssExport resource.

func (OssExportArgs) ElementType added in v3.29.0

func (OssExportArgs) ElementType() reflect.Type

type OssExportArray added in v3.29.0

type OssExportArray []OssExportInput

func (OssExportArray) ElementType added in v3.29.0

func (OssExportArray) ElementType() reflect.Type

func (OssExportArray) ToOssExportArrayOutput added in v3.29.0

func (i OssExportArray) ToOssExportArrayOutput() OssExportArrayOutput

func (OssExportArray) ToOssExportArrayOutputWithContext added in v3.29.0

func (i OssExportArray) ToOssExportArrayOutputWithContext(ctx context.Context) OssExportArrayOutput

type OssExportArrayInput added in v3.29.0

type OssExportArrayInput interface {
	pulumi.Input

	ToOssExportArrayOutput() OssExportArrayOutput
	ToOssExportArrayOutputWithContext(context.Context) OssExportArrayOutput
}

OssExportArrayInput is an input type that accepts OssExportArray and OssExportArrayOutput values. You can construct a concrete instance of `OssExportArrayInput` via:

OssExportArray{ OssExportArgs{...} }

type OssExportArrayOutput added in v3.29.0

type OssExportArrayOutput struct{ *pulumi.OutputState }

func (OssExportArrayOutput) ElementType added in v3.29.0

func (OssExportArrayOutput) ElementType() reflect.Type

func (OssExportArrayOutput) Index added in v3.29.0

func (OssExportArrayOutput) ToOssExportArrayOutput added in v3.29.0

func (o OssExportArrayOutput) ToOssExportArrayOutput() OssExportArrayOutput

func (OssExportArrayOutput) ToOssExportArrayOutputWithContext added in v3.29.0

func (o OssExportArrayOutput) ToOssExportArrayOutputWithContext(ctx context.Context) OssExportArrayOutput

type OssExportConfigColumn added in v3.29.0

type OssExportConfigColumn struct {
	// The name of the key.
	Name string `pulumi:"name"`
	// Type of configuration name.
	Type string `pulumi:"type"`
}

type OssExportConfigColumnArgs added in v3.29.0

type OssExportConfigColumnArgs struct {
	// The name of the key.
	Name pulumi.StringInput `pulumi:"name"`
	// Type of configuration name.
	Type pulumi.StringInput `pulumi:"type"`
}

func (OssExportConfigColumnArgs) ElementType added in v3.29.0

func (OssExportConfigColumnArgs) ElementType() reflect.Type

func (OssExportConfigColumnArgs) ToOssExportConfigColumnOutput added in v3.29.0

func (i OssExportConfigColumnArgs) ToOssExportConfigColumnOutput() OssExportConfigColumnOutput

func (OssExportConfigColumnArgs) ToOssExportConfigColumnOutputWithContext added in v3.29.0

func (i OssExportConfigColumnArgs) ToOssExportConfigColumnOutputWithContext(ctx context.Context) OssExportConfigColumnOutput

type OssExportConfigColumnArray added in v3.29.0

type OssExportConfigColumnArray []OssExportConfigColumnInput

func (OssExportConfigColumnArray) ElementType added in v3.29.0

func (OssExportConfigColumnArray) ElementType() reflect.Type

func (OssExportConfigColumnArray) ToOssExportConfigColumnArrayOutput added in v3.29.0

func (i OssExportConfigColumnArray) ToOssExportConfigColumnArrayOutput() OssExportConfigColumnArrayOutput

func (OssExportConfigColumnArray) ToOssExportConfigColumnArrayOutputWithContext added in v3.29.0

func (i OssExportConfigColumnArray) ToOssExportConfigColumnArrayOutputWithContext(ctx context.Context) OssExportConfigColumnArrayOutput

type OssExportConfigColumnArrayInput added in v3.29.0

type OssExportConfigColumnArrayInput interface {
	pulumi.Input

	ToOssExportConfigColumnArrayOutput() OssExportConfigColumnArrayOutput
	ToOssExportConfigColumnArrayOutputWithContext(context.Context) OssExportConfigColumnArrayOutput
}

OssExportConfigColumnArrayInput is an input type that accepts OssExportConfigColumnArray and OssExportConfigColumnArrayOutput values. You can construct a concrete instance of `OssExportConfigColumnArrayInput` via:

OssExportConfigColumnArray{ OssExportConfigColumnArgs{...} }

type OssExportConfigColumnArrayOutput added in v3.29.0

type OssExportConfigColumnArrayOutput struct{ *pulumi.OutputState }

func (OssExportConfigColumnArrayOutput) ElementType added in v3.29.0

func (OssExportConfigColumnArrayOutput) Index added in v3.29.0

func (OssExportConfigColumnArrayOutput) ToOssExportConfigColumnArrayOutput added in v3.29.0

func (o OssExportConfigColumnArrayOutput) ToOssExportConfigColumnArrayOutput() OssExportConfigColumnArrayOutput

func (OssExportConfigColumnArrayOutput) ToOssExportConfigColumnArrayOutputWithContext added in v3.29.0

func (o OssExportConfigColumnArrayOutput) ToOssExportConfigColumnArrayOutputWithContext(ctx context.Context) OssExportConfigColumnArrayOutput

type OssExportConfigColumnInput added in v3.29.0

type OssExportConfigColumnInput interface {
	pulumi.Input

	ToOssExportConfigColumnOutput() OssExportConfigColumnOutput
	ToOssExportConfigColumnOutputWithContext(context.Context) OssExportConfigColumnOutput
}

OssExportConfigColumnInput is an input type that accepts OssExportConfigColumnArgs and OssExportConfigColumnOutput values. You can construct a concrete instance of `OssExportConfigColumnInput` via:

OssExportConfigColumnArgs{...}

type OssExportConfigColumnOutput added in v3.29.0

type OssExportConfigColumnOutput struct{ *pulumi.OutputState }

func (OssExportConfigColumnOutput) ElementType added in v3.29.0

func (OssExportConfigColumnOutput) Name added in v3.29.0

The name of the key.

func (OssExportConfigColumnOutput) ToOssExportConfigColumnOutput added in v3.29.0

func (o OssExportConfigColumnOutput) ToOssExportConfigColumnOutput() OssExportConfigColumnOutput

func (OssExportConfigColumnOutput) ToOssExportConfigColumnOutputWithContext added in v3.29.0

func (o OssExportConfigColumnOutput) ToOssExportConfigColumnOutputWithContext(ctx context.Context) OssExportConfigColumnOutput

func (OssExportConfigColumnOutput) Type added in v3.29.0

Type of configuration name.

type OssExportInput added in v3.29.0

type OssExportInput interface {
	pulumi.Input

	ToOssExportOutput() OssExportOutput
	ToOssExportOutputWithContext(ctx context.Context) OssExportOutput
}

type OssExportMap added in v3.29.0

type OssExportMap map[string]OssExportInput

func (OssExportMap) ElementType added in v3.29.0

func (OssExportMap) ElementType() reflect.Type

func (OssExportMap) ToOssExportMapOutput added in v3.29.0

func (i OssExportMap) ToOssExportMapOutput() OssExportMapOutput

func (OssExportMap) ToOssExportMapOutputWithContext added in v3.29.0

func (i OssExportMap) ToOssExportMapOutputWithContext(ctx context.Context) OssExportMapOutput

type OssExportMapInput added in v3.29.0

type OssExportMapInput interface {
	pulumi.Input

	ToOssExportMapOutput() OssExportMapOutput
	ToOssExportMapOutputWithContext(context.Context) OssExportMapOutput
}

OssExportMapInput is an input type that accepts OssExportMap and OssExportMapOutput values. You can construct a concrete instance of `OssExportMapInput` via:

OssExportMap{ "key": OssExportArgs{...} }

type OssExportMapOutput added in v3.29.0

type OssExportMapOutput struct{ *pulumi.OutputState }

func (OssExportMapOutput) ElementType added in v3.29.0

func (OssExportMapOutput) ElementType() reflect.Type

func (OssExportMapOutput) MapIndex added in v3.29.0

func (OssExportMapOutput) ToOssExportMapOutput added in v3.29.0

func (o OssExportMapOutput) ToOssExportMapOutput() OssExportMapOutput

func (OssExportMapOutput) ToOssExportMapOutputWithContext added in v3.29.0

func (o OssExportMapOutput) ToOssExportMapOutputWithContext(ctx context.Context) OssExportMapOutput

type OssExportOutput added in v3.29.0

type OssExportOutput struct{ *pulumi.OutputState }

func (OssExportOutput) Bucket added in v3.29.0

func (o OssExportOutput) Bucket() pulumi.StringOutput

The name of the oss bucket.

func (OssExportOutput) BufferInterval added in v3.29.0

func (o OssExportOutput) BufferInterval() pulumi.IntOutput

How often is it delivered every interval.

func (OssExportOutput) BufferSize added in v3.29.0

func (o OssExportOutput) BufferSize() pulumi.IntOutput

Automatically control the creation interval of delivery tasks and set the upper limit of an OSS object size (calculated in uncompressed), unit: `MB`.

func (OssExportOutput) CompressType added in v3.29.0

func (o OssExportOutput) CompressType() pulumi.StringOutput

OSS data storage compression method, support: `none`, `snappy`, `zstd`, `gzip`. Among them, none means that the original data is not compressed, and snappy means that the data is compressed using the snappy algorithm, which can reduce the storage space usage of the `OSS Bucket`.

func (OssExportOutput) ConfigColumns added in v3.29.0

Configure columns when `contentType` is `parquet` or `orc`.

func (OssExportOutput) ContentType added in v3.29.0

func (o OssExportOutput) ContentType() pulumi.StringOutput

Storage format, only supports three types: `json`, `parquet`, `orc`, `csv`. **According to the different format, please select the following parameters**

func (OssExportOutput) CsvConfigColumns added in v3.29.0

func (o OssExportOutput) CsvConfigColumns() pulumi.StringArrayOutput

Field configuration in csv content_type.

func (OssExportOutput) CsvConfigDelimiter added in v3.29.0

func (o OssExportOutput) CsvConfigDelimiter() pulumi.StringPtrOutput

Separator configuration in csv content_type.

func (OssExportOutput) CsvConfigEscape added in v3.29.0

func (o OssExportOutput) CsvConfigEscape() pulumi.StringPtrOutput

escape in csv content_type.

func (OssExportOutput) CsvConfigHeader added in v3.29.0

func (o OssExportOutput) CsvConfigHeader() pulumi.BoolPtrOutput

Indicates whether to write the field name to the CSV file, the default value is `false`.

func (OssExportOutput) CsvConfigLinefeed added in v3.29.0

func (o OssExportOutput) CsvConfigLinefeed() pulumi.StringPtrOutput

lineFeed in csv content_type.

func (OssExportOutput) CsvConfigNull added in v3.29.0

func (o OssExportOutput) CsvConfigNull() pulumi.StringPtrOutput

Invalid field content in csv content_type.

func (OssExportOutput) CsvConfigQuote added in v3.29.0

func (o OssExportOutput) CsvConfigQuote() pulumi.StringPtrOutput

Escape character in csv content_type.

func (OssExportOutput) DisplayName added in v3.29.0

func (o OssExportOutput) DisplayName() pulumi.StringPtrOutput

The display name for oss export.

func (OssExportOutput) ElementType added in v3.29.0

func (OssExportOutput) ElementType() reflect.Type

func (OssExportOutput) ExportName added in v3.29.0

func (o OssExportOutput) ExportName() pulumi.StringOutput

Delivery configuration name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.

func (OssExportOutput) FromTime added in v3.29.0

func (o OssExportOutput) FromTime() pulumi.IntPtrOutput

The log from when to export to oss.

func (OssExportOutput) JsonEnableTag added in v3.29.0

func (o OssExportOutput) JsonEnableTag() pulumi.BoolPtrOutput

Whether to deliver the label when `contentType` = `json`.

func (OssExportOutput) LogReadRoleArn added in v3.29.0

func (o OssExportOutput) LogReadRoleArn() pulumi.StringPtrOutput

Used for logstore reading, the role should have log read policy, such as `acs:ram::13234:role/logrole`, if `logReadRoleArn` is not set, `roleArn` is used to read logstore.

func (OssExportOutput) LogstoreName added in v3.29.0

func (o OssExportOutput) LogstoreName() pulumi.StringOutput

The name of the log logstore.

func (OssExportOutput) PathFormat added in v3.29.0

func (o OssExportOutput) PathFormat() pulumi.StringOutput

The OSS Bucket directory is dynamically generated according to the creation time of the export task, it cannot start with a forward slash `/`, the default value is `%Y/%m/%d/%H/%M`.

func (OssExportOutput) Prefix added in v3.29.0

The data synchronized from Log Service to OSS will be stored in this directory of Bucket.

func (OssExportOutput) ProjectName added in v3.29.0

func (o OssExportOutput) ProjectName() pulumi.StringOutput

The name of the log project. It is the only in one Alicloud account.

func (OssExportOutput) RoleArn added in v3.29.0

Used to write to oss bucket, the OSS Bucket owner creates the role mark which has the oss bucket write policy, such as `acs:ram::13234:role/logrole`.

func (OssExportOutput) Suffix added in v3.29.0

The suffix for the objects in which the shipped data is stored.

func (OssExportOutput) TimeZone added in v3.29.0

func (o OssExportOutput) TimeZone() pulumi.StringOutput

This time zone that is used to format the time, `+0800` e.g.

func (OssExportOutput) ToOssExportOutput added in v3.29.0

func (o OssExportOutput) ToOssExportOutput() OssExportOutput

func (OssExportOutput) ToOssExportOutputWithContext added in v3.29.0

func (o OssExportOutput) ToOssExportOutputWithContext(ctx context.Context) OssExportOutput

type OssExportState added in v3.29.0

type OssExportState struct {
	// The name of the oss bucket.
	Bucket pulumi.StringPtrInput
	// How often is it delivered every interval.
	BufferInterval pulumi.IntPtrInput
	// Automatically control the creation interval of delivery tasks and set the upper limit of an OSS object size (calculated in uncompressed), unit: `MB`.
	BufferSize pulumi.IntPtrInput
	// OSS data storage compression method, support: `none`, `snappy`, `zstd`, `gzip`. Among them, none means that the original data is not compressed, and snappy means that the data is compressed using the snappy algorithm, which can reduce the storage space usage of the `OSS Bucket`.
	CompressType pulumi.StringPtrInput
	// Configure columns when `contentType` is `parquet` or `orc`.
	ConfigColumns OssExportConfigColumnArrayInput
	// Storage format, only supports three types: `json`, `parquet`, `orc`, `csv`.
	// **According to the different format, please select the following parameters**
	ContentType pulumi.StringPtrInput
	// Field configuration in csv content_type.
	CsvConfigColumns pulumi.StringArrayInput
	// Separator configuration in csv content_type.
	CsvConfigDelimiter pulumi.StringPtrInput
	// escape in csv content_type.
	CsvConfigEscape pulumi.StringPtrInput
	// Indicates whether to write the field name to the CSV file, the default value is `false`.
	CsvConfigHeader pulumi.BoolPtrInput
	// lineFeed in csv content_type.
	CsvConfigLinefeed pulumi.StringPtrInput
	// Invalid field content in csv content_type.
	CsvConfigNull pulumi.StringPtrInput
	// Escape character in csv content_type.
	CsvConfigQuote pulumi.StringPtrInput
	// The display name for oss export.
	DisplayName pulumi.StringPtrInput
	// Delivery configuration name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.
	ExportName pulumi.StringPtrInput
	// The log from when to export to oss.
	FromTime pulumi.IntPtrInput
	// Whether to deliver the label when `contentType` = `json`.
	JsonEnableTag pulumi.BoolPtrInput
	// Used for logstore reading, the role should have log read policy, such as `acs:ram::13234:role/logrole`, if `logReadRoleArn` is not set, `roleArn` is used to read logstore.
	LogReadRoleArn pulumi.StringPtrInput
	// The name of the log logstore.
	LogstoreName pulumi.StringPtrInput
	// The OSS Bucket directory is dynamically generated according to the creation time of the export task, it cannot start with a forward slash `/`, the default value is `%Y/%m/%d/%H/%M`.
	PathFormat pulumi.StringPtrInput
	// The data synchronized from Log Service to OSS will be stored in this directory of Bucket.
	Prefix pulumi.StringPtrInput
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringPtrInput
	// Used to write to oss bucket, the OSS Bucket owner creates the role mark which has the oss bucket write policy, such as `acs:ram::13234:role/logrole`.
	RoleArn pulumi.StringPtrInput
	// The suffix for the objects in which the shipped data is stored.
	Suffix pulumi.StringPtrInput
	// This time zone that is used to format the time, `+0800` e.g.
	TimeZone pulumi.StringPtrInput
}

func (OssExportState) ElementType added in v3.29.0

func (OssExportState) ElementType() reflect.Type

type OssShipper

type OssShipper struct {
	pulumi.CustomResourceState

	// How often is it delivered every interval.
	BufferInterval pulumi.IntOutput `pulumi:"bufferInterval"`
	// Automatically control the creation interval of delivery tasks and set the upper limit of an OSS object size (calculated in uncompressed), unit: `MB`.
	BufferSize pulumi.IntOutput `pulumi:"bufferSize"`
	// OSS data storage compression method, support: none, snappy. Among them, none means that the original data is not compressed, and snappy means that the data is compressed using the snappy algorithm, which can reduce the storage space usage of the `OSS Bucket`.
	CompressType            pulumi.StringPtrOutput   `pulumi:"compressType"`
	CsvConfigColumns        pulumi.StringArrayOutput `pulumi:"csvConfigColumns"`
	CsvConfigDelimiter      pulumi.StringPtrOutput   `pulumi:"csvConfigDelimiter"`
	CsvConfigHeader         pulumi.BoolPtrOutput     `pulumi:"csvConfigHeader"`
	CsvConfigLinefeed       pulumi.StringPtrOutput   `pulumi:"csvConfigLinefeed"`
	CsvConfigNullidentifier pulumi.StringPtrOutput   `pulumi:"csvConfigNullidentifier"`
	CsvConfigQuote          pulumi.StringPtrOutput   `pulumi:"csvConfigQuote"`
	// Storage format, only supports three types: `json`, `parquet`, `csv`.
	// **According to the different format, please select the following parameters**
	// - format = `json`
	//   `jsonEnableTag` - (Optional) Whether to deliver the label.
	// - format = `csv`
	//   `csvConfigDelimiter` - (Optional) Separator configuration in csv configuration format.
	//   `csvConfigColumns` - (Optional) Field configuration in csv configuration format.
	//   `csvConfigNullidentifier` - (Optional) Invalid field content.
	//   `csvConfigQuote` - (Optional) Escape character under csv configuration.
	//   `csvConfigHeader` - (Optional) Indicates whether to write the field name to the CSV file, the default value is `false`.
	//   `csvConfigLinefeed` - (Optional) lineFeed in csv configuration.
	// - format = `parquet`
	//   `parquetConfig` - (Optional) Configure to use parquet storage format.
	//   `name` - (Required) The name of the key.
	//   `type` - (Required) Type of configuration name.
	Format        pulumi.StringOutput  `pulumi:"format"`
	JsonEnableTag pulumi.BoolPtrOutput `pulumi:"jsonEnableTag"`
	// The name of the log logstore.
	LogstoreName pulumi.StringOutput `pulumi:"logstoreName"`
	// The name of the oss bucket.
	OssBucket pulumi.StringOutput `pulumi:"ossBucket"`
	// The data synchronized from Log Service to OSS will be stored in this directory of Bucket.
	OssPrefix      pulumi.StringPtrOutput             `pulumi:"ossPrefix"`
	ParquetConfigs OssShipperParquetConfigArrayOutput `pulumi:"parquetConfigs"`
	// The OSS Bucket directory is dynamically generated according to the creation time of the shipper task, it cannot start with a forward slash `/`, the default value is `%Y/%m/%d/%H/%M`.
	PathFormat pulumi.StringOutput `pulumi:"pathFormat"`
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringOutput `pulumi:"projectName"`
	// Used for access control, the OSS Bucket owner creates the role mark, such as `acs:ram::13234:role/logrole`
	RoleArn pulumi.StringPtrOutput `pulumi:"roleArn"`
	// Delivery configuration name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.
	ShipperName pulumi.StringOutput `pulumi:"shipperName"`
}

Log service data delivery management, this service provides the function of delivering data in logstore to oss product storage. [Refer to details](https://www.alibabacloud.com/help/en/doc-detail/43724.htm).

> **NOTE:** Available in 1.121.0+

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
			Tags: pulumi.Map{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("example"),
			},
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewOssShipper(ctx, "exampleOssShipper", &log.OssShipperArgs{
			ProjectName:    exampleProject.Name,
			LogstoreName:   exampleStore.Name,
			ShipperName:    pulumi.String("terraform-example"),
			OssBucket:      pulumi.String("example_bucket"),
			OssPrefix:      pulumi.String("root"),
			BufferInterval: pulumi.Int(300),
			BufferSize:     pulumi.Int(250),
			CompressType:   pulumi.String("none"),
			PathFormat:     pulumi.String("%Y/%m/%d/%H/%M"),
			Format:         pulumi.String("json"),
			JsonEnableTag:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log oss shipper can be imported using the id or name, e.g.

```sh $ pulumi import alicloud:log/ossShipper:OssShipper example tf-log-project:tf-log-logstore:tf-log-shipper ```

func GetOssShipper

func GetOssShipper(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OssShipperState, opts ...pulumi.ResourceOption) (*OssShipper, error)

GetOssShipper gets an existing OssShipper resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOssShipper

func NewOssShipper(ctx *pulumi.Context,
	name string, args *OssShipperArgs, opts ...pulumi.ResourceOption) (*OssShipper, error)

NewOssShipper registers a new resource with the given unique name, arguments, and options.

func (*OssShipper) ElementType

func (*OssShipper) ElementType() reflect.Type

func (*OssShipper) ToOssShipperOutput

func (i *OssShipper) ToOssShipperOutput() OssShipperOutput

func (*OssShipper) ToOssShipperOutputWithContext

func (i *OssShipper) ToOssShipperOutputWithContext(ctx context.Context) OssShipperOutput

type OssShipperArgs

type OssShipperArgs struct {
	// How often is it delivered every interval.
	BufferInterval pulumi.IntInput
	// Automatically control the creation interval of delivery tasks and set the upper limit of an OSS object size (calculated in uncompressed), unit: `MB`.
	BufferSize pulumi.IntInput
	// OSS data storage compression method, support: none, snappy. Among them, none means that the original data is not compressed, and snappy means that the data is compressed using the snappy algorithm, which can reduce the storage space usage of the `OSS Bucket`.
	CompressType            pulumi.StringPtrInput
	CsvConfigColumns        pulumi.StringArrayInput
	CsvConfigDelimiter      pulumi.StringPtrInput
	CsvConfigHeader         pulumi.BoolPtrInput
	CsvConfigLinefeed       pulumi.StringPtrInput
	CsvConfigNullidentifier pulumi.StringPtrInput
	CsvConfigQuote          pulumi.StringPtrInput
	// Storage format, only supports three types: `json`, `parquet`, `csv`.
	// **According to the different format, please select the following parameters**
	// - format = `json`
	//   `jsonEnableTag` - (Optional) Whether to deliver the label.
	// - format = `csv`
	//   `csvConfigDelimiter` - (Optional) Separator configuration in csv configuration format.
	//   `csvConfigColumns` - (Optional) Field configuration in csv configuration format.
	//   `csvConfigNullidentifier` - (Optional) Invalid field content.
	//   `csvConfigQuote` - (Optional) Escape character under csv configuration.
	//   `csvConfigHeader` - (Optional) Indicates whether to write the field name to the CSV file, the default value is `false`.
	//   `csvConfigLinefeed` - (Optional) lineFeed in csv configuration.
	// - format = `parquet`
	//   `parquetConfig` - (Optional) Configure to use parquet storage format.
	//   `name` - (Required) The name of the key.
	//   `type` - (Required) Type of configuration name.
	Format        pulumi.StringInput
	JsonEnableTag pulumi.BoolPtrInput
	// The name of the log logstore.
	LogstoreName pulumi.StringInput
	// The name of the oss bucket.
	OssBucket pulumi.StringInput
	// The data synchronized from Log Service to OSS will be stored in this directory of Bucket.
	OssPrefix      pulumi.StringPtrInput
	ParquetConfigs OssShipperParquetConfigArrayInput
	// The OSS Bucket directory is dynamically generated according to the creation time of the shipper task, it cannot start with a forward slash `/`, the default value is `%Y/%m/%d/%H/%M`.
	PathFormat pulumi.StringInput
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringInput
	// Used for access control, the OSS Bucket owner creates the role mark, such as `acs:ram::13234:role/logrole`
	RoleArn pulumi.StringPtrInput
	// Delivery configuration name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.
	ShipperName pulumi.StringInput
}

The set of arguments for constructing a OssShipper resource.

func (OssShipperArgs) ElementType

func (OssShipperArgs) ElementType() reflect.Type

type OssShipperArray

type OssShipperArray []OssShipperInput

func (OssShipperArray) ElementType

func (OssShipperArray) ElementType() reflect.Type

func (OssShipperArray) ToOssShipperArrayOutput

func (i OssShipperArray) ToOssShipperArrayOutput() OssShipperArrayOutput

func (OssShipperArray) ToOssShipperArrayOutputWithContext

func (i OssShipperArray) ToOssShipperArrayOutputWithContext(ctx context.Context) OssShipperArrayOutput

type OssShipperArrayInput

type OssShipperArrayInput interface {
	pulumi.Input

	ToOssShipperArrayOutput() OssShipperArrayOutput
	ToOssShipperArrayOutputWithContext(context.Context) OssShipperArrayOutput
}

OssShipperArrayInput is an input type that accepts OssShipperArray and OssShipperArrayOutput values. You can construct a concrete instance of `OssShipperArrayInput` via:

OssShipperArray{ OssShipperArgs{...} }

type OssShipperArrayOutput

type OssShipperArrayOutput struct{ *pulumi.OutputState }

func (OssShipperArrayOutput) ElementType

func (OssShipperArrayOutput) ElementType() reflect.Type

func (OssShipperArrayOutput) Index

func (OssShipperArrayOutput) ToOssShipperArrayOutput

func (o OssShipperArrayOutput) ToOssShipperArrayOutput() OssShipperArrayOutput

func (OssShipperArrayOutput) ToOssShipperArrayOutputWithContext

func (o OssShipperArrayOutput) ToOssShipperArrayOutputWithContext(ctx context.Context) OssShipperArrayOutput

type OssShipperInput

type OssShipperInput interface {
	pulumi.Input

	ToOssShipperOutput() OssShipperOutput
	ToOssShipperOutputWithContext(ctx context.Context) OssShipperOutput
}

type OssShipperMap

type OssShipperMap map[string]OssShipperInput

func (OssShipperMap) ElementType

func (OssShipperMap) ElementType() reflect.Type

func (OssShipperMap) ToOssShipperMapOutput

func (i OssShipperMap) ToOssShipperMapOutput() OssShipperMapOutput

func (OssShipperMap) ToOssShipperMapOutputWithContext

func (i OssShipperMap) ToOssShipperMapOutputWithContext(ctx context.Context) OssShipperMapOutput

type OssShipperMapInput

type OssShipperMapInput interface {
	pulumi.Input

	ToOssShipperMapOutput() OssShipperMapOutput
	ToOssShipperMapOutputWithContext(context.Context) OssShipperMapOutput
}

OssShipperMapInput is an input type that accepts OssShipperMap and OssShipperMapOutput values. You can construct a concrete instance of `OssShipperMapInput` via:

OssShipperMap{ "key": OssShipperArgs{...} }

type OssShipperMapOutput

type OssShipperMapOutput struct{ *pulumi.OutputState }

func (OssShipperMapOutput) ElementType

func (OssShipperMapOutput) ElementType() reflect.Type

func (OssShipperMapOutput) MapIndex

func (OssShipperMapOutput) ToOssShipperMapOutput

func (o OssShipperMapOutput) ToOssShipperMapOutput() OssShipperMapOutput

func (OssShipperMapOutput) ToOssShipperMapOutputWithContext

func (o OssShipperMapOutput) ToOssShipperMapOutputWithContext(ctx context.Context) OssShipperMapOutput

type OssShipperOutput

type OssShipperOutput struct{ *pulumi.OutputState }

func (OssShipperOutput) BufferInterval added in v3.27.0

func (o OssShipperOutput) BufferInterval() pulumi.IntOutput

How often is it delivered every interval.

func (OssShipperOutput) BufferSize added in v3.27.0

func (o OssShipperOutput) BufferSize() pulumi.IntOutput

Automatically control the creation interval of delivery tasks and set the upper limit of an OSS object size (calculated in uncompressed), unit: `MB`.

func (OssShipperOutput) CompressType added in v3.27.0

func (o OssShipperOutput) CompressType() pulumi.StringPtrOutput

OSS data storage compression method, support: none, snappy. Among them, none means that the original data is not compressed, and snappy means that the data is compressed using the snappy algorithm, which can reduce the storage space usage of the `OSS Bucket`.

func (OssShipperOutput) CsvConfigColumns added in v3.27.0

func (o OssShipperOutput) CsvConfigColumns() pulumi.StringArrayOutput

func (OssShipperOutput) CsvConfigDelimiter added in v3.27.0

func (o OssShipperOutput) CsvConfigDelimiter() pulumi.StringPtrOutput

func (OssShipperOutput) CsvConfigHeader added in v3.27.0

func (o OssShipperOutput) CsvConfigHeader() pulumi.BoolPtrOutput

func (OssShipperOutput) CsvConfigLinefeed added in v3.27.0

func (o OssShipperOutput) CsvConfigLinefeed() pulumi.StringPtrOutput

func (OssShipperOutput) CsvConfigNullidentifier added in v3.27.0

func (o OssShipperOutput) CsvConfigNullidentifier() pulumi.StringPtrOutput

func (OssShipperOutput) CsvConfigQuote added in v3.27.0

func (o OssShipperOutput) CsvConfigQuote() pulumi.StringPtrOutput

func (OssShipperOutput) ElementType

func (OssShipperOutput) ElementType() reflect.Type

func (OssShipperOutput) Format added in v3.27.0

Storage format, only supports three types: `json`, `parquet`, `csv`. **According to the different format, please select the following parameters**

  • format = `json` `jsonEnableTag` - (Optional) Whether to deliver the label.
  • format = `csv` `csvConfigDelimiter` - (Optional) Separator configuration in csv configuration format. `csvConfigColumns` - (Optional) Field configuration in csv configuration format. `csvConfigNullidentifier` - (Optional) Invalid field content. `csvConfigQuote` - (Optional) Escape character under csv configuration. `csvConfigHeader` - (Optional) Indicates whether to write the field name to the CSV file, the default value is `false`. `csvConfigLinefeed` - (Optional) lineFeed in csv configuration.
  • format = `parquet` `parquetConfig` - (Optional) Configure to use parquet storage format. `name` - (Required) The name of the key. `type` - (Required) Type of configuration name.

func (OssShipperOutput) JsonEnableTag added in v3.27.0

func (o OssShipperOutput) JsonEnableTag() pulumi.BoolPtrOutput

func (OssShipperOutput) LogstoreName added in v3.27.0

func (o OssShipperOutput) LogstoreName() pulumi.StringOutput

The name of the log logstore.

func (OssShipperOutput) OssBucket added in v3.27.0

func (o OssShipperOutput) OssBucket() pulumi.StringOutput

The name of the oss bucket.

func (OssShipperOutput) OssPrefix added in v3.27.0

func (o OssShipperOutput) OssPrefix() pulumi.StringPtrOutput

The data synchronized from Log Service to OSS will be stored in this directory of Bucket.

func (OssShipperOutput) ParquetConfigs added in v3.27.0

func (OssShipperOutput) PathFormat added in v3.27.0

func (o OssShipperOutput) PathFormat() pulumi.StringOutput

The OSS Bucket directory is dynamically generated according to the creation time of the shipper task, it cannot start with a forward slash `/`, the default value is `%Y/%m/%d/%H/%M`.

func (OssShipperOutput) ProjectName added in v3.27.0

func (o OssShipperOutput) ProjectName() pulumi.StringOutput

The name of the log project. It is the only in one Alicloud account.

func (OssShipperOutput) RoleArn added in v3.27.0

Used for access control, the OSS Bucket owner creates the role mark, such as `acs:ram::13234:role/logrole`

func (OssShipperOutput) ShipperName added in v3.27.0

func (o OssShipperOutput) ShipperName() pulumi.StringOutput

Delivery configuration name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.

func (OssShipperOutput) ToOssShipperOutput

func (o OssShipperOutput) ToOssShipperOutput() OssShipperOutput

func (OssShipperOutput) ToOssShipperOutputWithContext

func (o OssShipperOutput) ToOssShipperOutputWithContext(ctx context.Context) OssShipperOutput

type OssShipperParquetConfig

type OssShipperParquetConfig struct {
	Name string `pulumi:"name"`
	Type string `pulumi:"type"`
}

type OssShipperParquetConfigArgs

type OssShipperParquetConfigArgs struct {
	Name pulumi.StringInput `pulumi:"name"`
	Type pulumi.StringInput `pulumi:"type"`
}

func (OssShipperParquetConfigArgs) ElementType

func (OssShipperParquetConfigArgs) ToOssShipperParquetConfigOutput

func (i OssShipperParquetConfigArgs) ToOssShipperParquetConfigOutput() OssShipperParquetConfigOutput

func (OssShipperParquetConfigArgs) ToOssShipperParquetConfigOutputWithContext

func (i OssShipperParquetConfigArgs) ToOssShipperParquetConfigOutputWithContext(ctx context.Context) OssShipperParquetConfigOutput

type OssShipperParquetConfigArray

type OssShipperParquetConfigArray []OssShipperParquetConfigInput

func (OssShipperParquetConfigArray) ElementType

func (OssShipperParquetConfigArray) ToOssShipperParquetConfigArrayOutput

func (i OssShipperParquetConfigArray) ToOssShipperParquetConfigArrayOutput() OssShipperParquetConfigArrayOutput

func (OssShipperParquetConfigArray) ToOssShipperParquetConfigArrayOutputWithContext

func (i OssShipperParquetConfigArray) ToOssShipperParquetConfigArrayOutputWithContext(ctx context.Context) OssShipperParquetConfigArrayOutput

type OssShipperParquetConfigArrayInput

type OssShipperParquetConfigArrayInput interface {
	pulumi.Input

	ToOssShipperParquetConfigArrayOutput() OssShipperParquetConfigArrayOutput
	ToOssShipperParquetConfigArrayOutputWithContext(context.Context) OssShipperParquetConfigArrayOutput
}

OssShipperParquetConfigArrayInput is an input type that accepts OssShipperParquetConfigArray and OssShipperParquetConfigArrayOutput values. You can construct a concrete instance of `OssShipperParquetConfigArrayInput` via:

OssShipperParquetConfigArray{ OssShipperParquetConfigArgs{...} }

type OssShipperParquetConfigArrayOutput

type OssShipperParquetConfigArrayOutput struct{ *pulumi.OutputState }

func (OssShipperParquetConfigArrayOutput) ElementType

func (OssShipperParquetConfigArrayOutput) Index

func (OssShipperParquetConfigArrayOutput) ToOssShipperParquetConfigArrayOutput

func (o OssShipperParquetConfigArrayOutput) ToOssShipperParquetConfigArrayOutput() OssShipperParquetConfigArrayOutput

func (OssShipperParquetConfigArrayOutput) ToOssShipperParquetConfigArrayOutputWithContext

func (o OssShipperParquetConfigArrayOutput) ToOssShipperParquetConfigArrayOutputWithContext(ctx context.Context) OssShipperParquetConfigArrayOutput

type OssShipperParquetConfigInput

type OssShipperParquetConfigInput interface {
	pulumi.Input

	ToOssShipperParquetConfigOutput() OssShipperParquetConfigOutput
	ToOssShipperParquetConfigOutputWithContext(context.Context) OssShipperParquetConfigOutput
}

OssShipperParquetConfigInput is an input type that accepts OssShipperParquetConfigArgs and OssShipperParquetConfigOutput values. You can construct a concrete instance of `OssShipperParquetConfigInput` via:

OssShipperParquetConfigArgs{...}

type OssShipperParquetConfigOutput

type OssShipperParquetConfigOutput struct{ *pulumi.OutputState }

func (OssShipperParquetConfigOutput) ElementType

func (OssShipperParquetConfigOutput) Name

func (OssShipperParquetConfigOutput) ToOssShipperParquetConfigOutput

func (o OssShipperParquetConfigOutput) ToOssShipperParquetConfigOutput() OssShipperParquetConfigOutput

func (OssShipperParquetConfigOutput) ToOssShipperParquetConfigOutputWithContext

func (o OssShipperParquetConfigOutput) ToOssShipperParquetConfigOutputWithContext(ctx context.Context) OssShipperParquetConfigOutput

func (OssShipperParquetConfigOutput) Type

type OssShipperState

type OssShipperState struct {
	// How often is it delivered every interval.
	BufferInterval pulumi.IntPtrInput
	// Automatically control the creation interval of delivery tasks and set the upper limit of an OSS object size (calculated in uncompressed), unit: `MB`.
	BufferSize pulumi.IntPtrInput
	// OSS data storage compression method, support: none, snappy. Among them, none means that the original data is not compressed, and snappy means that the data is compressed using the snappy algorithm, which can reduce the storage space usage of the `OSS Bucket`.
	CompressType            pulumi.StringPtrInput
	CsvConfigColumns        pulumi.StringArrayInput
	CsvConfigDelimiter      pulumi.StringPtrInput
	CsvConfigHeader         pulumi.BoolPtrInput
	CsvConfigLinefeed       pulumi.StringPtrInput
	CsvConfigNullidentifier pulumi.StringPtrInput
	CsvConfigQuote          pulumi.StringPtrInput
	// Storage format, only supports three types: `json`, `parquet`, `csv`.
	// **According to the different format, please select the following parameters**
	// - format = `json`
	//   `jsonEnableTag` - (Optional) Whether to deliver the label.
	// - format = `csv`
	//   `csvConfigDelimiter` - (Optional) Separator configuration in csv configuration format.
	//   `csvConfigColumns` - (Optional) Field configuration in csv configuration format.
	//   `csvConfigNullidentifier` - (Optional) Invalid field content.
	//   `csvConfigQuote` - (Optional) Escape character under csv configuration.
	//   `csvConfigHeader` - (Optional) Indicates whether to write the field name to the CSV file, the default value is `false`.
	//   `csvConfigLinefeed` - (Optional) lineFeed in csv configuration.
	// - format = `parquet`
	//   `parquetConfig` - (Optional) Configure to use parquet storage format.
	//   `name` - (Required) The name of the key.
	//   `type` - (Required) Type of configuration name.
	Format        pulumi.StringPtrInput
	JsonEnableTag pulumi.BoolPtrInput
	// The name of the log logstore.
	LogstoreName pulumi.StringPtrInput
	// The name of the oss bucket.
	OssBucket pulumi.StringPtrInput
	// The data synchronized from Log Service to OSS will be stored in this directory of Bucket.
	OssPrefix      pulumi.StringPtrInput
	ParquetConfigs OssShipperParquetConfigArrayInput
	// The OSS Bucket directory is dynamically generated according to the creation time of the shipper task, it cannot start with a forward slash `/`, the default value is `%Y/%m/%d/%H/%M`.
	PathFormat pulumi.StringPtrInput
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringPtrInput
	// Used for access control, the OSS Bucket owner creates the role mark, such as `acs:ram::13234:role/logrole`
	RoleArn pulumi.StringPtrInput
	// Delivery configuration name, it can only contain lowercase letters, numbers, dashes `-` and underscores `_`. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long.
	ShipperName pulumi.StringPtrInput
}

func (OssShipperState) ElementType

func (OssShipperState) ElementType() reflect.Type

type Project

type Project struct {
	pulumi.CustomResourceState

	// CreateTime.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Description of the log project.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// . Field 'name' has been deprecated from provider version 1.212.0. New field 'project_name' instead.
	//
	// Deprecated: Field 'name' has been deprecated since provider version 1.212.0. New field 'project_name' instead.
	Name pulumi.StringOutput `pulumi:"name"`
	// Log project policy, used to set a policy for a project.
	Policy pulumi.StringPtrOutput `pulumi:"policy"`
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringOutput `pulumi:"projectName"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
	// The status of the resource.
	Status pulumi.StringOutput `pulumi:"status"`
	// Tag.
	//
	// The following arguments will be discarded. Please use new fields as soon as possible:
	Tags pulumi.MapOutput `pulumi:"tags"`
}

Provides a SLS Project resource.

For information about SLS Project and how to use it, see [What is Project](https://www.alibabacloud.com/help/en/sls/developer-reference/api-createproject).

> **NOTE:** Available since v1.9.5.

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		_, err = log.NewProject(ctx, "example", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
			Tags: pulumi.Map{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("example"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Project With Policy Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		_, err = log.NewProject(ctx, "examplePolicy", &log.ProjectArgs{
			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
	})
}

``` ## Module Support

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

## Import

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

```sh $ pulumi import alicloud:log/project:Project example <id> ```

func GetProject

func GetProject(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProjectState, opts ...pulumi.ResourceOption) (*Project, error)

GetProject gets an existing Project resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProject

func NewProject(ctx *pulumi.Context,
	name string, args *ProjectArgs, opts ...pulumi.ResourceOption) (*Project, error)

NewProject registers a new resource with the given unique name, arguments, and options.

func (*Project) ElementType

func (*Project) ElementType() reflect.Type

func (*Project) ToProjectOutput

func (i *Project) ToProjectOutput() ProjectOutput

func (*Project) ToProjectOutputWithContext

func (i *Project) ToProjectOutputWithContext(ctx context.Context) ProjectOutput

type ProjectArgs

type ProjectArgs struct {
	// Description of the log project.
	Description pulumi.StringPtrInput
	// . Field 'name' has been deprecated from provider version 1.212.0. New field 'project_name' instead.
	//
	// Deprecated: Field 'name' has been deprecated since provider version 1.212.0. New field 'project_name' instead.
	Name pulumi.StringPtrInput
	// Log project policy, used to set a policy for a project.
	Policy pulumi.StringPtrInput
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// Tag.
	//
	// The following arguments will be discarded. Please use new fields as soon as possible:
	Tags pulumi.MapInput
}

The set of arguments for constructing a Project resource.

func (ProjectArgs) ElementType

func (ProjectArgs) ElementType() reflect.Type

type ProjectArray

type ProjectArray []ProjectInput

func (ProjectArray) ElementType

func (ProjectArray) ElementType() reflect.Type

func (ProjectArray) ToProjectArrayOutput

func (i ProjectArray) ToProjectArrayOutput() ProjectArrayOutput

func (ProjectArray) ToProjectArrayOutputWithContext

func (i ProjectArray) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput

type ProjectArrayInput

type ProjectArrayInput interface {
	pulumi.Input

	ToProjectArrayOutput() ProjectArrayOutput
	ToProjectArrayOutputWithContext(context.Context) ProjectArrayOutput
}

ProjectArrayInput is an input type that accepts ProjectArray and ProjectArrayOutput values. You can construct a concrete instance of `ProjectArrayInput` via:

ProjectArray{ ProjectArgs{...} }

type ProjectArrayOutput

type ProjectArrayOutput struct{ *pulumi.OutputState }

func (ProjectArrayOutput) ElementType

func (ProjectArrayOutput) ElementType() reflect.Type

func (ProjectArrayOutput) Index

func (ProjectArrayOutput) ToProjectArrayOutput

func (o ProjectArrayOutput) ToProjectArrayOutput() ProjectArrayOutput

func (ProjectArrayOutput) ToProjectArrayOutputWithContext

func (o ProjectArrayOutput) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput

type ProjectInput

type ProjectInput interface {
	pulumi.Input

	ToProjectOutput() ProjectOutput
	ToProjectOutputWithContext(ctx context.Context) ProjectOutput
}

type ProjectMap

type ProjectMap map[string]ProjectInput

func (ProjectMap) ElementType

func (ProjectMap) ElementType() reflect.Type

func (ProjectMap) ToProjectMapOutput

func (i ProjectMap) ToProjectMapOutput() ProjectMapOutput

func (ProjectMap) ToProjectMapOutputWithContext

func (i ProjectMap) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput

type ProjectMapInput

type ProjectMapInput interface {
	pulumi.Input

	ToProjectMapOutput() ProjectMapOutput
	ToProjectMapOutputWithContext(context.Context) ProjectMapOutput
}

ProjectMapInput is an input type that accepts ProjectMap and ProjectMapOutput values. You can construct a concrete instance of `ProjectMapInput` via:

ProjectMap{ "key": ProjectArgs{...} }

type ProjectMapOutput

type ProjectMapOutput struct{ *pulumi.OutputState }

func (ProjectMapOutput) ElementType

func (ProjectMapOutput) ElementType() reflect.Type

func (ProjectMapOutput) MapIndex

func (ProjectMapOutput) ToProjectMapOutput

func (o ProjectMapOutput) ToProjectMapOutput() ProjectMapOutput

func (ProjectMapOutput) ToProjectMapOutputWithContext

func (o ProjectMapOutput) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput

type ProjectOutput

type ProjectOutput struct{ *pulumi.OutputState }

func (ProjectOutput) CreateTime added in v3.45.0

func (o ProjectOutput) CreateTime() pulumi.StringOutput

CreateTime.

func (ProjectOutput) Description added in v3.27.0

func (o ProjectOutput) Description() pulumi.StringPtrOutput

Description of the log project.

func (ProjectOutput) ElementType

func (ProjectOutput) ElementType() reflect.Type

func (ProjectOutput) Name deprecated added in v3.27.0

. Field 'name' has been deprecated from provider version 1.212.0. New field 'project_name' instead.

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

func (ProjectOutput) Policy added in v3.30.0

Log project policy, used to set a policy for a project.

func (ProjectOutput) ProjectName added in v3.45.0

func (o ProjectOutput) ProjectName() pulumi.StringOutput

The name of the log project. It is the only in one Alicloud account.

func (ProjectOutput) ResourceGroupId added in v3.45.0

func (o ProjectOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group.

func (ProjectOutput) Status added in v3.45.0

func (o ProjectOutput) Status() pulumi.StringOutput

The status of the resource.

func (ProjectOutput) Tags added in v3.27.0

func (o ProjectOutput) Tags() pulumi.MapOutput

Tag.

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

func (ProjectOutput) ToProjectOutput

func (o ProjectOutput) ToProjectOutput() ProjectOutput

func (ProjectOutput) ToProjectOutputWithContext

func (o ProjectOutput) ToProjectOutputWithContext(ctx context.Context) ProjectOutput

type ProjectState

type ProjectState struct {
	// CreateTime.
	CreateTime pulumi.StringPtrInput
	// Description of the log project.
	Description pulumi.StringPtrInput
	// . Field 'name' has been deprecated from provider version 1.212.0. New field 'project_name' instead.
	//
	// Deprecated: Field 'name' has been deprecated since provider version 1.212.0. New field 'project_name' instead.
	Name pulumi.StringPtrInput
	// Log project policy, used to set a policy for a project.
	Policy pulumi.StringPtrInput
	// The name of the log project. It is the only in one Alicloud account.
	ProjectName pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// The status of the resource.
	Status pulumi.StringPtrInput
	// Tag.
	//
	// The following arguments will be discarded. Please use new fields as soon as possible:
	Tags pulumi.MapInput
}

func (ProjectState) ElementType

func (ProjectState) ElementType() reflect.Type

type Resource added in v3.20.0

type Resource struct {
	pulumi.CustomResourceState

	// The meta store's description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The ext info of meta store.
	ExtInfo pulumi.StringPtrOutput `pulumi:"extInfo"`
	// The meta store's name, can be used as table name.
	Name pulumi.StringOutput `pulumi:"name"`
	// The meta store's schema info, which is json string format, used to define table's fields.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// The meta store's type, userdefine e.g.
	Type pulumi.StringOutput `pulumi:"type"`
}

Log resource is a meta store service provided by log service, resource can be used to define meta store's table structure.

For information about SLS Resource and how to use it, see [Resource management](https://www.alibabacloud.com/help/en/doc-detail/207732.html)

> **NOTE:** Available since v1.162.0. log resource region should be set a main region: cn-heyuan.

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := log.NewResource(ctx, "example", &log.ResourceArgs{
			Description: pulumi.String("user tf resource desc"),
			ExtInfo:     pulumi.String("{}"),
			Schema: pulumi.String(`    {
      "schema": [
        {
          "column": "col1",
          "desc": "col1   desc",
          "ext_info": {
          },
          "required": true,
          "type": "string"
        },
        {
          "column": "col2",
          "desc": "col2   desc",
          "ext_info": "optional",
          "required": true,
          "type": "string"
        }
      ]
    }

`),

			Type: pulumi.String("userdefine"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh $ pulumi import alicloud:log/resource:Resource example <id> ```

func GetResource added in v3.20.0

func GetResource(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ResourceState, opts ...pulumi.ResourceOption) (*Resource, error)

GetResource gets an existing Resource resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewResource added in v3.20.0

func NewResource(ctx *pulumi.Context,
	name string, args *ResourceArgs, opts ...pulumi.ResourceOption) (*Resource, error)

NewResource registers a new resource with the given unique name, arguments, and options.

func (*Resource) ElementType added in v3.20.0

func (*Resource) ElementType() reflect.Type

func (*Resource) ToResourceOutput added in v3.20.0

func (i *Resource) ToResourceOutput() ResourceOutput

func (*Resource) ToResourceOutputWithContext added in v3.20.0

func (i *Resource) ToResourceOutputWithContext(ctx context.Context) ResourceOutput

type ResourceArgs added in v3.20.0

type ResourceArgs struct {
	// The meta store's description.
	Description pulumi.StringPtrInput
	// The ext info of meta store.
	ExtInfo pulumi.StringPtrInput
	// The meta store's name, can be used as table name.
	Name pulumi.StringPtrInput
	// The meta store's schema info, which is json string format, used to define table's fields.
	Schema pulumi.StringInput
	// The meta store's type, userdefine e.g.
	Type pulumi.StringInput
}

The set of arguments for constructing a Resource resource.

func (ResourceArgs) ElementType added in v3.20.0

func (ResourceArgs) ElementType() reflect.Type

type ResourceArray added in v3.20.0

type ResourceArray []ResourceInput

func (ResourceArray) ElementType added in v3.20.0

func (ResourceArray) ElementType() reflect.Type

func (ResourceArray) ToResourceArrayOutput added in v3.20.0

func (i ResourceArray) ToResourceArrayOutput() ResourceArrayOutput

func (ResourceArray) ToResourceArrayOutputWithContext added in v3.20.0

func (i ResourceArray) ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput

type ResourceArrayInput added in v3.20.0

type ResourceArrayInput interface {
	pulumi.Input

	ToResourceArrayOutput() ResourceArrayOutput
	ToResourceArrayOutputWithContext(context.Context) ResourceArrayOutput
}

ResourceArrayInput is an input type that accepts ResourceArray and ResourceArrayOutput values. You can construct a concrete instance of `ResourceArrayInput` via:

ResourceArray{ ResourceArgs{...} }

type ResourceArrayOutput added in v3.20.0

type ResourceArrayOutput struct{ *pulumi.OutputState }

func (ResourceArrayOutput) ElementType added in v3.20.0

func (ResourceArrayOutput) ElementType() reflect.Type

func (ResourceArrayOutput) Index added in v3.20.0

func (ResourceArrayOutput) ToResourceArrayOutput added in v3.20.0

func (o ResourceArrayOutput) ToResourceArrayOutput() ResourceArrayOutput

func (ResourceArrayOutput) ToResourceArrayOutputWithContext added in v3.20.0

func (o ResourceArrayOutput) ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput

type ResourceInput added in v3.20.0

type ResourceInput interface {
	pulumi.Input

	ToResourceOutput() ResourceOutput
	ToResourceOutputWithContext(ctx context.Context) ResourceOutput
}

type ResourceMap added in v3.20.0

type ResourceMap map[string]ResourceInput

func (ResourceMap) ElementType added in v3.20.0

func (ResourceMap) ElementType() reflect.Type

func (ResourceMap) ToResourceMapOutput added in v3.20.0

func (i ResourceMap) ToResourceMapOutput() ResourceMapOutput

func (ResourceMap) ToResourceMapOutputWithContext added in v3.20.0

func (i ResourceMap) ToResourceMapOutputWithContext(ctx context.Context) ResourceMapOutput

type ResourceMapInput added in v3.20.0

type ResourceMapInput interface {
	pulumi.Input

	ToResourceMapOutput() ResourceMapOutput
	ToResourceMapOutputWithContext(context.Context) ResourceMapOutput
}

ResourceMapInput is an input type that accepts ResourceMap and ResourceMapOutput values. You can construct a concrete instance of `ResourceMapInput` via:

ResourceMap{ "key": ResourceArgs{...} }

type ResourceMapOutput added in v3.20.0

type ResourceMapOutput struct{ *pulumi.OutputState }

func (ResourceMapOutput) ElementType added in v3.20.0

func (ResourceMapOutput) ElementType() reflect.Type

func (ResourceMapOutput) MapIndex added in v3.20.0

func (ResourceMapOutput) ToResourceMapOutput added in v3.20.0

func (o ResourceMapOutput) ToResourceMapOutput() ResourceMapOutput

func (ResourceMapOutput) ToResourceMapOutputWithContext added in v3.20.0

func (o ResourceMapOutput) ToResourceMapOutputWithContext(ctx context.Context) ResourceMapOutput

type ResourceOutput added in v3.20.0

type ResourceOutput struct{ *pulumi.OutputState }

func (ResourceOutput) Description added in v3.27.0

func (o ResourceOutput) Description() pulumi.StringPtrOutput

The meta store's description.

func (ResourceOutput) ElementType added in v3.20.0

func (ResourceOutput) ElementType() reflect.Type

func (ResourceOutput) ExtInfo added in v3.27.0

The ext info of meta store.

func (ResourceOutput) Name added in v3.27.0

The meta store's name, can be used as table name.

func (ResourceOutput) Schema added in v3.27.0

func (o ResourceOutput) Schema() pulumi.StringOutput

The meta store's schema info, which is json string format, used to define table's fields.

func (ResourceOutput) ToResourceOutput added in v3.20.0

func (o ResourceOutput) ToResourceOutput() ResourceOutput

func (ResourceOutput) ToResourceOutputWithContext added in v3.20.0

func (o ResourceOutput) ToResourceOutputWithContext(ctx context.Context) ResourceOutput

func (ResourceOutput) Type added in v3.27.0

The meta store's type, userdefine e.g.

type ResourceRecord added in v3.20.0

type ResourceRecord struct {
	pulumi.CustomResourceState

	// The record's id, should be unique.
	RecordId pulumi.StringOutput `pulumi:"recordId"`
	// The name defined in log_resource, log service have some internal resource, like sls.common.user, sls.common.user_group.
	ResourceName pulumi.StringOutput `pulumi:"resourceName"`
	// The record's tag, can be used for search.
	Tag pulumi.StringOutput `pulumi:"tag"`
	// The json value of record.
	Value pulumi.StringOutput `pulumi:"value"`
}

Log resource is a meta store service provided by log service, resource can be used to define meta store's table structure, record can be used for table's row data.

For information about SLS Resource and how to use it, see [Resource management](https://www.alibabacloud.com/help/en/doc-detail/207732.html)

> **NOTE:** Available since v1.162.0. log resource region should be set a main region: cn-heyuan.

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResource, err := log.NewResource(ctx, "exampleResource", &log.ResourceArgs{
			Type:        pulumi.String("userdefine"),
			Description: pulumi.String("user tf resource desc"),
			ExtInfo:     pulumi.String("{}"),
			Schema: pulumi.String(`    {
      "schema": [
        {
          "column": "col1",
          "desc": "col1   desc",
          "ext_info": {
          },
          "required": true,
          "type": "string"
        },
        {
          "column": "col2",
          "desc": "col2   desc",
          "ext_info": "optional",
          "required": true,
          "type": "string"
        }
      ]
    }

`),

		})
		if err != nil {
			return err
		}
		_, err = log.NewResourceRecord(ctx, "exampleResourceRecord", &log.ResourceRecordArgs{
			ResourceName: exampleResource.ID(),
			RecordId:     pulumi.String("user_tf_resource_1"),
			Tag:          pulumi.String("resource tag"),
			Value:        pulumi.String("    {\n      \"col1\": \"this is col1 value\",\n      \"col2\": \"col2   value\"\n    }\n"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log resource record can be imported using the id, e.g.

```sh $ pulumi import alicloud:log/resourceRecord:ResourceRecord example <resource_name>:<record_id> ```

func GetResourceRecord added in v3.20.0

func GetResourceRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ResourceRecordState, opts ...pulumi.ResourceOption) (*ResourceRecord, error)

GetResourceRecord gets an existing ResourceRecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewResourceRecord added in v3.20.0

func NewResourceRecord(ctx *pulumi.Context,
	name string, args *ResourceRecordArgs, opts ...pulumi.ResourceOption) (*ResourceRecord, error)

NewResourceRecord registers a new resource with the given unique name, arguments, and options.

func (*ResourceRecord) ElementType added in v3.20.0

func (*ResourceRecord) ElementType() reflect.Type

func (*ResourceRecord) ToResourceRecordOutput added in v3.20.0

func (i *ResourceRecord) ToResourceRecordOutput() ResourceRecordOutput

func (*ResourceRecord) ToResourceRecordOutputWithContext added in v3.20.0

func (i *ResourceRecord) ToResourceRecordOutputWithContext(ctx context.Context) ResourceRecordOutput

type ResourceRecordArgs added in v3.20.0

type ResourceRecordArgs struct {
	// The record's id, should be unique.
	RecordId pulumi.StringInput
	// The name defined in log_resource, log service have some internal resource, like sls.common.user, sls.common.user_group.
	ResourceName pulumi.StringInput
	// The record's tag, can be used for search.
	Tag pulumi.StringInput
	// The json value of record.
	Value pulumi.StringInput
}

The set of arguments for constructing a ResourceRecord resource.

func (ResourceRecordArgs) ElementType added in v3.20.0

func (ResourceRecordArgs) ElementType() reflect.Type

type ResourceRecordArray added in v3.20.0

type ResourceRecordArray []ResourceRecordInput

func (ResourceRecordArray) ElementType added in v3.20.0

func (ResourceRecordArray) ElementType() reflect.Type

func (ResourceRecordArray) ToResourceRecordArrayOutput added in v3.20.0

func (i ResourceRecordArray) ToResourceRecordArrayOutput() ResourceRecordArrayOutput

func (ResourceRecordArray) ToResourceRecordArrayOutputWithContext added in v3.20.0

func (i ResourceRecordArray) ToResourceRecordArrayOutputWithContext(ctx context.Context) ResourceRecordArrayOutput

type ResourceRecordArrayInput added in v3.20.0

type ResourceRecordArrayInput interface {
	pulumi.Input

	ToResourceRecordArrayOutput() ResourceRecordArrayOutput
	ToResourceRecordArrayOutputWithContext(context.Context) ResourceRecordArrayOutput
}

ResourceRecordArrayInput is an input type that accepts ResourceRecordArray and ResourceRecordArrayOutput values. You can construct a concrete instance of `ResourceRecordArrayInput` via:

ResourceRecordArray{ ResourceRecordArgs{...} }

type ResourceRecordArrayOutput added in v3.20.0

type ResourceRecordArrayOutput struct{ *pulumi.OutputState }

func (ResourceRecordArrayOutput) ElementType added in v3.20.0

func (ResourceRecordArrayOutput) ElementType() reflect.Type

func (ResourceRecordArrayOutput) Index added in v3.20.0

func (ResourceRecordArrayOutput) ToResourceRecordArrayOutput added in v3.20.0

func (o ResourceRecordArrayOutput) ToResourceRecordArrayOutput() ResourceRecordArrayOutput

func (ResourceRecordArrayOutput) ToResourceRecordArrayOutputWithContext added in v3.20.0

func (o ResourceRecordArrayOutput) ToResourceRecordArrayOutputWithContext(ctx context.Context) ResourceRecordArrayOutput

type ResourceRecordInput added in v3.20.0

type ResourceRecordInput interface {
	pulumi.Input

	ToResourceRecordOutput() ResourceRecordOutput
	ToResourceRecordOutputWithContext(ctx context.Context) ResourceRecordOutput
}

type ResourceRecordMap added in v3.20.0

type ResourceRecordMap map[string]ResourceRecordInput

func (ResourceRecordMap) ElementType added in v3.20.0

func (ResourceRecordMap) ElementType() reflect.Type

func (ResourceRecordMap) ToResourceRecordMapOutput added in v3.20.0

func (i ResourceRecordMap) ToResourceRecordMapOutput() ResourceRecordMapOutput

func (ResourceRecordMap) ToResourceRecordMapOutputWithContext added in v3.20.0

func (i ResourceRecordMap) ToResourceRecordMapOutputWithContext(ctx context.Context) ResourceRecordMapOutput

type ResourceRecordMapInput added in v3.20.0

type ResourceRecordMapInput interface {
	pulumi.Input

	ToResourceRecordMapOutput() ResourceRecordMapOutput
	ToResourceRecordMapOutputWithContext(context.Context) ResourceRecordMapOutput
}

ResourceRecordMapInput is an input type that accepts ResourceRecordMap and ResourceRecordMapOutput values. You can construct a concrete instance of `ResourceRecordMapInput` via:

ResourceRecordMap{ "key": ResourceRecordArgs{...} }

type ResourceRecordMapOutput added in v3.20.0

type ResourceRecordMapOutput struct{ *pulumi.OutputState }

func (ResourceRecordMapOutput) ElementType added in v3.20.0

func (ResourceRecordMapOutput) ElementType() reflect.Type

func (ResourceRecordMapOutput) MapIndex added in v3.20.0

func (ResourceRecordMapOutput) ToResourceRecordMapOutput added in v3.20.0

func (o ResourceRecordMapOutput) ToResourceRecordMapOutput() ResourceRecordMapOutput

func (ResourceRecordMapOutput) ToResourceRecordMapOutputWithContext added in v3.20.0

func (o ResourceRecordMapOutput) ToResourceRecordMapOutputWithContext(ctx context.Context) ResourceRecordMapOutput

type ResourceRecordOutput added in v3.20.0

type ResourceRecordOutput struct{ *pulumi.OutputState }

func (ResourceRecordOutput) ElementType added in v3.20.0

func (ResourceRecordOutput) ElementType() reflect.Type

func (ResourceRecordOutput) RecordId added in v3.27.0

The record's id, should be unique.

func (ResourceRecordOutput) ResourceName added in v3.27.0

func (o ResourceRecordOutput) ResourceName() pulumi.StringOutput

The name defined in log_resource, log service have some internal resource, like sls.common.user, sls.common.user_group.

func (ResourceRecordOutput) Tag added in v3.27.0

The record's tag, can be used for search.

func (ResourceRecordOutput) ToResourceRecordOutput added in v3.20.0

func (o ResourceRecordOutput) ToResourceRecordOutput() ResourceRecordOutput

func (ResourceRecordOutput) ToResourceRecordOutputWithContext added in v3.20.0

func (o ResourceRecordOutput) ToResourceRecordOutputWithContext(ctx context.Context) ResourceRecordOutput

func (ResourceRecordOutput) Value added in v3.27.0

The json value of record.

type ResourceRecordState added in v3.20.0

type ResourceRecordState struct {
	// The record's id, should be unique.
	RecordId pulumi.StringPtrInput
	// The name defined in log_resource, log service have some internal resource, like sls.common.user, sls.common.user_group.
	ResourceName pulumi.StringPtrInput
	// The record's tag, can be used for search.
	Tag pulumi.StringPtrInput
	// The json value of record.
	Value pulumi.StringPtrInput
}

func (ResourceRecordState) ElementType added in v3.20.0

func (ResourceRecordState) ElementType() reflect.Type

type ResourceState added in v3.20.0

type ResourceState struct {
	// The meta store's description.
	Description pulumi.StringPtrInput
	// The ext info of meta store.
	ExtInfo pulumi.StringPtrInput
	// The meta store's name, can be used as table name.
	Name pulumi.StringPtrInput
	// The meta store's schema info, which is json string format, used to define table's fields.
	Schema pulumi.StringPtrInput
	// The meta store's type, userdefine e.g.
	Type pulumi.StringPtrInput
}

func (ResourceState) ElementType added in v3.20.0

func (ResourceState) ElementType() reflect.Type

type Store

type Store struct {
	pulumi.CustomResourceState

	// Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to `true`.
	AppendMeta pulumi.BoolPtrOutput `pulumi:"appendMeta"`
	// Determines whether to automatically split a shard. Default to `false`.
	AutoSplit pulumi.BoolPtrOutput `pulumi:"autoSplit"`
	// Log library creation time. Unix timestamp format that represents the number of seconds from 1970-1-1 00:00:00 UTC calculation.
	CreateTime pulumi.IntOutput `pulumi:"createTime"`
	// Whether open webtracking. webtracking network tracing, support the collection of HTML log, H5, Ios and android platforms.
	EnableWebTracking pulumi.BoolPtrOutput `pulumi:"enableWebTracking"`
	// Encrypted storage of data, providing data static protection capability, encryptConf can be updated since 1.188.0 (only enable change is supported when updating logstore). See `encryptConf` below.
	EncryptConf StoreEncryptConfOutput `pulumi:"encryptConf"`
	// The ttl of hot storage. Default to 30, at least 30, hot storage ttl must be less than ttl.
	HotTtl pulumi.IntPtrOutput `pulumi:"hotTtl"`
	// The log store, which is unique in the same project. You need to specify one of the attributes: `logstoreName`, `name`.
	LogstoreName pulumi.StringOutput `pulumi:"logstoreName"`
	// The maximum number of shards for automatic split, which is in the range of 1 to 256. You must specify this parameter when autoSplit is true.
	MaxSplitShardCount pulumi.IntPtrOutput `pulumi:"maxSplitShardCount"`
	// Metering mode. The default metering mode of ChargeByFunction, ChargeByDataIngest traffic mode.
	MeteringMode pulumi.StringOutput `pulumi:"meteringMode"`
	// The mode of storage. Default to `standard`, must be `standard` or `query`, `lite`.
	Mode pulumi.StringOutput `pulumi:"mode"`
	// . Field 'name' has been deprecated from provider version 1.215.0. New field 'logstore_name' instead.
	//
	// Deprecated: Field 'name' has been deprecated since provider version 1.215.0. New field 'logstore_name' instead.
	Name pulumi.StringOutput `pulumi:"name"`
	// . Field 'project' has been deprecated from provider version 1.215.0. New field 'project_name' instead.
	//
	// Deprecated: Field 'project' has been deprecated since provider version 1.215.0. New field 'project_name' instead.
	Project pulumi.StringOutput `pulumi:"project"`
	// The project name to the log store belongs. You need to specify one of the attributes: `projectName`, `project`.
	ProjectName pulumi.StringOutput `pulumi:"projectName"`
	// The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is 3650.
	RetentionPeriod pulumi.IntPtrOutput `pulumi:"retentionPeriod"`
	// The number of shards in this log store. Default to 2. You can modify it by "Split" or "Merge" operations. [Refer to details](https://www.alibabacloud.com/help/zh/sls/product-overview/shard).
	ShardCount pulumi.IntPtrOutput `pulumi:"shardCount"`
	// The shard attribute.
	Shards StoreShardArrayOutput `pulumi:"shards"`
	// Determines whether store type is metric. `Metrics` means metric store, empty means log store.
	//
	// The following arguments will be discarded. Please use new fields as soon as possible:
	TelemetryType pulumi.StringPtrOutput `pulumi:"telemetryType"`
}

Provides a SLS Log Store resource.

For information about SLS Log Store and how to use it, see [What is Log Store](https://www.alibabacloud.com/help/doc-detail/48874.htm).

> **NOTE:** Available since v1.0.0.

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		_, err = log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Encrypt Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms"
"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"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		region := "cn-hangzhou"
		if param := cfg.Get("region"); param != "" {
			region = param
		}
		exampleAccount, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleKey, err := kms.NewKey(ctx, "exampleKey", &kms.KeyArgs{
			Description:         pulumi.String("terraform-example"),
			PendingWindowInDays: pulumi.Int(7),
			Status:              pulumi.String("Enabled"),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		_, err = log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			ShardCount:         pulumi.Int(1),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			EncryptConf: &log.StoreEncryptConfArgs{
				Enable:      pulumi.Bool(true),
				EncryptType: pulumi.String("default"),
				UserCmkInfo: &log.StoreEncryptConfUserCmkInfoArgs{
					CmkKeyId: exampleKey.ID(),
					Arn:      pulumi.String(fmt.Sprintf("acs:ram::%v:role/aliyunlogdefaultrole", exampleAccount.Id)),
					RegionId: pulumi.String(region),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ## Module Support

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

## Import

SLS Log Store can be imported using the id, e.g.

```sh $ pulumi import alicloud:log/store:Store example <project_name>:<logstore_name> ```

func GetStore

func GetStore(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StoreState, opts ...pulumi.ResourceOption) (*Store, error)

GetStore gets an existing Store resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStore

func NewStore(ctx *pulumi.Context,
	name string, args *StoreArgs, opts ...pulumi.ResourceOption) (*Store, error)

NewStore registers a new resource with the given unique name, arguments, and options.

func (*Store) ElementType

func (*Store) ElementType() reflect.Type

func (*Store) ToStoreOutput

func (i *Store) ToStoreOutput() StoreOutput

func (*Store) ToStoreOutputWithContext

func (i *Store) ToStoreOutputWithContext(ctx context.Context) StoreOutput

type StoreArgs

type StoreArgs struct {
	// Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to `true`.
	AppendMeta pulumi.BoolPtrInput
	// Determines whether to automatically split a shard. Default to `false`.
	AutoSplit pulumi.BoolPtrInput
	// Whether open webtracking. webtracking network tracing, support the collection of HTML log, H5, Ios and android platforms.
	EnableWebTracking pulumi.BoolPtrInput
	// Encrypted storage of data, providing data static protection capability, encryptConf can be updated since 1.188.0 (only enable change is supported when updating logstore). See `encryptConf` below.
	EncryptConf StoreEncryptConfPtrInput
	// The ttl of hot storage. Default to 30, at least 30, hot storage ttl must be less than ttl.
	HotTtl pulumi.IntPtrInput
	// The log store, which is unique in the same project. You need to specify one of the attributes: `logstoreName`, `name`.
	LogstoreName pulumi.StringPtrInput
	// The maximum number of shards for automatic split, which is in the range of 1 to 256. You must specify this parameter when autoSplit is true.
	MaxSplitShardCount pulumi.IntPtrInput
	// Metering mode. The default metering mode of ChargeByFunction, ChargeByDataIngest traffic mode.
	MeteringMode pulumi.StringPtrInput
	// The mode of storage. Default to `standard`, must be `standard` or `query`, `lite`.
	Mode pulumi.StringPtrInput
	// . Field 'name' has been deprecated from provider version 1.215.0. New field 'logstore_name' instead.
	//
	// Deprecated: Field 'name' has been deprecated since provider version 1.215.0. New field 'logstore_name' instead.
	Name pulumi.StringPtrInput
	// . Field 'project' has been deprecated from provider version 1.215.0. New field 'project_name' instead.
	//
	// Deprecated: Field 'project' has been deprecated since provider version 1.215.0. New field 'project_name' instead.
	Project pulumi.StringPtrInput
	// The project name to the log store belongs. You need to specify one of the attributes: `projectName`, `project`.
	ProjectName pulumi.StringPtrInput
	// The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is 3650.
	RetentionPeriod pulumi.IntPtrInput
	// The number of shards in this log store. Default to 2. You can modify it by "Split" or "Merge" operations. [Refer to details](https://www.alibabacloud.com/help/zh/sls/product-overview/shard).
	ShardCount pulumi.IntPtrInput
	// Determines whether store type is metric. `Metrics` means metric store, empty means log store.
	//
	// The following arguments will be discarded. Please use new fields as soon as possible:
	TelemetryType pulumi.StringPtrInput
}

The set of arguments for constructing a Store resource.

func (StoreArgs) ElementType

func (StoreArgs) ElementType() reflect.Type

type StoreArray

type StoreArray []StoreInput

func (StoreArray) ElementType

func (StoreArray) ElementType() reflect.Type

func (StoreArray) ToStoreArrayOutput

func (i StoreArray) ToStoreArrayOutput() StoreArrayOutput

func (StoreArray) ToStoreArrayOutputWithContext

func (i StoreArray) ToStoreArrayOutputWithContext(ctx context.Context) StoreArrayOutput

type StoreArrayInput

type StoreArrayInput interface {
	pulumi.Input

	ToStoreArrayOutput() StoreArrayOutput
	ToStoreArrayOutputWithContext(context.Context) StoreArrayOutput
}

StoreArrayInput is an input type that accepts StoreArray and StoreArrayOutput values. You can construct a concrete instance of `StoreArrayInput` via:

StoreArray{ StoreArgs{...} }

type StoreArrayOutput

type StoreArrayOutput struct{ *pulumi.OutputState }

func (StoreArrayOutput) ElementType

func (StoreArrayOutput) ElementType() reflect.Type

func (StoreArrayOutput) Index

func (StoreArrayOutput) ToStoreArrayOutput

func (o StoreArrayOutput) ToStoreArrayOutput() StoreArrayOutput

func (StoreArrayOutput) ToStoreArrayOutputWithContext

func (o StoreArrayOutput) ToStoreArrayOutputWithContext(ctx context.Context) StoreArrayOutput

type StoreEncryptConf added in v3.3.0

type StoreEncryptConf struct {
	// Enable encryption. Default false.
	Enable *bool `pulumi:"enable"`
	// Supported encryption type, only supports `default`(AES), `m4`.
	EncryptType *string `pulumi:"encryptType"`
	// User bring your own key (BYOK) encryption Refer to details, the format is as follows. See userCmkInfo below. `{ "cmkKeyId": "yourCmkKeyId", "arn": "yourRoleArn", "regionId": "youCmkRegionId" }`. See `userCmkInfo` below.
	UserCmkInfo *StoreEncryptConfUserCmkInfo `pulumi:"userCmkInfo"`
}

type StoreEncryptConfArgs added in v3.3.0

type StoreEncryptConfArgs struct {
	// Enable encryption. Default false.
	Enable pulumi.BoolPtrInput `pulumi:"enable"`
	// Supported encryption type, only supports `default`(AES), `m4`.
	EncryptType pulumi.StringPtrInput `pulumi:"encryptType"`
	// User bring your own key (BYOK) encryption Refer to details, the format is as follows. See userCmkInfo below. `{ "cmkKeyId": "yourCmkKeyId", "arn": "yourRoleArn", "regionId": "youCmkRegionId" }`. See `userCmkInfo` below.
	UserCmkInfo StoreEncryptConfUserCmkInfoPtrInput `pulumi:"userCmkInfo"`
}

func (StoreEncryptConfArgs) ElementType added in v3.3.0

func (StoreEncryptConfArgs) ElementType() reflect.Type

func (StoreEncryptConfArgs) ToStoreEncryptConfOutput added in v3.3.0

func (i StoreEncryptConfArgs) ToStoreEncryptConfOutput() StoreEncryptConfOutput

func (StoreEncryptConfArgs) ToStoreEncryptConfOutputWithContext added in v3.3.0

func (i StoreEncryptConfArgs) ToStoreEncryptConfOutputWithContext(ctx context.Context) StoreEncryptConfOutput

func (StoreEncryptConfArgs) ToStoreEncryptConfPtrOutput added in v3.3.0

func (i StoreEncryptConfArgs) ToStoreEncryptConfPtrOutput() StoreEncryptConfPtrOutput

func (StoreEncryptConfArgs) ToStoreEncryptConfPtrOutputWithContext added in v3.3.0

func (i StoreEncryptConfArgs) ToStoreEncryptConfPtrOutputWithContext(ctx context.Context) StoreEncryptConfPtrOutput

type StoreEncryptConfInput added in v3.3.0

type StoreEncryptConfInput interface {
	pulumi.Input

	ToStoreEncryptConfOutput() StoreEncryptConfOutput
	ToStoreEncryptConfOutputWithContext(context.Context) StoreEncryptConfOutput
}

StoreEncryptConfInput is an input type that accepts StoreEncryptConfArgs and StoreEncryptConfOutput values. You can construct a concrete instance of `StoreEncryptConfInput` via:

StoreEncryptConfArgs{...}

type StoreEncryptConfOutput added in v3.3.0

type StoreEncryptConfOutput struct{ *pulumi.OutputState }

func (StoreEncryptConfOutput) ElementType added in v3.3.0

func (StoreEncryptConfOutput) ElementType() reflect.Type

func (StoreEncryptConfOutput) Enable added in v3.3.0

Enable encryption. Default false.

func (StoreEncryptConfOutput) EncryptType added in v3.3.0

Supported encryption type, only supports `default`(AES), `m4`.

func (StoreEncryptConfOutput) ToStoreEncryptConfOutput added in v3.3.0

func (o StoreEncryptConfOutput) ToStoreEncryptConfOutput() StoreEncryptConfOutput

func (StoreEncryptConfOutput) ToStoreEncryptConfOutputWithContext added in v3.3.0

func (o StoreEncryptConfOutput) ToStoreEncryptConfOutputWithContext(ctx context.Context) StoreEncryptConfOutput

func (StoreEncryptConfOutput) ToStoreEncryptConfPtrOutput added in v3.3.0

func (o StoreEncryptConfOutput) ToStoreEncryptConfPtrOutput() StoreEncryptConfPtrOutput

func (StoreEncryptConfOutput) ToStoreEncryptConfPtrOutputWithContext added in v3.3.0

func (o StoreEncryptConfOutput) ToStoreEncryptConfPtrOutputWithContext(ctx context.Context) StoreEncryptConfPtrOutput

func (StoreEncryptConfOutput) UserCmkInfo added in v3.3.0

User bring your own key (BYOK) encryption Refer to details, the format is as follows. See userCmkInfo below. `{ "cmkKeyId": "yourCmkKeyId", "arn": "yourRoleArn", "regionId": "youCmkRegionId" }`. See `userCmkInfo` below.

type StoreEncryptConfPtrInput added in v3.3.0

type StoreEncryptConfPtrInput interface {
	pulumi.Input

	ToStoreEncryptConfPtrOutput() StoreEncryptConfPtrOutput
	ToStoreEncryptConfPtrOutputWithContext(context.Context) StoreEncryptConfPtrOutput
}

StoreEncryptConfPtrInput is an input type that accepts StoreEncryptConfArgs, StoreEncryptConfPtr and StoreEncryptConfPtrOutput values. You can construct a concrete instance of `StoreEncryptConfPtrInput` via:

        StoreEncryptConfArgs{...}

or:

        nil

func StoreEncryptConfPtr added in v3.3.0

func StoreEncryptConfPtr(v *StoreEncryptConfArgs) StoreEncryptConfPtrInput

type StoreEncryptConfPtrOutput added in v3.3.0

type StoreEncryptConfPtrOutput struct{ *pulumi.OutputState }

func (StoreEncryptConfPtrOutput) Elem added in v3.3.0

func (StoreEncryptConfPtrOutput) ElementType added in v3.3.0

func (StoreEncryptConfPtrOutput) ElementType() reflect.Type

func (StoreEncryptConfPtrOutput) Enable added in v3.3.0

Enable encryption. Default false.

func (StoreEncryptConfPtrOutput) EncryptType added in v3.3.0

Supported encryption type, only supports `default`(AES), `m4`.

func (StoreEncryptConfPtrOutput) ToStoreEncryptConfPtrOutput added in v3.3.0

func (o StoreEncryptConfPtrOutput) ToStoreEncryptConfPtrOutput() StoreEncryptConfPtrOutput

func (StoreEncryptConfPtrOutput) ToStoreEncryptConfPtrOutputWithContext added in v3.3.0

func (o StoreEncryptConfPtrOutput) ToStoreEncryptConfPtrOutputWithContext(ctx context.Context) StoreEncryptConfPtrOutput

func (StoreEncryptConfPtrOutput) UserCmkInfo added in v3.3.0

User bring your own key (BYOK) encryption Refer to details, the format is as follows. See userCmkInfo below. `{ "cmkKeyId": "yourCmkKeyId", "arn": "yourRoleArn", "regionId": "youCmkRegionId" }`. See `userCmkInfo` below.

type StoreEncryptConfUserCmkInfo added in v3.3.0

type StoreEncryptConfUserCmkInfo struct {
	// Role arn.
	Arn *string `pulumi:"arn"`
	// User master key id.
	CmkKeyId *string `pulumi:"cmkKeyId"`
	// Region id where the user master key id is located.
	RegionId *string `pulumi:"regionId"`
}

type StoreEncryptConfUserCmkInfoArgs added in v3.3.0

type StoreEncryptConfUserCmkInfoArgs struct {
	// Role arn.
	Arn pulumi.StringPtrInput `pulumi:"arn"`
	// User master key id.
	CmkKeyId pulumi.StringPtrInput `pulumi:"cmkKeyId"`
	// Region id where the user master key id is located.
	RegionId pulumi.StringPtrInput `pulumi:"regionId"`
}

func (StoreEncryptConfUserCmkInfoArgs) ElementType added in v3.3.0

func (StoreEncryptConfUserCmkInfoArgs) ToStoreEncryptConfUserCmkInfoOutput added in v3.3.0

func (i StoreEncryptConfUserCmkInfoArgs) ToStoreEncryptConfUserCmkInfoOutput() StoreEncryptConfUserCmkInfoOutput

func (StoreEncryptConfUserCmkInfoArgs) ToStoreEncryptConfUserCmkInfoOutputWithContext added in v3.3.0

func (i StoreEncryptConfUserCmkInfoArgs) ToStoreEncryptConfUserCmkInfoOutputWithContext(ctx context.Context) StoreEncryptConfUserCmkInfoOutput

func (StoreEncryptConfUserCmkInfoArgs) ToStoreEncryptConfUserCmkInfoPtrOutput added in v3.3.0

func (i StoreEncryptConfUserCmkInfoArgs) ToStoreEncryptConfUserCmkInfoPtrOutput() StoreEncryptConfUserCmkInfoPtrOutput

func (StoreEncryptConfUserCmkInfoArgs) ToStoreEncryptConfUserCmkInfoPtrOutputWithContext added in v3.3.0

func (i StoreEncryptConfUserCmkInfoArgs) ToStoreEncryptConfUserCmkInfoPtrOutputWithContext(ctx context.Context) StoreEncryptConfUserCmkInfoPtrOutput

type StoreEncryptConfUserCmkInfoInput added in v3.3.0

type StoreEncryptConfUserCmkInfoInput interface {
	pulumi.Input

	ToStoreEncryptConfUserCmkInfoOutput() StoreEncryptConfUserCmkInfoOutput
	ToStoreEncryptConfUserCmkInfoOutputWithContext(context.Context) StoreEncryptConfUserCmkInfoOutput
}

StoreEncryptConfUserCmkInfoInput is an input type that accepts StoreEncryptConfUserCmkInfoArgs and StoreEncryptConfUserCmkInfoOutput values. You can construct a concrete instance of `StoreEncryptConfUserCmkInfoInput` via:

StoreEncryptConfUserCmkInfoArgs{...}

type StoreEncryptConfUserCmkInfoOutput added in v3.3.0

type StoreEncryptConfUserCmkInfoOutput struct{ *pulumi.OutputState }

func (StoreEncryptConfUserCmkInfoOutput) Arn added in v3.3.0

Role arn.

func (StoreEncryptConfUserCmkInfoOutput) CmkKeyId added in v3.3.0

User master key id.

func (StoreEncryptConfUserCmkInfoOutput) ElementType added in v3.3.0

func (StoreEncryptConfUserCmkInfoOutput) RegionId added in v3.3.0

Region id where the user master key id is located.

func (StoreEncryptConfUserCmkInfoOutput) ToStoreEncryptConfUserCmkInfoOutput added in v3.3.0

func (o StoreEncryptConfUserCmkInfoOutput) ToStoreEncryptConfUserCmkInfoOutput() StoreEncryptConfUserCmkInfoOutput

func (StoreEncryptConfUserCmkInfoOutput) ToStoreEncryptConfUserCmkInfoOutputWithContext added in v3.3.0

func (o StoreEncryptConfUserCmkInfoOutput) ToStoreEncryptConfUserCmkInfoOutputWithContext(ctx context.Context) StoreEncryptConfUserCmkInfoOutput

func (StoreEncryptConfUserCmkInfoOutput) ToStoreEncryptConfUserCmkInfoPtrOutput added in v3.3.0

func (o StoreEncryptConfUserCmkInfoOutput) ToStoreEncryptConfUserCmkInfoPtrOutput() StoreEncryptConfUserCmkInfoPtrOutput

func (StoreEncryptConfUserCmkInfoOutput) ToStoreEncryptConfUserCmkInfoPtrOutputWithContext added in v3.3.0

func (o StoreEncryptConfUserCmkInfoOutput) ToStoreEncryptConfUserCmkInfoPtrOutputWithContext(ctx context.Context) StoreEncryptConfUserCmkInfoPtrOutput

type StoreEncryptConfUserCmkInfoPtrInput added in v3.3.0

type StoreEncryptConfUserCmkInfoPtrInput interface {
	pulumi.Input

	ToStoreEncryptConfUserCmkInfoPtrOutput() StoreEncryptConfUserCmkInfoPtrOutput
	ToStoreEncryptConfUserCmkInfoPtrOutputWithContext(context.Context) StoreEncryptConfUserCmkInfoPtrOutput
}

StoreEncryptConfUserCmkInfoPtrInput is an input type that accepts StoreEncryptConfUserCmkInfoArgs, StoreEncryptConfUserCmkInfoPtr and StoreEncryptConfUserCmkInfoPtrOutput values. You can construct a concrete instance of `StoreEncryptConfUserCmkInfoPtrInput` via:

        StoreEncryptConfUserCmkInfoArgs{...}

or:

        nil

func StoreEncryptConfUserCmkInfoPtr added in v3.3.0

type StoreEncryptConfUserCmkInfoPtrOutput added in v3.3.0

type StoreEncryptConfUserCmkInfoPtrOutput struct{ *pulumi.OutputState }

func (StoreEncryptConfUserCmkInfoPtrOutput) Arn added in v3.3.0

Role arn.

func (StoreEncryptConfUserCmkInfoPtrOutput) CmkKeyId added in v3.3.0

User master key id.

func (StoreEncryptConfUserCmkInfoPtrOutput) Elem added in v3.3.0

func (StoreEncryptConfUserCmkInfoPtrOutput) ElementType added in v3.3.0

func (StoreEncryptConfUserCmkInfoPtrOutput) RegionId added in v3.3.0

Region id where the user master key id is located.

func (StoreEncryptConfUserCmkInfoPtrOutput) ToStoreEncryptConfUserCmkInfoPtrOutput added in v3.3.0

func (o StoreEncryptConfUserCmkInfoPtrOutput) ToStoreEncryptConfUserCmkInfoPtrOutput() StoreEncryptConfUserCmkInfoPtrOutput

func (StoreEncryptConfUserCmkInfoPtrOutput) ToStoreEncryptConfUserCmkInfoPtrOutputWithContext added in v3.3.0

func (o StoreEncryptConfUserCmkInfoPtrOutput) ToStoreEncryptConfUserCmkInfoPtrOutputWithContext(ctx context.Context) StoreEncryptConfUserCmkInfoPtrOutput

type StoreIndex

type StoreIndex struct {
	pulumi.CustomResourceState

	// List configurations of field search index. Valid item as follows:
	FieldSearches StoreIndexFieldSearchArrayOutput `pulumi:"fieldSearches"`
	// The configuration of full text index. Valid item as follows:
	FullText StoreIndexFullTextPtrOutput `pulumi:"fullText"`
	// The log store name to the query index belongs.
	Logstore pulumi.StringOutput `pulumi:"logstore"`
	// The project name to the log store belongs.
	Project pulumi.StringOutput `pulumi:"project"`
}

Log Service provides the LogSearch/Analytics function to query and analyze large amounts of logs in real time. You can use this function by enabling the index and field statistics. [Refer to details](https://www.alibabacloud.com/help/doc-detail/43772.htm)

## Example Usage

Basic Usage

```go package main

import (

"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 {
		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
			Max: pulumi.Int(99999),
			Min: pulumi.Int(10000),
		})
		if err != nil {
			return err
		}
		exampleProject, err := log.NewProject(ctx, "exampleProject", &log.ProjectArgs{
			Description: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "exampleStore", &log.StoreArgs{
			Project:            exampleProject.Name,
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = log.NewStoreIndex(ctx, "exampleStoreIndex", &log.StoreIndexArgs{
			Project:  exampleProject.Name,
			Logstore: exampleStore.Name,
			FullText: &log.StoreIndexFullTextArgs{
				CaseSensitive: pulumi.Bool(true),
				Token:         pulumi.String(" #$^*\n	"),
			},
			FieldSearches: log.StoreIndexFieldSearchArray{
				&log.StoreIndexFieldSearchArgs{
					Name:            pulumi.String("terraform-example"),
					EnableAnalytics: pulumi.Bool(true),
					Type:            pulumi.String("text"),
					Token:           pulumi.String(" #$^*\n	"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ## Module Support

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

## Import

Log store index can be imported using the id, e.g.

```sh $ pulumi import alicloud:log/storeIndex:StoreIndex example tf-log:tf-log-store ```

func GetStoreIndex

func GetStoreIndex(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StoreIndexState, opts ...pulumi.ResourceOption) (*StoreIndex, error)

GetStoreIndex gets an existing StoreIndex resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStoreIndex

func NewStoreIndex(ctx *pulumi.Context,
	name string, args *StoreIndexArgs, opts ...pulumi.ResourceOption) (*StoreIndex, error)

NewStoreIndex registers a new resource with the given unique name, arguments, and options.

func (*StoreIndex) ElementType

func (*StoreIndex) ElementType() reflect.Type

func (*StoreIndex) ToStoreIndexOutput

func (i *StoreIndex) ToStoreIndexOutput() StoreIndexOutput

func (*StoreIndex) ToStoreIndexOutputWithContext

func (i *StoreIndex) ToStoreIndexOutputWithContext(ctx context.Context) StoreIndexOutput

type StoreIndexArgs

type StoreIndexArgs struct {
	// List configurations of field search index. Valid item as follows:
	FieldSearches StoreIndexFieldSearchArrayInput
	// The configuration of full text index. Valid item as follows:
	FullText StoreIndexFullTextPtrInput
	// The log store name to the query index belongs.
	Logstore pulumi.StringInput
	// The project name to the log store belongs.
	Project pulumi.StringInput
}

The set of arguments for constructing a StoreIndex resource.

func (StoreIndexArgs) ElementType

func (StoreIndexArgs) ElementType() reflect.Type

type StoreIndexArray

type StoreIndexArray []StoreIndexInput

func (StoreIndexArray) ElementType

func (StoreIndexArray) ElementType() reflect.Type

func (StoreIndexArray) ToStoreIndexArrayOutput

func (i StoreIndexArray) ToStoreIndexArrayOutput() StoreIndexArrayOutput

func (StoreIndexArray) ToStoreIndexArrayOutputWithContext

func (i StoreIndexArray) ToStoreIndexArrayOutputWithContext(ctx context.Context) StoreIndexArrayOutput

type StoreIndexArrayInput

type StoreIndexArrayInput interface {
	pulumi.Input

	ToStoreIndexArrayOutput() StoreIndexArrayOutput
	ToStoreIndexArrayOutputWithContext(context.Context) StoreIndexArrayOutput
}

StoreIndexArrayInput is an input type that accepts StoreIndexArray and StoreIndexArrayOutput values. You can construct a concrete instance of `StoreIndexArrayInput` via:

StoreIndexArray{ StoreIndexArgs{...} }

type StoreIndexArrayOutput

type StoreIndexArrayOutput struct{ *pulumi.OutputState }

func (StoreIndexArrayOutput) ElementType

func (StoreIndexArrayOutput) ElementType() reflect.Type

func (StoreIndexArrayOutput) Index

func (StoreIndexArrayOutput) ToStoreIndexArrayOutput

func (o StoreIndexArrayOutput) ToStoreIndexArrayOutput() StoreIndexArrayOutput

func (StoreIndexArrayOutput) ToStoreIndexArrayOutputWithContext

func (o StoreIndexArrayOutput) ToStoreIndexArrayOutputWithContext(ctx context.Context) StoreIndexArrayOutput

type StoreIndexFieldSearch

type StoreIndexFieldSearch struct {
	// The alias of one field.
	Alias *string `pulumi:"alias"`
	// Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
	CaseSensitive *bool `pulumi:"caseSensitive"`
	// Whether to enable field analytics. Default to true.
	EnableAnalytics *bool `pulumi:"enableAnalytics"`
	// Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
	IncludeChinese *bool `pulumi:"includeChinese"`
	// Use nested index when type is json
	JsonKeys []StoreIndexFieldSearchJsonKey `pulumi:"jsonKeys"`
	// When using the jsonKeys field, this field is required.
	Name string `pulumi:"name"`
	// The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
	Token *string `pulumi:"token"`
	// The type of one field. Valid values: ["long", "text", "double"]. Default to "long"
	Type *string `pulumi:"type"`
}

type StoreIndexFieldSearchArgs

type StoreIndexFieldSearchArgs struct {
	// The alias of one field.
	Alias pulumi.StringPtrInput `pulumi:"alias"`
	// Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
	CaseSensitive pulumi.BoolPtrInput `pulumi:"caseSensitive"`
	// Whether to enable field analytics. Default to true.
	EnableAnalytics pulumi.BoolPtrInput `pulumi:"enableAnalytics"`
	// Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
	IncludeChinese pulumi.BoolPtrInput `pulumi:"includeChinese"`
	// Use nested index when type is json
	JsonKeys StoreIndexFieldSearchJsonKeyArrayInput `pulumi:"jsonKeys"`
	// When using the jsonKeys field, this field is required.
	Name pulumi.StringInput `pulumi:"name"`
	// The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
	Token pulumi.StringPtrInput `pulumi:"token"`
	// The type of one field. Valid values: ["long", "text", "double"]. Default to "long"
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (StoreIndexFieldSearchArgs) ElementType

func (StoreIndexFieldSearchArgs) ElementType() reflect.Type

func (StoreIndexFieldSearchArgs) ToStoreIndexFieldSearchOutput

func (i StoreIndexFieldSearchArgs) ToStoreIndexFieldSearchOutput() StoreIndexFieldSearchOutput

func (StoreIndexFieldSearchArgs) ToStoreIndexFieldSearchOutputWithContext

func (i StoreIndexFieldSearchArgs) ToStoreIndexFieldSearchOutputWithContext(ctx context.Context) StoreIndexFieldSearchOutput

type StoreIndexFieldSearchArray

type StoreIndexFieldSearchArray []StoreIndexFieldSearchInput

func (StoreIndexFieldSearchArray) ElementType

func (StoreIndexFieldSearchArray) ElementType() reflect.Type

func (StoreIndexFieldSearchArray) ToStoreIndexFieldSearchArrayOutput

func (i StoreIndexFieldSearchArray) ToStoreIndexFieldSearchArrayOutput() StoreIndexFieldSearchArrayOutput

func (StoreIndexFieldSearchArray) ToStoreIndexFieldSearchArrayOutputWithContext

func (i StoreIndexFieldSearchArray) ToStoreIndexFieldSearchArrayOutputWithContext(ctx context.Context) StoreIndexFieldSearchArrayOutput

type StoreIndexFieldSearchArrayInput

type StoreIndexFieldSearchArrayInput interface {
	pulumi.Input

	ToStoreIndexFieldSearchArrayOutput() StoreIndexFieldSearchArrayOutput
	ToStoreIndexFieldSearchArrayOutputWithContext(context.Context) StoreIndexFieldSearchArrayOutput
}

StoreIndexFieldSearchArrayInput is an input type that accepts StoreIndexFieldSearchArray and StoreIndexFieldSearchArrayOutput values. You can construct a concrete instance of `StoreIndexFieldSearchArrayInput` via:

StoreIndexFieldSearchArray{ StoreIndexFieldSearchArgs{...} }

type StoreIndexFieldSearchArrayOutput

type StoreIndexFieldSearchArrayOutput struct{ *pulumi.OutputState }

func (StoreIndexFieldSearchArrayOutput) ElementType

func (StoreIndexFieldSearchArrayOutput) Index

func (StoreIndexFieldSearchArrayOutput) ToStoreIndexFieldSearchArrayOutput

func (o StoreIndexFieldSearchArrayOutput) ToStoreIndexFieldSearchArrayOutput() StoreIndexFieldSearchArrayOutput

func (StoreIndexFieldSearchArrayOutput) ToStoreIndexFieldSearchArrayOutputWithContext

func (o StoreIndexFieldSearchArrayOutput) ToStoreIndexFieldSearchArrayOutputWithContext(ctx context.Context) StoreIndexFieldSearchArrayOutput

type StoreIndexFieldSearchInput

type StoreIndexFieldSearchInput interface {
	pulumi.Input

	ToStoreIndexFieldSearchOutput() StoreIndexFieldSearchOutput
	ToStoreIndexFieldSearchOutputWithContext(context.Context) StoreIndexFieldSearchOutput
}

StoreIndexFieldSearchInput is an input type that accepts StoreIndexFieldSearchArgs and StoreIndexFieldSearchOutput values. You can construct a concrete instance of `StoreIndexFieldSearchInput` via:

StoreIndexFieldSearchArgs{...}

type StoreIndexFieldSearchJsonKey

type StoreIndexFieldSearchJsonKey struct {
	// The alias of one field.
	Alias *string `pulumi:"alias"`
	// Whether to enable statistics. default to true.
	//
	// > **Note:** At least one of the "fullText" and "fieldSearch" should be specified.
	DocValue *bool `pulumi:"docValue"`
	// When using the jsonKeys field, this field is required.
	Name string `pulumi:"name"`
	// The type of one field. Valid values: ["long", "text", "double"]. Default to "long"
	Type *string `pulumi:"type"`
}

type StoreIndexFieldSearchJsonKeyArgs

type StoreIndexFieldSearchJsonKeyArgs struct {
	// The alias of one field.
	Alias pulumi.StringPtrInput `pulumi:"alias"`
	// Whether to enable statistics. default to true.
	//
	// > **Note:** At least one of the "fullText" and "fieldSearch" should be specified.
	DocValue pulumi.BoolPtrInput `pulumi:"docValue"`
	// When using the jsonKeys field, this field is required.
	Name pulumi.StringInput `pulumi:"name"`
	// The type of one field. Valid values: ["long", "text", "double"]. Default to "long"
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (StoreIndexFieldSearchJsonKeyArgs) ElementType

func (StoreIndexFieldSearchJsonKeyArgs) ToStoreIndexFieldSearchJsonKeyOutput

func (i StoreIndexFieldSearchJsonKeyArgs) ToStoreIndexFieldSearchJsonKeyOutput() StoreIndexFieldSearchJsonKeyOutput

func (StoreIndexFieldSearchJsonKeyArgs) ToStoreIndexFieldSearchJsonKeyOutputWithContext

func (i StoreIndexFieldSearchJsonKeyArgs) ToStoreIndexFieldSearchJsonKeyOutputWithContext(ctx context.Context) StoreIndexFieldSearchJsonKeyOutput

type StoreIndexFieldSearchJsonKeyArray

type StoreIndexFieldSearchJsonKeyArray []StoreIndexFieldSearchJsonKeyInput

func (StoreIndexFieldSearchJsonKeyArray) ElementType

func (StoreIndexFieldSearchJsonKeyArray) ToStoreIndexFieldSearchJsonKeyArrayOutput

func (i StoreIndexFieldSearchJsonKeyArray) ToStoreIndexFieldSearchJsonKeyArrayOutput() StoreIndexFieldSearchJsonKeyArrayOutput

func (StoreIndexFieldSearchJsonKeyArray) ToStoreIndexFieldSearchJsonKeyArrayOutputWithContext

func (i StoreIndexFieldSearchJsonKeyArray) ToStoreIndexFieldSearchJsonKeyArrayOutputWithContext(ctx context.Context) StoreIndexFieldSearchJsonKeyArrayOutput

type StoreIndexFieldSearchJsonKeyArrayInput

type StoreIndexFieldSearchJsonKeyArrayInput interface {
	pulumi.Input

	ToStoreIndexFieldSearchJsonKeyArrayOutput() StoreIndexFieldSearchJsonKeyArrayOutput
	ToStoreIndexFieldSearchJsonKeyArrayOutputWithContext(context.Context) StoreIndexFieldSearchJsonKeyArrayOutput
}

StoreIndexFieldSearchJsonKeyArrayInput is an input type that accepts StoreIndexFieldSearchJsonKeyArray and StoreIndexFieldSearchJsonKeyArrayOutput values. You can construct a concrete instance of `StoreIndexFieldSearchJsonKeyArrayInput` via:

StoreIndexFieldSearchJsonKeyArray{ StoreIndexFieldSearchJsonKeyArgs{...} }

type StoreIndexFieldSearchJsonKeyArrayOutput

type StoreIndexFieldSearchJsonKeyArrayOutput struct{ *pulumi.OutputState }

func (StoreIndexFieldSearchJsonKeyArrayOutput) ElementType

func (StoreIndexFieldSearchJsonKeyArrayOutput) Index

func (StoreIndexFieldSearchJsonKeyArrayOutput) ToStoreIndexFieldSearchJsonKeyArrayOutput

func (o StoreIndexFieldSearchJsonKeyArrayOutput) ToStoreIndexFieldSearchJsonKeyArrayOutput() StoreIndexFieldSearchJsonKeyArrayOutput

func (StoreIndexFieldSearchJsonKeyArrayOutput) ToStoreIndexFieldSearchJsonKeyArrayOutputWithContext

func (o StoreIndexFieldSearchJsonKeyArrayOutput) ToStoreIndexFieldSearchJsonKeyArrayOutputWithContext(ctx context.Context) StoreIndexFieldSearchJsonKeyArrayOutput

type StoreIndexFieldSearchJsonKeyInput

type StoreIndexFieldSearchJsonKeyInput interface {
	pulumi.Input

	ToStoreIndexFieldSearchJsonKeyOutput() StoreIndexFieldSearchJsonKeyOutput
	ToStoreIndexFieldSearchJsonKeyOutputWithContext(context.Context) StoreIndexFieldSearchJsonKeyOutput
}

StoreIndexFieldSearchJsonKeyInput is an input type that accepts StoreIndexFieldSearchJsonKeyArgs and StoreIndexFieldSearchJsonKeyOutput values. You can construct a concrete instance of `StoreIndexFieldSearchJsonKeyInput` via:

StoreIndexFieldSearchJsonKeyArgs{...}

type StoreIndexFieldSearchJsonKeyOutput

type StoreIndexFieldSearchJsonKeyOutput struct{ *pulumi.OutputState }

func (StoreIndexFieldSearchJsonKeyOutput) Alias

The alias of one field.

func (StoreIndexFieldSearchJsonKeyOutput) DocValue

Whether to enable statistics. default to true.

> **Note:** At least one of the "fullText" and "fieldSearch" should be specified.

func (StoreIndexFieldSearchJsonKeyOutput) ElementType

func (StoreIndexFieldSearchJsonKeyOutput) Name

When using the jsonKeys field, this field is required.

func (StoreIndexFieldSearchJsonKeyOutput) ToStoreIndexFieldSearchJsonKeyOutput

func (o StoreIndexFieldSearchJsonKeyOutput) ToStoreIndexFieldSearchJsonKeyOutput() StoreIndexFieldSearchJsonKeyOutput

func (StoreIndexFieldSearchJsonKeyOutput) ToStoreIndexFieldSearchJsonKeyOutputWithContext

func (o StoreIndexFieldSearchJsonKeyOutput) ToStoreIndexFieldSearchJsonKeyOutputWithContext(ctx context.Context) StoreIndexFieldSearchJsonKeyOutput

func (StoreIndexFieldSearchJsonKeyOutput) Type

The type of one field. Valid values: ["long", "text", "double"]. Default to "long"

type StoreIndexFieldSearchOutput

type StoreIndexFieldSearchOutput struct{ *pulumi.OutputState }

func (StoreIndexFieldSearchOutput) Alias

The alias of one field.

func (StoreIndexFieldSearchOutput) CaseSensitive

Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".

func (StoreIndexFieldSearchOutput) ElementType

func (StoreIndexFieldSearchOutput) EnableAnalytics

func (o StoreIndexFieldSearchOutput) EnableAnalytics() pulumi.BoolPtrOutput

Whether to enable field analytics. Default to true.

func (StoreIndexFieldSearchOutput) IncludeChinese

Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".

func (StoreIndexFieldSearchOutput) JsonKeys

Use nested index when type is json

func (StoreIndexFieldSearchOutput) Name

When using the jsonKeys field, this field is required.

func (StoreIndexFieldSearchOutput) ToStoreIndexFieldSearchOutput

func (o StoreIndexFieldSearchOutput) ToStoreIndexFieldSearchOutput() StoreIndexFieldSearchOutput

func (StoreIndexFieldSearchOutput) ToStoreIndexFieldSearchOutputWithContext

func (o StoreIndexFieldSearchOutput) ToStoreIndexFieldSearchOutputWithContext(ctx context.Context) StoreIndexFieldSearchOutput

func (StoreIndexFieldSearchOutput) Token

The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".

func (StoreIndexFieldSearchOutput) Type

The type of one field. Valid values: ["long", "text", "double"]. Default to "long"

type StoreIndexFullText

type StoreIndexFullText struct {
	// Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
	CaseSensitive *bool `pulumi:"caseSensitive"`
	// Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
	IncludeChinese *bool `pulumi:"includeChinese"`
	// The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
	Token *string `pulumi:"token"`
}

type StoreIndexFullTextArgs

type StoreIndexFullTextArgs struct {
	// Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
	CaseSensitive pulumi.BoolPtrInput `pulumi:"caseSensitive"`
	// Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
	IncludeChinese pulumi.BoolPtrInput `pulumi:"includeChinese"`
	// The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
	Token pulumi.StringPtrInput `pulumi:"token"`
}

func (StoreIndexFullTextArgs) ElementType

func (StoreIndexFullTextArgs) ElementType() reflect.Type

func (StoreIndexFullTextArgs) ToStoreIndexFullTextOutput

func (i StoreIndexFullTextArgs) ToStoreIndexFullTextOutput() StoreIndexFullTextOutput

func (StoreIndexFullTextArgs) ToStoreIndexFullTextOutputWithContext

func (i StoreIndexFullTextArgs) ToStoreIndexFullTextOutputWithContext(ctx context.Context) StoreIndexFullTextOutput

func (StoreIndexFullTextArgs) ToStoreIndexFullTextPtrOutput

func (i StoreIndexFullTextArgs) ToStoreIndexFullTextPtrOutput() StoreIndexFullTextPtrOutput

func (StoreIndexFullTextArgs) ToStoreIndexFullTextPtrOutputWithContext

func (i StoreIndexFullTextArgs) ToStoreIndexFullTextPtrOutputWithContext(ctx context.Context) StoreIndexFullTextPtrOutput

type StoreIndexFullTextInput

type StoreIndexFullTextInput interface {
	pulumi.Input

	ToStoreIndexFullTextOutput() StoreIndexFullTextOutput
	ToStoreIndexFullTextOutputWithContext(context.Context) StoreIndexFullTextOutput
}

StoreIndexFullTextInput is an input type that accepts StoreIndexFullTextArgs and StoreIndexFullTextOutput values. You can construct a concrete instance of `StoreIndexFullTextInput` via:

StoreIndexFullTextArgs{...}

type StoreIndexFullTextOutput

type StoreIndexFullTextOutput struct{ *pulumi.OutputState }

func (StoreIndexFullTextOutput) CaseSensitive

func (o StoreIndexFullTextOutput) CaseSensitive() pulumi.BoolPtrOutput

Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".

func (StoreIndexFullTextOutput) ElementType

func (StoreIndexFullTextOutput) ElementType() reflect.Type

func (StoreIndexFullTextOutput) IncludeChinese

func (o StoreIndexFullTextOutput) IncludeChinese() pulumi.BoolPtrOutput

Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".

func (StoreIndexFullTextOutput) ToStoreIndexFullTextOutput

func (o StoreIndexFullTextOutput) ToStoreIndexFullTextOutput() StoreIndexFullTextOutput

func (StoreIndexFullTextOutput) ToStoreIndexFullTextOutputWithContext

func (o StoreIndexFullTextOutput) ToStoreIndexFullTextOutputWithContext(ctx context.Context) StoreIndexFullTextOutput

func (StoreIndexFullTextOutput) ToStoreIndexFullTextPtrOutput

func (o StoreIndexFullTextOutput) ToStoreIndexFullTextPtrOutput() StoreIndexFullTextPtrOutput

func (StoreIndexFullTextOutput) ToStoreIndexFullTextPtrOutputWithContext

func (o StoreIndexFullTextOutput) ToStoreIndexFullTextPtrOutputWithContext(ctx context.Context) StoreIndexFullTextPtrOutput

func (StoreIndexFullTextOutput) Token

The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".

type StoreIndexFullTextPtrInput

type StoreIndexFullTextPtrInput interface {
	pulumi.Input

	ToStoreIndexFullTextPtrOutput() StoreIndexFullTextPtrOutput
	ToStoreIndexFullTextPtrOutputWithContext(context.Context) StoreIndexFullTextPtrOutput
}

StoreIndexFullTextPtrInput is an input type that accepts StoreIndexFullTextArgs, StoreIndexFullTextPtr and StoreIndexFullTextPtrOutput values. You can construct a concrete instance of `StoreIndexFullTextPtrInput` via:

        StoreIndexFullTextArgs{...}

or:

        nil

type StoreIndexFullTextPtrOutput

type StoreIndexFullTextPtrOutput struct{ *pulumi.OutputState }

func (StoreIndexFullTextPtrOutput) CaseSensitive

Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".

func (StoreIndexFullTextPtrOutput) Elem

func (StoreIndexFullTextPtrOutput) ElementType

func (StoreIndexFullTextPtrOutput) IncludeChinese

Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".

func (StoreIndexFullTextPtrOutput) ToStoreIndexFullTextPtrOutput

func (o StoreIndexFullTextPtrOutput) ToStoreIndexFullTextPtrOutput() StoreIndexFullTextPtrOutput

func (StoreIndexFullTextPtrOutput) ToStoreIndexFullTextPtrOutputWithContext

func (o StoreIndexFullTextPtrOutput) ToStoreIndexFullTextPtrOutputWithContext(ctx context.Context) StoreIndexFullTextPtrOutput

func (StoreIndexFullTextPtrOutput) Token

The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".

type StoreIndexInput

type StoreIndexInput interface {
	pulumi.Input

	ToStoreIndexOutput() StoreIndexOutput
	ToStoreIndexOutputWithContext(ctx context.Context) StoreIndexOutput
}

type StoreIndexMap

type StoreIndexMap map[string]StoreIndexInput

func (StoreIndexMap) ElementType

func (StoreIndexMap) ElementType() reflect.Type

func (StoreIndexMap) ToStoreIndexMapOutput

func (i StoreIndexMap) ToStoreIndexMapOutput() StoreIndexMapOutput

func (StoreIndexMap) ToStoreIndexMapOutputWithContext

func (i StoreIndexMap) ToStoreIndexMapOutputWithContext(ctx context.Context) StoreIndexMapOutput

type StoreIndexMapInput

type StoreIndexMapInput interface {
	pulumi.Input

	ToStoreIndexMapOutput() StoreIndexMapOutput
	ToStoreIndexMapOutputWithContext(context.Context) StoreIndexMapOutput
}

StoreIndexMapInput is an input type that accepts StoreIndexMap and StoreIndexMapOutput values. You can construct a concrete instance of `StoreIndexMapInput` via:

StoreIndexMap{ "key": StoreIndexArgs{...} }

type StoreIndexMapOutput

type StoreIndexMapOutput struct{ *pulumi.OutputState }

func (StoreIndexMapOutput) ElementType

func (StoreIndexMapOutput) ElementType() reflect.Type

func (StoreIndexMapOutput) MapIndex

func (StoreIndexMapOutput) ToStoreIndexMapOutput

func (o StoreIndexMapOutput) ToStoreIndexMapOutput() StoreIndexMapOutput

func (StoreIndexMapOutput) ToStoreIndexMapOutputWithContext

func (o StoreIndexMapOutput) ToStoreIndexMapOutputWithContext(ctx context.Context) StoreIndexMapOutput

type StoreIndexOutput

type StoreIndexOutput struct{ *pulumi.OutputState }

func (StoreIndexOutput) ElementType

func (StoreIndexOutput) ElementType() reflect.Type

func (StoreIndexOutput) FieldSearches added in v3.27.0

List configurations of field search index. Valid item as follows:

func (StoreIndexOutput) FullText added in v3.27.0

The configuration of full text index. Valid item as follows:

func (StoreIndexOutput) Logstore added in v3.27.0

func (o StoreIndexOutput) Logstore() pulumi.StringOutput

The log store name to the query index belongs.

func (StoreIndexOutput) Project added in v3.27.0

func (o StoreIndexOutput) Project() pulumi.StringOutput

The project name to the log store belongs.

func (StoreIndexOutput) ToStoreIndexOutput

func (o StoreIndexOutput) ToStoreIndexOutput() StoreIndexOutput

func (StoreIndexOutput) ToStoreIndexOutputWithContext

func (o StoreIndexOutput) ToStoreIndexOutputWithContext(ctx context.Context) StoreIndexOutput

type StoreIndexState

type StoreIndexState struct {
	// List configurations of field search index. Valid item as follows:
	FieldSearches StoreIndexFieldSearchArrayInput
	// The configuration of full text index. Valid item as follows:
	FullText StoreIndexFullTextPtrInput
	// The log store name to the query index belongs.
	Logstore pulumi.StringPtrInput
	// The project name to the log store belongs.
	Project pulumi.StringPtrInput
}

func (StoreIndexState) ElementType

func (StoreIndexState) ElementType() reflect.Type

type StoreInput

type StoreInput interface {
	pulumi.Input

	ToStoreOutput() StoreOutput
	ToStoreOutputWithContext(ctx context.Context) StoreOutput
}

type StoreMap

type StoreMap map[string]StoreInput

func (StoreMap) ElementType

func (StoreMap) ElementType() reflect.Type

func (StoreMap) ToStoreMapOutput

func (i StoreMap) ToStoreMapOutput() StoreMapOutput

func (StoreMap) ToStoreMapOutputWithContext

func (i StoreMap) ToStoreMapOutputWithContext(ctx context.Context) StoreMapOutput

type StoreMapInput

type StoreMapInput interface {
	pulumi.Input

	ToStoreMapOutput() StoreMapOutput
	ToStoreMapOutputWithContext(context.Context) StoreMapOutput
}

StoreMapInput is an input type that accepts StoreMap and StoreMapOutput values. You can construct a concrete instance of `StoreMapInput` via:

StoreMap{ "key": StoreArgs{...} }

type StoreMapOutput

type StoreMapOutput struct{ *pulumi.OutputState }

func (StoreMapOutput) ElementType

func (StoreMapOutput) ElementType() reflect.Type

func (StoreMapOutput) MapIndex

func (StoreMapOutput) ToStoreMapOutput

func (o StoreMapOutput) ToStoreMapOutput() StoreMapOutput

func (StoreMapOutput) ToStoreMapOutputWithContext

func (o StoreMapOutput) ToStoreMapOutputWithContext(ctx context.Context) StoreMapOutput

type StoreOutput

type StoreOutput struct{ *pulumi.OutputState }

func (StoreOutput) AppendMeta added in v3.27.0

func (o StoreOutput) AppendMeta() pulumi.BoolPtrOutput

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to `true`.

func (StoreOutput) AutoSplit added in v3.27.0

func (o StoreOutput) AutoSplit() pulumi.BoolPtrOutput

Determines whether to automatically split a shard. Default to `false`.

func (StoreOutput) CreateTime added in v3.46.1

func (o StoreOutput) CreateTime() pulumi.IntOutput

Log library creation time. Unix timestamp format that represents the number of seconds from 1970-1-1 00:00:00 UTC calculation.

func (StoreOutput) ElementType

func (StoreOutput) ElementType() reflect.Type

func (StoreOutput) EnableWebTracking added in v3.27.0

func (o StoreOutput) EnableWebTracking() pulumi.BoolPtrOutput

Whether open webtracking. webtracking network tracing, support the collection of HTML log, H5, Ios and android platforms.

func (StoreOutput) EncryptConf added in v3.27.0

func (o StoreOutput) EncryptConf() StoreEncryptConfOutput

Encrypted storage of data, providing data static protection capability, encryptConf can be updated since 1.188.0 (only enable change is supported when updating logstore). See `encryptConf` below.

func (StoreOutput) HotTtl added in v3.35.0

func (o StoreOutput) HotTtl() pulumi.IntPtrOutput

The ttl of hot storage. Default to 30, at least 30, hot storage ttl must be less than ttl.

func (StoreOutput) LogstoreName added in v3.46.1

func (o StoreOutput) LogstoreName() pulumi.StringOutput

The log store, which is unique in the same project. You need to specify one of the attributes: `logstoreName`, `name`.

func (StoreOutput) MaxSplitShardCount added in v3.27.0

func (o StoreOutput) MaxSplitShardCount() pulumi.IntPtrOutput

The maximum number of shards for automatic split, which is in the range of 1 to 256. You must specify this parameter when autoSplit is true.

func (StoreOutput) MeteringMode added in v3.47.0

func (o StoreOutput) MeteringMode() pulumi.StringOutput

Metering mode. The default metering mode of ChargeByFunction, ChargeByDataIngest traffic mode.

func (StoreOutput) Mode added in v3.35.0

func (o StoreOutput) Mode() pulumi.StringOutput

The mode of storage. Default to `standard`, must be `standard` or `query`, `lite`.

func (StoreOutput) Name deprecated added in v3.27.0

func (o StoreOutput) Name() pulumi.StringOutput

. Field 'name' has been deprecated from provider version 1.215.0. New field 'logstore_name' instead.

Deprecated: Field 'name' has been deprecated since provider version 1.215.0. New field 'logstore_name' instead.

func (StoreOutput) Project deprecated added in v3.27.0

func (o StoreOutput) Project() pulumi.StringOutput

. Field 'project' has been deprecated from provider version 1.215.0. New field 'project_name' instead.

Deprecated: Field 'project' has been deprecated since provider version 1.215.0. New field 'project_name' instead.

func (StoreOutput) ProjectName added in v3.46.1

func (o StoreOutput) ProjectName() pulumi.StringOutput

The project name to the log store belongs. You need to specify one of the attributes: `projectName`, `project`.

func (StoreOutput) RetentionPeriod added in v3.27.0

func (o StoreOutput) RetentionPeriod() pulumi.IntPtrOutput

The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is 3650.

func (StoreOutput) ShardCount added in v3.27.0

func (o StoreOutput) ShardCount() pulumi.IntPtrOutput

The number of shards in this log store. Default to 2. You can modify it by "Split" or "Merge" operations. [Refer to details](https://www.alibabacloud.com/help/zh/sls/product-overview/shard).

func (StoreOutput) Shards added in v3.27.0

The shard attribute.

func (StoreOutput) TelemetryType added in v3.27.0

func (o StoreOutput) TelemetryType() pulumi.StringPtrOutput

Determines whether store type is metric. `Metrics` means metric store, empty means log store.

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

func (StoreOutput) ToStoreOutput

func (o StoreOutput) ToStoreOutput() StoreOutput

func (StoreOutput) ToStoreOutputWithContext

func (o StoreOutput) ToStoreOutputWithContext(ctx context.Context) StoreOutput

type StoreShard

type StoreShard struct {
	// The begin value of the shard range(MD5), included in the shard range.
	BeginKey *string `pulumi:"beginKey"`
	// The end value of the shard range(MD5), not included in shard range.
	EndKey *string `pulumi:"endKey"`
	// The ID of the shard.
	Id *int `pulumi:"id"`
	// Shard status, only two status of `readwrite` and `readonly`.
	Status *string `pulumi:"status"`
}

type StoreShardArgs

type StoreShardArgs struct {
	// The begin value of the shard range(MD5), included in the shard range.
	BeginKey pulumi.StringPtrInput `pulumi:"beginKey"`
	// The end value of the shard range(MD5), not included in shard range.
	EndKey pulumi.StringPtrInput `pulumi:"endKey"`
	// The ID of the shard.
	Id pulumi.IntPtrInput `pulumi:"id"`
	// Shard status, only two status of `readwrite` and `readonly`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

func (StoreShardArgs) ElementType

func (StoreShardArgs) ElementType() reflect.Type

func (StoreShardArgs) ToStoreShardOutput

func (i StoreShardArgs) ToStoreShardOutput() StoreShardOutput

func (StoreShardArgs) ToStoreShardOutputWithContext

func (i StoreShardArgs) ToStoreShardOutputWithContext(ctx context.Context) StoreShardOutput

type StoreShardArray

type StoreShardArray []StoreShardInput

func (StoreShardArray) ElementType

func (StoreShardArray) ElementType() reflect.Type

func (StoreShardArray) ToStoreShardArrayOutput

func (i StoreShardArray) ToStoreShardArrayOutput() StoreShardArrayOutput

func (StoreShardArray) ToStoreShardArrayOutputWithContext

func (i StoreShardArray) ToStoreShardArrayOutputWithContext(ctx context.Context) StoreShardArrayOutput

type StoreShardArrayInput

type StoreShardArrayInput interface {
	pulumi.Input

	ToStoreShardArrayOutput() StoreShardArrayOutput
	ToStoreShardArrayOutputWithContext(context.Context) StoreShardArrayOutput
}

StoreShardArrayInput is an input type that accepts StoreShardArray and StoreShardArrayOutput values. You can construct a concrete instance of `StoreShardArrayInput` via:

StoreShardArray{ StoreShardArgs{...} }

type StoreShardArrayOutput

type StoreShardArrayOutput struct{ *pulumi.OutputState }

func (StoreShardArrayOutput) ElementType

func (StoreShardArrayOutput) ElementType() reflect.Type

func (StoreShardArrayOutput) Index

func (StoreShardArrayOutput) ToStoreShardArrayOutput

func (o StoreShardArrayOutput) ToStoreShardArrayOutput() StoreShardArrayOutput

func (StoreShardArrayOutput) ToStoreShardArrayOutputWithContext

func (o StoreShardArrayOutput) ToStoreShardArrayOutputWithContext(ctx context.Context) StoreShardArrayOutput

type StoreShardInput

type StoreShardInput interface {
	pulumi.Input

	ToStoreShardOutput() StoreShardOutput
	ToStoreShardOutputWithContext(context.Context) StoreShardOutput
}

StoreShardInput is an input type that accepts StoreShardArgs and StoreShardOutput values. You can construct a concrete instance of `StoreShardInput` via:

StoreShardArgs{...}

type StoreShardOutput

type StoreShardOutput struct{ *pulumi.OutputState }

func (StoreShardOutput) BeginKey

The begin value of the shard range(MD5), included in the shard range.

func (StoreShardOutput) ElementType

func (StoreShardOutput) ElementType() reflect.Type

func (StoreShardOutput) EndKey

The end value of the shard range(MD5), not included in shard range.

func (StoreShardOutput) Id

The ID of the shard.

func (StoreShardOutput) Status

Shard status, only two status of `readwrite` and `readonly`.

func (StoreShardOutput) ToStoreShardOutput

func (o StoreShardOutput) ToStoreShardOutput() StoreShardOutput

func (StoreShardOutput) ToStoreShardOutputWithContext

func (o StoreShardOutput) ToStoreShardOutputWithContext(ctx context.Context) StoreShardOutput

type StoreState

type StoreState struct {
	// Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to `true`.
	AppendMeta pulumi.BoolPtrInput
	// Determines whether to automatically split a shard. Default to `false`.
	AutoSplit pulumi.BoolPtrInput
	// Log library creation time. Unix timestamp format that represents the number of seconds from 1970-1-1 00:00:00 UTC calculation.
	CreateTime pulumi.IntPtrInput
	// Whether open webtracking. webtracking network tracing, support the collection of HTML log, H5, Ios and android platforms.
	EnableWebTracking pulumi.BoolPtrInput
	// Encrypted storage of data, providing data static protection capability, encryptConf can be updated since 1.188.0 (only enable change is supported when updating logstore). See `encryptConf` below.
	EncryptConf StoreEncryptConfPtrInput
	// The ttl of hot storage. Default to 30, at least 30, hot storage ttl must be less than ttl.
	HotTtl pulumi.IntPtrInput
	// The log store, which is unique in the same project. You need to specify one of the attributes: `logstoreName`, `name`.
	LogstoreName pulumi.StringPtrInput
	// The maximum number of shards for automatic split, which is in the range of 1 to 256. You must specify this parameter when autoSplit is true.
	MaxSplitShardCount pulumi.IntPtrInput
	// Metering mode. The default metering mode of ChargeByFunction, ChargeByDataIngest traffic mode.
	MeteringMode pulumi.StringPtrInput
	// The mode of storage. Default to `standard`, must be `standard` or `query`, `lite`.
	Mode pulumi.StringPtrInput
	// . Field 'name' has been deprecated from provider version 1.215.0. New field 'logstore_name' instead.
	//
	// Deprecated: Field 'name' has been deprecated since provider version 1.215.0. New field 'logstore_name' instead.
	Name pulumi.StringPtrInput
	// . Field 'project' has been deprecated from provider version 1.215.0. New field 'project_name' instead.
	//
	// Deprecated: Field 'project' has been deprecated since provider version 1.215.0. New field 'project_name' instead.
	Project pulumi.StringPtrInput
	// The project name to the log store belongs. You need to specify one of the attributes: `projectName`, `project`.
	ProjectName pulumi.StringPtrInput
	// The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is 3650.
	RetentionPeriod pulumi.IntPtrInput
	// The number of shards in this log store. Default to 2. You can modify it by "Split" or "Merge" operations. [Refer to details](https://www.alibabacloud.com/help/zh/sls/product-overview/shard).
	ShardCount pulumi.IntPtrInput
	// The shard attribute.
	Shards StoreShardArrayInput
	// Determines whether store type is metric. `Metrics` means metric store, empty means log store.
	//
	// The following arguments will be discarded. Please use new fields as soon as possible:
	TelemetryType pulumi.StringPtrInput
}

func (StoreState) ElementType

func (StoreState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL