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.Types.RunCommandTarget

Description

 
Synopsis

Documentation

data RunCommandTarget Source #

Information about the EC2 instances that are to be sent the command, specified as key-value pairs. Each RunCommandTarget block can include only one key, but this key may specify multiple values.

See: newRunCommandTarget smart constructor.

Constructors

RunCommandTarget' 

Fields

  • key :: Text

    Can be either tag: tag-key or InstanceIds.

  • values :: NonEmpty Text

    If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs.

Instances

Instances details
Eq RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

Read RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

Show RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

Generic RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

Associated Types

type Rep RunCommandTarget :: Type -> Type #

NFData RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

Methods

rnf :: RunCommandTarget -> () #

Hashable RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

ToJSON RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

FromJSON RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

type Rep RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

type Rep RunCommandTarget = D1 ('MetaData "RunCommandTarget" "Amazonka.CloudWatchEvents.Types.RunCommandTarget" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "RunCommandTarget'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text))))

newRunCommandTarget Source #

Create a value of RunCommandTarget 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:key:RunCommandTarget', runCommandTarget_key - Can be either tag: tag-key or InstanceIds.

$sel:values:RunCommandTarget', runCommandTarget_values - If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs.

runCommandTarget_key :: Lens' RunCommandTarget Text Source #

Can be either tag: tag-key or InstanceIds.

runCommandTarget_values :: Lens' RunCommandTarget (NonEmpty Text) Source #

If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs.