/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the health-2016-08-04.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AWSHealth.Model
{
///
/// Container for the parameters to the DescribeEventDetailsForOrganization operation.
/// Returns detailed information about one or more specified events for one or more Amazon
/// Web Services accounts in your organization. This information includes standard event
/// data (such as the Amazon Web Services Region and service), an event description, and
/// (depending on the event) possible metadata. This operation doesn't return affected
/// entities, such as the resources related to the event. To return affected entities,
/// use the DescribeAffectedEntitiesForOrganization
/// operation.
///
///
///
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the EnableHealthServiceAccessForOrganization
/// operation from your organization's management account.
///
///
///
/// When you call the DescribeEventDetailsForOrganization
operation, specify
/// the organizationEventDetailFilters
object in the request. Depending on
/// the Health event type, note the following differences:
///
/// -
///
/// To return event details for a public event, you must specify a null value for the
///
awsAccountId
parameter. If you specify an account ID for a public event,
/// Health returns an error message because public events aren't specific to an account.
///
/// -
///
/// To return event details for an event that is specific to an account in your organization,
/// you must specify the
awsAccountId
parameter in the request. If you don't
/// specify an account ID, Health returns an error message because the event is specific
/// to an account in your organization.
///
///
///
/// For more information, see Event.
///
///
///
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see Resource-
/// and action-based conditions in the Health User Guide.
///
///
///
public partial class DescribeEventDetailsForOrganizationRequest : AmazonAWSHealthRequest
{
private string _locale;
private List _organizationEventDetailFilters = new List();
///
/// Gets and sets the property Locale.
///
/// The locale (language) to return information in. English (en) is the default and the
/// only supported value at this time.
///
///
[AWSProperty(Min=2, Max=256)]
public string Locale
{
get { return this._locale; }
set { this._locale = value; }
}
// Check to see if Locale property is set
internal bool IsSetLocale()
{
return this._locale != null;
}
///
/// Gets and sets the property OrganizationEventDetailFilters.
///
/// A set of JSON elements that includes the awsAccountId
and the eventArn
.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List OrganizationEventDetailFilters
{
get { return this._organizationEventDetailFilters; }
set { this._organizationEventDetailFilters = value; }
}
// Check to see if OrganizationEventDetailFilters property is set
internal bool IsSetOrganizationEventDetailFilters()
{
return this._organizationEventDetailFilters != null && this._organizationEventDetailFilters.Count > 0;
}
}
}