libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudWatchEvents.CreateEventBus

Description

Creates a new event bus within your account. This can be a custom event bus which you can use to receive events from your custom applications and services, or it can be a partner event bus which can be matched to a partner event source.

Synopsis

Creating a Request

data CreateEventBus Source #

See: newCreateEventBus smart constructor.

Constructors

CreateEventBus' 

Fields

  • eventSourceName :: Maybe Text

    If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.

  • tags :: Maybe [Tag]

    Tags to associate with the event bus.

  • name :: Text

    The name of the new event bus.

    Event bus names cannot contain the / character. You can't use the name default for a custom event bus, as this name is already used for your account's default event bus.

    If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to.

Instances

Instances details
Eq CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Read CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Show CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Generic CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Associated Types

type Rep CreateEventBus :: Type -> Type #

NFData CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Methods

rnf :: CreateEventBus -> () #

Hashable CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

ToJSON CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

AWSRequest CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Associated Types

type AWSResponse CreateEventBus #

ToHeaders CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

ToPath CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

ToQuery CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

type Rep CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

type Rep CreateEventBus = D1 ('MetaData "CreateEventBus" "Amazonka.CloudWatchEvents.CreateEventBus" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "CreateEventBus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventSourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

newCreateEventBus Source #

Create a value of CreateEventBus 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:

$sel:eventSourceName:CreateEventBus', createEventBus_eventSourceName - If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.

$sel:tags:CreateEventBus', createEventBus_tags - Tags to associate with the event bus.

$sel:name:CreateEventBus', createEventBus_name - The name of the new event bus.

Event bus names cannot contain the / character. You can't use the name default for a custom event bus, as this name is already used for your account's default event bus.

If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to.

Request Lenses

createEventBus_eventSourceName :: Lens' CreateEventBus (Maybe Text) Source #

If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.

createEventBus_tags :: Lens' CreateEventBus (Maybe [Tag]) Source #

Tags to associate with the event bus.

createEventBus_name :: Lens' CreateEventBus Text Source #

The name of the new event bus.

Event bus names cannot contain the / character. You can't use the name default for a custom event bus, as this name is already used for your account's default event bus.

If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to.

Destructuring the Response

data CreateEventBusResponse Source #

See: newCreateEventBusResponse smart constructor.

Constructors

CreateEventBusResponse' 

Fields

Instances

Instances details
Eq CreateEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Read CreateEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Show CreateEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Generic CreateEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Associated Types

type Rep CreateEventBusResponse :: Type -> Type #

NFData CreateEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

Methods

rnf :: CreateEventBusResponse -> () #

type Rep CreateEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateEventBus

type Rep CreateEventBusResponse = D1 ('MetaData "CreateEventBusResponse" "Amazonka.CloudWatchEvents.CreateEventBus" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "CreateEventBusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventBusArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateEventBusResponse Source #

Create a value of CreateEventBusResponse 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:

$sel:eventBusArn:CreateEventBusResponse', createEventBusResponse_eventBusArn - The ARN of the new event bus.

$sel:httpStatus:CreateEventBusResponse', createEventBusResponse_httpStatus - The response's http status code.

Response Lenses