diff --git a/VERSION b/VERSION index 070f164fd3b..4237e94440f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.319 \ No newline at end of file +1.11.320 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/DynamoDBClient.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/DynamoDBClient.h index a3dd34ff2ba..74229578225 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/DynamoDBClient.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/DynamoDBClient.h @@ -1199,12 +1199,12 @@ namespace DynamoDB * metadata for your policy or table might not be available at that moment. Wait * for a few seconds, and then retry the GetResourcePolicy * request.

After a GetResourcePolicy request returns a policy - * created using the PutResourcePolicy request, you can assume the - * policy will start getting applied in the authorization of requests to the - * resource. Because this process is eventually consistent, it will take some time - * to apply the policy to all requests to a resource. Policies that you attach - * while creating a table using the CreateTable request will always be - * applied to all requests for that table.

See Also:

PutResourcePolicy request, the policy will be + * applied in the authorization of requests to the resource. Because this process + * is eventually consistent, it will take some time to apply the policy to all + * requests to a resource. Policies that you attach while creating a table using + * the CreateTable request will always be applied to all requests for + * that table.

See Also:

AWS * API Reference

*/ @@ -1514,7 +1514,7 @@ namespace DynamoDB * eventually consistent .

PutResourcePolicy is an * idempotent operation; running it multiple times on the same resource using the * same policy document will return the same revision ID. If you specify an - * ExpectedRevisionId which doesn't match the current policy's + * ExpectedRevisionId that doesn't match the current policy's * RevisionId, the PolicyNotFoundException will be * returned.

PutResourcePolicy is an asynchronous * operation. If you issue a GetResourcePolicy request immediately diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateGlobalSecondaryIndexAction.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateGlobalSecondaryIndexAction.h index d26834882eb..97df5c27a58 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateGlobalSecondaryIndexAction.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateGlobalSecondaryIndexAction.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -221,6 +222,55 @@ namespace Model */ inline CreateGlobalSecondaryIndexAction& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} + + /** + *

The maximum number of read and write units for the global secondary index + * being created. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + /** + *

The maximum number of read and write units for the global secondary index + * being created. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + /** + *

The maximum number of read and write units for the global secondary index + * being created. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + /** + *

The maximum number of read and write units for the global secondary index + * being created. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + /** + *

The maximum number of read and write units for the global secondary index + * being created. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline CreateGlobalSecondaryIndexAction& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + /** + *

The maximum number of read and write units for the global secondary index + * being created. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline CreateGlobalSecondaryIndexAction& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + private: Aws::String m_indexName; @@ -234,6 +284,9 @@ namespace Model ProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; + + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateReplicationGroupMemberAction.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateReplicationGroupMemberAction.h index 76ed367663f..d7fd84a9427 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateReplicationGroupMemberAction.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateReplicationGroupMemberAction.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -184,6 +185,55 @@ namespace Model inline CreateReplicationGroupMemberAction& WithProvisionedThroughputOverride(ProvisionedThroughputOverride&& value) { SetProvisionedThroughputOverride(std::move(value)); return *this;} + /** + *

The maximum on-demand throughput settings for the specified replica table + * being created. You can only modify MaxReadRequestUnits, because you + * can't modify MaxWriteRequestUnits for individual replica tables. + *

+ */ + inline const OnDemandThroughputOverride& GetOnDemandThroughputOverride() const{ return m_onDemandThroughputOverride; } + + /** + *

The maximum on-demand throughput settings for the specified replica table + * being created. You can only modify MaxReadRequestUnits, because you + * can't modify MaxWriteRequestUnits for individual replica tables. + *

+ */ + inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; } + + /** + *

The maximum on-demand throughput settings for the specified replica table + * being created. You can only modify MaxReadRequestUnits, because you + * can't modify MaxWriteRequestUnits for individual replica tables. + *

+ */ + inline void SetOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = value; } + + /** + *

The maximum on-demand throughput settings for the specified replica table + * being created. You can only modify MaxReadRequestUnits, because you + * can't modify MaxWriteRequestUnits for individual replica tables. + *

+ */ + inline void SetOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::move(value); } + + /** + *

The maximum on-demand throughput settings for the specified replica table + * being created. You can only modify MaxReadRequestUnits, because you + * can't modify MaxWriteRequestUnits for individual replica tables. + *

+ */ + inline CreateReplicationGroupMemberAction& WithOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { SetOnDemandThroughputOverride(value); return *this;} + + /** + *

The maximum on-demand throughput settings for the specified replica table + * being created. You can only modify MaxReadRequestUnits, because you + * can't modify MaxWriteRequestUnits for individual replica tables. + *

+ */ + inline CreateReplicationGroupMemberAction& WithOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { SetOnDemandThroughputOverride(std::move(value)); return *this;} + + /** *

Replica-specific global secondary index settings.

*/ @@ -272,6 +322,9 @@ namespace Model ProvisionedThroughputOverride m_provisionedThroughputOverride; bool m_provisionedThroughputOverrideHasBeenSet = false; + OnDemandThroughputOverride m_onDemandThroughputOverride; + bool m_onDemandThroughputOverrideHasBeenSet = false; + Aws::Vector m_globalSecondaryIndexes; bool m_globalSecondaryIndexesHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateTableRequest.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateTableRequest.h index 37241473adf..32d9d4cea12 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateTableRequest.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/CreateTableRequest.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -1228,12 +1229,11 @@ namespace Model /** *

An Amazon Web Services resource-based policy document in JSON format that * will be attached to the table.

When you attach a resource-based policy - * while creating a table, the policy creation is strongly consistent.

- *

The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. You can’t request an increase for this limit. For a full list of all - * considerations that you should keep in mind while attaching a resource-based - * policy, see strongly + * consistent.

The maximum size supported for a resource-based policy + * document is 20 KB. DynamoDB counts whitespaces when calculating the size of a + * policy against this limit. For a full list of all considerations that apply for + * resource-based policies, see Resource-based * policy considerations.

*/ @@ -1242,12 +1242,11 @@ namespace Model /** *

An Amazon Web Services resource-based policy document in JSON format that * will be attached to the table.

When you attach a resource-based policy - * while creating a table, the policy creation is strongly consistent.

- *

The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. You can’t request an increase for this limit. For a full list of all - * considerations that you should keep in mind while attaching a resource-based - * policy, see strongly + * consistent.

The maximum size supported for a resource-based policy + * document is 20 KB. DynamoDB counts whitespaces when calculating the size of a + * policy against this limit. For a full list of all considerations that apply for + * resource-based policies, see Resource-based * policy considerations.

*/ @@ -1256,12 +1255,11 @@ namespace Model /** *

An Amazon Web Services resource-based policy document in JSON format that * will be attached to the table.

When you attach a resource-based policy - * while creating a table, the policy creation is strongly consistent.

- *

The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. You can’t request an increase for this limit. For a full list of all - * considerations that you should keep in mind while attaching a resource-based - * policy, see strongly + * consistent.

The maximum size supported for a resource-based policy + * document is 20 KB. DynamoDB counts whitespaces when calculating the size of a + * policy against this limit. For a full list of all considerations that apply for + * resource-based policies, see Resource-based * policy considerations.

*/ @@ -1270,12 +1268,11 @@ namespace Model /** *

An Amazon Web Services resource-based policy document in JSON format that * will be attached to the table.

When you attach a resource-based policy - * while creating a table, the policy creation is strongly consistent.

- *

The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. You can’t request an increase for this limit. For a full list of all - * considerations that you should keep in mind while attaching a resource-based - * policy, see strongly + * consistent.

The maximum size supported for a resource-based policy + * document is 20 KB. DynamoDB counts whitespaces when calculating the size of a + * policy against this limit. For a full list of all considerations that apply for + * resource-based policies, see Resource-based * policy considerations.

*/ @@ -1284,12 +1281,11 @@ namespace Model /** *

An Amazon Web Services resource-based policy document in JSON format that * will be attached to the table.

When you attach a resource-based policy - * while creating a table, the policy creation is strongly consistent.

- *

The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. You can’t request an increase for this limit. For a full list of all - * considerations that you should keep in mind while attaching a resource-based - * policy, see strongly + * consistent.

The maximum size supported for a resource-based policy + * document is 20 KB. DynamoDB counts whitespaces when calculating the size of a + * policy against this limit. For a full list of all considerations that apply for + * resource-based policies, see Resource-based * policy considerations.

*/ @@ -1298,12 +1294,11 @@ namespace Model /** *

An Amazon Web Services resource-based policy document in JSON format that * will be attached to the table.

When you attach a resource-based policy - * while creating a table, the policy creation is strongly consistent.

- *

The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. You can’t request an increase for this limit. For a full list of all - * considerations that you should keep in mind while attaching a resource-based - * policy, see strongly + * consistent.

The maximum size supported for a resource-based policy + * document is 20 KB. DynamoDB counts whitespaces when calculating the size of a + * policy against this limit. For a full list of all considerations that apply for + * resource-based policies, see Resource-based * policy considerations.

*/ @@ -1312,12 +1307,11 @@ namespace Model /** *

An Amazon Web Services resource-based policy document in JSON format that * will be attached to the table.

When you attach a resource-based policy - * while creating a table, the policy creation is strongly consistent.

- *

The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. You can’t request an increase for this limit. For a full list of all - * considerations that you should keep in mind while attaching a resource-based - * policy, see strongly + * consistent.

The maximum size supported for a resource-based policy + * document is 20 KB. DynamoDB counts whitespaces when calculating the size of a + * policy against this limit. For a full list of all considerations that apply for + * resource-based policies, see Resource-based * policy considerations.

*/ @@ -1326,17 +1320,65 @@ namespace Model /** *

An Amazon Web Services resource-based policy document in JSON format that * will be attached to the table.

When you attach a resource-based policy - * while creating a table, the policy creation is strongly consistent.

- *

The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. You can’t request an increase for this limit. For a full list of all - * considerations that you should keep in mind while attaching a resource-based - * policy, see strongly + * consistent.

The maximum size supported for a resource-based policy + * document is 20 KB. DynamoDB counts whitespaces when calculating the size of a + * policy against this limit. For a full list of all considerations that apply for + * resource-based policies, see Resource-based * policy considerations.

*/ inline CreateTableRequest& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;} + + /** + *

Sets the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + /** + *

Sets the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + /** + *

Sets the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + /** + *

Sets the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + /** + *

Sets the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline CreateTableRequest& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + /** + *

Sets the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline CreateTableRequest& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + private: Aws::Vector m_attributeDefinitions; @@ -1377,6 +1419,9 @@ namespace Model Aws::String m_resourcePolicy; bool m_resourcePolicyHasBeenSet = false; + + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/DeleteResourcePolicyResult.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/DeleteResourcePolicyResult.h index 3852a4446e7..819400e4ba9 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/DeleteResourcePolicyResult.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/DeleteResourcePolicyResult.h @@ -33,7 +33,7 @@ namespace Model /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*

This value will be empty if you make a request against a resource without a * policy.

@@ -41,7 +41,7 @@ namespace Model inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*

This value will be empty if you make a request against a resource without a * policy.

@@ -49,7 +49,7 @@ namespace Model inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*

This value will be empty if you make a request against a resource without a * policy.

@@ -57,7 +57,7 @@ namespace Model inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*

This value will be empty if you make a request against a resource without a * policy.

@@ -65,7 +65,7 @@ namespace Model inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*

This value will be empty if you make a request against a resource without a * policy.

@@ -73,7 +73,7 @@ namespace Model inline DeleteResourcePolicyResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*

This value will be empty if you make a request against a resource without a * policy.

@@ -81,7 +81,7 @@ namespace Model inline DeleteResourcePolicyResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*

This value will be empty if you make a request against a resource without a * policy.

diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GetResourcePolicyResult.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GetResourcePolicyResult.h index 2aaff7371a9..07d10f7d87c 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GetResourcePolicyResult.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GetResourcePolicyResult.h @@ -76,43 +76,43 @@ namespace Model /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*/ inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*/ inline GetResourcePolicyResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*/ inline GetResourcePolicyResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** - *

A unique string that represents the revision ID of the policy. If you are + *

A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

*/ inline GetResourcePolicyResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndex.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndex.h index 36fb7ea002c..8291de089bc 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndex.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndex.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -301,6 +302,55 @@ namespace Model */ inline GlobalSecondaryIndex& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline GlobalSecondaryIndex& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline GlobalSecondaryIndex& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + private: Aws::String m_indexName; @@ -314,6 +364,9 @@ namespace Model ProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; + + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndexDescription.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndexDescription.h index 6e9a0b2522d..ea35755a0e1 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndexDescription.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndexDescription.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -517,6 +518,55 @@ namespace Model */ inline GlobalSecondaryIndexDescription& WithIndexArn(const char* value) { SetIndexArn(value); return *this;} + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline GlobalSecondaryIndexDescription& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + /** + *

The maximum number of read and write units for the specified global secondary + * index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

+ */ + inline GlobalSecondaryIndexDescription& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + private: Aws::String m_indexName; @@ -545,6 +595,9 @@ namespace Model Aws::String m_indexArn; bool m_indexArnHasBeenSet = false; + + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndexInfo.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndexInfo.h index 7562972d4ee..de611ec4b32 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndexInfo.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/GlobalSecondaryIndexInfo.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -275,6 +276,25 @@ namespace Model */ inline GlobalSecondaryIndexInfo& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} + + + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + + inline GlobalSecondaryIndexInfo& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + + inline GlobalSecondaryIndexInfo& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + private: Aws::String m_indexName; @@ -288,6 +308,9 @@ namespace Model ProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; + + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/OnDemandThroughput.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/OnDemandThroughput.h new file mode 100644 index 00000000000..4fcecc1c202 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/OnDemandThroughput.h @@ -0,0 +1,125 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DynamoDB +{ +namespace Model +{ + + /** + *

Sets the maximum number of read and write units for the specified on-demand + * table. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

See Also:

AWS + * API Reference

+ */ + class OnDemandThroughput + { + public: + AWS_DYNAMODB_API OnDemandThroughput(); + AWS_DYNAMODB_API OnDemandThroughput(Aws::Utils::Json::JsonView jsonValue); + AWS_DYNAMODB_API OnDemandThroughput& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Maximum number of read request units for the specified table.

To + * specify a maximum OnDemandThroughput on your table, set the value + * of MaxReadRequestUnits as greater than or equal to 1. To remove the + * maximum OnDemandThroughput that is currently set on your table, set + * the value of MaxReadRequestUnits to -1.

+ */ + inline long long GetMaxReadRequestUnits() const{ return m_maxReadRequestUnits; } + + /** + *

Maximum number of read request units for the specified table.

To + * specify a maximum OnDemandThroughput on your table, set the value + * of MaxReadRequestUnits as greater than or equal to 1. To remove the + * maximum OnDemandThroughput that is currently set on your table, set + * the value of MaxReadRequestUnits to -1.

+ */ + inline bool MaxReadRequestUnitsHasBeenSet() const { return m_maxReadRequestUnitsHasBeenSet; } + + /** + *

Maximum number of read request units for the specified table.

To + * specify a maximum OnDemandThroughput on your table, set the value + * of MaxReadRequestUnits as greater than or equal to 1. To remove the + * maximum OnDemandThroughput that is currently set on your table, set + * the value of MaxReadRequestUnits to -1.

+ */ + inline void SetMaxReadRequestUnits(long long value) { m_maxReadRequestUnitsHasBeenSet = true; m_maxReadRequestUnits = value; } + + /** + *

Maximum number of read request units for the specified table.

To + * specify a maximum OnDemandThroughput on your table, set the value + * of MaxReadRequestUnits as greater than or equal to 1. To remove the + * maximum OnDemandThroughput that is currently set on your table, set + * the value of MaxReadRequestUnits to -1.

+ */ + inline OnDemandThroughput& WithMaxReadRequestUnits(long long value) { SetMaxReadRequestUnits(value); return *this;} + + + /** + *

Maximum number of write request units for the specified table.

To + * specify a maximum OnDemandThroughput on your table, set the value + * of MaxWriteRequestUnits as greater than or equal to 1. To remove + * the maximum OnDemandThroughput that is currently set on your table, + * set the value of MaxWriteRequestUnits to -1.

+ */ + inline long long GetMaxWriteRequestUnits() const{ return m_maxWriteRequestUnits; } + + /** + *

Maximum number of write request units for the specified table.

To + * specify a maximum OnDemandThroughput on your table, set the value + * of MaxWriteRequestUnits as greater than or equal to 1. To remove + * the maximum OnDemandThroughput that is currently set on your table, + * set the value of MaxWriteRequestUnits to -1.

+ */ + inline bool MaxWriteRequestUnitsHasBeenSet() const { return m_maxWriteRequestUnitsHasBeenSet; } + + /** + *

Maximum number of write request units for the specified table.

To + * specify a maximum OnDemandThroughput on your table, set the value + * of MaxWriteRequestUnits as greater than or equal to 1. To remove + * the maximum OnDemandThroughput that is currently set on your table, + * set the value of MaxWriteRequestUnits to -1.

+ */ + inline void SetMaxWriteRequestUnits(long long value) { m_maxWriteRequestUnitsHasBeenSet = true; m_maxWriteRequestUnits = value; } + + /** + *

Maximum number of write request units for the specified table.

To + * specify a maximum OnDemandThroughput on your table, set the value + * of MaxWriteRequestUnits as greater than or equal to 1. To remove + * the maximum OnDemandThroughput that is currently set on your table, + * set the value of MaxWriteRequestUnits to -1.

+ */ + inline OnDemandThroughput& WithMaxWriteRequestUnits(long long value) { SetMaxWriteRequestUnits(value); return *this;} + + private: + + long long m_maxReadRequestUnits; + bool m_maxReadRequestUnitsHasBeenSet = false; + + long long m_maxWriteRequestUnits; + bool m_maxWriteRequestUnitsHasBeenSet = false; + }; + +} // namespace Model +} // namespace DynamoDB +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/OnDemandThroughputOverride.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/OnDemandThroughputOverride.h new file mode 100644 index 00000000000..7e4011bb7af --- /dev/null +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/OnDemandThroughputOverride.h @@ -0,0 +1,68 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DynamoDB +{ +namespace Model +{ + + /** + *

Overrides the on-demand throughput settings for this replica table. If you + * don't specify a value for this parameter, it uses the source table's on-demand + * throughput settings.

See Also:

AWS + * API Reference

+ */ + class OnDemandThroughputOverride + { + public: + AWS_DYNAMODB_API OnDemandThroughputOverride(); + AWS_DYNAMODB_API OnDemandThroughputOverride(Aws::Utils::Json::JsonView jsonValue); + AWS_DYNAMODB_API OnDemandThroughputOverride& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Maximum number of read request units for the specified replica table.

+ */ + inline long long GetMaxReadRequestUnits() const{ return m_maxReadRequestUnits; } + + /** + *

Maximum number of read request units for the specified replica table.

+ */ + inline bool MaxReadRequestUnitsHasBeenSet() const { return m_maxReadRequestUnitsHasBeenSet; } + + /** + *

Maximum number of read request units for the specified replica table.

+ */ + inline void SetMaxReadRequestUnits(long long value) { m_maxReadRequestUnitsHasBeenSet = true; m_maxReadRequestUnits = value; } + + /** + *

Maximum number of read request units for the specified replica table.

+ */ + inline OnDemandThroughputOverride& WithMaxReadRequestUnits(long long value) { SetMaxReadRequestUnits(value); return *this;} + + private: + + long long m_maxReadRequestUnits; + bool m_maxReadRequestUnitsHasBeenSet = false; + }; + +} // namespace Model +} // namespace DynamoDB +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/PutResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/PutResourcePolicyRequest.h index 57c04729520..c031f81c423 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/PutResourcePolicyRequest.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/PutResourcePolicyRequest.h @@ -133,10 +133,13 @@ namespace Model /** *

An Amazon Web Services resource-based policy document in JSON format.

- *

The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. For a full list of all considerations that you should keep in mind while - * attaching a resource-based policy, see

  • The maximum size supported for a resource-based policy document is + * 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against + * this limit.

  • Within a resource-based policy, if the action for + * a DynamoDB service-linked role (SLR) to replicate data for a global table is + * denied, adding or deleting a replica will fail with an error.

  • + *

    For a full list of all considerations that apply while attaching a + * resource-based policy, see Resource-based * policy considerations.

    */ @@ -144,10 +147,13 @@ namespace Model /** *

    An Amazon Web Services resource-based policy document in JSON format.

    - *

    The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. For a full list of all considerations that you should keep in mind while - * attaching a resource-based policy, see

  • The maximum size supported for a resource-based policy document is + * 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against + * this limit.

  • Within a resource-based policy, if the action for + * a DynamoDB service-linked role (SLR) to replicate data for a global table is + * denied, adding or deleting a replica will fail with an error.

  • + *

    For a full list of all considerations that apply while attaching a + * resource-based policy, see Resource-based * policy considerations.

    */ @@ -155,10 +161,13 @@ namespace Model /** *

    An Amazon Web Services resource-based policy document in JSON format.

    - *

    The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. For a full list of all considerations that you should keep in mind while - * attaching a resource-based policy, see

  • The maximum size supported for a resource-based policy document is + * 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against + * this limit.

  • Within a resource-based policy, if the action for + * a DynamoDB service-linked role (SLR) to replicate data for a global table is + * denied, adding or deleting a replica will fail with an error.

  • + *

    For a full list of all considerations that apply while attaching a + * resource-based policy, see Resource-based * policy considerations.

    */ @@ -166,10 +175,13 @@ namespace Model /** *

    An Amazon Web Services resource-based policy document in JSON format.

    - *

    The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. For a full list of all considerations that you should keep in mind while - * attaching a resource-based policy, see

  • The maximum size supported for a resource-based policy document is + * 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against + * this limit.

  • Within a resource-based policy, if the action for + * a DynamoDB service-linked role (SLR) to replicate data for a global table is + * denied, adding or deleting a replica will fail with an error.

  • + *

    For a full list of all considerations that apply while attaching a + * resource-based policy, see Resource-based * policy considerations.

    */ @@ -177,10 +189,13 @@ namespace Model /** *

    An Amazon Web Services resource-based policy document in JSON format.

    - *

    The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. For a full list of all considerations that you should keep in mind while - * attaching a resource-based policy, see

  • The maximum size supported for a resource-based policy document is + * 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against + * this limit.

  • Within a resource-based policy, if the action for + * a DynamoDB service-linked role (SLR) to replicate data for a global table is + * denied, adding or deleting a replica will fail with an error.

  • + *

    For a full list of all considerations that apply while attaching a + * resource-based policy, see Resource-based * policy considerations.

    */ @@ -188,10 +203,13 @@ namespace Model /** *

    An Amazon Web Services resource-based policy document in JSON format.

    - *

    The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. For a full list of all considerations that you should keep in mind while - * attaching a resource-based policy, see

  • The maximum size supported for a resource-based policy document is + * 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against + * this limit.

  • Within a resource-based policy, if the action for + * a DynamoDB service-linked role (SLR) to replicate data for a global table is + * denied, adding or deleting a replica will fail with an error.

  • + *

    For a full list of all considerations that apply while attaching a + * resource-based policy, see Resource-based * policy considerations.

    */ @@ -199,10 +217,13 @@ namespace Model /** *

    An Amazon Web Services resource-based policy document in JSON format.

    - *

    The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. For a full list of all considerations that you should keep in mind while - * attaching a resource-based policy, see

  • The maximum size supported for a resource-based policy document is + * 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against + * this limit.

  • Within a resource-based policy, if the action for + * a DynamoDB service-linked role (SLR) to replicate data for a global table is + * denied, adding or deleting a replica will fail with an error.

  • + *

    For a full list of all considerations that apply while attaching a + * resource-based policy, see Resource-based * policy considerations.

    */ @@ -210,10 +231,13 @@ namespace Model /** *

    An Amazon Web Services resource-based policy document in JSON format.

    - *

    The maximum size supported for a resource-based policy document is 20 KB. - * DynamoDB counts whitespaces when calculating the size of a policy against this - * limit. For a full list of all considerations that you should keep in mind while - * attaching a resource-based policy, see

  • The maximum size supported for a resource-based policy document is + * 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against + * this limit.

  • Within a resource-based policy, if the action for + * a DynamoDB service-linked role (SLR) to replicate data for a global table is + * denied, adding or deleting a replica will fail with an error.

  • + *

    For a full list of all considerations that apply while attaching a + * resource-based policy, see Resource-based * policy considerations.

    */ @@ -223,96 +247,96 @@ namespace Model /** *

    A string value that you can use to conditionally update your policy. You can * provide the revision ID of your existing policy to make mutating requests - * against that policy. When you provide an expected revision ID, if the revision - * ID of the existing policy on the resource doesn't match or if there's no policy - * attached to the resource, your request will be rejected with a - * PolicyNotFoundException.

    To conditionally put a policy when - * no policy exists for the resource, specify NO_POLICY for the - * revision ID.

    + * against that policy.

    When you provide an expected revision ID, if + * the revision ID of the existing policy on the resource doesn't match or if + * there's no policy attached to the resource, your request will be rejected with a + * PolicyNotFoundException.

    To conditionally attach a + * policy when no policy exists for the resource, specify NO_POLICY + * for the revision ID.

    */ inline const Aws::String& GetExpectedRevisionId() const{ return m_expectedRevisionId; } /** *

    A string value that you can use to conditionally update your policy. You can * provide the revision ID of your existing policy to make mutating requests - * against that policy. When you provide an expected revision ID, if the revision - * ID of the existing policy on the resource doesn't match or if there's no policy - * attached to the resource, your request will be rejected with a - * PolicyNotFoundException.

    To conditionally put a policy when - * no policy exists for the resource, specify NO_POLICY for the - * revision ID.

    + * against that policy.

    When you provide an expected revision ID, if + * the revision ID of the existing policy on the resource doesn't match or if + * there's no policy attached to the resource, your request will be rejected with a + * PolicyNotFoundException.

    To conditionally attach a + * policy when no policy exists for the resource, specify NO_POLICY + * for the revision ID.

    */ inline bool ExpectedRevisionIdHasBeenSet() const { return m_expectedRevisionIdHasBeenSet; } /** *

    A string value that you can use to conditionally update your policy. You can * provide the revision ID of your existing policy to make mutating requests - * against that policy. When you provide an expected revision ID, if the revision - * ID of the existing policy on the resource doesn't match or if there's no policy - * attached to the resource, your request will be rejected with a - * PolicyNotFoundException.

    To conditionally put a policy when - * no policy exists for the resource, specify NO_POLICY for the - * revision ID.

    + * against that policy.

    When you provide an expected revision ID, if + * the revision ID of the existing policy on the resource doesn't match or if + * there's no policy attached to the resource, your request will be rejected with a + * PolicyNotFoundException.

    To conditionally attach a + * policy when no policy exists for the resource, specify NO_POLICY + * for the revision ID.

    */ inline void SetExpectedRevisionId(const Aws::String& value) { m_expectedRevisionIdHasBeenSet = true; m_expectedRevisionId = value; } /** *

    A string value that you can use to conditionally update your policy. You can * provide the revision ID of your existing policy to make mutating requests - * against that policy. When you provide an expected revision ID, if the revision - * ID of the existing policy on the resource doesn't match or if there's no policy - * attached to the resource, your request will be rejected with a - * PolicyNotFoundException.

    To conditionally put a policy when - * no policy exists for the resource, specify NO_POLICY for the - * revision ID.

    + * against that policy.

    When you provide an expected revision ID, if + * the revision ID of the existing policy on the resource doesn't match or if + * there's no policy attached to the resource, your request will be rejected with a + * PolicyNotFoundException.

    To conditionally attach a + * policy when no policy exists for the resource, specify NO_POLICY + * for the revision ID.

    */ inline void SetExpectedRevisionId(Aws::String&& value) { m_expectedRevisionIdHasBeenSet = true; m_expectedRevisionId = std::move(value); } /** *

    A string value that you can use to conditionally update your policy. You can * provide the revision ID of your existing policy to make mutating requests - * against that policy. When you provide an expected revision ID, if the revision - * ID of the existing policy on the resource doesn't match or if there's no policy - * attached to the resource, your request will be rejected with a - * PolicyNotFoundException.

    To conditionally put a policy when - * no policy exists for the resource, specify NO_POLICY for the - * revision ID.

    + * against that policy.

    When you provide an expected revision ID, if + * the revision ID of the existing policy on the resource doesn't match or if + * there's no policy attached to the resource, your request will be rejected with a + * PolicyNotFoundException.

    To conditionally attach a + * policy when no policy exists for the resource, specify NO_POLICY + * for the revision ID.

    */ inline void SetExpectedRevisionId(const char* value) { m_expectedRevisionIdHasBeenSet = true; m_expectedRevisionId.assign(value); } /** *

    A string value that you can use to conditionally update your policy. You can * provide the revision ID of your existing policy to make mutating requests - * against that policy. When you provide an expected revision ID, if the revision - * ID of the existing policy on the resource doesn't match or if there's no policy - * attached to the resource, your request will be rejected with a - * PolicyNotFoundException.

    To conditionally put a policy when - * no policy exists for the resource, specify NO_POLICY for the - * revision ID.

    + * against that policy.

    When you provide an expected revision ID, if + * the revision ID of the existing policy on the resource doesn't match or if + * there's no policy attached to the resource, your request will be rejected with a + * PolicyNotFoundException.

    To conditionally attach a + * policy when no policy exists for the resource, specify NO_POLICY + * for the revision ID.

    */ inline PutResourcePolicyRequest& WithExpectedRevisionId(const Aws::String& value) { SetExpectedRevisionId(value); return *this;} /** *

    A string value that you can use to conditionally update your policy. You can * provide the revision ID of your existing policy to make mutating requests - * against that policy. When you provide an expected revision ID, if the revision - * ID of the existing policy on the resource doesn't match or if there's no policy - * attached to the resource, your request will be rejected with a - * PolicyNotFoundException.

    To conditionally put a policy when - * no policy exists for the resource, specify NO_POLICY for the - * revision ID.

    + * against that policy.

    When you provide an expected revision ID, if + * the revision ID of the existing policy on the resource doesn't match or if + * there's no policy attached to the resource, your request will be rejected with a + * PolicyNotFoundException.

    To conditionally attach a + * policy when no policy exists for the resource, specify NO_POLICY + * for the revision ID.

    */ inline PutResourcePolicyRequest& WithExpectedRevisionId(Aws::String&& value) { SetExpectedRevisionId(std::move(value)); return *this;} /** *

    A string value that you can use to conditionally update your policy. You can * provide the revision ID of your existing policy to make mutating requests - * against that policy. When you provide an expected revision ID, if the revision - * ID of the existing policy on the resource doesn't match or if there's no policy - * attached to the resource, your request will be rejected with a - * PolicyNotFoundException.

    To conditionally put a policy when - * no policy exists for the resource, specify NO_POLICY for the - * revision ID.

    + * against that policy.

    When you provide an expected revision ID, if + * the revision ID of the existing policy on the resource doesn't match or if + * there's no policy attached to the resource, your request will be rejected with a + * PolicyNotFoundException.

    To conditionally attach a + * policy when no policy exists for the resource, specify NO_POLICY + * for the revision ID.

    */ inline PutResourcePolicyRequest& WithExpectedRevisionId(const char* value) { SetExpectedRevisionId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/PutResourcePolicyResult.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/PutResourcePolicyResult.h index 6658829adfe..1232dda732a 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/PutResourcePolicyResult.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/PutResourcePolicyResult.h @@ -33,43 +33,43 @@ namespace Model /** - *

    A unique string that represents the revision ID of the policy. If you are + *

    A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

    */ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** - *

    A unique string that represents the revision ID of the policy. If you are + *

    A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

    */ inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } /** - *

    A unique string that represents the revision ID of the policy. If you are + *

    A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

    */ inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } /** - *

    A unique string that represents the revision ID of the policy. If you are + *

    A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

    */ inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } /** - *

    A unique string that represents the revision ID of the policy. If you are + *

    A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

    */ inline PutResourcePolicyResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** - *

    A unique string that represents the revision ID of the policy. If you are + *

    A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

    */ inline PutResourcePolicyResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** - *

    A unique string that represents the revision ID of the policy. If you are + *

    A unique string that represents the revision ID of the policy. If you're * comparing revision IDs, make sure to always use string comparison logic.

    */ inline PutResourcePolicyResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaDescription.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaDescription.h index f28f92578b3..bd12d2a4e96 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaDescription.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaDescription.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -361,6 +362,43 @@ namespace Model inline ReplicaDescription& WithProvisionedThroughputOverride(ProvisionedThroughputOverride&& value) { SetProvisionedThroughputOverride(std::move(value)); return *this;} + /** + *

    Overrides the maximum on-demand throughput settings for the specified replica + * table.

    + */ + inline const OnDemandThroughputOverride& GetOnDemandThroughputOverride() const{ return m_onDemandThroughputOverride; } + + /** + *

    Overrides the maximum on-demand throughput settings for the specified replica + * table.

    + */ + inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; } + + /** + *

    Overrides the maximum on-demand throughput settings for the specified replica + * table.

    + */ + inline void SetOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = value; } + + /** + *

    Overrides the maximum on-demand throughput settings for the specified replica + * table.

    + */ + inline void SetOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::move(value); } + + /** + *

    Overrides the maximum on-demand throughput settings for the specified replica + * table.

    + */ + inline ReplicaDescription& WithOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { SetOnDemandThroughputOverride(value); return *this;} + + /** + *

    Overrides the maximum on-demand throughput settings for the specified replica + * table.

    + */ + inline ReplicaDescription& WithOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { SetOnDemandThroughputOverride(std::move(value)); return *this;} + + /** *

    Replica-specific global secondary index settings.

    */ @@ -483,6 +521,9 @@ namespace Model ProvisionedThroughputOverride m_provisionedThroughputOverride; bool m_provisionedThroughputOverrideHasBeenSet = false; + OnDemandThroughputOverride m_onDemandThroughputOverride; + bool m_onDemandThroughputOverrideHasBeenSet = false; + Aws::Vector m_globalSecondaryIndexes; bool m_globalSecondaryIndexesHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaGlobalSecondaryIndex.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaGlobalSecondaryIndex.h index f9bdeb596c2..4fe889d1135 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaGlobalSecondaryIndex.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaGlobalSecondaryIndex.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -116,6 +117,43 @@ namespace Model */ inline ReplicaGlobalSecondaryIndex& WithProvisionedThroughputOverride(ProvisionedThroughputOverride&& value) { SetProvisionedThroughputOverride(std::move(value)); return *this;} + + /** + *

    Overrides the maximum on-demand throughput settings for the specified global + * secondary index in the specified replica table.

    + */ + inline const OnDemandThroughputOverride& GetOnDemandThroughputOverride() const{ return m_onDemandThroughputOverride; } + + /** + *

    Overrides the maximum on-demand throughput settings for the specified global + * secondary index in the specified replica table.

    + */ + inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; } + + /** + *

    Overrides the maximum on-demand throughput settings for the specified global + * secondary index in the specified replica table.

    + */ + inline void SetOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = value; } + + /** + *

    Overrides the maximum on-demand throughput settings for the specified global + * secondary index in the specified replica table.

    + */ + inline void SetOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::move(value); } + + /** + *

    Overrides the maximum on-demand throughput settings for the specified global + * secondary index in the specified replica table.

    + */ + inline ReplicaGlobalSecondaryIndex& WithOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { SetOnDemandThroughputOverride(value); return *this;} + + /** + *

    Overrides the maximum on-demand throughput settings for the specified global + * secondary index in the specified replica table.

    + */ + inline ReplicaGlobalSecondaryIndex& WithOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { SetOnDemandThroughputOverride(std::move(value)); return *this;} + private: Aws::String m_indexName; @@ -123,6 +161,9 @@ namespace Model ProvisionedThroughputOverride m_provisionedThroughputOverride; bool m_provisionedThroughputOverrideHasBeenSet = false; + + OnDemandThroughputOverride m_onDemandThroughputOverride; + bool m_onDemandThroughputOverrideHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaGlobalSecondaryIndexDescription.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaGlobalSecondaryIndexDescription.h index de2bfafd81a..1b84803d740 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaGlobalSecondaryIndexDescription.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaGlobalSecondaryIndexDescription.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -110,6 +111,43 @@ namespace Model */ inline ReplicaGlobalSecondaryIndexDescription& WithProvisionedThroughputOverride(ProvisionedThroughputOverride&& value) { SetProvisionedThroughputOverride(std::move(value)); return *this;} + + /** + *

    Overrides the maximum on-demand throughput for the specified global secondary + * index in the specified replica table.

    + */ + inline const OnDemandThroughputOverride& GetOnDemandThroughputOverride() const{ return m_onDemandThroughputOverride; } + + /** + *

    Overrides the maximum on-demand throughput for the specified global secondary + * index in the specified replica table.

    + */ + inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; } + + /** + *

    Overrides the maximum on-demand throughput for the specified global secondary + * index in the specified replica table.

    + */ + inline void SetOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = value; } + + /** + *

    Overrides the maximum on-demand throughput for the specified global secondary + * index in the specified replica table.

    + */ + inline void SetOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::move(value); } + + /** + *

    Overrides the maximum on-demand throughput for the specified global secondary + * index in the specified replica table.

    + */ + inline ReplicaGlobalSecondaryIndexDescription& WithOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { SetOnDemandThroughputOverride(value); return *this;} + + /** + *

    Overrides the maximum on-demand throughput for the specified global secondary + * index in the specified replica table.

    + */ + inline ReplicaGlobalSecondaryIndexDescription& WithOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { SetOnDemandThroughputOverride(std::move(value)); return *this;} + private: Aws::String m_indexName; @@ -117,6 +155,9 @@ namespace Model ProvisionedThroughputOverride m_provisionedThroughputOverride; bool m_provisionedThroughputOverrideHasBeenSet = false; + + OnDemandThroughputOverride m_onDemandThroughputOverride; + bool m_onDemandThroughputOverrideHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/RestoreTableFromBackupRequest.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/RestoreTableFromBackupRequest.h index 3af5987df15..47d42a0f813 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/RestoreTableFromBackupRequest.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/RestoreTableFromBackupRequest.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -298,6 +299,25 @@ namespace Model inline RestoreTableFromBackupRequest& WithProvisionedThroughputOverride(ProvisionedThroughput&& value) { SetProvisionedThroughputOverride(std::move(value)); return *this;} + + inline const OnDemandThroughput& GetOnDemandThroughputOverride() const{ return m_onDemandThroughputOverride; } + + + inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; } + + + inline void SetOnDemandThroughputOverride(const OnDemandThroughput& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = value; } + + + inline void SetOnDemandThroughputOverride(OnDemandThroughput&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::move(value); } + + + inline RestoreTableFromBackupRequest& WithOnDemandThroughputOverride(const OnDemandThroughput& value) { SetOnDemandThroughputOverride(value); return *this;} + + + inline RestoreTableFromBackupRequest& WithOnDemandThroughputOverride(OnDemandThroughput&& value) { SetOnDemandThroughputOverride(std::move(value)); return *this;} + + /** *

    The new server-side encryption settings for the restored table.

    */ @@ -348,6 +368,9 @@ namespace Model ProvisionedThroughput m_provisionedThroughputOverride; bool m_provisionedThroughputOverrideHasBeenSet = false; + OnDemandThroughput m_onDemandThroughputOverride; + bool m_onDemandThroughputOverrideHasBeenSet = false; + SSESpecification m_sSESpecificationOverride; bool m_sSESpecificationOverrideHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/RestoreTableToPointInTimeRequest.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/RestoreTableToPointInTimeRequest.h index 91a54682bd2..6abea8f255f 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/RestoreTableToPointInTimeRequest.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/RestoreTableToPointInTimeRequest.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -408,6 +409,25 @@ namespace Model inline RestoreTableToPointInTimeRequest& WithProvisionedThroughputOverride(ProvisionedThroughput&& value) { SetProvisionedThroughputOverride(std::move(value)); return *this;} + + inline const OnDemandThroughput& GetOnDemandThroughputOverride() const{ return m_onDemandThroughputOverride; } + + + inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; } + + + inline void SetOnDemandThroughputOverride(const OnDemandThroughput& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = value; } + + + inline void SetOnDemandThroughputOverride(OnDemandThroughput&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::move(value); } + + + inline RestoreTableToPointInTimeRequest& WithOnDemandThroughputOverride(const OnDemandThroughput& value) { SetOnDemandThroughputOverride(value); return *this;} + + + inline RestoreTableToPointInTimeRequest& WithOnDemandThroughputOverride(OnDemandThroughput&& value) { SetOnDemandThroughputOverride(std::move(value)); return *this;} + + /** *

    The new server-side encryption settings for the restored table.

    */ @@ -467,6 +487,9 @@ namespace Model ProvisionedThroughput m_provisionedThroughputOverride; bool m_provisionedThroughputOverrideHasBeenSet = false; + OnDemandThroughput m_onDemandThroughputOverride; + bool m_onDemandThroughputOverrideHasBeenSet = false; + SSESpecification m_sSESpecificationOverride; bool m_sSESpecificationOverrideHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/SourceTableDetails.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/SourceTableDetails.h index bac7b36c037..5c3a17eef56 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/SourceTableDetails.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/SourceTableDetails.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -290,6 +291,25 @@ namespace Model inline SourceTableDetails& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} + + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + + inline SourceTableDetails& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + + inline SourceTableDetails& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + + /** *

    Number of items in the table. Note that this is an approximate value.

    */ @@ -400,6 +420,9 @@ namespace Model ProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; + long long m_itemCount; bool m_itemCountHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/TableCreationParameters.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/TableCreationParameters.h index d852d3b5e21..799041103d2 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/TableCreationParameters.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/TableCreationParameters.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -233,6 +234,25 @@ namespace Model + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + + inline TableCreationParameters& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + + inline TableCreationParameters& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + + + inline const SSESpecification& GetSSESpecification() const{ return m_sSESpecification; } @@ -316,6 +336,9 @@ namespace Model ProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; + SSESpecification m_sSESpecification; bool m_sSESpecificationHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/TableDescription.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/TableDescription.h index ad234538bb7..785bf3d3e04 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/TableDescription.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/TableDescription.h @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -1784,6 +1785,49 @@ namespace Model */ inline TableDescription& WithDeletionProtectionEnabled(bool value) { SetDeletionProtectionEnabled(value); return *this;} + + /** + *

    The maximum number of read and write units for the specified on-demand table. + * If you use this parameter, you must specify MaxReadRequestUnits, + * MaxWriteRequestUnits, or both.

    + */ + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + /** + *

    The maximum number of read and write units for the specified on-demand table. + * If you use this parameter, you must specify MaxReadRequestUnits, + * MaxWriteRequestUnits, or both.

    + */ + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + /** + *

    The maximum number of read and write units for the specified on-demand table. + * If you use this parameter, you must specify MaxReadRequestUnits, + * MaxWriteRequestUnits, or both.

    + */ + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + /** + *

    The maximum number of read and write units for the specified on-demand table. + * If you use this parameter, you must specify MaxReadRequestUnits, + * MaxWriteRequestUnits, or both.

    + */ + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + /** + *

    The maximum number of read and write units for the specified on-demand table. + * If you use this parameter, you must specify MaxReadRequestUnits, + * MaxWriteRequestUnits, or both.

    + */ + inline TableDescription& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + /** + *

    The maximum number of read and write units for the specified on-demand table. + * If you use this parameter, you must specify MaxReadRequestUnits, + * MaxWriteRequestUnits, or both.

    + */ + inline TableDescription& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + private: Aws::Vector m_attributeDefinitions; @@ -1854,6 +1898,9 @@ namespace Model bool m_deletionProtectionEnabled; bool m_deletionProtectionEnabledHasBeenSet = false; + + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateGlobalSecondaryIndexAction.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateGlobalSecondaryIndexAction.h index 6c937e2bf6d..f9e4a132a23 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateGlobalSecondaryIndexAction.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateGlobalSecondaryIndexAction.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -134,6 +135,55 @@ namespace Model */ inline UpdateGlobalSecondaryIndexAction& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} + + /** + *

    Updates the maximum number of read and write units for the specified global + * secondary index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + /** + *

    Updates the maximum number of read and write units for the specified global + * secondary index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + /** + *

    Updates the maximum number of read and write units for the specified global + * secondary index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + /** + *

    Updates the maximum number of read and write units for the specified global + * secondary index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + /** + *

    Updates the maximum number of read and write units for the specified global + * secondary index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline UpdateGlobalSecondaryIndexAction& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + /** + *

    Updates the maximum number of read and write units for the specified global + * secondary index. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline UpdateGlobalSecondaryIndexAction& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + private: Aws::String m_indexName; @@ -141,6 +191,9 @@ namespace Model ProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; + + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateReplicationGroupMemberAction.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateReplicationGroupMemberAction.h index 9f886cd8c5c..50a1bf7fbe1 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateReplicationGroupMemberAction.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateReplicationGroupMemberAction.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -184,6 +185,37 @@ namespace Model inline UpdateReplicationGroupMemberAction& WithProvisionedThroughputOverride(ProvisionedThroughputOverride&& value) { SetProvisionedThroughputOverride(std::move(value)); return *this;} + /** + *

    Overrides the maximum on-demand throughput for the replica table.

    + */ + inline const OnDemandThroughputOverride& GetOnDemandThroughputOverride() const{ return m_onDemandThroughputOverride; } + + /** + *

    Overrides the maximum on-demand throughput for the replica table.

    + */ + inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; } + + /** + *

    Overrides the maximum on-demand throughput for the replica table.

    + */ + inline void SetOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = value; } + + /** + *

    Overrides the maximum on-demand throughput for the replica table.

    + */ + inline void SetOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::move(value); } + + /** + *

    Overrides the maximum on-demand throughput for the replica table.

    + */ + inline UpdateReplicationGroupMemberAction& WithOnDemandThroughputOverride(const OnDemandThroughputOverride& value) { SetOnDemandThroughputOverride(value); return *this;} + + /** + *

    Overrides the maximum on-demand throughput for the replica table.

    + */ + inline UpdateReplicationGroupMemberAction& WithOnDemandThroughputOverride(OnDemandThroughputOverride&& value) { SetOnDemandThroughputOverride(std::move(value)); return *this;} + + /** *

    Replica-specific global secondary index settings.

    */ @@ -272,6 +304,9 @@ namespace Model ProvisionedThroughputOverride m_provisionedThroughputOverride; bool m_provisionedThroughputOverrideHasBeenSet = false; + OnDemandThroughputOverride m_onDemandThroughputOverride; + bool m_onDemandThroughputOverrideHasBeenSet = false; + Aws::Vector m_globalSecondaryIndexes; bool m_globalSecondaryIndexesHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateTableRequest.h b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateTableRequest.h index cfbe6e07c1c..5e2de309441 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateTableRequest.h +++ b/generated/src/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/UpdateTableRequest.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -614,6 +615,55 @@ namespace Model */ inline UpdateTableRequest& WithDeletionProtectionEnabled(bool value) { SetDeletionProtectionEnabled(value); return *this;} + + /** + *

    Updates the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; } + + /** + *

    Updates the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; } + + /** + *

    Updates the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; } + + /** + *

    Updates the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); } + + /** + *

    Updates the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline UpdateTableRequest& WithOnDemandThroughput(const OnDemandThroughput& value) { SetOnDemandThroughput(value); return *this;} + + /** + *

    Updates the maximum number of read and write units for the specified table in + * on-demand capacity mode. If you use this parameter, you must specify + * MaxReadRequestUnits, MaxWriteRequestUnits, or + * both.

    + */ + inline UpdateTableRequest& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;} + private: Aws::Vector m_attributeDefinitions; @@ -645,6 +695,9 @@ namespace Model bool m_deletionProtectionEnabled; bool m_deletionProtectionEnabledHasBeenSet = false; + + OnDemandThroughput m_onDemandThroughput; + bool m_onDemandThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateGlobalSecondaryIndexAction.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateGlobalSecondaryIndexAction.cpp index 7d808b10abe..118f4a4dc32 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateGlobalSecondaryIndexAction.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateGlobalSecondaryIndexAction.cpp @@ -22,7 +22,8 @@ CreateGlobalSecondaryIndexAction::CreateGlobalSecondaryIndexAction() : m_indexNameHasBeenSet(false), m_keySchemaHasBeenSet(false), m_projectionHasBeenSet(false), - m_provisionedThroughputHasBeenSet(false) + m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { } @@ -30,7 +31,8 @@ CreateGlobalSecondaryIndexAction::CreateGlobalSecondaryIndexAction(JsonView json m_indexNameHasBeenSet(false), m_keySchemaHasBeenSet(false), m_projectionHasBeenSet(false), - m_provisionedThroughputHasBeenSet(false) + m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { *this = jsonValue; } @@ -68,6 +70,13 @@ CreateGlobalSecondaryIndexAction& CreateGlobalSecondaryIndexAction::operator =(J m_provisionedThroughputHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughput")) + { + m_onDemandThroughput = jsonValue.GetObject("OnDemandThroughput"); + + m_onDemandThroughputHasBeenSet = true; + } + return *this; } @@ -104,6 +113,12 @@ JsonValue CreateGlobalSecondaryIndexAction::Jsonize() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateReplicationGroupMemberAction.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateReplicationGroupMemberAction.cpp index c505fdccb49..194f16a9c8b 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateReplicationGroupMemberAction.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateReplicationGroupMemberAction.cpp @@ -22,6 +22,7 @@ CreateReplicationGroupMemberAction::CreateReplicationGroupMemberAction() : m_regionNameHasBeenSet(false), m_kMSMasterKeyIdHasBeenSet(false), m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false), m_globalSecondaryIndexesHasBeenSet(false), m_tableClassOverride(TableClass::NOT_SET), m_tableClassOverrideHasBeenSet(false) @@ -32,6 +33,7 @@ CreateReplicationGroupMemberAction::CreateReplicationGroupMemberAction(JsonView m_regionNameHasBeenSet(false), m_kMSMasterKeyIdHasBeenSet(false), m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false), m_globalSecondaryIndexesHasBeenSet(false), m_tableClassOverride(TableClass::NOT_SET), m_tableClassOverrideHasBeenSet(false) @@ -62,6 +64,13 @@ CreateReplicationGroupMemberAction& CreateReplicationGroupMemberAction::operator m_provisionedThroughputOverrideHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughputOverride")) + { + m_onDemandThroughputOverride = jsonValue.GetObject("OnDemandThroughputOverride"); + + m_onDemandThroughputOverrideHasBeenSet = true; + } + if(jsonValue.ValueExists("GlobalSecondaryIndexes")) { Aws::Utils::Array globalSecondaryIndexesJsonList = jsonValue.GetArray("GlobalSecondaryIndexes"); @@ -104,6 +113,12 @@ JsonValue CreateReplicationGroupMemberAction::Jsonize() const } + if(m_onDemandThroughputOverrideHasBeenSet) + { + payload.WithObject("OnDemandThroughputOverride", m_onDemandThroughputOverride.Jsonize()); + + } + if(m_globalSecondaryIndexesHasBeenSet) { Aws::Utils::Array globalSecondaryIndexesJsonList(m_globalSecondaryIndexes.size()); diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateTableRequest.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateTableRequest.cpp index d7fd0db4200..7c2cacdac93 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateTableRequest.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/CreateTableRequest.cpp @@ -28,7 +28,8 @@ CreateTableRequest::CreateTableRequest() : m_tableClassHasBeenSet(false), m_deletionProtectionEnabled(false), m_deletionProtectionEnabledHasBeenSet(false), - m_resourcePolicyHasBeenSet(false) + m_resourcePolicyHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { } @@ -137,6 +138,12 @@ Aws::String CreateTableRequest::SerializePayload() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndex.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndex.cpp index e75e9cae3e4..5a5eb63b71c 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndex.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndex.cpp @@ -22,7 +22,8 @@ GlobalSecondaryIndex::GlobalSecondaryIndex() : m_indexNameHasBeenSet(false), m_keySchemaHasBeenSet(false), m_projectionHasBeenSet(false), - m_provisionedThroughputHasBeenSet(false) + m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { } @@ -30,7 +31,8 @@ GlobalSecondaryIndex::GlobalSecondaryIndex(JsonView jsonValue) : m_indexNameHasBeenSet(false), m_keySchemaHasBeenSet(false), m_projectionHasBeenSet(false), - m_provisionedThroughputHasBeenSet(false) + m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { *this = jsonValue; } @@ -68,6 +70,13 @@ GlobalSecondaryIndex& GlobalSecondaryIndex::operator =(JsonView jsonValue) m_provisionedThroughputHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughput")) + { + m_onDemandThroughput = jsonValue.GetObject("OnDemandThroughput"); + + m_onDemandThroughputHasBeenSet = true; + } + return *this; } @@ -104,6 +113,12 @@ JsonValue GlobalSecondaryIndex::Jsonize() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndexDescription.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndexDescription.cpp index fd50664f598..9915365507b 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndexDescription.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndexDescription.cpp @@ -31,7 +31,8 @@ GlobalSecondaryIndexDescription::GlobalSecondaryIndexDescription() : m_indexSizeBytesHasBeenSet(false), m_itemCount(0), m_itemCountHasBeenSet(false), - m_indexArnHasBeenSet(false) + m_indexArnHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { } @@ -48,7 +49,8 @@ GlobalSecondaryIndexDescription::GlobalSecondaryIndexDescription(JsonView jsonVa m_indexSizeBytesHasBeenSet(false), m_itemCount(0), m_itemCountHasBeenSet(false), - m_indexArnHasBeenSet(false) + m_indexArnHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { *this = jsonValue; } @@ -121,6 +123,13 @@ GlobalSecondaryIndexDescription& GlobalSecondaryIndexDescription::operator =(Jso m_indexArnHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughput")) + { + m_onDemandThroughput = jsonValue.GetObject("OnDemandThroughput"); + + m_onDemandThroughputHasBeenSet = true; + } + return *this; } @@ -186,6 +195,12 @@ JsonValue GlobalSecondaryIndexDescription::Jsonize() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndexInfo.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndexInfo.cpp index 2986874f1af..4a4366fe044 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndexInfo.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalSecondaryIndexInfo.cpp @@ -22,7 +22,8 @@ GlobalSecondaryIndexInfo::GlobalSecondaryIndexInfo() : m_indexNameHasBeenSet(false), m_keySchemaHasBeenSet(false), m_projectionHasBeenSet(false), - m_provisionedThroughputHasBeenSet(false) + m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { } @@ -30,7 +31,8 @@ GlobalSecondaryIndexInfo::GlobalSecondaryIndexInfo(JsonView jsonValue) : m_indexNameHasBeenSet(false), m_keySchemaHasBeenSet(false), m_projectionHasBeenSet(false), - m_provisionedThroughputHasBeenSet(false) + m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { *this = jsonValue; } @@ -68,6 +70,13 @@ GlobalSecondaryIndexInfo& GlobalSecondaryIndexInfo::operator =(JsonView jsonValu m_provisionedThroughputHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughput")) + { + m_onDemandThroughput = jsonValue.GetObject("OnDemandThroughput"); + + m_onDemandThroughputHasBeenSet = true; + } + return *this; } @@ -104,6 +113,12 @@ JsonValue GlobalSecondaryIndexInfo::Jsonize() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/OnDemandThroughput.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/OnDemandThroughput.cpp new file mode 100644 index 00000000000..ee2eef51bf1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/OnDemandThroughput.cpp @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace DynamoDB +{ +namespace Model +{ + +OnDemandThroughput::OnDemandThroughput() : + m_maxReadRequestUnits(0), + m_maxReadRequestUnitsHasBeenSet(false), + m_maxWriteRequestUnits(0), + m_maxWriteRequestUnitsHasBeenSet(false) +{ +} + +OnDemandThroughput::OnDemandThroughput(JsonView jsonValue) : + m_maxReadRequestUnits(0), + m_maxReadRequestUnitsHasBeenSet(false), + m_maxWriteRequestUnits(0), + m_maxWriteRequestUnitsHasBeenSet(false) +{ + *this = jsonValue; +} + +OnDemandThroughput& OnDemandThroughput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("MaxReadRequestUnits")) + { + m_maxReadRequestUnits = jsonValue.GetInt64("MaxReadRequestUnits"); + + m_maxReadRequestUnitsHasBeenSet = true; + } + + if(jsonValue.ValueExists("MaxWriteRequestUnits")) + { + m_maxWriteRequestUnits = jsonValue.GetInt64("MaxWriteRequestUnits"); + + m_maxWriteRequestUnitsHasBeenSet = true; + } + + return *this; +} + +JsonValue OnDemandThroughput::Jsonize() const +{ + JsonValue payload; + + if(m_maxReadRequestUnitsHasBeenSet) + { + payload.WithInt64("MaxReadRequestUnits", m_maxReadRequestUnits); + + } + + if(m_maxWriteRequestUnitsHasBeenSet) + { + payload.WithInt64("MaxWriteRequestUnits", m_maxWriteRequestUnits); + + } + + return payload; +} + +} // namespace Model +} // namespace DynamoDB +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/OnDemandThroughputOverride.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/OnDemandThroughputOverride.cpp new file mode 100644 index 00000000000..0e187c81d92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/OnDemandThroughputOverride.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace DynamoDB +{ +namespace Model +{ + +OnDemandThroughputOverride::OnDemandThroughputOverride() : + m_maxReadRequestUnits(0), + m_maxReadRequestUnitsHasBeenSet(false) +{ +} + +OnDemandThroughputOverride::OnDemandThroughputOverride(JsonView jsonValue) : + m_maxReadRequestUnits(0), + m_maxReadRequestUnitsHasBeenSet(false) +{ + *this = jsonValue; +} + +OnDemandThroughputOverride& OnDemandThroughputOverride::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("MaxReadRequestUnits")) + { + m_maxReadRequestUnits = jsonValue.GetInt64("MaxReadRequestUnits"); + + m_maxReadRequestUnitsHasBeenSet = true; + } + + return *this; +} + +JsonValue OnDemandThroughputOverride::Jsonize() const +{ + JsonValue payload; + + if(m_maxReadRequestUnitsHasBeenSet) + { + payload.WithInt64("MaxReadRequestUnits", m_maxReadRequestUnits); + + } + + return payload; +} + +} // namespace Model +} // namespace DynamoDB +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaDescription.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaDescription.cpp index eb444ffb027..b0fd392ef7f 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaDescription.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaDescription.cpp @@ -26,6 +26,7 @@ ReplicaDescription::ReplicaDescription() : m_replicaStatusPercentProgressHasBeenSet(false), m_kMSMasterKeyIdHasBeenSet(false), m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false), m_globalSecondaryIndexesHasBeenSet(false), m_replicaInaccessibleDateTimeHasBeenSet(false), m_replicaTableClassSummaryHasBeenSet(false) @@ -40,6 +41,7 @@ ReplicaDescription::ReplicaDescription(JsonView jsonValue) : m_replicaStatusPercentProgressHasBeenSet(false), m_kMSMasterKeyIdHasBeenSet(false), m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false), m_globalSecondaryIndexesHasBeenSet(false), m_replicaInaccessibleDateTimeHasBeenSet(false), m_replicaTableClassSummaryHasBeenSet(false) @@ -91,6 +93,13 @@ ReplicaDescription& ReplicaDescription::operator =(JsonView jsonValue) m_provisionedThroughputOverrideHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughputOverride")) + { + m_onDemandThroughputOverride = jsonValue.GetObject("OnDemandThroughputOverride"); + + m_onDemandThroughputOverrideHasBeenSet = true; + } + if(jsonValue.ValueExists("GlobalSecondaryIndexes")) { Aws::Utils::Array globalSecondaryIndexesJsonList = jsonValue.GetArray("GlobalSecondaryIndexes"); @@ -157,6 +166,12 @@ JsonValue ReplicaDescription::Jsonize() const } + if(m_onDemandThroughputOverrideHasBeenSet) + { + payload.WithObject("OnDemandThroughputOverride", m_onDemandThroughputOverride.Jsonize()); + + } + if(m_globalSecondaryIndexesHasBeenSet) { Aws::Utils::Array globalSecondaryIndexesJsonList(m_globalSecondaryIndexes.size()); diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaGlobalSecondaryIndex.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaGlobalSecondaryIndex.cpp index 48efb685e7b..f41c1349e52 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaGlobalSecondaryIndex.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaGlobalSecondaryIndex.cpp @@ -20,13 +20,15 @@ namespace Model ReplicaGlobalSecondaryIndex::ReplicaGlobalSecondaryIndex() : m_indexNameHasBeenSet(false), - m_provisionedThroughputOverrideHasBeenSet(false) + m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false) { } ReplicaGlobalSecondaryIndex::ReplicaGlobalSecondaryIndex(JsonView jsonValue) : m_indexNameHasBeenSet(false), - m_provisionedThroughputOverrideHasBeenSet(false) + m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false) { *this = jsonValue; } @@ -47,6 +49,13 @@ ReplicaGlobalSecondaryIndex& ReplicaGlobalSecondaryIndex::operator =(JsonView js m_provisionedThroughputOverrideHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughputOverride")) + { + m_onDemandThroughputOverride = jsonValue.GetObject("OnDemandThroughputOverride"); + + m_onDemandThroughputOverrideHasBeenSet = true; + } + return *this; } @@ -66,6 +75,12 @@ JsonValue ReplicaGlobalSecondaryIndex::Jsonize() const } + if(m_onDemandThroughputOverrideHasBeenSet) + { + payload.WithObject("OnDemandThroughputOverride", m_onDemandThroughputOverride.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaGlobalSecondaryIndexDescription.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaGlobalSecondaryIndexDescription.cpp index fba9a54dc72..95a39858e60 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaGlobalSecondaryIndexDescription.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaGlobalSecondaryIndexDescription.cpp @@ -20,13 +20,15 @@ namespace Model ReplicaGlobalSecondaryIndexDescription::ReplicaGlobalSecondaryIndexDescription() : m_indexNameHasBeenSet(false), - m_provisionedThroughputOverrideHasBeenSet(false) + m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false) { } ReplicaGlobalSecondaryIndexDescription::ReplicaGlobalSecondaryIndexDescription(JsonView jsonValue) : m_indexNameHasBeenSet(false), - m_provisionedThroughputOverrideHasBeenSet(false) + m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false) { *this = jsonValue; } @@ -47,6 +49,13 @@ ReplicaGlobalSecondaryIndexDescription& ReplicaGlobalSecondaryIndexDescription:: m_provisionedThroughputOverrideHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughputOverride")) + { + m_onDemandThroughputOverride = jsonValue.GetObject("OnDemandThroughputOverride"); + + m_onDemandThroughputOverrideHasBeenSet = true; + } + return *this; } @@ -66,6 +75,12 @@ JsonValue ReplicaGlobalSecondaryIndexDescription::Jsonize() const } + if(m_onDemandThroughputOverrideHasBeenSet) + { + payload.WithObject("OnDemandThroughputOverride", m_onDemandThroughputOverride.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/RestoreTableFromBackupRequest.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/RestoreTableFromBackupRequest.cpp index 675977d7292..0fad2784d1c 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/RestoreTableFromBackupRequest.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/RestoreTableFromBackupRequest.cpp @@ -20,6 +20,7 @@ RestoreTableFromBackupRequest::RestoreTableFromBackupRequest() : m_globalSecondaryIndexOverrideHasBeenSet(false), m_localSecondaryIndexOverrideHasBeenSet(false), m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false), m_sSESpecificationOverrideHasBeenSet(false) { } @@ -73,6 +74,12 @@ Aws::String RestoreTableFromBackupRequest::SerializePayload() const } + if(m_onDemandThroughputOverrideHasBeenSet) + { + payload.WithObject("OnDemandThroughputOverride", m_onDemandThroughputOverride.Jsonize()); + + } + if(m_sSESpecificationOverrideHasBeenSet) { payload.WithObject("SSESpecificationOverride", m_sSESpecificationOverride.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/RestoreTableToPointInTimeRequest.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/RestoreTableToPointInTimeRequest.cpp index a848fb7ce47..79d417b83ad 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/RestoreTableToPointInTimeRequest.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/RestoreTableToPointInTimeRequest.cpp @@ -24,6 +24,7 @@ RestoreTableToPointInTimeRequest::RestoreTableToPointInTimeRequest() : m_globalSecondaryIndexOverrideHasBeenSet(false), m_localSecondaryIndexOverrideHasBeenSet(false), m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false), m_sSESpecificationOverrideHasBeenSet(false) { } @@ -94,6 +95,12 @@ Aws::String RestoreTableToPointInTimeRequest::SerializePayload() const } + if(m_onDemandThroughputOverrideHasBeenSet) + { + payload.WithObject("OnDemandThroughputOverride", m_onDemandThroughputOverride.Jsonize()); + + } + if(m_sSESpecificationOverrideHasBeenSet) { payload.WithObject("SSESpecificationOverride", m_sSESpecificationOverride.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/SourceTableDetails.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/SourceTableDetails.cpp index 535586e4d58..1fe1c08818a 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/SourceTableDetails.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/SourceTableDetails.cpp @@ -27,6 +27,7 @@ SourceTableDetails::SourceTableDetails() : m_keySchemaHasBeenSet(false), m_tableCreationDateTimeHasBeenSet(false), m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false), m_itemCount(0), m_itemCountHasBeenSet(false), m_billingMode(BillingMode::NOT_SET), @@ -43,6 +44,7 @@ SourceTableDetails::SourceTableDetails(JsonView jsonValue) : m_keySchemaHasBeenSet(false), m_tableCreationDateTimeHasBeenSet(false), m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false), m_itemCount(0), m_itemCountHasBeenSet(false), m_billingMode(BillingMode::NOT_SET), @@ -105,6 +107,13 @@ SourceTableDetails& SourceTableDetails::operator =(JsonView jsonValue) m_provisionedThroughputHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughput")) + { + m_onDemandThroughput = jsonValue.GetObject("OnDemandThroughput"); + + m_onDemandThroughputHasBeenSet = true; + } + if(jsonValue.ValueExists("ItemCount")) { m_itemCount = jsonValue.GetInt64("ItemCount"); @@ -172,6 +181,12 @@ JsonValue SourceTableDetails::Jsonize() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + if(m_itemCountHasBeenSet) { payload.WithInt64("ItemCount", m_itemCount); diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/TableCreationParameters.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/TableCreationParameters.cpp index 5fb00064205..7145b9d00c9 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/TableCreationParameters.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/TableCreationParameters.cpp @@ -25,6 +25,7 @@ TableCreationParameters::TableCreationParameters() : m_billingMode(BillingMode::NOT_SET), m_billingModeHasBeenSet(false), m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false), m_sSESpecificationHasBeenSet(false), m_globalSecondaryIndexesHasBeenSet(false) { @@ -37,6 +38,7 @@ TableCreationParameters::TableCreationParameters(JsonView jsonValue) : m_billingMode(BillingMode::NOT_SET), m_billingModeHasBeenSet(false), m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false), m_sSESpecificationHasBeenSet(false), m_globalSecondaryIndexesHasBeenSet(false) { @@ -86,6 +88,13 @@ TableCreationParameters& TableCreationParameters::operator =(JsonView jsonValue) m_provisionedThroughputHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughput")) + { + m_onDemandThroughput = jsonValue.GetObject("OnDemandThroughput"); + + m_onDemandThroughputHasBeenSet = true; + } + if(jsonValue.ValueExists("SSESpecification")) { m_sSESpecification = jsonValue.GetObject("SSESpecification"); @@ -149,6 +158,12 @@ JsonValue TableCreationParameters::Jsonize() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + if(m_sSESpecificationHasBeenSet) { payload.WithObject("SSESpecification", m_sSESpecification.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/TableDescription.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/TableDescription.cpp index 68ade667df0..2b4b18f3b73 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/TableDescription.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/TableDescription.cpp @@ -45,7 +45,8 @@ TableDescription::TableDescription() : m_archivalSummaryHasBeenSet(false), m_tableClassSummaryHasBeenSet(false), m_deletionProtectionEnabled(false), - m_deletionProtectionEnabledHasBeenSet(false) + m_deletionProtectionEnabledHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { } @@ -76,7 +77,8 @@ TableDescription::TableDescription(JsonView jsonValue) : m_archivalSummaryHasBeenSet(false), m_tableClassSummaryHasBeenSet(false), m_deletionProtectionEnabled(false), - m_deletionProtectionEnabledHasBeenSet(false) + m_deletionProtectionEnabledHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { *this = jsonValue; } @@ -259,6 +261,13 @@ TableDescription& TableDescription::operator =(JsonView jsonValue) m_deletionProtectionEnabledHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughput")) + { + m_onDemandThroughput = jsonValue.GetObject("OnDemandThroughput"); + + m_onDemandThroughputHasBeenSet = true; + } + return *this; } @@ -427,6 +436,12 @@ JsonValue TableDescription::Jsonize() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateGlobalSecondaryIndexAction.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateGlobalSecondaryIndexAction.cpp index afea6775383..f4780e1df02 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateGlobalSecondaryIndexAction.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateGlobalSecondaryIndexAction.cpp @@ -20,13 +20,15 @@ namespace Model UpdateGlobalSecondaryIndexAction::UpdateGlobalSecondaryIndexAction() : m_indexNameHasBeenSet(false), - m_provisionedThroughputHasBeenSet(false) + m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { } UpdateGlobalSecondaryIndexAction::UpdateGlobalSecondaryIndexAction(JsonView jsonValue) : m_indexNameHasBeenSet(false), - m_provisionedThroughputHasBeenSet(false) + m_provisionedThroughputHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { *this = jsonValue; } @@ -47,6 +49,13 @@ UpdateGlobalSecondaryIndexAction& UpdateGlobalSecondaryIndexAction::operator =(J m_provisionedThroughputHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughput")) + { + m_onDemandThroughput = jsonValue.GetObject("OnDemandThroughput"); + + m_onDemandThroughputHasBeenSet = true; + } + return *this; } @@ -66,6 +75,12 @@ JsonValue UpdateGlobalSecondaryIndexAction::Jsonize() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateReplicationGroupMemberAction.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateReplicationGroupMemberAction.cpp index 617fa8a0fd7..c83b9f605f2 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateReplicationGroupMemberAction.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateReplicationGroupMemberAction.cpp @@ -22,6 +22,7 @@ UpdateReplicationGroupMemberAction::UpdateReplicationGroupMemberAction() : m_regionNameHasBeenSet(false), m_kMSMasterKeyIdHasBeenSet(false), m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false), m_globalSecondaryIndexesHasBeenSet(false), m_tableClassOverride(TableClass::NOT_SET), m_tableClassOverrideHasBeenSet(false) @@ -32,6 +33,7 @@ UpdateReplicationGroupMemberAction::UpdateReplicationGroupMemberAction(JsonView m_regionNameHasBeenSet(false), m_kMSMasterKeyIdHasBeenSet(false), m_provisionedThroughputOverrideHasBeenSet(false), + m_onDemandThroughputOverrideHasBeenSet(false), m_globalSecondaryIndexesHasBeenSet(false), m_tableClassOverride(TableClass::NOT_SET), m_tableClassOverrideHasBeenSet(false) @@ -62,6 +64,13 @@ UpdateReplicationGroupMemberAction& UpdateReplicationGroupMemberAction::operator m_provisionedThroughputOverrideHasBeenSet = true; } + if(jsonValue.ValueExists("OnDemandThroughputOverride")) + { + m_onDemandThroughputOverride = jsonValue.GetObject("OnDemandThroughputOverride"); + + m_onDemandThroughputOverrideHasBeenSet = true; + } + if(jsonValue.ValueExists("GlobalSecondaryIndexes")) { Aws::Utils::Array globalSecondaryIndexesJsonList = jsonValue.GetArray("GlobalSecondaryIndexes"); @@ -104,6 +113,12 @@ JsonValue UpdateReplicationGroupMemberAction::Jsonize() const } + if(m_onDemandThroughputOverrideHasBeenSet) + { + payload.WithObject("OnDemandThroughputOverride", m_onDemandThroughputOverride.Jsonize()); + + } + if(m_globalSecondaryIndexesHasBeenSet) { Aws::Utils::Array globalSecondaryIndexesJsonList(m_globalSecondaryIndexes.size()); diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateTableRequest.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateTableRequest.cpp index 88027695e37..2cd9a310bcb 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateTableRequest.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/UpdateTableRequest.cpp @@ -25,7 +25,8 @@ UpdateTableRequest::UpdateTableRequest() : m_tableClass(TableClass::NOT_SET), m_tableClassHasBeenSet(false), m_deletionProtectionEnabled(false), - m_deletionProtectionEnabledHasBeenSet(false) + m_deletionProtectionEnabledHasBeenSet(false), + m_onDemandThroughputHasBeenSet(false) { } @@ -106,6 +107,12 @@ Aws::String UpdateTableRequest::SerializePayload() const } + if(m_onDemandThroughputHasBeenSet) + { + payload.WithObject("OnDemandThroughput", m_onDemandThroughput.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h index d56c3ca9143..c7783276363 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h @@ -13430,6 +13430,32 @@ namespace EC2 return SubmitAsync(&EC2Client::GetInstanceMetadataDefaults, request, handler, context); } + /** + *

    Gets the public endorsement key associated with the Nitro Trusted Platform + * Module (NitroTPM) for the specified instance.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetInstanceTpmEkPubOutcome GetInstanceTpmEkPub(const Model::GetInstanceTpmEkPubRequest& request) const; + + /** + * A Callable wrapper for GetInstanceTpmEkPub that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetInstanceTpmEkPubOutcomeCallable GetInstanceTpmEkPubCallable(const GetInstanceTpmEkPubRequestT& request) const + { + return SubmitCallable(&EC2Client::GetInstanceTpmEkPub, request); + } + + /** + * An Async wrapper for GetInstanceTpmEkPub that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetInstanceTpmEkPubAsync(const GetInstanceTpmEkPubRequestT& request, const GetInstanceTpmEkPubResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&EC2Client::GetInstanceTpmEkPub, request, handler, context); + } + /** *

    Returns a list of instance types with the specified instance attributes. You * can use the response to preview the instance types without launching instances. diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h index 5eb423c785e..ae968333a16 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h @@ -426,6 +426,7 @@ #include #include #include +#include #include #include #include @@ -1067,6 +1068,7 @@ namespace Aws class GetHostReservationPurchasePreviewRequest; class GetImageBlockPublicAccessStateRequest; class GetInstanceMetadataDefaultsRequest; + class GetInstanceTpmEkPubRequest; class GetInstanceTypesFromInstanceRequirementsRequest; class GetInstanceUefiDataRequest; class GetIpamAddressHistoryRequest; @@ -1690,6 +1692,7 @@ namespace Aws typedef Aws::Utils::Outcome GetHostReservationPurchasePreviewOutcome; typedef Aws::Utils::Outcome GetImageBlockPublicAccessStateOutcome; typedef Aws::Utils::Outcome GetInstanceMetadataDefaultsOutcome; + typedef Aws::Utils::Outcome GetInstanceTpmEkPubOutcome; typedef Aws::Utils::Outcome GetInstanceTypesFromInstanceRequirementsOutcome; typedef Aws::Utils::Outcome GetInstanceUefiDataOutcome; typedef Aws::Utils::Outcome GetIpamAddressHistoryOutcome; @@ -2313,6 +2316,7 @@ namespace Aws typedef std::future GetHostReservationPurchasePreviewOutcomeCallable; typedef std::future GetImageBlockPublicAccessStateOutcomeCallable; typedef std::future GetInstanceMetadataDefaultsOutcomeCallable; + typedef std::future GetInstanceTpmEkPubOutcomeCallable; typedef std::future GetInstanceTypesFromInstanceRequirementsOutcomeCallable; typedef std::future GetInstanceUefiDataOutcomeCallable; typedef std::future GetIpamAddressHistoryOutcomeCallable; @@ -2939,6 +2943,7 @@ namespace Aws typedef std::function&) > GetHostReservationPurchasePreviewResponseReceivedHandler; typedef std::function&) > GetImageBlockPublicAccessStateResponseReceivedHandler; typedef std::function&) > GetInstanceMetadataDefaultsResponseReceivedHandler; + typedef std::function&) > GetInstanceTpmEkPubResponseReceivedHandler; typedef std::function&) > GetInstanceTypesFromInstanceRequirementsResponseReceivedHandler; typedef std::function&) > GetInstanceUefiDataResponseReceivedHandler; typedef std::function&) > GetIpamAddressHistoryResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EkPubKeyFormat.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EkPubKeyFormat.h new file mode 100644 index 00000000000..f7f7f106b29 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EkPubKeyFormat.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + enum class EkPubKeyFormat + { + NOT_SET, + der, + tpmt + }; + +namespace EkPubKeyFormatMapper +{ +AWS_EC2_API EkPubKeyFormat GetEkPubKeyFormatForName(const Aws::String& name); + +AWS_EC2_API Aws::String GetNameForEkPubKeyFormat(EkPubKeyFormat value); +} // namespace EkPubKeyFormatMapper +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EkPubKeyType.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EkPubKeyType.h new file mode 100644 index 00000000000..155b0d699ae --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EkPubKeyType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + enum class EkPubKeyType + { + NOT_SET, + rsa_2048, + ecc_sec_p384 + }; + +namespace EkPubKeyTypeMapper +{ +AWS_EC2_API EkPubKeyType GetEkPubKeyTypeForName(const Aws::String& name); + +AWS_EC2_API Aws::String GetNameForEkPubKeyType(EkPubKeyType value); +} // namespace EkPubKeyTypeMapper +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceTpmEkPubRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceTpmEkPubRequest.h new file mode 100644 index 00000000000..bfffba5ec82 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceTpmEkPubRequest.h @@ -0,0 +1,211 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + + /** + */ + class GetInstanceTpmEkPubRequest : public EC2Request + { + public: + AWS_EC2_API GetInstanceTpmEkPubRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetInstanceTpmEkPub"; } + + AWS_EC2_API Aws::String SerializePayload() const override; + + protected: + AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

    The ID of the instance for which to get the public endorsement key.

    + */ + inline const Aws::String& GetInstanceId() const{ return m_instanceId; } + + /** + *

    The ID of the instance for which to get the public endorsement key.

    + */ + inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } + + /** + *

    The ID of the instance for which to get the public endorsement key.

    + */ + inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } + + /** + *

    The ID of the instance for which to get the public endorsement key.

    + */ + inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } + + /** + *

    The ID of the instance for which to get the public endorsement key.

    + */ + inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } + + /** + *

    The ID of the instance for which to get the public endorsement key.

    + */ + inline GetInstanceTpmEkPubRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} + + /** + *

    The ID of the instance for which to get the public endorsement key.

    + */ + inline GetInstanceTpmEkPubRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} + + /** + *

    The ID of the instance for which to get the public endorsement key.

    + */ + inline GetInstanceTpmEkPubRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} + + + /** + *

    The required public endorsement key type.

    + */ + inline const EkPubKeyType& GetKeyType() const{ return m_keyType; } + + /** + *

    The required public endorsement key type.

    + */ + inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; } + + /** + *

    The required public endorsement key type.

    + */ + inline void SetKeyType(const EkPubKeyType& value) { m_keyTypeHasBeenSet = true; m_keyType = value; } + + /** + *

    The required public endorsement key type.

    + */ + inline void SetKeyType(EkPubKeyType&& value) { m_keyTypeHasBeenSet = true; m_keyType = std::move(value); } + + /** + *

    The required public endorsement key type.

    + */ + inline GetInstanceTpmEkPubRequest& WithKeyType(const EkPubKeyType& value) { SetKeyType(value); return *this;} + + /** + *

    The required public endorsement key type.

    + */ + inline GetInstanceTpmEkPubRequest& WithKeyType(EkPubKeyType&& value) { SetKeyType(std::move(value)); return *this;} + + + /** + *

    The required public endorsement key format. Specify der for a + * DER-encoded public key that is compatible with OpenSSL. Specify + * tpmt for a TPM 2.0 format that is compatible with tpm2-tools. The + * returned key is base64 encoded.

    + */ + inline const EkPubKeyFormat& GetKeyFormat() const{ return m_keyFormat; } + + /** + *

    The required public endorsement key format. Specify der for a + * DER-encoded public key that is compatible with OpenSSL. Specify + * tpmt for a TPM 2.0 format that is compatible with tpm2-tools. The + * returned key is base64 encoded.

    + */ + inline bool KeyFormatHasBeenSet() const { return m_keyFormatHasBeenSet; } + + /** + *

    The required public endorsement key format. Specify der for a + * DER-encoded public key that is compatible with OpenSSL. Specify + * tpmt for a TPM 2.0 format that is compatible with tpm2-tools. The + * returned key is base64 encoded.

    + */ + inline void SetKeyFormat(const EkPubKeyFormat& value) { m_keyFormatHasBeenSet = true; m_keyFormat = value; } + + /** + *

    The required public endorsement key format. Specify der for a + * DER-encoded public key that is compatible with OpenSSL. Specify + * tpmt for a TPM 2.0 format that is compatible with tpm2-tools. The + * returned key is base64 encoded.

    + */ + inline void SetKeyFormat(EkPubKeyFormat&& value) { m_keyFormatHasBeenSet = true; m_keyFormat = std::move(value); } + + /** + *

    The required public endorsement key format. Specify der for a + * DER-encoded public key that is compatible with OpenSSL. Specify + * tpmt for a TPM 2.0 format that is compatible with tpm2-tools. The + * returned key is base64 encoded.

    + */ + inline GetInstanceTpmEkPubRequest& WithKeyFormat(const EkPubKeyFormat& value) { SetKeyFormat(value); return *this;} + + /** + *

    The required public endorsement key format. Specify der for a + * DER-encoded public key that is compatible with OpenSSL. Specify + * tpmt for a TPM 2.0 format that is compatible with tpm2-tools. The + * returned key is base64 encoded.

    + */ + inline GetInstanceTpmEkPubRequest& WithKeyFormat(EkPubKeyFormat&& value) { SetKeyFormat(std::move(value)); return *this;} + + + /** + *

    Specify this parameter to verify whether the request will succeed, without + * actually making the request. If the request will succeed, the response is + * DryRunOperation. Otherwise, the response is + * UnauthorizedOperation.

    + */ + inline bool GetDryRun() const{ return m_dryRun; } + + /** + *

    Specify this parameter to verify whether the request will succeed, without + * actually making the request. If the request will succeed, the response is + * DryRunOperation. Otherwise, the response is + * UnauthorizedOperation.

    + */ + inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } + + /** + *

    Specify this parameter to verify whether the request will succeed, without + * actually making the request. If the request will succeed, the response is + * DryRunOperation. Otherwise, the response is + * UnauthorizedOperation.

    + */ + inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } + + /** + *

    Specify this parameter to verify whether the request will succeed, without + * actually making the request. If the request will succeed, the response is + * DryRunOperation. Otherwise, the response is + * UnauthorizedOperation.

    + */ + inline GetInstanceTpmEkPubRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} + + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + EkPubKeyType m_keyType; + bool m_keyTypeHasBeenSet = false; + + EkPubKeyFormat m_keyFormat; + bool m_keyFormatHasBeenSet = false; + + bool m_dryRun; + bool m_dryRunHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceTpmEkPubResponse.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceTpmEkPubResponse.h new file mode 100644 index 00000000000..f698cbeebcd --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceTpmEkPubResponse.h @@ -0,0 +1,192 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + class GetInstanceTpmEkPubResponse + { + public: + AWS_EC2_API GetInstanceTpmEkPubResponse(); + AWS_EC2_API GetInstanceTpmEkPubResponse(const Aws::AmazonWebServiceResult& result); + AWS_EC2_API GetInstanceTpmEkPubResponse& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The ID of the instance.

    + */ + inline const Aws::String& GetInstanceId() const{ return m_instanceId; } + + /** + *

    The ID of the instance.

    + */ + inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; } + + /** + *

    The ID of the instance.

    + */ + inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); } + + /** + *

    The ID of the instance.

    + */ + inline void SetInstanceId(const char* value) { m_instanceId.assign(value); } + + /** + *

    The ID of the instance.

    + */ + inline GetInstanceTpmEkPubResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} + + /** + *

    The ID of the instance.

    + */ + inline GetInstanceTpmEkPubResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} + + /** + *

    The ID of the instance.

    + */ + inline GetInstanceTpmEkPubResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} + + + /** + *

    The public endorsement key type.

    + */ + inline const EkPubKeyType& GetKeyType() const{ return m_keyType; } + + /** + *

    The public endorsement key type.

    + */ + inline void SetKeyType(const EkPubKeyType& value) { m_keyType = value; } + + /** + *

    The public endorsement key type.

    + */ + inline void SetKeyType(EkPubKeyType&& value) { m_keyType = std::move(value); } + + /** + *

    The public endorsement key type.

    + */ + inline GetInstanceTpmEkPubResponse& WithKeyType(const EkPubKeyType& value) { SetKeyType(value); return *this;} + + /** + *

    The public endorsement key type.

    + */ + inline GetInstanceTpmEkPubResponse& WithKeyType(EkPubKeyType&& value) { SetKeyType(std::move(value)); return *this;} + + + /** + *

    The public endorsement key format.

    + */ + inline const EkPubKeyFormat& GetKeyFormat() const{ return m_keyFormat; } + + /** + *

    The public endorsement key format.

    + */ + inline void SetKeyFormat(const EkPubKeyFormat& value) { m_keyFormat = value; } + + /** + *

    The public endorsement key format.

    + */ + inline void SetKeyFormat(EkPubKeyFormat&& value) { m_keyFormat = std::move(value); } + + /** + *

    The public endorsement key format.

    + */ + inline GetInstanceTpmEkPubResponse& WithKeyFormat(const EkPubKeyFormat& value) { SetKeyFormat(value); return *this;} + + /** + *

    The public endorsement key format.

    + */ + inline GetInstanceTpmEkPubResponse& WithKeyFormat(EkPubKeyFormat&& value) { SetKeyFormat(std::move(value)); return *this;} + + + /** + *

    The public endorsement key material.

    + */ + inline const Aws::String& GetKeyValue() const{ return m_keyValue; } + + /** + *

    The public endorsement key material.

    + */ + inline void SetKeyValue(const Aws::String& value) { m_keyValue = value; } + + /** + *

    The public endorsement key material.

    + */ + inline void SetKeyValue(Aws::String&& value) { m_keyValue = std::move(value); } + + /** + *

    The public endorsement key material.

    + */ + inline void SetKeyValue(const char* value) { m_keyValue.assign(value); } + + /** + *

    The public endorsement key material.

    + */ + inline GetInstanceTpmEkPubResponse& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;} + + /** + *

    The public endorsement key material.

    + */ + inline GetInstanceTpmEkPubResponse& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;} + + /** + *

    The public endorsement key material.

    + */ + inline GetInstanceTpmEkPubResponse& WithKeyValue(const char* value) { SetKeyValue(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline GetInstanceTpmEkPubResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline GetInstanceTpmEkPubResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::String m_instanceId; + + EkPubKeyType m_keyType; + + EkPubKeyFormat m_keyFormat; + + Aws::String m_keyValue; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp index 16625b9c2aa..b70e5370a02 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp @@ -80,6 +80,7 @@ #include #include #include +#include #include #include #include @@ -112,7 +113,6 @@ #include #include #include -#include #include #include #include @@ -1671,6 +1671,32 @@ GetConsoleOutputOutcome EC2Client::GetConsoleOutput(const GetConsoleOutputReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetInstanceTpmEkPubOutcome EC2Client::GetInstanceTpmEkPub(const GetInstanceTpmEkPubRequest& request) const +{ + AWS_OPERATION_GUARD(GetInstanceTpmEkPub); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetInstanceTpmEkPub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetInstanceTpmEkPub, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetInstanceTpmEkPub, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetInstanceTpmEkPubOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetInstanceTpmEkPub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetInstanceTpmEkPubOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetFlowLogsIntegrationTemplateOutcome EC2Client::GetFlowLogsIntegrationTemplate(const GetFlowLogsIntegrationTemplateRequest& request) const { AWS_OPERATION_GUARD(GetFlowLogsIntegrationTemplate); @@ -2503,32 +2529,6 @@ GetAwsNetworkPerformanceDataOutcome EC2Client::GetAwsNetworkPerformanceData(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyInstanceCapacityReservationAttributesOutcome EC2Client::ModifyInstanceCapacityReservationAttributes(const ModifyInstanceCapacityReservationAttributesRequest& request) const -{ - AWS_OPERATION_GUARD(ModifyInstanceCapacityReservationAttributes); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyInstanceCapacityReservationAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyInstanceCapacityReservationAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyInstanceCapacityReservationAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyInstanceCapacityReservationAttributesOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyInstanceCapacityReservationAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyInstanceCapacityReservationAttributesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - EnableAddressTransferOutcome EC2Client::EnableAddressTransfer(const EnableAddressTransferRequest& request) const { AWS_OPERATION_GUARD(EnableAddressTransfer); diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp index 67009f6eba3..05f08556638 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp @@ -70,7 +70,6 @@ #include #include #include -#include #include #include #include @@ -117,6 +116,7 @@ #include #include #include +#include #include #include #include @@ -1411,32 +1411,6 @@ ModifyVolumeAttributeOutcome EC2Client::ModifyVolumeAttribute(const ModifyVolume {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RunInstancesOutcome EC2Client::RunInstances(const RunInstancesRequest& request) const -{ - AWS_OPERATION_GUARD(RunInstances); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RunInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RunInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RunInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RunInstancesOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RunInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RunInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - ModifyInstanceMaintenanceOptionsOutcome EC2Client::ModifyInstanceMaintenanceOptions(const ModifyInstanceMaintenanceOptionsRequest& request) const { AWS_OPERATION_GUARD(ModifyInstanceMaintenanceOptions); @@ -2633,6 +2607,32 @@ ModifyNetworkInterfaceAttributeOutcome EC2Client::ModifyNetworkInterfaceAttribut {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ModifyInstanceCapacityReservationAttributesOutcome EC2Client::ModifyInstanceCapacityReservationAttributes(const ModifyInstanceCapacityReservationAttributesRequest& request) const +{ + AWS_OPERATION_GUARD(ModifyInstanceCapacityReservationAttributes); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyInstanceCapacityReservationAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyInstanceCapacityReservationAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ModifyInstanceCapacityReservationAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyInstanceCapacityReservationAttributesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyInstanceCapacityReservationAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyInstanceCapacityReservationAttributesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ReplaceVpnTunnelOutcome EC2Client::ReplaceVpnTunnel(const ReplaceVpnTunnelRequest& request) const { AWS_OPERATION_GUARD(ReplaceVpnTunnel); diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client6.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client6.cpp index 2e40b1ee946..c475425f4ac 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client6.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client6.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -499,6 +500,32 @@ TerminateClientVpnConnectionsOutcome EC2Client::TerminateClientVpnConnections(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +RunInstancesOutcome EC2Client::RunInstances(const RunInstancesRequest& request) const +{ + AWS_OPERATION_GUARD(RunInstances); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RunInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RunInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, RunInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> RunInstancesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RunInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RunInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UnmonitorInstancesOutcome EC2Client::UnmonitorInstances(const UnmonitorInstancesRequest& request) const { AWS_OPERATION_GUARD(UnmonitorInstances); diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EkPubKeyFormat.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EkPubKeyFormat.cpp new file mode 100644 index 00000000000..fb9893ad9b9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EkPubKeyFormat.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace EC2 + { + namespace Model + { + namespace EkPubKeyFormatMapper + { + + static const int der_HASH = HashingUtils::HashString("der"); + static const int tpmt_HASH = HashingUtils::HashString("tpmt"); + + + EkPubKeyFormat GetEkPubKeyFormatForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == der_HASH) + { + return EkPubKeyFormat::der; + } + else if (hashCode == tpmt_HASH) + { + return EkPubKeyFormat::tpmt; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return EkPubKeyFormat::NOT_SET; + } + + Aws::String GetNameForEkPubKeyFormat(EkPubKeyFormat enumValue) + { + switch(enumValue) + { + case EkPubKeyFormat::NOT_SET: + return {}; + case EkPubKeyFormat::der: + return "der"; + case EkPubKeyFormat::tpmt: + return "tpmt"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace EkPubKeyFormatMapper + } // namespace Model + } // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EkPubKeyType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EkPubKeyType.cpp new file mode 100644 index 00000000000..22394f9805b --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EkPubKeyType.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace EC2 + { + namespace Model + { + namespace EkPubKeyTypeMapper + { + + static const int rsa_2048_HASH = HashingUtils::HashString("rsa-2048"); + static const int ecc_sec_p384_HASH = HashingUtils::HashString("ecc-sec-p384"); + + + EkPubKeyType GetEkPubKeyTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == rsa_2048_HASH) + { + return EkPubKeyType::rsa_2048; + } + else if (hashCode == ecc_sec_p384_HASH) + { + return EkPubKeyType::ecc_sec_p384; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return EkPubKeyType::NOT_SET; + } + + Aws::String GetNameForEkPubKeyType(EkPubKeyType enumValue) + { + switch(enumValue) + { + case EkPubKeyType::NOT_SET: + return {}; + case EkPubKeyType::rsa_2048: + return "rsa-2048"; + case EkPubKeyType::ecc_sec_p384: + return "ecc-sec-p384"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace EkPubKeyTypeMapper + } // namespace Model + } // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/GetInstanceTpmEkPubRequest.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/GetInstanceTpmEkPubRequest.cpp new file mode 100644 index 00000000000..029fa6e2be5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/GetInstanceTpmEkPubRequest.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::EC2::Model; +using namespace Aws::Utils; + +GetInstanceTpmEkPubRequest::GetInstanceTpmEkPubRequest() : + m_instanceIdHasBeenSet(false), + m_keyType(EkPubKeyType::NOT_SET), + m_keyTypeHasBeenSet(false), + m_keyFormat(EkPubKeyFormat::NOT_SET), + m_keyFormatHasBeenSet(false), + m_dryRun(false), + m_dryRunHasBeenSet(false) +{ +} + +Aws::String GetInstanceTpmEkPubRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=GetInstanceTpmEkPub&"; + if(m_instanceIdHasBeenSet) + { + ss << "InstanceId=" << StringUtils::URLEncode(m_instanceId.c_str()) << "&"; + } + + if(m_keyTypeHasBeenSet) + { + ss << "KeyType=" << EkPubKeyTypeMapper::GetNameForEkPubKeyType(m_keyType) << "&"; + } + + if(m_keyFormatHasBeenSet) + { + ss << "KeyFormat=" << EkPubKeyFormatMapper::GetNameForEkPubKeyFormat(m_keyFormat) << "&"; + } + + if(m_dryRunHasBeenSet) + { + ss << "DryRun=" << std::boolalpha << m_dryRun << "&"; + } + + ss << "Version=2016-11-15"; + return ss.str(); +} + + +void GetInstanceTpmEkPubRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/GetInstanceTpmEkPubResponse.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/GetInstanceTpmEkPubResponse.cpp new file mode 100644 index 00000000000..e8f2ac5ef47 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/GetInstanceTpmEkPubResponse.cpp @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::EC2::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +GetInstanceTpmEkPubResponse::GetInstanceTpmEkPubResponse() : + m_keyType(EkPubKeyType::NOT_SET), + m_keyFormat(EkPubKeyFormat::NOT_SET) +{ +} + +GetInstanceTpmEkPubResponse::GetInstanceTpmEkPubResponse(const Aws::AmazonWebServiceResult& result) : + m_keyType(EkPubKeyType::NOT_SET), + m_keyFormat(EkPubKeyFormat::NOT_SET) +{ + *this = result; +} + +GetInstanceTpmEkPubResponse& GetInstanceTpmEkPubResponse::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "GetInstanceTpmEkPubResponse")) + { + resultNode = rootNode.FirstChild("GetInstanceTpmEkPubResponse"); + } + + if(!resultNode.IsNull()) + { + XmlNode instanceIdNode = resultNode.FirstChild("instanceId"); + if(!instanceIdNode.IsNull()) + { + m_instanceId = Aws::Utils::Xml::DecodeEscapedXmlText(instanceIdNode.GetText()); + } + XmlNode keyTypeNode = resultNode.FirstChild("keyType"); + if(!keyTypeNode.IsNull()) + { + m_keyType = EkPubKeyTypeMapper::GetEkPubKeyTypeForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(keyTypeNode.GetText()).c_str()).c_str()); + } + XmlNode keyFormatNode = resultNode.FirstChild("keyFormat"); + if(!keyFormatNode.IsNull()) + { + m_keyFormat = EkPubKeyFormatMapper::GetEkPubKeyFormatForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(keyFormatNode.GetText()).c_str()).c_str()); + } + XmlNode keyValueNode = resultNode.FirstChild("keyValue"); + if(!keyValueNode.IsNull()) + { + m_keyValue = Aws::Utils::Xml::DecodeEscapedXmlText(keyValueNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode requestIdNode = rootNode.FirstChild("requestId"); + if (!requestIdNode.IsNull()) + { + m_responseMetadata.SetRequestId(StringUtils::Trim(requestIdNode.GetText().c_str())); + } + AWS_LOGSTREAM_DEBUG("Aws::EC2::Model::GetInstanceTpmEkPubResponse", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeClient.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeClient.h index f9a98a23f19..d663a92345b 100644 --- a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeClient.h +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeClient.h @@ -220,6 +220,66 @@ namespace Personalize return SubmitAsync(&PersonalizeClient::CreateCampaign, request, handler, context); } + /** + *

    Creates a batch job that deletes all references to specific users from an + * Amazon Personalize dataset group in batches. You specify the users to delete in + * a CSV file of userIds in an Amazon S3 bucket. After a job completes, Amazon + * Personalize no longer trains on the users’ data and no longer considers the + * users when generating user segments. For more information about creating a data + * deletion job, see Deleting + * users.

    • Your input file must be a CSV file with a single + * USER_ID column that lists the users IDs. For more information about preparing + * the CSV file, see Preparing + * your data deletion file and uploading it to Amazon S3.

    • To + * give Amazon Personalize permission to access your input CSV file of userIds, you + * must specify an IAM service role that has permission to read from the data + * source. This role needs GetObject and ListBucket + * permissions for the bucket and its content. These permissions are the same as + * importing data. For information on granting access to your Amazon S3 bucket, see + * Giving + * Amazon Personalize Access to Amazon S3 Resources.

    After + * you create a job, it can take up to a day to delete all references to the users + * from datasets and models. Until the job completes, Amazon Personalize continues + * to use the data when training. And if you use a User Segmentation recipe, the + * users might appear in user segments.

    Status

    A data + * deletion job can have one of the following statuses:

    • PENDING + * > IN_PROGRESS > COMPLETED -or- FAILED

    To get the status + * of the data deletion job, call DescribeDataDeletionJob + * API operation and specify the Amazon Resource Name (ARN) of the job. If the + * status is FAILED, the response includes a failureReason key, which + * describes why the job failed.

    Related APIs

    + *

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateDataDeletionJobOutcome CreateDataDeletionJob(const Model::CreateDataDeletionJobRequest& request) const; + + /** + * A Callable wrapper for CreateDataDeletionJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateDataDeletionJobOutcomeCallable CreateDataDeletionJobCallable(const CreateDataDeletionJobRequestT& request) const + { + return SubmitCallable(&PersonalizeClient::CreateDataDeletionJob, request); + } + + /** + * An Async wrapper for CreateDataDeletionJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateDataDeletionJobAsync(const CreateDataDeletionJobRequestT& request, const CreateDataDeletionJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PersonalizeClient::CreateDataDeletionJob, request, handler, context); + } + /** *

    Creates an empty dataset and adds it to the specified dataset group. Use CreateDatasetImportJob @@ -1131,6 +1191,33 @@ namespace Personalize return SubmitAsync(&PersonalizeClient::DescribeCampaign, request, handler, context); } + /** + *

    Describes the data deletion job created by CreateDataDeletionJob, + * including the job status.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DescribeDataDeletionJobOutcome DescribeDataDeletionJob(const Model::DescribeDataDeletionJobRequest& request) const; + + /** + * A Callable wrapper for DescribeDataDeletionJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DescribeDataDeletionJobOutcomeCallable DescribeDataDeletionJobCallable(const DescribeDataDeletionJobRequestT& request) const + { + return SubmitCallable(&PersonalizeClient::DescribeDataDeletionJob, request); + } + + /** + * An Async wrapper for DescribeDataDeletionJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DescribeDataDeletionJobAsync(const DescribeDataDeletionJobRequestT& request, const DescribeDataDeletionJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PersonalizeClient::DescribeDataDeletionJob, request, handler, context); + } + /** *

    Describes the given dataset. For more information on datasets, see CreateDataset.

    See @@ -1605,6 +1692,37 @@ namespace Personalize return SubmitAsync(&PersonalizeClient::ListCampaigns, request, handler, context); } + /** + *

    Returns a list of data deletion jobs for a dataset group ordered by creation + * time, with the most recent first. When a dataset group is not specified, all the + * data deletion jobs associated with the account are listed. The response provides + * the properties for each job, including the Amazon Resource Name (ARN). For more + * information on data deletion jobs, see Deleting + * users.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListDataDeletionJobsOutcome ListDataDeletionJobs(const Model::ListDataDeletionJobsRequest& request) const; + + /** + * A Callable wrapper for ListDataDeletionJobs that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListDataDeletionJobsOutcomeCallable ListDataDeletionJobsCallable(const ListDataDeletionJobsRequestT& request) const + { + return SubmitCallable(&PersonalizeClient::ListDataDeletionJobs, request); + } + + /** + * An Async wrapper for ListDataDeletionJobs that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListDataDeletionJobsAsync(const ListDataDeletionJobsRequestT& request, const ListDataDeletionJobsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PersonalizeClient::ListDataDeletionJobs, request, handler, context); + } + /** *

    Returns a list of dataset export jobs that use the given dataset. When a * dataset is not specified, all the dataset export jobs associated with the diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeServiceClientModel.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeServiceClientModel.h index eaf49271e2c..671d96929e1 100644 --- a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeServiceClientModel.h @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -36,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -53,6 +55,7 @@ #include #include #include +#include #include #include #include @@ -119,6 +122,7 @@ namespace Aws class CreateBatchInferenceJobRequest; class CreateBatchSegmentJobRequest; class CreateCampaignRequest; + class CreateDataDeletionJobRequest; class CreateDatasetRequest; class CreateDatasetExportJobRequest; class CreateDatasetGroupRequest; @@ -143,6 +147,7 @@ namespace Aws class DescribeBatchInferenceJobRequest; class DescribeBatchSegmentJobRequest; class DescribeCampaignRequest; + class DescribeDataDeletionJobRequest; class DescribeDatasetRequest; class DescribeDatasetExportJobRequest; class DescribeDatasetGroupRequest; @@ -160,6 +165,7 @@ namespace Aws class ListBatchInferenceJobsRequest; class ListBatchSegmentJobsRequest; class ListCampaignsRequest; + class ListDataDeletionJobsRequest; class ListDatasetExportJobsRequest; class ListDatasetGroupsRequest; class ListDatasetImportJobsRequest; @@ -189,6 +195,7 @@ namespace Aws typedef Aws::Utils::Outcome CreateBatchInferenceJobOutcome; typedef Aws::Utils::Outcome CreateBatchSegmentJobOutcome; typedef Aws::Utils::Outcome CreateCampaignOutcome; + typedef Aws::Utils::Outcome CreateDataDeletionJobOutcome; typedef Aws::Utils::Outcome CreateDatasetOutcome; typedef Aws::Utils::Outcome CreateDatasetExportJobOutcome; typedef Aws::Utils::Outcome CreateDatasetGroupOutcome; @@ -213,6 +220,7 @@ namespace Aws typedef Aws::Utils::Outcome DescribeBatchInferenceJobOutcome; typedef Aws::Utils::Outcome DescribeBatchSegmentJobOutcome; typedef Aws::Utils::Outcome DescribeCampaignOutcome; + typedef Aws::Utils::Outcome DescribeDataDeletionJobOutcome; typedef Aws::Utils::Outcome DescribeDatasetOutcome; typedef Aws::Utils::Outcome DescribeDatasetExportJobOutcome; typedef Aws::Utils::Outcome DescribeDatasetGroupOutcome; @@ -230,6 +238,7 @@ namespace Aws typedef Aws::Utils::Outcome ListBatchInferenceJobsOutcome; typedef Aws::Utils::Outcome ListBatchSegmentJobsOutcome; typedef Aws::Utils::Outcome ListCampaignsOutcome; + typedef Aws::Utils::Outcome ListDataDeletionJobsOutcome; typedef Aws::Utils::Outcome ListDatasetExportJobsOutcome; typedef Aws::Utils::Outcome ListDatasetGroupsOutcome; typedef Aws::Utils::Outcome ListDatasetImportJobsOutcome; @@ -259,6 +268,7 @@ namespace Aws typedef std::future CreateBatchInferenceJobOutcomeCallable; typedef std::future CreateBatchSegmentJobOutcomeCallable; typedef std::future CreateCampaignOutcomeCallable; + typedef std::future CreateDataDeletionJobOutcomeCallable; typedef std::future CreateDatasetOutcomeCallable; typedef std::future CreateDatasetExportJobOutcomeCallable; typedef std::future CreateDatasetGroupOutcomeCallable; @@ -283,6 +293,7 @@ namespace Aws typedef std::future DescribeBatchInferenceJobOutcomeCallable; typedef std::future DescribeBatchSegmentJobOutcomeCallable; typedef std::future DescribeCampaignOutcomeCallable; + typedef std::future DescribeDataDeletionJobOutcomeCallable; typedef std::future DescribeDatasetOutcomeCallable; typedef std::future DescribeDatasetExportJobOutcomeCallable; typedef std::future DescribeDatasetGroupOutcomeCallable; @@ -300,6 +311,7 @@ namespace Aws typedef std::future ListBatchInferenceJobsOutcomeCallable; typedef std::future ListBatchSegmentJobsOutcomeCallable; typedef std::future ListCampaignsOutcomeCallable; + typedef std::future ListDataDeletionJobsOutcomeCallable; typedef std::future ListDatasetExportJobsOutcomeCallable; typedef std::future ListDatasetGroupsOutcomeCallable; typedef std::future ListDatasetImportJobsOutcomeCallable; @@ -332,6 +344,7 @@ namespace Aws typedef std::function&) > CreateBatchInferenceJobResponseReceivedHandler; typedef std::function&) > CreateBatchSegmentJobResponseReceivedHandler; typedef std::function&) > CreateCampaignResponseReceivedHandler; + typedef std::function&) > CreateDataDeletionJobResponseReceivedHandler; typedef std::function&) > CreateDatasetResponseReceivedHandler; typedef std::function&) > CreateDatasetExportJobResponseReceivedHandler; typedef std::function&) > CreateDatasetGroupResponseReceivedHandler; @@ -356,6 +369,7 @@ namespace Aws typedef std::function&) > DescribeBatchInferenceJobResponseReceivedHandler; typedef std::function&) > DescribeBatchSegmentJobResponseReceivedHandler; typedef std::function&) > DescribeCampaignResponseReceivedHandler; + typedef std::function&) > DescribeDataDeletionJobResponseReceivedHandler; typedef std::function&) > DescribeDatasetResponseReceivedHandler; typedef std::function&) > DescribeDatasetExportJobResponseReceivedHandler; typedef std::function&) > DescribeDatasetGroupResponseReceivedHandler; @@ -373,6 +387,7 @@ namespace Aws typedef std::function&) > ListBatchInferenceJobsResponseReceivedHandler; typedef std::function&) > ListBatchSegmentJobsResponseReceivedHandler; typedef std::function&) > ListCampaignsResponseReceivedHandler; + typedef std::function&) > ListDataDeletionJobsResponseReceivedHandler; typedef std::function&) > ListDatasetExportJobsResponseReceivedHandler; typedef std::function&) > ListDatasetGroupsResponseReceivedHandler; typedef std::function&) > ListDatasetImportJobsResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateDataDeletionJobRequest.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateDataDeletionJobRequest.h new file mode 100644 index 00000000000..c185907e3c8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateDataDeletionJobRequest.h @@ -0,0 +1,292 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Personalize +{ +namespace Model +{ + + /** + */ + class CreateDataDeletionJobRequest : public PersonalizeRequest + { + public: + AWS_PERSONALIZE_API CreateDataDeletionJobRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateDataDeletionJob"; } + + AWS_PERSONALIZE_API Aws::String SerializePayload() const override; + + AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The name for the data deletion job.

    + */ + inline const Aws::String& GetJobName() const{ return m_jobName; } + + /** + *

    The name for the data deletion job.

    + */ + inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } + + /** + *

    The name for the data deletion job.

    + */ + inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } + + /** + *

    The name for the data deletion job.

    + */ + inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } + + /** + *

    The name for the data deletion job.

    + */ + inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } + + /** + *

    The name for the data deletion job.

    + */ + inline CreateDataDeletionJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} + + /** + *

    The name for the data deletion job.

    + */ + inline CreateDataDeletionJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} + + /** + *

    The name for the data deletion job.

    + */ + inline CreateDataDeletionJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the dataset group that has the datasets you + * want to delete records from.

    + */ + inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group that has the datasets you + * want to delete records from.

    + */ + inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group that has the datasets you + * want to delete records from.

    + */ + inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group that has the datasets you + * want to delete records from.

    + */ + inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group that has the datasets you + * want to delete records from.

    + */ + inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group that has the datasets you + * want to delete records from.

    + */ + inline CreateDataDeletionJobRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the dataset group that has the datasets you + * want to delete records from.

    + */ + inline CreateDataDeletionJobRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the dataset group that has the datasets you + * want to delete records from.

    + */ + inline CreateDataDeletionJobRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;} + + + /** + *

    The Amazon S3 bucket that contains the list of userIds of the users to + * delete.

    + */ + inline const DataSource& GetDataSource() const{ return m_dataSource; } + + /** + *

    The Amazon S3 bucket that contains the list of userIds of the users to + * delete.

    + */ + inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } + + /** + *

    The Amazon S3 bucket that contains the list of userIds of the users to + * delete.

    + */ + inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } + + /** + *

    The Amazon S3 bucket that contains the list of userIds of the users to + * delete.

    + */ + inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } + + /** + *

    The Amazon S3 bucket that contains the list of userIds of the users to + * delete.

    + */ + inline CreateDataDeletionJobRequest& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;} + + /** + *

    The Amazon S3 bucket that contains the list of userIds of the users to + * delete.

    + */ + inline CreateDataDeletionJobRequest& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline CreateDataDeletionJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline CreateDataDeletionJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline CreateDataDeletionJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + + /** + *

    A list of tags + * to apply to the data deletion job.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    A list of tags + * to apply to the data deletion job.

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    A list of tags + * to apply to the data deletion job.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    A list of tags + * to apply to the data deletion job.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    A list of tags + * to apply to the data deletion job.

    + */ + inline CreateDataDeletionJobRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    A list of tags + * to apply to the data deletion job.

    + */ + inline CreateDataDeletionJobRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    A list of tags + * to apply to the data deletion job.

    + */ + inline CreateDataDeletionJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    A list of tags + * to apply to the data deletion job.

    + */ + inline CreateDataDeletionJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_jobName; + bool m_jobNameHasBeenSet = false; + + Aws::String m_datasetGroupArn; + bool m_datasetGroupArnHasBeenSet = false; + + DataSource m_dataSource; + bool m_dataSourceHasBeenSet = false; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateDataDeletionJobResult.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateDataDeletionJobResult.h new file mode 100644 index 00000000000..900bb54984c --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateDataDeletionJobResult.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Personalize +{ +namespace Model +{ + class CreateDataDeletionJobResult + { + public: + AWS_PERSONALIZE_API CreateDataDeletionJobResult(); + AWS_PERSONALIZE_API CreateDataDeletionJobResult(const Aws::AmazonWebServiceResult& result); + AWS_PERSONALIZE_API CreateDataDeletionJobResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline const Aws::String& GetDataDeletionJobArn() const{ return m_dataDeletionJobArn; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(const Aws::String& value) { m_dataDeletionJobArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(Aws::String&& value) { m_dataDeletionJobArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(const char* value) { m_dataDeletionJobArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline CreateDataDeletionJobResult& WithDataDeletionJobArn(const Aws::String& value) { SetDataDeletionJobArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline CreateDataDeletionJobResult& WithDataDeletionJobArn(Aws::String&& value) { SetDataDeletionJobArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline CreateDataDeletionJobResult& WithDataDeletionJobArn(const char* value) { SetDataDeletionJobArn(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline CreateDataDeletionJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateDataDeletionJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateDataDeletionJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_dataDeletionJobArn; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataDeletionJob.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataDeletionJob.h new file mode 100644 index 00000000000..5be671fe6dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataDeletionJob.h @@ -0,0 +1,460 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Personalize +{ +namespace Model +{ + + /** + *

    Describes a job that deletes all references to specific users from an Amazon + * Personalize dataset group in batches. For information about creating a data + * deletion job, see Deleting + * users.

    See Also:

    AWS + * API Reference

    + */ + class DataDeletionJob + { + public: + AWS_PERSONALIZE_API DataDeletionJob(); + AWS_PERSONALIZE_API DataDeletionJob(Aws::Utils::Json::JsonView jsonValue); + AWS_PERSONALIZE_API DataDeletionJob& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The name of the data deletion job.

    + */ + inline const Aws::String& GetJobName() const{ return m_jobName; } + + /** + *

    The name of the data deletion job.

    + */ + inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } + + /** + *

    The name of the data deletion job.

    + */ + inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } + + /** + *

    The name of the data deletion job.

    + */ + inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } + + /** + *

    The name of the data deletion job.

    + */ + inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } + + /** + *

    The name of the data deletion job.

    + */ + inline DataDeletionJob& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} + + /** + *

    The name of the data deletion job.

    + */ + inline DataDeletionJob& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} + + /** + *

    The name of the data deletion job.

    + */ + inline DataDeletionJob& WithJobName(const char* value) { SetJobName(value); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline const Aws::String& GetDataDeletionJobArn() const{ return m_dataDeletionJobArn; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline bool DataDeletionJobArnHasBeenSet() const { return m_dataDeletionJobArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(const Aws::String& value) { m_dataDeletionJobArnHasBeenSet = true; m_dataDeletionJobArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(Aws::String&& value) { m_dataDeletionJobArnHasBeenSet = true; m_dataDeletionJobArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(const char* value) { m_dataDeletionJobArnHasBeenSet = true; m_dataDeletionJobArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline DataDeletionJob& WithDataDeletionJobArn(const Aws::String& value) { SetDataDeletionJobArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline DataDeletionJob& WithDataDeletionJobArn(Aws::String&& value) { SetDataDeletionJobArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline DataDeletionJob& WithDataDeletionJobArn(const char* value) { SetDataDeletionJobArn(value); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deletes records + * from.

    + */ + inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deletes records + * from.

    + */ + inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deletes records + * from.

    + */ + inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deletes records + * from.

    + */ + inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deletes records + * from.

    + */ + inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deletes records + * from.

    + */ + inline DataDeletionJob& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deletes records + * from.

    + */ + inline DataDeletionJob& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deletes records + * from.

    + */ + inline DataDeletionJob& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;} + + + + inline const DataSource& GetDataSource() const{ return m_dataSource; } + + + inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } + + + inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } + + + inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } + + + inline DataDeletionJob& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;} + + + inline DataDeletionJob& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline DataDeletionJob& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline DataDeletionJob& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read + * from the Amazon S3 data source.

    + */ + inline DataDeletionJob& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline const Aws::String& GetStatus() const{ return m_status; } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline DataDeletionJob& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline DataDeletionJob& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline DataDeletionJob& WithStatus(const char* value) { SetStatus(value); return *this;} + + + /** + *

    The number of records deleted by a COMPLETED job.

    + */ + inline int GetNumDeleted() const{ return m_numDeleted; } + + /** + *

    The number of records deleted by a COMPLETED job.

    + */ + inline bool NumDeletedHasBeenSet() const { return m_numDeletedHasBeenSet; } + + /** + *

    The number of records deleted by a COMPLETED job.

    + */ + inline void SetNumDeleted(int value) { m_numDeletedHasBeenSet = true; m_numDeleted = value; } + + /** + *

    The number of records deleted by a COMPLETED job.

    + */ + inline DataDeletionJob& WithNumDeleted(int value) { SetNumDeleted(value); return *this;} + + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline DataDeletionJob& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline DataDeletionJob& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} + + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline DataDeletionJob& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline DataDeletionJob& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} + + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline const Aws::String& GetFailureReason() const{ return m_failureReason; } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline DataDeletionJob& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline DataDeletionJob& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline DataDeletionJob& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} + + private: + + Aws::String m_jobName; + bool m_jobNameHasBeenSet = false; + + Aws::String m_dataDeletionJobArn; + bool m_dataDeletionJobArnHasBeenSet = false; + + Aws::String m_datasetGroupArn; + bool m_datasetGroupArnHasBeenSet = false; + + DataSource m_dataSource; + bool m_dataSourceHasBeenSet = false; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet = false; + + Aws::String m_status; + bool m_statusHasBeenSet = false; + + int m_numDeleted; + bool m_numDeletedHasBeenSet = false; + + Aws::Utils::DateTime m_creationDateTime; + bool m_creationDateTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastUpdatedDateTime; + bool m_lastUpdatedDateTimeHasBeenSet = false; + + Aws::String m_failureReason; + bool m_failureReasonHasBeenSet = false; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataDeletionJobSummary.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataDeletionJobSummary.h new file mode 100644 index 00000000000..60fd738e6db --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataDeletionJobSummary.h @@ -0,0 +1,360 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Personalize +{ +namespace Model +{ + + /** + *

    Provides a summary of the properties of a data deletion job. For a complete + * listing, call the DescribeDataDeletionJob + * API operation.

    See Also:

    AWS + * API Reference

    + */ + class DataDeletionJobSummary + { + public: + AWS_PERSONALIZE_API DataDeletionJobSummary(); + AWS_PERSONALIZE_API DataDeletionJobSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_PERSONALIZE_API DataDeletionJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline const Aws::String& GetDataDeletionJobArn() const{ return m_dataDeletionJobArn; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline bool DataDeletionJobArnHasBeenSet() const { return m_dataDeletionJobArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(const Aws::String& value) { m_dataDeletionJobArnHasBeenSet = true; m_dataDeletionJobArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(Aws::String&& value) { m_dataDeletionJobArnHasBeenSet = true; m_dataDeletionJobArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(const char* value) { m_dataDeletionJobArnHasBeenSet = true; m_dataDeletionJobArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline DataDeletionJobSummary& WithDataDeletionJobArn(const Aws::String& value) { SetDataDeletionJobArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline DataDeletionJobSummary& WithDataDeletionJobArn(Aws::String&& value) { SetDataDeletionJobArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline DataDeletionJobSummary& WithDataDeletionJobArn(const char* value) { SetDataDeletionJobArn(value); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deleted records + * from.

    + */ + inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deleted records + * from.

    + */ + inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deleted records + * from.

    + */ + inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deleted records + * from.

    + */ + inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deleted records + * from.

    + */ + inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deleted records + * from.

    + */ + inline DataDeletionJobSummary& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deleted records + * from.

    + */ + inline DataDeletionJobSummary& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the dataset group the job deleted records + * from.

    + */ + inline DataDeletionJobSummary& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;} + + + /** + *

    The name of the data deletion job.

    + */ + inline const Aws::String& GetJobName() const{ return m_jobName; } + + /** + *

    The name of the data deletion job.

    + */ + inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } + + /** + *

    The name of the data deletion job.

    + */ + inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } + + /** + *

    The name of the data deletion job.

    + */ + inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } + + /** + *

    The name of the data deletion job.

    + */ + inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } + + /** + *

    The name of the data deletion job.

    + */ + inline DataDeletionJobSummary& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} + + /** + *

    The name of the data deletion job.

    + */ + inline DataDeletionJobSummary& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} + + /** + *

    The name of the data deletion job.

    + */ + inline DataDeletionJobSummary& WithJobName(const char* value) { SetJobName(value); return *this;} + + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline const Aws::String& GetStatus() const{ return m_status; } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline DataDeletionJobSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline DataDeletionJobSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} + + /** + *

    The status of the data deletion job.

    A data deletion job can have one + * of the following statuses:

    • PENDING > IN_PROGRESS > + * COMPLETED -or- FAILED

    + */ + inline DataDeletionJobSummary& WithStatus(const char* value) { SetStatus(value); return *this;} + + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline DataDeletionJobSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} + + /** + *

    The creation date and time (in Unix time) of the data deletion job.

    + */ + inline DataDeletionJobSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} + + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline DataDeletionJobSummary& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} + + /** + *

    The date and time (in Unix time) the data deletion job was last updated.

    + */ + inline DataDeletionJobSummary& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} + + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline const Aws::String& GetFailureReason() const{ return m_failureReason; } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline DataDeletionJobSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline DataDeletionJobSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} + + /** + *

    If a data deletion job fails, provides the reason why.

    + */ + inline DataDeletionJobSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} + + private: + + Aws::String m_dataDeletionJobArn; + bool m_dataDeletionJobArnHasBeenSet = false; + + Aws::String m_datasetGroupArn; + bool m_datasetGroupArnHasBeenSet = false; + + Aws::String m_jobName; + bool m_jobNameHasBeenSet = false; + + Aws::String m_status; + bool m_statusHasBeenSet = false; + + Aws::Utils::DateTime m_creationDateTime; + bool m_creationDateTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastUpdatedDateTime; + bool m_lastUpdatedDateTimeHasBeenSet = false; + + Aws::String m_failureReason; + bool m_failureReasonHasBeenSet = false; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataSource.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataSource.h index 9bec84e0be0..21dede3d304 100644 --- a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataSource.h +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DataSource.h @@ -24,8 +24,9 @@ namespace Model { /** - *

    Describes the data source that contains the data to upload to a - * dataset.

    See Also:

    Describes the data source that contains the data to upload to a dataset, or + * the list of records to delete from Amazon Personalize.

    See Also:

    + *
    AWS * API Reference

    */ @@ -39,58 +40,106 @@ namespace Model /** - *

    The path to the Amazon S3 bucket where the data that you want to upload to - * your dataset is stored. For example:

    - * s3://bucket-name/folder-name/

    + *

    For dataset import jobs, the path to the Amazon S3 bucket where the data that + * you want to upload to your dataset is stored. For data deletion jobs, the path + * to the Amazon S3 bucket that stores the list of records to delete.

    For + * example:

    s3://bucket-name/folder-name/fileName.csv

    + *

    If your CSV files are in a folder in your Amazon S3 bucket and you want your + * import job or data deletion job to consider multiple files, you can specify the + * path to the folder. With a data deletion job, Amazon Personalize uses all files + * in the folder and any sub folder. Use the following syntax with a / + * after the folder name:

    s3://bucket-name/folder-name/

    */ inline const Aws::String& GetDataLocation() const{ return m_dataLocation; } /** - *

    The path to the Amazon S3 bucket where the data that you want to upload to - * your dataset is stored. For example:

    - * s3://bucket-name/folder-name/

    + *

    For dataset import jobs, the path to the Amazon S3 bucket where the data that + * you want to upload to your dataset is stored. For data deletion jobs, the path + * to the Amazon S3 bucket that stores the list of records to delete.

    For + * example:

    s3://bucket-name/folder-name/fileName.csv

    + *

    If your CSV files are in a folder in your Amazon S3 bucket and you want your + * import job or data deletion job to consider multiple files, you can specify the + * path to the folder. With a data deletion job, Amazon Personalize uses all files + * in the folder and any sub folder. Use the following syntax with a / + * after the folder name:

    s3://bucket-name/folder-name/

    */ inline bool DataLocationHasBeenSet() const { return m_dataLocationHasBeenSet; } /** - *

    The path to the Amazon S3 bucket where the data that you want to upload to - * your dataset is stored. For example:

    - * s3://bucket-name/folder-name/

    + *

    For dataset import jobs, the path to the Amazon S3 bucket where the data that + * you want to upload to your dataset is stored. For data deletion jobs, the path + * to the Amazon S3 bucket that stores the list of records to delete.

    For + * example:

    s3://bucket-name/folder-name/fileName.csv

    + *

    If your CSV files are in a folder in your Amazon S3 bucket and you want your + * import job or data deletion job to consider multiple files, you can specify the + * path to the folder. With a data deletion job, Amazon Personalize uses all files + * in the folder and any sub folder. Use the following syntax with a / + * after the folder name:

    s3://bucket-name/folder-name/

    */ inline void SetDataLocation(const Aws::String& value) { m_dataLocationHasBeenSet = true; m_dataLocation = value; } /** - *

    The path to the Amazon S3 bucket where the data that you want to upload to - * your dataset is stored. For example:

    - * s3://bucket-name/folder-name/

    + *

    For dataset import jobs, the path to the Amazon S3 bucket where the data that + * you want to upload to your dataset is stored. For data deletion jobs, the path + * to the Amazon S3 bucket that stores the list of records to delete.

    For + * example:

    s3://bucket-name/folder-name/fileName.csv

    + *

    If your CSV files are in a folder in your Amazon S3 bucket and you want your + * import job or data deletion job to consider multiple files, you can specify the + * path to the folder. With a data deletion job, Amazon Personalize uses all files + * in the folder and any sub folder. Use the following syntax with a / + * after the folder name:

    s3://bucket-name/folder-name/

    */ inline void SetDataLocation(Aws::String&& value) { m_dataLocationHasBeenSet = true; m_dataLocation = std::move(value); } /** - *

    The path to the Amazon S3 bucket where the data that you want to upload to - * your dataset is stored. For example:

    - * s3://bucket-name/folder-name/

    + *

    For dataset import jobs, the path to the Amazon S3 bucket where the data that + * you want to upload to your dataset is stored. For data deletion jobs, the path + * to the Amazon S3 bucket that stores the list of records to delete.

    For + * example:

    s3://bucket-name/folder-name/fileName.csv

    + *

    If your CSV files are in a folder in your Amazon S3 bucket and you want your + * import job or data deletion job to consider multiple files, you can specify the + * path to the folder. With a data deletion job, Amazon Personalize uses all files + * in the folder and any sub folder. Use the following syntax with a / + * after the folder name:

    s3://bucket-name/folder-name/

    */ inline void SetDataLocation(const char* value) { m_dataLocationHasBeenSet = true; m_dataLocation.assign(value); } /** - *

    The path to the Amazon S3 bucket where the data that you want to upload to - * your dataset is stored. For example:

    - * s3://bucket-name/folder-name/

    + *

    For dataset import jobs, the path to the Amazon S3 bucket where the data that + * you want to upload to your dataset is stored. For data deletion jobs, the path + * to the Amazon S3 bucket that stores the list of records to delete.

    For + * example:

    s3://bucket-name/folder-name/fileName.csv

    + *

    If your CSV files are in a folder in your Amazon S3 bucket and you want your + * import job or data deletion job to consider multiple files, you can specify the + * path to the folder. With a data deletion job, Amazon Personalize uses all files + * in the folder and any sub folder. Use the following syntax with a / + * after the folder name:

    s3://bucket-name/folder-name/

    */ inline DataSource& WithDataLocation(const Aws::String& value) { SetDataLocation(value); return *this;} /** - *

    The path to the Amazon S3 bucket where the data that you want to upload to - * your dataset is stored. For example:

    - * s3://bucket-name/folder-name/

    + *

    For dataset import jobs, the path to the Amazon S3 bucket where the data that + * you want to upload to your dataset is stored. For data deletion jobs, the path + * to the Amazon S3 bucket that stores the list of records to delete.

    For + * example:

    s3://bucket-name/folder-name/fileName.csv

    + *

    If your CSV files are in a folder in your Amazon S3 bucket and you want your + * import job or data deletion job to consider multiple files, you can specify the + * path to the folder. With a data deletion job, Amazon Personalize uses all files + * in the folder and any sub folder. Use the following syntax with a / + * after the folder name:

    s3://bucket-name/folder-name/

    */ inline DataSource& WithDataLocation(Aws::String&& value) { SetDataLocation(std::move(value)); return *this;} /** - *

    The path to the Amazon S3 bucket where the data that you want to upload to - * your dataset is stored. For example:

    - * s3://bucket-name/folder-name/

    + *

    For dataset import jobs, the path to the Amazon S3 bucket where the data that + * you want to upload to your dataset is stored. For data deletion jobs, the path + * to the Amazon S3 bucket that stores the list of records to delete.

    For + * example:

    s3://bucket-name/folder-name/fileName.csv

    + *

    If your CSV files are in a folder in your Amazon S3 bucket and you want your + * import job or data deletion job to consider multiple files, you can specify the + * path to the folder. With a data deletion job, Amazon Personalize uses all files + * in the folder and any sub folder. Use the following syntax with a / + * after the folder name:

    s3://bucket-name/folder-name/

    */ inline DataSource& WithDataLocation(const char* value) { SetDataLocation(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DescribeDataDeletionJobRequest.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DescribeDataDeletionJobRequest.h new file mode 100644 index 00000000000..99a10174a31 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DescribeDataDeletionJobRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Personalize +{ +namespace Model +{ + + /** + */ + class DescribeDataDeletionJobRequest : public PersonalizeRequest + { + public: + AWS_PERSONALIZE_API DescribeDataDeletionJobRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeDataDeletionJob"; } + + AWS_PERSONALIZE_API Aws::String SerializePayload() const override; + + AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline const Aws::String& GetDataDeletionJobArn() const{ return m_dataDeletionJobArn; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline bool DataDeletionJobArnHasBeenSet() const { return m_dataDeletionJobArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(const Aws::String& value) { m_dataDeletionJobArnHasBeenSet = true; m_dataDeletionJobArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(Aws::String&& value) { m_dataDeletionJobArnHasBeenSet = true; m_dataDeletionJobArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline void SetDataDeletionJobArn(const char* value) { m_dataDeletionJobArnHasBeenSet = true; m_dataDeletionJobArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline DescribeDataDeletionJobRequest& WithDataDeletionJobArn(const Aws::String& value) { SetDataDeletionJobArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline DescribeDataDeletionJobRequest& WithDataDeletionJobArn(Aws::String&& value) { SetDataDeletionJobArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the data deletion job.

    + */ + inline DescribeDataDeletionJobRequest& WithDataDeletionJobArn(const char* value) { SetDataDeletionJobArn(value); return *this;} + + private: + + Aws::String m_dataDeletionJobArn; + bool m_dataDeletionJobArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DescribeDataDeletionJobResult.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DescribeDataDeletionJobResult.h new file mode 100644 index 00000000000..e5ab1d9f567 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/DescribeDataDeletionJobResult.h @@ -0,0 +1,107 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Personalize +{ +namespace Model +{ + class DescribeDataDeletionJobResult + { + public: + AWS_PERSONALIZE_API DescribeDataDeletionJobResult(); + AWS_PERSONALIZE_API DescribeDataDeletionJobResult(const Aws::AmazonWebServiceResult& result); + AWS_PERSONALIZE_API DescribeDataDeletionJobResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    Information about the data deletion job, including the status.

    The + * status is one of the following values:

    • PENDING

    • + *

      IN_PROGRESS

    • COMPLETED

    • FAILED

    • + *
    + */ + inline const DataDeletionJob& GetDataDeletionJob() const{ return m_dataDeletionJob; } + + /** + *

    Information about the data deletion job, including the status.

    The + * status is one of the following values:

    • PENDING

    • + *

      IN_PROGRESS

    • COMPLETED

    • FAILED

    • + *
    + */ + inline void SetDataDeletionJob(const DataDeletionJob& value) { m_dataDeletionJob = value; } + + /** + *

    Information about the data deletion job, including the status.

    The + * status is one of the following values:

    • PENDING

    • + *

      IN_PROGRESS

    • COMPLETED

    • FAILED

    • + *
    + */ + inline void SetDataDeletionJob(DataDeletionJob&& value) { m_dataDeletionJob = std::move(value); } + + /** + *

    Information about the data deletion job, including the status.

    The + * status is one of the following values:

    • PENDING

    • + *

      IN_PROGRESS

    • COMPLETED

    • FAILED

    • + *
    + */ + inline DescribeDataDeletionJobResult& WithDataDeletionJob(const DataDeletionJob& value) { SetDataDeletionJob(value); return *this;} + + /** + *

    Information about the data deletion job, including the status.

    The + * status is one of the following values:

    • PENDING

    • + *

      IN_PROGRESS

    • COMPLETED

    • FAILED

    • + *
    + */ + inline DescribeDataDeletionJobResult& WithDataDeletionJob(DataDeletionJob&& value) { SetDataDeletionJob(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DescribeDataDeletionJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DescribeDataDeletionJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DescribeDataDeletionJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + DataDeletionJob m_dataDeletionJob; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/ListDataDeletionJobsRequest.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/ListDataDeletionJobsRequest.h new file mode 100644 index 00000000000..59665d8298e --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/ListDataDeletionJobsRequest.h @@ -0,0 +1,169 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Personalize +{ +namespace Model +{ + + /** + */ + class ListDataDeletionJobsRequest : public PersonalizeRequest + { + public: + AWS_PERSONALIZE_API ListDataDeletionJobsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListDataDeletionJobs"; } + + AWS_PERSONALIZE_API Aws::String SerializePayload() const override; + + AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The Amazon Resource Name (ARN) of the dataset group to list data deletion + * jobs for.

    + */ + inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group to list data deletion + * jobs for.

    + */ + inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group to list data deletion + * jobs for.

    + */ + inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group to list data deletion + * jobs for.

    + */ + inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group to list data deletion + * jobs for.

    + */ + inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the dataset group to list data deletion + * jobs for.

    + */ + inline ListDataDeletionJobsRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the dataset group to list data deletion + * jobs for.

    + */ + inline ListDataDeletionJobsRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the dataset group to list data deletion + * jobs for.

    + */ + inline ListDataDeletionJobsRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;} + + + /** + *

    A token returned from the previous call to ListDataDeletionJobs + * for getting the next set of jobs (if they exist).

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    A token returned from the previous call to ListDataDeletionJobs + * for getting the next set of jobs (if they exist).

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    A token returned from the previous call to ListDataDeletionJobs + * for getting the next set of jobs (if they exist).

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    A token returned from the previous call to ListDataDeletionJobs + * for getting the next set of jobs (if they exist).

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    A token returned from the previous call to ListDataDeletionJobs + * for getting the next set of jobs (if they exist).

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    A token returned from the previous call to ListDataDeletionJobs + * for getting the next set of jobs (if they exist).

    + */ + inline ListDataDeletionJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    A token returned from the previous call to ListDataDeletionJobs + * for getting the next set of jobs (if they exist).

    + */ + inline ListDataDeletionJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    A token returned from the previous call to ListDataDeletionJobs + * for getting the next set of jobs (if they exist).

    + */ + inline ListDataDeletionJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of data deletion jobs to return.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The maximum number of data deletion jobs to return.

    + */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

    The maximum number of data deletion jobs to return.

    + */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

    The maximum number of data deletion jobs to return.

    + */ + inline ListDataDeletionJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_datasetGroupArn; + bool m_datasetGroupArnHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/ListDataDeletionJobsResult.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/ListDataDeletionJobsResult.h new file mode 100644 index 00000000000..9d89847795e --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/ListDataDeletionJobsResult.h @@ -0,0 +1,141 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Personalize +{ +namespace Model +{ + class ListDataDeletionJobsResult + { + public: + AWS_PERSONALIZE_API ListDataDeletionJobsResult(); + AWS_PERSONALIZE_API ListDataDeletionJobsResult(const Aws::AmazonWebServiceResult& result); + AWS_PERSONALIZE_API ListDataDeletionJobsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The list of data deletion jobs.

    + */ + inline const Aws::Vector& GetDataDeletionJobs() const{ return m_dataDeletionJobs; } + + /** + *

    The list of data deletion jobs.

    + */ + inline void SetDataDeletionJobs(const Aws::Vector& value) { m_dataDeletionJobs = value; } + + /** + *

    The list of data deletion jobs.

    + */ + inline void SetDataDeletionJobs(Aws::Vector&& value) { m_dataDeletionJobs = std::move(value); } + + /** + *

    The list of data deletion jobs.

    + */ + inline ListDataDeletionJobsResult& WithDataDeletionJobs(const Aws::Vector& value) { SetDataDeletionJobs(value); return *this;} + + /** + *

    The list of data deletion jobs.

    + */ + inline ListDataDeletionJobsResult& WithDataDeletionJobs(Aws::Vector&& value) { SetDataDeletionJobs(std::move(value)); return *this;} + + /** + *

    The list of data deletion jobs.

    + */ + inline ListDataDeletionJobsResult& AddDataDeletionJobs(const DataDeletionJobSummary& value) { m_dataDeletionJobs.push_back(value); return *this; } + + /** + *

    The list of data deletion jobs.

    + */ + inline ListDataDeletionJobsResult& AddDataDeletionJobs(DataDeletionJobSummary&& value) { m_dataDeletionJobs.push_back(std::move(value)); return *this; } + + + /** + *

    A token for getting the next set of data deletion jobs (if they exist).

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    A token for getting the next set of data deletion jobs (if they exist).

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    A token for getting the next set of data deletion jobs (if they exist).

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    A token for getting the next set of data deletion jobs (if they exist).

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    A token for getting the next set of data deletion jobs (if they exist).

    + */ + inline ListDataDeletionJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    A token for getting the next set of data deletion jobs (if they exist).

    + */ + inline ListDataDeletionJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    A token for getting the next set of data deletion jobs (if they exist).

    + */ + inline ListDataDeletionJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListDataDeletionJobsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListDataDeletionJobsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListDataDeletionJobsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_dataDeletionJobs; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp b/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp index 47c12beddf6..8444bf7d050 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -48,6 +49,7 @@ #include #include #include +#include #include #include #include @@ -65,6 +67,7 @@ #include #include #include +#include #include #include #include @@ -307,6 +310,32 @@ CreateCampaignOutcome PersonalizeClient::CreateCampaign(const CreateCampaignRequ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateDataDeletionJobOutcome PersonalizeClient::CreateDataDeletionJob(const CreateDataDeletionJobRequest& request) const +{ + AWS_OPERATION_GUARD(CreateDataDeletionJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDataDeletionJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDataDeletionJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateDataDeletionJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateDataDeletionJob", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateDataDeletionJobOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateDataDeletionJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateDataDeletionJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateDatasetOutcome PersonalizeClient::CreateDataset(const CreateDatasetRequest& request) const { AWS_OPERATION_GUARD(CreateDataset); @@ -931,6 +960,32 @@ DescribeCampaignOutcome PersonalizeClient::DescribeCampaign(const DescribeCampai {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeDataDeletionJobOutcome PersonalizeClient::DescribeDataDeletionJob(const DescribeDataDeletionJobRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeDataDeletionJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeDataDeletionJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeDataDeletionJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeDataDeletionJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeDataDeletionJob", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeDataDeletionJobOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeDataDeletionJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeDataDeletionJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeDatasetOutcome PersonalizeClient::DescribeDataset(const DescribeDatasetRequest& request) const { AWS_OPERATION_GUARD(DescribeDataset); @@ -1373,6 +1428,32 @@ ListCampaignsOutcome PersonalizeClient::ListCampaigns(const ListCampaignsRequest {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListDataDeletionJobsOutcome PersonalizeClient::ListDataDeletionJobs(const ListDataDeletionJobsRequest& request) const +{ + AWS_OPERATION_GUARD(ListDataDeletionJobs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListDataDeletionJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListDataDeletionJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListDataDeletionJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListDataDeletionJobs", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListDataDeletionJobsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListDataDeletionJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListDataDeletionJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListDatasetExportJobsOutcome PersonalizeClient::ListDatasetExportJobs(const ListDatasetExportJobsRequest& request) const { AWS_OPERATION_GUARD(ListDatasetExportJobs); diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/CreateDataDeletionJobRequest.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/CreateDataDeletionJobRequest.cpp new file mode 100644 index 00000000000..761d561889d --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/CreateDataDeletionJobRequest.cpp @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Personalize::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateDataDeletionJobRequest::CreateDataDeletionJobRequest() : + m_jobNameHasBeenSet(false), + m_datasetGroupArnHasBeenSet(false), + m_dataSourceHasBeenSet(false), + m_roleArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateDataDeletionJobRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_jobNameHasBeenSet) + { + payload.WithString("jobName", m_jobName); + + } + + if(m_datasetGroupArnHasBeenSet) + { + payload.WithString("datasetGroupArn", m_datasetGroupArn); + + } + + if(m_dataSourceHasBeenSet) + { + payload.WithObject("dataSource", m_dataSource.Jsonize()); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("roleArn", m_roleArn); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection CreateDataDeletionJobRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonPersonalize.CreateDataDeletionJob")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/CreateDataDeletionJobResult.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/CreateDataDeletionJobResult.cpp new file mode 100644 index 00000000000..2f997b3643c --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/CreateDataDeletionJobResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Personalize::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateDataDeletionJobResult::CreateDataDeletionJobResult() +{ +} + +CreateDataDeletionJobResult::CreateDataDeletionJobResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateDataDeletionJobResult& CreateDataDeletionJobResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("dataDeletionJobArn")) + { + m_dataDeletionJobArn = jsonValue.GetString("dataDeletionJobArn"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/DataDeletionJob.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/DataDeletionJob.cpp new file mode 100644 index 00000000000..92a3953e08a --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/DataDeletionJob.cpp @@ -0,0 +1,194 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Personalize +{ +namespace Model +{ + +DataDeletionJob::DataDeletionJob() : + m_jobNameHasBeenSet(false), + m_dataDeletionJobArnHasBeenSet(false), + m_datasetGroupArnHasBeenSet(false), + m_dataSourceHasBeenSet(false), + m_roleArnHasBeenSet(false), + m_statusHasBeenSet(false), + m_numDeleted(0), + m_numDeletedHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_lastUpdatedDateTimeHasBeenSet(false), + m_failureReasonHasBeenSet(false) +{ +} + +DataDeletionJob::DataDeletionJob(JsonView jsonValue) : + m_jobNameHasBeenSet(false), + m_dataDeletionJobArnHasBeenSet(false), + m_datasetGroupArnHasBeenSet(false), + m_dataSourceHasBeenSet(false), + m_roleArnHasBeenSet(false), + m_statusHasBeenSet(false), + m_numDeleted(0), + m_numDeletedHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_lastUpdatedDateTimeHasBeenSet(false), + m_failureReasonHasBeenSet(false) +{ + *this = jsonValue; +} + +DataDeletionJob& DataDeletionJob::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("jobName")) + { + m_jobName = jsonValue.GetString("jobName"); + + m_jobNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("dataDeletionJobArn")) + { + m_dataDeletionJobArn = jsonValue.GetString("dataDeletionJobArn"); + + m_dataDeletionJobArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("datasetGroupArn")) + { + m_datasetGroupArn = jsonValue.GetString("datasetGroupArn"); + + m_datasetGroupArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("dataSource")) + { + m_dataSource = jsonValue.GetObject("dataSource"); + + m_dataSourceHasBeenSet = true; + } + + if(jsonValue.ValueExists("roleArn")) + { + m_roleArn = jsonValue.GetString("roleArn"); + + m_roleArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = jsonValue.GetString("status"); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("numDeleted")) + { + m_numDeleted = jsonValue.GetInteger("numDeleted"); + + m_numDeletedHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationDateTime")) + { + m_creationDateTime = jsonValue.GetDouble("creationDateTime"); + + m_creationDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastUpdatedDateTime")) + { + m_lastUpdatedDateTime = jsonValue.GetDouble("lastUpdatedDateTime"); + + m_lastUpdatedDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("failureReason")) + { + m_failureReason = jsonValue.GetString("failureReason"); + + m_failureReasonHasBeenSet = true; + } + + return *this; +} + +JsonValue DataDeletionJob::Jsonize() const +{ + JsonValue payload; + + if(m_jobNameHasBeenSet) + { + payload.WithString("jobName", m_jobName); + + } + + if(m_dataDeletionJobArnHasBeenSet) + { + payload.WithString("dataDeletionJobArn", m_dataDeletionJobArn); + + } + + if(m_datasetGroupArnHasBeenSet) + { + payload.WithString("datasetGroupArn", m_datasetGroupArn); + + } + + if(m_dataSourceHasBeenSet) + { + payload.WithObject("dataSource", m_dataSource.Jsonize()); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("roleArn", m_roleArn); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", m_status); + + } + + if(m_numDeletedHasBeenSet) + { + payload.WithInteger("numDeleted", m_numDeleted); + + } + + if(m_creationDateTimeHasBeenSet) + { + payload.WithDouble("creationDateTime", m_creationDateTime.SecondsWithMSPrecision()); + } + + if(m_lastUpdatedDateTimeHasBeenSet) + { + payload.WithDouble("lastUpdatedDateTime", m_lastUpdatedDateTime.SecondsWithMSPrecision()); + } + + if(m_failureReasonHasBeenSet) + { + payload.WithString("failureReason", m_failureReason); + + } + + return payload; +} + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/DataDeletionJobSummary.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/DataDeletionJobSummary.cpp new file mode 100644 index 00000000000..d16fe034489 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/DataDeletionJobSummary.cpp @@ -0,0 +1,147 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Personalize +{ +namespace Model +{ + +DataDeletionJobSummary::DataDeletionJobSummary() : + m_dataDeletionJobArnHasBeenSet(false), + m_datasetGroupArnHasBeenSet(false), + m_jobNameHasBeenSet(false), + m_statusHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_lastUpdatedDateTimeHasBeenSet(false), + m_failureReasonHasBeenSet(false) +{ +} + +DataDeletionJobSummary::DataDeletionJobSummary(JsonView jsonValue) : + m_dataDeletionJobArnHasBeenSet(false), + m_datasetGroupArnHasBeenSet(false), + m_jobNameHasBeenSet(false), + m_statusHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_lastUpdatedDateTimeHasBeenSet(false), + m_failureReasonHasBeenSet(false) +{ + *this = jsonValue; +} + +DataDeletionJobSummary& DataDeletionJobSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("dataDeletionJobArn")) + { + m_dataDeletionJobArn = jsonValue.GetString("dataDeletionJobArn"); + + m_dataDeletionJobArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("datasetGroupArn")) + { + m_datasetGroupArn = jsonValue.GetString("datasetGroupArn"); + + m_datasetGroupArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("jobName")) + { + m_jobName = jsonValue.GetString("jobName"); + + m_jobNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = jsonValue.GetString("status"); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationDateTime")) + { + m_creationDateTime = jsonValue.GetDouble("creationDateTime"); + + m_creationDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastUpdatedDateTime")) + { + m_lastUpdatedDateTime = jsonValue.GetDouble("lastUpdatedDateTime"); + + m_lastUpdatedDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("failureReason")) + { + m_failureReason = jsonValue.GetString("failureReason"); + + m_failureReasonHasBeenSet = true; + } + + return *this; +} + +JsonValue DataDeletionJobSummary::Jsonize() const +{ + JsonValue payload; + + if(m_dataDeletionJobArnHasBeenSet) + { + payload.WithString("dataDeletionJobArn", m_dataDeletionJobArn); + + } + + if(m_datasetGroupArnHasBeenSet) + { + payload.WithString("datasetGroupArn", m_datasetGroupArn); + + } + + if(m_jobNameHasBeenSet) + { + payload.WithString("jobName", m_jobName); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", m_status); + + } + + if(m_creationDateTimeHasBeenSet) + { + payload.WithDouble("creationDateTime", m_creationDateTime.SecondsWithMSPrecision()); + } + + if(m_lastUpdatedDateTimeHasBeenSet) + { + payload.WithDouble("lastUpdatedDateTime", m_lastUpdatedDateTime.SecondsWithMSPrecision()); + } + + if(m_failureReasonHasBeenSet) + { + payload.WithString("failureReason", m_failureReason); + + } + + return payload; +} + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/DescribeDataDeletionJobRequest.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/DescribeDataDeletionJobRequest.cpp new file mode 100644 index 00000000000..815eafc59e9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/DescribeDataDeletionJobRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Personalize::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeDataDeletionJobRequest::DescribeDataDeletionJobRequest() : + m_dataDeletionJobArnHasBeenSet(false) +{ +} + +Aws::String DescribeDataDeletionJobRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_dataDeletionJobArnHasBeenSet) + { + payload.WithString("dataDeletionJobArn", m_dataDeletionJobArn); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DescribeDataDeletionJobRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonPersonalize.DescribeDataDeletionJob")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/DescribeDataDeletionJobResult.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/DescribeDataDeletionJobResult.cpp new file mode 100644 index 00000000000..d728f728a28 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/DescribeDataDeletionJobResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Personalize::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeDataDeletionJobResult::DescribeDataDeletionJobResult() +{ +} + +DescribeDataDeletionJobResult::DescribeDataDeletionJobResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DescribeDataDeletionJobResult& DescribeDataDeletionJobResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("dataDeletionJob")) + { + m_dataDeletionJob = jsonValue.GetObject("dataDeletionJob"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/ListDataDeletionJobsRequest.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/ListDataDeletionJobsRequest.cpp new file mode 100644 index 00000000000..50827c36b05 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/ListDataDeletionJobsRequest.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Personalize::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListDataDeletionJobsRequest::ListDataDeletionJobsRequest() : + m_datasetGroupArnHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListDataDeletionJobsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_datasetGroupArnHasBeenSet) + { + payload.WithString("datasetGroupArn", m_datasetGroupArn); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("nextToken", m_nextToken); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("maxResults", m_maxResults); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListDataDeletionJobsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonPersonalize.ListDataDeletionJobs")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/ListDataDeletionJobsResult.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/ListDataDeletionJobsResult.cpp new file mode 100644 index 00000000000..5e8400b0d22 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/ListDataDeletionJobsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Personalize::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListDataDeletionJobsResult::ListDataDeletionJobsResult() +{ +} + +ListDataDeletionJobsResult::ListDataDeletionJobsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDataDeletionJobsResult& ListDataDeletionJobsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("dataDeletionJobs")) + { + Aws::Utils::Array dataDeletionJobsJsonList = jsonValue.GetArray("dataDeletionJobs"); + for(unsigned dataDeletionJobsIndex = 0; dataDeletionJobsIndex < dataDeletionJobsJsonList.GetLength(); ++dataDeletionJobsIndex) + { + m_dataDeletionJobs.push_back(dataDeletionJobsJsonList[dataDeletionJobsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ConfigParameter.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ConfigParameter.h index 97f42ae84d5..a786da16121 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ConfigParameter.h +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ConfigParameter.h @@ -42,9 +42,9 @@ namespace Model *

    The key of the parameter. The options are auto_mv, * datestyle, enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see Query * monitoring metrics for Amazon Redshift Serverless.

    */ @@ -54,9 +54,9 @@ namespace Model *

    The key of the parameter. The options are auto_mv, * datestyle, enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see Query * monitoring metrics for Amazon Redshift Serverless.

    */ @@ -66,9 +66,9 @@ namespace Model *

    The key of the parameter. The options are auto_mv, * datestyle, enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see Query * monitoring metrics for Amazon Redshift Serverless.

    */ @@ -78,9 +78,9 @@ namespace Model *

    The key of the parameter. The options are auto_mv, * datestyle, enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see Query * monitoring metrics for Amazon Redshift Serverless.

    */ @@ -90,9 +90,9 @@ namespace Model *

    The key of the parameter. The options are auto_mv, * datestyle, enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see Query * monitoring metrics for Amazon Redshift Serverless.

    */ @@ -102,9 +102,9 @@ namespace Model *

    The key of the parameter. The options are auto_mv, * datestyle, enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see Query * monitoring metrics for Amazon Redshift Serverless.

    */ @@ -114,9 +114,9 @@ namespace Model *

    The key of the parameter. The options are auto_mv, * datestyle, enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see Query * monitoring metrics for Amazon Redshift Serverless.

    */ @@ -126,9 +126,9 @@ namespace Model *

    The key of the parameter. The options are auto_mv, * datestyle, enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see Query * monitoring metrics for Amazon Redshift Serverless.

    */ diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/CreateWorkgroupRequest.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/CreateWorkgroupRequest.h index 4a6e05a6a0a..2770be7b3fc 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/CreateWorkgroupRequest.h +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/CreateWorkgroupRequest.h @@ -67,9 +67,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -80,9 +80,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -93,9 +93,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -106,9 +106,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -119,9 +119,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -132,9 +132,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -145,9 +145,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -158,9 +158,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ListScheduledActionsResult.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ListScheduledActionsResult.h index 772307a6acc..06946832de9 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ListScheduledActionsResult.h +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ListScheduledActionsResult.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -84,44 +85,39 @@ namespace Model /** - *

    All of the returned scheduled action objects.

    + *

    All of the returned scheduled action association objects.

    */ - inline const Aws::Vector& GetScheduledActions() const{ return m_scheduledActions; } + inline const Aws::Vector& GetScheduledActions() const{ return m_scheduledActions; } /** - *

    All of the returned scheduled action objects.

    + *

    All of the returned scheduled action association objects.

    */ - inline void SetScheduledActions(const Aws::Vector& value) { m_scheduledActions = value; } + inline void SetScheduledActions(const Aws::Vector& value) { m_scheduledActions = value; } /** - *

    All of the returned scheduled action objects.

    + *

    All of the returned scheduled action association objects.

    */ - inline void SetScheduledActions(Aws::Vector&& value) { m_scheduledActions = std::move(value); } + inline void SetScheduledActions(Aws::Vector&& value) { m_scheduledActions = std::move(value); } /** - *

    All of the returned scheduled action objects.

    + *

    All of the returned scheduled action association objects.

    */ - inline ListScheduledActionsResult& WithScheduledActions(const Aws::Vector& value) { SetScheduledActions(value); return *this;} + inline ListScheduledActionsResult& WithScheduledActions(const Aws::Vector& value) { SetScheduledActions(value); return *this;} /** - *

    All of the returned scheduled action objects.

    + *

    All of the returned scheduled action association objects.

    */ - inline ListScheduledActionsResult& WithScheduledActions(Aws::Vector&& value) { SetScheduledActions(std::move(value)); return *this;} + inline ListScheduledActionsResult& WithScheduledActions(Aws::Vector&& value) { SetScheduledActions(std::move(value)); return *this;} /** - *

    All of the returned scheduled action objects.

    + *

    All of the returned scheduled action association objects.

    */ - inline ListScheduledActionsResult& AddScheduledActions(const Aws::String& value) { m_scheduledActions.push_back(value); return *this; } + inline ListScheduledActionsResult& AddScheduledActions(const ScheduledActionAssociation& value) { m_scheduledActions.push_back(value); return *this; } /** - *

    All of the returned scheduled action objects.

    + *

    All of the returned scheduled action association objects.

    */ - inline ListScheduledActionsResult& AddScheduledActions(Aws::String&& value) { m_scheduledActions.push_back(std::move(value)); return *this; } - - /** - *

    All of the returned scheduled action objects.

    - */ - inline ListScheduledActionsResult& AddScheduledActions(const char* value) { m_scheduledActions.push_back(value); return *this; } + inline ListScheduledActionsResult& AddScheduledActions(ScheduledActionAssociation&& value) { m_scheduledActions.push_back(std::move(value)); return *this; } @@ -149,7 +145,7 @@ namespace Model Aws::String m_nextToken; - Aws::Vector m_scheduledActions; + Aws::Vector m_scheduledActions; Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ScheduledActionAssociation.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ScheduledActionAssociation.h new file mode 100644 index 00000000000..05d8fa5518a --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ScheduledActionAssociation.h @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace RedshiftServerless +{ +namespace Model +{ + + /** + *

    Contains names of objects associated with a scheduled action.

    See + * Also:

    AWS + * API Reference

    + */ + class ScheduledActionAssociation + { + public: + AWS_REDSHIFTSERVERLESS_API ScheduledActionAssociation(); + AWS_REDSHIFTSERVERLESS_API ScheduledActionAssociation(Aws::Utils::Json::JsonView jsonValue); + AWS_REDSHIFTSERVERLESS_API ScheduledActionAssociation& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    Name of associated Amazon Redshift Serverless namespace.

    + */ + inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; } + + /** + *

    Name of associated Amazon Redshift Serverless namespace.

    + */ + inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; } + + /** + *

    Name of associated Amazon Redshift Serverless namespace.

    + */ + inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; } + + /** + *

    Name of associated Amazon Redshift Serverless namespace.

    + */ + inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); } + + /** + *

    Name of associated Amazon Redshift Serverless namespace.

    + */ + inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); } + + /** + *

    Name of associated Amazon Redshift Serverless namespace.

    + */ + inline ScheduledActionAssociation& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;} + + /** + *

    Name of associated Amazon Redshift Serverless namespace.

    + */ + inline ScheduledActionAssociation& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;} + + /** + *

    Name of associated Amazon Redshift Serverless namespace.

    + */ + inline ScheduledActionAssociation& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;} + + + /** + *

    Name of associated scheduled action.

    + */ + inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; } + + /** + *

    Name of associated scheduled action.

    + */ + inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; } + + /** + *

    Name of associated scheduled action.

    + */ + inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; } + + /** + *

    Name of associated scheduled action.

    + */ + inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); } + + /** + *

    Name of associated scheduled action.

    + */ + inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); } + + /** + *

    Name of associated scheduled action.

    + */ + inline ScheduledActionAssociation& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;} + + /** + *

    Name of associated scheduled action.

    + */ + inline ScheduledActionAssociation& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;} + + /** + *

    Name of associated scheduled action.

    + */ + inline ScheduledActionAssociation& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;} + + private: + + Aws::String m_namespaceName; + bool m_namespaceNameHasBeenSet = false; + + Aws::String m_scheduledActionName; + bool m_scheduledActionNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace RedshiftServerless +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/UpdateWorkgroupRequest.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/UpdateWorkgroupRequest.h index 384df289b80..66ec1e9d355 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/UpdateWorkgroupRequest.h +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/UpdateWorkgroupRequest.h @@ -62,9 +62,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -75,9 +75,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -88,9 +88,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -101,9 +101,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -114,9 +114,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -127,9 +127,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -140,9 +140,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -153,9 +153,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/Workgroup.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/Workgroup.h index 1e3e1e69fa5..d29ede6627b 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/Workgroup.h +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/Workgroup.h @@ -73,9 +73,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -86,9 +86,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -99,9 +99,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -112,9 +112,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -125,9 +125,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -138,9 +138,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -151,9 +151,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -164,9 +164,9 @@ namespace Model * options are auto_mv, datestyle, * enable_case_sensitive_identifier, * enable_user_activity_logging, query_group, - * search_path, require_ssl, and query monitoring metrics - * that let you define performance boundaries. For more information about query - * monitoring rules and available metrics, see search_path, require_ssl, use_fips_ssl, + * and query monitoring metrics that let you define performance boundaries. For + * more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

    */ @@ -599,25 +599,25 @@ namespace Model /** *

    A value that specifies whether the workgroup can be accessible from a public - * network

    + * network.

    */ inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; } /** *

    A value that specifies whether the workgroup can be accessible from a public - * network

    + * network.

    */ inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; } /** *

    A value that specifies whether the workgroup can be accessible from a public - * network

    + * network.

    */ inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; } /** *

    A value that specifies whether the workgroup can be accessible from a public - * network

    + * network.

    */ inline Workgroup& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/ListScheduledActionsResult.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/ListScheduledActionsResult.cpp index 2e89b08fbd0..02e84509e4c 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/ListScheduledActionsResult.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/ListScheduledActionsResult.cpp @@ -40,7 +40,7 @@ ListScheduledActionsResult& ListScheduledActionsResult::operator =(const Aws::Am Aws::Utils::Array scheduledActionsJsonList = jsonValue.GetArray("scheduledActions"); for(unsigned scheduledActionsIndex = 0; scheduledActionsIndex < scheduledActionsJsonList.GetLength(); ++scheduledActionsIndex) { - m_scheduledActions.push_back(scheduledActionsJsonList[scheduledActionsIndex].AsString()); + m_scheduledActions.push_back(scheduledActionsJsonList[scheduledActionsIndex].AsObject()); } } diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/ScheduledActionAssociation.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/ScheduledActionAssociation.cpp new file mode 100644 index 00000000000..6961b63135b --- /dev/null +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/ScheduledActionAssociation.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace RedshiftServerless +{ +namespace Model +{ + +ScheduledActionAssociation::ScheduledActionAssociation() : + m_namespaceNameHasBeenSet(false), + m_scheduledActionNameHasBeenSet(false) +{ +} + +ScheduledActionAssociation::ScheduledActionAssociation(JsonView jsonValue) : + m_namespaceNameHasBeenSet(false), + m_scheduledActionNameHasBeenSet(false) +{ + *this = jsonValue; +} + +ScheduledActionAssociation& ScheduledActionAssociation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("namespaceName")) + { + m_namespaceName = jsonValue.GetString("namespaceName"); + + m_namespaceNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("scheduledActionName")) + { + m_scheduledActionName = jsonValue.GetString("scheduledActionName"); + + m_scheduledActionNameHasBeenSet = true; + } + + return *this; +} + +JsonValue ScheduledActionAssociation::Jsonize() const +{ + JsonValue payload; + + if(m_namespaceNameHasBeenSet) + { + payload.WithString("namespaceName", m_namespaceName); + + } + + if(m_scheduledActionNameHasBeenSet) + { + payload.WithString("scheduledActionName", m_scheduledActionName); + + } + + return payload; +} + +} // namespace Model +} // namespace RedshiftServerless +} // namespace Aws diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 69f8a30fbac..bfa70526867 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -4,7 +4,7 @@ */ #pragma once -#define AWS_SDK_VERSION_STRING "1.11.319" +#define AWS_SDK_VERSION_STRING "1.11.320" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 319 +#define AWS_SDK_VERSION_PATCH 320 diff --git a/tools/code-generation/api-descriptions/dynamodb-2012-08-10.normal.json b/tools/code-generation/api-descriptions/dynamodb-2012-08-10.normal.json index 713432d8d07..a8f3c338c90 100644 --- a/tools/code-generation/api-descriptions/dynamodb-2012-08-10.normal.json +++ b/tools/code-generation/api-descriptions/dynamodb-2012-08-10.normal.json @@ -513,7 +513,7 @@ {"shape":"InternalServerError"}, {"shape":"PolicyNotFoundException"} ], - "documentation":"

    Returns the resource-based policy document attached to the resource, which can be a table or stream, in JSON format.

    GetResourcePolicy follows an eventually consistent model. The following list describes the outcomes when you issue the GetResourcePolicy request immediately after issuing another request:

    • If you issue a GetResourcePolicy request immediately after a PutResourcePolicy request, DynamoDB might return a PolicyNotFoundException.

    • If you issue a GetResourcePolicyrequest immediately after a DeleteResourcePolicy request, DynamoDB might return the policy that was present before the deletion request.

    • If you issue a GetResourcePolicy request immediately after a CreateTable request, which includes a resource-based policy, DynamoDB might return a ResourceNotFoundException or a PolicyNotFoundException.

    Because GetResourcePolicy uses an eventually consistent query, the metadata for your policy or table might not be available at that moment. Wait for a few seconds, and then retry the GetResourcePolicy request.

    After a GetResourcePolicy request returns a policy created using the PutResourcePolicy request, you can assume the policy will start getting applied in the authorization of requests to the resource. Because this process is eventually consistent, it will take some time to apply the policy to all requests to a resource. Policies that you attach while creating a table using the CreateTable request will always be applied to all requests for that table.

    ", + "documentation":"

    Returns the resource-based policy document attached to the resource, which can be a table or stream, in JSON format.

    GetResourcePolicy follows an eventually consistent model. The following list describes the outcomes when you issue the GetResourcePolicy request immediately after issuing another request:

    • If you issue a GetResourcePolicy request immediately after a PutResourcePolicy request, DynamoDB might return a PolicyNotFoundException.

    • If you issue a GetResourcePolicyrequest immediately after a DeleteResourcePolicy request, DynamoDB might return the policy that was present before the deletion request.

    • If you issue a GetResourcePolicy request immediately after a CreateTable request, which includes a resource-based policy, DynamoDB might return a ResourceNotFoundException or a PolicyNotFoundException.

    Because GetResourcePolicy uses an eventually consistent query, the metadata for your policy or table might not be available at that moment. Wait for a few seconds, and then retry the GetResourcePolicy request.

    After a GetResourcePolicy request returns a policy created using the PutResourcePolicy request, the policy will be applied in the authorization of requests to the resource. Because this process is eventually consistent, it will take some time to apply the policy to all requests to a resource. Policies that you attach while creating a table using the CreateTable request will always be applied to all requests for that table.

    ", "endpointdiscovery":{ } }, @@ -670,7 +670,7 @@ {"shape":"PolicyNotFoundException"}, {"shape":"ResourceInUseException"} ], - "documentation":"

    Attaches a resource-based policy document to the resource, which can be a table or stream. When you attach a resource-based policy using this API, the policy application is eventually consistent .

    PutResourcePolicy is an idempotent operation; running it multiple times on the same resource using the same policy document will return the same revision ID. If you specify an ExpectedRevisionId which doesn't match the current policy's RevisionId, the PolicyNotFoundException will be returned.

    PutResourcePolicy is an asynchronous operation. If you issue a GetResourcePolicy request immediately after a PutResourcePolicy request, DynamoDB might return your previous policy, if there was one, or return the PolicyNotFoundException. This is because GetResourcePolicy uses an eventually consistent query, and the metadata for your policy or table might not be available at that moment. Wait for a few seconds, and then try the GetResourcePolicy request again.

    ", + "documentation":"

    Attaches a resource-based policy document to the resource, which can be a table or stream. When you attach a resource-based policy using this API, the policy application is eventually consistent .

    PutResourcePolicy is an idempotent operation; running it multiple times on the same resource using the same policy document will return the same revision ID. If you specify an ExpectedRevisionId that doesn't match the current policy's RevisionId, the PolicyNotFoundException will be returned.

    PutResourcePolicy is an asynchronous operation. If you issue a GetResourcePolicy request immediately after a PutResourcePolicy request, DynamoDB might return your previous policy, if there was one, or return the PolicyNotFoundException. This is because GetResourcePolicy uses an eventually consistent query, and the metadata for your policy or table might not be available at that moment. Wait for a few seconds, and then try the GetResourcePolicy request again.

    ", "endpointdiscovery":{ } }, @@ -1971,6 +1971,10 @@ "ProvisionedThroughput":{ "shape":"ProvisionedThroughput", "documentation":"

    Represents the provisioned throughput settings for the specified global secondary index.

    For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

    " + }, + "OnDemandThroughput":{ + "shape":"OnDemandThroughput", + "documentation":"

    The maximum number of read and write units for the global secondary index being created. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.

    " } }, "documentation":"

    Represents a new global secondary index to be added to an existing table.

    " @@ -2028,6 +2032,10 @@ "shape":"ProvisionedThroughputOverride", "documentation":"

    Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.

    " }, + "OnDemandThroughputOverride":{ + "shape":"OnDemandThroughputOverride", + "documentation":"

    The maximum on-demand throughput settings for the specified replica table being created. You can only modify MaxReadRequestUnits, because you can't modify MaxWriteRequestUnits for individual replica tables.

    " + }, "GlobalSecondaryIndexes":{ "shape":"ReplicaGlobalSecondaryIndexList", "documentation":"

    Replica-specific global secondary index settings.

    " @@ -2097,7 +2105,11 @@ }, "ResourcePolicy":{ "shape":"ResourcePolicy", - "documentation":"

    An Amazon Web Services resource-based policy document in JSON format that will be attached to the table.

    When you attach a resource-based policy while creating a table, the policy creation is strongly consistent.

    The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. You can’t request an increase for this limit. For a full list of all considerations that you should keep in mind while attaching a resource-based policy, see Resource-based policy considerations.

    " + "documentation":"

    An Amazon Web Services resource-based policy document in JSON format that will be attached to the table.

    When you attach a resource-based policy while creating a table, the policy application is strongly consistent.

    The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that apply for resource-based policies, see Resource-based policy considerations.

    " + }, + "OnDemandThroughput":{ + "shape":"OnDemandThroughput", + "documentation":"

    Sets the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.

    " } }, "documentation":"

    Represents the input of a CreateTable operation.

    " @@ -2330,7 +2342,7 @@ "members":{ "RevisionId":{ "shape":"PolicyRevisionId", - "documentation":"

    A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.

    This value will be empty if you make a request against a resource without a policy.

    " + "documentation":"

    A unique string that represents the revision ID of the policy. If you're comparing revision IDs, make sure to always use string comparison logic.

    This value will be empty if you make a request against a resource without a policy.

    " } } }, @@ -3169,7 +3181,7 @@ }, "RevisionId":{ "shape":"PolicyRevisionId", - "documentation":"

    A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.

    " + "documentation":"

    A unique string that represents the revision ID of the policy. If you're comparing revision IDs, make sure to always use string comparison logic.

    " } } }, @@ -3196,6 +3208,10 @@ "ProvisionedThroughput":{ "shape":"ProvisionedThroughput", "documentation":"

    Represents the provisioned throughput settings for the specified global secondary index.

    For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

    " + }, + "OnDemandThroughput":{ + "shape":"OnDemandThroughput", + "documentation":"

    The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.

    " } }, "documentation":"

    Represents the properties of a global secondary index.

    " @@ -3254,6 +3270,10 @@ "IndexArn":{ "shape":"String", "documentation":"

    The Amazon Resource Name (ARN) that uniquely identifies the index.

    " + }, + "OnDemandThroughput":{ + "shape":"OnDemandThroughput", + "documentation":"

    The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.

    " } }, "documentation":"

    Represents the properties of a global secondary index.

    " @@ -3280,7 +3300,8 @@ "ProvisionedThroughput":{ "shape":"ProvisionedThroughput", "documentation":"

    Represents the provisioned throughput settings for the specified global secondary index.

    " - } + }, + "OnDemandThroughput":{"shape":"OnDemandThroughput"} }, "documentation":"

    Represents the properties of a global secondary index for the table when the backup was created.

    " }, @@ -4308,6 +4329,30 @@ "type":"list", "member":{"shape":"NumberAttributeValue"} }, + "OnDemandThroughput":{ + "type":"structure", + "members":{ + "MaxReadRequestUnits":{ + "shape":"LongObject", + "documentation":"

    Maximum number of read request units for the specified table.

    To specify a maximum OnDemandThroughput on your table, set the value of MaxReadRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxReadRequestUnits to -1.

    " + }, + "MaxWriteRequestUnits":{ + "shape":"LongObject", + "documentation":"

    Maximum number of write request units for the specified table.

    To specify a maximum OnDemandThroughput on your table, set the value of MaxWriteRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxWriteRequestUnits to -1.

    " + } + }, + "documentation":"

    Sets the maximum number of read and write units for the specified on-demand table. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.

    " + }, + "OnDemandThroughputOverride":{ + "type":"structure", + "members":{ + "MaxReadRequestUnits":{ + "shape":"LongObject", + "documentation":"

    Maximum number of read request units for the specified replica table.

    " + } + }, + "documentation":"

    Overrides the on-demand throughput settings for this replica table. If you don't specify a value for this parameter, it uses the source table's on-demand throughput settings.

    " + }, "ParameterizedStatement":{ "type":"structure", "required":["Statement"], @@ -4647,11 +4692,11 @@ }, "Policy":{ "shape":"ResourcePolicy", - "documentation":"

    An Amazon Web Services resource-based policy document in JSON format.

    The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that you should keep in mind while attaching a resource-based policy, see Resource-based policy considerations.

    " + "documentation":"

    An Amazon Web Services resource-based policy document in JSON format.

    • The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit.

    • Within a resource-based policy, if the action for a DynamoDB service-linked role (SLR) to replicate data for a global table is denied, adding or deleting a replica will fail with an error.

    For a full list of all considerations that apply while attaching a resource-based policy, see Resource-based policy considerations.

    " }, "ExpectedRevisionId":{ "shape":"PolicyRevisionId", - "documentation":"

    A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy. When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, your request will be rejected with a PolicyNotFoundException.

    To conditionally put a policy when no policy exists for the resource, specify NO_POLICY for the revision ID.

    " + "documentation":"

    A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy.

    When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, your request will be rejected with a PolicyNotFoundException.

    To conditionally attach a policy when no policy exists for the resource, specify NO_POLICY for the revision ID.

    " }, "ConfirmRemoveSelfResourceAccess":{ "shape":"ConfirmRemoveSelfResourceAccess", @@ -4664,7 +4709,7 @@ "members":{ "RevisionId":{ "shape":"PolicyRevisionId", - "documentation":"

    A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.

    " + "documentation":"

    A unique string that represents the revision ID of the policy. If you're comparing revision IDs, make sure to always use string comparison logic.

    " } } }, @@ -4857,6 +4902,10 @@ "shape":"ProvisionedThroughputOverride", "documentation":"

    Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.

    " }, + "OnDemandThroughputOverride":{ + "shape":"OnDemandThroughputOverride", + "documentation":"

    Overrides the maximum on-demand throughput settings for the specified replica table.

    " + }, "GlobalSecondaryIndexes":{ "shape":"ReplicaGlobalSecondaryIndexDescriptionList", "documentation":"

    Replica-specific global secondary index settings.

    " @@ -4884,6 +4933,10 @@ "ProvisionedThroughputOverride":{ "shape":"ProvisionedThroughputOverride", "documentation":"

    Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.

    " + }, + "OnDemandThroughputOverride":{ + "shape":"OnDemandThroughputOverride", + "documentation":"

    Overrides the maximum on-demand throughput settings for the specified global secondary index in the specified replica table.

    " } }, "documentation":"

    Represents the properties of a replica global secondary index.

    " @@ -4933,6 +4986,10 @@ "ProvisionedThroughputOverride":{ "shape":"ProvisionedThroughputOverride", "documentation":"

    If not described, uses the source table GSI's read capacity settings.

    " + }, + "OnDemandThroughputOverride":{ + "shape":"OnDemandThroughputOverride", + "documentation":"

    Overrides the maximum on-demand throughput for the specified global secondary index in the specified replica table.

    " } }, "documentation":"

    Represents the properties of a replica global secondary index.

    " @@ -5244,6 +5301,7 @@ "shape":"ProvisionedThroughput", "documentation":"

    Provisioned throughput settings for the restored table.

    " }, + "OnDemandThroughputOverride":{"shape":"OnDemandThroughput"}, "SSESpecificationOverride":{ "shape":"SSESpecification", "documentation":"

    The new server-side encryption settings for the restored table.

    " @@ -5299,6 +5357,7 @@ "shape":"ProvisionedThroughput", "documentation":"

    Provisioned throughput settings for the restored table.

    " }, + "OnDemandThroughputOverride":{"shape":"OnDemandThroughput"}, "SSESpecificationOverride":{ "shape":"SSESpecification", "documentation":"

    The new server-side encryption settings for the restored table.

    " @@ -5613,6 +5672,7 @@ "shape":"ProvisionedThroughput", "documentation":"

    Read IOPs and Write IOPS on the table when the backup was created.

    " }, + "OnDemandThroughput":{"shape":"OnDemandThroughput"}, "ItemCount":{ "shape":"ItemCount", "documentation":"

    Number of items in the table. Note that this is an approximate value.

    " @@ -5764,6 +5824,7 @@ "documentation":"

    The billing mode for provisioning the table created as part of the import operation.

    " }, "ProvisionedThroughput":{"shape":"ProvisionedThroughput"}, + "OnDemandThroughput":{"shape":"OnDemandThroughput"}, "SSESpecification":{"shape":"SSESpecification"}, "GlobalSecondaryIndexes":{ "shape":"GlobalSecondaryIndexList", @@ -5866,6 +5927,10 @@ "DeletionProtectionEnabled":{ "shape":"DeletionProtectionEnabled", "documentation":"

    Indicates whether deletion protection is enabled (true) or disabled (false) on the table.

    " + }, + "OnDemandThroughput":{ + "shape":"OnDemandThroughput", + "documentation":"

    The maximum number of read and write units for the specified on-demand table. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.

    " } }, "documentation":"

    Represents the properties of a table.

    " @@ -6270,10 +6335,7 @@ "UpdateExpression":{"type":"string"}, "UpdateGlobalSecondaryIndexAction":{ "type":"structure", - "required":[ - "IndexName", - "ProvisionedThroughput" - ], + "required":["IndexName"], "members":{ "IndexName":{ "shape":"IndexName", @@ -6282,6 +6344,10 @@ "ProvisionedThroughput":{ "shape":"ProvisionedThroughput", "documentation":"

    Represents the provisioned throughput settings for the specified global secondary index.

    For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

    " + }, + "OnDemandThroughput":{ + "shape":"OnDemandThroughput", + "documentation":"

    Updates the maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.

    " } }, "documentation":"

    Represents the new provisioned throughput settings to be applied to a global secondary index.

    " @@ -6500,6 +6566,10 @@ "shape":"ProvisionedThroughputOverride", "documentation":"

    Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.

    " }, + "OnDemandThroughputOverride":{ + "shape":"OnDemandThroughputOverride", + "documentation":"

    Overrides the maximum on-demand throughput for the replica table.

    " + }, "GlobalSecondaryIndexes":{ "shape":"ReplicaGlobalSecondaryIndexList", "documentation":"

    Replica-specific global secondary index settings.

    " @@ -6554,6 +6624,10 @@ "DeletionProtectionEnabled":{ "shape":"DeletionProtectionEnabled", "documentation":"

    Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.

    " + }, + "OnDemandThroughput":{ + "shape":"OnDemandThroughput", + "documentation":"

    Updates the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.

    " } }, "documentation":"

    Represents the input of an UpdateTable operation.

    " diff --git a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json index b5d96dea035..84b1554dbd6 100644 --- a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json +++ b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json @@ -4407,6 +4407,16 @@ "output":{"shape":"GetInstanceMetadataDefaultsResult"}, "documentation":"

    Gets the default instance metadata service (IMDS) settings that are set at the account level in the specified Amazon Web Services
 Region.

    For more information, see Order of precedence for instance metadata options in the Amazon EC2 User Guide.

    " }, + "GetInstanceTpmEkPub":{ + "name":"GetInstanceTpmEkPub", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstanceTpmEkPubRequest"}, + "output":{"shape":"GetInstanceTpmEkPubResult"}, + "documentation":"

    Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance.

    " + }, "GetInstanceTypesFromInstanceRequirements":{ "name":"GetInstanceTypesFromInstanceRequirements", "http":{ @@ -27420,6 +27430,24 @@ "locationName":"item" } }, + "EkPubKeyFormat":{ + "type":"string", + "enum":[ + "der", + "tpmt" + ] + }, + "EkPubKeyType":{ + "type":"string", + "enum":[ + "rsa-2048", + "ecc-sec-p384" + ] + }, + "EkPubKeyValue":{ + "type":"string", + "sensitive":true + }, "ElasticGpuAssociation":{ "type":"structure", "members":{ @@ -30838,6 +30866,57 @@ } } }, + "GetInstanceTpmEkPubRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "KeyType", + "KeyFormat" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

    The ID of the instance for which to get the public endorsement key.

    " + }, + "KeyType":{ + "shape":"EkPubKeyType", + "documentation":"

    The required public endorsement key type.

    " + }, + "KeyFormat":{ + "shape":"EkPubKeyFormat", + "documentation":"

    The required public endorsement key format. Specify der for a DER-encoded public key that is compatible with OpenSSL. Specify tpmt for a TPM 2.0 format that is compatible with tpm2-tools. The returned key is base64 encoded.

    " + }, + "DryRun":{ + "shape":"Boolean", + "documentation":"

    Specify this parameter to verify whether the request will succeed, without actually making the request. If the request will succeed, the response is DryRunOperation. Otherwise, the response is UnauthorizedOperation.

    " + } + } + }, + "GetInstanceTpmEkPubResult":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

    The ID of the instance.

    ", + "locationName":"instanceId" + }, + "KeyType":{ + "shape":"EkPubKeyType", + "documentation":"

    The public endorsement key type.

    ", + "locationName":"keyType" + }, + "KeyFormat":{ + "shape":"EkPubKeyFormat", + "documentation":"

    The public endorsement key format.

    ", + "locationName":"keyFormat" + }, + "KeyValue":{ + "shape":"EkPubKeyValue", + "documentation":"

    The public endorsement key material.

    ", + "locationName":"keyValue" + } + } + }, "GetInstanceTypesFromInstanceRequirementsRequest":{ "type":"structure", "required":[ diff --git a/tools/code-generation/api-descriptions/personalize-2018-05-22.normal.json b/tools/code-generation/api-descriptions/personalize-2018-05-22.normal.json index e152ed32d5b..6e547142686 100644 --- a/tools/code-generation/api-descriptions/personalize-2018-05-22.normal.json +++ b/tools/code-generation/api-descriptions/personalize-2018-05-22.normal.json @@ -5,6 +5,7 @@ "endpointPrefix":"personalize", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceFullName":"Amazon Personalize", "serviceId":"Personalize", "signatureVersion":"v4", @@ -68,6 +69,24 @@ "documentation":"

    You incur campaign costs while it is active. To avoid unnecessary costs, make sure to delete the campaign when you are finished. For information about campaign costs, see Amazon Personalize pricing.

    Creates a campaign that deploys a solution version. When a client calls the GetRecommendations and GetPersonalizedRanking APIs, a campaign is specified in the request.

    Minimum Provisioned TPS and Auto-Scaling

    A high minProvisionedTPS will increase your cost. We recommend starting with 1 for minProvisionedTPS (the default). Track your usage using Amazon CloudWatch metrics, and increase the minProvisionedTPS as necessary.

    When you create an Amazon Personalize campaign, you can specify the minimum provisioned transactions per second (minProvisionedTPS) for the campaign. This is the baseline transaction throughput for the campaign provisioned by Amazon Personalize. It sets the minimum billing charge for the campaign while it is active. A transaction is a single GetRecommendations or GetPersonalizedRanking request. The default minProvisionedTPS is 1.

    If your TPS increases beyond the minProvisionedTPS, Amazon Personalize auto-scales the provisioned capacity up and down, but never below minProvisionedTPS. There's a short time delay while the capacity is increased that might cause loss of transactions. When your traffic reduces, capacity returns to the minProvisionedTPS.

    You are charged for the the minimum provisioned TPS or, if your requests exceed the minProvisionedTPS, the actual TPS. The actual TPS is the total number of recommendation requests you make. We recommend starting with a low minProvisionedTPS, track your usage using Amazon CloudWatch metrics, and then increase the minProvisionedTPS as necessary.

    For more information about campaign costs, see Amazon Personalize pricing.

    Status

    A campaign can be in one of the following states:

    • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

    • DELETE PENDING > DELETE IN_PROGRESS

    To get the campaign status, call DescribeCampaign.

    Wait until the status of the campaign is ACTIVE before asking the campaign for recommendations.

    Related APIs

    ", "idempotent":true }, + "CreateDataDeletionJob":{ + "name":"CreateDataDeletionJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateDataDeletionJobRequest"}, + "output":{"shape":"CreateDataDeletionJobResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceInUseException"}, + {"shape":"TooManyTagsException"} + ], + "documentation":"

    Creates a batch job that deletes all references to specific users from an Amazon Personalize dataset group in batches. You specify the users to delete in a CSV file of userIds in an Amazon S3 bucket. After a job completes, Amazon Personalize no longer trains on the users’ data and no longer considers the users when generating user segments. For more information about creating a data deletion job, see Deleting users.

    • Your input file must be a CSV file with a single USER_ID column that lists the users IDs. For more information about preparing the CSV file, see Preparing your data deletion file and uploading it to Amazon S3.

    • To give Amazon Personalize permission to access your input CSV file of userIds, you must specify an IAM service role that has permission to read from the data source. This role needs GetObject and ListBucket permissions for the bucket and its content. These permissions are the same as importing data. For information on granting access to your Amazon S3 bucket, see Giving Amazon Personalize Access to Amazon S3 Resources.

    After you create a job, it can take up to a day to delete all references to the users from datasets and models. Until the job completes, Amazon Personalize continues to use the data when training. And if you use a User Segmentation recipe, the users might appear in user segments.

    Status

    A data deletion job can have one of the following statuses:

    • PENDING > IN_PROGRESS > COMPLETED -or- FAILED

    To get the status of the data deletion job, call DescribeDataDeletionJob API operation and specify the Amazon Resource Name (ARN) of the job. If the status is FAILED, the response includes a failureReason key, which describes why the job failed.

    Related APIs

    " + }, "CreateDataset":{ "name":"CreateDataset", "http":{ @@ -458,6 +477,21 @@ "documentation":"

    Describes the given campaign, including its status.

    A campaign can be in one of the following states:

    • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

    • DELETE PENDING > DELETE IN_PROGRESS

    When the status is CREATE FAILED, the response includes the failureReason key, which describes why.

    For more information on campaigns, see CreateCampaign.

    ", "idempotent":true }, + "DescribeDataDeletionJob":{ + "name":"DescribeDataDeletionJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDataDeletionJobRequest"}, + "output":{"shape":"DescribeDataDeletionJobResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Describes the data deletion job created by CreateDataDeletionJob, including the job status.

    ", + "idempotent":true + }, "DescribeDataset":{ "name":"DescribeDataset", "http":{ @@ -712,6 +746,21 @@ "documentation":"

    Returns a list of campaigns that use the given solution. When a solution is not specified, all the campaigns associated with the account are listed. The response provides the properties for each campaign, including the Amazon Resource Name (ARN). For more information on campaigns, see CreateCampaign.

    ", "idempotent":true }, + "ListDataDeletionJobs":{ + "name":"ListDataDeletionJobs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDataDeletionJobsRequest"}, + "output":{"shape":"ListDataDeletionJobsResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"InvalidNextTokenException"} + ], + "documentation":"

    Returns a list of data deletion jobs for a dataset group ordered by creation time, with the most recent first. When a dataset group is not specified, all the data deletion jobs associated with the account are listed. The response provides the properties for each job, including the Amazon Resource Name (ARN). For more information on data deletion jobs, see Deleting users.

    ", + "idempotent":true + }, "ListDatasetExportJobs":{ "name":"ListDatasetExportJobs", "http":{ @@ -1789,6 +1838,46 @@ } } }, + "CreateDataDeletionJobRequest":{ + "type":"structure", + "required":[ + "jobName", + "datasetGroupArn", + "dataSource", + "roleArn" + ], + "members":{ + "jobName":{ + "shape":"Name", + "documentation":"

    The name for the data deletion job.

    " + }, + "datasetGroupArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the dataset group that has the datasets you want to delete records from.

    " + }, + "dataSource":{ + "shape":"DataSource", + "documentation":"

    The Amazon S3 bucket that contains the list of userIds of the users to delete.

    " + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read from the Amazon S3 data source.

    " + }, + "tags":{ + "shape":"Tags", + "documentation":"

    A list of tags to apply to the data deletion job.

    " + } + } + }, + "CreateDataDeletionJobResponse":{ + "type":"structure", + "members":{ + "dataDeletionJobArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the data deletion job.

    " + } + } + }, "CreateDatasetExportJobRequest":{ "type":"structure", "required":[ @@ -2219,15 +2308,97 @@ } } }, + "DataDeletionJob":{ + "type":"structure", + "members":{ + "jobName":{ + "shape":"Name", + "documentation":"

    The name of the data deletion job.

    " + }, + "dataDeletionJobArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the data deletion job.

    " + }, + "datasetGroupArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the dataset group the job deletes records from.

    " + }, + "dataSource":{"shape":"DataSource"}, + "roleArn":{ + "shape":"RoleArn", + "documentation":"

    The Amazon Resource Name (ARN) of the IAM role that has permissions to read from the Amazon S3 data source.

    " + }, + "status":{ + "shape":"Status", + "documentation":"

    The status of the data deletion job.

    A data deletion job can have one of the following statuses:

    • PENDING > IN_PROGRESS > COMPLETED -or- FAILED

    " + }, + "numDeleted":{ + "shape":"Integer", + "documentation":"

    The number of records deleted by a COMPLETED job.

    " + }, + "creationDateTime":{ + "shape":"Date", + "documentation":"

    The creation date and time (in Unix time) of the data deletion job.

    " + }, + "lastUpdatedDateTime":{ + "shape":"Date", + "documentation":"

    The date and time (in Unix time) the data deletion job was last updated.

    " + }, + "failureReason":{ + "shape":"FailureReason", + "documentation":"

    If a data deletion job fails, provides the reason why.

    " + } + }, + "documentation":"

    Describes a job that deletes all references to specific users from an Amazon Personalize dataset group in batches. For information about creating a data deletion job, see Deleting users.

    " + }, + "DataDeletionJobSummary":{ + "type":"structure", + "members":{ + "dataDeletionJobArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the data deletion job.

    " + }, + "datasetGroupArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the dataset group the job deleted records from.

    " + }, + "jobName":{ + "shape":"Name", + "documentation":"

    The name of the data deletion job.

    " + }, + "status":{ + "shape":"Status", + "documentation":"

    The status of the data deletion job.

    A data deletion job can have one of the following statuses:

    • PENDING > IN_PROGRESS > COMPLETED -or- FAILED

    " + }, + "creationDateTime":{ + "shape":"Date", + "documentation":"

    The creation date and time (in Unix time) of the data deletion job.

    " + }, + "lastUpdatedDateTime":{ + "shape":"Date", + "documentation":"

    The date and time (in Unix time) the data deletion job was last updated.

    " + }, + "failureReason":{ + "shape":"FailureReason", + "documentation":"

    If a data deletion job fails, provides the reason why.

    " + } + }, + "documentation":"

    Provides a summary of the properties of a data deletion job. For a complete listing, call the DescribeDataDeletionJob API operation.

    " + }, + "DataDeletionJobs":{ + "type":"list", + "member":{"shape":"DataDeletionJobSummary"}, + "max":100 + }, "DataSource":{ "type":"structure", "members":{ "dataLocation":{ "shape":"S3Location", - "documentation":"

    The path to the Amazon S3 bucket where the data that you want to upload to your dataset is stored. For example:

    s3://bucket-name/folder-name/

    " + "documentation":"

    For dataset import jobs, the path to the Amazon S3 bucket where the data that you want to upload to your dataset is stored. For data deletion jobs, the path to the Amazon S3 bucket that stores the list of records to delete.

    For example:

    s3://bucket-name/folder-name/fileName.csv

    If your CSV files are in a folder in your Amazon S3 bucket and you want your import job or data deletion job to consider multiple files, you can specify the path to the folder. With a data deletion job, Amazon Personalize uses all files in the folder and any sub folder. Use the following syntax with a / after the folder name:

    s3://bucket-name/folder-name/

    " } }, - "documentation":"

    Describes the data source that contains the data to upload to a dataset.

    " + "documentation":"

    Describes the data source that contains the data to upload to a dataset, or the list of records to delete from Amazon Personalize.

    " }, "Dataset":{ "type":"structure", @@ -2917,6 +3088,25 @@ } } }, + "DescribeDataDeletionJobRequest":{ + "type":"structure", + "required":["dataDeletionJobArn"], + "members":{ + "dataDeletionJobArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the data deletion job.

    " + } + } + }, + "DescribeDataDeletionJobResponse":{ + "type":"structure", + "members":{ + "dataDeletionJob":{ + "shape":"DataDeletionJob", + "documentation":"

    Information about the data deletion job, including the status.

    The status is one of the following values:

    • PENDING

    • IN_PROGRESS

    • COMPLETED

    • FAILED

    " + } + } + }, "DescribeDatasetExportJobRequest":{ "type":"structure", "required":["datasetExportJobArn"], @@ -3517,6 +3707,7 @@ "ALL" ] }, + "Integer":{"type":"integer"}, "IntegerHyperParameterRange":{ "type":"structure", "members":{ @@ -3672,6 +3863,36 @@ } } }, + "ListDataDeletionJobsRequest":{ + "type":"structure", + "members":{ + "datasetGroupArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the dataset group to list data deletion jobs for.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    A token returned from the previous call to ListDataDeletionJobs for getting the next set of jobs (if they exist).

    " + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of data deletion jobs to return.

    " + } + } + }, + "ListDataDeletionJobsResponse":{ + "type":"structure", + "members":{ + "dataDeletionJobs":{ + "shape":"DataDeletionJobs", + "documentation":"

    The list of data deletion jobs.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    A token for getting the next set of data deletion jobs (if they exist).

    " + } + } + }, "ListDatasetExportJobsRequest":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/redshift-serverless-2021-04-21.normal.json b/tools/code-generation/api-descriptions/redshift-serverless-2021-04-21.normal.json index 8dc9f0454c7..170fcd51856 100644 --- a/tools/code-generation/api-descriptions/redshift-serverless-2021-04-21.normal.json +++ b/tools/code-generation/api-descriptions/redshift-serverless-2021-04-21.normal.json @@ -975,7 +975,7 @@ "members":{ "parameterKey":{ "shape":"ParameterKey", - "documentation":"

    The key of the parameter. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

    " + "documentation":"

    The key of the parameter. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

    " }, "parameterValue":{ "shape":"ParameterValue", @@ -1377,7 +1377,7 @@ }, "configParameters":{ "shape":"ConfigParameterList", - "documentation":"

    An array of parameters to set for advanced control over a database. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

    " + "documentation":"

    An array of parameters to set for advanced control over a database. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

    " }, "enhancedVpcRouting":{ "shape":"Boolean", @@ -2203,7 +2203,7 @@ }, "scheduledActions":{ "shape":"ScheduledActionsList", - "documentation":"

    All of the returned scheduled action objects.

    " + "documentation":"

    All of the returned scheduled action association objects.

    " } } }, @@ -2888,6 +2888,20 @@ "documentation":"

    The schedule of when Amazon Redshift Serverless should run the scheduled action.

    ", "union":true }, + "ScheduledActionAssociation":{ + "type":"structure", + "members":{ + "namespaceName":{ + "shape":"NamespaceName", + "documentation":"

    Name of associated Amazon Redshift Serverless namespace.

    " + }, + "scheduledActionName":{ + "shape":"ScheduledActionName", + "documentation":"

    Name of associated scheduled action.

    " + } + }, + "documentation":"

    Contains names of objects associated with a scheduled action.

    " + }, "ScheduledActionName":{ "type":"string", "max":60, @@ -2943,7 +2957,7 @@ }, "ScheduledActionsList":{ "type":"list", - "member":{"shape":"ScheduledActionName"} + "member":{"shape":"ScheduledActionAssociation"} }, "SecurityGroupId":{"type":"string"}, "SecurityGroupIdList":{ @@ -3561,7 +3575,7 @@ }, "configParameters":{ "shape":"ConfigParameterList", - "documentation":"

    An array of parameters to set for advanced control over a database. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

    " + "documentation":"

    An array of parameters to set for advanced control over a database. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

    " }, "enhancedVpcRouting":{ "shape":"Boolean", @@ -3733,7 +3747,7 @@ }, "configParameters":{ "shape":"ConfigParameterList", - "documentation":"

    An array of parameters to set for advanced control over a database. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

    " + "documentation":"

    An array of parameters to set for advanced control over a database. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

    " }, "creationDate":{ "shape":"SyntheticTimestamp_date_time", @@ -3781,7 +3795,7 @@ }, "publiclyAccessible":{ "shape":"Boolean", - "documentation":"

    A value that specifies whether the workgroup can be accessible from a public network

    " + "documentation":"

    A value that specifies whether the workgroup can be accessible from a public network.

    " }, "securityGroupIds":{ "shape":"SecurityGroupIdList",