Class Event
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Event.Builder,Event>
Summary information about an Health event.
Health events can be public or account-specific:
-
Public events might be service events that are not specific to an Amazon Web Services account. For example, if there is an issue with an Amazon Web Services Region, Health provides information about the event, even if you don't use services or resources in that Region.
-
Account-specific events are specific to either your Amazon Web Services account or an account in your organization. For example, if there's an issue with Amazon Elastic Compute Cloud in a Region that you use, Health provides information about the event and the affected resources in the account.
You can determine if an event is public or account-specific by using the eventScopeCode parameter. For
more information, see eventScopeCode.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal EventActionabilityThe actionability classification of the event.final StringThe actionability classification of the event.final Stringarn()The unique identifier for the event.final StringThe Amazon Web Services Availability Zone of the event.static Event.Builderbuilder()final InstantendTime()The date and time that the event ended.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final EventScopeCodeThis parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific event.final StringThis parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific event.final EventTypeCategoryA list of event type category codes.final StringA list of event type category codes.final StringThe unique identifier for the event type.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Personas property.final InstantThe most recent date and time that the event was updated.final List<EventPersona> personas()A list of persona classifications that indicate the target audience for the event.A list of persona classifications that indicate the target audience for the event.final Stringregion()The Amazon Web Services Region name of the event.static Class<? extends Event.Builder> final Stringservice()The Amazon Web Services service that is affected by the event.final InstantThe date and time that the event began.final EventStatusCodeThe most recent status of the event.final StringThe most recent status of the event.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
arn
The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_IDformat.For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456- Returns:
- The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_IDformat.For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
-
service
The Amazon Web Services service that is affected by the event. For example,
EC2,RDS.- Returns:
- The Amazon Web Services service that is affected by the event. For example,
EC2,RDS.
-
eventTypeCode
The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION; for example,AWS_EC2_SYSTEM_MAINTENANCE_EVENT.- Returns:
- The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION; for example,AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
-
eventTypeCategory
A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time.If the service returns an enum value that is not available in the current SDK version,
eventTypeCategorywill returnEventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventTypeCategoryAsString().- Returns:
- A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time. - See Also:
-
eventTypeCategoryAsString
A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time.If the service returns an enum value that is not available in the current SDK version,
eventTypeCategorywill returnEventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventTypeCategoryAsString().- Returns:
- A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time. - See Also:
-
region
The Amazon Web Services Region name of the event.
- Returns:
- The Amazon Web Services Region name of the event.
-
availabilityZone
The Amazon Web Services Availability Zone of the event. For example, us-east-1a.
- Returns:
- The Amazon Web Services Availability Zone of the event. For example, us-east-1a.
-
startTime
The date and time that the event began.
- Returns:
- The date and time that the event began.
-
endTime
The date and time that the event ended.
- Returns:
- The date and time that the event ended.
-
lastUpdatedTime
The most recent date and time that the event was updated.
- Returns:
- The most recent date and time that the event was updated.
-
statusCode
The most recent status of the event. Possible values are
open,closed, andupcoming.If the service returns an enum value that is not available in the current SDK version,
statusCode()will returnEventStatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusCodeAsString().- Returns:
- The most recent status of the event. Possible values are
open,closed, andupcoming. - See Also:
-
statusCodeAsString
The most recent status of the event. Possible values are
open,closed, andupcoming.If the service returns an enum value that is not available in the current SDK version,
statusCode()will returnEventStatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusCodeAsString().- Returns:
- The most recent status of the event. Possible values are
open,closed, andupcoming. - See Also:
-
eventScopeCode
This parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific event.
-
If the
eventScopeCodevalue isPUBLIC, then theaffectedAccountsvalue is always empty. -
If the
eventScopeCodevalue isACCOUNT_SPECIFIC, then theaffectedAccountsvalue lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. -
If the
eventScopeCodevalue isNONE, then theeventArnthat you specified in the request is invalid or doesn't exist.
If the service returns an enum value that is not available in the current SDK version,
eventScopeCodewill returnEventScopeCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventScopeCodeAsString().- Returns:
- This parameter specifies if the Health event is a public Amazon Web Services service event or an
account-specific event.
-
If the
eventScopeCodevalue isPUBLIC, then theaffectedAccountsvalue is always empty. -
If the
eventScopeCodevalue isACCOUNT_SPECIFIC, then theaffectedAccountsvalue lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. -
If the
eventScopeCodevalue isNONE, then theeventArnthat you specified in the request is invalid or doesn't exist.
-
- See Also:
-
-
eventScopeCodeAsString
This parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific event.
-
If the
eventScopeCodevalue isPUBLIC, then theaffectedAccountsvalue is always empty. -
If the
eventScopeCodevalue isACCOUNT_SPECIFIC, then theaffectedAccountsvalue lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. -
If the
eventScopeCodevalue isNONE, then theeventArnthat you specified in the request is invalid or doesn't exist.
If the service returns an enum value that is not available in the current SDK version,
eventScopeCodewill returnEventScopeCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventScopeCodeAsString().- Returns:
- This parameter specifies if the Health event is a public Amazon Web Services service event or an
account-specific event.
-
If the
eventScopeCodevalue isPUBLIC, then theaffectedAccountsvalue is always empty. -
If the
eventScopeCodevalue isACCOUNT_SPECIFIC, then theaffectedAccountsvalue lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. -
If the
eventScopeCodevalue isNONE, then theeventArnthat you specified in the request is invalid or doesn't exist.
-
- See Also:
-
-
actionability
The actionability classification of the event. Possible values are
ACTION_REQUIRED,ACTION_MAY_BE_REQUIREDandINFORMATIONAL. Events withACTION_REQUIREDactionability require customer action to resolve or mitigate the event. Events withACTION_MAY_BE_REQUIREDactionability indicates that the current status is unknown or conditional and inspection is needed to determine if action is required. Events withINFORMATIONALactionability are provided for awareness and do not require immediate action.If the service returns an enum value that is not available in the current SDK version,
actionabilitywill returnEventActionability.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionabilityAsString().- Returns:
- The actionability classification of the event. Possible values are
ACTION_REQUIRED,ACTION_MAY_BE_REQUIREDandINFORMATIONAL. Events withACTION_REQUIREDactionability require customer action to resolve or mitigate the event. Events withACTION_MAY_BE_REQUIREDactionability indicates that the current status is unknown or conditional and inspection is needed to determine if action is required. Events withINFORMATIONALactionability are provided for awareness and do not require immediate action. - See Also:
-
actionabilityAsString
The actionability classification of the event. Possible values are
ACTION_REQUIRED,ACTION_MAY_BE_REQUIREDandINFORMATIONAL. Events withACTION_REQUIREDactionability require customer action to resolve or mitigate the event. Events withACTION_MAY_BE_REQUIREDactionability indicates that the current status is unknown or conditional and inspection is needed to determine if action is required. Events withINFORMATIONALactionability are provided for awareness and do not require immediate action.If the service returns an enum value that is not available in the current SDK version,
actionabilitywill returnEventActionability.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionabilityAsString().- Returns:
- The actionability classification of the event. Possible values are
ACTION_REQUIRED,ACTION_MAY_BE_REQUIREDandINFORMATIONAL. Events withACTION_REQUIREDactionability require customer action to resolve or mitigate the event. Events withACTION_MAY_BE_REQUIREDactionability indicates that the current status is unknown or conditional and inspection is needed to determine if action is required. Events withINFORMATIONALactionability are provided for awareness and do not require immediate action. - See Also:
-
personas
A list of persona classifications that indicate the target audience for the event. Possible values are
OPERATIONS,SECURITY, andBILLING. Events can be associated with multiple personas to indicate relevance to different teams or roles within an organization.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPersonas()method.- Returns:
- A list of persona classifications that indicate the target audience for the event. Possible values are
OPERATIONS,SECURITY, andBILLING. Events can be associated with multiple personas to indicate relevance to different teams or roles within an organization.
-
hasPersonas
public final boolean hasPersonas()For responses, this returns true if the service returned a value for the Personas property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
personasAsStrings
A list of persona classifications that indicate the target audience for the event. Possible values are
OPERATIONS,SECURITY, andBILLING. Events can be associated with multiple personas to indicate relevance to different teams or roles within an organization.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPersonas()method.- Returns:
- A list of persona classifications that indicate the target audience for the event. Possible values are
OPERATIONS,SECURITY, andBILLING. Events can be associated with multiple personas to indicate relevance to different teams or roles within an organization.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Event.Builder,Event> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-