/*
* 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 CreateEndpoint operation.
/// Creates a global endpoint. Global endpoints improve your application's availability
/// by making it regional-fault tolerant. To do this, you define a primary and secondary
/// Region with event buses in each Region. You also create a Amazon RouteĀ 53 health check
/// that will tell EventBridge to route events to the secondary Region when an "unhealthy"
/// state is encountered and events will be routed back to the primary Region when the
/// health check reports a "healthy" state.
///
public partial class CreateEndpointRequest : AmazonEventBridgeRequest
{
private string _description;
private List _eventBuses = new List();
private string _name;
private ReplicationConfig _replicationConfig;
private string _roleArn;
private RoutingConfig _routingConfig;
///
/// Gets and sets the property Description.
///
/// A description of the global endpoint.
///
///
[AWSProperty(Max=512)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property EventBuses.
///
/// Define the event buses used.
///
///
///
/// The names of the event buses must be identical in each Region.
///
///
///
[AWSProperty(Required=true, Min=2, Max=2)]
public List EventBuses
{
get { return this._eventBuses; }
set { this._eventBuses = value; }
}
// Check to see if EventBuses property is set
internal bool IsSetEventBuses()
{
return this._eventBuses != null && this._eventBuses.Count > 0;
}
///
/// Gets and sets the property Name.
///
/// The name of the global endpoint. For example, "Name":"us-east-2-custom_bus_A-endpoint"
.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property ReplicationConfig.
///
/// Enable or disable event replication. The default state is ENABLED
which
/// means you must supply a RoleArn
. If you don't have a RoleArn
/// or you don't want event replication enabled, set the state to DISABLED
.
///
///
public ReplicationConfig ReplicationConfig
{
get { return this._replicationConfig; }
set { this._replicationConfig = value; }
}
// Check to see if ReplicationConfig property is set
internal bool IsSetReplicationConfig()
{
return this._replicationConfig != null;
}
///
/// Gets and sets the property RoleArn.
///
/// The ARN of the role used for replication.
///
///
[AWSProperty(Min=1, Max=256)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
///
/// Gets and sets the property RoutingConfig.
///
/// Configure the routing policy, including the health check and secondary Region..
///
///
[AWSProperty(Required=true)]
public RoutingConfig RoutingConfig
{
get { return this._routingConfig; }
set { this._routingConfig = value; }
}
// Check to see if RoutingConfig property is set
internal bool IsSetRoutingConfig()
{
return this._routingConfig != null;
}
}
}