Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data CreateEndpoint = CreateEndpoint' {}
- newCreateEndpoint :: Text -> RoutingConfig -> NonEmpty EndpointEventBus -> CreateEndpoint
- createEndpoint_description :: Lens' CreateEndpoint (Maybe Text)
- createEndpoint_replicationConfig :: Lens' CreateEndpoint (Maybe ReplicationConfig)
- createEndpoint_roleArn :: Lens' CreateEndpoint (Maybe Text)
- createEndpoint_name :: Lens' CreateEndpoint Text
- createEndpoint_routingConfig :: Lens' CreateEndpoint RoutingConfig
- createEndpoint_eventBuses :: Lens' CreateEndpoint (NonEmpty EndpointEventBus)
- data CreateEndpointResponse = CreateEndpointResponse' {}
- newCreateEndpointResponse :: Int -> CreateEndpointResponse
- createEndpointResponse_arn :: Lens' CreateEndpointResponse (Maybe Text)
- createEndpointResponse_eventBuses :: Lens' CreateEndpointResponse (Maybe (NonEmpty EndpointEventBus))
- createEndpointResponse_name :: Lens' CreateEndpointResponse (Maybe Text)
- createEndpointResponse_replicationConfig :: Lens' CreateEndpointResponse (Maybe ReplicationConfig)
- createEndpointResponse_roleArn :: Lens' CreateEndpointResponse (Maybe Text)
- createEndpointResponse_routingConfig :: Lens' CreateEndpointResponse (Maybe RoutingConfig)
- createEndpointResponse_state :: Lens' CreateEndpointResponse (Maybe EndpointState)
- createEndpointResponse_httpStatus :: Lens' CreateEndpointResponse Int
Creating a Request
data CreateEndpoint Source #
See: newCreateEndpoint
smart constructor.
CreateEndpoint' | |
|
Instances
Create a value of CreateEndpoint
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateEndpoint
, createEndpoint_description
- A description of the global endpoint.
CreateEndpoint
, createEndpoint_replicationConfig
- Enable or disable event replication.
CreateEndpoint
, createEndpoint_roleArn
- The ARN of the role used for replication.
CreateEndpoint
, createEndpoint_name
- The name of the global endpoint. For example,
"Name":"us-east-2-custom_bus_A-endpoint"
.
CreateEndpoint
, createEndpoint_routingConfig
- Configure the routing policy, including the health check and secondary
Region..
CreateEndpoint
, createEndpoint_eventBuses
- Define the event buses used.
The names of the event buses must be identical in each Region.
Request Lenses
createEndpoint_description :: Lens' CreateEndpoint (Maybe Text) Source #
A description of the global endpoint.
createEndpoint_replicationConfig :: Lens' CreateEndpoint (Maybe ReplicationConfig) Source #
Enable or disable event replication.
createEndpoint_roleArn :: Lens' CreateEndpoint (Maybe Text) Source #
The ARN of the role used for replication.
createEndpoint_name :: Lens' CreateEndpoint Text Source #
The name of the global endpoint. For example,
"Name":"us-east-2-custom_bus_A-endpoint"
.
createEndpoint_routingConfig :: Lens' CreateEndpoint RoutingConfig Source #
Configure the routing policy, including the health check and secondary Region..
createEndpoint_eventBuses :: Lens' CreateEndpoint (NonEmpty EndpointEventBus) Source #
Define the event buses used.
The names of the event buses must be identical in each Region.
Destructuring the Response
data CreateEndpointResponse Source #
See: newCreateEndpointResponse
smart constructor.
CreateEndpointResponse' | |
|
Instances
newCreateEndpointResponse Source #
Create a value of CreateEndpointResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateEndpointResponse
, createEndpointResponse_arn
- The ARN of the endpoint that was created by this request.
CreateEndpoint
, createEndpointResponse_eventBuses
- The event buses used by this request.
CreateEndpoint
, createEndpointResponse_name
- The name of the endpoint that was created by this request.
CreateEndpoint
, createEndpointResponse_replicationConfig
- Whether event replication was enabled or disabled by this request.
CreateEndpoint
, createEndpointResponse_roleArn
- The ARN of the role used by event replication for this request.
CreateEndpoint
, createEndpointResponse_routingConfig
- The routing configuration defined by this request.
CreateEndpointResponse
, createEndpointResponse_state
- The state of the endpoint that was created by this request.
$sel:httpStatus:CreateEndpointResponse'
, createEndpointResponse_httpStatus
- The response's http status code.
Response Lenses
createEndpointResponse_arn :: Lens' CreateEndpointResponse (Maybe Text) Source #
The ARN of the endpoint that was created by this request.
createEndpointResponse_eventBuses :: Lens' CreateEndpointResponse (Maybe (NonEmpty EndpointEventBus)) Source #
The event buses used by this request.
createEndpointResponse_name :: Lens' CreateEndpointResponse (Maybe Text) Source #
The name of the endpoint that was created by this request.
createEndpointResponse_replicationConfig :: Lens' CreateEndpointResponse (Maybe ReplicationConfig) Source #
Whether event replication was enabled or disabled by this request.
createEndpointResponse_roleArn :: Lens' CreateEndpointResponse (Maybe Text) Source #
The ARN of the role used by event replication for this request.
createEndpointResponse_routingConfig :: Lens' CreateEndpointResponse (Maybe RoutingConfig) Source #
The routing configuration defined by this request.
createEndpointResponse_state :: Lens' CreateEndpointResponse (Maybe EndpointState) Source #
The state of the endpoint that was created by this request.
createEndpointResponse_httpStatus :: Lens' CreateEndpointResponse Int Source #
The response's http status code.