generated from pulumi/pulumi-tf-provider-boilerplate
/
aggregateDelivery.go
429 lines (371 loc) · 24.7 KB
/
aggregateDelivery.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package cfg
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides a Cloud Config Aggregate Delivery resource.
//
// For information about Cloud Config Aggregate Delivery and how to use it, see [What is Aggregate Delivery](https://www.alibabacloud.com/help/en/cloud-config/latest/delivery-destination-services-overview).
//
// > **NOTE:** Available in v1.172.0+.
//
// ## Import
//
// Cloud Config Aggregate Delivery can be imported using the id, e.g.
//
// ```sh
//
// $ pulumi import alicloud:cfg/aggregateDelivery:AggregateDelivery example <aggregator_id>:<delivery_channel_id>
//
// ```
type AggregateDelivery struct {
pulumi.CustomResourceState
// The ID of the Aggregator.
AggregatorId pulumi.StringOutput `pulumi:"aggregatorId"`
// Open or close delivery configuration change history.
ConfigurationItemChangeNotification pulumi.BoolOutput `pulumi:"configurationItemChangeNotification"`
// Open or close timed snapshot of shipping resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `OSS`.
ConfigurationSnapshot pulumi.BoolOutput `pulumi:"configurationSnapshot"`
// The rule attached to the delivery method. Please refer to api [CreateConfigDeliveryChannel](https://help.aliyun.com/document_detail/429798.html) for example format. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `MNS`.
DeliveryChannelCondition pulumi.StringPtrOutput `pulumi:"deliveryChannelCondition"`
// The ID of the delivery method.
DeliveryChannelId pulumi.StringOutput `pulumi:"deliveryChannelId"`
// The name of the delivery method.
DeliveryChannelName pulumi.StringPtrOutput `pulumi:"deliveryChannelName"`
// The ARN of the delivery destination. The value must be in one of the following formats:
// * `acs:oss:{RegionId}:{Aliuid}:{bucketName}`: if your delivery destination is an Object Storage Service (OSS) bucket.
// * `acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}`: if your delivery destination is a Message Service (MNS) topic.
// * `acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}`: if your delivery destination is a Log Service Logstore.
DeliveryChannelTargetArn pulumi.StringOutput `pulumi:"deliveryChannelTargetArn"`
// The type of the delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
DeliveryChannelType pulumi.StringOutput `pulumi:"deliveryChannelType"`
// The description of the delivery method.
Description pulumi.StringPtrOutput `pulumi:"description"`
// Open or close non-compliance events of delivery resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `SLS` or `MNS`.
NonCompliantNotification pulumi.BoolOutput `pulumi:"nonCompliantNotification"`
// The oss ARN of the delivery channel when the value data oversized limit.
// * The value must be in one of the following formats: `acs:oss:{RegionId}:{accountId}:{bucketName}`, if your delivery destination is an Object Storage Service (OSS) bucket.
// * Only delivery channels `SLS` and `MNS` are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
OversizedDataOssTargetArn pulumi.StringPtrOutput `pulumi:"oversizedDataOssTargetArn"`
// The status of the delivery method. Valid values: `0`: The delivery method is disabled. `1`: The delivery destination is enabled. This is the default value.
Status pulumi.IntOutput `pulumi:"status"`
}
// NewAggregateDelivery registers a new resource with the given unique name, arguments, and options.
func NewAggregateDelivery(ctx *pulumi.Context,
name string, args *AggregateDeliveryArgs, opts ...pulumi.ResourceOption) (*AggregateDelivery, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AggregatorId == nil {
return nil, errors.New("invalid value for required argument 'AggregatorId'")
}
if args.DeliveryChannelTargetArn == nil {
return nil, errors.New("invalid value for required argument 'DeliveryChannelTargetArn'")
}
if args.DeliveryChannelType == nil {
return nil, errors.New("invalid value for required argument 'DeliveryChannelType'")
}
opts = pkgResourceDefaultOpts(opts)
var resource AggregateDelivery
err := ctx.RegisterResource("alicloud:cfg/aggregateDelivery:AggregateDelivery", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetAggregateDelivery gets an existing AggregateDelivery 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 GetAggregateDelivery(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *AggregateDeliveryState, opts ...pulumi.ResourceOption) (*AggregateDelivery, error) {
var resource AggregateDelivery
err := ctx.ReadResource("alicloud:cfg/aggregateDelivery:AggregateDelivery", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering AggregateDelivery resources.
type aggregateDeliveryState struct {
// The ID of the Aggregator.
AggregatorId *string `pulumi:"aggregatorId"`
// Open or close delivery configuration change history.
ConfigurationItemChangeNotification *bool `pulumi:"configurationItemChangeNotification"`
// Open or close timed snapshot of shipping resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `OSS`.
ConfigurationSnapshot *bool `pulumi:"configurationSnapshot"`
// The rule attached to the delivery method. Please refer to api [CreateConfigDeliveryChannel](https://help.aliyun.com/document_detail/429798.html) for example format. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `MNS`.
DeliveryChannelCondition *string `pulumi:"deliveryChannelCondition"`
// The ID of the delivery method.
DeliveryChannelId *string `pulumi:"deliveryChannelId"`
// The name of the delivery method.
DeliveryChannelName *string `pulumi:"deliveryChannelName"`
// The ARN of the delivery destination. The value must be in one of the following formats:
// * `acs:oss:{RegionId}:{Aliuid}:{bucketName}`: if your delivery destination is an Object Storage Service (OSS) bucket.
// * `acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}`: if your delivery destination is a Message Service (MNS) topic.
// * `acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}`: if your delivery destination is a Log Service Logstore.
DeliveryChannelTargetArn *string `pulumi:"deliveryChannelTargetArn"`
// The type of the delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
DeliveryChannelType *string `pulumi:"deliveryChannelType"`
// The description of the delivery method.
Description *string `pulumi:"description"`
// Open or close non-compliance events of delivery resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `SLS` or `MNS`.
NonCompliantNotification *bool `pulumi:"nonCompliantNotification"`
// The oss ARN of the delivery channel when the value data oversized limit.
// * The value must be in one of the following formats: `acs:oss:{RegionId}:{accountId}:{bucketName}`, if your delivery destination is an Object Storage Service (OSS) bucket.
// * Only delivery channels `SLS` and `MNS` are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
OversizedDataOssTargetArn *string `pulumi:"oversizedDataOssTargetArn"`
// The status of the delivery method. Valid values: `0`: The delivery method is disabled. `1`: The delivery destination is enabled. This is the default value.
Status *int `pulumi:"status"`
}
type AggregateDeliveryState struct {
// The ID of the Aggregator.
AggregatorId pulumi.StringPtrInput
// Open or close delivery configuration change history.
ConfigurationItemChangeNotification pulumi.BoolPtrInput
// Open or close timed snapshot of shipping resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `OSS`.
ConfigurationSnapshot pulumi.BoolPtrInput
// The rule attached to the delivery method. Please refer to api [CreateConfigDeliveryChannel](https://help.aliyun.com/document_detail/429798.html) for example format. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `MNS`.
DeliveryChannelCondition pulumi.StringPtrInput
// The ID of the delivery method.
DeliveryChannelId pulumi.StringPtrInput
// The name of the delivery method.
DeliveryChannelName pulumi.StringPtrInput
// The ARN of the delivery destination. The value must be in one of the following formats:
// * `acs:oss:{RegionId}:{Aliuid}:{bucketName}`: if your delivery destination is an Object Storage Service (OSS) bucket.
// * `acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}`: if your delivery destination is a Message Service (MNS) topic.
// * `acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}`: if your delivery destination is a Log Service Logstore.
DeliveryChannelTargetArn pulumi.StringPtrInput
// The type of the delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
DeliveryChannelType pulumi.StringPtrInput
// The description of the delivery method.
Description pulumi.StringPtrInput
// Open or close non-compliance events of delivery resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `SLS` or `MNS`.
NonCompliantNotification pulumi.BoolPtrInput
// The oss ARN of the delivery channel when the value data oversized limit.
// * The value must be in one of the following formats: `acs:oss:{RegionId}:{accountId}:{bucketName}`, if your delivery destination is an Object Storage Service (OSS) bucket.
// * Only delivery channels `SLS` and `MNS` are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
OversizedDataOssTargetArn pulumi.StringPtrInput
// The status of the delivery method. Valid values: `0`: The delivery method is disabled. `1`: The delivery destination is enabled. This is the default value.
Status pulumi.IntPtrInput
}
func (AggregateDeliveryState) ElementType() reflect.Type {
return reflect.TypeOf((*aggregateDeliveryState)(nil)).Elem()
}
type aggregateDeliveryArgs struct {
// The ID of the Aggregator.
AggregatorId string `pulumi:"aggregatorId"`
// Open or close delivery configuration change history.
ConfigurationItemChangeNotification *bool `pulumi:"configurationItemChangeNotification"`
// Open or close timed snapshot of shipping resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `OSS`.
ConfigurationSnapshot *bool `pulumi:"configurationSnapshot"`
// The rule attached to the delivery method. Please refer to api [CreateConfigDeliveryChannel](https://help.aliyun.com/document_detail/429798.html) for example format. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `MNS`.
DeliveryChannelCondition *string `pulumi:"deliveryChannelCondition"`
// The name of the delivery method.
DeliveryChannelName *string `pulumi:"deliveryChannelName"`
// The ARN of the delivery destination. The value must be in one of the following formats:
// * `acs:oss:{RegionId}:{Aliuid}:{bucketName}`: if your delivery destination is an Object Storage Service (OSS) bucket.
// * `acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}`: if your delivery destination is a Message Service (MNS) topic.
// * `acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}`: if your delivery destination is a Log Service Logstore.
DeliveryChannelTargetArn string `pulumi:"deliveryChannelTargetArn"`
// The type of the delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
DeliveryChannelType string `pulumi:"deliveryChannelType"`
// The description of the delivery method.
Description *string `pulumi:"description"`
// Open or close non-compliance events of delivery resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `SLS` or `MNS`.
NonCompliantNotification *bool `pulumi:"nonCompliantNotification"`
// The oss ARN of the delivery channel when the value data oversized limit.
// * The value must be in one of the following formats: `acs:oss:{RegionId}:{accountId}:{bucketName}`, if your delivery destination is an Object Storage Service (OSS) bucket.
// * Only delivery channels `SLS` and `MNS` are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
OversizedDataOssTargetArn *string `pulumi:"oversizedDataOssTargetArn"`
// The status of the delivery method. Valid values: `0`: The delivery method is disabled. `1`: The delivery destination is enabled. This is the default value.
Status *int `pulumi:"status"`
}
// The set of arguments for constructing a AggregateDelivery resource.
type AggregateDeliveryArgs struct {
// The ID of the Aggregator.
AggregatorId pulumi.StringInput
// Open or close delivery configuration change history.
ConfigurationItemChangeNotification pulumi.BoolPtrInput
// Open or close timed snapshot of shipping resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `OSS`.
ConfigurationSnapshot pulumi.BoolPtrInput
// The rule attached to the delivery method. Please refer to api [CreateConfigDeliveryChannel](https://help.aliyun.com/document_detail/429798.html) for example format. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `MNS`.
DeliveryChannelCondition pulumi.StringPtrInput
// The name of the delivery method.
DeliveryChannelName pulumi.StringPtrInput
// The ARN of the delivery destination. The value must be in one of the following formats:
// * `acs:oss:{RegionId}:{Aliuid}:{bucketName}`: if your delivery destination is an Object Storage Service (OSS) bucket.
// * `acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}`: if your delivery destination is a Message Service (MNS) topic.
// * `acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}`: if your delivery destination is a Log Service Logstore.
DeliveryChannelTargetArn pulumi.StringInput
// The type of the delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
DeliveryChannelType pulumi.StringInput
// The description of the delivery method.
Description pulumi.StringPtrInput
// Open or close non-compliance events of delivery resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `SLS` or `MNS`.
NonCompliantNotification pulumi.BoolPtrInput
// The oss ARN of the delivery channel when the value data oversized limit.
// * The value must be in one of the following formats: `acs:oss:{RegionId}:{accountId}:{bucketName}`, if your delivery destination is an Object Storage Service (OSS) bucket.
// * Only delivery channels `SLS` and `MNS` are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
OversizedDataOssTargetArn pulumi.StringPtrInput
// The status of the delivery method. Valid values: `0`: The delivery method is disabled. `1`: The delivery destination is enabled. This is the default value.
Status pulumi.IntPtrInput
}
func (AggregateDeliveryArgs) ElementType() reflect.Type {
return reflect.TypeOf((*aggregateDeliveryArgs)(nil)).Elem()
}
type AggregateDeliveryInput interface {
pulumi.Input
ToAggregateDeliveryOutput() AggregateDeliveryOutput
ToAggregateDeliveryOutputWithContext(ctx context.Context) AggregateDeliveryOutput
}
func (*AggregateDelivery) ElementType() reflect.Type {
return reflect.TypeOf((**AggregateDelivery)(nil)).Elem()
}
func (i *AggregateDelivery) ToAggregateDeliveryOutput() AggregateDeliveryOutput {
return i.ToAggregateDeliveryOutputWithContext(context.Background())
}
func (i *AggregateDelivery) ToAggregateDeliveryOutputWithContext(ctx context.Context) AggregateDeliveryOutput {
return pulumi.ToOutputWithContext(ctx, i).(AggregateDeliveryOutput)
}
// AggregateDeliveryArrayInput is an input type that accepts AggregateDeliveryArray and AggregateDeliveryArrayOutput values.
// You can construct a concrete instance of `AggregateDeliveryArrayInput` via:
//
// AggregateDeliveryArray{ AggregateDeliveryArgs{...} }
type AggregateDeliveryArrayInput interface {
pulumi.Input
ToAggregateDeliveryArrayOutput() AggregateDeliveryArrayOutput
ToAggregateDeliveryArrayOutputWithContext(context.Context) AggregateDeliveryArrayOutput
}
type AggregateDeliveryArray []AggregateDeliveryInput
func (AggregateDeliveryArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AggregateDelivery)(nil)).Elem()
}
func (i AggregateDeliveryArray) ToAggregateDeliveryArrayOutput() AggregateDeliveryArrayOutput {
return i.ToAggregateDeliveryArrayOutputWithContext(context.Background())
}
func (i AggregateDeliveryArray) ToAggregateDeliveryArrayOutputWithContext(ctx context.Context) AggregateDeliveryArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AggregateDeliveryArrayOutput)
}
// AggregateDeliveryMapInput is an input type that accepts AggregateDeliveryMap and AggregateDeliveryMapOutput values.
// You can construct a concrete instance of `AggregateDeliveryMapInput` via:
//
// AggregateDeliveryMap{ "key": AggregateDeliveryArgs{...} }
type AggregateDeliveryMapInput interface {
pulumi.Input
ToAggregateDeliveryMapOutput() AggregateDeliveryMapOutput
ToAggregateDeliveryMapOutputWithContext(context.Context) AggregateDeliveryMapOutput
}
type AggregateDeliveryMap map[string]AggregateDeliveryInput
func (AggregateDeliveryMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AggregateDelivery)(nil)).Elem()
}
func (i AggregateDeliveryMap) ToAggregateDeliveryMapOutput() AggregateDeliveryMapOutput {
return i.ToAggregateDeliveryMapOutputWithContext(context.Background())
}
func (i AggregateDeliveryMap) ToAggregateDeliveryMapOutputWithContext(ctx context.Context) AggregateDeliveryMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(AggregateDeliveryMapOutput)
}
type AggregateDeliveryOutput struct{ *pulumi.OutputState }
func (AggregateDeliveryOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AggregateDelivery)(nil)).Elem()
}
func (o AggregateDeliveryOutput) ToAggregateDeliveryOutput() AggregateDeliveryOutput {
return o
}
func (o AggregateDeliveryOutput) ToAggregateDeliveryOutputWithContext(ctx context.Context) AggregateDeliveryOutput {
return o
}
// The ID of the Aggregator.
func (o AggregateDeliveryOutput) AggregatorId() pulumi.StringOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.StringOutput { return v.AggregatorId }).(pulumi.StringOutput)
}
// Open or close delivery configuration change history.
func (o AggregateDeliveryOutput) ConfigurationItemChangeNotification() pulumi.BoolOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.BoolOutput { return v.ConfigurationItemChangeNotification }).(pulumi.BoolOutput)
}
// Open or close timed snapshot of shipping resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `OSS`.
func (o AggregateDeliveryOutput) ConfigurationSnapshot() pulumi.BoolOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.BoolOutput { return v.ConfigurationSnapshot }).(pulumi.BoolOutput)
}
// The rule attached to the delivery method. Please refer to api [CreateConfigDeliveryChannel](https://help.aliyun.com/document_detail/429798.html) for example format. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `MNS`.
func (o AggregateDeliveryOutput) DeliveryChannelCondition() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.StringPtrOutput { return v.DeliveryChannelCondition }).(pulumi.StringPtrOutput)
}
// The ID of the delivery method.
func (o AggregateDeliveryOutput) DeliveryChannelId() pulumi.StringOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.StringOutput { return v.DeliveryChannelId }).(pulumi.StringOutput)
}
// The name of the delivery method.
func (o AggregateDeliveryOutput) DeliveryChannelName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.StringPtrOutput { return v.DeliveryChannelName }).(pulumi.StringPtrOutput)
}
// The ARN of the delivery destination. The value must be in one of the following formats:
// * `acs:oss:{RegionId}:{Aliuid}:{bucketName}`: if your delivery destination is an Object Storage Service (OSS) bucket.
// * `acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}`: if your delivery destination is a Message Service (MNS) topic.
// * `acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}`: if your delivery destination is a Log Service Logstore.
func (o AggregateDeliveryOutput) DeliveryChannelTargetArn() pulumi.StringOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.StringOutput { return v.DeliveryChannelTargetArn }).(pulumi.StringOutput)
}
// The type of the delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
func (o AggregateDeliveryOutput) DeliveryChannelType() pulumi.StringOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.StringOutput { return v.DeliveryChannelType }).(pulumi.StringOutput)
}
// The description of the delivery method.
func (o AggregateDeliveryOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// Open or close non-compliance events of delivery resources. **NOTE:** The attribute is valid when the attribute `deliveryChannelType` is `SLS` or `MNS`.
func (o AggregateDeliveryOutput) NonCompliantNotification() pulumi.BoolOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.BoolOutput { return v.NonCompliantNotification }).(pulumi.BoolOutput)
}
// The oss ARN of the delivery channel when the value data oversized limit.
// * The value must be in one of the following formats: `acs:oss:{RegionId}:{accountId}:{bucketName}`, if your delivery destination is an Object Storage Service (OSS) bucket.
// * Only delivery channels `SLS` and `MNS` are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
func (o AggregateDeliveryOutput) OversizedDataOssTargetArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.StringPtrOutput { return v.OversizedDataOssTargetArn }).(pulumi.StringPtrOutput)
}
// The status of the delivery method. Valid values: `0`: The delivery method is disabled. `1`: The delivery destination is enabled. This is the default value.
func (o AggregateDeliveryOutput) Status() pulumi.IntOutput {
return o.ApplyT(func(v *AggregateDelivery) pulumi.IntOutput { return v.Status }).(pulumi.IntOutput)
}
type AggregateDeliveryArrayOutput struct{ *pulumi.OutputState }
func (AggregateDeliveryArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AggregateDelivery)(nil)).Elem()
}
func (o AggregateDeliveryArrayOutput) ToAggregateDeliveryArrayOutput() AggregateDeliveryArrayOutput {
return o
}
func (o AggregateDeliveryArrayOutput) ToAggregateDeliveryArrayOutputWithContext(ctx context.Context) AggregateDeliveryArrayOutput {
return o
}
func (o AggregateDeliveryArrayOutput) Index(i pulumi.IntInput) AggregateDeliveryOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AggregateDelivery {
return vs[0].([]*AggregateDelivery)[vs[1].(int)]
}).(AggregateDeliveryOutput)
}
type AggregateDeliveryMapOutput struct{ *pulumi.OutputState }
func (AggregateDeliveryMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AggregateDelivery)(nil)).Elem()
}
func (o AggregateDeliveryMapOutput) ToAggregateDeliveryMapOutput() AggregateDeliveryMapOutput {
return o
}
func (o AggregateDeliveryMapOutput) ToAggregateDeliveryMapOutputWithContext(ctx context.Context) AggregateDeliveryMapOutput {
return o
}
func (o AggregateDeliveryMapOutput) MapIndex(k pulumi.StringInput) AggregateDeliveryOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AggregateDelivery {
return vs[0].(map[string]*AggregateDelivery)[vs[1].(string)]
}).(AggregateDeliveryOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*AggregateDeliveryInput)(nil)).Elem(), &AggregateDelivery{})
pulumi.RegisterInputType(reflect.TypeOf((*AggregateDeliveryArrayInput)(nil)).Elem(), AggregateDeliveryArray{})
pulumi.RegisterInputType(reflect.TypeOf((*AggregateDeliveryMapInput)(nil)).Elem(), AggregateDeliveryMap{})
pulumi.RegisterOutputType(AggregateDeliveryOutput{})
pulumi.RegisterOutputType(AggregateDeliveryArrayOutput{})
pulumi.RegisterOutputType(AggregateDeliveryMapOutput{})
}