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

Description

Enables the specified rule. If the rule does not exist, the operation fails.

When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Allow a short period of time for changes to take effect.

Synopsis

Creating a Request

data EnableRule Source #

See: newEnableRule smart constructor.

Constructors

EnableRule' 

Fields

  • eventBusName :: Maybe Text

    The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.

  • name :: Text

    The name of the rule.

Instances

Instances details
Eq EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Read EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Show EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Generic EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Associated Types

type Rep EnableRule :: Type -> Type #

NFData EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Methods

rnf :: EnableRule -> () #

Hashable EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

ToJSON EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

AWSRequest EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Associated Types

type AWSResponse EnableRule #

ToHeaders EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Methods

toHeaders :: EnableRule -> [Header] #

ToPath EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

ToQuery EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

type Rep EnableRule Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

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

Defined in Amazonka.CloudWatchEvents.EnableRule

newEnableRule Source #

Create a value of EnableRule 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:eventBusName:EnableRule', enableRule_eventBusName - The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.

$sel:name:EnableRule', enableRule_name - The name of the rule.

Request Lenses

enableRule_eventBusName :: Lens' EnableRule (Maybe Text) Source #

The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.

enableRule_name :: Lens' EnableRule Text Source #

The name of the rule.

Destructuring the Response

data EnableRuleResponse Source #

See: newEnableRuleResponse smart constructor.

Constructors

EnableRuleResponse' 

Instances

Instances details
Eq EnableRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Read EnableRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Show EnableRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Generic EnableRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Associated Types

type Rep EnableRuleResponse :: Type -> Type #

NFData EnableRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

Methods

rnf :: EnableRuleResponse -> () #

type Rep EnableRuleResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.EnableRule

type Rep EnableRuleResponse = D1 ('MetaData "EnableRuleResponse" "Amazonka.CloudWatchEvents.EnableRule" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "EnableRuleResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newEnableRuleResponse :: EnableRuleResponse Source #

Create a value of EnableRuleResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.