-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnTaskProps.go
168 lines (165 loc) · 8.27 KB
/
CfnTaskProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
package awsdatasync
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnTask`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// cfnTaskProps := &CfnTaskProps{
// DestinationLocationArn: jsii.String("destinationLocationArn"),
// SourceLocationArn: jsii.String("sourceLocationArn"),
//
// // the properties below are optional
// CloudWatchLogGroupArn: jsii.String("cloudWatchLogGroupArn"),
// Excludes: []interface{}{
// &FilterRuleProperty{
// FilterType: jsii.String("filterType"),
// Value: jsii.String("value"),
// },
// },
// Includes: []interface{}{
// &FilterRuleProperty{
// FilterType: jsii.String("filterType"),
// Value: jsii.String("value"),
// },
// },
// ManifestConfig: &ManifestConfigProperty{
// Source: &SourceProperty{
// S3: &ManifestConfigSourceS3Property{
// BucketAccessRoleArn: jsii.String("bucketAccessRoleArn"),
// ManifestObjectPath: jsii.String("manifestObjectPath"),
// ManifestObjectVersionId: jsii.String("manifestObjectVersionId"),
// S3BucketArn: jsii.String("s3BucketArn"),
// },
// },
//
// // the properties below are optional
// Action: jsii.String("action"),
// Format: jsii.String("format"),
// },
// Name: jsii.String("name"),
// Options: &OptionsProperty{
// Atime: jsii.String("atime"),
// BytesPerSecond: jsii.Number(123),
// Gid: jsii.String("gid"),
// LogLevel: jsii.String("logLevel"),
// Mtime: jsii.String("mtime"),
// ObjectTags: jsii.String("objectTags"),
// OverwriteMode: jsii.String("overwriteMode"),
// PosixPermissions: jsii.String("posixPermissions"),
// PreserveDeletedFiles: jsii.String("preserveDeletedFiles"),
// PreserveDevices: jsii.String("preserveDevices"),
// SecurityDescriptorCopyFlags: jsii.String("securityDescriptorCopyFlags"),
// TaskQueueing: jsii.String("taskQueueing"),
// TransferMode: jsii.String("transferMode"),
// Uid: jsii.String("uid"),
// VerifyMode: jsii.String("verifyMode"),
// },
// Schedule: &TaskScheduleProperty{
// ScheduleExpression: jsii.String("scheduleExpression"),
// Status: jsii.String("status"),
// },
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// TaskReportConfig: &TaskReportConfigProperty{
// Destination: &DestinationProperty{
// S3: &S3Property{
// BucketAccessRoleArn: jsii.String("bucketAccessRoleArn"),
// S3BucketArn: jsii.String("s3BucketArn"),
// Subdirectory: jsii.String("subdirectory"),
// },
// },
// OutputType: jsii.String("outputType"),
//
// // the properties below are optional
// ObjectVersionIds: jsii.String("objectVersionIds"),
// Overrides: &OverridesProperty{
// Deleted: &DeletedProperty{
// ReportLevel: jsii.String("reportLevel"),
// },
// Skipped: &SkippedProperty{
// ReportLevel: jsii.String("reportLevel"),
// },
// Transferred: &TransferredProperty{
// ReportLevel: jsii.String("reportLevel"),
// },
// Verified: &VerifiedProperty{
// ReportLevel: jsii.String("reportLevel"),
// },
// },
// ReportLevel: jsii.String("reportLevel"),
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html
//
type CfnTaskProps struct {
// The Amazon Resource Name (ARN) of an AWS storage resource's location.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-destinationlocationarn
//
DestinationLocationArn *string `field:"required" json:"destinationLocationArn" yaml:"destinationLocationArn"`
// Specifies the ARN of your transfer's source location.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-sourcelocationarn
//
SourceLocationArn *string `field:"required" json:"sourceLocationArn" yaml:"sourceLocationArn"`
// Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
//
// For more information, see [Monitoring DataSync with Amazon CloudWatch](https://docs.aws.amazon.com/datasync/latest/userguide/monitor-datasync.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-cloudwatchloggrouparn
//
CloudWatchLogGroupArn *string `field:"optional" json:"cloudWatchLogGroupArn" yaml:"cloudWatchLogGroupArn"`
// Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer.
//
// For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-excludes
//
Excludes interface{} `field:"optional" json:"excludes" yaml:"excludes"`
// Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer.
//
// For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-includes
//
Includes interface{} `field:"optional" json:"includes" yaml:"includes"`
// The configuration of the manifest that lists the files or objects that you want DataSync to transfer.
//
// For more information, see [Specifying what DataSync transfers by using a manifest](https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-manifestconfig
//
ManifestConfig interface{} `field:"optional" json:"manifestConfig" yaml:"manifestConfig"`
// Specifies the name of your task.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-name
//
Name *string `field:"optional" json:"name" yaml:"name"`
// Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-options
//
Options interface{} `field:"optional" json:"options" yaml:"options"`
// Specifies a schedule for when you want your task to run.
//
// For more information, see [Scheduling your task](https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-schedule
//
Schedule interface{} `field:"optional" json:"schedule" yaml:"schedule"`
// Specifies the tags that you want to apply to your task.
//
// *Tags* are key-value pairs that help you manage, filter, and search for your DataSync resources.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
// Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer.
//
// For more information, see [Monitoring your DataSync transfers with task reports](https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html) .
//
// When using this parameter, your caller identity (the role that you're using DataSync with) must have the `iam:PassRole` permission. The [AWSDataSyncFullAccess](https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess) policy includes this permission.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-taskreportconfig
//
TaskReportConfig interface{} `field:"optional" json:"taskReportConfig" yaml:"taskReportConfig"`
}