/*
* 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 eventbridge-2015-10-07.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.EventBridge.Model
{
///
/// Container for the parameters to the TestEventPattern operation.
/// Tests whether the specified event pattern matches the provided event.
///
///
///
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
///
///
public partial class TestEventPatternRequest : AmazonEventBridgeRequest
{
private string _event;
private string _eventPattern;
///
/// Gets and sets the property Event.
///
/// The event, in JSON format, to test against the event pattern. The JSON must follow
/// the format specified in Amazon
/// Web Services Events, and the following fields are mandatory:
///
/// -
///
///
id
///
/// -
///
///
account
///
/// -
///
///
source
///
/// -
///
///
time
///
/// -
///
///
region
///
/// -
///
///
resources
///
/// -
///
///
detail-type
///
///
///
[AWSProperty(Required=true)]
public string Event
{
get { return this._event; }
set { this._event = value; }
}
// Check to see if Event property is set
internal bool IsSetEvent()
{
return this._event != null;
}
///
/// Gets and sets the property EventPattern.
///
/// The event pattern. For more information, see Events
/// and Event Patterns in the Amazon EventBridge User Guide.
///
///
[AWSProperty(Required=true, Max=4096)]
public string EventPattern
{
get { return this._eventPattern; }
set { this._eventPattern = value; }
}
// Check to see if EventPattern property is set
internal bool IsSetEventPattern()
{
return this._eventPattern != null;
}
}
}