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

Description

Displays details about an event bus in your account. This can include the external Amazon Web Services accounts that are permitted to write events to your default event bus, and the associated policy. For custom event buses and partner event buses, it displays the name, ARN, policy, state, and creation time.

To enable your account to receive events from other accounts on its default event bus, use PutPermission.

For more information about partner event buses, see CreateEventBus.

Synopsis

Creating a Request

data DescribeEventBus Source #

See: newDescribeEventBus smart constructor.

Constructors

DescribeEventBus' 

Fields

  • name :: Maybe Text

    The name or ARN of the event bus to show details for. If you omit this, the default event bus is displayed.

Instances

Instances details
Eq DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Read DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Show DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Generic DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Associated Types

type Rep DescribeEventBus :: Type -> Type #

NFData DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Methods

rnf :: DescribeEventBus -> () #

Hashable DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

ToJSON DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

AWSRequest DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Associated Types

type AWSResponse DescribeEventBus #

ToHeaders DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

ToPath DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

ToQuery DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

type Rep DescribeEventBus Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

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

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

newDescribeEventBus :: DescribeEventBus Source #

Create a value of DescribeEventBus 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:name:DescribeEventBus', describeEventBus_name - The name or ARN of the event bus to show details for. If you omit this, the default event bus is displayed.

Request Lenses

describeEventBus_name :: Lens' DescribeEventBus (Maybe Text) Source #

The name or ARN of the event bus to show details for. If you omit this, the default event bus is displayed.

Destructuring the Response

data DescribeEventBusResponse Source #

See: newDescribeEventBusResponse smart constructor.

Constructors

DescribeEventBusResponse' 

Fields

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the account permitted to write events to the current account.

  • name :: Maybe Text

    The name of the event bus. Currently, this is always default.

  • policy :: Maybe Text

    The policy that enables the external account to send events to your account.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Read DescribeEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Show DescribeEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Generic DescribeEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

Associated Types

type Rep DescribeEventBusResponse :: Type -> Type #

NFData DescribeEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

type Rep DescribeEventBusResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.DescribeEventBus

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

newDescribeEventBusResponse Source #

Create a value of DescribeEventBusResponse 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:arn:DescribeEventBusResponse', describeEventBusResponse_arn - The Amazon Resource Name (ARN) of the account permitted to write events to the current account.

$sel:name:DescribeEventBus', describeEventBusResponse_name - The name of the event bus. Currently, this is always default.

$sel:policy:DescribeEventBusResponse', describeEventBusResponse_policy - The policy that enables the external account to send events to your account.

$sel:httpStatus:DescribeEventBusResponse', describeEventBusResponse_httpStatus - The response's http status code.

Response Lenses

describeEventBusResponse_arn :: Lens' DescribeEventBusResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the account permitted to write events to the current account.

describeEventBusResponse_name :: Lens' DescribeEventBusResponse (Maybe Text) Source #

The name of the event bus. Currently, this is always default.

describeEventBusResponse_policy :: Lens' DescribeEventBusResponse (Maybe Text) Source #

The policy that enables the external account to send events to your account.