/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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:
AWS API
* Reference
The unique identifier for the event. The event ARN has the
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
*
format.
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
*
The unique identifier for the event. The event ARN has the
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
*
format.
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
*
The unique identifier for the event. The event ARN has the
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
*
format.
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
*
The unique identifier for the event. The event ARN has the
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
*
format.
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
*
The unique identifier for the event. The event ARN has the
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
*
format.
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
*
The unique identifier for the event. The event ARN has the
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
*
format.
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
*
The unique identifier for the event. The event ARN has the
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
*
format.
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
*
The unique identifier for the event. The event ARN has the
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
*
format.
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
*
The Amazon Web Service that is affected by the event. For example,
* EC2
, RDS
.
The Amazon Web Service that is affected by the event. For example,
* EC2
, RDS
.
The Amazon Web Service that is affected by the event. For example,
* EC2
, RDS
.
The Amazon Web Service that is affected by the event. For example,
* EC2
, RDS
.
The Amazon Web Service that is affected by the event. For example,
* EC2
, RDS
.
The Amazon Web Service that is affected by the event. For example,
* EC2
, RDS
.
The Amazon Web Service that is affected by the event. For example,
* EC2
, RDS
.
The Amazon Web Service that is affected by the event. For example,
* EC2
, RDS
.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION
; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION
; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION
; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION
; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION
; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION
; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION
; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION
; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
A list of event type category codes. Possible values are issue
,
* accountNotification
, or scheduledChange
. Currently,
* the investigation
value isn't supported at this time.
A list of event type category codes. Possible values are issue
,
* accountNotification
, or scheduledChange
. Currently,
* the investigation
value isn't supported at this time.
A list of event type category codes. Possible values are issue
,
* accountNotification
, or scheduledChange
. Currently,
* the investigation
value isn't supported at this time.
A list of event type category codes. Possible values are issue
,
* accountNotification
, or scheduledChange
. Currently,
* the investigation
value isn't supported at this time.
A list of event type category codes. Possible values are issue
,
* accountNotification
, or scheduledChange
. Currently,
* the investigation
value isn't supported at this time.
A list of event type category codes. Possible values are issue
,
* accountNotification
, or scheduledChange
. Currently,
* the investigation
value isn't supported at this time.
The Amazon Web Services Region name of the event.
*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *The Amazon Web Services Region name of the event.
*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *The Amazon Web Services Region name of the event.
*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *The Amazon Web Services Region name of the event.
*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *The Amazon Web Services Region name of the event.
*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *The Amazon Web Services Region name of the event.
*/ inline Event& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *The Amazon Web Services Region name of the event.
*/ inline Event& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *The Amazon Web Services Region name of the event.
*/ inline Event& WithRegion(const char* value) { SetRegion(value); return *this;} /** *The Amazon Web Services Availability Zone of the event. For example, * us-east-1a.
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The Amazon Web Services Availability Zone of the event. For example, * us-east-1a.
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The Amazon Web Services Availability Zone of the event. For example, * us-east-1a.
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The Amazon Web Services Availability Zone of the event. For example, * us-east-1a.
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The Amazon Web Services Availability Zone of the event. For example, * us-east-1a.
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The Amazon Web Services Availability Zone of the event. For example, * us-east-1a.
*/ inline Event& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Amazon Web Services Availability Zone of the event. For example, * us-east-1a.
*/ inline Event& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Amazon Web Services Availability Zone of the event. For example, * us-east-1a.
*/ inline Event& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *The date and time that the event began.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The date and time that the event began.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The date and time that the event began.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The date and time that the event began.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The date and time that the event began.
*/ inline Event& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The date and time that the event began.
*/ inline Event& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The date and time that the event ended.
*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *The date and time that the event ended.
*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *The date and time that the event ended.
*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *The date and time that the event ended.
*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *The date and time that the event ended.
*/ inline Event& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The date and time that the event ended.
*/ inline Event& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *The most recent date and time that the event was updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *The most recent date and time that the event was updated.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *The most recent date and time that the event was updated.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *The most recent date and time that the event was updated.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *The most recent date and time that the event was updated.
*/ inline Event& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The most recent date and time that the event was updated.
*/ inline Event& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *The most recent status of the event. Possible values are open
,
* closed
, and upcoming
.
The most recent status of the event. Possible values are open
,
* closed
, and upcoming
.
The most recent status of the event. Possible values are open
,
* closed
, and upcoming
.
The most recent status of the event. Possible values are open
,
* closed
, and upcoming
.
The most recent status of the event. Possible values are open
,
* closed
, and upcoming
.
The most recent status of the event. Possible values are open
,
* closed
, and upcoming
.
This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.
If the
* eventScopeCode
value is PUBLIC
, then the
* affectedAccounts
value is always empty.
If the
* eventScopeCode
value is ACCOUNT_SPECIFIC
, then the
* affectedAccounts
value 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 eventScopeCode
value is NONE
, then the
* eventArn
that you specified in the request is invalid or doesn't
* exist.
This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.
If the
* eventScopeCode
value is PUBLIC
, then the
* affectedAccounts
value is always empty.
If the
* eventScopeCode
value is ACCOUNT_SPECIFIC
, then the
* affectedAccounts
value 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 eventScopeCode
value is NONE
, then the
* eventArn
that you specified in the request is invalid or doesn't
* exist.
This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.
If the
* eventScopeCode
value is PUBLIC
, then the
* affectedAccounts
value is always empty.
If the
* eventScopeCode
value is ACCOUNT_SPECIFIC
, then the
* affectedAccounts
value 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 eventScopeCode
value is NONE
, then the
* eventArn
that you specified in the request is invalid or doesn't
* exist.
This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.
If the
* eventScopeCode
value is PUBLIC
, then the
* affectedAccounts
value is always empty.
If the
* eventScopeCode
value is ACCOUNT_SPECIFIC
, then the
* affectedAccounts
value 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 eventScopeCode
value is NONE
, then the
* eventArn
that you specified in the request is invalid or doesn't
* exist.
This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.
If the
* eventScopeCode
value is PUBLIC
, then the
* affectedAccounts
value is always empty.
If the
* eventScopeCode
value is ACCOUNT_SPECIFIC
, then the
* affectedAccounts
value 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 eventScopeCode
value is NONE
, then the
* eventArn
that you specified in the request is invalid or doesn't
* exist.
This parameter specifies if the Health event is a public Amazon Web Service * event or an account-specific event.
If the
* eventScopeCode
value is PUBLIC
, then the
* affectedAccounts
value is always empty.
If the
* eventScopeCode
value is ACCOUNT_SPECIFIC
, then the
* affectedAccounts
value 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 eventScopeCode
value is NONE
, then the
* eventArn
that you specified in the request is invalid or doesn't
* exist.