AWS SDK for C++  1.9.1
AWS SDK for C++
Public Member Functions | Protected Member Functions | List of all members
Aws::EC2::Model::CreateImageRequest Class Reference

#include <CreateImageRequest.h>

+ Inheritance diagram for Aws::EC2::Model::CreateImageRequest:

Public Member Functions

 CreateImageRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings () const
 
bool BlockDeviceMappingsHasBeenSet () const
 
void SetBlockDeviceMappings (const Aws::Vector< BlockDeviceMapping > &value)
 
void SetBlockDeviceMappings (Aws::Vector< BlockDeviceMapping > &&value)
 
CreateImageRequestWithBlockDeviceMappings (const Aws::Vector< BlockDeviceMapping > &value)
 
CreateImageRequestWithBlockDeviceMappings (Aws::Vector< BlockDeviceMapping > &&value)
 
CreateImageRequestAddBlockDeviceMappings (const BlockDeviceMapping &value)
 
CreateImageRequestAddBlockDeviceMappings (BlockDeviceMapping &&value)
 
const Aws::StringGetDescription () const
 
bool DescriptionHasBeenSet () const
 
void SetDescription (const Aws::String &value)
 
void SetDescription (Aws::String &&value)
 
void SetDescription (const char *value)
 
CreateImageRequestWithDescription (const Aws::String &value)
 
CreateImageRequestWithDescription (Aws::String &&value)
 
CreateImageRequestWithDescription (const char *value)
 
bool GetDryRun () const
 
bool DryRunHasBeenSet () const
 
void SetDryRun (bool value)
 
CreateImageRequestWithDryRun (bool value)
 
const Aws::StringGetInstanceId () const
 
bool InstanceIdHasBeenSet () const
 
void SetInstanceId (const Aws::String &value)
 
void SetInstanceId (Aws::String &&value)
 
void SetInstanceId (const char *value)
 
CreateImageRequestWithInstanceId (const Aws::String &value)
 
CreateImageRequestWithInstanceId (Aws::String &&value)
 
CreateImageRequestWithInstanceId (const char *value)
 
const Aws::StringGetName () const
 
bool NameHasBeenSet () const
 
void SetName (const Aws::String &value)
 
void SetName (Aws::String &&value)
 
void SetName (const char *value)
 
CreateImageRequestWithName (const Aws::String &value)
 
CreateImageRequestWithName (Aws::String &&value)
 
CreateImageRequestWithName (const char *value)
 
bool GetNoReboot () const
 
bool NoRebootHasBeenSet () const
 
void SetNoReboot (bool value)
 
CreateImageRequestWithNoReboot (bool value)
 
const Aws::Vector< TagSpecification > & GetTagSpecifications () const
 
bool TagSpecificationsHasBeenSet () const
 
void SetTagSpecifications (const Aws::Vector< TagSpecification > &value)
 
void SetTagSpecifications (Aws::Vector< TagSpecification > &&value)
 
CreateImageRequestWithTagSpecifications (const Aws::Vector< TagSpecification > &value)
 
CreateImageRequestWithTagSpecifications (Aws::Vector< TagSpecification > &&value)
 
CreateImageRequestAddTagSpecifications (const TagSpecification &value)
 
CreateImageRequestAddTagSpecifications (TagSpecification &&value)
 
- Public Member Functions inherited from Aws::EC2::EC2Request
virtual ~EC2Request ()
 
void AddParametersToRequest (Aws::Http::HttpRequest &httpRequest) const
 
Aws::Http::HeaderValueCollection GetHeaders () const override
 
- Public Member Functions inherited from Aws::AmazonSerializableWebServiceRequest
 AmazonSerializableWebServiceRequest ()
 
virtual ~AmazonSerializableWebServiceRequest ()
 
std::shared_ptr< Aws::IOStreamGetBody () const override
 
- Public Member Functions inherited from Aws::AmazonWebServiceRequest
 AmazonWebServiceRequest ()
 
virtual ~AmazonWebServiceRequest ()=default
 
virtual void AddQueryStringParameters (Aws::Http::URI &uri) const
 
virtual void PutToPresignedUrl (Aws::Http::URI &uri) const
 
virtual bool IsStreaming () const
 
virtual bool IsEventStreamRequest () const
 
virtual bool SignBody () const
 
virtual bool IsChunked () const
 
virtual void SetRequestSignedHandler (const RequestSignedHandler &handler)
 
virtual const RequestSignedHandlerGetRequestSignedHandler () const
 
const Aws::IOStreamFactoryGetResponseStreamFactory () const
 
void SetResponseStreamFactory (const Aws::IOStreamFactory &factory)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
virtual void SetRequestRetryHandler (RequestRetryHandler &&handler)
 
virtual const Aws::Http::DataReceivedEventHandlerGetDataReceivedEventHandler () const
 
virtual const Aws::Http::DataSentEventHandlerGetDataSentEventHandler () const
 
virtual const Aws::Http::ContinueRequestHandlerGetContinueRequestHandler () const
 
virtual const RequestRetryHandlerGetRequestRetryHandler () const
 
virtual bool ShouldComputeContentMd5 () const
 

Protected Member Functions

void DumpBodyToUrl (Aws::Http::URI &uri) const override
 
- Protected Member Functions inherited from Aws::EC2::EC2Request
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders () const
 

Detailed Description

Definition at line 24 of file CreateImageRequest.h.

Constructor & Destructor Documentation

◆ CreateImageRequest()

Aws::EC2::Model::CreateImageRequest::CreateImageRequest ( )

Member Function Documentation

◆ AddBlockDeviceMappings() [1/2]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::AddBlockDeviceMappings ( BlockDeviceMapping &&  value)
inline

The block device mappings. This parameter cannot be used to modify the encryption status of existing volumes or snapshots. To create an AMI with encrypted snapshots, use the CopyImage action.

Definition at line 96 of file CreateImageRequest.h.

◆ AddBlockDeviceMappings() [2/2]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::AddBlockDeviceMappings ( const BlockDeviceMapping value)
inline

The block device mappings. This parameter cannot be used to modify the encryption status of existing volumes or snapshots. To create an AMI with encrypted snapshots, use the CopyImage action.

Definition at line 89 of file CreateImageRequest.h.

◆ AddTagSpecifications() [1/2]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::AddTagSpecifications ( const TagSpecification value)
inline

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the snapshots, or both.

  • To tag the AMI, the value for ResourceType must be image.

  • To tag the snapshots that are created of the root volume and of other EBS volumes that are attached to the instance, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created.

If you specify other values for ResourceType, the request fails.

To tag an AMI or snapshot after it has been created, see CreateTags.

Definition at line 407 of file CreateImageRequest.h.

◆ AddTagSpecifications() [2/2]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::AddTagSpecifications ( TagSpecification &&  value)
inline

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the snapshots, or both.

  • To tag the AMI, the value for ResourceType must be image.

  • To tag the snapshots that are created of the root volume and of other EBS volumes that are attached to the instance, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created.

If you specify other values for ResourceType, the request fails.

To tag an AMI or snapshot after it has been created, see CreateTags.

Definition at line 422 of file CreateImageRequest.h.

◆ BlockDeviceMappingsHasBeenSet()

bool Aws::EC2::Model::CreateImageRequest::BlockDeviceMappingsHasBeenSet ( ) const
inline

The block device mappings. This parameter cannot be used to modify the encryption status of existing volumes or snapshots. To create an AMI with encrypted snapshots, use the CopyImage action.

Definition at line 54 of file CreateImageRequest.h.

◆ DescriptionHasBeenSet()

bool Aws::EC2::Model::CreateImageRequest::DescriptionHasBeenSet ( ) const
inline

A description for the new image.

Definition at line 107 of file CreateImageRequest.h.

◆ DryRunHasBeenSet()

bool Aws::EC2::Model::CreateImageRequest::DryRunHasBeenSet ( ) const
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 154 of file CreateImageRequest.h.

◆ DumpBodyToUrl()

void Aws::EC2::Model::CreateImageRequest::DumpBodyToUrl ( Aws::Http::URI uri) const
overrideprotectedvirtual

Default does nothing. Override this to convert what would otherwise be the payload of the request to a query string format.

Reimplemented from Aws::AmazonWebServiceRequest.

◆ GetBlockDeviceMappings()

const Aws::Vector<BlockDeviceMapping>& Aws::EC2::Model::CreateImageRequest::GetBlockDeviceMappings ( ) const
inline

The block device mappings. This parameter cannot be used to modify the encryption status of existing volumes or snapshots. To create an AMI with encrypted snapshots, use the CopyImage action.

Definition at line 47 of file CreateImageRequest.h.

◆ GetDescription()

const Aws::String& Aws::EC2::Model::CreateImageRequest::GetDescription ( ) const
inline

A description for the new image.

Definition at line 102 of file CreateImageRequest.h.

◆ GetDryRun()

bool Aws::EC2::Model::CreateImageRequest::GetDryRun ( ) const
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 146 of file CreateImageRequest.h.

◆ GetInstanceId()

const Aws::String& Aws::EC2::Model::CreateImageRequest::GetInstanceId ( ) const
inline

The ID of the instance.

Definition at line 176 of file CreateImageRequest.h.

◆ GetName()

const Aws::String& Aws::EC2::Model::CreateImageRequest::GetName ( ) const
inline

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

Definition at line 219 of file CreateImageRequest.h.

◆ GetNoReboot()

bool Aws::EC2::Model::CreateImageRequest::GetNoReboot ( ) const
inline

By default, Amazon EC2 attempts to shut down and reboot the instance before creating the image. If the No Reboot option is set, Amazon EC2 doesn't shut down the instance before creating the image. When this option is used, file system integrity on the created image can't be guaranteed.

Definition at line 277 of file CreateImageRequest.h.

◆ GetServiceRequestName()

virtual const char* Aws::EC2::Model::CreateImageRequest::GetServiceRequestName ( ) const
inlineoverridevirtual

Implements Aws::AmazonWebServiceRequest.

Definition at line 33 of file CreateImageRequest.h.

◆ GetTagSpecifications()

const Aws::Vector<TagSpecification>& Aws::EC2::Model::CreateImageRequest::GetTagSpecifications ( ) const
inline

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the snapshots, or both.

  • To tag the AMI, the value for ResourceType must be image.

  • To tag the snapshots that are created of the root volume and of other EBS volumes that are attached to the instance, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created.

If you specify other values for ResourceType, the request fails.

To tag an AMI or snapshot after it has been created, see CreateTags.

Definition at line 317 of file CreateImageRequest.h.

◆ InstanceIdHasBeenSet()

bool Aws::EC2::Model::CreateImageRequest::InstanceIdHasBeenSet ( ) const
inline

The ID of the instance.

Definition at line 181 of file CreateImageRequest.h.

◆ NameHasBeenSet()

bool Aws::EC2::Model::CreateImageRequest::NameHasBeenSet ( ) const
inline

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

Definition at line 226 of file CreateImageRequest.h.

◆ NoRebootHasBeenSet()

bool Aws::EC2::Model::CreateImageRequest::NoRebootHasBeenSet ( ) const
inline

By default, Amazon EC2 attempts to shut down and reboot the instance before creating the image. If the No Reboot option is set, Amazon EC2 doesn't shut down the instance before creating the image. When this option is used, file system integrity on the created image can't be guaranteed.

Definition at line 285 of file CreateImageRequest.h.

◆ SerializePayload()

Aws::String Aws::EC2::Model::CreateImageRequest::SerializePayload ( ) const
overridevirtual

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetBlockDeviceMappings() [1/2]

void Aws::EC2::Model::CreateImageRequest::SetBlockDeviceMappings ( Aws::Vector< BlockDeviceMapping > &&  value)
inline

The block device mappings. This parameter cannot be used to modify the encryption status of existing volumes or snapshots. To create an AMI with encrypted snapshots, use the CopyImage action.

Definition at line 68 of file CreateImageRequest.h.

◆ SetBlockDeviceMappings() [2/2]

void Aws::EC2::Model::CreateImageRequest::SetBlockDeviceMappings ( const Aws::Vector< BlockDeviceMapping > &  value)
inline

The block device mappings. This parameter cannot be used to modify the encryption status of existing volumes or snapshots. To create an AMI with encrypted snapshots, use the CopyImage action.

Definition at line 61 of file CreateImageRequest.h.

◆ SetDescription() [1/3]

void Aws::EC2::Model::CreateImageRequest::SetDescription ( Aws::String &&  value)
inline

A description for the new image.

Definition at line 117 of file CreateImageRequest.h.

◆ SetDescription() [2/3]

void Aws::EC2::Model::CreateImageRequest::SetDescription ( const Aws::String value)
inline

A description for the new image.

Definition at line 112 of file CreateImageRequest.h.

◆ SetDescription() [3/3]

void Aws::EC2::Model::CreateImageRequest::SetDescription ( const char *  value)
inline

A description for the new image.

Definition at line 122 of file CreateImageRequest.h.

◆ SetDryRun()

void Aws::EC2::Model::CreateImageRequest::SetDryRun ( bool  value)
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 162 of file CreateImageRequest.h.

◆ SetInstanceId() [1/3]

void Aws::EC2::Model::CreateImageRequest::SetInstanceId ( Aws::String &&  value)
inline

The ID of the instance.

Definition at line 191 of file CreateImageRequest.h.

◆ SetInstanceId() [2/3]

void Aws::EC2::Model::CreateImageRequest::SetInstanceId ( const Aws::String value)
inline

The ID of the instance.

Definition at line 186 of file CreateImageRequest.h.

◆ SetInstanceId() [3/3]

void Aws::EC2::Model::CreateImageRequest::SetInstanceId ( const char *  value)
inline

The ID of the instance.

Definition at line 196 of file CreateImageRequest.h.

◆ SetName() [1/3]

void Aws::EC2::Model::CreateImageRequest::SetName ( Aws::String &&  value)
inline

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

Definition at line 240 of file CreateImageRequest.h.

◆ SetName() [2/3]

void Aws::EC2::Model::CreateImageRequest::SetName ( const Aws::String value)
inline

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

Definition at line 233 of file CreateImageRequest.h.

◆ SetName() [3/3]

void Aws::EC2::Model::CreateImageRequest::SetName ( const char *  value)
inline

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

Definition at line 247 of file CreateImageRequest.h.

◆ SetNoReboot()

void Aws::EC2::Model::CreateImageRequest::SetNoReboot ( bool  value)
inline

By default, Amazon EC2 attempts to shut down and reboot the instance before creating the image. If the No Reboot option is set, Amazon EC2 doesn't shut down the instance before creating the image. When this option is used, file system integrity on the created image can't be guaranteed.

Definition at line 293 of file CreateImageRequest.h.

◆ SetTagSpecifications() [1/2]

void Aws::EC2::Model::CreateImageRequest::SetTagSpecifications ( Aws::Vector< TagSpecification > &&  value)
inline

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the snapshots, or both.

  • To tag the AMI, the value for ResourceType must be image.

  • To tag the snapshots that are created of the root volume and of other EBS volumes that are attached to the instance, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created.

If you specify other values for ResourceType, the request fails.

To tag an AMI or snapshot after it has been created, see CreateTags.

Definition at line 362 of file CreateImageRequest.h.

◆ SetTagSpecifications() [2/2]

void Aws::EC2::Model::CreateImageRequest::SetTagSpecifications ( const Aws::Vector< TagSpecification > &  value)
inline

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the snapshots, or both.

  • To tag the AMI, the value for ResourceType must be image.

  • To tag the snapshots that are created of the root volume and of other EBS volumes that are attached to the instance, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created.

If you specify other values for ResourceType, the request fails.

To tag an AMI or snapshot after it has been created, see CreateTags.

Definition at line 347 of file CreateImageRequest.h.

◆ TagSpecificationsHasBeenSet()

bool Aws::EC2::Model::CreateImageRequest::TagSpecificationsHasBeenSet ( ) const
inline

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the snapshots, or both.

  • To tag the AMI, the value for ResourceType must be image.

  • To tag the snapshots that are created of the root volume and of other EBS volumes that are attached to the instance, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created.

If you specify other values for ResourceType, the request fails.

To tag an AMI or snapshot after it has been created, see CreateTags.

Definition at line 332 of file CreateImageRequest.h.

◆ WithBlockDeviceMappings() [1/2]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithBlockDeviceMappings ( Aws::Vector< BlockDeviceMapping > &&  value)
inline

The block device mappings. This parameter cannot be used to modify the encryption status of existing volumes or snapshots. To create an AMI with encrypted snapshots, use the CopyImage action.

Definition at line 82 of file CreateImageRequest.h.

◆ WithBlockDeviceMappings() [2/2]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithBlockDeviceMappings ( const Aws::Vector< BlockDeviceMapping > &  value)
inline

The block device mappings. This parameter cannot be used to modify the encryption status of existing volumes or snapshots. To create an AMI with encrypted snapshots, use the CopyImage action.

Definition at line 75 of file CreateImageRequest.h.

◆ WithDescription() [1/3]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithDescription ( Aws::String &&  value)
inline

A description for the new image.

Definition at line 132 of file CreateImageRequest.h.

◆ WithDescription() [2/3]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithDescription ( const Aws::String value)
inline

A description for the new image.

Definition at line 127 of file CreateImageRequest.h.

◆ WithDescription() [3/3]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithDescription ( const char *  value)
inline

A description for the new image.

Definition at line 137 of file CreateImageRequest.h.

◆ WithDryRun()

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithDryRun ( bool  value)
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 170 of file CreateImageRequest.h.

◆ WithInstanceId() [1/3]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithInstanceId ( Aws::String &&  value)
inline

The ID of the instance.

Definition at line 206 of file CreateImageRequest.h.

◆ WithInstanceId() [2/3]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithInstanceId ( const Aws::String value)
inline

The ID of the instance.

Definition at line 201 of file CreateImageRequest.h.

◆ WithInstanceId() [3/3]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithInstanceId ( const char *  value)
inline

The ID of the instance.

Definition at line 211 of file CreateImageRequest.h.

◆ WithName() [1/3]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithName ( Aws::String &&  value)
inline

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

Definition at line 261 of file CreateImageRequest.h.

◆ WithName() [2/3]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithName ( const Aws::String value)
inline

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

Definition at line 254 of file CreateImageRequest.h.

◆ WithName() [3/3]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithName ( const char *  value)
inline

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

Definition at line 268 of file CreateImageRequest.h.

◆ WithNoReboot()

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithNoReboot ( bool  value)
inline

By default, Amazon EC2 attempts to shut down and reboot the instance before creating the image. If the No Reboot option is set, Amazon EC2 doesn't shut down the instance before creating the image. When this option is used, file system integrity on the created image can't be guaranteed.

Definition at line 301 of file CreateImageRequest.h.

◆ WithTagSpecifications() [1/2]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithTagSpecifications ( Aws::Vector< TagSpecification > &&  value)
inline

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the snapshots, or both.

  • To tag the AMI, the value for ResourceType must be image.

  • To tag the snapshots that are created of the root volume and of other EBS volumes that are attached to the instance, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created.

If you specify other values for ResourceType, the request fails.

To tag an AMI or snapshot after it has been created, see CreateTags.

Definition at line 392 of file CreateImageRequest.h.

◆ WithTagSpecifications() [2/2]

CreateImageRequest& Aws::EC2::Model::CreateImageRequest::WithTagSpecifications ( const Aws::Vector< TagSpecification > &  value)
inline

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the snapshots, or both.

  • To tag the AMI, the value for ResourceType must be image.

  • To tag the snapshots that are created of the root volume and of other EBS volumes that are attached to the instance, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created.

If you specify other values for ResourceType, the request fails.

To tag an AMI or snapshot after it has been created, see CreateTags.

Definition at line 377 of file CreateImageRequest.h.


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