Package com.pulumi.kubernetes.core.v1
Class EventPatch
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.kubernetes.core.v1.EventPatch
-
public class EventPatch extends com.pulumi.resources.CustomResource
Patch resources are used to modify existing Kubernetes resources by using Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource. Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/installation-configuration/#server-side-apply) for additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi. Event is a report of an event somewhere in the cluster. 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.
-
-
Constructor Summary
Constructors Constructor Description EventPatch(java.lang.String name)
EventPatch(java.lang.String name, EventPatchArgs args)
EventPatch(java.lang.String name, EventPatchArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.lang.String>>
action()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
apiVersion()
com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>
count()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
eventTime()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
firstTimestamp()
static EventPatch
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<ObjectReferencePatch>>
involvedObject()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
kind()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
lastTimestamp()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
message()
com.pulumi.core.Output<java.util.Optional<ObjectMetaPatch>>
metadata()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
reason()
com.pulumi.core.Output<java.util.Optional<ObjectReferencePatch>>
related()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
reportingComponent()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
reportingInstance()
com.pulumi.core.Output<java.util.Optional<EventSeriesPatch>>
series()
com.pulumi.core.Output<java.util.Optional<EventSourcePatch>>
source()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
type()
-
-
-
Constructor Detail
-
EventPatch
public EventPatch(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
EventPatch
public EventPatch(java.lang.String name, @Nullable EventPatchArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
EventPatch
public EventPatch(java.lang.String name, @Nullable EventPatchArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
action
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> action()
- Returns:
- What action was taken/failed regarding to the Regarding object.
-
apiVersion
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> apiVersion()
- Returns:
- 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
-
count
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> count()
- Returns:
- The number of times this event has occurred.
-
eventTime
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> eventTime()
- Returns:
- Time when this Event was first observed.
-
firstTimestamp
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> firstTimestamp()
- Returns:
- The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
-
involvedObject
public com.pulumi.core.Output<java.util.Optional<ObjectReferencePatch>> involvedObject()
- Returns:
- The object that this event is about.
-
kind
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> kind()
- Returns:
- 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
-
lastTimestamp
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> lastTimestamp()
- Returns:
- The time at which the most recent occurrence of this event was recorded.
-
message
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> message()
- Returns:
- A human-readable description of the status of this operation.
-
metadata
public com.pulumi.core.Output<java.util.Optional<ObjectMetaPatch>> metadata()
- Returns:
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-
reason
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> reason()
- Returns:
- This should be a short, machine understandable string that gives the reason for the transition into the object's current status.
-
related
public com.pulumi.core.Output<java.util.Optional<ObjectReferencePatch>> related()
- Returns:
- Optional secondary object for more complex actions.
-
reportingComponent
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> reportingComponent()
- Returns:
- Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
-
reportingInstance
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> reportingInstance()
- Returns:
- ID of the controller instance, e.g. `kubelet-xyzf`.
-
series
public com.pulumi.core.Output<java.util.Optional<EventSeriesPatch>> series()
- Returns:
- Data about the Event series this event represents or nil if it's a singleton Event.
-
source
public com.pulumi.core.Output<java.util.Optional<EventSourcePatch>> source()
- Returns:
- The component reporting this event. Should be a short machine understandable string.
-
type
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> type()
- Returns:
- Type of this event (Normal, Warning), new types could be added in the future
-
get
public static EventPatch get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-