cts

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.2

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type DataTracker

type DataTracker struct {
	pulumi.CustomResourceState

	// Specifies the OBS bucket to which traces will be transferred.
	BucketName pulumi.StringPtrOutput `pulumi:"bucketName"`
	// Specifies the OBS bucket tracked by the data tracker.
	// Changing this creates a new resource.
	DataBucket pulumi.StringOutput `pulumi:"dataBucket"`
	// Specifies an array of operation types tracked by the data tracker,
	// the value of operation can be **WRITE** or **READ**.
	DataOperations pulumi.StringArrayOutput `pulumi:"dataOperations"`
	// Specifies whether tracker is enabled.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the file name prefix to mark trace files that need to be stored
	// in an OBS bucket. The value contains 0 to 64 characters. Only letters, numbers, hyphens (-), underscores (_),
	// and periods (.) are allowed.
	FilePrefix pulumi.StringPtrOutput `pulumi:"filePrefix"`
	// Specifies whether trace analysis is enabled.
	LtsEnabled pulumi.BoolPtrOutput `pulumi:"ltsEnabled"`
	// Specifies the data tracker name. The name cannot be system or ststem-trace.
	// Changing this creates a new resource.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the retention period that traces are stored in `bucketName`,
	// the value can be **0**(permanent), **30**, **60**, **90**, **180** or **1095**.
	ObsRetentionPeriod pulumi.IntPtrOutput `pulumi:"obsRetentionPeriod"`
	// Specifies the region in which to manage the CTS data tracker resource.
	// If omitted, the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// The tracker status, the value can be **enabled**, **disabled** or **error**.
	Status pulumi.StringOutput `pulumi:"status"`
	// Whether traces will be transferred.
	TransferEnabled pulumi.BoolOutput `pulumi:"transferEnabled"`
	// The tracker type, only **data** is available.
	Type pulumi.StringOutput `pulumi:"type"`
	// Specifies whether trace file verification is enabled during trace transfer.
	ValidateFile pulumi.BoolPtrOutput `pulumi:"validateFile"`
}

Manages CTS **data** tracker resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cts"
"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, "")
		dataBucket := cfg.RequireObject("dataBucket")
		transferBucket := cfg.RequireObject("transferBucket")
		_, err := Cts.NewDataTracker(ctx, "tracker", &Cts.DataTrackerArgs{
			DataBucket: pulumi.Any(dataBucket),
			BucketName: pulumi.Any(transferBucket),
			FilePrefix: pulumi.String("cloudTrace"),
			LtsEnabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CTS data tracker can be imported using `name`, e.g.

```sh

$ pulumi import huaweicloud:Cts/dataTracker:DataTracker tracker your_tracker_name

```

func GetDataTracker

func GetDataTracker(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DataTrackerState, opts ...pulumi.ResourceOption) (*DataTracker, error)

GetDataTracker gets an existing DataTracker 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 NewDataTracker

func NewDataTracker(ctx *pulumi.Context,
	name string, args *DataTrackerArgs, opts ...pulumi.ResourceOption) (*DataTracker, error)

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

func (*DataTracker) ElementType

func (*DataTracker) ElementType() reflect.Type

func (*DataTracker) ToDataTrackerOutput

func (i *DataTracker) ToDataTrackerOutput() DataTrackerOutput

func (*DataTracker) ToDataTrackerOutputWithContext

func (i *DataTracker) ToDataTrackerOutputWithContext(ctx context.Context) DataTrackerOutput

type DataTrackerArgs

type DataTrackerArgs struct {
	// Specifies the OBS bucket to which traces will be transferred.
	BucketName pulumi.StringPtrInput
	// Specifies the OBS bucket tracked by the data tracker.
	// Changing this creates a new resource.
	DataBucket pulumi.StringInput
	// Specifies an array of operation types tracked by the data tracker,
	// the value of operation can be **WRITE** or **READ**.
	DataOperations pulumi.StringArrayInput
	// Specifies whether tracker is enabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the file name prefix to mark trace files that need to be stored
	// in an OBS bucket. The value contains 0 to 64 characters. Only letters, numbers, hyphens (-), underscores (_),
	// and periods (.) are allowed.
	FilePrefix pulumi.StringPtrInput
	// Specifies whether trace analysis is enabled.
	LtsEnabled pulumi.BoolPtrInput
	// Specifies the data tracker name. The name cannot be system or ststem-trace.
	// Changing this creates a new resource.
	Name pulumi.StringPtrInput
	// Specifies the retention period that traces are stored in `bucketName`,
	// the value can be **0**(permanent), **30**, **60**, **90**, **180** or **1095**.
	ObsRetentionPeriod pulumi.IntPtrInput
	// Specifies the region in which to manage the CTS data tracker resource.
	// If omitted, the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// Specifies whether trace file verification is enabled during trace transfer.
	ValidateFile pulumi.BoolPtrInput
}

The set of arguments for constructing a DataTracker resource.

func (DataTrackerArgs) ElementType

func (DataTrackerArgs) ElementType() reflect.Type

type DataTrackerArray

type DataTrackerArray []DataTrackerInput

func (DataTrackerArray) ElementType

func (DataTrackerArray) ElementType() reflect.Type

func (DataTrackerArray) ToDataTrackerArrayOutput

func (i DataTrackerArray) ToDataTrackerArrayOutput() DataTrackerArrayOutput

func (DataTrackerArray) ToDataTrackerArrayOutputWithContext

func (i DataTrackerArray) ToDataTrackerArrayOutputWithContext(ctx context.Context) DataTrackerArrayOutput

type DataTrackerArrayInput

type DataTrackerArrayInput interface {
	pulumi.Input

	ToDataTrackerArrayOutput() DataTrackerArrayOutput
	ToDataTrackerArrayOutputWithContext(context.Context) DataTrackerArrayOutput
}

DataTrackerArrayInput is an input type that accepts DataTrackerArray and DataTrackerArrayOutput values. You can construct a concrete instance of `DataTrackerArrayInput` via:

DataTrackerArray{ DataTrackerArgs{...} }

type DataTrackerArrayOutput

type DataTrackerArrayOutput struct{ *pulumi.OutputState }

func (DataTrackerArrayOutput) ElementType

func (DataTrackerArrayOutput) ElementType() reflect.Type

func (DataTrackerArrayOutput) Index

func (DataTrackerArrayOutput) ToDataTrackerArrayOutput

func (o DataTrackerArrayOutput) ToDataTrackerArrayOutput() DataTrackerArrayOutput

func (DataTrackerArrayOutput) ToDataTrackerArrayOutputWithContext

func (o DataTrackerArrayOutput) ToDataTrackerArrayOutputWithContext(ctx context.Context) DataTrackerArrayOutput

type DataTrackerInput

type DataTrackerInput interface {
	pulumi.Input

	ToDataTrackerOutput() DataTrackerOutput
	ToDataTrackerOutputWithContext(ctx context.Context) DataTrackerOutput
}

type DataTrackerMap

type DataTrackerMap map[string]DataTrackerInput

func (DataTrackerMap) ElementType

func (DataTrackerMap) ElementType() reflect.Type

func (DataTrackerMap) ToDataTrackerMapOutput

func (i DataTrackerMap) ToDataTrackerMapOutput() DataTrackerMapOutput

func (DataTrackerMap) ToDataTrackerMapOutputWithContext

func (i DataTrackerMap) ToDataTrackerMapOutputWithContext(ctx context.Context) DataTrackerMapOutput

type DataTrackerMapInput

type DataTrackerMapInput interface {
	pulumi.Input

	ToDataTrackerMapOutput() DataTrackerMapOutput
	ToDataTrackerMapOutputWithContext(context.Context) DataTrackerMapOutput
}

DataTrackerMapInput is an input type that accepts DataTrackerMap and DataTrackerMapOutput values. You can construct a concrete instance of `DataTrackerMapInput` via:

DataTrackerMap{ "key": DataTrackerArgs{...} }

type DataTrackerMapOutput

type DataTrackerMapOutput struct{ *pulumi.OutputState }

func (DataTrackerMapOutput) ElementType

func (DataTrackerMapOutput) ElementType() reflect.Type

func (DataTrackerMapOutput) MapIndex

func (DataTrackerMapOutput) ToDataTrackerMapOutput

func (o DataTrackerMapOutput) ToDataTrackerMapOutput() DataTrackerMapOutput

func (DataTrackerMapOutput) ToDataTrackerMapOutputWithContext

func (o DataTrackerMapOutput) ToDataTrackerMapOutputWithContext(ctx context.Context) DataTrackerMapOutput

type DataTrackerOutput

type DataTrackerOutput struct{ *pulumi.OutputState }

func (DataTrackerOutput) BucketName

func (o DataTrackerOutput) BucketName() pulumi.StringPtrOutput

Specifies the OBS bucket to which traces will be transferred.

func (DataTrackerOutput) DataBucket

func (o DataTrackerOutput) DataBucket() pulumi.StringOutput

Specifies the OBS bucket tracked by the data tracker. Changing this creates a new resource.

func (DataTrackerOutput) DataOperations

func (o DataTrackerOutput) DataOperations() pulumi.StringArrayOutput

Specifies an array of operation types tracked by the data tracker, the value of operation can be **WRITE** or **READ**.

func (DataTrackerOutput) ElementType

func (DataTrackerOutput) ElementType() reflect.Type

func (DataTrackerOutput) Enabled

Specifies whether tracker is enabled.

func (DataTrackerOutput) FilePrefix

func (o DataTrackerOutput) FilePrefix() pulumi.StringPtrOutput

Specifies the file name prefix to mark trace files that need to be stored in an OBS bucket. The value contains 0 to 64 characters. Only letters, numbers, hyphens (-), underscores (_), and periods (.) are allowed.

func (DataTrackerOutput) LtsEnabled

func (o DataTrackerOutput) LtsEnabled() pulumi.BoolPtrOutput

Specifies whether trace analysis is enabled.

func (DataTrackerOutput) Name

Specifies the data tracker name. The name cannot be system or ststem-trace. Changing this creates a new resource.

func (DataTrackerOutput) ObsRetentionPeriod

func (o DataTrackerOutput) ObsRetentionPeriod() pulumi.IntPtrOutput

Specifies the retention period that traces are stored in `bucketName`, the value can be **0**(permanent), **30**, **60**, **90**, **180** or **1095**.

func (DataTrackerOutput) Region

Specifies the region in which to manage the CTS data tracker resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

func (DataTrackerOutput) Status

The tracker status, the value can be **enabled**, **disabled** or **error**.

func (DataTrackerOutput) ToDataTrackerOutput

func (o DataTrackerOutput) ToDataTrackerOutput() DataTrackerOutput

func (DataTrackerOutput) ToDataTrackerOutputWithContext

func (o DataTrackerOutput) ToDataTrackerOutputWithContext(ctx context.Context) DataTrackerOutput

func (DataTrackerOutput) TransferEnabled

func (o DataTrackerOutput) TransferEnabled() pulumi.BoolOutput

Whether traces will be transferred.

func (DataTrackerOutput) Type

The tracker type, only **data** is available.

func (DataTrackerOutput) ValidateFile

func (o DataTrackerOutput) ValidateFile() pulumi.BoolPtrOutput

Specifies whether trace file verification is enabled during trace transfer.

type DataTrackerState

type DataTrackerState struct {
	// Specifies the OBS bucket to which traces will be transferred.
	BucketName pulumi.StringPtrInput
	// Specifies the OBS bucket tracked by the data tracker.
	// Changing this creates a new resource.
	DataBucket pulumi.StringPtrInput
	// Specifies an array of operation types tracked by the data tracker,
	// the value of operation can be **WRITE** or **READ**.
	DataOperations pulumi.StringArrayInput
	// Specifies whether tracker is enabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the file name prefix to mark trace files that need to be stored
	// in an OBS bucket. The value contains 0 to 64 characters. Only letters, numbers, hyphens (-), underscores (_),
	// and periods (.) are allowed.
	FilePrefix pulumi.StringPtrInput
	// Specifies whether trace analysis is enabled.
	LtsEnabled pulumi.BoolPtrInput
	// Specifies the data tracker name. The name cannot be system or ststem-trace.
	// Changing this creates a new resource.
	Name pulumi.StringPtrInput
	// Specifies the retention period that traces are stored in `bucketName`,
	// the value can be **0**(permanent), **30**, **60**, **90**, **180** or **1095**.
	ObsRetentionPeriod pulumi.IntPtrInput
	// Specifies the region in which to manage the CTS data tracker resource.
	// If omitted, the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// The tracker status, the value can be **enabled**, **disabled** or **error**.
	Status pulumi.StringPtrInput
	// Whether traces will be transferred.
	TransferEnabled pulumi.BoolPtrInput
	// The tracker type, only **data** is available.
	Type pulumi.StringPtrInput
	// Specifies whether trace file verification is enabled during trace transfer.
	ValidateFile pulumi.BoolPtrInput
}

func (DataTrackerState) ElementType

func (DataTrackerState) ElementType() reflect.Type

type Notification

type Notification struct {
	pulumi.CustomResourceState

	// Specifies whether notification is enabled, defaults to true.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the notification name. The value contains a maximum of 64 characters,
	// and only letters, digits, underscores(_), and Chinese characters are allowed.
	Name pulumi.StringOutput `pulumi:"name"`
	// The notification ID in UUID format.
	NotificationId pulumi.StringOutput `pulumi:"notificationId"`
	// Specifies the operation type, possible options include **complete** and
	// **customized**.
	OperationType pulumi.StringOutput `pulumi:"operationType"`
	// Specifies an array of users. Notifications will be sent when specified users
	// perform specified operations. All users are selected by default.
	// The object structure is documented below.
	OperationUsers NotificationOperationUserArrayOutput `pulumi:"operationUsers"`
	// Specifies an array of operations that will trigger notifications.
	// For details, see [Supported Services and Operations](https://support.huaweicloud.com/intl/en-us/usermanual-cts/cts_03_0022.html).
	// The object structure is documented below.
	Operations NotificationOperationArrayOutput `pulumi:"operations"`
	// Specifies the region in which to manage the CTS notification resource.
	// If omitted, the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the URN of a topic.
	SmnTopic pulumi.StringPtrOutput `pulumi:"smnTopic"`
	// The notification status, the value can be **enabled** or **disabled**.
	Status pulumi.StringOutput `pulumi:"status"`
}

Manages CTS key event notification resource within HuaweiCloud.

## Example Usage ### Complete Notification

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cts"
"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, "")
		topicUrn := cfg.RequireObject("topicUrn")
		_, err := Cts.NewNotification(ctx, "notify", &Cts.NotificationArgs{
			OperationType: pulumi.String("complete"),
			SmnTopic:      pulumi.Any(topicUrn),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Customized Notification

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cts"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Cts"
"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, "")
		topicUrn := cfg.RequireObject("topicUrn")
		_, err := Cts.NewNotification(ctx, "notify", &Cts.NotificationArgs{
			OperationType: pulumi.String("customized"),
			SmnTopic:      pulumi.Any(topicUrn),
			Operations: cts.NotificationOperationArray{
				&cts.NotificationOperationArgs{
					Service:  pulumi.String("ECS"),
					Resource: pulumi.String("ecs"),
					TraceNames: pulumi.StringArray{
						pulumi.String("createServer"),
						pulumi.String("deleteServer"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CTS notifications can be imported using `name`, e.g.

```sh

$ pulumi import huaweicloud:Cts/notification:Notification tracker your_notification

```

func GetNotification

func GetNotification(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NotificationState, opts ...pulumi.ResourceOption) (*Notification, error)

GetNotification gets an existing Notification 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 NewNotification

func NewNotification(ctx *pulumi.Context,
	name string, args *NotificationArgs, opts ...pulumi.ResourceOption) (*Notification, error)

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

func (*Notification) ElementType

func (*Notification) ElementType() reflect.Type

func (*Notification) ToNotificationOutput

func (i *Notification) ToNotificationOutput() NotificationOutput

func (*Notification) ToNotificationOutputWithContext

func (i *Notification) ToNotificationOutputWithContext(ctx context.Context) NotificationOutput

type NotificationArgs

type NotificationArgs struct {
	// Specifies whether notification is enabled, defaults to true.
	Enabled pulumi.BoolPtrInput
	// Specifies the notification name. The value contains a maximum of 64 characters,
	// and only letters, digits, underscores(_), and Chinese characters are allowed.
	Name pulumi.StringPtrInput
	// Specifies the operation type, possible options include **complete** and
	// **customized**.
	OperationType pulumi.StringInput
	// Specifies an array of users. Notifications will be sent when specified users
	// perform specified operations. All users are selected by default.
	// The object structure is documented below.
	OperationUsers NotificationOperationUserArrayInput
	// Specifies an array of operations that will trigger notifications.
	// For details, see [Supported Services and Operations](https://support.huaweicloud.com/intl/en-us/usermanual-cts/cts_03_0022.html).
	// The object structure is documented below.
	Operations NotificationOperationArrayInput
	// Specifies the region in which to manage the CTS notification resource.
	// If omitted, the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// Specifies the URN of a topic.
	SmnTopic pulumi.StringPtrInput
}

The set of arguments for constructing a Notification resource.

func (NotificationArgs) ElementType

func (NotificationArgs) ElementType() reflect.Type

type NotificationArray

type NotificationArray []NotificationInput

func (NotificationArray) ElementType

func (NotificationArray) ElementType() reflect.Type

func (NotificationArray) ToNotificationArrayOutput

func (i NotificationArray) ToNotificationArrayOutput() NotificationArrayOutput

func (NotificationArray) ToNotificationArrayOutputWithContext

func (i NotificationArray) ToNotificationArrayOutputWithContext(ctx context.Context) NotificationArrayOutput

type NotificationArrayInput

type NotificationArrayInput interface {
	pulumi.Input

	ToNotificationArrayOutput() NotificationArrayOutput
	ToNotificationArrayOutputWithContext(context.Context) NotificationArrayOutput
}

NotificationArrayInput is an input type that accepts NotificationArray and NotificationArrayOutput values. You can construct a concrete instance of `NotificationArrayInput` via:

NotificationArray{ NotificationArgs{...} }

type NotificationArrayOutput

type NotificationArrayOutput struct{ *pulumi.OutputState }

func (NotificationArrayOutput) ElementType

func (NotificationArrayOutput) ElementType() reflect.Type

func (NotificationArrayOutput) Index

func (NotificationArrayOutput) ToNotificationArrayOutput

func (o NotificationArrayOutput) ToNotificationArrayOutput() NotificationArrayOutput

func (NotificationArrayOutput) ToNotificationArrayOutputWithContext

func (o NotificationArrayOutput) ToNotificationArrayOutputWithContext(ctx context.Context) NotificationArrayOutput

type NotificationInput

type NotificationInput interface {
	pulumi.Input

	ToNotificationOutput() NotificationOutput
	ToNotificationOutputWithContext(ctx context.Context) NotificationOutput
}

type NotificationMap

type NotificationMap map[string]NotificationInput

func (NotificationMap) ElementType

func (NotificationMap) ElementType() reflect.Type

func (NotificationMap) ToNotificationMapOutput

func (i NotificationMap) ToNotificationMapOutput() NotificationMapOutput

func (NotificationMap) ToNotificationMapOutputWithContext

func (i NotificationMap) ToNotificationMapOutputWithContext(ctx context.Context) NotificationMapOutput

type NotificationMapInput

type NotificationMapInput interface {
	pulumi.Input

	ToNotificationMapOutput() NotificationMapOutput
	ToNotificationMapOutputWithContext(context.Context) NotificationMapOutput
}

NotificationMapInput is an input type that accepts NotificationMap and NotificationMapOutput values. You can construct a concrete instance of `NotificationMapInput` via:

NotificationMap{ "key": NotificationArgs{...} }

type NotificationMapOutput

type NotificationMapOutput struct{ *pulumi.OutputState }

func (NotificationMapOutput) ElementType

func (NotificationMapOutput) ElementType() reflect.Type

func (NotificationMapOutput) MapIndex

func (NotificationMapOutput) ToNotificationMapOutput

func (o NotificationMapOutput) ToNotificationMapOutput() NotificationMapOutput

func (NotificationMapOutput) ToNotificationMapOutputWithContext

func (o NotificationMapOutput) ToNotificationMapOutputWithContext(ctx context.Context) NotificationMapOutput

type NotificationOperation

type NotificationOperation struct {
	// Specifies the resource type.
	Resource string `pulumi:"resource"`
	// Specifies the cloud service.
	Service string `pulumi:"service"`
	// Specifies an array of trace names.
	TraceNames []string `pulumi:"traceNames"`
}

type NotificationOperationArgs

type NotificationOperationArgs struct {
	// Specifies the resource type.
	Resource pulumi.StringInput `pulumi:"resource"`
	// Specifies the cloud service.
	Service pulumi.StringInput `pulumi:"service"`
	// Specifies an array of trace names.
	TraceNames pulumi.StringArrayInput `pulumi:"traceNames"`
}

func (NotificationOperationArgs) ElementType

func (NotificationOperationArgs) ElementType() reflect.Type

func (NotificationOperationArgs) ToNotificationOperationOutput

func (i NotificationOperationArgs) ToNotificationOperationOutput() NotificationOperationOutput

func (NotificationOperationArgs) ToNotificationOperationOutputWithContext

func (i NotificationOperationArgs) ToNotificationOperationOutputWithContext(ctx context.Context) NotificationOperationOutput

type NotificationOperationArray

type NotificationOperationArray []NotificationOperationInput

func (NotificationOperationArray) ElementType

func (NotificationOperationArray) ElementType() reflect.Type

func (NotificationOperationArray) ToNotificationOperationArrayOutput

func (i NotificationOperationArray) ToNotificationOperationArrayOutput() NotificationOperationArrayOutput

func (NotificationOperationArray) ToNotificationOperationArrayOutputWithContext

func (i NotificationOperationArray) ToNotificationOperationArrayOutputWithContext(ctx context.Context) NotificationOperationArrayOutput

type NotificationOperationArrayInput

type NotificationOperationArrayInput interface {
	pulumi.Input

	ToNotificationOperationArrayOutput() NotificationOperationArrayOutput
	ToNotificationOperationArrayOutputWithContext(context.Context) NotificationOperationArrayOutput
}

NotificationOperationArrayInput is an input type that accepts NotificationOperationArray and NotificationOperationArrayOutput values. You can construct a concrete instance of `NotificationOperationArrayInput` via:

NotificationOperationArray{ NotificationOperationArgs{...} }

type NotificationOperationArrayOutput

type NotificationOperationArrayOutput struct{ *pulumi.OutputState }

func (NotificationOperationArrayOutput) ElementType

func (NotificationOperationArrayOutput) Index

func (NotificationOperationArrayOutput) ToNotificationOperationArrayOutput

func (o NotificationOperationArrayOutput) ToNotificationOperationArrayOutput() NotificationOperationArrayOutput

func (NotificationOperationArrayOutput) ToNotificationOperationArrayOutputWithContext

func (o NotificationOperationArrayOutput) ToNotificationOperationArrayOutputWithContext(ctx context.Context) NotificationOperationArrayOutput

type NotificationOperationInput

type NotificationOperationInput interface {
	pulumi.Input

	ToNotificationOperationOutput() NotificationOperationOutput
	ToNotificationOperationOutputWithContext(context.Context) NotificationOperationOutput
}

NotificationOperationInput is an input type that accepts NotificationOperationArgs and NotificationOperationOutput values. You can construct a concrete instance of `NotificationOperationInput` via:

NotificationOperationArgs{...}

type NotificationOperationOutput

type NotificationOperationOutput struct{ *pulumi.OutputState }

func (NotificationOperationOutput) ElementType

func (NotificationOperationOutput) Resource

Specifies the resource type.

func (NotificationOperationOutput) Service

Specifies the cloud service.

func (NotificationOperationOutput) ToNotificationOperationOutput

func (o NotificationOperationOutput) ToNotificationOperationOutput() NotificationOperationOutput

func (NotificationOperationOutput) ToNotificationOperationOutputWithContext

func (o NotificationOperationOutput) ToNotificationOperationOutputWithContext(ctx context.Context) NotificationOperationOutput

func (NotificationOperationOutput) TraceNames

Specifies an array of trace names.

type NotificationOperationUser

type NotificationOperationUser struct {
	// Specifies the IAM user group name.
	Group string `pulumi:"group"`
	// Specifies an array of IAM users in the group.
	Users []string `pulumi:"users"`
}

type NotificationOperationUserArgs

type NotificationOperationUserArgs struct {
	// Specifies the IAM user group name.
	Group pulumi.StringInput `pulumi:"group"`
	// Specifies an array of IAM users in the group.
	Users pulumi.StringArrayInput `pulumi:"users"`
}

func (NotificationOperationUserArgs) ElementType

func (NotificationOperationUserArgs) ToNotificationOperationUserOutput

func (i NotificationOperationUserArgs) ToNotificationOperationUserOutput() NotificationOperationUserOutput

func (NotificationOperationUserArgs) ToNotificationOperationUserOutputWithContext

func (i NotificationOperationUserArgs) ToNotificationOperationUserOutputWithContext(ctx context.Context) NotificationOperationUserOutput

type NotificationOperationUserArray

type NotificationOperationUserArray []NotificationOperationUserInput

func (NotificationOperationUserArray) ElementType

func (NotificationOperationUserArray) ToNotificationOperationUserArrayOutput

func (i NotificationOperationUserArray) ToNotificationOperationUserArrayOutput() NotificationOperationUserArrayOutput

func (NotificationOperationUserArray) ToNotificationOperationUserArrayOutputWithContext

func (i NotificationOperationUserArray) ToNotificationOperationUserArrayOutputWithContext(ctx context.Context) NotificationOperationUserArrayOutput

type NotificationOperationUserArrayInput

type NotificationOperationUserArrayInput interface {
	pulumi.Input

	ToNotificationOperationUserArrayOutput() NotificationOperationUserArrayOutput
	ToNotificationOperationUserArrayOutputWithContext(context.Context) NotificationOperationUserArrayOutput
}

NotificationOperationUserArrayInput is an input type that accepts NotificationOperationUserArray and NotificationOperationUserArrayOutput values. You can construct a concrete instance of `NotificationOperationUserArrayInput` via:

NotificationOperationUserArray{ NotificationOperationUserArgs{...} }

type NotificationOperationUserArrayOutput

type NotificationOperationUserArrayOutput struct{ *pulumi.OutputState }

func (NotificationOperationUserArrayOutput) ElementType

func (NotificationOperationUserArrayOutput) Index

func (NotificationOperationUserArrayOutput) ToNotificationOperationUserArrayOutput

func (o NotificationOperationUserArrayOutput) ToNotificationOperationUserArrayOutput() NotificationOperationUserArrayOutput

func (NotificationOperationUserArrayOutput) ToNotificationOperationUserArrayOutputWithContext

func (o NotificationOperationUserArrayOutput) ToNotificationOperationUserArrayOutputWithContext(ctx context.Context) NotificationOperationUserArrayOutput

type NotificationOperationUserInput

type NotificationOperationUserInput interface {
	pulumi.Input

	ToNotificationOperationUserOutput() NotificationOperationUserOutput
	ToNotificationOperationUserOutputWithContext(context.Context) NotificationOperationUserOutput
}

NotificationOperationUserInput is an input type that accepts NotificationOperationUserArgs and NotificationOperationUserOutput values. You can construct a concrete instance of `NotificationOperationUserInput` via:

NotificationOperationUserArgs{...}

type NotificationOperationUserOutput

type NotificationOperationUserOutput struct{ *pulumi.OutputState }

func (NotificationOperationUserOutput) ElementType

func (NotificationOperationUserOutput) Group

Specifies the IAM user group name.

func (NotificationOperationUserOutput) ToNotificationOperationUserOutput

func (o NotificationOperationUserOutput) ToNotificationOperationUserOutput() NotificationOperationUserOutput

func (NotificationOperationUserOutput) ToNotificationOperationUserOutputWithContext

func (o NotificationOperationUserOutput) ToNotificationOperationUserOutputWithContext(ctx context.Context) NotificationOperationUserOutput

func (NotificationOperationUserOutput) Users

Specifies an array of IAM users in the group.

type NotificationOutput

type NotificationOutput struct{ *pulumi.OutputState }

func (NotificationOutput) ElementType

func (NotificationOutput) ElementType() reflect.Type

func (NotificationOutput) Enabled

Specifies whether notification is enabled, defaults to true.

func (NotificationOutput) Name

Specifies the notification name. The value contains a maximum of 64 characters, and only letters, digits, underscores(_), and Chinese characters are allowed.

func (NotificationOutput) NotificationId

func (o NotificationOutput) NotificationId() pulumi.StringOutput

The notification ID in UUID format.

func (NotificationOutput) OperationType

func (o NotificationOutput) OperationType() pulumi.StringOutput

Specifies the operation type, possible options include **complete** and **customized**.

func (NotificationOutput) OperationUsers

Specifies an array of users. Notifications will be sent when specified users perform specified operations. All users are selected by default. The object structure is documented below.

func (NotificationOutput) Operations

Specifies an array of operations that will trigger notifications. For details, see [Supported Services and Operations](https://support.huaweicloud.com/intl/en-us/usermanual-cts/cts_03_0022.html). The object structure is documented below.

func (NotificationOutput) Region

Specifies the region in which to manage the CTS notification resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

func (NotificationOutput) SmnTopic

Specifies the URN of a topic.

func (NotificationOutput) Status

The notification status, the value can be **enabled** or **disabled**.

func (NotificationOutput) ToNotificationOutput

func (o NotificationOutput) ToNotificationOutput() NotificationOutput

func (NotificationOutput) ToNotificationOutputWithContext

func (o NotificationOutput) ToNotificationOutputWithContext(ctx context.Context) NotificationOutput

type NotificationState

type NotificationState struct {
	// Specifies whether notification is enabled, defaults to true.
	Enabled pulumi.BoolPtrInput
	// Specifies the notification name. The value contains a maximum of 64 characters,
	// and only letters, digits, underscores(_), and Chinese characters are allowed.
	Name pulumi.StringPtrInput
	// The notification ID in UUID format.
	NotificationId pulumi.StringPtrInput
	// Specifies the operation type, possible options include **complete** and
	// **customized**.
	OperationType pulumi.StringPtrInput
	// Specifies an array of users. Notifications will be sent when specified users
	// perform specified operations. All users are selected by default.
	// The object structure is documented below.
	OperationUsers NotificationOperationUserArrayInput
	// Specifies an array of operations that will trigger notifications.
	// For details, see [Supported Services and Operations](https://support.huaweicloud.com/intl/en-us/usermanual-cts/cts_03_0022.html).
	// The object structure is documented below.
	Operations NotificationOperationArrayInput
	// Specifies the region in which to manage the CTS notification resource.
	// If omitted, the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// Specifies the URN of a topic.
	SmnTopic pulumi.StringPtrInput
	// The notification status, the value can be **enabled** or **disabled**.
	Status pulumi.StringPtrInput
}

func (NotificationState) ElementType

func (NotificationState) ElementType() reflect.Type

type Tracker

type Tracker struct {
	pulumi.CustomResourceState

	// Specifies the OBS bucket to which traces will be transferred.
	BucketName pulumi.StringPtrOutput `pulumi:"bucketName"`
	// Specifies whether tracker is enabled.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the file name prefix to mark trace files that need to be stored
	// in an OBS bucket. The value contains 0 to 64 characters. Only letters, numbers, hyphens (-), underscores (_),
	// and periods (.) are allowed.
	FilePrefix pulumi.StringPtrOutput `pulumi:"filePrefix"`
	// Specifies the ID of KMS key used for trace file encryption.
	KmsId pulumi.StringPtrOutput `pulumi:"kmsId"`
	// Specifies whether trace analysis is enabled.
	LtsEnabled pulumi.BoolPtrOutput `pulumi:"ltsEnabled"`
	// The tracker name, only **system** is available.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the region in which to manage the CTS system tracker resource.
	// If omitted, the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// The tracker status, the value can be **enabled**, **disabled** or **error**.
	Status pulumi.StringOutput `pulumi:"status"`
	// Whether traces will be transferred.
	TransferEnabled pulumi.BoolOutput `pulumi:"transferEnabled"`
	// The tracker type, only **system** is available.
	Type pulumi.StringOutput `pulumi:"type"`
	// Specifies whether trace file verification is enabled during trace transfer.
	ValidateFile pulumi.BoolPtrOutput `pulumi:"validateFile"`
}

Manages CTS **system** tracker resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cts"
"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, "")
		bucketName := cfg.RequireObject("bucketName")
		_, err := Cts.NewTracker(ctx, "tracker", &Cts.TrackerArgs{
			BucketName: pulumi.Any(bucketName),
			FilePrefix: pulumi.String("cts"),
			LtsEnabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CTS tracker can be imported using `name`, only **system** is available. e.g.

```sh

$ pulumi import huaweicloud:Cts/tracker:Tracker tracker system

```

func GetTracker

func GetTracker(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TrackerState, opts ...pulumi.ResourceOption) (*Tracker, error)

GetTracker gets an existing Tracker 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 NewTracker

func NewTracker(ctx *pulumi.Context,
	name string, args *TrackerArgs, opts ...pulumi.ResourceOption) (*Tracker, error)

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

func (*Tracker) ElementType

func (*Tracker) ElementType() reflect.Type

func (*Tracker) ToTrackerOutput

func (i *Tracker) ToTrackerOutput() TrackerOutput

func (*Tracker) ToTrackerOutputWithContext

func (i *Tracker) ToTrackerOutputWithContext(ctx context.Context) TrackerOutput

type TrackerArgs

type TrackerArgs struct {
	// Specifies the OBS bucket to which traces will be transferred.
	BucketName pulumi.StringPtrInput
	// Specifies whether tracker is enabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the file name prefix to mark trace files that need to be stored
	// in an OBS bucket. The value contains 0 to 64 characters. Only letters, numbers, hyphens (-), underscores (_),
	// and periods (.) are allowed.
	FilePrefix pulumi.StringPtrInput
	// Specifies the ID of KMS key used for trace file encryption.
	KmsId pulumi.StringPtrInput
	// Specifies whether trace analysis is enabled.
	LtsEnabled pulumi.BoolPtrInput
	// Specifies the region in which to manage the CTS system tracker resource.
	// If omitted, the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// Specifies whether trace file verification is enabled during trace transfer.
	ValidateFile pulumi.BoolPtrInput
}

The set of arguments for constructing a Tracker resource.

func (TrackerArgs) ElementType

func (TrackerArgs) ElementType() reflect.Type

type TrackerArray

type TrackerArray []TrackerInput

func (TrackerArray) ElementType

func (TrackerArray) ElementType() reflect.Type

func (TrackerArray) ToTrackerArrayOutput

func (i TrackerArray) ToTrackerArrayOutput() TrackerArrayOutput

func (TrackerArray) ToTrackerArrayOutputWithContext

func (i TrackerArray) ToTrackerArrayOutputWithContext(ctx context.Context) TrackerArrayOutput

type TrackerArrayInput

type TrackerArrayInput interface {
	pulumi.Input

	ToTrackerArrayOutput() TrackerArrayOutput
	ToTrackerArrayOutputWithContext(context.Context) TrackerArrayOutput
}

TrackerArrayInput is an input type that accepts TrackerArray and TrackerArrayOutput values. You can construct a concrete instance of `TrackerArrayInput` via:

TrackerArray{ TrackerArgs{...} }

type TrackerArrayOutput

type TrackerArrayOutput struct{ *pulumi.OutputState }

func (TrackerArrayOutput) ElementType

func (TrackerArrayOutput) ElementType() reflect.Type

func (TrackerArrayOutput) Index

func (TrackerArrayOutput) ToTrackerArrayOutput

func (o TrackerArrayOutput) ToTrackerArrayOutput() TrackerArrayOutput

func (TrackerArrayOutput) ToTrackerArrayOutputWithContext

func (o TrackerArrayOutput) ToTrackerArrayOutputWithContext(ctx context.Context) TrackerArrayOutput

type TrackerInput

type TrackerInput interface {
	pulumi.Input

	ToTrackerOutput() TrackerOutput
	ToTrackerOutputWithContext(ctx context.Context) TrackerOutput
}

type TrackerMap

type TrackerMap map[string]TrackerInput

func (TrackerMap) ElementType

func (TrackerMap) ElementType() reflect.Type

func (TrackerMap) ToTrackerMapOutput

func (i TrackerMap) ToTrackerMapOutput() TrackerMapOutput

func (TrackerMap) ToTrackerMapOutputWithContext

func (i TrackerMap) ToTrackerMapOutputWithContext(ctx context.Context) TrackerMapOutput

type TrackerMapInput

type TrackerMapInput interface {
	pulumi.Input

	ToTrackerMapOutput() TrackerMapOutput
	ToTrackerMapOutputWithContext(context.Context) TrackerMapOutput
}

TrackerMapInput is an input type that accepts TrackerMap and TrackerMapOutput values. You can construct a concrete instance of `TrackerMapInput` via:

TrackerMap{ "key": TrackerArgs{...} }

type TrackerMapOutput

type TrackerMapOutput struct{ *pulumi.OutputState }

func (TrackerMapOutput) ElementType

func (TrackerMapOutput) ElementType() reflect.Type

func (TrackerMapOutput) MapIndex

func (TrackerMapOutput) ToTrackerMapOutput

func (o TrackerMapOutput) ToTrackerMapOutput() TrackerMapOutput

func (TrackerMapOutput) ToTrackerMapOutputWithContext

func (o TrackerMapOutput) ToTrackerMapOutputWithContext(ctx context.Context) TrackerMapOutput

type TrackerOutput

type TrackerOutput struct{ *pulumi.OutputState }

func (TrackerOutput) BucketName

func (o TrackerOutput) BucketName() pulumi.StringPtrOutput

Specifies the OBS bucket to which traces will be transferred.

func (TrackerOutput) ElementType

func (TrackerOutput) ElementType() reflect.Type

func (TrackerOutput) Enabled

func (o TrackerOutput) Enabled() pulumi.BoolPtrOutput

Specifies whether tracker is enabled.

func (TrackerOutput) FilePrefix

func (o TrackerOutput) FilePrefix() pulumi.StringPtrOutput

Specifies the file name prefix to mark trace files that need to be stored in an OBS bucket. The value contains 0 to 64 characters. Only letters, numbers, hyphens (-), underscores (_), and periods (.) are allowed.

func (TrackerOutput) KmsId

Specifies the ID of KMS key used for trace file encryption.

func (TrackerOutput) LtsEnabled

func (o TrackerOutput) LtsEnabled() pulumi.BoolPtrOutput

Specifies whether trace analysis is enabled.

func (TrackerOutput) Name

The tracker name, only **system** is available.

func (TrackerOutput) Region

func (o TrackerOutput) Region() pulumi.StringOutput

Specifies the region in which to manage the CTS system tracker resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

func (TrackerOutput) Status

func (o TrackerOutput) Status() pulumi.StringOutput

The tracker status, the value can be **enabled**, **disabled** or **error**.

func (TrackerOutput) ToTrackerOutput

func (o TrackerOutput) ToTrackerOutput() TrackerOutput

func (TrackerOutput) ToTrackerOutputWithContext

func (o TrackerOutput) ToTrackerOutputWithContext(ctx context.Context) TrackerOutput

func (TrackerOutput) TransferEnabled

func (o TrackerOutput) TransferEnabled() pulumi.BoolOutput

Whether traces will be transferred.

func (TrackerOutput) Type

The tracker type, only **system** is available.

func (TrackerOutput) ValidateFile

func (o TrackerOutput) ValidateFile() pulumi.BoolPtrOutput

Specifies whether trace file verification is enabled during trace transfer.

type TrackerState

type TrackerState struct {
	// Specifies the OBS bucket to which traces will be transferred.
	BucketName pulumi.StringPtrInput
	// Specifies whether tracker is enabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the file name prefix to mark trace files that need to be stored
	// in an OBS bucket. The value contains 0 to 64 characters. Only letters, numbers, hyphens (-), underscores (_),
	// and periods (.) are allowed.
	FilePrefix pulumi.StringPtrInput
	// Specifies the ID of KMS key used for trace file encryption.
	KmsId pulumi.StringPtrInput
	// Specifies whether trace analysis is enabled.
	LtsEnabled pulumi.BoolPtrInput
	// The tracker name, only **system** is available.
	Name pulumi.StringPtrInput
	// Specifies the region in which to manage the CTS system tracker resource.
	// If omitted, the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// The tracker status, the value can be **enabled**, **disabled** or **error**.
	Status pulumi.StringPtrInput
	// Whether traces will be transferred.
	TransferEnabled pulumi.BoolPtrInput
	// The tracker type, only **system** is available.
	Type pulumi.StringPtrInput
	// Specifies whether trace file verification is enabled during trace transfer.
	ValidateFile pulumi.BoolPtrInput
}

func (TrackerState) ElementType

func (TrackerState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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