amazonka-cloudwatch-events-2.0: Amazon EventBridge SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatchEvents.CreateEndpoint

Description

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

Creating a Request

data CreateEndpoint Source #

See: newCreateEndpoint smart constructor.

Constructors

CreateEndpoint' 

Fields

Instances

Instances details
ToJSON CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

ToHeaders CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

ToPath CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

ToQuery CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

AWSRequest CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

Associated Types

type AWSResponse CreateEndpoint #

Generic CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

Associated Types

type Rep CreateEndpoint :: Type -> Type #

Read CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

Show CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

NFData CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

Methods

rnf :: CreateEndpoint -> () #

Eq CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

Hashable CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

type AWSResponse CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

type Rep CreateEndpoint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

type Rep CreateEndpoint = D1 ('MetaData "CreateEndpoint" "Amazonka.CloudWatchEvents.CreateEndpoint" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "CreateEndpoint'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "replicationConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReplicationConfig)) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "routingConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoutingConfig) :*: S1 ('MetaSel ('Just "eventBuses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty EndpointEventBus))))))

newCreateEndpoint Source #

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_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.

Constructors

CreateEndpointResponse' 

Fields

Instances

Instances details
Generic CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

Associated Types

type Rep CreateEndpointResponse :: Type -> Type #

Read CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

Show CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

NFData CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

Methods

rnf :: CreateEndpointResponse -> () #

Eq CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

type Rep CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEndpoint

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_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.