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.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
FromJSON RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

ToJSON 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 #

Read RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

Show RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

NFData RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

Methods

rnf :: RunCommandTarget -> () #

Eq RunCommandTarget Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.RunCommandTarget

Hashable 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" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" '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.