Skip to content

Commit

Permalink
Added response overrides to Head Object requests.
Browse files Browse the repository at this point in the history
Increases Customer API's ManagedServiceData length
Documentation updates for Elastic Compute Cloud (EC2).
  • Loading branch information
aws-sdk-cpp-automation committed Jul 2, 2024
1 parent a95671d commit 91ab0cb
Show file tree
Hide file tree
Showing 33 changed files with 484 additions and 123 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.360
1.11.361
16 changes: 15 additions & 1 deletion generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ByoipCidr.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,21 @@ namespace Model

///@{
/**
* <p>The state of the address pool.</p>
* <p>The state of the address range.</p> <ul> <li> <p> <code>advertised</code>:
* The address range is being advertised to the internet by Amazon Web
* Services.</p> </li> <li> <p> <code>deprovisioned</code>: The address range is
* deprovisioned.</p> </li> <li> <p> <code>failed-deprovision</code>: The request
* to deprovision the address range was unsuccessful. Ensure that all EIPs from the
* range have been deallocated and try again.</p> </li> <li> <p>
* <code>failed-provision</code>: The request to provision the address range was
* unsuccessful.</p> </li> <li> <p> <code>pending-deprovision</code>: You’ve
* submitted a request to deprovision an address range and it's pending.</p> </li>
* <li> <p> <code>pending-provision</code>: You’ve submitted a request to provision
* an address range and it's pending.</p> </li> <li> <p> <code>provisioned</code>:
* The address range is provisioned and can be advertised. The range is not
* currently advertised.</p> </li> <li> <p>
* <code>provisioned-not-publicly-advertisable</code>: The address range is
* provisioned and cannot be advertised.</p> </li> </ul>
*/
inline const ByoipCidrState& GetState() const{ return m_state; }
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,11 @@ namespace Model

///@{
/**
* <p>Indicates whether your client's IP address is preserved as the source. The
* value is <code>true</code> or <code>false</code>.</p> <ul> <li> <p>If
* <code>true</code>, your client's IP address is used when you connect to a
* resource.</p> </li> <li> <p>If <code>false</code>, the elastic network interface
* IP address is used when you connect to a resource.</p> </li> </ul> <p>Default:
* <code>true</code> </p>
* <p>Indicates whether the client IP address is preserved as the source. The
* following are the possible values.</p> <ul> <li> <p> <code>true</code> - Use the
* client IP address as the source.</p> </li> <li> <p> <code>false</code> - Use the
* network interface IP address as the source.</p> </li> </ul> <p>Default:
* <code>false</code> </p>
*/
inline bool GetPreserveClientIp() const{ return m_preserveClientIp; }
inline bool PreserveClientIpHasBeenSet() const { return m_preserveClientIpHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ namespace Model

///@{
/**
* <p>The Amazon Resource Name (ARN) of the Outpost.</p>
* <p>The Amazon Resource Name (ARN) of the Outpost on which to create the
* volume.</p> <p>If you intend to use a volume with an instance running on an
* outpost, then you must create the volume on the same outpost as the instance.
* You can't use a volume created in an Amazon Web Services Region with an instance
* on an Amazon Web Services outpost, or the other way around.</p>
*/
inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ namespace Model

///@{
/**
* <p>The volume IDs.</p>
* <p>The volume IDs. If not specified, then all volumes are included in the
* response.</p>
*/
inline const Aws::Vector<Aws::String>& GetVolumeIds() const{ return m_volumeIds; }
inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace Model
enum class HostTenancy
{
NOT_SET,
default_,
dedicated,
host
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ namespace Model
* selects instance types with your attributes, it will exclude instance types
* whose price exceeds your specified threshold.</p> <p>The parameter accepts an
* integer, which Amazon EC2 interprets as a percentage.</p> <p>If you set
* <code>DesiredCapacityType</code> to <code>vcpu</code> or
* <code>TargetCapacityUnitType</code> to <code>vcpu</code> or
* <code>memory-mib</code>, the price protection threshold is based on the per vCPU
* or per memory price instead of the per instance price.</p> <p>Only one of
* <code>SpotMaxPricePercentageOverLowestPrice</code> or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ namespace Model
* selects instance types with your attributes, it will exclude instance types
* whose price exceeds your specified threshold.</p> <p>The parameter accepts an
* integer, which Amazon EC2 interprets as a percentage.</p> <p>If you set
* <code>DesiredCapacityType</code> to <code>vcpu</code> or
* <code>TargetCapacityUnitType</code> to <code>vcpu</code> or
* <code>memory-mib</code>, the price protection threshold is based on the per vCPU
* or per memory price instead of the per instance price.</p> <p>Only one of
* <code>SpotMaxPricePercentageOverLowestPrice</code> or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,11 @@ namespace Model

///@{
/**
* <p>Changes the instance's user data to the specified value. If you are using an
* Amazon Web Services SDK or command line tool, base64-encoding is performed for
* you, and you can load the text from a file. Otherwise, you must provide
* base64-encoded text.</p>
* <p>Changes the instance's user data to the specified value. User data must be
* base64-encoded. Depending on the tool or SDK that you're using, the
* base64-encoding might be performed for you. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html">Work
* with instance user data</a>.</p>
*/
inline const BlobAttributeValue& GetUserData() const{ return m_userData; }
inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,11 @@ namespace Model

///@{
/**
* <p>The user data script to make available to the instance. For more information,
* see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html">Run
* commands on your Amazon EC2 instance at launch</a> in the <i>Amazon EC2 User
* Guide</i>. If you are using a command line tool, base64-encoding is performed
* for you, and you can load the text from a file. Otherwise, you must provide
* base64-encoded text. User data is limited to 16 KB.</p>
* <p>The user data to make available to the instance. User data must be
* base64-encoded. Depending on the tool or SDK that you're using, the
* base64-encoding might be performed for you. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html">Work
* with instance user data</a>.</p>
*/
inline const Aws::String& GetUserData() const{ return m_userData; }
inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
Expand Down
9 changes: 8 additions & 1 deletion generated/src/aws-cpp-sdk-ec2/source/model/HostTenancy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@ namespace Aws
namespace HostTenancyMapper
{

static const int default__HASH = HashingUtils::HashString("default");
static const int dedicated_HASH = HashingUtils::HashString("dedicated");
static const int host_HASH = HashingUtils::HashString("host");


HostTenancy GetHostTenancyForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == dedicated_HASH)
if (hashCode == default__HASH)
{
return HostTenancy::default_;
}
else if (hashCode == dedicated_HASH)
{
return HostTenancy::dedicated;
}
Expand All @@ -51,6 +56,8 @@ namespace Aws
{
case HostTenancy::NOT_SET:
return {};
case HostTenancy::default_:
return "default";
case HostTenancy::dedicated:
return "dedicated";
case HostTenancy::host:
Expand Down
39 changes: 19 additions & 20 deletions generated/src/aws-cpp-sdk-s3-crt/include/aws/s3-crt/S3CrtClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,17 +394,16 @@ namespace Aws
* <dt>Response and special errors</dt> <dd> <p>When the request is an HTTP 1.1
* request, the response is chunk encoded. When the request is not an HTTP 1.1
* request, the response would not contain the <code>Content-Length</code>. You
* always need to read the entire response body to check if the copy succeeds. to
* keep the connection alive while we copy the data. </p> <ul> <li> <p>If the copy
* is successful, you receive a response with information about the copied
* object.</p> </li> <li> <p>A copy request might return an error when Amazon S3
* receives the copy request or while Amazon S3 is copying the files. A <code>200
* OK</code> response can contain either a success or an error.</p> <ul> <li> <p>If
* the error occurs before the copy action starts, you receive a standard Amazon S3
* error.</p> </li> <li> <p>If the error occurs during the copy operation, the
* error response is embedded in the <code>200 OK</code> response. For example, in
* a cross-region copy, you may encounter throttling and receive a <code>200
* OK</code> response. For more information, see <a
* always need to read the entire response body to check if the copy succeeds. </p>
* <ul> <li> <p>If the copy is successful, you receive a response with information
* about the copied object.</p> </li> <li> <p>A copy request might return an error
* when Amazon S3 receives the copy request or while Amazon S3 is copying the
* files. A <code>200 OK</code> response can contain either a success or an
* error.</p> <ul> <li> <p>If the error occurs before the copy action starts, you
* receive a standard Amazon S3 error.</p> </li> <li> <p>If the error occurs during
* the copy operation, the error response is embedded in the <code>200 OK</code>
* response. For example, in a cross-region copy, you may encounter throttling and
* receive a <code>200 OK</code> response. For more information, see <a
* href="https://repost.aws/knowledge-center/s3-resolve-200-internalerror">Resolve
* the Error 200 response when copying objects to Amazon S3</a>. The <code>200
* OK</code> status code means the copy was accepted, but it doesn't mean the copy
Expand Down Expand Up @@ -1620,7 +1619,7 @@ namespace Aws
* <p> <b> <code>s3:DeleteObject</code> </b> - To delete an object from a bucket,
* you must always specify the <code>s3:DeleteObject</code> permission.</p> </li>
* <li> <p> <b> <code>s3:DeleteObjectVersion</code> </b> - To delete a specific
* version of an object from a versiong-enabled bucket, you must specify the
* version of an object from a versioning-enabled bucket, you must specify the
* <code>s3:DeleteObjectVersion</code> permission.</p> </li> </ul> </li> <li> <p>
* <b>Directory bucket permissions</b> - To grant access to this API operation on a
* directory bucket, we recommend that you use the <a
Expand Down Expand Up @@ -6032,14 +6031,14 @@ namespace Aws
* <code>s3:PutObject</code> </b> permission to write the object copy to the
* destination bucket. </p> </li> </ul> <p>For information about permissions
* required to use the multipart upload API, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart
* Upload and Permissions</a> in the <i>Amazon S3 User Guide</i>.</p> </li> <li>
* <p> <b>Directory bucket permissions</b> - You must have permissions in a bucket
* policy or an IAM identity-based policy based on the source and destination
* bucket types in an <code>UploadPartCopy</code> operation.</p> <ul> <li> <p>If
* the source object that you want to copy is in a directory bucket, you must have
* the <b> <code>s3express:CreateSession</code> </b> permission in the
* <code>Action</code> element of a policy to read the object . By default, the
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart
* upload API and permissions</a> in the <i>Amazon S3 User Guide</i>.</p> </li>
* <li> <p> <b>Directory bucket permissions</b> - You must have permissions in a
* bucket policy or an IAM identity-based policy based on the source and
* destination bucket types in an <code>UploadPartCopy</code> operation.</p> <ul>
* <li> <p>If the source object that you want to copy is in a directory bucket, you
* must have the <b> <code>s3express:CreateSession</code> </b> permission in the
* <code>Action</code> element of a policy to read the object. By default, the
* session is in the <code>ReadWrite</code> mode. If you want to restrict the
* access, you can explicitly set the <code>s3express:SessionMode</code> condition
* key to <code>ReadOnly</code> on the copy source bucket.</p> </li> <li> <p>If the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace Model

///@{
/**
* <p>The established temporary security credentials for the created session..</p>
* <p>The established temporary security credentials for the created session.</p>
*/
inline const SessionCredentials& GetCredentials() const{ return m_credentials; }
inline void SetCredentials(const SessionCredentials& value) { m_credentials = value; }
Expand Down
Loading

0 comments on commit 91ab0cb

Please sign in to comment.