AWS SDK for C++  1.8.125
AWS SDK for C++
Public Member Functions | List of all members
Aws::SSM::Model::Target Class Reference

#include <Target.h>

Public Member Functions

 Target ()
 
 Target (Aws::Utils::Json::JsonView jsonValue)
 
Targetoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const Aws::StringGetKey () const
 
bool KeyHasBeenSet () const
 
void SetKey (const Aws::String &value)
 
void SetKey (Aws::String &&value)
 
void SetKey (const char *value)
 
TargetWithKey (const Aws::String &value)
 
TargetWithKey (Aws::String &&value)
 
TargetWithKey (const char *value)
 
const Aws::Vector< Aws::String > & GetValues () const
 
bool ValuesHasBeenSet () const
 
void SetValues (const Aws::Vector< Aws::String > &value)
 
void SetValues (Aws::Vector< Aws::String > &&value)
 
TargetWithValues (const Aws::Vector< Aws::String > &value)
 
TargetWithValues (Aws::Vector< Aws::String > &&value)
 
TargetAddValues (const Aws::String &value)
 
TargetAddValues (Aws::String &&value)
 
TargetAddValues (const char *value)
 

Detailed Description

An array of search criteria that targets instances using a Key,Value combination that you specify.

One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, AWS Lambda, and AWS Step Functions). For more information about running tasks that do not specify targets, see Registering maintenance window tasks without targets in the AWS Systems Manager User Guide.

Supported formats include the following.

For example:

For more information about how to send commands that target instances using Key,Value parameters, see Targeting multiple instances in the AWS Systems Manager User Guide.

See Also:

AWS API Reference

Definition at line 74 of file Target.h.

Constructor & Destructor Documentation

◆ Target() [1/2]

Aws::SSM::Model::Target::Target ( )

◆ Target() [2/2]

Aws::SSM::Model::Target::Target ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ AddValues() [1/3]

Target& Aws::SSM::Model::Target::AddValues ( Aws::String &&  value)
inline

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Definition at line 194 of file Target.h.

◆ AddValues() [2/3]

Target& Aws::SSM::Model::Target::AddValues ( const Aws::String value)
inline

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Definition at line 186 of file Target.h.

◆ AddValues() [3/3]

Target& Aws::SSM::Model::Target::AddValues ( const char *  value)
inline

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Definition at line 202 of file Target.h.

◆ GetKey()

const Aws::String& Aws::SSM::Model::Target::GetKey ( ) const
inline

User-defined criteria for sending commands that target instances that meet the criteria.

Definition at line 87 of file Target.h.

◆ GetValues()

const Aws::Vector<Aws::String>& Aws::SSM::Model::Target::GetValues ( ) const
inline

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Definition at line 138 of file Target.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::SSM::Model::Target::Jsonize ( ) const

◆ KeyHasBeenSet()

bool Aws::SSM::Model::Target::KeyHasBeenSet ( ) const
inline

User-defined criteria for sending commands that target instances that meet the criteria.

Definition at line 93 of file Target.h.

◆ operator=()

Target& Aws::SSM::Model::Target::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetKey() [1/3]

void Aws::SSM::Model::Target::SetKey ( Aws::String &&  value)
inline

User-defined criteria for sending commands that target instances that meet the criteria.

Definition at line 105 of file Target.h.

◆ SetKey() [2/3]

void Aws::SSM::Model::Target::SetKey ( const Aws::String value)
inline

User-defined criteria for sending commands that target instances that meet the criteria.

Definition at line 99 of file Target.h.

◆ SetKey() [3/3]

void Aws::SSM::Model::Target::SetKey ( const char *  value)
inline

User-defined criteria for sending commands that target instances that meet the criteria.

Definition at line 111 of file Target.h.

◆ SetValues() [1/2]

void Aws::SSM::Model::Target::SetValues ( Aws::Vector< Aws::String > &&  value)
inline

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Definition at line 162 of file Target.h.

◆ SetValues() [2/2]

void Aws::SSM::Model::Target::SetValues ( const Aws::Vector< Aws::String > &  value)
inline

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Definition at line 154 of file Target.h.

◆ ValuesHasBeenSet()

bool Aws::SSM::Model::Target::ValuesHasBeenSet ( ) const
inline

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Definition at line 146 of file Target.h.

◆ WithKey() [1/3]

Target& Aws::SSM::Model::Target::WithKey ( Aws::String &&  value)
inline

User-defined criteria for sending commands that target instances that meet the criteria.

Definition at line 123 of file Target.h.

◆ WithKey() [2/3]

Target& Aws::SSM::Model::Target::WithKey ( const Aws::String value)
inline

User-defined criteria for sending commands that target instances that meet the criteria.

Definition at line 117 of file Target.h.

◆ WithKey() [3/3]

Target& Aws::SSM::Model::Target::WithKey ( const char *  value)
inline

User-defined criteria for sending commands that target instances that meet the criteria.

Definition at line 129 of file Target.h.

◆ WithValues() [1/2]

Target& Aws::SSM::Model::Target::WithValues ( Aws::Vector< Aws::String > &&  value)
inline

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Definition at line 178 of file Target.h.

◆ WithValues() [2/2]

Target& Aws::SSM::Model::Target::WithValues ( const Aws::Vector< Aws::String > &  value)
inline

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Definition at line 170 of file Target.h.


The documentation for this class was generated from the following file: