oms

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 MigrationTask

type MigrationTask struct {
	pulumi.CustomResourceState

	// Specifies the traffic limit rules. Each element in the array
	// corresponds to the maximum bandwidth of a time segment. A maximum of 5 time segments are allowed, and the time
	// segments must not overlap. The object structure is  documented below.
	BandwidthPolicies MigrationTaskBandwidthPolicyArrayOutput `pulumi:"bandwidthPolicies"`
	// Specifies the description of the task.
	// Changing this creates a new resource.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies the destination information. The object
	// structure is documented below. Changing this creates a new resource.
	DestinationObject MigrationTaskDestinationObjectOutput `pulumi:"destinationObject"`
	// Specifies whether to record failed objects. If this
	// function is enabled, information about objects that fail to be migrated will be stored in the destination bucket.
	// Default value: **true**. Changing this creates a new resource.
	EnableFailedObjectRecording pulumi.BoolPtrOutput `pulumi:"enableFailedObjectRecording"`
	// Specifies whether to enable the KMS encryption function.
	// Default value: **false**. Changing this creates a new resource.
	EnableKms pulumi.BoolPtrOutput `pulumi:"enableKms"`
	// Specifies whether to automatically restore the archive data. If enabled,
	// archive data is automatically restored and migrated. Default value: **false**. Changing this creates a new resource.
	EnableRestore pulumi.BoolPtrOutput `pulumi:"enableRestore"`
	// Specifies a time in format **yyyy-MM-dd HH:mm:ss**,
	// e.g. **2006-01-02 15:04:05**. The system migrates only the objects that are modified after the specified time.
	// No time is specified by default. Changing this creates a new resource.
	MigrateSince pulumi.StringOutput `pulumi:"migrateSince"`
	// The name of the migration task.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the region where the destination bucket is located.
	// Changing this creates a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the SMN message sending configuration.
	// The object structure is  documented below. Changing this creates a new resource.
	SmnConfig MigrationTaskSmnConfigPtrOutput `pulumi:"smnConfig"`
	// Specifies the CDN information. If this parameter is contained,
	// using CDN to download source data is supported, the source objects to be migrated are obtained from the CDN domain
	// name during migration. The object structure is documented below.
	// Changing this creates a new resource.
	SourceCdn MigrationTaskSourceCdnPtrOutput `pulumi:"sourceCdn"`
	// Specifies the source information. The object
	// structure is documented below. Changing this creates a new resource.
	SourceObject MigrationTaskSourceObjectOutput `pulumi:"sourceObject"`
	// Specifies whether to start the task. Default value: **true**.
	StartTask pulumi.BoolPtrOutput `pulumi:"startTask"`
	// The status the migration task. The value can be:
	// + **1**: Waiting to migrate.
	// + **2**: Migrating.
	// + **3**: Migration paused.
	// + **4**: Migration failed.
	// + **5**: Migration succeeded.
	Status pulumi.IntOutput `pulumi:"status"`
	// Specifies the task type. The value can be:
	// + **list**: indicates migrating objects using an object list.
	// + **url_list**: indicates migrating objects using a URL object list.
	// + **object**: indicates migrating selected files or folders.
	// + **prefix**: indicates migrating objects with specified prefixes.
	Type pulumi.StringOutput `pulumi:"type"`
}

Manages an OMS migration task resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Oms"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Oms"
"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, "")
		sourceRegion := cfg.RequireObject("sourceRegion")
		sourceBucket := cfg.RequireObject("sourceBucket")
		sourceAccessKey := cfg.RequireObject("sourceAccessKey")
		sourceSecretKey := cfg.RequireObject("sourceSecretKey")
		destRegion := cfg.RequireObject("destRegion")
		destBucket := cfg.RequireObject("destBucket")
		destAccessKey := cfg.RequireObject("destAccessKey")
		destSecretKey := cfg.RequireObject("destSecretKey")
		topicUrn := cfg.RequireObject("topicUrn")
		_, err := Oms.NewMigrationTask(ctx, "test", &Oms.MigrationTaskArgs{
			SourceObject: &oms.MigrationTaskSourceObjectArgs{
				DataSource: pulumi.String("Aliyun"),
				Region:     pulumi.Any(sourceRegion),
				Bucket:     pulumi.Any(sourceBucket),
				AccessKey:  pulumi.Any(sourceAccessKey),
				SecretKey:  pulumi.Any(sourceSecretKey),
				Objects: pulumi.StringArray{
					pulumi.String(""),
				},
			},
			DestinationObject: &oms.MigrationTaskDestinationObjectArgs{
				Region:    pulumi.Any(destRegion),
				Bucket:    pulumi.Any(destBucket),
				AccessKey: pulumi.Any(destAccessKey),
				SecretKey: pulumi.Any(destSecretKey),
			},
			Type:        pulumi.String("object"),
			Description: pulumi.String("test task"),
			BandwidthPolicies: oms.MigrationTaskBandwidthPolicyArray{
				&oms.MigrationTaskBandwidthPolicyArgs{
					MaxBandwidth: pulumi.Int(2),
					Start:        pulumi.String("15:00"),
					End:          pulumi.String("16:00"),
				},
			},
			SmnConfig: &oms.MigrationTaskSmnConfigArgs{
				TopicUrn: pulumi.Any(topicUrn),
				TriggerConditions: pulumi.StringArray{
					pulumi.String("FAILURE"),
					pulumi.String("SUCCESS"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetMigrationTask

func GetMigrationTask(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MigrationTaskState, opts ...pulumi.ResourceOption) (*MigrationTask, error)

GetMigrationTask gets an existing MigrationTask 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 NewMigrationTask

func NewMigrationTask(ctx *pulumi.Context,
	name string, args *MigrationTaskArgs, opts ...pulumi.ResourceOption) (*MigrationTask, error)

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

func (*MigrationTask) ElementType

func (*MigrationTask) ElementType() reflect.Type

func (*MigrationTask) ToMigrationTaskOutput

func (i *MigrationTask) ToMigrationTaskOutput() MigrationTaskOutput

func (*MigrationTask) ToMigrationTaskOutputWithContext

func (i *MigrationTask) ToMigrationTaskOutputWithContext(ctx context.Context) MigrationTaskOutput

type MigrationTaskArgs

type MigrationTaskArgs struct {
	// Specifies the traffic limit rules. Each element in the array
	// corresponds to the maximum bandwidth of a time segment. A maximum of 5 time segments are allowed, and the time
	// segments must not overlap. The object structure is  documented below.
	BandwidthPolicies MigrationTaskBandwidthPolicyArrayInput
	// Specifies the description of the task.
	// Changing this creates a new resource.
	Description pulumi.StringPtrInput
	// Specifies the destination information. The object
	// structure is documented below. Changing this creates a new resource.
	DestinationObject MigrationTaskDestinationObjectInput
	// Specifies whether to record failed objects. If this
	// function is enabled, information about objects that fail to be migrated will be stored in the destination bucket.
	// Default value: **true**. Changing this creates a new resource.
	EnableFailedObjectRecording pulumi.BoolPtrInput
	// Specifies whether to enable the KMS encryption function.
	// Default value: **false**. Changing this creates a new resource.
	EnableKms pulumi.BoolPtrInput
	// Specifies whether to automatically restore the archive data. If enabled,
	// archive data is automatically restored and migrated. Default value: **false**. Changing this creates a new resource.
	EnableRestore pulumi.BoolPtrInput
	// Specifies a time in format **yyyy-MM-dd HH:mm:ss**,
	// e.g. **2006-01-02 15:04:05**. The system migrates only the objects that are modified after the specified time.
	// No time is specified by default. Changing this creates a new resource.
	MigrateSince pulumi.StringPtrInput
	// Specifies the region where the destination bucket is located.
	// Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// Specifies the SMN message sending configuration.
	// The object structure is  documented below. Changing this creates a new resource.
	SmnConfig MigrationTaskSmnConfigPtrInput
	// Specifies the CDN information. If this parameter is contained,
	// using CDN to download source data is supported, the source objects to be migrated are obtained from the CDN domain
	// name during migration. The object structure is documented below.
	// Changing this creates a new resource.
	SourceCdn MigrationTaskSourceCdnPtrInput
	// Specifies the source information. The object
	// structure is documented below. Changing this creates a new resource.
	SourceObject MigrationTaskSourceObjectInput
	// Specifies whether to start the task. Default value: **true**.
	StartTask pulumi.BoolPtrInput
	// Specifies the task type. The value can be:
	// + **list**: indicates migrating objects using an object list.
	// + **url_list**: indicates migrating objects using a URL object list.
	// + **object**: indicates migrating selected files or folders.
	// + **prefix**: indicates migrating objects with specified prefixes.
	Type pulumi.StringInput
}

The set of arguments for constructing a MigrationTask resource.

func (MigrationTaskArgs) ElementType

func (MigrationTaskArgs) ElementType() reflect.Type

type MigrationTaskArray

type MigrationTaskArray []MigrationTaskInput

func (MigrationTaskArray) ElementType

func (MigrationTaskArray) ElementType() reflect.Type

func (MigrationTaskArray) ToMigrationTaskArrayOutput

func (i MigrationTaskArray) ToMigrationTaskArrayOutput() MigrationTaskArrayOutput

func (MigrationTaskArray) ToMigrationTaskArrayOutputWithContext

func (i MigrationTaskArray) ToMigrationTaskArrayOutputWithContext(ctx context.Context) MigrationTaskArrayOutput

type MigrationTaskArrayInput

type MigrationTaskArrayInput interface {
	pulumi.Input

	ToMigrationTaskArrayOutput() MigrationTaskArrayOutput
	ToMigrationTaskArrayOutputWithContext(context.Context) MigrationTaskArrayOutput
}

MigrationTaskArrayInput is an input type that accepts MigrationTaskArray and MigrationTaskArrayOutput values. You can construct a concrete instance of `MigrationTaskArrayInput` via:

MigrationTaskArray{ MigrationTaskArgs{...} }

type MigrationTaskArrayOutput

type MigrationTaskArrayOutput struct{ *pulumi.OutputState }

func (MigrationTaskArrayOutput) ElementType

func (MigrationTaskArrayOutput) ElementType() reflect.Type

func (MigrationTaskArrayOutput) Index

func (MigrationTaskArrayOutput) ToMigrationTaskArrayOutput

func (o MigrationTaskArrayOutput) ToMigrationTaskArrayOutput() MigrationTaskArrayOutput

func (MigrationTaskArrayOutput) ToMigrationTaskArrayOutputWithContext

func (o MigrationTaskArrayOutput) ToMigrationTaskArrayOutputWithContext(ctx context.Context) MigrationTaskArrayOutput

type MigrationTaskBandwidthPolicy

type MigrationTaskBandwidthPolicy struct {
	// Specifies the end time of the traffic limit rule. The format is **hh:mm**,
	// e.g. **12:03**.
	End string `pulumi:"end"`
	// Specifies the maximum traffic bandwidth allowed in the specified time
	// segment. The unit is byte/s. The value ranges from **1** MB/s to **200** MB/s.
	MaxBandwidth int `pulumi:"maxBandwidth"`
	// Specifies the start time of the traffic limit rule. The format is **hh:mm**,
	// e.g. **12:03**.
	Start string `pulumi:"start"`
}

type MigrationTaskBandwidthPolicyArgs

type MigrationTaskBandwidthPolicyArgs struct {
	// Specifies the end time of the traffic limit rule. The format is **hh:mm**,
	// e.g. **12:03**.
	End pulumi.StringInput `pulumi:"end"`
	// Specifies the maximum traffic bandwidth allowed in the specified time
	// segment. The unit is byte/s. The value ranges from **1** MB/s to **200** MB/s.
	MaxBandwidth pulumi.IntInput `pulumi:"maxBandwidth"`
	// Specifies the start time of the traffic limit rule. The format is **hh:mm**,
	// e.g. **12:03**.
	Start pulumi.StringInput `pulumi:"start"`
}

func (MigrationTaskBandwidthPolicyArgs) ElementType

func (MigrationTaskBandwidthPolicyArgs) ToMigrationTaskBandwidthPolicyOutput

func (i MigrationTaskBandwidthPolicyArgs) ToMigrationTaskBandwidthPolicyOutput() MigrationTaskBandwidthPolicyOutput

func (MigrationTaskBandwidthPolicyArgs) ToMigrationTaskBandwidthPolicyOutputWithContext

func (i MigrationTaskBandwidthPolicyArgs) ToMigrationTaskBandwidthPolicyOutputWithContext(ctx context.Context) MigrationTaskBandwidthPolicyOutput

type MigrationTaskBandwidthPolicyArray

type MigrationTaskBandwidthPolicyArray []MigrationTaskBandwidthPolicyInput

func (MigrationTaskBandwidthPolicyArray) ElementType

func (MigrationTaskBandwidthPolicyArray) ToMigrationTaskBandwidthPolicyArrayOutput

func (i MigrationTaskBandwidthPolicyArray) ToMigrationTaskBandwidthPolicyArrayOutput() MigrationTaskBandwidthPolicyArrayOutput

func (MigrationTaskBandwidthPolicyArray) ToMigrationTaskBandwidthPolicyArrayOutputWithContext

func (i MigrationTaskBandwidthPolicyArray) ToMigrationTaskBandwidthPolicyArrayOutputWithContext(ctx context.Context) MigrationTaskBandwidthPolicyArrayOutput

type MigrationTaskBandwidthPolicyArrayInput

type MigrationTaskBandwidthPolicyArrayInput interface {
	pulumi.Input

	ToMigrationTaskBandwidthPolicyArrayOutput() MigrationTaskBandwidthPolicyArrayOutput
	ToMigrationTaskBandwidthPolicyArrayOutputWithContext(context.Context) MigrationTaskBandwidthPolicyArrayOutput
}

MigrationTaskBandwidthPolicyArrayInput is an input type that accepts MigrationTaskBandwidthPolicyArray and MigrationTaskBandwidthPolicyArrayOutput values. You can construct a concrete instance of `MigrationTaskBandwidthPolicyArrayInput` via:

MigrationTaskBandwidthPolicyArray{ MigrationTaskBandwidthPolicyArgs{...} }

type MigrationTaskBandwidthPolicyArrayOutput

type MigrationTaskBandwidthPolicyArrayOutput struct{ *pulumi.OutputState }

func (MigrationTaskBandwidthPolicyArrayOutput) ElementType

func (MigrationTaskBandwidthPolicyArrayOutput) Index

func (MigrationTaskBandwidthPolicyArrayOutput) ToMigrationTaskBandwidthPolicyArrayOutput

func (o MigrationTaskBandwidthPolicyArrayOutput) ToMigrationTaskBandwidthPolicyArrayOutput() MigrationTaskBandwidthPolicyArrayOutput

func (MigrationTaskBandwidthPolicyArrayOutput) ToMigrationTaskBandwidthPolicyArrayOutputWithContext

func (o MigrationTaskBandwidthPolicyArrayOutput) ToMigrationTaskBandwidthPolicyArrayOutputWithContext(ctx context.Context) MigrationTaskBandwidthPolicyArrayOutput

type MigrationTaskBandwidthPolicyInput

type MigrationTaskBandwidthPolicyInput interface {
	pulumi.Input

	ToMigrationTaskBandwidthPolicyOutput() MigrationTaskBandwidthPolicyOutput
	ToMigrationTaskBandwidthPolicyOutputWithContext(context.Context) MigrationTaskBandwidthPolicyOutput
}

MigrationTaskBandwidthPolicyInput is an input type that accepts MigrationTaskBandwidthPolicyArgs and MigrationTaskBandwidthPolicyOutput values. You can construct a concrete instance of `MigrationTaskBandwidthPolicyInput` via:

MigrationTaskBandwidthPolicyArgs{...}

type MigrationTaskBandwidthPolicyOutput

type MigrationTaskBandwidthPolicyOutput struct{ *pulumi.OutputState }

func (MigrationTaskBandwidthPolicyOutput) ElementType

func (MigrationTaskBandwidthPolicyOutput) End

Specifies the end time of the traffic limit rule. The format is **hh:mm**, e.g. **12:03**.

func (MigrationTaskBandwidthPolicyOutput) MaxBandwidth

Specifies the maximum traffic bandwidth allowed in the specified time segment. The unit is byte/s. The value ranges from **1** MB/s to **200** MB/s.

func (MigrationTaskBandwidthPolicyOutput) Start

Specifies the start time of the traffic limit rule. The format is **hh:mm**, e.g. **12:03**.

func (MigrationTaskBandwidthPolicyOutput) ToMigrationTaskBandwidthPolicyOutput

func (o MigrationTaskBandwidthPolicyOutput) ToMigrationTaskBandwidthPolicyOutput() MigrationTaskBandwidthPolicyOutput

func (MigrationTaskBandwidthPolicyOutput) ToMigrationTaskBandwidthPolicyOutputWithContext

func (o MigrationTaskBandwidthPolicyOutput) ToMigrationTaskBandwidthPolicyOutputWithContext(ctx context.Context) MigrationTaskBandwidthPolicyOutput

type MigrationTaskDestinationObject

type MigrationTaskDestinationObject struct {
	// Specifies the access key for accessing the destination bucket.
	// Changing this creates a new resource.
	AccessKey *string `pulumi:"accessKey"`
	// Specifies the name of the destination bucket.
	// Changing this creates a new resource.
	Bucket string `pulumi:"bucket"`
	// Specifies the region where the destination bucket is located.
	// Changing this creates a new resource.
	Region string `pulumi:"region"`
	// Specifies the path prefix in the destination bucket. The prefix is added
	// before the object key to form a new key. Changing this creates a new resource.
	SavePrefix *string `pulumi:"savePrefix"`
	// Specifies the secret key for accessing the destination bucket.
	// Changing this creates a new resource.
	SecretKey *string `pulumi:"secretKey"`
	// Specifies the temporary token for accessing the destination bucket.
	// Changing this creates a new resource.
	SecurityToken *string `pulumi:"securityToken"`
}

type MigrationTaskDestinationObjectArgs

type MigrationTaskDestinationObjectArgs struct {
	// Specifies the access key for accessing the destination bucket.
	// Changing this creates a new resource.
	AccessKey pulumi.StringPtrInput `pulumi:"accessKey"`
	// Specifies the name of the destination bucket.
	// Changing this creates a new resource.
	Bucket pulumi.StringInput `pulumi:"bucket"`
	// Specifies the region where the destination bucket is located.
	// Changing this creates a new resource.
	Region pulumi.StringInput `pulumi:"region"`
	// Specifies the path prefix in the destination bucket. The prefix is added
	// before the object key to form a new key. Changing this creates a new resource.
	SavePrefix pulumi.StringPtrInput `pulumi:"savePrefix"`
	// Specifies the secret key for accessing the destination bucket.
	// Changing this creates a new resource.
	SecretKey pulumi.StringPtrInput `pulumi:"secretKey"`
	// Specifies the temporary token for accessing the destination bucket.
	// Changing this creates a new resource.
	SecurityToken pulumi.StringPtrInput `pulumi:"securityToken"`
}

func (MigrationTaskDestinationObjectArgs) ElementType

func (MigrationTaskDestinationObjectArgs) ToMigrationTaskDestinationObjectOutput

func (i MigrationTaskDestinationObjectArgs) ToMigrationTaskDestinationObjectOutput() MigrationTaskDestinationObjectOutput

func (MigrationTaskDestinationObjectArgs) ToMigrationTaskDestinationObjectOutputWithContext

func (i MigrationTaskDestinationObjectArgs) ToMigrationTaskDestinationObjectOutputWithContext(ctx context.Context) MigrationTaskDestinationObjectOutput

func (MigrationTaskDestinationObjectArgs) ToMigrationTaskDestinationObjectPtrOutput

func (i MigrationTaskDestinationObjectArgs) ToMigrationTaskDestinationObjectPtrOutput() MigrationTaskDestinationObjectPtrOutput

func (MigrationTaskDestinationObjectArgs) ToMigrationTaskDestinationObjectPtrOutputWithContext

func (i MigrationTaskDestinationObjectArgs) ToMigrationTaskDestinationObjectPtrOutputWithContext(ctx context.Context) MigrationTaskDestinationObjectPtrOutput

type MigrationTaskDestinationObjectInput

type MigrationTaskDestinationObjectInput interface {
	pulumi.Input

	ToMigrationTaskDestinationObjectOutput() MigrationTaskDestinationObjectOutput
	ToMigrationTaskDestinationObjectOutputWithContext(context.Context) MigrationTaskDestinationObjectOutput
}

MigrationTaskDestinationObjectInput is an input type that accepts MigrationTaskDestinationObjectArgs and MigrationTaskDestinationObjectOutput values. You can construct a concrete instance of `MigrationTaskDestinationObjectInput` via:

MigrationTaskDestinationObjectArgs{...}

type MigrationTaskDestinationObjectOutput

type MigrationTaskDestinationObjectOutput struct{ *pulumi.OutputState }

func (MigrationTaskDestinationObjectOutput) AccessKey

Specifies the access key for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskDestinationObjectOutput) Bucket

Specifies the name of the destination bucket. Changing this creates a new resource.

func (MigrationTaskDestinationObjectOutput) ElementType

func (MigrationTaskDestinationObjectOutput) Region

Specifies the region where the destination bucket is located. Changing this creates a new resource.

func (MigrationTaskDestinationObjectOutput) SavePrefix

Specifies the path prefix in the destination bucket. The prefix is added before the object key to form a new key. Changing this creates a new resource.

func (MigrationTaskDestinationObjectOutput) SecretKey

Specifies the secret key for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskDestinationObjectOutput) SecurityToken

Specifies the temporary token for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskDestinationObjectOutput) ToMigrationTaskDestinationObjectOutput

func (o MigrationTaskDestinationObjectOutput) ToMigrationTaskDestinationObjectOutput() MigrationTaskDestinationObjectOutput

func (MigrationTaskDestinationObjectOutput) ToMigrationTaskDestinationObjectOutputWithContext

func (o MigrationTaskDestinationObjectOutput) ToMigrationTaskDestinationObjectOutputWithContext(ctx context.Context) MigrationTaskDestinationObjectOutput

func (MigrationTaskDestinationObjectOutput) ToMigrationTaskDestinationObjectPtrOutput

func (o MigrationTaskDestinationObjectOutput) ToMigrationTaskDestinationObjectPtrOutput() MigrationTaskDestinationObjectPtrOutput

func (MigrationTaskDestinationObjectOutput) ToMigrationTaskDestinationObjectPtrOutputWithContext

func (o MigrationTaskDestinationObjectOutput) ToMigrationTaskDestinationObjectPtrOutputWithContext(ctx context.Context) MigrationTaskDestinationObjectPtrOutput

type MigrationTaskDestinationObjectPtrInput

type MigrationTaskDestinationObjectPtrInput interface {
	pulumi.Input

	ToMigrationTaskDestinationObjectPtrOutput() MigrationTaskDestinationObjectPtrOutput
	ToMigrationTaskDestinationObjectPtrOutputWithContext(context.Context) MigrationTaskDestinationObjectPtrOutput
}

MigrationTaskDestinationObjectPtrInput is an input type that accepts MigrationTaskDestinationObjectArgs, MigrationTaskDestinationObjectPtr and MigrationTaskDestinationObjectPtrOutput values. You can construct a concrete instance of `MigrationTaskDestinationObjectPtrInput` via:

        MigrationTaskDestinationObjectArgs{...}

or:

        nil

type MigrationTaskDestinationObjectPtrOutput

type MigrationTaskDestinationObjectPtrOutput struct{ *pulumi.OutputState }

func (MigrationTaskDestinationObjectPtrOutput) AccessKey

Specifies the access key for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskDestinationObjectPtrOutput) Bucket

Specifies the name of the destination bucket. Changing this creates a new resource.

func (MigrationTaskDestinationObjectPtrOutput) Elem

func (MigrationTaskDestinationObjectPtrOutput) ElementType

func (MigrationTaskDestinationObjectPtrOutput) Region

Specifies the region where the destination bucket is located. Changing this creates a new resource.

func (MigrationTaskDestinationObjectPtrOutput) SavePrefix

Specifies the path prefix in the destination bucket. The prefix is added before the object key to form a new key. Changing this creates a new resource.

func (MigrationTaskDestinationObjectPtrOutput) SecretKey

Specifies the secret key for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskDestinationObjectPtrOutput) SecurityToken

Specifies the temporary token for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskDestinationObjectPtrOutput) ToMigrationTaskDestinationObjectPtrOutput

func (o MigrationTaskDestinationObjectPtrOutput) ToMigrationTaskDestinationObjectPtrOutput() MigrationTaskDestinationObjectPtrOutput

func (MigrationTaskDestinationObjectPtrOutput) ToMigrationTaskDestinationObjectPtrOutputWithContext

func (o MigrationTaskDestinationObjectPtrOutput) ToMigrationTaskDestinationObjectPtrOutputWithContext(ctx context.Context) MigrationTaskDestinationObjectPtrOutput

type MigrationTaskInput

type MigrationTaskInput interface {
	pulumi.Input

	ToMigrationTaskOutput() MigrationTaskOutput
	ToMigrationTaskOutputWithContext(ctx context.Context) MigrationTaskOutput
}

type MigrationTaskMap

type MigrationTaskMap map[string]MigrationTaskInput

func (MigrationTaskMap) ElementType

func (MigrationTaskMap) ElementType() reflect.Type

func (MigrationTaskMap) ToMigrationTaskMapOutput

func (i MigrationTaskMap) ToMigrationTaskMapOutput() MigrationTaskMapOutput

func (MigrationTaskMap) ToMigrationTaskMapOutputWithContext

func (i MigrationTaskMap) ToMigrationTaskMapOutputWithContext(ctx context.Context) MigrationTaskMapOutput

type MigrationTaskMapInput

type MigrationTaskMapInput interface {
	pulumi.Input

	ToMigrationTaskMapOutput() MigrationTaskMapOutput
	ToMigrationTaskMapOutputWithContext(context.Context) MigrationTaskMapOutput
}

MigrationTaskMapInput is an input type that accepts MigrationTaskMap and MigrationTaskMapOutput values. You can construct a concrete instance of `MigrationTaskMapInput` via:

MigrationTaskMap{ "key": MigrationTaskArgs{...} }

type MigrationTaskMapOutput

type MigrationTaskMapOutput struct{ *pulumi.OutputState }

func (MigrationTaskMapOutput) ElementType

func (MigrationTaskMapOutput) ElementType() reflect.Type

func (MigrationTaskMapOutput) MapIndex

func (MigrationTaskMapOutput) ToMigrationTaskMapOutput

func (o MigrationTaskMapOutput) ToMigrationTaskMapOutput() MigrationTaskMapOutput

func (MigrationTaskMapOutput) ToMigrationTaskMapOutputWithContext

func (o MigrationTaskMapOutput) ToMigrationTaskMapOutputWithContext(ctx context.Context) MigrationTaskMapOutput

type MigrationTaskOutput

type MigrationTaskOutput struct{ *pulumi.OutputState }

func (MigrationTaskOutput) BandwidthPolicies

Specifies the traffic limit rules. Each element in the array corresponds to the maximum bandwidth of a time segment. A maximum of 5 time segments are allowed, and the time segments must not overlap. The object structure is documented below.

func (MigrationTaskOutput) Description

func (o MigrationTaskOutput) Description() pulumi.StringPtrOutput

Specifies the description of the task. Changing this creates a new resource.

func (MigrationTaskOutput) DestinationObject

Specifies the destination information. The object structure is documented below. Changing this creates a new resource.

func (MigrationTaskOutput) ElementType

func (MigrationTaskOutput) ElementType() reflect.Type

func (MigrationTaskOutput) EnableFailedObjectRecording

func (o MigrationTaskOutput) EnableFailedObjectRecording() pulumi.BoolPtrOutput

Specifies whether to record failed objects. If this function is enabled, information about objects that fail to be migrated will be stored in the destination bucket. Default value: **true**. Changing this creates a new resource.

func (MigrationTaskOutput) EnableKms

Specifies whether to enable the KMS encryption function. Default value: **false**. Changing this creates a new resource.

func (MigrationTaskOutput) EnableRestore

func (o MigrationTaskOutput) EnableRestore() pulumi.BoolPtrOutput

Specifies whether to automatically restore the archive data. If enabled, archive data is automatically restored and migrated. Default value: **false**. Changing this creates a new resource.

func (MigrationTaskOutput) MigrateSince

func (o MigrationTaskOutput) MigrateSince() pulumi.StringOutput

Specifies a time in format **yyyy-MM-dd HH:mm:ss**, e.g. **2006-01-02 15:04:05**. The system migrates only the objects that are modified after the specified time. No time is specified by default. Changing this creates a new resource.

func (MigrationTaskOutput) Name

The name of the migration task.

func (MigrationTaskOutput) Region

Specifies the region where the destination bucket is located. Changing this creates a new resource.

func (MigrationTaskOutput) SmnConfig

Specifies the SMN message sending configuration. The object structure is documented below. Changing this creates a new resource.

func (MigrationTaskOutput) SourceCdn

Specifies the CDN information. If this parameter is contained, using CDN to download source data is supported, the source objects to be migrated are obtained from the CDN domain name during migration. The object structure is documented below. Changing this creates a new resource.

func (MigrationTaskOutput) SourceObject

Specifies the source information. The object structure is documented below. Changing this creates a new resource.

func (MigrationTaskOutput) StartTask

Specifies whether to start the task. Default value: **true**.

func (MigrationTaskOutput) Status

The status the migration task. The value can be: + **1**: Waiting to migrate. + **2**: Migrating. + **3**: Migration paused. + **4**: Migration failed. + **5**: Migration succeeded.

func (MigrationTaskOutput) ToMigrationTaskOutput

func (o MigrationTaskOutput) ToMigrationTaskOutput() MigrationTaskOutput

func (MigrationTaskOutput) ToMigrationTaskOutputWithContext

func (o MigrationTaskOutput) ToMigrationTaskOutputWithContext(ctx context.Context) MigrationTaskOutput

func (MigrationTaskOutput) Type

Specifies the task type. The value can be: + **list**: indicates migrating objects using an object list. + **url_list**: indicates migrating objects using a URL object list. + **object**: indicates migrating selected files or folders. + **prefix**: indicates migrating objects with specified prefixes.

type MigrationTaskSmnConfig

type MigrationTaskSmnConfig struct {
	// Specifies the SMN message language. The value can be **zh-cn** or
	// **en-us**. Default value: **en-us**. Changing this creates a new resource.
	Language *string `pulumi:"language"`
	// Specifies the SMN message topic URN bound to a migration task.
	// Changing this creates a new resource.
	TopicUrn string `pulumi:"topicUrn"`
	// Specifies the trigger conditions of sending messages using SMN.
	// The value can be:
	// + **FAILURE**: indicates that an SMN message will be sent after the migration task fails.
	// + **SUCCESS**: indicates that an SMN message will be sent after the migration task succeeds.
	TriggerConditions []string `pulumi:"triggerConditions"`
}

type MigrationTaskSmnConfigArgs

type MigrationTaskSmnConfigArgs struct {
	// Specifies the SMN message language. The value can be **zh-cn** or
	// **en-us**. Default value: **en-us**. Changing this creates a new resource.
	Language pulumi.StringPtrInput `pulumi:"language"`
	// Specifies the SMN message topic URN bound to a migration task.
	// Changing this creates a new resource.
	TopicUrn pulumi.StringInput `pulumi:"topicUrn"`
	// Specifies the trigger conditions of sending messages using SMN.
	// The value can be:
	// + **FAILURE**: indicates that an SMN message will be sent after the migration task fails.
	// + **SUCCESS**: indicates that an SMN message will be sent after the migration task succeeds.
	TriggerConditions pulumi.StringArrayInput `pulumi:"triggerConditions"`
}

func (MigrationTaskSmnConfigArgs) ElementType

func (MigrationTaskSmnConfigArgs) ElementType() reflect.Type

func (MigrationTaskSmnConfigArgs) ToMigrationTaskSmnConfigOutput

func (i MigrationTaskSmnConfigArgs) ToMigrationTaskSmnConfigOutput() MigrationTaskSmnConfigOutput

func (MigrationTaskSmnConfigArgs) ToMigrationTaskSmnConfigOutputWithContext

func (i MigrationTaskSmnConfigArgs) ToMigrationTaskSmnConfigOutputWithContext(ctx context.Context) MigrationTaskSmnConfigOutput

func (MigrationTaskSmnConfigArgs) ToMigrationTaskSmnConfigPtrOutput

func (i MigrationTaskSmnConfigArgs) ToMigrationTaskSmnConfigPtrOutput() MigrationTaskSmnConfigPtrOutput

func (MigrationTaskSmnConfigArgs) ToMigrationTaskSmnConfigPtrOutputWithContext

func (i MigrationTaskSmnConfigArgs) ToMigrationTaskSmnConfigPtrOutputWithContext(ctx context.Context) MigrationTaskSmnConfigPtrOutput

type MigrationTaskSmnConfigInput

type MigrationTaskSmnConfigInput interface {
	pulumi.Input

	ToMigrationTaskSmnConfigOutput() MigrationTaskSmnConfigOutput
	ToMigrationTaskSmnConfigOutputWithContext(context.Context) MigrationTaskSmnConfigOutput
}

MigrationTaskSmnConfigInput is an input type that accepts MigrationTaskSmnConfigArgs and MigrationTaskSmnConfigOutput values. You can construct a concrete instance of `MigrationTaskSmnConfigInput` via:

MigrationTaskSmnConfigArgs{...}

type MigrationTaskSmnConfigOutput

type MigrationTaskSmnConfigOutput struct{ *pulumi.OutputState }

func (MigrationTaskSmnConfigOutput) ElementType

func (MigrationTaskSmnConfigOutput) Language

Specifies the SMN message language. The value can be **zh-cn** or **en-us**. Default value: **en-us**. Changing this creates a new resource.

func (MigrationTaskSmnConfigOutput) ToMigrationTaskSmnConfigOutput

func (o MigrationTaskSmnConfigOutput) ToMigrationTaskSmnConfigOutput() MigrationTaskSmnConfigOutput

func (MigrationTaskSmnConfigOutput) ToMigrationTaskSmnConfigOutputWithContext

func (o MigrationTaskSmnConfigOutput) ToMigrationTaskSmnConfigOutputWithContext(ctx context.Context) MigrationTaskSmnConfigOutput

func (MigrationTaskSmnConfigOutput) ToMigrationTaskSmnConfigPtrOutput

func (o MigrationTaskSmnConfigOutput) ToMigrationTaskSmnConfigPtrOutput() MigrationTaskSmnConfigPtrOutput

func (MigrationTaskSmnConfigOutput) ToMigrationTaskSmnConfigPtrOutputWithContext

func (o MigrationTaskSmnConfigOutput) ToMigrationTaskSmnConfigPtrOutputWithContext(ctx context.Context) MigrationTaskSmnConfigPtrOutput

func (MigrationTaskSmnConfigOutput) TopicUrn

Specifies the SMN message topic URN bound to a migration task. Changing this creates a new resource.

func (MigrationTaskSmnConfigOutput) TriggerConditions

Specifies the trigger conditions of sending messages using SMN. The value can be: + **FAILURE**: indicates that an SMN message will be sent after the migration task fails. + **SUCCESS**: indicates that an SMN message will be sent after the migration task succeeds.

type MigrationTaskSmnConfigPtrInput

type MigrationTaskSmnConfigPtrInput interface {
	pulumi.Input

	ToMigrationTaskSmnConfigPtrOutput() MigrationTaskSmnConfigPtrOutput
	ToMigrationTaskSmnConfigPtrOutputWithContext(context.Context) MigrationTaskSmnConfigPtrOutput
}

MigrationTaskSmnConfigPtrInput is an input type that accepts MigrationTaskSmnConfigArgs, MigrationTaskSmnConfigPtr and MigrationTaskSmnConfigPtrOutput values. You can construct a concrete instance of `MigrationTaskSmnConfigPtrInput` via:

        MigrationTaskSmnConfigArgs{...}

or:

        nil

type MigrationTaskSmnConfigPtrOutput

type MigrationTaskSmnConfigPtrOutput struct{ *pulumi.OutputState }

func (MigrationTaskSmnConfigPtrOutput) Elem

func (MigrationTaskSmnConfigPtrOutput) ElementType

func (MigrationTaskSmnConfigPtrOutput) Language

Specifies the SMN message language. The value can be **zh-cn** or **en-us**. Default value: **en-us**. Changing this creates a new resource.

func (MigrationTaskSmnConfigPtrOutput) ToMigrationTaskSmnConfigPtrOutput

func (o MigrationTaskSmnConfigPtrOutput) ToMigrationTaskSmnConfigPtrOutput() MigrationTaskSmnConfigPtrOutput

func (MigrationTaskSmnConfigPtrOutput) ToMigrationTaskSmnConfigPtrOutputWithContext

func (o MigrationTaskSmnConfigPtrOutput) ToMigrationTaskSmnConfigPtrOutputWithContext(ctx context.Context) MigrationTaskSmnConfigPtrOutput

func (MigrationTaskSmnConfigPtrOutput) TopicUrn

Specifies the SMN message topic URN bound to a migration task. Changing this creates a new resource.

func (MigrationTaskSmnConfigPtrOutput) TriggerConditions

Specifies the trigger conditions of sending messages using SMN. The value can be: + **FAILURE**: indicates that an SMN message will be sent after the migration task fails. + **SUCCESS**: indicates that an SMN message will be sent after the migration task succeeds.

type MigrationTaskSourceCdn

type MigrationTaskSourceCdn struct {
	// Specifies the CDN authentication key.
	// Changing this creates a new resource.
	AuthenticationKey *string `pulumi:"authenticationKey"`
	// Specifies the authentication type. Valid values are **NONE**,
	// **QINIU_PRIVATE_AUTHENTICATION**, **ALIYUN_OSS_A**, **ALIYUN_OSS_B**, **ALIYUN_OSS_C**,
	// **KSYUN_PRIVATE_AUTHENTICATION**. Default value: **None**. Changing this creates a new resource.
	AuthenticationType *string `pulumi:"authenticationType"`
	// Specifies the domain name from which to obtain objects to be migrated.
	// Changing this creates a new resource.
	Domain string `pulumi:"domain"`
	// Specifies the protocol type. Valid values are **HTTP** and **HTTPS**.
	// Changing this creates a new resource.
	Protocol string `pulumi:"protocol"`
}

type MigrationTaskSourceCdnArgs

type MigrationTaskSourceCdnArgs struct {
	// Specifies the CDN authentication key.
	// Changing this creates a new resource.
	AuthenticationKey pulumi.StringPtrInput `pulumi:"authenticationKey"`
	// Specifies the authentication type. Valid values are **NONE**,
	// **QINIU_PRIVATE_AUTHENTICATION**, **ALIYUN_OSS_A**, **ALIYUN_OSS_B**, **ALIYUN_OSS_C**,
	// **KSYUN_PRIVATE_AUTHENTICATION**. Default value: **None**. Changing this creates a new resource.
	AuthenticationType pulumi.StringPtrInput `pulumi:"authenticationType"`
	// Specifies the domain name from which to obtain objects to be migrated.
	// Changing this creates a new resource.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Specifies the protocol type. Valid values are **HTTP** and **HTTPS**.
	// Changing this creates a new resource.
	Protocol pulumi.StringInput `pulumi:"protocol"`
}

func (MigrationTaskSourceCdnArgs) ElementType

func (MigrationTaskSourceCdnArgs) ElementType() reflect.Type

func (MigrationTaskSourceCdnArgs) ToMigrationTaskSourceCdnOutput

func (i MigrationTaskSourceCdnArgs) ToMigrationTaskSourceCdnOutput() MigrationTaskSourceCdnOutput

func (MigrationTaskSourceCdnArgs) ToMigrationTaskSourceCdnOutputWithContext

func (i MigrationTaskSourceCdnArgs) ToMigrationTaskSourceCdnOutputWithContext(ctx context.Context) MigrationTaskSourceCdnOutput

func (MigrationTaskSourceCdnArgs) ToMigrationTaskSourceCdnPtrOutput

func (i MigrationTaskSourceCdnArgs) ToMigrationTaskSourceCdnPtrOutput() MigrationTaskSourceCdnPtrOutput

func (MigrationTaskSourceCdnArgs) ToMigrationTaskSourceCdnPtrOutputWithContext

func (i MigrationTaskSourceCdnArgs) ToMigrationTaskSourceCdnPtrOutputWithContext(ctx context.Context) MigrationTaskSourceCdnPtrOutput

type MigrationTaskSourceCdnInput

type MigrationTaskSourceCdnInput interface {
	pulumi.Input

	ToMigrationTaskSourceCdnOutput() MigrationTaskSourceCdnOutput
	ToMigrationTaskSourceCdnOutputWithContext(context.Context) MigrationTaskSourceCdnOutput
}

MigrationTaskSourceCdnInput is an input type that accepts MigrationTaskSourceCdnArgs and MigrationTaskSourceCdnOutput values. You can construct a concrete instance of `MigrationTaskSourceCdnInput` via:

MigrationTaskSourceCdnArgs{...}

type MigrationTaskSourceCdnOutput

type MigrationTaskSourceCdnOutput struct{ *pulumi.OutputState }

func (MigrationTaskSourceCdnOutput) AuthenticationKey

func (o MigrationTaskSourceCdnOutput) AuthenticationKey() pulumi.StringPtrOutput

Specifies the CDN authentication key. Changing this creates a new resource.

func (MigrationTaskSourceCdnOutput) AuthenticationType

func (o MigrationTaskSourceCdnOutput) AuthenticationType() pulumi.StringPtrOutput

Specifies the authentication type. Valid values are **NONE**, **QINIU_PRIVATE_AUTHENTICATION**, **ALIYUN_OSS_A**, **ALIYUN_OSS_B**, **ALIYUN_OSS_C**, **KSYUN_PRIVATE_AUTHENTICATION**. Default value: **None**. Changing this creates a new resource.

func (MigrationTaskSourceCdnOutput) Domain

Specifies the domain name from which to obtain objects to be migrated. Changing this creates a new resource.

func (MigrationTaskSourceCdnOutput) ElementType

func (MigrationTaskSourceCdnOutput) Protocol

Specifies the protocol type. Valid values are **HTTP** and **HTTPS**. Changing this creates a new resource.

func (MigrationTaskSourceCdnOutput) ToMigrationTaskSourceCdnOutput

func (o MigrationTaskSourceCdnOutput) ToMigrationTaskSourceCdnOutput() MigrationTaskSourceCdnOutput

func (MigrationTaskSourceCdnOutput) ToMigrationTaskSourceCdnOutputWithContext

func (o MigrationTaskSourceCdnOutput) ToMigrationTaskSourceCdnOutputWithContext(ctx context.Context) MigrationTaskSourceCdnOutput

func (MigrationTaskSourceCdnOutput) ToMigrationTaskSourceCdnPtrOutput

func (o MigrationTaskSourceCdnOutput) ToMigrationTaskSourceCdnPtrOutput() MigrationTaskSourceCdnPtrOutput

func (MigrationTaskSourceCdnOutput) ToMigrationTaskSourceCdnPtrOutputWithContext

func (o MigrationTaskSourceCdnOutput) ToMigrationTaskSourceCdnPtrOutputWithContext(ctx context.Context) MigrationTaskSourceCdnPtrOutput

type MigrationTaskSourceCdnPtrInput

type MigrationTaskSourceCdnPtrInput interface {
	pulumi.Input

	ToMigrationTaskSourceCdnPtrOutput() MigrationTaskSourceCdnPtrOutput
	ToMigrationTaskSourceCdnPtrOutputWithContext(context.Context) MigrationTaskSourceCdnPtrOutput
}

MigrationTaskSourceCdnPtrInput is an input type that accepts MigrationTaskSourceCdnArgs, MigrationTaskSourceCdnPtr and MigrationTaskSourceCdnPtrOutput values. You can construct a concrete instance of `MigrationTaskSourceCdnPtrInput` via:

        MigrationTaskSourceCdnArgs{...}

or:

        nil

type MigrationTaskSourceCdnPtrOutput

type MigrationTaskSourceCdnPtrOutput struct{ *pulumi.OutputState }

func (MigrationTaskSourceCdnPtrOutput) AuthenticationKey

Specifies the CDN authentication key. Changing this creates a new resource.

func (MigrationTaskSourceCdnPtrOutput) AuthenticationType

Specifies the authentication type. Valid values are **NONE**, **QINIU_PRIVATE_AUTHENTICATION**, **ALIYUN_OSS_A**, **ALIYUN_OSS_B**, **ALIYUN_OSS_C**, **KSYUN_PRIVATE_AUTHENTICATION**. Default value: **None**. Changing this creates a new resource.

func (MigrationTaskSourceCdnPtrOutput) Domain

Specifies the domain name from which to obtain objects to be migrated. Changing this creates a new resource.

func (MigrationTaskSourceCdnPtrOutput) Elem

func (MigrationTaskSourceCdnPtrOutput) ElementType

func (MigrationTaskSourceCdnPtrOutput) Protocol

Specifies the protocol type. Valid values are **HTTP** and **HTTPS**. Changing this creates a new resource.

func (MigrationTaskSourceCdnPtrOutput) ToMigrationTaskSourceCdnPtrOutput

func (o MigrationTaskSourceCdnPtrOutput) ToMigrationTaskSourceCdnPtrOutput() MigrationTaskSourceCdnPtrOutput

func (MigrationTaskSourceCdnPtrOutput) ToMigrationTaskSourceCdnPtrOutputWithContext

func (o MigrationTaskSourceCdnPtrOutput) ToMigrationTaskSourceCdnPtrOutputWithContext(ctx context.Context) MigrationTaskSourceCdnPtrOutput

type MigrationTaskSourceObject

type MigrationTaskSourceObject struct {
	// Specifies the access key for accessing the destination bucket.
	// Changing this creates a new resource.
	AccessKey *string `pulumi:"accessKey"`
	// Specifies the APP ID. This parameter is mandatory when `dataSource` is\
	// **Tencent**. Changing this creates a new resource.
	AppId *string `pulumi:"appId"`
	// Specifies the name of the destination bucket.
	// Changing this creates a new resource.
	Bucket *string `pulumi:"bucket"`
	// Specifies the source cloud service provider. If `type` is
	// **url_list**,set this parameter to **URLSource**. The value can be **AWS**, **Azure**, **Aliyun**, **Tencent**,
	// **HuaweiCloud**, **QingCloud**, **KingsoftCloud**, **Baidu**, **Qiniu**, **URLSource** and **UCloud**.
	// The default value is **Aliyun**. Changing this creates a new resource.
	DataSource *string `pulumi:"dataSource"`
	// Specifies the name of the OBS bucket for storing the object list files.
	// `listFileBucket` is mandatory when `type` is set to **list** or **url_list**. Changing this creates a new resource.
	ListFileBucket *string `pulumi:"listFileBucket"`
	// Specifies the object name of the list file or URL list file.
	// `listFileKey` is mandatory when `type` is set to **list** or **url_list**. Changing this creates a new resource.
	ListFileKey *string `pulumi:"listFileKey"`
	// Specifies the list of object keys.
	// + If `type` is set to **object**, this parameter specifies the names of the objects to be migrated. The strings
	//   ending with a slash (/) indicate the folders to be migrated, and the strings not ending with a slash (/) indicate the
	//   files to be migrated.
	// + If `type` is set to **prefix**, this parameter indicates the name prefixes of the objects to be migrated.
	//   Set this parameter to [""] to migrate the entire bucket
	Objects []string `pulumi:"objects"`
	// Specifies the region where the destination bucket is located.
	// Changing this creates a new resource.
	Region *string `pulumi:"region"`
	// Specifies the secret key for accessing the destination bucket.
	// Changing this creates a new resource.
	SecretKey *string `pulumi:"secretKey"`
	// Specifies the temporary token for accessing the destination bucket.
	// Changing this creates a new resource.
	SecurityToken *string `pulumi:"securityToken"`
}

type MigrationTaskSourceObjectArgs

type MigrationTaskSourceObjectArgs struct {
	// Specifies the access key for accessing the destination bucket.
	// Changing this creates a new resource.
	AccessKey pulumi.StringPtrInput `pulumi:"accessKey"`
	// Specifies the APP ID. This parameter is mandatory when `dataSource` is\
	// **Tencent**. Changing this creates a new resource.
	AppId pulumi.StringPtrInput `pulumi:"appId"`
	// Specifies the name of the destination bucket.
	// Changing this creates a new resource.
	Bucket pulumi.StringPtrInput `pulumi:"bucket"`
	// Specifies the source cloud service provider. If `type` is
	// **url_list**,set this parameter to **URLSource**. The value can be **AWS**, **Azure**, **Aliyun**, **Tencent**,
	// **HuaweiCloud**, **QingCloud**, **KingsoftCloud**, **Baidu**, **Qiniu**, **URLSource** and **UCloud**.
	// The default value is **Aliyun**. Changing this creates a new resource.
	DataSource pulumi.StringPtrInput `pulumi:"dataSource"`
	// Specifies the name of the OBS bucket for storing the object list files.
	// `listFileBucket` is mandatory when `type` is set to **list** or **url_list**. Changing this creates a new resource.
	ListFileBucket pulumi.StringPtrInput `pulumi:"listFileBucket"`
	// Specifies the object name of the list file or URL list file.
	// `listFileKey` is mandatory when `type` is set to **list** or **url_list**. Changing this creates a new resource.
	ListFileKey pulumi.StringPtrInput `pulumi:"listFileKey"`
	// Specifies the list of object keys.
	// + If `type` is set to **object**, this parameter specifies the names of the objects to be migrated. The strings
	//   ending with a slash (/) indicate the folders to be migrated, and the strings not ending with a slash (/) indicate the
	//   files to be migrated.
	// + If `type` is set to **prefix**, this parameter indicates the name prefixes of the objects to be migrated.
	//   Set this parameter to [""] to migrate the entire bucket
	Objects pulumi.StringArrayInput `pulumi:"objects"`
	// Specifies the region where the destination bucket is located.
	// Changing this creates a new resource.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Specifies the secret key for accessing the destination bucket.
	// Changing this creates a new resource.
	SecretKey pulumi.StringPtrInput `pulumi:"secretKey"`
	// Specifies the temporary token for accessing the destination bucket.
	// Changing this creates a new resource.
	SecurityToken pulumi.StringPtrInput `pulumi:"securityToken"`
}

func (MigrationTaskSourceObjectArgs) ElementType

func (MigrationTaskSourceObjectArgs) ToMigrationTaskSourceObjectOutput

func (i MigrationTaskSourceObjectArgs) ToMigrationTaskSourceObjectOutput() MigrationTaskSourceObjectOutput

func (MigrationTaskSourceObjectArgs) ToMigrationTaskSourceObjectOutputWithContext

func (i MigrationTaskSourceObjectArgs) ToMigrationTaskSourceObjectOutputWithContext(ctx context.Context) MigrationTaskSourceObjectOutput

func (MigrationTaskSourceObjectArgs) ToMigrationTaskSourceObjectPtrOutput

func (i MigrationTaskSourceObjectArgs) ToMigrationTaskSourceObjectPtrOutput() MigrationTaskSourceObjectPtrOutput

func (MigrationTaskSourceObjectArgs) ToMigrationTaskSourceObjectPtrOutputWithContext

func (i MigrationTaskSourceObjectArgs) ToMigrationTaskSourceObjectPtrOutputWithContext(ctx context.Context) MigrationTaskSourceObjectPtrOutput

type MigrationTaskSourceObjectInput

type MigrationTaskSourceObjectInput interface {
	pulumi.Input

	ToMigrationTaskSourceObjectOutput() MigrationTaskSourceObjectOutput
	ToMigrationTaskSourceObjectOutputWithContext(context.Context) MigrationTaskSourceObjectOutput
}

MigrationTaskSourceObjectInput is an input type that accepts MigrationTaskSourceObjectArgs and MigrationTaskSourceObjectOutput values. You can construct a concrete instance of `MigrationTaskSourceObjectInput` via:

MigrationTaskSourceObjectArgs{...}

type MigrationTaskSourceObjectOutput

type MigrationTaskSourceObjectOutput struct{ *pulumi.OutputState }

func (MigrationTaskSourceObjectOutput) AccessKey

Specifies the access key for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskSourceObjectOutput) AppId

Specifies the APP ID. This parameter is mandatory when `dataSource` is\ **Tencent**. Changing this creates a new resource.

func (MigrationTaskSourceObjectOutput) Bucket

Specifies the name of the destination bucket. Changing this creates a new resource.

func (MigrationTaskSourceObjectOutput) DataSource

Specifies the source cloud service provider. If `type` is **url_list**,set this parameter to **URLSource**. The value can be **AWS**, **Azure**, **Aliyun**, **Tencent**, **HuaweiCloud**, **QingCloud**, **KingsoftCloud**, **Baidu**, **Qiniu**, **URLSource** and **UCloud**. The default value is **Aliyun**. Changing this creates a new resource.

func (MigrationTaskSourceObjectOutput) ElementType

func (MigrationTaskSourceObjectOutput) ListFileBucket

Specifies the name of the OBS bucket for storing the object list files. `listFileBucket` is mandatory when `type` is set to **list** or **url_list**. Changing this creates a new resource.

func (MigrationTaskSourceObjectOutput) ListFileKey

Specifies the object name of the list file or URL list file. `listFileKey` is mandatory when `type` is set to **list** or **url_list**. Changing this creates a new resource.

func (MigrationTaskSourceObjectOutput) Objects

Specifies the list of object keys.

  • If `type` is set to **object**, this parameter specifies the names of the objects to be migrated. The strings ending with a slash (/) indicate the folders to be migrated, and the strings not ending with a slash (/) indicate the files to be migrated.
  • If `type` is set to **prefix**, this parameter indicates the name prefixes of the objects to be migrated. Set this parameter to [""] to migrate the entire bucket

func (MigrationTaskSourceObjectOutput) Region

Specifies the region where the destination bucket is located. Changing this creates a new resource.

func (MigrationTaskSourceObjectOutput) SecretKey

Specifies the secret key for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskSourceObjectOutput) SecurityToken

Specifies the temporary token for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskSourceObjectOutput) ToMigrationTaskSourceObjectOutput

func (o MigrationTaskSourceObjectOutput) ToMigrationTaskSourceObjectOutput() MigrationTaskSourceObjectOutput

func (MigrationTaskSourceObjectOutput) ToMigrationTaskSourceObjectOutputWithContext

func (o MigrationTaskSourceObjectOutput) ToMigrationTaskSourceObjectOutputWithContext(ctx context.Context) MigrationTaskSourceObjectOutput

func (MigrationTaskSourceObjectOutput) ToMigrationTaskSourceObjectPtrOutput

func (o MigrationTaskSourceObjectOutput) ToMigrationTaskSourceObjectPtrOutput() MigrationTaskSourceObjectPtrOutput

func (MigrationTaskSourceObjectOutput) ToMigrationTaskSourceObjectPtrOutputWithContext

func (o MigrationTaskSourceObjectOutput) ToMigrationTaskSourceObjectPtrOutputWithContext(ctx context.Context) MigrationTaskSourceObjectPtrOutput

type MigrationTaskSourceObjectPtrInput

type MigrationTaskSourceObjectPtrInput interface {
	pulumi.Input

	ToMigrationTaskSourceObjectPtrOutput() MigrationTaskSourceObjectPtrOutput
	ToMigrationTaskSourceObjectPtrOutputWithContext(context.Context) MigrationTaskSourceObjectPtrOutput
}

MigrationTaskSourceObjectPtrInput is an input type that accepts MigrationTaskSourceObjectArgs, MigrationTaskSourceObjectPtr and MigrationTaskSourceObjectPtrOutput values. You can construct a concrete instance of `MigrationTaskSourceObjectPtrInput` via:

        MigrationTaskSourceObjectArgs{...}

or:

        nil

type MigrationTaskSourceObjectPtrOutput

type MigrationTaskSourceObjectPtrOutput struct{ *pulumi.OutputState }

func (MigrationTaskSourceObjectPtrOutput) AccessKey

Specifies the access key for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskSourceObjectPtrOutput) AppId

Specifies the APP ID. This parameter is mandatory when `dataSource` is\ **Tencent**. Changing this creates a new resource.

func (MigrationTaskSourceObjectPtrOutput) Bucket

Specifies the name of the destination bucket. Changing this creates a new resource.

func (MigrationTaskSourceObjectPtrOutput) DataSource

Specifies the source cloud service provider. If `type` is **url_list**,set this parameter to **URLSource**. The value can be **AWS**, **Azure**, **Aliyun**, **Tencent**, **HuaweiCloud**, **QingCloud**, **KingsoftCloud**, **Baidu**, **Qiniu**, **URLSource** and **UCloud**. The default value is **Aliyun**. Changing this creates a new resource.

func (MigrationTaskSourceObjectPtrOutput) Elem

func (MigrationTaskSourceObjectPtrOutput) ElementType

func (MigrationTaskSourceObjectPtrOutput) ListFileBucket

Specifies the name of the OBS bucket for storing the object list files. `listFileBucket` is mandatory when `type` is set to **list** or **url_list**. Changing this creates a new resource.

func (MigrationTaskSourceObjectPtrOutput) ListFileKey

Specifies the object name of the list file or URL list file. `listFileKey` is mandatory when `type` is set to **list** or **url_list**. Changing this creates a new resource.

func (MigrationTaskSourceObjectPtrOutput) Objects

Specifies the list of object keys.

  • If `type` is set to **object**, this parameter specifies the names of the objects to be migrated. The strings ending with a slash (/) indicate the folders to be migrated, and the strings not ending with a slash (/) indicate the files to be migrated.
  • If `type` is set to **prefix**, this parameter indicates the name prefixes of the objects to be migrated. Set this parameter to [""] to migrate the entire bucket

func (MigrationTaskSourceObjectPtrOutput) Region

Specifies the region where the destination bucket is located. Changing this creates a new resource.

func (MigrationTaskSourceObjectPtrOutput) SecretKey

Specifies the secret key for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskSourceObjectPtrOutput) SecurityToken

Specifies the temporary token for accessing the destination bucket. Changing this creates a new resource.

func (MigrationTaskSourceObjectPtrOutput) ToMigrationTaskSourceObjectPtrOutput

func (o MigrationTaskSourceObjectPtrOutput) ToMigrationTaskSourceObjectPtrOutput() MigrationTaskSourceObjectPtrOutput

func (MigrationTaskSourceObjectPtrOutput) ToMigrationTaskSourceObjectPtrOutputWithContext

func (o MigrationTaskSourceObjectPtrOutput) ToMigrationTaskSourceObjectPtrOutputWithContext(ctx context.Context) MigrationTaskSourceObjectPtrOutput

type MigrationTaskState

type MigrationTaskState struct {
	// Specifies the traffic limit rules. Each element in the array
	// corresponds to the maximum bandwidth of a time segment. A maximum of 5 time segments are allowed, and the time
	// segments must not overlap. The object structure is  documented below.
	BandwidthPolicies MigrationTaskBandwidthPolicyArrayInput
	// Specifies the description of the task.
	// Changing this creates a new resource.
	Description pulumi.StringPtrInput
	// Specifies the destination information. The object
	// structure is documented below. Changing this creates a new resource.
	DestinationObject MigrationTaskDestinationObjectPtrInput
	// Specifies whether to record failed objects. If this
	// function is enabled, information about objects that fail to be migrated will be stored in the destination bucket.
	// Default value: **true**. Changing this creates a new resource.
	EnableFailedObjectRecording pulumi.BoolPtrInput
	// Specifies whether to enable the KMS encryption function.
	// Default value: **false**. Changing this creates a new resource.
	EnableKms pulumi.BoolPtrInput
	// Specifies whether to automatically restore the archive data. If enabled,
	// archive data is automatically restored and migrated. Default value: **false**. Changing this creates a new resource.
	EnableRestore pulumi.BoolPtrInput
	// Specifies a time in format **yyyy-MM-dd HH:mm:ss**,
	// e.g. **2006-01-02 15:04:05**. The system migrates only the objects that are modified after the specified time.
	// No time is specified by default. Changing this creates a new resource.
	MigrateSince pulumi.StringPtrInput
	// The name of the migration task.
	Name pulumi.StringPtrInput
	// Specifies the region where the destination bucket is located.
	// Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// Specifies the SMN message sending configuration.
	// The object structure is  documented below. Changing this creates a new resource.
	SmnConfig MigrationTaskSmnConfigPtrInput
	// Specifies the CDN information. If this parameter is contained,
	// using CDN to download source data is supported, the source objects to be migrated are obtained from the CDN domain
	// name during migration. The object structure is documented below.
	// Changing this creates a new resource.
	SourceCdn MigrationTaskSourceCdnPtrInput
	// Specifies the source information. The object
	// structure is documented below. Changing this creates a new resource.
	SourceObject MigrationTaskSourceObjectPtrInput
	// Specifies whether to start the task. Default value: **true**.
	StartTask pulumi.BoolPtrInput
	// The status the migration task. The value can be:
	// + **1**: Waiting to migrate.
	// + **2**: Migrating.
	// + **3**: Migration paused.
	// + **4**: Migration failed.
	// + **5**: Migration succeeded.
	Status pulumi.IntPtrInput
	// Specifies the task type. The value can be:
	// + **list**: indicates migrating objects using an object list.
	// + **url_list**: indicates migrating objects using a URL object list.
	// + **object**: indicates migrating selected files or folders.
	// + **prefix**: indicates migrating objects with specified prefixes.
	Type pulumi.StringPtrInput
}

func (MigrationTaskState) ElementType

func (MigrationTaskState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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