You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `The project in which the resource belongs. If it is not provided, the provider project is used.`,
84
84
},
85
+
"event_stream": {
86
+
Type: schema.TypeList,
87
+
Optional: true,
88
+
MaxItems: 1,
89
+
ConflictsWith: []string{"schedule"},
90
+
Elem: &schema.Resource{
91
+
Schema: map[string]*schema.Schema{
92
+
"name": {
93
+
Type: schema.TypeString,
94
+
Required: true,
95
+
Description: "Specifies a unique name of the resource such as AWS SQS ARN in the form 'arn:aws:sqs:region:account_id:queue_name', or Pub/Sub subscription resource name in the form 'projects/{project}/subscriptions/{sub}'",
96
+
},
97
+
"event_stream_start_time": {
98
+
Type: schema.TypeString,
99
+
Optional: true,
100
+
Description: "Specifies the date and time that Storage Transfer Service starts listening for events from this stream. If no start time is specified or start time is in the past, Storage Transfer Service starts listening immediately",
101
+
ValidateFunc: validation.IsRFC3339Time,
102
+
},
103
+
"event_stream_expiration_time": {
104
+
Type: schema.TypeString,
105
+
Optional: true,
106
+
Description: "Specifies the data and time at which Storage Transfer Service stops listening for events from this stream. After this time, any transfers in progress will complete, but no new transfers are initiated",
Copy file name to clipboardExpand all lines: website/docs/r/storage_transfer_job.html.markdown
+12-2
Original file line number
Diff line number
Diff line change
@@ -116,10 +116,12 @@ The following arguments are supported:
116
116
117
117
*`transfer_spec` - (Required) Transfer specification. Structure [documented below](#nested_transfer_spec).
118
118
119
-
*`schedule` - (Required) Schedule specification defining when the Transfer Job should be scheduled to start, end and what time to run. Structure [documented below](#nested_schedule).
120
-
121
119
- - -
122
120
121
+
*`schedule` - (Optional) Schedule specification defining when the Transfer Job should be scheduled to start, end and what time to run. Structure [documented below](#nested_schedule). Either `schedule` or `event_stream` must be set.
122
+
123
+
*`event_stream` - (Optional) Specifies the Event-driven transfer options. Event-driven transfers listen to an event stream to transfer updated files. Structure [documented below](#nested_event_stream) Either `event_stream` or `schedule` must be set.
124
+
123
125
*`project` - (Optional) The project in which the resource belongs. If it
124
126
is not provided, the provider project is used.
125
127
@@ -161,6 +163,14 @@ The following arguments are supported:
161
163
162
164
*`repeat_interval` - (Optional) Interval between the start of each scheduled transfer. If unspecified, the default value is 24 hours. This value may not be less than 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*`name` - (Required) Specifies a unique name of the resource such as AWS SQS ARN in the form 'arn:aws:sqs:region:account_id:queue_name', or Pub/Sub subscription resource name in the form 'projects/{project}/subscriptions/{sub}'.
169
+
170
+
*`event_stream_start_time` - (Optional) Specifies the date and time that Storage Transfer Service starts listening for events from this stream. If no start time is specified or start time is in the past, Storage Transfer Service starts listening immediately. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
171
+
172
+
*`event_stream_expiration_time` - (Optional) Specifies the data and time at which Storage Transfer Service stops listening for events from this stream. After this time, any transfers in progress will complete, but no new transfers are initiated.A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
0 commit comments