github.com/pulumi/pulumi-kubernetes/sdk/v3@v3.30.2/go/kubernetes/events/v1/eventPatch.go (about) 1 // Code generated by pulumigen DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package v1 5 6 import ( 7 "context" 8 "reflect" 9 10 corev1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/core/v1" 11 metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/meta/v1" 12 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 13 ) 14 15 // Patch resources are used to modify existing Kubernetes resources by using 16 // Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than 17 // one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource. 18 // Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the 19 // [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for 20 // additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi. 21 // Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. 22 type EventPatch struct { 23 pulumi.CustomResourceState 24 25 // action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. 26 Action pulumi.StringPtrOutput `pulumi:"action"` 27 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 28 ApiVersion pulumi.StringPtrOutput `pulumi:"apiVersion"` 29 // deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. 30 DeprecatedCount pulumi.IntPtrOutput `pulumi:"deprecatedCount"` 31 // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. 32 DeprecatedFirstTimestamp pulumi.StringPtrOutput `pulumi:"deprecatedFirstTimestamp"` 33 // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. 34 DeprecatedLastTimestamp pulumi.StringPtrOutput `pulumi:"deprecatedLastTimestamp"` 35 // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. 36 DeprecatedSource corev1.EventSourcePatchPtrOutput `pulumi:"deprecatedSource"` 37 // eventTime is the time when this Event was first observed. It is required. 38 EventTime pulumi.StringPtrOutput `pulumi:"eventTime"` 39 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 40 Kind pulumi.StringPtrOutput `pulumi:"kind"` 41 // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 42 Metadata metav1.ObjectMetaPatchPtrOutput `pulumi:"metadata"` 43 // note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. 44 Note pulumi.StringPtrOutput `pulumi:"note"` 45 // reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. 46 Reason pulumi.StringPtrOutput `pulumi:"reason"` 47 // regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. 48 Regarding corev1.ObjectReferencePatchPtrOutput `pulumi:"regarding"` 49 // related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. 50 Related corev1.ObjectReferencePatchPtrOutput `pulumi:"related"` 51 // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. 52 ReportingController pulumi.StringPtrOutput `pulumi:"reportingController"` 53 // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. 54 ReportingInstance pulumi.StringPtrOutput `pulumi:"reportingInstance"` 55 // series is data about the Event series this event represents or nil if it's a singleton Event. 56 Series EventSeriesPatchPtrOutput `pulumi:"series"` 57 // type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. 58 Type pulumi.StringPtrOutput `pulumi:"type"` 59 } 60 61 // NewEventPatch registers a new resource with the given unique name, arguments, and options. 62 func NewEventPatch(ctx *pulumi.Context, 63 name string, args *EventPatchArgs, opts ...pulumi.ResourceOption) (*EventPatch, error) { 64 if args == nil { 65 args = &EventPatchArgs{} 66 } 67 68 args.ApiVersion = pulumi.StringPtr("events.k8s.io/v1") 69 args.Kind = pulumi.StringPtr("Event") 70 aliases := pulumi.Aliases([]pulumi.Alias{ 71 { 72 Type: pulumi.String("kubernetes:core/v1:EventPatch"), 73 }, 74 { 75 Type: pulumi.String("kubernetes:events.k8s.io/v1beta1:EventPatch"), 76 }, 77 }) 78 opts = append(opts, aliases) 79 var resource EventPatch 80 err := ctx.RegisterResource("kubernetes:events.k8s.io/v1:EventPatch", name, args, &resource, opts...) 81 if err != nil { 82 return nil, err 83 } 84 return &resource, nil 85 } 86 87 // GetEventPatch gets an existing EventPatch resource's state with the given name, ID, and optional 88 // state properties that are used to uniquely qualify the lookup (nil if not required). 89 func GetEventPatch(ctx *pulumi.Context, 90 name string, id pulumi.IDInput, state *EventPatchState, opts ...pulumi.ResourceOption) (*EventPatch, error) { 91 var resource EventPatch 92 err := ctx.ReadResource("kubernetes:events.k8s.io/v1:EventPatch", name, id, state, &resource, opts...) 93 if err != nil { 94 return nil, err 95 } 96 return &resource, nil 97 } 98 99 // Input properties used for looking up and filtering EventPatch resources. 100 type eventPatchState struct { 101 } 102 103 type EventPatchState struct { 104 } 105 106 func (EventPatchState) ElementType() reflect.Type { 107 return reflect.TypeOf((*eventPatchState)(nil)).Elem() 108 } 109 110 type eventPatchArgs struct { 111 // action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. 112 Action *string `pulumi:"action"` 113 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 114 ApiVersion *string `pulumi:"apiVersion"` 115 // deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. 116 DeprecatedCount *int `pulumi:"deprecatedCount"` 117 // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. 118 DeprecatedFirstTimestamp *string `pulumi:"deprecatedFirstTimestamp"` 119 // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. 120 DeprecatedLastTimestamp *string `pulumi:"deprecatedLastTimestamp"` 121 // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. 122 DeprecatedSource *corev1.EventSourcePatch `pulumi:"deprecatedSource"` 123 // eventTime is the time when this Event was first observed. It is required. 124 EventTime *string `pulumi:"eventTime"` 125 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 126 Kind *string `pulumi:"kind"` 127 // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 128 Metadata *metav1.ObjectMetaPatch `pulumi:"metadata"` 129 // note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. 130 Note *string `pulumi:"note"` 131 // reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. 132 Reason *string `pulumi:"reason"` 133 // regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. 134 Regarding *corev1.ObjectReferencePatch `pulumi:"regarding"` 135 // related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. 136 Related *corev1.ObjectReferencePatch `pulumi:"related"` 137 // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. 138 ReportingController *string `pulumi:"reportingController"` 139 // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. 140 ReportingInstance *string `pulumi:"reportingInstance"` 141 // series is data about the Event series this event represents or nil if it's a singleton Event. 142 Series *EventSeriesPatch `pulumi:"series"` 143 // type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. 144 Type *string `pulumi:"type"` 145 } 146 147 // The set of arguments for constructing a EventPatch resource. 148 type EventPatchArgs struct { 149 // action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. 150 Action pulumi.StringPtrInput 151 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 152 ApiVersion pulumi.StringPtrInput 153 // deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. 154 DeprecatedCount pulumi.IntPtrInput 155 // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. 156 DeprecatedFirstTimestamp pulumi.StringPtrInput 157 // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. 158 DeprecatedLastTimestamp pulumi.StringPtrInput 159 // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. 160 DeprecatedSource corev1.EventSourcePatchPtrInput 161 // eventTime is the time when this Event was first observed. It is required. 162 EventTime pulumi.StringPtrInput 163 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 164 Kind pulumi.StringPtrInput 165 // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 166 Metadata metav1.ObjectMetaPatchPtrInput 167 // note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. 168 Note pulumi.StringPtrInput 169 // reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. 170 Reason pulumi.StringPtrInput 171 // regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. 172 Regarding corev1.ObjectReferencePatchPtrInput 173 // related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. 174 Related corev1.ObjectReferencePatchPtrInput 175 // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. 176 ReportingController pulumi.StringPtrInput 177 // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. 178 ReportingInstance pulumi.StringPtrInput 179 // series is data about the Event series this event represents or nil if it's a singleton Event. 180 Series EventSeriesPatchPtrInput 181 // type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. 182 Type pulumi.StringPtrInput 183 } 184 185 func (EventPatchArgs) ElementType() reflect.Type { 186 return reflect.TypeOf((*eventPatchArgs)(nil)).Elem() 187 } 188 189 type EventPatchInput interface { 190 pulumi.Input 191 192 ToEventPatchOutput() EventPatchOutput 193 ToEventPatchOutputWithContext(ctx context.Context) EventPatchOutput 194 } 195 196 func (*EventPatch) ElementType() reflect.Type { 197 return reflect.TypeOf((**EventPatch)(nil)).Elem() 198 } 199 200 func (i *EventPatch) ToEventPatchOutput() EventPatchOutput { 201 return i.ToEventPatchOutputWithContext(context.Background()) 202 } 203 204 func (i *EventPatch) ToEventPatchOutputWithContext(ctx context.Context) EventPatchOutput { 205 return pulumi.ToOutputWithContext(ctx, i).(EventPatchOutput) 206 } 207 208 // EventPatchArrayInput is an input type that accepts EventPatchArray and EventPatchArrayOutput values. 209 // You can construct a concrete instance of `EventPatchArrayInput` via: 210 // 211 // EventPatchArray{ EventPatchArgs{...} } 212 type EventPatchArrayInput interface { 213 pulumi.Input 214 215 ToEventPatchArrayOutput() EventPatchArrayOutput 216 ToEventPatchArrayOutputWithContext(context.Context) EventPatchArrayOutput 217 } 218 219 type EventPatchArray []EventPatchInput 220 221 func (EventPatchArray) ElementType() reflect.Type { 222 return reflect.TypeOf((*[]*EventPatch)(nil)).Elem() 223 } 224 225 func (i EventPatchArray) ToEventPatchArrayOutput() EventPatchArrayOutput { 226 return i.ToEventPatchArrayOutputWithContext(context.Background()) 227 } 228 229 func (i EventPatchArray) ToEventPatchArrayOutputWithContext(ctx context.Context) EventPatchArrayOutput { 230 return pulumi.ToOutputWithContext(ctx, i).(EventPatchArrayOutput) 231 } 232 233 // EventPatchMapInput is an input type that accepts EventPatchMap and EventPatchMapOutput values. 234 // You can construct a concrete instance of `EventPatchMapInput` via: 235 // 236 // EventPatchMap{ "key": EventPatchArgs{...} } 237 type EventPatchMapInput interface { 238 pulumi.Input 239 240 ToEventPatchMapOutput() EventPatchMapOutput 241 ToEventPatchMapOutputWithContext(context.Context) EventPatchMapOutput 242 } 243 244 type EventPatchMap map[string]EventPatchInput 245 246 func (EventPatchMap) ElementType() reflect.Type { 247 return reflect.TypeOf((*map[string]*EventPatch)(nil)).Elem() 248 } 249 250 func (i EventPatchMap) ToEventPatchMapOutput() EventPatchMapOutput { 251 return i.ToEventPatchMapOutputWithContext(context.Background()) 252 } 253 254 func (i EventPatchMap) ToEventPatchMapOutputWithContext(ctx context.Context) EventPatchMapOutput { 255 return pulumi.ToOutputWithContext(ctx, i).(EventPatchMapOutput) 256 } 257 258 type EventPatchOutput struct{ *pulumi.OutputState } 259 260 func (EventPatchOutput) ElementType() reflect.Type { 261 return reflect.TypeOf((**EventPatch)(nil)).Elem() 262 } 263 264 func (o EventPatchOutput) ToEventPatchOutput() EventPatchOutput { 265 return o 266 } 267 268 func (o EventPatchOutput) ToEventPatchOutputWithContext(ctx context.Context) EventPatchOutput { 269 return o 270 } 271 272 // action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. 273 func (o EventPatchOutput) Action() pulumi.StringPtrOutput { 274 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.Action }).(pulumi.StringPtrOutput) 275 } 276 277 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 278 func (o EventPatchOutput) ApiVersion() pulumi.StringPtrOutput { 279 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.ApiVersion }).(pulumi.StringPtrOutput) 280 } 281 282 // deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. 283 func (o EventPatchOutput) DeprecatedCount() pulumi.IntPtrOutput { 284 return o.ApplyT(func(v *EventPatch) pulumi.IntPtrOutput { return v.DeprecatedCount }).(pulumi.IntPtrOutput) 285 } 286 287 // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. 288 func (o EventPatchOutput) DeprecatedFirstTimestamp() pulumi.StringPtrOutput { 289 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.DeprecatedFirstTimestamp }).(pulumi.StringPtrOutput) 290 } 291 292 // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. 293 func (o EventPatchOutput) DeprecatedLastTimestamp() pulumi.StringPtrOutput { 294 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.DeprecatedLastTimestamp }).(pulumi.StringPtrOutput) 295 } 296 297 // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. 298 func (o EventPatchOutput) DeprecatedSource() corev1.EventSourcePatchPtrOutput { 299 return o.ApplyT(func(v *EventPatch) corev1.EventSourcePatchPtrOutput { return v.DeprecatedSource }).(corev1.EventSourcePatchPtrOutput) 300 } 301 302 // eventTime is the time when this Event was first observed. It is required. 303 func (o EventPatchOutput) EventTime() pulumi.StringPtrOutput { 304 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.EventTime }).(pulumi.StringPtrOutput) 305 } 306 307 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 308 func (o EventPatchOutput) Kind() pulumi.StringPtrOutput { 309 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.Kind }).(pulumi.StringPtrOutput) 310 } 311 312 // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 313 func (o EventPatchOutput) Metadata() metav1.ObjectMetaPatchPtrOutput { 314 return o.ApplyT(func(v *EventPatch) metav1.ObjectMetaPatchPtrOutput { return v.Metadata }).(metav1.ObjectMetaPatchPtrOutput) 315 } 316 317 // note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. 318 func (o EventPatchOutput) Note() pulumi.StringPtrOutput { 319 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.Note }).(pulumi.StringPtrOutput) 320 } 321 322 // reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. 323 func (o EventPatchOutput) Reason() pulumi.StringPtrOutput { 324 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.Reason }).(pulumi.StringPtrOutput) 325 } 326 327 // regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. 328 func (o EventPatchOutput) Regarding() corev1.ObjectReferencePatchPtrOutput { 329 return o.ApplyT(func(v *EventPatch) corev1.ObjectReferencePatchPtrOutput { return v.Regarding }).(corev1.ObjectReferencePatchPtrOutput) 330 } 331 332 // related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. 333 func (o EventPatchOutput) Related() corev1.ObjectReferencePatchPtrOutput { 334 return o.ApplyT(func(v *EventPatch) corev1.ObjectReferencePatchPtrOutput { return v.Related }).(corev1.ObjectReferencePatchPtrOutput) 335 } 336 337 // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. 338 func (o EventPatchOutput) ReportingController() pulumi.StringPtrOutput { 339 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.ReportingController }).(pulumi.StringPtrOutput) 340 } 341 342 // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. 343 func (o EventPatchOutput) ReportingInstance() pulumi.StringPtrOutput { 344 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.ReportingInstance }).(pulumi.StringPtrOutput) 345 } 346 347 // series is data about the Event series this event represents or nil if it's a singleton Event. 348 func (o EventPatchOutput) Series() EventSeriesPatchPtrOutput { 349 return o.ApplyT(func(v *EventPatch) EventSeriesPatchPtrOutput { return v.Series }).(EventSeriesPatchPtrOutput) 350 } 351 352 // type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. 353 func (o EventPatchOutput) Type() pulumi.StringPtrOutput { 354 return o.ApplyT(func(v *EventPatch) pulumi.StringPtrOutput { return v.Type }).(pulumi.StringPtrOutput) 355 } 356 357 type EventPatchArrayOutput struct{ *pulumi.OutputState } 358 359 func (EventPatchArrayOutput) ElementType() reflect.Type { 360 return reflect.TypeOf((*[]*EventPatch)(nil)).Elem() 361 } 362 363 func (o EventPatchArrayOutput) ToEventPatchArrayOutput() EventPatchArrayOutput { 364 return o 365 } 366 367 func (o EventPatchArrayOutput) ToEventPatchArrayOutputWithContext(ctx context.Context) EventPatchArrayOutput { 368 return o 369 } 370 371 func (o EventPatchArrayOutput) Index(i pulumi.IntInput) EventPatchOutput { 372 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *EventPatch { 373 return vs[0].([]*EventPatch)[vs[1].(int)] 374 }).(EventPatchOutput) 375 } 376 377 type EventPatchMapOutput struct{ *pulumi.OutputState } 378 379 func (EventPatchMapOutput) ElementType() reflect.Type { 380 return reflect.TypeOf((*map[string]*EventPatch)(nil)).Elem() 381 } 382 383 func (o EventPatchMapOutput) ToEventPatchMapOutput() EventPatchMapOutput { 384 return o 385 } 386 387 func (o EventPatchMapOutput) ToEventPatchMapOutputWithContext(ctx context.Context) EventPatchMapOutput { 388 return o 389 } 390 391 func (o EventPatchMapOutput) MapIndex(k pulumi.StringInput) EventPatchOutput { 392 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *EventPatch { 393 return vs[0].(map[string]*EventPatch)[vs[1].(string)] 394 }).(EventPatchOutput) 395 } 396 397 func init() { 398 pulumi.RegisterInputType(reflect.TypeOf((*EventPatchInput)(nil)).Elem(), &EventPatch{}) 399 pulumi.RegisterInputType(reflect.TypeOf((*EventPatchArrayInput)(nil)).Elem(), EventPatchArray{}) 400 pulumi.RegisterInputType(reflect.TypeOf((*EventPatchMapInput)(nil)).Elem(), EventPatchMap{}) 401 pulumi.RegisterOutputType(EventPatchOutput{}) 402 pulumi.RegisterOutputType(EventPatchArrayOutput{}) 403 pulumi.RegisterOutputType(EventPatchMapOutput{}) 404 }