diff --git a/VERSION b/VERSION index 4237e94440f..36212f5e2ab 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.320 \ No newline at end of file +1.11.321 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ActionGroupExecutor.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ActionGroupExecutor.h index 80ba69418fa..e1a6e80e79a 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ActionGroupExecutor.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ActionGroupExecutor.h @@ -26,7 +26,8 @@ namespace Model /** *

Contains details about the Lambda function containing the business logic that - * is carried out upon invoking the action.

See Also:

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentActionGroup.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentActionGroup.h index dbd15e336c0..4b889d160eb 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentActionGroup.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentActionGroup.h @@ -45,37 +45,43 @@ namespace Model /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline const ActionGroupExecutor& GetActionGroupExecutor() const{ return m_actionGroupExecutor; } /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline bool ActionGroupExecutorHasBeenSet() const { return m_actionGroupExecutorHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline void SetActionGroupExecutor(const ActionGroupExecutor& value) { m_actionGroupExecutorHasBeenSet = true; m_actionGroupExecutor = value; } /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline void SetActionGroupExecutor(ActionGroupExecutor&& value) { m_actionGroupExecutorHasBeenSet = true; m_actionGroupExecutor = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline AgentActionGroup& WithActionGroupExecutor(const ActionGroupExecutor& value) { SetActionGroupExecutor(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline AgentActionGroup& WithActionGroupExecutor(ActionGroupExecutor&& value) { SetActionGroupExecutor(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentAlias.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentAlias.h index bcbf3156552..bf2d06b59df 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentAlias.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentAlias.h @@ -459,6 +459,61 @@ namespace Model inline AgentAlias& WithDescription(const char* value) { SetDescription(value); return *this;} + /** + *

Information on the failure of Provisioned Throughput assigned to an agent + * alias.

+ */ + inline const Aws::Vector& GetFailureReasons() const{ return m_failureReasons; } + + /** + *

Information on the failure of Provisioned Throughput assigned to an agent + * alias.

+ */ + inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; } + + /** + *

Information on the failure of Provisioned Throughput assigned to an agent + * alias.

+ */ + inline void SetFailureReasons(const Aws::Vector& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = value; } + + /** + *

Information on the failure of Provisioned Throughput assigned to an agent + * alias.

+ */ + inline void SetFailureReasons(Aws::Vector&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::move(value); } + + /** + *

Information on the failure of Provisioned Throughput assigned to an agent + * alias.

+ */ + inline AgentAlias& WithFailureReasons(const Aws::Vector& value) { SetFailureReasons(value); return *this;} + + /** + *

Information on the failure of Provisioned Throughput assigned to an agent + * alias.

+ */ + inline AgentAlias& WithFailureReasons(Aws::Vector&& value) { SetFailureReasons(std::move(value)); return *this;} + + /** + *

Information on the failure of Provisioned Throughput assigned to an agent + * alias.

+ */ + inline AgentAlias& AddFailureReasons(const Aws::String& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; } + + /** + *

Information on the failure of Provisioned Throughput assigned to an agent + * alias.

+ */ + inline AgentAlias& AddFailureReasons(Aws::String&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(std::move(value)); return *this; } + + /** + *

Information on the failure of Provisioned Throughput assigned to an agent + * alias.

+ */ + inline AgentAlias& AddFailureReasons(const char* value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; } + + /** *

Contains details about the routing configuration of the alias.

*/ @@ -559,6 +614,9 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + Aws::Vector m_failureReasons; + bool m_failureReasonsHasBeenSet = false; + Aws::Vector m_routingConfiguration; bool m_routingConfigurationHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.h index 7e94764fe7e..45ba6493af7 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.h @@ -78,10 +78,54 @@ namespace Model */ inline AgentAliasRoutingConfigurationListItem& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;} + + /** + *

Information on the Provisioned Throughput assigned to an agent alias.

+ */ + inline const Aws::String& GetProvisionedThroughput() const{ return m_provisionedThroughput; } + + /** + *

Information on the Provisioned Throughput assigned to an agent alias.

+ */ + inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; } + + /** + *

Information on the Provisioned Throughput assigned to an agent alias.

+ */ + inline void SetProvisionedThroughput(const Aws::String& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; } + + /** + *

Information on the Provisioned Throughput assigned to an agent alias.

+ */ + inline void SetProvisionedThroughput(Aws::String&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::move(value); } + + /** + *

Information on the Provisioned Throughput assigned to an agent alias.

+ */ + inline void SetProvisionedThroughput(const char* value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput.assign(value); } + + /** + *

Information on the Provisioned Throughput assigned to an agent alias.

+ */ + inline AgentAliasRoutingConfigurationListItem& WithProvisionedThroughput(const Aws::String& value) { SetProvisionedThroughput(value); return *this;} + + /** + *

Information on the Provisioned Throughput assigned to an agent alias.

+ */ + inline AgentAliasRoutingConfigurationListItem& WithProvisionedThroughput(Aws::String&& value) { SetProvisionedThroughput(std::move(value)); return *this;} + + /** + *

Information on the Provisioned Throughput assigned to an agent alias.

+ */ + inline AgentAliasRoutingConfigurationListItem& WithProvisionedThroughput(const char* value) { SetProvisionedThroughput(value); return *this;} + private: Aws::String m_agentVersion; bool m_agentVersionHasBeenSet = false; + + Aws::String m_provisionedThroughput; + bool m_provisionedThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentActionGroupRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentActionGroupRequest.h index b77baa017ac..6394d321566 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentActionGroupRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentActionGroupRequest.h @@ -40,37 +40,43 @@ namespace Model /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline const ActionGroupExecutor& GetActionGroupExecutor() const{ return m_actionGroupExecutor; } /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline bool ActionGroupExecutorHasBeenSet() const { return m_actionGroupExecutorHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline void SetActionGroupExecutor(const ActionGroupExecutor& value) { m_actionGroupExecutorHasBeenSet = true; m_actionGroupExecutor = value; } /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline void SetActionGroupExecutor(ActionGroupExecutor&& value) { m_actionGroupExecutorHasBeenSet = true; m_actionGroupExecutor = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline CreateAgentActionGroupRequest& WithActionGroupExecutor(const ActionGroupExecutor& value) { SetActionGroupExecutor(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action.

+ * logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user.

*/ inline CreateAgentActionGroupRequest& WithActionGroupExecutor(ActionGroupExecutor&& value) { SetActionGroupExecutor(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/KnowledgeBase.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/KnowledgeBase.h index aec936f0e9b..ae30d85dbec 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/KnowledgeBase.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/KnowledgeBase.h @@ -373,9 +373,9 @@ namespace Model *

The status of the knowledge base. The following statuses are possible:

*
  • CREATING – The knowledge base is being created.

  • *

    ACTIVE – The knowledge base is ready to be queried.

  • - *

    DELETING – The knowledge base is being deleted.

  • UPDATING - * ��� The knowledge base is being updated.

  • FAILED – The - * knowledge base API operation failed.

+ *

DELETING – The knowledge base is being deleted.

  • UPDATING – + * The knowledge base is being updated.

  • FAILED – The knowledge + * base API operation failed.

  • */ inline const KnowledgeBaseStatus& GetStatus() const{ return m_status; } @@ -383,9 +383,9 @@ namespace Model *

    The status of the knowledge base. The following statuses are possible:

    *
    • CREATING – The knowledge base is being created.

    • *

      ACTIVE – The knowledge base is ready to be queried.

    • - *

      DELETING – The knowledge base is being deleted.

    • UPDATING - * ��� The knowledge base is being updated.

    • FAILED – The - * knowledge base API operation failed.

    + *

    DELETING – The knowledge base is being deleted.

  • UPDATING – + * The knowledge base is being updated.

  • FAILED – The knowledge + * base API operation failed.

  • */ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } @@ -393,9 +393,9 @@ namespace Model *

    The status of the knowledge base. The following statuses are possible:

    *
    • CREATING – The knowledge base is being created.

    • *

      ACTIVE – The knowledge base is ready to be queried.

    • - *

      DELETING – The knowledge base is being deleted.

    • UPDATING - * ��� The knowledge base is being updated.

    • FAILED – The - * knowledge base API operation failed.

    + *

    DELETING – The knowledge base is being deleted.

  • UPDATING – + * The knowledge base is being updated.

  • FAILED – The knowledge + * base API operation failed.

  • */ inline void SetStatus(const KnowledgeBaseStatus& value) { m_statusHasBeenSet = true; m_status = value; } @@ -403,9 +403,9 @@ namespace Model *

    The status of the knowledge base. The following statuses are possible:

    *
    • CREATING – The knowledge base is being created.

    • *

      ACTIVE – The knowledge base is ready to be queried.

    • - *

      DELETING – The knowledge base is being deleted.

    • UPDATING - * ��� The knowledge base is being updated.

    • FAILED – The - * knowledge base API operation failed.

    + *

    DELETING – The knowledge base is being deleted.

  • UPDATING – + * The knowledge base is being updated.

  • FAILED – The knowledge + * base API operation failed.

  • */ inline void SetStatus(KnowledgeBaseStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } @@ -413,9 +413,9 @@ namespace Model *

    The status of the knowledge base. The following statuses are possible:

    *
    • CREATING – The knowledge base is being created.

    • *

      ACTIVE – The knowledge base is ready to be queried.

    • - *

      DELETING – The knowledge base is being deleted.

    • UPDATING - * ��� The knowledge base is being updated.

    • FAILED – The - * knowledge base API operation failed.

    + *

    DELETING – The knowledge base is being deleted.

  • UPDATING – + * The knowledge base is being updated.

  • FAILED – The knowledge + * base API operation failed.

  • */ inline KnowledgeBase& WithStatus(const KnowledgeBaseStatus& value) { SetStatus(value); return *this;} @@ -423,9 +423,9 @@ namespace Model *

    The status of the knowledge base. The following statuses are possible:

    *
    • CREATING – The knowledge base is being created.

    • *

      ACTIVE – The knowledge base is ready to be queried.

    • - *

      DELETING – The knowledge base is being deleted.

    • UPDATING - * ��� The knowledge base is being updated.

    • FAILED – The - * knowledge base API operation failed.

    + *

    DELETING – The knowledge base is being deleted.

  • UPDATING – + * The knowledge base is being updated.

  • FAILED – The knowledge + * base API operation failed.

  • */ inline KnowledgeBase& WithStatus(KnowledgeBaseStatus&& value) { SetStatus(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateDataSourceRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateDataSourceRequest.h index 7f23f5164b9..eccfc6ad212 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateDataSourceRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateDataSourceRequest.h @@ -37,32 +37,32 @@ namespace Model /** - *

    The data deletion policy assigned to the data source.

    + *

    The data deletion policy of the updated data source.

    */ inline const DataDeletionPolicy& GetDataDeletionPolicy() const{ return m_dataDeletionPolicy; } /** - *

    The data deletion policy assigned to the data source.

    + *

    The data deletion policy of the updated data source.

    */ inline bool DataDeletionPolicyHasBeenSet() const { return m_dataDeletionPolicyHasBeenSet; } /** - *

    The data deletion policy assigned to the data source.

    + *

    The data deletion policy of the updated data source.

    */ inline void SetDataDeletionPolicy(const DataDeletionPolicy& value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = value; } /** - *

    The data deletion policy assigned to the data source.

    + *

    The data deletion policy of the updated data source.

    */ inline void SetDataDeletionPolicy(DataDeletionPolicy&& value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = std::move(value); } /** - *

    The data deletion policy assigned to the data source.

    + *

    The data deletion policy of the updated data source.

    */ inline UpdateDataSourceRequest& WithDataDeletionPolicy(const DataDeletionPolicy& value) { SetDataDeletionPolicy(value); return *this;} /** - *

    The data deletion policy assigned to the data source.

    + *

    The data deletion policy of the updated data source.

    */ inline UpdateDataSourceRequest& WithDataDeletionPolicy(DataDeletionPolicy&& value) { SetDataDeletionPolicy(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentAlias.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentAlias.cpp index 23e73528b19..576539c0e3e 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentAlias.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentAlias.cpp @@ -29,6 +29,7 @@ AgentAlias::AgentAlias() : m_clientTokenHasBeenSet(false), m_createdAtHasBeenSet(false), m_descriptionHasBeenSet(false), + m_failureReasonsHasBeenSet(false), m_routingConfigurationHasBeenSet(false), m_updatedAtHasBeenSet(false) { @@ -45,6 +46,7 @@ AgentAlias::AgentAlias(JsonView jsonValue) : m_clientTokenHasBeenSet(false), m_createdAtHasBeenSet(false), m_descriptionHasBeenSet(false), + m_failureReasonsHasBeenSet(false), m_routingConfigurationHasBeenSet(false), m_updatedAtHasBeenSet(false) { @@ -119,6 +121,16 @@ AgentAlias& AgentAlias::operator =(JsonView jsonValue) m_descriptionHasBeenSet = true; } + if(jsonValue.ValueExists("failureReasons")) + { + Aws::Utils::Array failureReasonsJsonList = jsonValue.GetArray("failureReasons"); + for(unsigned failureReasonsIndex = 0; failureReasonsIndex < failureReasonsJsonList.GetLength(); ++failureReasonsIndex) + { + m_failureReasons.push_back(failureReasonsJsonList[failureReasonsIndex].AsString()); + } + m_failureReasonsHasBeenSet = true; + } + if(jsonValue.ValueExists("routingConfiguration")) { Aws::Utils::Array routingConfigurationJsonList = jsonValue.GetArray("routingConfiguration"); @@ -200,6 +212,17 @@ JsonValue AgentAlias::Jsonize() const } + if(m_failureReasonsHasBeenSet) + { + Aws::Utils::Array failureReasonsJsonList(m_failureReasons.size()); + for(unsigned failureReasonsIndex = 0; failureReasonsIndex < failureReasonsJsonList.GetLength(); ++failureReasonsIndex) + { + failureReasonsJsonList[failureReasonsIndex].AsString(m_failureReasons[failureReasonsIndex]); + } + payload.WithArray("failureReasons", std::move(failureReasonsJsonList)); + + } + if(m_routingConfigurationHasBeenSet) { Aws::Utils::Array routingConfigurationJsonList(m_routingConfiguration.size()); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentAliasRoutingConfigurationListItem.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentAliasRoutingConfigurationListItem.cpp index e21ce9d9630..c588e5bb025 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentAliasRoutingConfigurationListItem.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentAliasRoutingConfigurationListItem.cpp @@ -19,12 +19,14 @@ namespace Model { AgentAliasRoutingConfigurationListItem::AgentAliasRoutingConfigurationListItem() : - m_agentVersionHasBeenSet(false) + m_agentVersionHasBeenSet(false), + m_provisionedThroughputHasBeenSet(false) { } AgentAliasRoutingConfigurationListItem::AgentAliasRoutingConfigurationListItem(JsonView jsonValue) : - m_agentVersionHasBeenSet(false) + m_agentVersionHasBeenSet(false), + m_provisionedThroughputHasBeenSet(false) { *this = jsonValue; } @@ -38,6 +40,13 @@ AgentAliasRoutingConfigurationListItem& AgentAliasRoutingConfigurationListItem:: m_agentVersionHasBeenSet = true; } + if(jsonValue.ValueExists("provisionedThroughput")) + { + m_provisionedThroughput = jsonValue.GetString("provisionedThroughput"); + + m_provisionedThroughputHasBeenSet = true; + } + return *this; } @@ -51,6 +60,12 @@ JsonValue AgentAliasRoutingConfigurationListItem::Jsonize() const } + if(m_provisionedThroughputHasBeenSet) + { + payload.WithString("provisionedThroughput", m_provisionedThroughput); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/ConnectClient.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/ConnectClient.h index e265cd182a6..640c22dc4e8 100644 --- a/generated/src/aws-cpp-sdk-connect/include/aws/connect/ConnectClient.h +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/ConnectClient.h @@ -560,6 +560,33 @@ namespace Connect return SubmitAsync(&ConnectClient::BatchDisassociateAnalyticsDataSet, request, handler, context); } + /** + *

    Allows you to retrieve metadata about multiple attached files on an + * associated resource. Each attached file provided in the input list must be + * associated with the input AssociatedResourceArn.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::BatchGetAttachedFileMetadataOutcome BatchGetAttachedFileMetadata(const Model::BatchGetAttachedFileMetadataRequest& request) const; + + /** + * A Callable wrapper for BatchGetAttachedFileMetadata that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::BatchGetAttachedFileMetadataOutcomeCallable BatchGetAttachedFileMetadataCallable(const BatchGetAttachedFileMetadataRequestT& request) const + { + return SubmitCallable(&ConnectClient::BatchGetAttachedFileMetadata, request); + } + + /** + * An Async wrapper for BatchGetAttachedFileMetadata that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void BatchGetAttachedFileMetadataAsync(const BatchGetAttachedFileMetadataRequestT& request, const BatchGetAttachedFileMetadataResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectClient::BatchGetAttachedFileMetadata, request, handler, context); + } + /** *

    Retrieve the flow associations for the given resources.

    See * Also:

    Allows you to confirm that the attached file has been uploaded using the + * pre-signed URL provided in the StartAttachedFileUpload API.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::CompleteAttachedFileUploadOutcome CompleteAttachedFileUpload(const Model::CompleteAttachedFileUploadRequest& request) const; + + /** + * A Callable wrapper for CompleteAttachedFileUpload that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CompleteAttachedFileUploadOutcomeCallable CompleteAttachedFileUploadCallable(const CompleteAttachedFileUploadRequestT& request) const + { + return SubmitCallable(&ConnectClient::CompleteAttachedFileUpload, request); + } + + /** + * An Async wrapper for CompleteAttachedFileUpload that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CompleteAttachedFileUploadAsync(const CompleteAttachedFileUploadRequestT& request, const CompleteAttachedFileUploadResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectClient::CompleteAttachedFileUpload, request, handler, context); + } + /** *

    This API is in preview release for Amazon Connect and is subject to * change.

    Creates an agent status for the specified Amazon Connect @@ -1396,6 +1450,33 @@ namespace Connect return SubmitAsync(&ConnectClient::DeactivateEvaluationForm, request, handler, context); } + /** + *

    Deletes an attached file along with the underlying S3 Object.

    + *

    The attached file is permanently deleted if S3 bucket versioning is + * not enabled.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteAttachedFileOutcome DeleteAttachedFile(const Model::DeleteAttachedFileRequest& request) const; + + /** + * A Callable wrapper for DeleteAttachedFile that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteAttachedFileOutcomeCallable DeleteAttachedFileCallable(const DeleteAttachedFileRequestT& request) const + { + return SubmitCallable(&ConnectClient::DeleteAttachedFile, request); + } + + /** + * An Async wrapper for DeleteAttachedFile that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteAttachedFileAsync(const DeleteAttachedFileRequestT& request, const DeleteAttachedFileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectClient::DeleteAttachedFile, request, handler, context); + } + /** *

    Deletes a contact evaluation in the specified Amazon Connect * instance.

    See Also:

    Provides a pre-signed URL for download of an approved attached file. This API + * also returns metadata about the attached file. It will only return a downloadURL + * if the status of the attached file is APPROVED.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::GetAttachedFileOutcome GetAttachedFile(const Model::GetAttachedFileRequest& request) const; + + /** + * A Callable wrapper for GetAttachedFile that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetAttachedFileOutcomeCallable GetAttachedFileCallable(const GetAttachedFileRequestT& request) const + { + return SubmitCallable(&ConnectClient::GetAttachedFile, request); + } + + /** + * An Async wrapper for GetAttachedFile that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetAttachedFileAsync(const GetAttachedFileRequestT& request, const GetAttachedFileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectClient::GetAttachedFile, request, handler, context); + } + /** *

    Retrieves the contact attributes for the specified contact.

    See * Also:

    Provides a pre-signed Amazon S3 URL in response for uploading your + * content.

    You may only use this API to upload attachments to a + * Connect + * Case.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::StartAttachedFileUploadOutcome StartAttachedFileUpload(const Model::StartAttachedFileUploadRequest& request) const; + + /** + * A Callable wrapper for StartAttachedFileUpload that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StartAttachedFileUploadOutcomeCallable StartAttachedFileUploadCallable(const StartAttachedFileUploadRequestT& request) const + { + return SubmitCallable(&ConnectClient::StartAttachedFileUpload, request); + } + + /** + * An Async wrapper for StartAttachedFileUpload that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StartAttachedFileUploadAsync(const StartAttachedFileUploadRequestT& request, const StartAttachedFileUploadResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectClient::StartAttachedFileUpload, request, handler, context); + } + /** *

    Initiates a flow to start a new chat for the customer. Response of this API * provides a token required to obtain credentials from the #include #include +#include #include #include #include +#include #include #include #include @@ -54,6 +56,7 @@ #include #include #include +#include #include #include #include @@ -88,6 +91,7 @@ #include #include #include +#include #include #include #include @@ -162,6 +166,7 @@ #include #include #include +#include #include #include #include @@ -253,9 +258,11 @@ namespace Aws class AssociateUserProficienciesRequest; class BatchAssociateAnalyticsDataSetRequest; class BatchDisassociateAnalyticsDataSetRequest; + class BatchGetAttachedFileMetadataRequest; class BatchGetFlowAssociationRequest; class BatchPutContactRequest; class ClaimPhoneNumberRequest; + class CompleteAttachedFileUploadRequest; class CreateAgentStatusRequest; class CreateContactFlowRequest; class CreateContactFlowModuleRequest; @@ -281,6 +288,7 @@ namespace Aws class CreateViewVersionRequest; class CreateVocabularyRequest; class DeactivateEvaluationFormRequest; + class DeleteAttachedFileRequest; class DeleteContactEvaluationRequest; class DeleteContactFlowRequest; class DeleteContactFlowModuleRequest; @@ -341,6 +349,7 @@ namespace Aws class DisassociateTrafficDistributionGroupUserRequest; class DisassociateUserProficienciesRequest; class DismissUserContactRequest; + class GetAttachedFileRequest; class GetContactAttributesRequest; class GetCurrentMetricDataRequest; class GetCurrentUserDataRequest; @@ -416,6 +425,7 @@ namespace Aws class SearchUsersRequest; class SearchVocabulariesRequest; class SendChatIntegrationEventRequest; + class StartAttachedFileUploadRequest; class StartChatContactRequest; class StartContactEvaluationRequest; class StartContactRecordingRequest; @@ -499,9 +509,11 @@ namespace Aws typedef Aws::Utils::Outcome AssociateUserProficienciesOutcome; typedef Aws::Utils::Outcome BatchAssociateAnalyticsDataSetOutcome; typedef Aws::Utils::Outcome BatchDisassociateAnalyticsDataSetOutcome; + typedef Aws::Utils::Outcome BatchGetAttachedFileMetadataOutcome; typedef Aws::Utils::Outcome BatchGetFlowAssociationOutcome; typedef Aws::Utils::Outcome BatchPutContactOutcome; typedef Aws::Utils::Outcome ClaimPhoneNumberOutcome; + typedef Aws::Utils::Outcome CompleteAttachedFileUploadOutcome; typedef Aws::Utils::Outcome CreateAgentStatusOutcome; typedef Aws::Utils::Outcome CreateContactFlowOutcome; typedef Aws::Utils::Outcome CreateContactFlowModuleOutcome; @@ -527,6 +539,7 @@ namespace Aws typedef Aws::Utils::Outcome CreateViewVersionOutcome; typedef Aws::Utils::Outcome CreateVocabularyOutcome; typedef Aws::Utils::Outcome DeactivateEvaluationFormOutcome; + typedef Aws::Utils::Outcome DeleteAttachedFileOutcome; typedef Aws::Utils::Outcome DeleteContactEvaluationOutcome; typedef Aws::Utils::Outcome DeleteContactFlowOutcome; typedef Aws::Utils::Outcome DeleteContactFlowModuleOutcome; @@ -587,6 +600,7 @@ namespace Aws typedef Aws::Utils::Outcome DisassociateTrafficDistributionGroupUserOutcome; typedef Aws::Utils::Outcome DisassociateUserProficienciesOutcome; typedef Aws::Utils::Outcome DismissUserContactOutcome; + typedef Aws::Utils::Outcome GetAttachedFileOutcome; typedef Aws::Utils::Outcome GetContactAttributesOutcome; typedef Aws::Utils::Outcome GetCurrentMetricDataOutcome; typedef Aws::Utils::Outcome GetCurrentUserDataOutcome; @@ -662,6 +676,7 @@ namespace Aws typedef Aws::Utils::Outcome SearchUsersOutcome; typedef Aws::Utils::Outcome SearchVocabulariesOutcome; typedef Aws::Utils::Outcome SendChatIntegrationEventOutcome; + typedef Aws::Utils::Outcome StartAttachedFileUploadOutcome; typedef Aws::Utils::Outcome StartChatContactOutcome; typedef Aws::Utils::Outcome StartContactEvaluationOutcome; typedef Aws::Utils::Outcome StartContactRecordingOutcome; @@ -745,9 +760,11 @@ namespace Aws typedef std::future AssociateUserProficienciesOutcomeCallable; typedef std::future BatchAssociateAnalyticsDataSetOutcomeCallable; typedef std::future BatchDisassociateAnalyticsDataSetOutcomeCallable; + typedef std::future BatchGetAttachedFileMetadataOutcomeCallable; typedef std::future BatchGetFlowAssociationOutcomeCallable; typedef std::future BatchPutContactOutcomeCallable; typedef std::future ClaimPhoneNumberOutcomeCallable; + typedef std::future CompleteAttachedFileUploadOutcomeCallable; typedef std::future CreateAgentStatusOutcomeCallable; typedef std::future CreateContactFlowOutcomeCallable; typedef std::future CreateContactFlowModuleOutcomeCallable; @@ -773,6 +790,7 @@ namespace Aws typedef std::future CreateViewVersionOutcomeCallable; typedef std::future CreateVocabularyOutcomeCallable; typedef std::future DeactivateEvaluationFormOutcomeCallable; + typedef std::future DeleteAttachedFileOutcomeCallable; typedef std::future DeleteContactEvaluationOutcomeCallable; typedef std::future DeleteContactFlowOutcomeCallable; typedef std::future DeleteContactFlowModuleOutcomeCallable; @@ -833,6 +851,7 @@ namespace Aws typedef std::future DisassociateTrafficDistributionGroupUserOutcomeCallable; typedef std::future DisassociateUserProficienciesOutcomeCallable; typedef std::future DismissUserContactOutcomeCallable; + typedef std::future GetAttachedFileOutcomeCallable; typedef std::future GetContactAttributesOutcomeCallable; typedef std::future GetCurrentMetricDataOutcomeCallable; typedef std::future GetCurrentUserDataOutcomeCallable; @@ -908,6 +927,7 @@ namespace Aws typedef std::future SearchUsersOutcomeCallable; typedef std::future SearchVocabulariesOutcomeCallable; typedef std::future SendChatIntegrationEventOutcomeCallable; + typedef std::future StartAttachedFileUploadOutcomeCallable; typedef std::future StartChatContactOutcomeCallable; typedef std::future StartContactEvaluationOutcomeCallable; typedef std::future StartContactRecordingOutcomeCallable; @@ -994,9 +1014,11 @@ namespace Aws typedef std::function&) > AssociateUserProficienciesResponseReceivedHandler; typedef std::function&) > BatchAssociateAnalyticsDataSetResponseReceivedHandler; typedef std::function&) > BatchDisassociateAnalyticsDataSetResponseReceivedHandler; + typedef std::function&) > BatchGetAttachedFileMetadataResponseReceivedHandler; typedef std::function&) > BatchGetFlowAssociationResponseReceivedHandler; typedef std::function&) > BatchPutContactResponseReceivedHandler; typedef std::function&) > ClaimPhoneNumberResponseReceivedHandler; + typedef std::function&) > CompleteAttachedFileUploadResponseReceivedHandler; typedef std::function&) > CreateAgentStatusResponseReceivedHandler; typedef std::function&) > CreateContactFlowResponseReceivedHandler; typedef std::function&) > CreateContactFlowModuleResponseReceivedHandler; @@ -1022,6 +1044,7 @@ namespace Aws typedef std::function&) > CreateViewVersionResponseReceivedHandler; typedef std::function&) > CreateVocabularyResponseReceivedHandler; typedef std::function&) > DeactivateEvaluationFormResponseReceivedHandler; + typedef std::function&) > DeleteAttachedFileResponseReceivedHandler; typedef std::function&) > DeleteContactEvaluationResponseReceivedHandler; typedef std::function&) > DeleteContactFlowResponseReceivedHandler; typedef std::function&) > DeleteContactFlowModuleResponseReceivedHandler; @@ -1082,6 +1105,7 @@ namespace Aws typedef std::function&) > DisassociateTrafficDistributionGroupUserResponseReceivedHandler; typedef std::function&) > DisassociateUserProficienciesResponseReceivedHandler; typedef std::function&) > DismissUserContactResponseReceivedHandler; + typedef std::function&) > GetAttachedFileResponseReceivedHandler; typedef std::function&) > GetContactAttributesResponseReceivedHandler; typedef std::function&) > GetCurrentMetricDataResponseReceivedHandler; typedef std::function&) > GetCurrentUserDataResponseReceivedHandler; @@ -1157,6 +1181,7 @@ namespace Aws typedef std::function&) > SearchUsersResponseReceivedHandler; typedef std::function&) > SearchVocabulariesResponseReceivedHandler; typedef std::function&) > SendChatIntegrationEventResponseReceivedHandler; + typedef std::function&) > StartAttachedFileUploadResponseReceivedHandler; typedef std::function&) > StartChatContactResponseReceivedHandler; typedef std::function&) > StartContactEvaluationResponseReceivedHandler; typedef std::function&) > StartContactRecordingResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/AttachedFile.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/AttachedFile.h new file mode 100644 index 00000000000..e581b608852 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/AttachedFile.h @@ -0,0 +1,516 @@ +/** + * 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 Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Connect +{ +namespace Model +{ + + /** + *

    Information about the attached file.

    See Also:

    AWS + * API Reference

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

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline const Aws::String& GetCreationTime() const{ return m_creationTime; } + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); } + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline AttachedFile& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline AttachedFile& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline AttachedFile& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} + + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline const Aws::String& GetFileArn() const{ return m_fileArn; } + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline bool FileArnHasBeenSet() const { return m_fileArnHasBeenSet; } + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline void SetFileArn(const Aws::String& value) { m_fileArnHasBeenSet = true; m_fileArn = value; } + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline void SetFileArn(Aws::String&& value) { m_fileArnHasBeenSet = true; m_fileArn = std::move(value); } + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline void SetFileArn(const char* value) { m_fileArnHasBeenSet = true; m_fileArn.assign(value); } + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline AttachedFile& WithFileArn(const Aws::String& value) { SetFileArn(value); return *this;} + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline AttachedFile& WithFileArn(Aws::String&& value) { SetFileArn(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline AttachedFile& WithFileArn(const char* value) { SetFileArn(value); return *this;} + + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline const Aws::String& GetFileId() const{ return m_fileId; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const Aws::String& value) { m_fileIdHasBeenSet = true; m_fileId = value; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(Aws::String&& value) { m_fileIdHasBeenSet = true; m_fileId = std::move(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const char* value) { m_fileIdHasBeenSet = true; m_fileId.assign(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline AttachedFile& WithFileId(const Aws::String& value) { SetFileId(value); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline AttachedFile& WithFileId(Aws::String&& value) { SetFileId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline AttachedFile& WithFileId(const char* value) { SetFileId(value); return *this;} + + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline const Aws::String& GetFileName() const{ return m_fileName; } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = std::move(value); } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline AttachedFile& WithFileName(const Aws::String& value) { SetFileName(value); return *this;} + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline AttachedFile& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;} + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline AttachedFile& WithFileName(const char* value) { SetFileName(value); return *this;} + + + /** + *

    The size of the attached file in bytes.

    + */ + inline long long GetFileSizeInBytes() const{ return m_fileSizeInBytes; } + + /** + *

    The size of the attached file in bytes.

    + */ + inline bool FileSizeInBytesHasBeenSet() const { return m_fileSizeInBytesHasBeenSet; } + + /** + *

    The size of the attached file in bytes.

    + */ + inline void SetFileSizeInBytes(long long value) { m_fileSizeInBytesHasBeenSet = true; m_fileSizeInBytes = value; } + + /** + *

    The size of the attached file in bytes.

    + */ + inline AttachedFile& WithFileSizeInBytes(long long value) { SetFileSizeInBytes(value); return *this;} + + + /** + *

    The current status of the attached file.

    + */ + inline const FileStatusType& GetFileStatus() const{ return m_fileStatus; } + + /** + *

    The current status of the attached file.

    + */ + inline bool FileStatusHasBeenSet() const { return m_fileStatusHasBeenSet; } + + /** + *

    The current status of the attached file.

    + */ + inline void SetFileStatus(const FileStatusType& value) { m_fileStatusHasBeenSet = true; m_fileStatus = value; } + + /** + *

    The current status of the attached file.

    + */ + inline void SetFileStatus(FileStatusType&& value) { m_fileStatusHasBeenSet = true; m_fileStatus = std::move(value); } + + /** + *

    The current status of the attached file.

    + */ + inline AttachedFile& WithFileStatus(const FileStatusType& value) { SetFileStatus(value); return *this;} + + /** + *

    The current status of the attached file.

    + */ + inline AttachedFile& WithFileStatus(FileStatusType&& value) { SetFileStatus(std::move(value)); return *this;} + + + /** + *

    Represents the identity that created the file.

    + */ + inline const CreatedByInfo& GetCreatedBy() const{ return m_createdBy; } + + /** + *

    Represents the identity that created the file.

    + */ + inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } + + /** + *

    Represents the identity that created the file.

    + */ + inline void SetCreatedBy(const CreatedByInfo& value) { m_createdByHasBeenSet = true; m_createdBy = value; } + + /** + *

    Represents the identity that created the file.

    + */ + inline void SetCreatedBy(CreatedByInfo&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } + + /** + *

    Represents the identity that created the file.

    + */ + inline AttachedFile& WithCreatedBy(const CreatedByInfo& value) { SetCreatedBy(value); return *this;} + + /** + *

    Represents the identity that created the file.

    + */ + inline AttachedFile& WithCreatedBy(CreatedByInfo&& value) { SetCreatedBy(std::move(value)); return *this;} + + + /** + *

    The use case for the file.

    + */ + inline const FileUseCaseType& GetFileUseCaseType() const{ return m_fileUseCaseType; } + + /** + *

    The use case for the file.

    + */ + inline bool FileUseCaseTypeHasBeenSet() const { return m_fileUseCaseTypeHasBeenSet; } + + /** + *

    The use case for the file.

    + */ + inline void SetFileUseCaseType(const FileUseCaseType& value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = value; } + + /** + *

    The use case for the file.

    + */ + inline void SetFileUseCaseType(FileUseCaseType&& value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = std::move(value); } + + /** + *

    The use case for the file.

    + */ + inline AttachedFile& WithFileUseCaseType(const FileUseCaseType& value) { SetFileUseCaseType(value); return *this;} + + /** + *

    The use case for the file.

    + */ + inline AttachedFile& WithFileUseCaseType(FileUseCaseType&& value) { SetFileUseCaseType(std::move(value)); return *this;} + + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const Aws::String& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = value; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(Aws::String&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::move(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn.assign(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline AttachedFile& WithAssociatedResourceArn(const Aws::String& value) { SetAssociatedResourceArn(value); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline AttachedFile& WithAssociatedResourceArn(Aws::String&& value) { SetAssociatedResourceArn(std::move(value)); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline AttachedFile& WithAssociatedResourceArn(const char* value) { SetAssociatedResourceArn(value); return *this;} + + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline AttachedFile& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline AttachedFile& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline AttachedFile& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline AttachedFile& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline AttachedFile& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline AttachedFile& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline AttachedFile& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_creationTime; + bool m_creationTimeHasBeenSet = false; + + Aws::String m_fileArn; + bool m_fileArnHasBeenSet = false; + + Aws::String m_fileId; + bool m_fileIdHasBeenSet = false; + + Aws::String m_fileName; + bool m_fileNameHasBeenSet = false; + + long long m_fileSizeInBytes; + bool m_fileSizeInBytesHasBeenSet = false; + + FileStatusType m_fileStatus; + bool m_fileStatusHasBeenSet = false; + + CreatedByInfo m_createdBy; + bool m_createdByHasBeenSet = false; + + FileUseCaseType m_fileUseCaseType; + bool m_fileUseCaseTypeHasBeenSet = false; + + Aws::String m_associatedResourceArn; + bool m_associatedResourceArnHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/AttachedFileError.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/AttachedFileError.h new file mode 100644 index 00000000000..bde2f40faed --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/AttachedFileError.h @@ -0,0 +1,177 @@ +/** + * 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 Connect +{ +namespace Model +{ + + /** + *

    Error describing a failure to retrieve attached file metadata through + * BatchGetAttachedFileMetadata action.

    See Also:

    AWS + * API Reference

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

    Status code describing the failure.

    + */ + inline const Aws::String& GetErrorCode() const{ return m_errorCode; } + + /** + *

    Status code describing the failure.

    + */ + inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } + + /** + *

    Status code describing the failure.

    + */ + inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } + + /** + *

    Status code describing the failure.

    + */ + inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } + + /** + *

    Status code describing the failure.

    + */ + inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } + + /** + *

    Status code describing the failure.

    + */ + inline AttachedFileError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} + + /** + *

    Status code describing the failure.

    + */ + inline AttachedFileError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} + + /** + *

    Status code describing the failure.

    + */ + inline AttachedFileError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} + + + /** + *

    Why the attached file couldn't be retrieved.

    + */ + inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } + + /** + *

    Why the attached file couldn't be retrieved.

    + */ + inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } + + /** + *

    Why the attached file couldn't be retrieved.

    + */ + inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } + + /** + *

    Why the attached file couldn't be retrieved.

    + */ + inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } + + /** + *

    Why the attached file couldn't be retrieved.

    + */ + inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } + + /** + *

    Why the attached file couldn't be retrieved.

    + */ + inline AttachedFileError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} + + /** + *

    Why the attached file couldn't be retrieved.

    + */ + inline AttachedFileError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} + + /** + *

    Why the attached file couldn't be retrieved.

    + */ + inline AttachedFileError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} + + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline const Aws::String& GetFileId() const{ return m_fileId; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const Aws::String& value) { m_fileIdHasBeenSet = true; m_fileId = value; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(Aws::String&& value) { m_fileIdHasBeenSet = true; m_fileId = std::move(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const char* value) { m_fileIdHasBeenSet = true; m_fileId.assign(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline AttachedFileError& WithFileId(const Aws::String& value) { SetFileId(value); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline AttachedFileError& WithFileId(Aws::String&& value) { SetFileId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline AttachedFileError& WithFileId(const char* value) { SetFileId(value); return *this;} + + private: + + Aws::String m_errorCode; + bool m_errorCodeHasBeenSet = false; + + Aws::String m_errorMessage; + bool m_errorMessageHasBeenSet = false; + + Aws::String m_fileId; + bool m_fileIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/AttachedFileInvalidRequestExceptionReason.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/AttachedFileInvalidRequestExceptionReason.h new file mode 100644 index 00000000000..5dba8754526 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/AttachedFileInvalidRequestExceptionReason.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Connect +{ +namespace Model +{ + enum class AttachedFileInvalidRequestExceptionReason + { + NOT_SET, + INVALID_FILE_SIZE, + INVALID_FILE_TYPE, + INVALID_FILE_NAME + }; + +namespace AttachedFileInvalidRequestExceptionReasonMapper +{ +AWS_CONNECT_API AttachedFileInvalidRequestExceptionReason GetAttachedFileInvalidRequestExceptionReasonForName(const Aws::String& name); + +AWS_CONNECT_API Aws::String GetNameForAttachedFileInvalidRequestExceptionReason(AttachedFileInvalidRequestExceptionReason value); +} // namespace AttachedFileInvalidRequestExceptionReasonMapper +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/BatchGetAttachedFileMetadataRequest.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/BatchGetAttachedFileMetadataRequest.h new file mode 100644 index 00000000000..05efb3ab547 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/BatchGetAttachedFileMetadataRequest.h @@ -0,0 +1,207 @@ +/** + * 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 Http +{ + class URI; +} //namespace Http +namespace Connect +{ +namespace Model +{ + + /** + */ + class BatchGetAttachedFileMetadataRequest : public ConnectRequest + { + public: + AWS_CONNECT_API BatchGetAttachedFileMetadataRequest(); + + // 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 "BatchGetAttachedFileMetadata"; } + + AWS_CONNECT_API Aws::String SerializePayload() const override; + + AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

    The unique identifiers of the attached file resource.

    + */ + inline const Aws::Vector& GetFileIds() const{ return m_fileIds; } + + /** + *

    The unique identifiers of the attached file resource.

    + */ + inline bool FileIdsHasBeenSet() const { return m_fileIdsHasBeenSet; } + + /** + *

    The unique identifiers of the attached file resource.

    + */ + inline void SetFileIds(const Aws::Vector& value) { m_fileIdsHasBeenSet = true; m_fileIds = value; } + + /** + *

    The unique identifiers of the attached file resource.

    + */ + inline void SetFileIds(Aws::Vector&& value) { m_fileIdsHasBeenSet = true; m_fileIds = std::move(value); } + + /** + *

    The unique identifiers of the attached file resource.

    + */ + inline BatchGetAttachedFileMetadataRequest& WithFileIds(const Aws::Vector& value) { SetFileIds(value); return *this;} + + /** + *

    The unique identifiers of the attached file resource.

    + */ + inline BatchGetAttachedFileMetadataRequest& WithFileIds(Aws::Vector&& value) { SetFileIds(std::move(value)); return *this;} + + /** + *

    The unique identifiers of the attached file resource.

    + */ + inline BatchGetAttachedFileMetadataRequest& AddFileIds(const Aws::String& value) { m_fileIdsHasBeenSet = true; m_fileIds.push_back(value); return *this; } + + /** + *

    The unique identifiers of the attached file resource.

    + */ + inline BatchGetAttachedFileMetadataRequest& AddFileIds(Aws::String&& value) { m_fileIdsHasBeenSet = true; m_fileIds.push_back(std::move(value)); return *this; } + + /** + *

    The unique identifiers of the attached file resource.

    + */ + inline BatchGetAttachedFileMetadataRequest& AddFileIds(const char* value) { m_fileIdsHasBeenSet = true; m_fileIds.push_back(value); return *this; } + + + /** + *

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const Aws::String& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = value; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(Aws::String&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::move(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn.assign(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline BatchGetAttachedFileMetadataRequest& WithAssociatedResourceArn(const Aws::String& value) { SetAssociatedResourceArn(value); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline BatchGetAttachedFileMetadataRequest& WithAssociatedResourceArn(Aws::String&& value) { SetAssociatedResourceArn(std::move(value)); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline BatchGetAttachedFileMetadataRequest& WithAssociatedResourceArn(const char* value) { SetAssociatedResourceArn(value); return *this;} + + private: + + Aws::Vector m_fileIds; + bool m_fileIdsHasBeenSet = false; + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::String m_associatedResourceArn; + bool m_associatedResourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/BatchGetAttachedFileMetadataResult.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/BatchGetAttachedFileMetadataResult.h new file mode 100644 index 00000000000..3227cd5ddea --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/BatchGetAttachedFileMetadataResult.h @@ -0,0 +1,142 @@ +/** + * 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 Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Connect +{ +namespace Model +{ + class BatchGetAttachedFileMetadataResult + { + public: + AWS_CONNECT_API BatchGetAttachedFileMetadataResult(); + AWS_CONNECT_API BatchGetAttachedFileMetadataResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECT_API BatchGetAttachedFileMetadataResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    List of attached files that were successfully retrieved.

    + */ + inline const Aws::Vector& GetFiles() const{ return m_files; } + + /** + *

    List of attached files that were successfully retrieved.

    + */ + inline void SetFiles(const Aws::Vector& value) { m_files = value; } + + /** + *

    List of attached files that were successfully retrieved.

    + */ + inline void SetFiles(Aws::Vector&& value) { m_files = std::move(value); } + + /** + *

    List of attached files that were successfully retrieved.

    + */ + inline BatchGetAttachedFileMetadataResult& WithFiles(const Aws::Vector& value) { SetFiles(value); return *this;} + + /** + *

    List of attached files that were successfully retrieved.

    + */ + inline BatchGetAttachedFileMetadataResult& WithFiles(Aws::Vector&& value) { SetFiles(std::move(value)); return *this;} + + /** + *

    List of attached files that were successfully retrieved.

    + */ + inline BatchGetAttachedFileMetadataResult& AddFiles(const AttachedFile& value) { m_files.push_back(value); return *this; } + + /** + *

    List of attached files that were successfully retrieved.

    + */ + inline BatchGetAttachedFileMetadataResult& AddFiles(AttachedFile&& value) { m_files.push_back(std::move(value)); return *this; } + + + /** + *

    List of errors of attached files that could not be retrieved.

    + */ + inline const Aws::Vector& GetErrors() const{ return m_errors; } + + /** + *

    List of errors of attached files that could not be retrieved.

    + */ + inline void SetErrors(const Aws::Vector& value) { m_errors = value; } + + /** + *

    List of errors of attached files that could not be retrieved.

    + */ + inline void SetErrors(Aws::Vector&& value) { m_errors = std::move(value); } + + /** + *

    List of errors of attached files that could not be retrieved.

    + */ + inline BatchGetAttachedFileMetadataResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} + + /** + *

    List of errors of attached files that could not be retrieved.

    + */ + inline BatchGetAttachedFileMetadataResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} + + /** + *

    List of errors of attached files that could not be retrieved.

    + */ + inline BatchGetAttachedFileMetadataResult& AddErrors(const AttachedFileError& value) { m_errors.push_back(value); return *this; } + + /** + *

    List of errors of attached files that could not be retrieved.

    + */ + inline BatchGetAttachedFileMetadataResult& AddErrors(AttachedFileError&& value) { m_errors.push_back(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 BatchGetAttachedFileMetadataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline BatchGetAttachedFileMetadataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline BatchGetAttachedFileMetadataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_files; + + Aws::Vector m_errors; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/CompleteAttachedFileUploadRequest.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/CompleteAttachedFileUploadRequest.h new file mode 100644 index 00000000000..8223a5c1016 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/CompleteAttachedFileUploadRequest.h @@ -0,0 +1,204 @@ +/** + * 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 Http +{ + class URI; +} //namespace Http +namespace Connect +{ +namespace Model +{ + + /** + * Request to CompleteAttachedFileUpload API

    See Also:

    AWS + * API Reference

    + */ + class CompleteAttachedFileUploadRequest : public ConnectRequest + { + public: + AWS_CONNECT_API CompleteAttachedFileUploadRequest(); + + // 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 "CompleteAttachedFileUpload"; } + + AWS_CONNECT_API Aws::String SerializePayload() const override; + + AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the attached file resource.

    + */ + inline const Aws::String& GetFileId() const{ return m_fileId; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const Aws::String& value) { m_fileIdHasBeenSet = true; m_fileId = value; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(Aws::String&& value) { m_fileIdHasBeenSet = true; m_fileId = std::move(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const char* value) { m_fileIdHasBeenSet = true; m_fileId.assign(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline CompleteAttachedFileUploadRequest& WithFileId(const Aws::String& value) { SetFileId(value); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline CompleteAttachedFileUploadRequest& WithFileId(Aws::String&& value) { SetFileId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline CompleteAttachedFileUploadRequest& WithFileId(const char* value) { SetFileId(value); return *this;} + + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const Aws::String& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = value; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(Aws::String&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::move(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn.assign(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline CompleteAttachedFileUploadRequest& WithAssociatedResourceArn(const Aws::String& value) { SetAssociatedResourceArn(value); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline CompleteAttachedFileUploadRequest& WithAssociatedResourceArn(Aws::String&& value) { SetAssociatedResourceArn(std::move(value)); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline CompleteAttachedFileUploadRequest& WithAssociatedResourceArn(const char* value) { SetAssociatedResourceArn(value); return *this;} + + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::String m_fileId; + bool m_fileIdHasBeenSet = false; + + Aws::String m_associatedResourceArn; + bool m_associatedResourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/CompleteAttachedFileUploadResult.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/CompleteAttachedFileUploadResult.h new file mode 100644 index 00000000000..c94d170332c --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/CompleteAttachedFileUploadResult.h @@ -0,0 +1,68 @@ +/** + * 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 Connect +{ +namespace Model +{ + /** + * Response from CompleteAttachedFileUpload API

    See Also:

    AWS + * API Reference

    + */ + class CompleteAttachedFileUploadResult + { + public: + AWS_CONNECT_API CompleteAttachedFileUploadResult(); + AWS_CONNECT_API CompleteAttachedFileUploadResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECT_API CompleteAttachedFileUploadResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + 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 CompleteAttachedFileUploadResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CompleteAttachedFileUploadResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CompleteAttachedFileUploadResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/CreatedByInfo.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/CreatedByInfo.h new file mode 100644 index 00000000000..c221cd4791c --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/CreatedByInfo.h @@ -0,0 +1,165 @@ +/** + * 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 Connect +{ +namespace Model +{ + + /** + *

    Information on the identity that created the file.

    See Also:

    + * AWS + * API Reference

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

    An agent ARN representing a connect + * user.

    + */ + inline const Aws::String& GetConnectUserArn() const{ return m_connectUserArn; } + + /** + *

    An agent ARN representing a connect + * user.

    + */ + inline bool ConnectUserArnHasBeenSet() const { return m_connectUserArnHasBeenSet; } + + /** + *

    An agent ARN representing a connect + * user.

    + */ + inline void SetConnectUserArn(const Aws::String& value) { m_connectUserArnHasBeenSet = true; m_connectUserArn = value; } + + /** + *

    An agent ARN representing a connect + * user.

    + */ + inline void SetConnectUserArn(Aws::String&& value) { m_connectUserArnHasBeenSet = true; m_connectUserArn = std::move(value); } + + /** + *

    An agent ARN representing a connect + * user.

    + */ + inline void SetConnectUserArn(const char* value) { m_connectUserArnHasBeenSet = true; m_connectUserArn.assign(value); } + + /** + *

    An agent ARN representing a connect + * user.

    + */ + inline CreatedByInfo& WithConnectUserArn(const Aws::String& value) { SetConnectUserArn(value); return *this;} + + /** + *

    An agent ARN representing a connect + * user.

    + */ + inline CreatedByInfo& WithConnectUserArn(Aws::String&& value) { SetConnectUserArn(std::move(value)); return *this;} + + /** + *

    An agent ARN representing a connect + * user.

    + */ + inline CreatedByInfo& WithConnectUserArn(const char* value) { SetConnectUserArn(value); return *this;} + + + /** + *

    STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided.

    + */ + inline const Aws::String& GetAWSIdentityArn() const{ return m_aWSIdentityArn; } + + /** + *

    STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided.

    + */ + inline bool AWSIdentityArnHasBeenSet() const { return m_aWSIdentityArnHasBeenSet; } + + /** + *

    STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided.

    + */ + inline void SetAWSIdentityArn(const Aws::String& value) { m_aWSIdentityArnHasBeenSet = true; m_aWSIdentityArn = value; } + + /** + *

    STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided.

    + */ + inline void SetAWSIdentityArn(Aws::String&& value) { m_aWSIdentityArnHasBeenSet = true; m_aWSIdentityArn = std::move(value); } + + /** + *

    STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided.

    + */ + inline void SetAWSIdentityArn(const char* value) { m_aWSIdentityArnHasBeenSet = true; m_aWSIdentityArn.assign(value); } + + /** + *

    STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided.

    + */ + inline CreatedByInfo& WithAWSIdentityArn(const Aws::String& value) { SetAWSIdentityArn(value); return *this;} + + /** + *

    STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided.

    + */ + inline CreatedByInfo& WithAWSIdentityArn(Aws::String&& value) { SetAWSIdentityArn(std::move(value)); return *this;} + + /** + *

    STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided.

    + */ + inline CreatedByInfo& WithAWSIdentityArn(const char* value) { SetAWSIdentityArn(value); return *this;} + + private: + + Aws::String m_connectUserArn; + bool m_connectUserArnHasBeenSet = false; + + Aws::String m_aWSIdentityArn; + bool m_aWSIdentityArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/DeleteAttachedFileRequest.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/DeleteAttachedFileRequest.h new file mode 100644 index 00000000000..b82a490be41 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/DeleteAttachedFileRequest.h @@ -0,0 +1,204 @@ +/** + * 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 Http +{ + class URI; +} //namespace Http +namespace Connect +{ +namespace Model +{ + + /** + * Request to DeleteAttachedFile API

    See Also:

    AWS + * API Reference

    + */ + class DeleteAttachedFileRequest : public ConnectRequest + { + public: + AWS_CONNECT_API DeleteAttachedFileRequest(); + + // 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 "DeleteAttachedFile"; } + + AWS_CONNECT_API Aws::String SerializePayload() const override; + + AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the attached file resource.

    + */ + inline const Aws::String& GetFileId() const{ return m_fileId; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const Aws::String& value) { m_fileIdHasBeenSet = true; m_fileId = value; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(Aws::String&& value) { m_fileIdHasBeenSet = true; m_fileId = std::move(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const char* value) { m_fileIdHasBeenSet = true; m_fileId.assign(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline DeleteAttachedFileRequest& WithFileId(const Aws::String& value) { SetFileId(value); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline DeleteAttachedFileRequest& WithFileId(Aws::String&& value) { SetFileId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline DeleteAttachedFileRequest& WithFileId(const char* value) { SetFileId(value); return *this;} + + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const Aws::String& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = value; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(Aws::String&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::move(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn.assign(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline DeleteAttachedFileRequest& WithAssociatedResourceArn(const Aws::String& value) { SetAssociatedResourceArn(value); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline DeleteAttachedFileRequest& WithAssociatedResourceArn(Aws::String&& value) { SetAssociatedResourceArn(std::move(value)); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline DeleteAttachedFileRequest& WithAssociatedResourceArn(const char* value) { SetAssociatedResourceArn(value); return *this;} + + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::String m_fileId; + bool m_fileIdHasBeenSet = false; + + Aws::String m_associatedResourceArn; + bool m_associatedResourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/DeleteAttachedFileResult.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/DeleteAttachedFileResult.h new file mode 100644 index 00000000000..5f0bdeef73d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/DeleteAttachedFileResult.h @@ -0,0 +1,68 @@ +/** + * 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 Connect +{ +namespace Model +{ + /** + * Response from DeleteAttachedFile API

    See Also:

    AWS + * API Reference

    + */ + class DeleteAttachedFileResult + { + public: + AWS_CONNECT_API DeleteAttachedFileResult(); + AWS_CONNECT_API DeleteAttachedFileResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECT_API DeleteAttachedFileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + 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 DeleteAttachedFileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteAttachedFileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteAttachedFileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/DownloadUrlMetadata.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/DownloadUrlMetadata.h new file mode 100644 index 00000000000..e0bc52a59f1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/DownloadUrlMetadata.h @@ -0,0 +1,140 @@ +/** + * 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 Connect +{ +namespace Model +{ + + /** + *

    Metadata used to download the attached file.

    See Also:

    AWS + * API Reference

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

    A pre-signed URL that should be used to download the attached file.

    + */ + inline const Aws::String& GetUrl() const{ return m_url; } + + /** + *

    A pre-signed URL that should be used to download the attached file.

    + */ + inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } + + /** + *

    A pre-signed URL that should be used to download the attached file.

    + */ + inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } + + /** + *

    A pre-signed URL that should be used to download the attached file.

    + */ + inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } + + /** + *

    A pre-signed URL that should be used to download the attached file.

    + */ + inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } + + /** + *

    A pre-signed URL that should be used to download the attached file.

    + */ + inline DownloadUrlMetadata& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} + + /** + *

    A pre-signed URL that should be used to download the attached file.

    + */ + inline DownloadUrlMetadata& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} + + /** + *

    A pre-signed URL that should be used to download the attached file.

    + */ + inline DownloadUrlMetadata& WithUrl(const char* value) { SetUrl(value); return *this;} + + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    + */ + inline const Aws::String& GetUrlExpiry() const{ return m_urlExpiry; } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    + */ + inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    + */ + inline void SetUrlExpiry(const Aws::String& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = value; } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    + */ + inline void SetUrlExpiry(Aws::String&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::move(value); } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    + */ + inline void SetUrlExpiry(const char* value) { m_urlExpiryHasBeenSet = true; m_urlExpiry.assign(value); } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    + */ + inline DownloadUrlMetadata& WithUrlExpiry(const Aws::String& value) { SetUrlExpiry(value); return *this;} + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    + */ + inline DownloadUrlMetadata& WithUrlExpiry(Aws::String&& value) { SetUrlExpiry(std::move(value)); return *this;} + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    + */ + inline DownloadUrlMetadata& WithUrlExpiry(const char* value) { SetUrlExpiry(value); return *this;} + + private: + + Aws::String m_url; + bool m_urlHasBeenSet = false; + + Aws::String m_urlExpiry; + bool m_urlExpiryHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/FileStatusType.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/FileStatusType.h new file mode 100644 index 00000000000..aa981f3e640 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/FileStatusType.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Connect +{ +namespace Model +{ + enum class FileStatusType + { + NOT_SET, + APPROVED, + REJECTED, + PROCESSING, + FAILED + }; + +namespace FileStatusTypeMapper +{ +AWS_CONNECT_API FileStatusType GetFileStatusTypeForName(const Aws::String& name); + +AWS_CONNECT_API Aws::String GetNameForFileStatusType(FileStatusType value); +} // namespace FileStatusTypeMapper +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/FileUseCaseType.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/FileUseCaseType.h new file mode 100644 index 00000000000..b01ab85a2bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/FileUseCaseType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Connect +{ +namespace Model +{ + enum class FileUseCaseType + { + NOT_SET, + ATTACHMENT + }; + +namespace FileUseCaseTypeMapper +{ +AWS_CONNECT_API FileUseCaseType GetFileUseCaseTypeForName(const Aws::String& name); + +AWS_CONNECT_API Aws::String GetNameForFileUseCaseType(FileUseCaseType value); +} // namespace FileUseCaseTypeMapper +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetAttachedFileRequest.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetAttachedFileRequest.h new file mode 100644 index 00000000000..2d91edc6fc7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetAttachedFileRequest.h @@ -0,0 +1,228 @@ +/** + * 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 Http +{ + class URI; +} //namespace Http +namespace Connect +{ +namespace Model +{ + + /** + * Request to GetAttachedFile API.

    See Also:

    AWS + * API Reference

    + */ + class GetAttachedFileRequest : public ConnectRequest + { + public: + AWS_CONNECT_API GetAttachedFileRequest(); + + // 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 "GetAttachedFile"; } + + AWS_CONNECT_API Aws::String SerializePayload() const override; + + AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the attached file resource.

    + */ + inline const Aws::String& GetFileId() const{ return m_fileId; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const Aws::String& value) { m_fileIdHasBeenSet = true; m_fileId = value; } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(Aws::String&& value) { m_fileIdHasBeenSet = true; m_fileId = std::move(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const char* value) { m_fileIdHasBeenSet = true; m_fileId.assign(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline GetAttachedFileRequest& WithFileId(const Aws::String& value) { SetFileId(value); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline GetAttachedFileRequest& WithFileId(Aws::String&& value) { SetFileId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline GetAttachedFileRequest& WithFileId(const char* value) { SetFileId(value); return *this;} + + + /** + *

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    + */ + inline int GetUrlExpiryInSeconds() const{ return m_urlExpiryInSeconds; } + + /** + *

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    + */ + inline bool UrlExpiryInSecondsHasBeenSet() const { return m_urlExpiryInSecondsHasBeenSet; } + + /** + *

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    + */ + inline void SetUrlExpiryInSeconds(int value) { m_urlExpiryInSecondsHasBeenSet = true; m_urlExpiryInSeconds = value; } + + /** + *

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    + */ + inline GetAttachedFileRequest& WithUrlExpiryInSeconds(int value) { SetUrlExpiryInSeconds(value); return *this;} + + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const Aws::String& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = value; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(Aws::String&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::move(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn.assign(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline GetAttachedFileRequest& WithAssociatedResourceArn(const Aws::String& value) { SetAssociatedResourceArn(value); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline GetAttachedFileRequest& WithAssociatedResourceArn(Aws::String&& value) { SetAssociatedResourceArn(std::move(value)); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline GetAttachedFileRequest& WithAssociatedResourceArn(const char* value) { SetAssociatedResourceArn(value); return *this;} + + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::String m_fileId; + bool m_fileIdHasBeenSet = false; + + int m_urlExpiryInSeconds; + bool m_urlExpiryInSecondsHasBeenSet = false; + + Aws::String m_associatedResourceArn; + bool m_associatedResourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetAttachedFileResult.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetAttachedFileResult.h new file mode 100644 index 00000000000..a6e57bace7c --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetAttachedFileResult.h @@ -0,0 +1,503 @@ +/** + * 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 +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Connect +{ +namespace Model +{ + /** + * Response from GetAttachedFile API.

    See Also:

    AWS + * API Reference

    + */ + class GetAttachedFileResult + { + public: + AWS_CONNECT_API GetAttachedFileResult(); + AWS_CONNECT_API GetAttachedFileResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECT_API GetAttachedFileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline const Aws::String& GetFileArn() const{ return m_fileArn; } + + /** + *

    The unique identifier of the attached file resource (ARN).

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

    The unique identifier of the attached file resource (ARN).

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

    The unique identifier of the attached file resource (ARN).

    + */ + inline void SetFileArn(const char* value) { m_fileArn.assign(value); } + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline GetAttachedFileResult& WithFileArn(const Aws::String& value) { SetFileArn(value); return *this;} + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline GetAttachedFileResult& WithFileArn(Aws::String&& value) { SetFileArn(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline GetAttachedFileResult& WithFileArn(const char* value) { SetFileArn(value); return *this;} + + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline const Aws::String& GetFileId() const{ return m_fileId; } + + /** + *

    The unique identifier of the attached file resource.

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

    The unique identifier of the attached file resource.

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

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const char* value) { m_fileId.assign(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline GetAttachedFileResult& WithFileId(const Aws::String& value) { SetFileId(value); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline GetAttachedFileResult& WithFileId(Aws::String&& value) { SetFileId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline GetAttachedFileResult& WithFileId(const char* value) { SetFileId(value); return *this;} + + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline const Aws::String& GetCreationTime() const{ return m_creationTime; } + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

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

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

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

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline void SetCreationTime(const char* value) { m_creationTime.assign(value); } + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline GetAttachedFileResult& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline GetAttachedFileResult& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline GetAttachedFileResult& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} + + + /** + *

    The current status of the attached file.

    + */ + inline const FileStatusType& GetFileStatus() const{ return m_fileStatus; } + + /** + *

    The current status of the attached file.

    + */ + inline void SetFileStatus(const FileStatusType& value) { m_fileStatus = value; } + + /** + *

    The current status of the attached file.

    + */ + inline void SetFileStatus(FileStatusType&& value) { m_fileStatus = std::move(value); } + + /** + *

    The current status of the attached file.

    + */ + inline GetAttachedFileResult& WithFileStatus(const FileStatusType& value) { SetFileStatus(value); return *this;} + + /** + *

    The current status of the attached file.

    + */ + inline GetAttachedFileResult& WithFileStatus(FileStatusType&& value) { SetFileStatus(std::move(value)); return *this;} + + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline const Aws::String& GetFileName() const{ return m_fileName; } + + /** + *

    A case-sensitive name of the attached file being uploaded.

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

    A case-sensitive name of the attached file being uploaded.

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

    A case-sensitive name of the attached file being uploaded.

    + */ + inline void SetFileName(const char* value) { m_fileName.assign(value); } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline GetAttachedFileResult& WithFileName(const Aws::String& value) { SetFileName(value); return *this;} + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline GetAttachedFileResult& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;} + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline GetAttachedFileResult& WithFileName(const char* value) { SetFileName(value); return *this;} + + + /** + *

    The size of the attached file in bytes.

    + */ + inline long long GetFileSizeInBytes() const{ return m_fileSizeInBytes; } + + /** + *

    The size of the attached file in bytes.

    + */ + inline void SetFileSizeInBytes(long long value) { m_fileSizeInBytes = value; } + + /** + *

    The size of the attached file in bytes.

    + */ + inline GetAttachedFileResult& WithFileSizeInBytes(long long value) { SetFileSizeInBytes(value); return *this;} + + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

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

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

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

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArn.assign(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline GetAttachedFileResult& WithAssociatedResourceArn(const Aws::String& value) { SetAssociatedResourceArn(value); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline GetAttachedFileResult& WithAssociatedResourceArn(Aws::String&& value) { SetAssociatedResourceArn(std::move(value)); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline GetAttachedFileResult& WithAssociatedResourceArn(const char* value) { SetAssociatedResourceArn(value); return *this;} + + + /** + *

    The use case for the file.

    + */ + inline const FileUseCaseType& GetFileUseCaseType() const{ return m_fileUseCaseType; } + + /** + *

    The use case for the file.

    + */ + inline void SetFileUseCaseType(const FileUseCaseType& value) { m_fileUseCaseType = value; } + + /** + *

    The use case for the file.

    + */ + inline void SetFileUseCaseType(FileUseCaseType&& value) { m_fileUseCaseType = std::move(value); } + + /** + *

    The use case for the file.

    + */ + inline GetAttachedFileResult& WithFileUseCaseType(const FileUseCaseType& value) { SetFileUseCaseType(value); return *this;} + + /** + *

    The use case for the file.

    + */ + inline GetAttachedFileResult& WithFileUseCaseType(FileUseCaseType&& value) { SetFileUseCaseType(std::move(value)); return *this;} + + + /** + *

    Represents the identity that created the file.

    + */ + inline const CreatedByInfo& GetCreatedBy() const{ return m_createdBy; } + + /** + *

    Represents the identity that created the file.

    + */ + inline void SetCreatedBy(const CreatedByInfo& value) { m_createdBy = value; } + + /** + *

    Represents the identity that created the file.

    + */ + inline void SetCreatedBy(CreatedByInfo&& value) { m_createdBy = std::move(value); } + + /** + *

    Represents the identity that created the file.

    + */ + inline GetAttachedFileResult& WithCreatedBy(const CreatedByInfo& value) { SetCreatedBy(value); return *this;} + + /** + *

    Represents the identity that created the file.

    + */ + inline GetAttachedFileResult& WithCreatedBy(CreatedByInfo&& value) { SetCreatedBy(std::move(value)); return *this;} + + + /** + *

    URL and expiry to be used when downloading the attached file.

    + */ + inline const DownloadUrlMetadata& GetDownloadUrlMetadata() const{ return m_downloadUrlMetadata; } + + /** + *

    URL and expiry to be used when downloading the attached file.

    + */ + inline void SetDownloadUrlMetadata(const DownloadUrlMetadata& value) { m_downloadUrlMetadata = value; } + + /** + *

    URL and expiry to be used when downloading the attached file.

    + */ + inline void SetDownloadUrlMetadata(DownloadUrlMetadata&& value) { m_downloadUrlMetadata = std::move(value); } + + /** + *

    URL and expiry to be used when downloading the attached file.

    + */ + inline GetAttachedFileResult& WithDownloadUrlMetadata(const DownloadUrlMetadata& value) { SetDownloadUrlMetadata(value); return *this;} + + /** + *

    URL and expiry to be used when downloading the attached file.

    + */ + inline GetAttachedFileResult& WithDownloadUrlMetadata(DownloadUrlMetadata&& value) { SetDownloadUrlMetadata(std::move(value)); return *this;} + + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline GetAttachedFileResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline GetAttachedFileResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline GetAttachedFileResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline GetAttachedFileResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline GetAttachedFileResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline GetAttachedFileResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline GetAttachedFileResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, 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 GetAttachedFileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetAttachedFileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetAttachedFileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_fileArn; + + Aws::String m_fileId; + + Aws::String m_creationTime; + + FileStatusType m_fileStatus; + + Aws::String m_fileName; + + long long m_fileSizeInBytes; + + Aws::String m_associatedResourceArn; + + FileUseCaseType m_fileUseCaseType; + + CreatedByInfo m_createdBy; + + DownloadUrlMetadata m_downloadUrlMetadata; + + Aws::Map m_tags; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetMetricDataV2Request.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetMetricDataV2Request.h index cbc7bb10a9a..7ea67430667 100644 --- a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetMetricDataV2Request.h +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/GetMetricDataV2Request.h @@ -935,7 +935,7 @@ namespace Model * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * greeting time agent

    AVG_HANDLE_TIME

    Unit: + * agent greeting time

    AVG_HANDLE_TIME

    Unit: * Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, * RoutingStepExpression

    UI name:

    UI name: Average - * interruptions agent

    AVG_INTERRUPTION_TIME_AGENT
    + * agent interruptions

    AVG_INTERRUPTION_TIME_AGENT
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Seconds

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * interruption time agent

    AVG_NON_TALK_TIME

    This + * agent interruption time

    AVG_NON_TALK_TIME

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, @@ -1007,13 +1007,13 @@ namespace Model * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time agent

    AVG_TALK_TIME_CUSTOMER

    This + * agent talk time

    AVG_TALK_TIME_CUSTOMER

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time customer

    CASES_CREATED

    Unit: Count

    + * customer talk time

    CASES_CREATED

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: * CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases @@ -1041,10 +1041,10 @@ namespace Model *

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * handled by Connected to agent

    CONTACTS_HOLD_ABANDONS
    - *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing - * Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    - *

    UI name:

    + *
    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and + * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype

    UI name: Contacts * hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing @@ -1077,9 +1077,9 @@ namespace Model * Count

    Valid groupings and filters: Queue, Channel, Agent, Agent * Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * queued by Enqueue

    CONTACTS_RESOLVED_IN_X

    Unit: - * Count

    Valid groupings and filters: Queue, Channel, Routing Profile, - * contact/segmentAttributes/connect:Subtype

    Threshold: For + * queued (enqueue timestamp)

    CONTACTS_RESOLVED_IN_X
    + *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing + * Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For * ThresholdValue enter any whole number from 1 to 604800 (inclusive), * in seconds. For Comparison, you must enter LT (for * "Less than").

    UI name:

    Unit: Percentage

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time agent percent

    PERCENT_TALK_TIME_CUSTOMER
    + * href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical">Agent + * talk time percent

    PERCENT_TALK_TIME_CUSTOMER
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Percentage

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time customer percent

    REOPENED_CASE_ACTIONS
    - *

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid - * groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Customer + * talk time percent

    REOPENED_CASE_ACTIONS

    Unit: + * Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and + * filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases * reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: @@ -1344,7 +1344,7 @@ namespace Model * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * greeting time agent

    AVG_HANDLE_TIME

    Unit: + * agent greeting time

    AVG_HANDLE_TIME

    Unit: * Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, * RoutingStepExpression

    UI name:

    UI name: Average - * interruptions agent

    AVG_INTERRUPTION_TIME_AGENT
    + * agent interruptions

    AVG_INTERRUPTION_TIME_AGENT
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Seconds

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * interruption time agent

    AVG_NON_TALK_TIME

    This + * agent interruption time

    AVG_NON_TALK_TIME

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, @@ -1416,13 +1416,13 @@ namespace Model * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time agent

    AVG_TALK_TIME_CUSTOMER

    This + * agent talk time

    AVG_TALK_TIME_CUSTOMER

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time customer

    CASES_CREATED

    Unit: Count

    + * customer talk time

    CASES_CREATED

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: * CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases @@ -1450,10 +1450,10 @@ namespace Model *

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * handled by Connected to agent

    CONTACTS_HOLD_ABANDONS
    - *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing - * Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    - *

    UI name:

    + *
    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and + * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype

    UI name: Contacts * hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing @@ -1486,9 +1486,9 @@ namespace Model * Count

    Valid groupings and filters: Queue, Channel, Agent, Agent * Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * queued by Enqueue

    CONTACTS_RESOLVED_IN_X

    Unit: - * Count

    Valid groupings and filters: Queue, Channel, Routing Profile, - * contact/segmentAttributes/connect:Subtype

    Threshold: For + * queued (enqueue timestamp)

    CONTACTS_RESOLVED_IN_X
    + *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing + * Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For * ThresholdValue enter any whole number from 1 to 604800 (inclusive), * in seconds. For Comparison, you must enter LT (for * "Less than").

    UI name:

    Unit: Percentage

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time agent percent

    PERCENT_TALK_TIME_CUSTOMER
    + * href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical">Agent + * talk time percent

    PERCENT_TALK_TIME_CUSTOMER
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Percentage

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time customer percent

    REOPENED_CASE_ACTIONS
    - *

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid - * groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Customer + * talk time percent

    REOPENED_CASE_ACTIONS

    Unit: + * Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and + * filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases * reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: @@ -1753,7 +1753,7 @@ namespace Model * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * greeting time agent

    AVG_HANDLE_TIME

    Unit: + * agent greeting time

    AVG_HANDLE_TIME

    Unit: * Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, * RoutingStepExpression

    UI name:

    UI name: Average - * interruptions agent

    AVG_INTERRUPTION_TIME_AGENT
    + * agent interruptions

    AVG_INTERRUPTION_TIME_AGENT
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Seconds

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * interruption time agent

    AVG_NON_TALK_TIME

    This + * agent interruption time

    AVG_NON_TALK_TIME

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, @@ -1825,13 +1825,13 @@ namespace Model * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time agent

    AVG_TALK_TIME_CUSTOMER

    This + * agent talk time

    AVG_TALK_TIME_CUSTOMER

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time customer

    CASES_CREATED

    Unit: Count

    + * customer talk time

    CASES_CREATED

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: * CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases @@ -1859,10 +1859,10 @@ namespace Model *

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * handled by Connected to agent

    CONTACTS_HOLD_ABANDONS
    - *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing - * Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    - *

    UI name:

    + *
    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and + * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype

    UI name: Contacts * hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing @@ -1895,9 +1895,9 @@ namespace Model * Count

    Valid groupings and filters: Queue, Channel, Agent, Agent * Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * queued by Enqueue

    CONTACTS_RESOLVED_IN_X

    Unit: - * Count

    Valid groupings and filters: Queue, Channel, Routing Profile, - * contact/segmentAttributes/connect:Subtype

    Threshold: For + * queued (enqueue timestamp)

    CONTACTS_RESOLVED_IN_X
    + *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing + * Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For * ThresholdValue enter any whole number from 1 to 604800 (inclusive), * in seconds. For Comparison, you must enter LT (for * "Less than").

    UI name:

    Unit: Percentage

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time agent percent

    PERCENT_TALK_TIME_CUSTOMER
    + * href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical">Agent + * talk time percent

    PERCENT_TALK_TIME_CUSTOMER
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Percentage

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time customer percent

    REOPENED_CASE_ACTIONS
    - *

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid - * groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Customer + * talk time percent

    REOPENED_CASE_ACTIONS

    Unit: + * Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and + * filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases * reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: @@ -2162,7 +2162,7 @@ namespace Model * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * greeting time agent

    AVG_HANDLE_TIME

    Unit: + * agent greeting time

    AVG_HANDLE_TIME

    Unit: * Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, * RoutingStepExpression

    UI name:

    UI name: Average - * interruptions agent

    AVG_INTERRUPTION_TIME_AGENT
    + * agent interruptions

    AVG_INTERRUPTION_TIME_AGENT
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Seconds

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * interruption time agent

    AVG_NON_TALK_TIME

    This + * agent interruption time

    AVG_NON_TALK_TIME

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, @@ -2234,13 +2234,13 @@ namespace Model * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time agent

    AVG_TALK_TIME_CUSTOMER

    This + * agent talk time

    AVG_TALK_TIME_CUSTOMER

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time customer

    CASES_CREATED

    Unit: Count

    + * customer talk time

    CASES_CREATED

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: * CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases @@ -2268,10 +2268,10 @@ namespace Model *

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * handled by Connected to agent

    CONTACTS_HOLD_ABANDONS
    - *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing - * Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    - *

    UI name:

    + *
    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and + * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype

    UI name: Contacts * hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing @@ -2304,9 +2304,9 @@ namespace Model * Count

    Valid groupings and filters: Queue, Channel, Agent, Agent * Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * queued by Enqueue

    CONTACTS_RESOLVED_IN_X

    Unit: - * Count

    Valid groupings and filters: Queue, Channel, Routing Profile, - * contact/segmentAttributes/connect:Subtype

    Threshold: For + * queued (enqueue timestamp)

    CONTACTS_RESOLVED_IN_X
    + *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing + * Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For * ThresholdValue enter any whole number from 1 to 604800 (inclusive), * in seconds. For Comparison, you must enter LT (for * "Less than").

    UI name:

    Unit: Percentage

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time agent percent

    PERCENT_TALK_TIME_CUSTOMER
    + * href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical">Agent + * talk time percent

    PERCENT_TALK_TIME_CUSTOMER
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Percentage

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time customer percent

    REOPENED_CASE_ACTIONS
    - *

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid - * groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Customer + * talk time percent

    REOPENED_CASE_ACTIONS

    Unit: + * Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and + * filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases * reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: @@ -2571,7 +2571,7 @@ namespace Model * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * greeting time agent

    AVG_HANDLE_TIME

    Unit: + * agent greeting time

    AVG_HANDLE_TIME

    Unit: * Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, * RoutingStepExpression

    UI name:

    UI name: Average - * interruptions agent

    AVG_INTERRUPTION_TIME_AGENT
    + * agent interruptions

    AVG_INTERRUPTION_TIME_AGENT
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Seconds

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * interruption time agent

    AVG_NON_TALK_TIME

    This + * agent interruption time

    AVG_NON_TALK_TIME

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, @@ -2643,13 +2643,13 @@ namespace Model * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time agent

    AVG_TALK_TIME_CUSTOMER

    This + * agent talk time

    AVG_TALK_TIME_CUSTOMER

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time customer

    CASES_CREATED

    Unit: Count

    + * customer talk time

    CASES_CREATED

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: * CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases @@ -2677,10 +2677,10 @@ namespace Model *

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * handled by Connected to agent

    CONTACTS_HOLD_ABANDONS
    - *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing - * Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    - *

    UI name:

    + *
    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and + * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype

    UI name: Contacts * hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing @@ -2713,9 +2713,9 @@ namespace Model * Count

    Valid groupings and filters: Queue, Channel, Agent, Agent * Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * queued by Enqueue

    CONTACTS_RESOLVED_IN_X

    Unit: - * Count

    Valid groupings and filters: Queue, Channel, Routing Profile, - * contact/segmentAttributes/connect:Subtype

    Threshold: For + * queued (enqueue timestamp)

    CONTACTS_RESOLVED_IN_X
    + *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing + * Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For * ThresholdValue enter any whole number from 1 to 604800 (inclusive), * in seconds. For Comparison, you must enter LT (for * "Less than").

    UI name:

    Unit: Percentage

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time agent percent

    PERCENT_TALK_TIME_CUSTOMER
    + * href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical">Agent + * talk time percent

    PERCENT_TALK_TIME_CUSTOMER
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Percentage

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time customer percent

    REOPENED_CASE_ACTIONS
    - *

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid - * groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Customer + * talk time percent

    REOPENED_CASE_ACTIONS

    Unit: + * Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and + * filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases * reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: @@ -2980,7 +2980,7 @@ namespace Model * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * greeting time agent

    AVG_HANDLE_TIME

    Unit: + * agent greeting time

    AVG_HANDLE_TIME

    Unit: * Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, * RoutingStepExpression

    UI name:

    UI name: Average - * interruptions agent

    AVG_INTERRUPTION_TIME_AGENT
    + * agent interruptions

    AVG_INTERRUPTION_TIME_AGENT
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Seconds

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * interruption time agent

    AVG_NON_TALK_TIME

    This + * agent interruption time

    AVG_NON_TALK_TIME

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, @@ -3052,13 +3052,13 @@ namespace Model * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time agent

    AVG_TALK_TIME_CUSTOMER

    This + * agent talk time

    AVG_TALK_TIME_CUSTOMER

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time customer

    CASES_CREATED

    Unit: Count

    + * customer talk time

    CASES_CREATED

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: * CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases @@ -3086,10 +3086,10 @@ namespace Model *

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * handled by Connected to agent

    CONTACTS_HOLD_ABANDONS
    - *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing - * Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    - *

    UI name:

    + *
    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and + * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype

    UI name: Contacts * hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing @@ -3122,9 +3122,9 @@ namespace Model * Count

    Valid groupings and filters: Queue, Channel, Agent, Agent * Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * queued by Enqueue

    CONTACTS_RESOLVED_IN_X

    Unit: - * Count

    Valid groupings and filters: Queue, Channel, Routing Profile, - * contact/segmentAttributes/connect:Subtype

    Threshold: For + * queued (enqueue timestamp)

    CONTACTS_RESOLVED_IN_X
    + *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing + * Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For * ThresholdValue enter any whole number from 1 to 604800 (inclusive), * in seconds. For Comparison, you must enter LT (for * "Less than").

    UI name:

    Unit: Percentage

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time agent percent

    PERCENT_TALK_TIME_CUSTOMER
    + * href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical">Agent + * talk time percent

    PERCENT_TALK_TIME_CUSTOMER
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Percentage

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time customer percent

    REOPENED_CASE_ACTIONS
    - *

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid - * groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Customer + * talk time percent

    REOPENED_CASE_ACTIONS

    Unit: + * Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and + * filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases * reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: @@ -3389,7 +3389,7 @@ namespace Model * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * greeting time agent

    AVG_HANDLE_TIME

    Unit: + * agent greeting time

    AVG_HANDLE_TIME

    Unit: * Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, * RoutingStepExpression

    UI name:

    UI name: Average - * interruptions agent

    AVG_INTERRUPTION_TIME_AGENT
    + * agent interruptions

    AVG_INTERRUPTION_TIME_AGENT
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Seconds

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * interruption time agent

    AVG_NON_TALK_TIME

    This + * agent interruption time

    AVG_NON_TALK_TIME

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, @@ -3461,13 +3461,13 @@ namespace Model * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time agent

    AVG_TALK_TIME_CUSTOMER

    This + * agent talk time

    AVG_TALK_TIME_CUSTOMER

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time customer

    CASES_CREATED

    Unit: Count

    + * customer talk time

    CASES_CREATED

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: * CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases @@ -3495,10 +3495,10 @@ namespace Model *

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * handled by Connected to agent

    CONTACTS_HOLD_ABANDONS
    - *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing - * Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    - *

    UI name:

    + *
    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and + * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype

    UI name: Contacts * hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing @@ -3531,9 +3531,9 @@ namespace Model * Count

    Valid groupings and filters: Queue, Channel, Agent, Agent * Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * queued by Enqueue

    CONTACTS_RESOLVED_IN_X

    Unit: - * Count

    Valid groupings and filters: Queue, Channel, Routing Profile, - * contact/segmentAttributes/connect:Subtype

    Threshold: For + * queued (enqueue timestamp)

    CONTACTS_RESOLVED_IN_X
    + *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing + * Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For * ThresholdValue enter any whole number from 1 to 604800 (inclusive), * in seconds. For Comparison, you must enter LT (for * "Less than").

    UI name:

    Unit: Percentage

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time agent percent

    PERCENT_TALK_TIME_CUSTOMER
    + * href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical">Agent + * talk time percent

    PERCENT_TALK_TIME_CUSTOMER
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Percentage

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time customer percent

    REOPENED_CASE_ACTIONS
    - *

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid - * groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Customer + * talk time percent

    REOPENED_CASE_ACTIONS

    Unit: + * Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and + * filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases * reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: @@ -3798,7 +3798,7 @@ namespace Model * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * greeting time agent

    AVG_HANDLE_TIME

    Unit: + * agent greeting time

    AVG_HANDLE_TIME

    Unit: * Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, * RoutingStepExpression

    UI name:

    UI name: Average - * interruptions agent

    AVG_INTERRUPTION_TIME_AGENT
    + * agent interruptions

    AVG_INTERRUPTION_TIME_AGENT
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Seconds

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * interruption time agent

    AVG_NON_TALK_TIME

    This + * agent interruption time

    AVG_NON_TALK_TIME

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, @@ -3870,13 +3870,13 @@ namespace Model * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time agent

    AVG_TALK_TIME_CUSTOMER

    This + * agent talk time

    AVG_TALK_TIME_CUSTOMER

    This * metric is available only for contacts analyzed by Contact Lens conversational * analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Average - * talk time customer

    CASES_CREATED

    Unit: Count

    + * customer talk time

    CASES_CREATED

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: * CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases @@ -3904,10 +3904,10 @@ namespace Model *

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * handled by Connected to agent

    CONTACTS_HOLD_ABANDONS
    - *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing - * Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    - *

    UI name:

    + *
    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and + * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype

    UI name: Contacts * hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing @@ -3940,9 +3940,9 @@ namespace Model * Count

    Valid groupings and filters: Queue, Channel, Agent, Agent * Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts - * queued by Enqueue

    CONTACTS_RESOLVED_IN_X

    Unit: - * Count

    Valid groupings and filters: Queue, Channel, Routing Profile, - * contact/segmentAttributes/connect:Subtype

    Threshold: For + * queued (enqueue timestamp)

    CONTACTS_RESOLVED_IN_X
    + *

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing + * Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For * ThresholdValue enter any whole number from 1 to 604800 (inclusive), * in seconds. For Comparison, you must enter LT (for * "Less than").

    UI name:

    Unit: Percentage

    Valid groupings and filters: Queue, * Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time agent percent

    PERCENT_TALK_TIME_CUSTOMER
    + * href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical">Agent + * talk time percent

    PERCENT_TALK_TIME_CUSTOMER
    *

    This metric is available only for contacts analyzed by Contact Lens * conversational analytics.

    Unit: Percentage

    Valid groupings and * filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, * contact/segmentAttributes/connect:Subtype

    UI name: Talk - * time customer percent

    REOPENED_CASE_ACTIONS
    - *

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid - * groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Customer + * talk time percent

    REOPENED_CASE_ACTIONS

    Unit: + * Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and + * filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases * reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    *

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/InvalidRequestException.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/InvalidRequestException.h new file mode 100644 index 00000000000..9491f7d0364 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/InvalidRequestException.h @@ -0,0 +1,111 @@ +/** + * 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 Connect +{ +namespace Model +{ + + /** + *

    The request is not valid.

    See Also:

    AWS + * API Reference

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

    The message about the request.

    + */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

    The message about the request.

    + */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

    The message about the request.

    + */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

    The message about the request.

    + */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

    The message about the request.

    + */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

    The message about the request.

    + */ + inline InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

    The message about the request.

    + */ + inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

    The message about the request.

    + */ + inline InvalidRequestException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + + inline const InvalidRequestExceptionReason& GetReason() const{ return m_reason; } + + + inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } + + + inline void SetReason(const InvalidRequestExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } + + + inline void SetReason(InvalidRequestExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } + + + inline InvalidRequestException& WithReason(const InvalidRequestExceptionReason& value) { SetReason(value); return *this;} + + + inline InvalidRequestException& WithReason(InvalidRequestExceptionReason&& value) { SetReason(std::move(value)); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + InvalidRequestExceptionReason m_reason; + bool m_reasonHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/InvalidRequestExceptionReason.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/InvalidRequestExceptionReason.h new file mode 100644 index 00000000000..06e932ba45e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/InvalidRequestExceptionReason.h @@ -0,0 +1,78 @@ +/** + * 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 Connect +{ +namespace Model +{ + + /** + *

    Reason why the request was invalid.

    See Also:

    AWS + * API Reference

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

    Reason why the StartAttachedFiledUpload request was invalid.

    + */ + inline const AttachedFileInvalidRequestExceptionReason& GetAttachedFileInvalidRequestExceptionReason() const{ return m_attachedFileInvalidRequestExceptionReason; } + + /** + *

    Reason why the StartAttachedFiledUpload request was invalid.

    + */ + inline bool AttachedFileInvalidRequestExceptionReasonHasBeenSet() const { return m_attachedFileInvalidRequestExceptionReasonHasBeenSet; } + + /** + *

    Reason why the StartAttachedFiledUpload request was invalid.

    + */ + inline void SetAttachedFileInvalidRequestExceptionReason(const AttachedFileInvalidRequestExceptionReason& value) { m_attachedFileInvalidRequestExceptionReasonHasBeenSet = true; m_attachedFileInvalidRequestExceptionReason = value; } + + /** + *

    Reason why the StartAttachedFiledUpload request was invalid.

    + */ + inline void SetAttachedFileInvalidRequestExceptionReason(AttachedFileInvalidRequestExceptionReason&& value) { m_attachedFileInvalidRequestExceptionReasonHasBeenSet = true; m_attachedFileInvalidRequestExceptionReason = std::move(value); } + + /** + *

    Reason why the StartAttachedFiledUpload request was invalid.

    + */ + inline InvalidRequestExceptionReason& WithAttachedFileInvalidRequestExceptionReason(const AttachedFileInvalidRequestExceptionReason& value) { SetAttachedFileInvalidRequestExceptionReason(value); return *this;} + + /** + *

    Reason why the StartAttachedFiledUpload request was invalid.

    + */ + inline InvalidRequestExceptionReason& WithAttachedFileInvalidRequestExceptionReason(AttachedFileInvalidRequestExceptionReason&& value) { SetAttachedFileInvalidRequestExceptionReason(std::move(value)); return *this;} + + private: + + AttachedFileInvalidRequestExceptionReason m_attachedFileInvalidRequestExceptionReason; + bool m_attachedFileInvalidRequestExceptionReasonHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/StartAttachedFileUploadRequest.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/StartAttachedFileUploadRequest.h new file mode 100644 index 00000000000..b3db5023c7b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/StartAttachedFileUploadRequest.h @@ -0,0 +1,479 @@ +/** + * 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 +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace Connect +{ +namespace Model +{ + + /** + */ + class StartAttachedFileUploadRequest : public ConnectRequest + { + public: + AWS_CONNECT_API StartAttachedFileUploadRequest(); + + // 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 "StartAttachedFileUpload"; } + + AWS_CONNECT_API Aws::String SerializePayload() const override; + + AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline StartAttachedFileUploadRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline StartAttachedFileUploadRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline StartAttachedFileUploadRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    The unique identifier of the Connect instance.

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

    A case-sensitive name of the attached file being uploaded.

    + */ + inline const Aws::String& GetFileName() const{ return m_fileName; } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = std::move(value); } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); } + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline StartAttachedFileUploadRequest& WithFileName(const Aws::String& value) { SetFileName(value); return *this;} + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline StartAttachedFileUploadRequest& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;} + + /** + *

    A case-sensitive name of the attached file being uploaded.

    + */ + inline StartAttachedFileUploadRequest& WithFileName(const char* value) { SetFileName(value); return *this;} + + + /** + *

    The size of the attached file in bytes.

    + */ + inline long long GetFileSizeInBytes() const{ return m_fileSizeInBytes; } + + /** + *

    The size of the attached file in bytes.

    + */ + inline bool FileSizeInBytesHasBeenSet() const { return m_fileSizeInBytesHasBeenSet; } + + /** + *

    The size of the attached file in bytes.

    + */ + inline void SetFileSizeInBytes(long long value) { m_fileSizeInBytesHasBeenSet = true; m_fileSizeInBytes = value; } + + /** + *

    The size of the attached file in bytes.

    + */ + inline StartAttachedFileUploadRequest& WithFileSizeInBytes(long long value) { SetFileSizeInBytes(value); return *this;} + + + /** + *

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    + */ + inline int GetUrlExpiryInSeconds() const{ return m_urlExpiryInSeconds; } + + /** + *

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    + */ + inline bool UrlExpiryInSecondsHasBeenSet() const { return m_urlExpiryInSecondsHasBeenSet; } + + /** + *

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    + */ + inline void SetUrlExpiryInSeconds(int value) { m_urlExpiryInSecondsHasBeenSet = true; m_urlExpiryInSeconds = value; } + + /** + *

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    + */ + inline StartAttachedFileUploadRequest& WithUrlExpiryInSeconds(int value) { SetUrlExpiryInSeconds(value); return *this;} + + + /** + *

    The use case for the file.

    + */ + inline const FileUseCaseType& GetFileUseCaseType() const{ return m_fileUseCaseType; } + + /** + *

    The use case for the file.

    + */ + inline bool FileUseCaseTypeHasBeenSet() const { return m_fileUseCaseTypeHasBeenSet; } + + /** + *

    The use case for the file.

    + */ + inline void SetFileUseCaseType(const FileUseCaseType& value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = value; } + + /** + *

    The use case for the file.

    + */ + inline void SetFileUseCaseType(FileUseCaseType&& value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = std::move(value); } + + /** + *

    The use case for the file.

    + */ + inline StartAttachedFileUploadRequest& WithFileUseCaseType(const FileUseCaseType& value) { SetFileUseCaseType(value); return *this;} + + /** + *

    The use case for the file.

    + */ + inline StartAttachedFileUploadRequest& WithFileUseCaseType(FileUseCaseType&& value) { SetFileUseCaseType(std::move(value)); return *this;} + + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const Aws::String& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = value; } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(Aws::String&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::move(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn.assign(value); } + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline StartAttachedFileUploadRequest& WithAssociatedResourceArn(const Aws::String& value) { SetAssociatedResourceArn(value); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline StartAttachedFileUploadRequest& WithAssociatedResourceArn(Aws::String&& value) { SetAssociatedResourceArn(std::move(value)); return *this;} + + /** + *

    The resource to which the attached file is (being) uploaded to. Cases + * are the only current supported resource.

    This value must be a + * valid ARN.

    + */ + inline StartAttachedFileUploadRequest& WithAssociatedResourceArn(const char* value) { SetAssociatedResourceArn(value); return *this;} + + + /** + *

    Represents the identity that created the file.

    + */ + inline const CreatedByInfo& GetCreatedBy() const{ return m_createdBy; } + + /** + *

    Represents the identity that created the file.

    + */ + inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } + + /** + *

    Represents the identity that created the file.

    + */ + inline void SetCreatedBy(const CreatedByInfo& value) { m_createdByHasBeenSet = true; m_createdBy = value; } + + /** + *

    Represents the identity that created the file.

    + */ + inline void SetCreatedBy(CreatedByInfo&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } + + /** + *

    Represents the identity that created the file.

    + */ + inline StartAttachedFileUploadRequest& WithCreatedBy(const CreatedByInfo& value) { SetCreatedBy(value); return *this;} + + /** + *

    Represents the identity that created the file.

    + */ + inline StartAttachedFileUploadRequest& WithCreatedBy(CreatedByInfo&& value) { SetCreatedBy(std::move(value)); return *this;} + + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

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

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline StartAttachedFileUploadRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline StartAttachedFileUploadRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline StartAttachedFileUploadRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline StartAttachedFileUploadRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline StartAttachedFileUploadRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline StartAttachedFileUploadRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

    The tags used to organize, track, or control access for this resource. For + * example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline StartAttachedFileUploadRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::String m_fileName; + bool m_fileNameHasBeenSet = false; + + long long m_fileSizeInBytes; + bool m_fileSizeInBytesHasBeenSet = false; + + int m_urlExpiryInSeconds; + bool m_urlExpiryInSecondsHasBeenSet = false; + + FileUseCaseType m_fileUseCaseType; + bool m_fileUseCaseTypeHasBeenSet = false; + + Aws::String m_associatedResourceArn; + bool m_associatedResourceArnHasBeenSet = false; + + CreatedByInfo m_createdBy; + bool m_createdByHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/StartAttachedFileUploadResult.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/StartAttachedFileUploadResult.h new file mode 100644 index 00000000000..c4a581372ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/StartAttachedFileUploadResult.h @@ -0,0 +1,283 @@ +/** + * 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 Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Connect +{ +namespace Model +{ + /** + * Response from StartAttachedFileUpload API.

    See Also:

    AWS + * API Reference

    + */ + class StartAttachedFileUploadResult + { + public: + AWS_CONNECT_API StartAttachedFileUploadResult(); + AWS_CONNECT_API StartAttachedFileUploadResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECT_API StartAttachedFileUploadResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline const Aws::String& GetFileArn() const{ return m_fileArn; } + + /** + *

    The unique identifier of the attached file resource (ARN).

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

    The unique identifier of the attached file resource (ARN).

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

    The unique identifier of the attached file resource (ARN).

    + */ + inline void SetFileArn(const char* value) { m_fileArn.assign(value); } + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline StartAttachedFileUploadResult& WithFileArn(const Aws::String& value) { SetFileArn(value); return *this;} + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline StartAttachedFileUploadResult& WithFileArn(Aws::String&& value) { SetFileArn(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource (ARN).

    + */ + inline StartAttachedFileUploadResult& WithFileArn(const char* value) { SetFileArn(value); return *this;} + + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline const Aws::String& GetFileId() const{ return m_fileId; } + + /** + *

    The unique identifier of the attached file resource.

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

    The unique identifier of the attached file resource.

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

    The unique identifier of the attached file resource.

    + */ + inline void SetFileId(const char* value) { m_fileId.assign(value); } + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline StartAttachedFileUploadResult& WithFileId(const Aws::String& value) { SetFileId(value); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline StartAttachedFileUploadResult& WithFileId(Aws::String&& value) { SetFileId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the attached file resource.

    + */ + inline StartAttachedFileUploadResult& WithFileId(const char* value) { SetFileId(value); return *this;} + + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline const Aws::String& GetCreationTime() const{ return m_creationTime; } + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

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

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

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

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline void SetCreationTime(const char* value) { m_creationTime.assign(value); } + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline StartAttachedFileUploadResult& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline StartAttachedFileUploadResult& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} + + /** + *

    The time of Creation of the file resource as an ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z.

    + */ + inline StartAttachedFileUploadResult& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} + + + /** + *

    The current status of the attached file.

    + */ + inline const FileStatusType& GetFileStatus() const{ return m_fileStatus; } + + /** + *

    The current status of the attached file.

    + */ + inline void SetFileStatus(const FileStatusType& value) { m_fileStatus = value; } + + /** + *

    The current status of the attached file.

    + */ + inline void SetFileStatus(FileStatusType&& value) { m_fileStatus = std::move(value); } + + /** + *

    The current status of the attached file.

    + */ + inline StartAttachedFileUploadResult& WithFileStatus(const FileStatusType& value) { SetFileStatus(value); return *this;} + + /** + *

    The current status of the attached file.

    + */ + inline StartAttachedFileUploadResult& WithFileStatus(FileStatusType&& value) { SetFileStatus(std::move(value)); return *this;} + + + /** + *

    Represents the identity that created the file.

    + */ + inline const CreatedByInfo& GetCreatedBy() const{ return m_createdBy; } + + /** + *

    Represents the identity that created the file.

    + */ + inline void SetCreatedBy(const CreatedByInfo& value) { m_createdBy = value; } + + /** + *

    Represents the identity that created the file.

    + */ + inline void SetCreatedBy(CreatedByInfo&& value) { m_createdBy = std::move(value); } + + /** + *

    Represents the identity that created the file.

    + */ + inline StartAttachedFileUploadResult& WithCreatedBy(const CreatedByInfo& value) { SetCreatedBy(value); return *this;} + + /** + *

    Represents the identity that created the file.

    + */ + inline StartAttachedFileUploadResult& WithCreatedBy(CreatedByInfo&& value) { SetCreatedBy(std::move(value)); return *this;} + + + /** + *

    Information to be used while uploading the attached file.

    + */ + inline const UploadUrlMetadata& GetUploadUrlMetadata() const{ return m_uploadUrlMetadata; } + + /** + *

    Information to be used while uploading the attached file.

    + */ + inline void SetUploadUrlMetadata(const UploadUrlMetadata& value) { m_uploadUrlMetadata = value; } + + /** + *

    Information to be used while uploading the attached file.

    + */ + inline void SetUploadUrlMetadata(UploadUrlMetadata&& value) { m_uploadUrlMetadata = std::move(value); } + + /** + *

    Information to be used while uploading the attached file.

    + */ + inline StartAttachedFileUploadResult& WithUploadUrlMetadata(const UploadUrlMetadata& value) { SetUploadUrlMetadata(value); return *this;} + + /** + *

    Information to be used while uploading the attached file.

    + */ + inline StartAttachedFileUploadResult& WithUploadUrlMetadata(UploadUrlMetadata&& value) { SetUploadUrlMetadata(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 StartAttachedFileUploadResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline StartAttachedFileUploadResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline StartAttachedFileUploadResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_fileArn; + + Aws::String m_fileId; + + Aws::String m_creationTime; + + FileStatusType m_fileStatus; + + CreatedByInfo m_createdBy; + + UploadUrlMetadata m_uploadUrlMetadata; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/UpdateContactAttributesRequest.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/UpdateContactAttributesRequest.h index 8c758f5cac4..3b65f72de55 100644 --- a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/UpdateContactAttributesRequest.h +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/UpdateContactAttributesRequest.h @@ -143,7 +143,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline const Aws::Map& GetAttributes() const{ return m_attributes; } @@ -151,7 +161,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } @@ -159,7 +179,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } @@ -167,7 +197,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } @@ -175,7 +215,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline UpdateContactAttributesRequest& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} @@ -183,7 +233,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline UpdateContactAttributesRequest& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} @@ -191,7 +251,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline UpdateContactAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } @@ -199,7 +269,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline UpdateContactAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } @@ -207,7 +287,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline UpdateContactAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } @@ -215,7 +305,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline UpdateContactAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } @@ -223,7 +323,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline UpdateContactAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } @@ -231,7 +341,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline UpdateContactAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } @@ -239,7 +359,17 @@ namespace Model *

    The Amazon Connect attributes. These attributes can be accessed in flows just * like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes * across all attributes for a contact. Attribute keys can include only - * alphanumeric, dash, and underscore characters.

    + * alphanumeric, dash, and underscore characters.

    When the attributes for a + * contact exceed 32 KB, the contact is routed down the Error branch of the flow. + * As a mitigation, consider the following options:

    • Remove + * unnecessary attributes by setting their values to empty.

    • If + * the attributes are only used in one flow and don't need to be referred to + * outside of that flow (for example, by a Lambda or another flow), then use flow + * attributes. This way you aren't needlessly persisting the 32 KB of information + * from one flow to another. For more information, see Flow + * block: Set contact attributes in the Amazon Connect Administrator + * Guide.

    */ inline UpdateContactAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } diff --git a/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/UploadUrlMetadata.h b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/UploadUrlMetadata.h new file mode 100644 index 00000000000..57a2516b005 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/include/aws/connect/model/UploadUrlMetadata.h @@ -0,0 +1,232 @@ +/** + * 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 Connect +{ +namespace Model +{ + + /** + *

    Fields required when uploading an attached file.

    See Also:

    + * AWS + * API Reference

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

    A pre-signed S3 URL that should be used for uploading the attached file.

    + */ + inline const Aws::String& GetUrl() const{ return m_url; } + + /** + *

    A pre-signed S3 URL that should be used for uploading the attached file.

    + */ + inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } + + /** + *

    A pre-signed S3 URL that should be used for uploading the attached file.

    + */ + inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } + + /** + *

    A pre-signed S3 URL that should be used for uploading the attached file.

    + */ + inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } + + /** + *

    A pre-signed S3 URL that should be used for uploading the attached file.

    + */ + inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } + + /** + *

    A pre-signed S3 URL that should be used for uploading the attached file.

    + */ + inline UploadUrlMetadata& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} + + /** + *

    A pre-signed S3 URL that should be used for uploading the attached file.

    + */ + inline UploadUrlMetadata& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} + + /** + *

    A pre-signed S3 URL that should be used for uploading the attached file.

    + */ + inline UploadUrlMetadata& WithUrl(const char* value) { SetUrl(value); return *this;} + + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z.

    + */ + inline const Aws::String& GetUrlExpiry() const{ return m_urlExpiry; } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z.

    + */ + inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z.

    + */ + inline void SetUrlExpiry(const Aws::String& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = value; } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z.

    + */ + inline void SetUrlExpiry(Aws::String&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::move(value); } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z.

    + */ + inline void SetUrlExpiry(const char* value) { m_urlExpiryHasBeenSet = true; m_urlExpiry.assign(value); } + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z.

    + */ + inline UploadUrlMetadata& WithUrlExpiry(const Aws::String& value) { SetUrlExpiry(value); return *this;} + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z.

    + */ + inline UploadUrlMetadata& WithUrlExpiry(Aws::String&& value) { SetUrlExpiry(std::move(value)); return *this;} + + /** + *

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 + * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z.

    + */ + inline UploadUrlMetadata& WithUrlExpiry(const char* value) { SetUrlExpiry(value); return *this;} + + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline const Aws::Map& GetHeadersToInclude() const{ return m_headersToInclude; } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline bool HeadersToIncludeHasBeenSet() const { return m_headersToIncludeHasBeenSet; } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline void SetHeadersToInclude(const Aws::Map& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude = value; } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline void SetHeadersToInclude(Aws::Map&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude = std::move(value); } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline UploadUrlMetadata& WithHeadersToInclude(const Aws::Map& value) { SetHeadersToInclude(value); return *this;} + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline UploadUrlMetadata& WithHeadersToInclude(Aws::Map&& value) { SetHeadersToInclude(std::move(value)); return *this;} + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline UploadUrlMetadata& AddHeadersToInclude(const Aws::String& key, const Aws::String& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, value); return *this; } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline UploadUrlMetadata& AddHeadersToInclude(Aws::String&& key, const Aws::String& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::move(key), value); return *this; } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline UploadUrlMetadata& AddHeadersToInclude(const Aws::String& key, Aws::String&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, std::move(value)); return *this; } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline UploadUrlMetadata& AddHeadersToInclude(Aws::String&& key, Aws::String&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline UploadUrlMetadata& AddHeadersToInclude(const char* key, Aws::String&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, std::move(value)); return *this; } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline UploadUrlMetadata& AddHeadersToInclude(Aws::String&& key, const char* value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::move(key), value); return *this; } + + /** + *

    A map of headers that should be provided when uploading the attached file. + *

    + */ + inline UploadUrlMetadata& AddHeadersToInclude(const char* key, const char* value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, value); return *this; } + + private: + + Aws::String m_url; + bool m_urlHasBeenSet = false; + + Aws::String m_urlExpiry; + bool m_urlExpiryHasBeenSet = false; + + Aws::Map m_headersToInclude; + bool m_headersToIncludeHasBeenSet = false; + }; + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp b/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp index 621ea16dcaa..fa625b2bfc3 100644 --- a/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp @@ -30,9 +30,10 @@ #include #include #include +#include #include #include -#include +#include #include #include #include @@ -40,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -92,7 +94,6 @@ #include #include #include -#include #include #include #include @@ -101,7 +102,6 @@ #include #include #include -#include #include #include #include @@ -592,6 +592,44 @@ DeleteViewOutcome ConnectClient::DeleteView(const DeleteViewRequest& request) co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +BatchGetAttachedFileMetadataOutcome ConnectClient::BatchGetAttachedFileMetadata(const BatchGetAttachedFileMetadataRequest& request) const +{ + AWS_OPERATION_GUARD(BatchGetAttachedFileMetadata); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchGetAttachedFileMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("BatchGetAttachedFileMetadata", "Required field: InstanceId, is not set"); + return BatchGetAttachedFileMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + if (!request.AssociatedResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("BatchGetAttachedFileMetadata", "Required field: AssociatedResourceArn, is not set"); + return BatchGetAttachedFileMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssociatedResourceArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchGetAttachedFileMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, BatchGetAttachedFileMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchGetAttachedFileMetadata", + {{ 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( + [&]()-> BatchGetAttachedFileMetadataOutcome { + 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, BatchGetAttachedFileMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/attached-files/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + return BatchGetAttachedFileMetadataOutcome(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()}}); +} + DisassociateApprovedOriginOutcome ConnectClient::DisassociateApprovedOrigin(const DisassociateApprovedOriginRequest& request) const { AWS_OPERATION_GUARD(DisassociateApprovedOrigin); @@ -670,39 +708,44 @@ AssociateDefaultVocabularyOutcome ConnectClient::AssociateDefaultVocabulary(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisassociatePhoneNumberContactFlowOutcome ConnectClient::DisassociatePhoneNumberContactFlow(const DisassociatePhoneNumberContactFlowRequest& request) const +CompleteAttachedFileUploadOutcome ConnectClient::CompleteAttachedFileUpload(const CompleteAttachedFileUploadRequest& request) const { - AWS_OPERATION_GUARD(DisassociatePhoneNumberContactFlow); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociatePhoneNumberContactFlow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.PhoneNumberIdHasBeenSet()) + AWS_OPERATION_GUARD(CompleteAttachedFileUpload); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CompleteAttachedFileUpload, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DisassociatePhoneNumberContactFlow", "Required field: PhoneNumberId, is not set"); - return DisassociatePhoneNumberContactFlowOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PhoneNumberId]", false)); + AWS_LOGSTREAM_ERROR("CompleteAttachedFileUpload", "Required field: InstanceId, is not set"); + return CompleteAttachedFileUploadOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - if (!request.InstanceIdHasBeenSet()) + if (!request.FileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CompleteAttachedFileUpload", "Required field: FileId, is not set"); + return CompleteAttachedFileUploadOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [FileId]", false)); + } + if (!request.AssociatedResourceArnHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DisassociatePhoneNumberContactFlow", "Required field: InstanceId, is not set"); - return DisassociatePhoneNumberContactFlowOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("CompleteAttachedFileUpload", "Required field: AssociatedResourceArn, is not set"); + return CompleteAttachedFileUploadOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssociatedResourceArn]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociatePhoneNumberContactFlow, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CompleteAttachedFileUpload, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisassociatePhoneNumberContactFlow, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociatePhoneNumberContactFlow", + AWS_OPERATION_CHECK_PTR(meter, CompleteAttachedFileUpload, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CompleteAttachedFileUpload", {{ 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( - [&]()-> DisassociatePhoneNumberContactFlowOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CompleteAttachedFileUploadOutcome { 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, DisassociatePhoneNumberContactFlow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/phone-number/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPhoneNumberId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact-flow"); - return DisassociatePhoneNumberContactFlowOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CompleteAttachedFileUpload, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/attached-files/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetFileId()); + return CompleteAttachedFileUploadOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -964,6 +1007,50 @@ CreateUseCaseOutcome ConnectClient::CreateUseCase(const CreateUseCaseRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteAttachedFileOutcome ConnectClient::DeleteAttachedFile(const DeleteAttachedFileRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteAttachedFile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAttachedFile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAttachedFile", "Required field: InstanceId, is not set"); + return DeleteAttachedFileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + if (!request.FileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAttachedFile", "Required field: FileId, is not set"); + return DeleteAttachedFileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [FileId]", false)); + } + if (!request.AssociatedResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAttachedFile", "Required field: AssociatedResourceArn, is not set"); + return DeleteAttachedFileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssociatedResourceArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAttachedFile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteAttachedFile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAttachedFile", + {{ 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( + [&]()-> DeleteAttachedFileOutcome { + 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, DeleteAttachedFile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/attached-files/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetFileId()); + return DeleteAttachedFileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeInstanceOutcome ConnectClient::DescribeInstance(const DescribeInstanceRequest& request) const { AWS_OPERATION_GUARD(DescribeInstance); @@ -2856,46 +2943,6 @@ DescribeContactFlowOutcome ConnectClient::DescribeContactFlow(const DescribeCont {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisassociateQueueQuickConnectsOutcome ConnectClient::DisassociateQueueQuickConnects(const DisassociateQueueQuickConnectsRequest& request) const -{ - AWS_OPERATION_GUARD(DisassociateQueueQuickConnects); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DisassociateQueueQuickConnects", "Required field: InstanceId, is not set"); - return DisassociateQueueQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.QueueIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DisassociateQueueQuickConnects", "Required field: QueueId, is not set"); - return DisassociateQueueQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [QueueId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateQueueQuickConnects", - {{ 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( - [&]()-> DisassociateQueueQuickConnectsOutcome { - 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, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/queues/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetQueueId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/disassociate-quick-connects"); - return DisassociateQueueQuickConnectsOutcome(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()}}); -} - CreateAgentStatusOutcome ConnectClient::CreateAgentStatus(const CreateAgentStatusRequest& request) const { AWS_OPERATION_GUARD(CreateAgentStatus); @@ -3197,50 +3244,6 @@ DescribeUserOutcome ConnectClient::DescribeUser(const DescribeUserRequest& reque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisassociateLexBotOutcome ConnectClient::DisassociateLexBot(const DisassociateLexBotRequest& request) const -{ - AWS_OPERATION_GUARD(DisassociateLexBot); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateLexBot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DisassociateLexBot", "Required field: InstanceId, is not set"); - return DisassociateLexBotOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.BotNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DisassociateLexBot", "Required field: BotName, is not set"); - return DisassociateLexBotOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BotName]", false)); - } - if (!request.LexRegionHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DisassociateLexBot", "Required field: LexRegion, is not set"); - return DisassociateLexBotOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [LexRegion]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateLexBot, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisassociateLexBot, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateLexBot", - {{ 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( - [&]()-> DisassociateLexBotOutcome { - 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, DisassociateLexBot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/lex-bot"); - return DisassociateLexBotOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - CreateParticipantOutcome ConnectClient::CreateParticipant(const CreateParticipantRequest& request) const { AWS_OPERATION_GUARD(CreateParticipant); diff --git a/generated/src/aws-cpp-sdk-connect/source/ConnectClient1.cpp b/generated/src/aws-cpp-sdk-connect/source/ConnectClient1.cpp index da572f45048..f85c9aaf798 100644 --- a/generated/src/aws-cpp-sdk-connect/source/ConnectClient1.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/ConnectClient1.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -50,7 +51,6 @@ #include #include #include -#include #include #include #include @@ -67,7 +67,6 @@ #include #include #include -#include #include #include #include @@ -94,9 +93,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include @@ -104,21 +105,20 @@ #include #include #include +#include +#include #include -#include #include #include #include #include #include -#include #include #include #include #include #include #include -#include #include #include @@ -602,6 +602,45 @@ GetCurrentUserDataOutcome ConnectClient::GetCurrentUserData(const GetCurrentUser {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DisassociatePhoneNumberContactFlowOutcome ConnectClient::DisassociatePhoneNumberContactFlow(const DisassociatePhoneNumberContactFlowRequest& request) const +{ + AWS_OPERATION_GUARD(DisassociatePhoneNumberContactFlow); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociatePhoneNumberContactFlow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PhoneNumberIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociatePhoneNumberContactFlow", "Required field: PhoneNumberId, is not set"); + return DisassociatePhoneNumberContactFlowOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PhoneNumberId]", false)); + } + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociatePhoneNumberContactFlow", "Required field: InstanceId, is not set"); + return DisassociatePhoneNumberContactFlowOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociatePhoneNumberContactFlow, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DisassociatePhoneNumberContactFlow, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociatePhoneNumberContactFlow", + {{ 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( + [&]()-> DisassociatePhoneNumberContactFlowOutcome { + 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, DisassociatePhoneNumberContactFlow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/phone-number/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPhoneNumberId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact-flow"); + return DisassociatePhoneNumberContactFlowOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListRulesOutcome ConnectClient::ListRules(const ListRulesRequest& request) const { AWS_OPERATION_GUARD(ListRules); @@ -1090,44 +1129,6 @@ StartContactEvaluationOutcome ConnectClient::StartContactEvaluation(const StartC {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UntagResourceOutcome ConnectClient::UntagResource(const UntagResourceRequest& request) const -{ - AWS_OPERATION_GUARD(UntagResource); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ResourceArnHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set"); - return UntagResourceOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); - } - if (!request.TagKeysHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set"); - return UntagResourceOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagResource", - {{ 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( - [&]()-> UntagResourceOutcome { - 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, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/tags/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); - return UntagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DisassociateUserProficienciesOutcome ConnectClient::DisassociateUserProficiencies(const DisassociateUserProficienciesRequest& request) const { AWS_OPERATION_GUARD(DisassociateUserProficiencies); @@ -1655,50 +1656,6 @@ ListRoutingProfileQueuesOutcome ConnectClient::ListRoutingProfileQueues(const Li {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UntagContactOutcome ConnectClient::UntagContact(const UntagContactRequest& request) const -{ - AWS_OPERATION_GUARD(UntagContact); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UntagContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ContactIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UntagContact", "Required field: ContactId, is not set"); - return UntagContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ContactId]", false)); - } - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UntagContact", "Required field: InstanceId, is not set"); - return UntagContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.TagKeysHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UntagContact", "Required field: TagKeys, is not set"); - return UntagContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UntagContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagContact", - {{ 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( - [&]()-> UntagContactOutcome { - 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, UntagContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact/tags/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetContactId()); - return UntagContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DisassociateTrafficDistributionGroupUserOutcome ConnectClient::DisassociateTrafficDistributionGroupUser(const DisassociateTrafficDistributionGroupUserRequest& request) const { AWS_OPERATION_GUARD(DisassociateTrafficDistributionGroupUser); @@ -2532,6 +2489,44 @@ GetContactAttributesOutcome ConnectClient::GetContactAttributes(const GetContact {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +StartAttachedFileUploadOutcome ConnectClient::StartAttachedFileUpload(const StartAttachedFileUploadRequest& request) const +{ + AWS_OPERATION_GUARD(StartAttachedFileUpload); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartAttachedFileUpload, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StartAttachedFileUpload", "Required field: InstanceId, is not set"); + return StartAttachedFileUploadOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + if (!request.AssociatedResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StartAttachedFileUpload", "Required field: AssociatedResourceArn, is not set"); + return StartAttachedFileUploadOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssociatedResourceArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartAttachedFileUpload, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StartAttachedFileUpload, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartAttachedFileUpload", + {{ 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( + [&]()-> StartAttachedFileUploadOutcome { + 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, StartAttachedFileUpload, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/attached-files/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + return StartAttachedFileUploadOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListAnalyticsDataAssociationsOutcome ConnectClient::ListAnalyticsDataAssociations(const ListAnalyticsDataAssociationsRequest& request) const { AWS_OPERATION_GUARD(ListAnalyticsDataAssociations); @@ -2632,6 +2627,46 @@ ListQuickConnectsOutcome ConnectClient::ListQuickConnects(const ListQuickConnect {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DisassociateQueueQuickConnectsOutcome ConnectClient::DisassociateQueueQuickConnects(const DisassociateQueueQuickConnectsRequest& request) const +{ + AWS_OPERATION_GUARD(DisassociateQueueQuickConnects); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateQueueQuickConnects", "Required field: InstanceId, is not set"); + return DisassociateQueueQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + if (!request.QueueIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateQueueQuickConnects", "Required field: QueueId, is not set"); + return DisassociateQueueQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [QueueId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateQueueQuickConnects", + {{ 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( + [&]()-> DisassociateQueueQuickConnectsOutcome { + 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, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/queues/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetQueueId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/disassociate-quick-connects"); + return DisassociateQueueQuickConnectsOutcome(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()}}); +} + SearchContactsOutcome ConnectClient::SearchContacts(const SearchContactsRequest& request) const { AWS_OPERATION_GUARD(SearchContacts); @@ -2852,73 +2887,122 @@ SearchQuickConnectsOutcome ConnectClient::SearchQuickConnects(const SearchQuickC {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListTrafficDistributionGroupUsersOutcome ConnectClient::ListTrafficDistributionGroupUsers(const ListTrafficDistributionGroupUsersRequest& request) const +GetAttachedFileOutcome ConnectClient::GetAttachedFile(const GetAttachedFileRequest& request) const { - AWS_OPERATION_GUARD(ListTrafficDistributionGroupUsers); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.TrafficDistributionGroupIdHasBeenSet()) + AWS_OPERATION_GUARD(GetAttachedFile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAttachedFile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListTrafficDistributionGroupUsers", "Required field: TrafficDistributionGroupId, is not set"); - return ListTrafficDistributionGroupUsersOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TrafficDistributionGroupId]", false)); + AWS_LOGSTREAM_ERROR("GetAttachedFile", "Required field: InstanceId, is not set"); + return GetAttachedFileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.FileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetAttachedFile", "Required field: FileId, is not set"); + return GetAttachedFileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [FileId]", false)); + } + if (!request.AssociatedResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetAttachedFile", "Required field: AssociatedResourceArn, is not set"); + return GetAttachedFileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssociatedResourceArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAttachedFile, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrafficDistributionGroupUsers", + AWS_OPERATION_CHECK_PTR(meter, GetAttachedFile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetAttachedFile", {{ 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( - [&]()-> ListTrafficDistributionGroupUsersOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetAttachedFileOutcome { 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, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution-group/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTrafficDistributionGroupId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/user"); - return ListTrafficDistributionGroupUsersOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAttachedFile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/attached-files/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetFileId()); + return GetAttachedFileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateContactOutcome ConnectClient::UpdateContact(const UpdateContactRequest& request) const +DisassociateLexBotOutcome ConnectClient::DisassociateLexBot(const DisassociateLexBotRequest& request) const { - AWS_OPERATION_GUARD(UpdateContact); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(DisassociateLexBot); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateLexBot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateContact", "Required field: InstanceId, is not set"); - return UpdateContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("DisassociateLexBot", "Required field: InstanceId, is not set"); + return DisassociateLexBotOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - if (!request.ContactIdHasBeenSet()) + if (!request.BotNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateLexBot", "Required field: BotName, is not set"); + return DisassociateLexBotOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BotName]", false)); + } + if (!request.LexRegionHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateContact", "Required field: ContactId, is not set"); - return UpdateContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ContactId]", false)); + AWS_LOGSTREAM_ERROR("DisassociateLexBot", "Required field: LexRegion, is not set"); + return DisassociateLexBotOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [LexRegion]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateLexBot, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContact", + AWS_OPERATION_CHECK_PTR(meter, DisassociateLexBot, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateLexBot", {{ 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( - [&]()-> UpdateContactOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisassociateLexBotOutcome { 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, UpdateContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contacts/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateLexBot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetContactId()); - return UpdateContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegments("/lex-bot"); + return DisassociateLexBotOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListTrafficDistributionGroupUsersOutcome ConnectClient::ListTrafficDistributionGroupUsers(const ListTrafficDistributionGroupUsersRequest& request) const +{ + AWS_OPERATION_GUARD(ListTrafficDistributionGroupUsers); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.TrafficDistributionGroupIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListTrafficDistributionGroupUsers", "Required field: TrafficDistributionGroupId, is not set"); + return ListTrafficDistributionGroupUsersOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TrafficDistributionGroupId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrafficDistributionGroupUsers", + {{ 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( + [&]()-> ListTrafficDistributionGroupUsersOutcome { + 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, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution-group/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTrafficDistributionGroupId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/user"); + return ListTrafficDistributionGroupUsersOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -3113,33 +3197,6 @@ ListContactReferencesOutcome ConnectClient::ListContactReferences(const ListCont {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateContactAttributesOutcome ConnectClient::UpdateContactAttributes(const UpdateContactAttributesRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateContactAttributes); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContactAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContactAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateContactAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContactAttributes", - {{ 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( - [&]()-> UpdateContactAttributesOutcome { - 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, UpdateContactAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact/attributes"); - return UpdateContactAttributesOutcome(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()}}); -} - ListContactEvaluationsOutcome ConnectClient::ListContactEvaluations(const ListContactEvaluationsRequest& request) const { AWS_OPERATION_GUARD(ListContactEvaluations); @@ -3338,45 +3395,6 @@ ListSecurityProfileApplicationsOutcome ConnectClient::ListSecurityProfileApplica {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateAgentStatusOutcome ConnectClient::UpdateAgentStatus(const UpdateAgentStatusRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateAgentStatus); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateAgentStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateAgentStatus", "Required field: InstanceId, is not set"); - return UpdateAgentStatusOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.AgentStatusIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateAgentStatus", "Required field: AgentStatusId, is not set"); - return UpdateAgentStatusOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AgentStatusId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateAgentStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateAgentStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateAgentStatus", - {{ 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( - [&]()-> UpdateAgentStatusOutcome { - 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, UpdateAgentStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/agent-status/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAgentStatusId()); - return UpdateAgentStatusOutcome(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()}}); -} - ListUserProficienciesOutcome ConnectClient::ListUserProficiencies(const ListUserProficienciesRequest& request) const { AWS_OPERATION_GUARD(ListUserProficiencies); diff --git a/generated/src/aws-cpp-sdk-connect/source/ConnectClient2.cpp b/generated/src/aws-cpp-sdk-connect/source/ConnectClient2.cpp index 1e1bac3f4b1..acf5e28e368 100644 --- a/generated/src/aws-cpp-sdk-connect/source/ConnectClient2.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/ConnectClient2.cpp @@ -42,8 +42,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -52,6 +54,7 @@ #include #include #include +#include #include #include #include @@ -60,10 +63,12 @@ #include #include #include +#include #include #include #include #include +#include #include @@ -874,6 +879,45 @@ UpdateRoutingProfileNameOutcome ConnectClient::UpdateRoutingProfileName(const Up {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateContactOutcome ConnectClient::UpdateContact(const UpdateContactRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateContact); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateContact", "Required field: InstanceId, is not set"); + return UpdateContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + if (!request.ContactIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateContact", "Required field: ContactId, is not set"); + return UpdateContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ContactId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContact", + {{ 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( + [&]()-> UpdateContactOutcome { + 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, UpdateContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contacts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetContactId()); + return UpdateContactOutcome(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()}}); +} + UpdateViewMetadataOutcome ConnectClient::UpdateViewMetadata(const UpdateViewMetadataRequest& request) const { AWS_OPERATION_GUARD(UpdateViewMetadata); @@ -954,6 +998,50 @@ UpdateRoutingProfileQueuesOutcome ConnectClient::UpdateRoutingProfileQueues(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UntagContactOutcome ConnectClient::UntagContact(const UntagContactRequest& request) const +{ + AWS_OPERATION_GUARD(UntagContact); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UntagContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ContactIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagContact", "Required field: ContactId, is not set"); + return UntagContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ContactId]", false)); + } + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagContact", "Required field: InstanceId, is not set"); + return UntagContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + if (!request.TagKeysHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagContact", "Required field: TagKeys, is not set"); + return UntagContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UntagContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagContact", + {{ 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( + [&]()-> UntagContactOutcome { + 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, UntagContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact/tags/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetContactId()); + return UntagContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateUserIdentityInfoOutcome ConnectClient::UpdateUserIdentityInfo(const UpdateUserIdentityInfoRequest& request) const { AWS_OPERATION_GUARD(UpdateUserIdentityInfo); @@ -1276,6 +1364,33 @@ UpdateUserProficienciesOutcome ConnectClient::UpdateUserProficiencies(const Upda {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateContactAttributesOutcome ConnectClient::UpdateContactAttributes(const UpdateContactAttributesRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateContactAttributes); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContactAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContactAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateContactAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContactAttributes", + {{ 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( + [&]()-> UpdateContactAttributesOutcome { + 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, UpdateContactAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact/attributes"); + return UpdateContactAttributesOutcome(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()}}); +} + UpdateRoutingProfileAgentAvailabilityTimerOutcome ConnectClient::UpdateRoutingProfileAgentAvailabilityTimer(const UpdateRoutingProfileAgentAvailabilityTimerRequest& request) const { AWS_OPERATION_GUARD(UpdateRoutingProfileAgentAvailabilityTimer); @@ -1596,6 +1711,44 @@ UpdateContactFlowMetadataOutcome ConnectClient::UpdateContactFlowMetadata(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UntagResourceOutcome ConnectClient::UntagResource(const UntagResourceRequest& request) const +{ + AWS_OPERATION_GUARD(UntagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + if (!request.TagKeysHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagResource", + {{ 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( + [&]()-> UntagResourceOutcome { + 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, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/tags/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); + return UntagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateEvaluationFormOutcome ConnectClient::UpdateEvaluationForm(const UpdateEvaluationFormRequest& request) const { AWS_OPERATION_GUARD(UpdateEvaluationForm); @@ -1755,3 +1908,42 @@ UpdateUserRoutingProfileOutcome ConnectClient::UpdateUserRoutingProfile(const Up {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateAgentStatusOutcome ConnectClient::UpdateAgentStatus(const UpdateAgentStatusRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateAgentStatus); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateAgentStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateAgentStatus", "Required field: InstanceId, is not set"); + return UpdateAgentStatusOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + if (!request.AgentStatusIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateAgentStatus", "Required field: AgentStatusId, is not set"); + return UpdateAgentStatusOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AgentStatusId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateAgentStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateAgentStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateAgentStatus", + {{ 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( + [&]()-> UpdateAgentStatusOutcome { + 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, UpdateAgentStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/agent-status/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAgentStatusId()); + return UpdateAgentStatusOutcome(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()}}); +} + diff --git a/generated/src/aws-cpp-sdk-connect/source/ConnectErrors.cpp b/generated/src/aws-cpp-sdk-connect/source/ConnectErrors.cpp index d181f184a47..7d4c60fdf90 100644 --- a/generated/src/aws-cpp-sdk-connect/source/ConnectErrors.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/ConnectErrors.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include using namespace Aws::Client; @@ -38,6 +39,12 @@ template<> AWS_CONNECT_API ResourceInUseException ConnectError::GetModeledError( return ResourceInUseException(this->GetJsonPayload().View()); } +template<> AWS_CONNECT_API InvalidRequestException ConnectError::GetModeledError() +{ + assert(this->GetErrorType() == ConnectErrors::INVALID_REQUEST); + return InvalidRequestException(this->GetJsonPayload().View()); +} + template<> AWS_CONNECT_API InvalidContactFlowModuleException ConnectError::GetModeledError() { assert(this->GetErrorType() == ConnectErrors::INVALID_CONTACT_FLOW_MODULE); diff --git a/generated/src/aws-cpp-sdk-connect/source/model/AttachedFile.cpp b/generated/src/aws-cpp-sdk-connect/source/model/AttachedFile.cpp new file mode 100644 index 00000000000..74d2b6567e5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/AttachedFile.cpp @@ -0,0 +1,206 @@ +/** + * 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 Connect +{ +namespace Model +{ + +AttachedFile::AttachedFile() : + m_creationTimeHasBeenSet(false), + m_fileArnHasBeenSet(false), + m_fileIdHasBeenSet(false), + m_fileNameHasBeenSet(false), + m_fileSizeInBytes(0), + m_fileSizeInBytesHasBeenSet(false), + m_fileStatus(FileStatusType::NOT_SET), + m_fileStatusHasBeenSet(false), + m_createdByHasBeenSet(false), + m_fileUseCaseType(FileUseCaseType::NOT_SET), + m_fileUseCaseTypeHasBeenSet(false), + m_associatedResourceArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +AttachedFile::AttachedFile(JsonView jsonValue) : + m_creationTimeHasBeenSet(false), + m_fileArnHasBeenSet(false), + m_fileIdHasBeenSet(false), + m_fileNameHasBeenSet(false), + m_fileSizeInBytes(0), + m_fileSizeInBytesHasBeenSet(false), + m_fileStatus(FileStatusType::NOT_SET), + m_fileStatusHasBeenSet(false), + m_createdByHasBeenSet(false), + m_fileUseCaseType(FileUseCaseType::NOT_SET), + m_fileUseCaseTypeHasBeenSet(false), + m_associatedResourceArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ + *this = jsonValue; +} + +AttachedFile& AttachedFile::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("CreationTime")) + { + m_creationTime = jsonValue.GetString("CreationTime"); + + m_creationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("FileArn")) + { + m_fileArn = jsonValue.GetString("FileArn"); + + m_fileArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("FileId")) + { + m_fileId = jsonValue.GetString("FileId"); + + m_fileIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("FileName")) + { + m_fileName = jsonValue.GetString("FileName"); + + m_fileNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("FileSizeInBytes")) + { + m_fileSizeInBytes = jsonValue.GetInt64("FileSizeInBytes"); + + m_fileSizeInBytesHasBeenSet = true; + } + + if(jsonValue.ValueExists("FileStatus")) + { + m_fileStatus = FileStatusTypeMapper::GetFileStatusTypeForName(jsonValue.GetString("FileStatus")); + + m_fileStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreatedBy")) + { + m_createdBy = jsonValue.GetObject("CreatedBy"); + + m_createdByHasBeenSet = true; + } + + if(jsonValue.ValueExists("FileUseCaseType")) + { + m_fileUseCaseType = FileUseCaseTypeMapper::GetFileUseCaseTypeForName(jsonValue.GetString("FileUseCaseType")); + + m_fileUseCaseTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("AssociatedResourceArn")) + { + m_associatedResourceArn = jsonValue.GetString("AssociatedResourceArn"); + + m_associatedResourceArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("Tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("Tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + m_tagsHasBeenSet = true; + } + + return *this; +} + +JsonValue AttachedFile::Jsonize() const +{ + JsonValue payload; + + if(m_creationTimeHasBeenSet) + { + payload.WithString("CreationTime", m_creationTime); + + } + + if(m_fileArnHasBeenSet) + { + payload.WithString("FileArn", m_fileArn); + + } + + if(m_fileIdHasBeenSet) + { + payload.WithString("FileId", m_fileId); + + } + + if(m_fileNameHasBeenSet) + { + payload.WithString("FileName", m_fileName); + + } + + if(m_fileSizeInBytesHasBeenSet) + { + payload.WithInt64("FileSizeInBytes", m_fileSizeInBytes); + + } + + if(m_fileStatusHasBeenSet) + { + payload.WithString("FileStatus", FileStatusTypeMapper::GetNameForFileStatusType(m_fileStatus)); + } + + if(m_createdByHasBeenSet) + { + payload.WithObject("CreatedBy", m_createdBy.Jsonize()); + + } + + if(m_fileUseCaseTypeHasBeenSet) + { + payload.WithString("FileUseCaseType", FileUseCaseTypeMapper::GetNameForFileUseCaseType(m_fileUseCaseType)); + } + + if(m_associatedResourceArnHasBeenSet) + { + payload.WithString("AssociatedResourceArn", m_associatedResourceArn); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("Tags", std::move(tagsJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/model/AttachedFileError.cpp b/generated/src/aws-cpp-sdk-connect/source/model/AttachedFileError.cpp new file mode 100644 index 00000000000..798c610508b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/AttachedFileError.cpp @@ -0,0 +1,89 @@ +/** + * 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 Connect +{ +namespace Model +{ + +AttachedFileError::AttachedFileError() : + m_errorCodeHasBeenSet(false), + m_errorMessageHasBeenSet(false), + m_fileIdHasBeenSet(false) +{ +} + +AttachedFileError::AttachedFileError(JsonView jsonValue) : + m_errorCodeHasBeenSet(false), + m_errorMessageHasBeenSet(false), + m_fileIdHasBeenSet(false) +{ + *this = jsonValue; +} + +AttachedFileError& AttachedFileError::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ErrorCode")) + { + m_errorCode = jsonValue.GetString("ErrorCode"); + + m_errorCodeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ErrorMessage")) + { + m_errorMessage = jsonValue.GetString("ErrorMessage"); + + m_errorMessageHasBeenSet = true; + } + + if(jsonValue.ValueExists("FileId")) + { + m_fileId = jsonValue.GetString("FileId"); + + m_fileIdHasBeenSet = true; + } + + return *this; +} + +JsonValue AttachedFileError::Jsonize() const +{ + JsonValue payload; + + if(m_errorCodeHasBeenSet) + { + payload.WithString("ErrorCode", m_errorCode); + + } + + if(m_errorMessageHasBeenSet) + { + payload.WithString("ErrorMessage", m_errorMessage); + + } + + if(m_fileIdHasBeenSet) + { + payload.WithString("FileId", m_fileId); + + } + + return payload; +} + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/model/AttachedFileInvalidRequestExceptionReason.cpp b/generated/src/aws-cpp-sdk-connect/source/model/AttachedFileInvalidRequestExceptionReason.cpp new file mode 100644 index 00000000000..6e71a49e5d9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/AttachedFileInvalidRequestExceptionReason.cpp @@ -0,0 +1,79 @@ +/** + * 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 Connect + { + namespace Model + { + namespace AttachedFileInvalidRequestExceptionReasonMapper + { + + static const int INVALID_FILE_SIZE_HASH = HashingUtils::HashString("INVALID_FILE_SIZE"); + static const int INVALID_FILE_TYPE_HASH = HashingUtils::HashString("INVALID_FILE_TYPE"); + static const int INVALID_FILE_NAME_HASH = HashingUtils::HashString("INVALID_FILE_NAME"); + + + AttachedFileInvalidRequestExceptionReason GetAttachedFileInvalidRequestExceptionReasonForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == INVALID_FILE_SIZE_HASH) + { + return AttachedFileInvalidRequestExceptionReason::INVALID_FILE_SIZE; + } + else if (hashCode == INVALID_FILE_TYPE_HASH) + { + return AttachedFileInvalidRequestExceptionReason::INVALID_FILE_TYPE; + } + else if (hashCode == INVALID_FILE_NAME_HASH) + { + return AttachedFileInvalidRequestExceptionReason::INVALID_FILE_NAME; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AttachedFileInvalidRequestExceptionReason::NOT_SET; + } + + Aws::String GetNameForAttachedFileInvalidRequestExceptionReason(AttachedFileInvalidRequestExceptionReason enumValue) + { + switch(enumValue) + { + case AttachedFileInvalidRequestExceptionReason::NOT_SET: + return {}; + case AttachedFileInvalidRequestExceptionReason::INVALID_FILE_SIZE: + return "INVALID_FILE_SIZE"; + case AttachedFileInvalidRequestExceptionReason::INVALID_FILE_TYPE: + return "INVALID_FILE_TYPE"; + case AttachedFileInvalidRequestExceptionReason::INVALID_FILE_NAME: + return "INVALID_FILE_NAME"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AttachedFileInvalidRequestExceptionReasonMapper + } // namespace Model + } // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/model/BatchGetAttachedFileMetadataRequest.cpp b/generated/src/aws-cpp-sdk-connect/source/model/BatchGetAttachedFileMetadataRequest.cpp new file mode 100644 index 00000000000..c0cc8289f92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/BatchGetAttachedFileMetadataRequest.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +BatchGetAttachedFileMetadataRequest::BatchGetAttachedFileMetadataRequest() : + m_fileIdsHasBeenSet(false), + m_instanceIdHasBeenSet(false), + m_associatedResourceArnHasBeenSet(false) +{ +} + +Aws::String BatchGetAttachedFileMetadataRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_fileIdsHasBeenSet) + { + Aws::Utils::Array fileIdsJsonList(m_fileIds.size()); + for(unsigned fileIdsIndex = 0; fileIdsIndex < fileIdsJsonList.GetLength(); ++fileIdsIndex) + { + fileIdsJsonList[fileIdsIndex].AsString(m_fileIds[fileIdsIndex]); + } + payload.WithArray("FileIds", std::move(fileIdsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +void BatchGetAttachedFileMetadataRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_associatedResourceArnHasBeenSet) + { + ss << m_associatedResourceArn; + uri.AddQueryStringParameter("associatedResourceArn", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connect/source/model/BatchGetAttachedFileMetadataResult.cpp b/generated/src/aws-cpp-sdk-connect/source/model/BatchGetAttachedFileMetadataResult.cpp new file mode 100644 index 00000000000..484323b5786 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/BatchGetAttachedFileMetadataResult.cpp @@ -0,0 +1,60 @@ +/** + * 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::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +BatchGetAttachedFileMetadataResult::BatchGetAttachedFileMetadataResult() +{ +} + +BatchGetAttachedFileMetadataResult::BatchGetAttachedFileMetadataResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +BatchGetAttachedFileMetadataResult& BatchGetAttachedFileMetadataResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Files")) + { + Aws::Utils::Array filesJsonList = jsonValue.GetArray("Files"); + for(unsigned filesIndex = 0; filesIndex < filesJsonList.GetLength(); ++filesIndex) + { + m_files.push_back(filesJsonList[filesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("Errors")) + { + Aws::Utils::Array errorsJsonList = jsonValue.GetArray("Errors"); + for(unsigned errorsIndex = 0; errorsIndex < errorsJsonList.GetLength(); ++errorsIndex) + { + m_errors.push_back(errorsJsonList[errorsIndex].AsObject()); + } + } + + + 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-connect/source/model/CompleteAttachedFileUploadRequest.cpp b/generated/src/aws-cpp-sdk-connect/source/model/CompleteAttachedFileUploadRequest.cpp new file mode 100644 index 00000000000..d3bd6c90353 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/CompleteAttachedFileUploadRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +CompleteAttachedFileUploadRequest::CompleteAttachedFileUploadRequest() : + m_instanceIdHasBeenSet(false), + m_fileIdHasBeenSet(false), + m_associatedResourceArnHasBeenSet(false) +{ +} + +Aws::String CompleteAttachedFileUploadRequest::SerializePayload() const +{ + return {}; +} + +void CompleteAttachedFileUploadRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_associatedResourceArnHasBeenSet) + { + ss << m_associatedResourceArn; + uri.AddQueryStringParameter("associatedResourceArn", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connect/source/model/CompleteAttachedFileUploadResult.cpp b/generated/src/aws-cpp-sdk-connect/source/model/CompleteAttachedFileUploadResult.cpp new file mode 100644 index 00000000000..2dd479f894d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/CompleteAttachedFileUploadResult.cpp @@ -0,0 +1,42 @@ +/** + * 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::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CompleteAttachedFileUploadResult::CompleteAttachedFileUploadResult() +{ +} + +CompleteAttachedFileUploadResult::CompleteAttachedFileUploadResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CompleteAttachedFileUploadResult& CompleteAttachedFileUploadResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + 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-connect/source/model/CreatedByInfo.cpp b/generated/src/aws-cpp-sdk-connect/source/model/CreatedByInfo.cpp new file mode 100644 index 00000000000..7b241ea8fd1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/CreatedByInfo.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 Connect +{ +namespace Model +{ + +CreatedByInfo::CreatedByInfo() : + m_connectUserArnHasBeenSet(false), + m_aWSIdentityArnHasBeenSet(false) +{ +} + +CreatedByInfo::CreatedByInfo(JsonView jsonValue) : + m_connectUserArnHasBeenSet(false), + m_aWSIdentityArnHasBeenSet(false) +{ + *this = jsonValue; +} + +CreatedByInfo& CreatedByInfo::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ConnectUserArn")) + { + m_connectUserArn = jsonValue.GetString("ConnectUserArn"); + + m_connectUserArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("AWSIdentityArn")) + { + m_aWSIdentityArn = jsonValue.GetString("AWSIdentityArn"); + + m_aWSIdentityArnHasBeenSet = true; + } + + return *this; +} + +JsonValue CreatedByInfo::Jsonize() const +{ + JsonValue payload; + + if(m_connectUserArnHasBeenSet) + { + payload.WithString("ConnectUserArn", m_connectUserArn); + + } + + if(m_aWSIdentityArnHasBeenSet) + { + payload.WithString("AWSIdentityArn", m_aWSIdentityArn); + + } + + return payload; +} + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/model/DeleteAttachedFileRequest.cpp b/generated/src/aws-cpp-sdk-connect/source/model/DeleteAttachedFileRequest.cpp new file mode 100644 index 00000000000..c59fd2d81a4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/DeleteAttachedFileRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +DeleteAttachedFileRequest::DeleteAttachedFileRequest() : + m_instanceIdHasBeenSet(false), + m_fileIdHasBeenSet(false), + m_associatedResourceArnHasBeenSet(false) +{ +} + +Aws::String DeleteAttachedFileRequest::SerializePayload() const +{ + return {}; +} + +void DeleteAttachedFileRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_associatedResourceArnHasBeenSet) + { + ss << m_associatedResourceArn; + uri.AddQueryStringParameter("associatedResourceArn", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connect/source/model/DeleteAttachedFileResult.cpp b/generated/src/aws-cpp-sdk-connect/source/model/DeleteAttachedFileResult.cpp new file mode 100644 index 00000000000..d939e030520 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/DeleteAttachedFileResult.cpp @@ -0,0 +1,42 @@ +/** + * 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::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteAttachedFileResult::DeleteAttachedFileResult() +{ +} + +DeleteAttachedFileResult::DeleteAttachedFileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteAttachedFileResult& DeleteAttachedFileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + 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-connect/source/model/DownloadUrlMetadata.cpp b/generated/src/aws-cpp-sdk-connect/source/model/DownloadUrlMetadata.cpp new file mode 100644 index 00000000000..310e66dd42d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/DownloadUrlMetadata.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 Connect +{ +namespace Model +{ + +DownloadUrlMetadata::DownloadUrlMetadata() : + m_urlHasBeenSet(false), + m_urlExpiryHasBeenSet(false) +{ +} + +DownloadUrlMetadata::DownloadUrlMetadata(JsonView jsonValue) : + m_urlHasBeenSet(false), + m_urlExpiryHasBeenSet(false) +{ + *this = jsonValue; +} + +DownloadUrlMetadata& DownloadUrlMetadata::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Url")) + { + m_url = jsonValue.GetString("Url"); + + m_urlHasBeenSet = true; + } + + if(jsonValue.ValueExists("UrlExpiry")) + { + m_urlExpiry = jsonValue.GetString("UrlExpiry"); + + m_urlExpiryHasBeenSet = true; + } + + return *this; +} + +JsonValue DownloadUrlMetadata::Jsonize() const +{ + JsonValue payload; + + if(m_urlHasBeenSet) + { + payload.WithString("Url", m_url); + + } + + if(m_urlExpiryHasBeenSet) + { + payload.WithString("UrlExpiry", m_urlExpiry); + + } + + return payload; +} + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/model/FileStatusType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/FileStatusType.cpp new file mode 100644 index 00000000000..574a0c92948 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/FileStatusType.cpp @@ -0,0 +1,86 @@ +/** + * 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 Connect + { + namespace Model + { + namespace FileStatusTypeMapper + { + + static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); + static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + + + FileStatusType GetFileStatusTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == APPROVED_HASH) + { + return FileStatusType::APPROVED; + } + else if (hashCode == REJECTED_HASH) + { + return FileStatusType::REJECTED; + } + else if (hashCode == PROCESSING_HASH) + { + return FileStatusType::PROCESSING; + } + else if (hashCode == FAILED_HASH) + { + return FileStatusType::FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return FileStatusType::NOT_SET; + } + + Aws::String GetNameForFileStatusType(FileStatusType enumValue) + { + switch(enumValue) + { + case FileStatusType::NOT_SET: + return {}; + case FileStatusType::APPROVED: + return "APPROVED"; + case FileStatusType::REJECTED: + return "REJECTED"; + case FileStatusType::PROCESSING: + return "PROCESSING"; + case FileStatusType::FAILED: + return "FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace FileStatusTypeMapper + } // namespace Model + } // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/model/FileUseCaseType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/FileUseCaseType.cpp new file mode 100644 index 00000000000..aa4995b6932 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/FileUseCaseType.cpp @@ -0,0 +1,65 @@ +/** + * 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 Connect + { + namespace Model + { + namespace FileUseCaseTypeMapper + { + + static const int ATTACHMENT_HASH = HashingUtils::HashString("ATTACHMENT"); + + + FileUseCaseType GetFileUseCaseTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ATTACHMENT_HASH) + { + return FileUseCaseType::ATTACHMENT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return FileUseCaseType::NOT_SET; + } + + Aws::String GetNameForFileUseCaseType(FileUseCaseType enumValue) + { + switch(enumValue) + { + case FileUseCaseType::NOT_SET: + return {}; + case FileUseCaseType::ATTACHMENT: + return "ATTACHMENT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace FileUseCaseTypeMapper + } // namespace Model + } // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/model/GetAttachedFileRequest.cpp b/generated/src/aws-cpp-sdk-connect/source/model/GetAttachedFileRequest.cpp new file mode 100644 index 00000000000..47d8205be58 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/GetAttachedFileRequest.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetAttachedFileRequest::GetAttachedFileRequest() : + m_instanceIdHasBeenSet(false), + m_fileIdHasBeenSet(false), + m_urlExpiryInSeconds(0), + m_urlExpiryInSecondsHasBeenSet(false), + m_associatedResourceArnHasBeenSet(false) +{ +} + +Aws::String GetAttachedFileRequest::SerializePayload() const +{ + return {}; +} + +void GetAttachedFileRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_urlExpiryInSecondsHasBeenSet) + { + ss << m_urlExpiryInSeconds; + uri.AddQueryStringParameter("urlExpiryInSeconds", ss.str()); + ss.str(""); + } + + if(m_associatedResourceArnHasBeenSet) + { + ss << m_associatedResourceArn; + uri.AddQueryStringParameter("associatedResourceArn", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connect/source/model/GetAttachedFileResult.cpp b/generated/src/aws-cpp-sdk-connect/source/model/GetAttachedFileResult.cpp new file mode 100644 index 00000000000..ca45c6234d8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/GetAttachedFileResult.cpp @@ -0,0 +1,117 @@ +/** + * 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::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetAttachedFileResult::GetAttachedFileResult() : + m_fileStatus(FileStatusType::NOT_SET), + m_fileSizeInBytes(0), + m_fileUseCaseType(FileUseCaseType::NOT_SET) +{ +} + +GetAttachedFileResult::GetAttachedFileResult(const Aws::AmazonWebServiceResult& result) : + m_fileStatus(FileStatusType::NOT_SET), + m_fileSizeInBytes(0), + m_fileUseCaseType(FileUseCaseType::NOT_SET) +{ + *this = result; +} + +GetAttachedFileResult& GetAttachedFileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("FileArn")) + { + m_fileArn = jsonValue.GetString("FileArn"); + + } + + if(jsonValue.ValueExists("FileId")) + { + m_fileId = jsonValue.GetString("FileId"); + + } + + if(jsonValue.ValueExists("CreationTime")) + { + m_creationTime = jsonValue.GetString("CreationTime"); + + } + + if(jsonValue.ValueExists("FileStatus")) + { + m_fileStatus = FileStatusTypeMapper::GetFileStatusTypeForName(jsonValue.GetString("FileStatus")); + + } + + if(jsonValue.ValueExists("FileName")) + { + m_fileName = jsonValue.GetString("FileName"); + + } + + if(jsonValue.ValueExists("FileSizeInBytes")) + { + m_fileSizeInBytes = jsonValue.GetInt64("FileSizeInBytes"); + + } + + if(jsonValue.ValueExists("AssociatedResourceArn")) + { + m_associatedResourceArn = jsonValue.GetString("AssociatedResourceArn"); + + } + + if(jsonValue.ValueExists("FileUseCaseType")) + { + m_fileUseCaseType = FileUseCaseTypeMapper::GetFileUseCaseTypeForName(jsonValue.GetString("FileUseCaseType")); + + } + + if(jsonValue.ValueExists("CreatedBy")) + { + m_createdBy = jsonValue.GetObject("CreatedBy"); + + } + + if(jsonValue.ValueExists("DownloadUrlMetadata")) + { + m_downloadUrlMetadata = jsonValue.GetObject("DownloadUrlMetadata"); + + } + + if(jsonValue.ValueExists("Tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("Tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + 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-connect/source/model/InvalidRequestException.cpp b/generated/src/aws-cpp-sdk-connect/source/model/InvalidRequestException.cpp new file mode 100644 index 00000000000..9c86f872f73 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/InvalidRequestException.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 Connect +{ +namespace Model +{ + +InvalidRequestException::InvalidRequestException() : + m_messageHasBeenSet(false), + m_reasonHasBeenSet(false) +{ +} + +InvalidRequestException::InvalidRequestException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_reasonHasBeenSet(false) +{ + *this = jsonValue; +} + +InvalidRequestException& InvalidRequestException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Message")) + { + m_message = jsonValue.GetString("Message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("Reason")) + { + m_reason = jsonValue.GetObject("Reason"); + + m_reasonHasBeenSet = true; + } + + return *this; +} + +JsonValue InvalidRequestException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("Message", m_message); + + } + + if(m_reasonHasBeenSet) + { + payload.WithObject("Reason", m_reason.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/model/InvalidRequestExceptionReason.cpp b/generated/src/aws-cpp-sdk-connect/source/model/InvalidRequestExceptionReason.cpp new file mode 100644 index 00000000000..c89a28323ca --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/InvalidRequestExceptionReason.cpp @@ -0,0 +1,60 @@ +/** + * 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 Connect +{ +namespace Model +{ + +InvalidRequestExceptionReason::InvalidRequestExceptionReason() : + m_attachedFileInvalidRequestExceptionReason(AttachedFileInvalidRequestExceptionReason::NOT_SET), + m_attachedFileInvalidRequestExceptionReasonHasBeenSet(false) +{ +} + +InvalidRequestExceptionReason::InvalidRequestExceptionReason(JsonView jsonValue) : + m_attachedFileInvalidRequestExceptionReason(AttachedFileInvalidRequestExceptionReason::NOT_SET), + m_attachedFileInvalidRequestExceptionReasonHasBeenSet(false) +{ + *this = jsonValue; +} + +InvalidRequestExceptionReason& InvalidRequestExceptionReason::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AttachedFileInvalidRequestExceptionReason")) + { + m_attachedFileInvalidRequestExceptionReason = AttachedFileInvalidRequestExceptionReasonMapper::GetAttachedFileInvalidRequestExceptionReasonForName(jsonValue.GetString("AttachedFileInvalidRequestExceptionReason")); + + m_attachedFileInvalidRequestExceptionReasonHasBeenSet = true; + } + + return *this; +} + +JsonValue InvalidRequestExceptionReason::Jsonize() const +{ + JsonValue payload; + + if(m_attachedFileInvalidRequestExceptionReasonHasBeenSet) + { + payload.WithString("AttachedFileInvalidRequestExceptionReason", AttachedFileInvalidRequestExceptionReasonMapper::GetNameForAttachedFileInvalidRequestExceptionReason(m_attachedFileInvalidRequestExceptionReason)); + } + + return payload; +} + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connect/source/model/StartAttachedFileUploadRequest.cpp b/generated/src/aws-cpp-sdk-connect/source/model/StartAttachedFileUploadRequest.cpp new file mode 100644 index 00000000000..59aeb0e4108 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/StartAttachedFileUploadRequest.cpp @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +StartAttachedFileUploadRequest::StartAttachedFileUploadRequest() : + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_instanceIdHasBeenSet(false), + m_fileNameHasBeenSet(false), + m_fileSizeInBytes(0), + m_fileSizeInBytesHasBeenSet(false), + m_urlExpiryInSeconds(0), + m_urlExpiryInSecondsHasBeenSet(false), + m_fileUseCaseType(FileUseCaseType::NOT_SET), + m_fileUseCaseTypeHasBeenSet(false), + m_associatedResourceArnHasBeenSet(false), + m_createdByHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String StartAttachedFileUploadRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_fileNameHasBeenSet) + { + payload.WithString("FileName", m_fileName); + + } + + if(m_fileSizeInBytesHasBeenSet) + { + payload.WithInt64("FileSizeInBytes", m_fileSizeInBytes); + + } + + if(m_urlExpiryInSecondsHasBeenSet) + { + payload.WithInteger("UrlExpiryInSeconds", m_urlExpiryInSeconds); + + } + + if(m_fileUseCaseTypeHasBeenSet) + { + payload.WithString("FileUseCaseType", FileUseCaseTypeMapper::GetNameForFileUseCaseType(m_fileUseCaseType)); + } + + if(m_createdByHasBeenSet) + { + payload.WithObject("CreatedBy", m_createdBy.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("Tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + +void StartAttachedFileUploadRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_associatedResourceArnHasBeenSet) + { + ss << m_associatedResourceArn; + uri.AddQueryStringParameter("associatedResourceArn", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connect/source/model/StartAttachedFileUploadResult.cpp b/generated/src/aws-cpp-sdk-connect/source/model/StartAttachedFileUploadResult.cpp new file mode 100644 index 00000000000..3a2c848efa5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/StartAttachedFileUploadResult.cpp @@ -0,0 +1,80 @@ +/** + * 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::Connect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartAttachedFileUploadResult::StartAttachedFileUploadResult() : + m_fileStatus(FileStatusType::NOT_SET) +{ +} + +StartAttachedFileUploadResult::StartAttachedFileUploadResult(const Aws::AmazonWebServiceResult& result) : + m_fileStatus(FileStatusType::NOT_SET) +{ + *this = result; +} + +StartAttachedFileUploadResult& StartAttachedFileUploadResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("FileArn")) + { + m_fileArn = jsonValue.GetString("FileArn"); + + } + + if(jsonValue.ValueExists("FileId")) + { + m_fileId = jsonValue.GetString("FileId"); + + } + + if(jsonValue.ValueExists("CreationTime")) + { + m_creationTime = jsonValue.GetString("CreationTime"); + + } + + if(jsonValue.ValueExists("FileStatus")) + { + m_fileStatus = FileStatusTypeMapper::GetFileStatusTypeForName(jsonValue.GetString("FileStatus")); + + } + + if(jsonValue.ValueExists("CreatedBy")) + { + m_createdBy = jsonValue.GetObject("CreatedBy"); + + } + + if(jsonValue.ValueExists("UploadUrlMetadata")) + { + m_uploadUrlMetadata = jsonValue.GetObject("UploadUrlMetadata"); + + } + + + 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-connect/source/model/UploadUrlMetadata.cpp b/generated/src/aws-cpp-sdk-connect/source/model/UploadUrlMetadata.cpp new file mode 100644 index 00000000000..cb2ac7e1a1a --- /dev/null +++ b/generated/src/aws-cpp-sdk-connect/source/model/UploadUrlMetadata.cpp @@ -0,0 +1,97 @@ +/** + * 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 Connect +{ +namespace Model +{ + +UploadUrlMetadata::UploadUrlMetadata() : + m_urlHasBeenSet(false), + m_urlExpiryHasBeenSet(false), + m_headersToIncludeHasBeenSet(false) +{ +} + +UploadUrlMetadata::UploadUrlMetadata(JsonView jsonValue) : + m_urlHasBeenSet(false), + m_urlExpiryHasBeenSet(false), + m_headersToIncludeHasBeenSet(false) +{ + *this = jsonValue; +} + +UploadUrlMetadata& UploadUrlMetadata::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Url")) + { + m_url = jsonValue.GetString("Url"); + + m_urlHasBeenSet = true; + } + + if(jsonValue.ValueExists("UrlExpiry")) + { + m_urlExpiry = jsonValue.GetString("UrlExpiry"); + + m_urlExpiryHasBeenSet = true; + } + + if(jsonValue.ValueExists("HeadersToInclude")) + { + Aws::Map headersToIncludeJsonMap = jsonValue.GetObject("HeadersToInclude").GetAllObjects(); + for(auto& headersToIncludeItem : headersToIncludeJsonMap) + { + m_headersToInclude[headersToIncludeItem.first] = headersToIncludeItem.second.AsString(); + } + m_headersToIncludeHasBeenSet = true; + } + + return *this; +} + +JsonValue UploadUrlMetadata::Jsonize() const +{ + JsonValue payload; + + if(m_urlHasBeenSet) + { + payload.WithString("Url", m_url); + + } + + if(m_urlExpiryHasBeenSet) + { + payload.WithString("UrlExpiry", m_urlExpiry); + + } + + if(m_headersToIncludeHasBeenSet) + { + JsonValue headersToIncludeJsonMap; + for(auto& headersToIncludeItem : m_headersToInclude) + { + headersToIncludeJsonMap.WithString(headersToIncludeItem.first, headersToIncludeItem.second); + } + payload.WithObject("HeadersToInclude", std::move(headersToIncludeJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace Connect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteFieldRequest.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteFieldRequest.h index 957f5220736..3c96bfebddd 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteFieldRequest.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteFieldRequest.h @@ -33,83 +33,83 @@ namespace Model /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline DeleteFieldRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline DeleteFieldRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline DeleteFieldRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;} /** - *

    The unique identifier of a field.

    + *

    Unique identifier of the field.

    */ inline const Aws::String& GetFieldId() const{ return m_fieldId; } /** - *

    The unique identifier of a field.

    + *

    Unique identifier of the field.

    */ inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; } /** - *

    The unique identifier of a field.

    + *

    Unique identifier of the field.

    */ inline void SetFieldId(const Aws::String& value) { m_fieldIdHasBeenSet = true; m_fieldId = value; } /** - *

    The unique identifier of a field.

    + *

    Unique identifier of the field.

    */ inline void SetFieldId(Aws::String&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::move(value); } /** - *

    The unique identifier of a field.

    + *

    Unique identifier of the field.

    */ inline void SetFieldId(const char* value) { m_fieldIdHasBeenSet = true; m_fieldId.assign(value); } /** - *

    The unique identifier of a field.

    + *

    Unique identifier of the field.

    */ inline DeleteFieldRequest& WithFieldId(const Aws::String& value) { SetFieldId(value); return *this;} /** - *

    The unique identifier of a field.

    + *

    Unique identifier of the field.

    */ inline DeleteFieldRequest& WithFieldId(Aws::String&& value) { SetFieldId(std::move(value)); return *this;} /** - *

    The unique identifier of a field.

    + *

    Unique identifier of the field.

    */ inline DeleteFieldRequest& WithFieldId(const char* value) { SetFieldId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteLayoutRequest.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteLayoutRequest.h index bab707abfba..3eff54ae69e 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteLayoutRequest.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteLayoutRequest.h @@ -33,42 +33,42 @@ namespace Model /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline DeleteLayoutRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline DeleteLayoutRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline DeleteLayoutRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteTemplateRequest.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteTemplateRequest.h index 6fa3c3a8fad..7416df5307f 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteTemplateRequest.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/DeleteTemplateRequest.h @@ -33,42 +33,42 @@ namespace Model /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline DeleteTemplateRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline DeleteTemplateRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** - *

    The unique identifier of the Cases domain.

    + *

    The unique identifier of the Cases domain.

    */ inline DeleteTemplateRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/FileContent.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/FileContent.h new file mode 100644 index 00000000000..225d0f4bcee --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/FileContent.h @@ -0,0 +1,89 @@ +/** + * 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 ConnectCases +{ +namespace Model +{ + + /** + *

    An object that represents a content of an Amazon Connect file + * object.

    See Also:

    AWS + * API Reference

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

    The Amazon Resource Name (ARN) of a File in Amazon Connect.

    + */ + inline const Aws::String& GetFileArn() const{ return m_fileArn; } + + /** + *

    The Amazon Resource Name (ARN) of a File in Amazon Connect.

    + */ + inline bool FileArnHasBeenSet() const { return m_fileArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of a File in Amazon Connect.

    + */ + inline void SetFileArn(const Aws::String& value) { m_fileArnHasBeenSet = true; m_fileArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of a File in Amazon Connect.

    + */ + inline void SetFileArn(Aws::String&& value) { m_fileArnHasBeenSet = true; m_fileArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of a File in Amazon Connect.

    + */ + inline void SetFileArn(const char* value) { m_fileArnHasBeenSet = true; m_fileArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of a File in Amazon Connect.

    + */ + inline FileContent& WithFileArn(const Aws::String& value) { SetFileArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of a File in Amazon Connect.

    + */ + inline FileContent& WithFileArn(Aws::String&& value) { SetFileArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of a File in Amazon Connect.

    + */ + inline FileContent& WithFileArn(const char* value) { SetFileArn(value); return *this;} + + private: + + Aws::String m_fileArn; + bool m_fileArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCases +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/FileFilter.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/FileFilter.h new file mode 100644 index 00000000000..5d5f7720573 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/FileFilter.h @@ -0,0 +1,89 @@ +/** + * 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 ConnectCases +{ +namespace Model +{ + + /** + *

    A filter for related items of type File.

    See + * Also:

    AWS + * API Reference

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

    The Amazon Resource Name (ARN) of the file.

    + */ + inline const Aws::String& GetFileArn() const{ return m_fileArn; } + + /** + *

    The Amazon Resource Name (ARN) of the file.

    + */ + inline bool FileArnHasBeenSet() const { return m_fileArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the file.

    + */ + inline void SetFileArn(const Aws::String& value) { m_fileArnHasBeenSet = true; m_fileArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the file.

    + */ + inline void SetFileArn(Aws::String&& value) { m_fileArnHasBeenSet = true; m_fileArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the file.

    + */ + inline void SetFileArn(const char* value) { m_fileArnHasBeenSet = true; m_fileArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the file.

    + */ + inline FileFilter& WithFileArn(const Aws::String& value) { SetFileArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the file.

    + */ + inline FileFilter& WithFileArn(Aws::String&& value) { SetFileArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the file.

    + */ + inline FileFilter& WithFileArn(const char* value) { SetFileArn(value); return *this;} + + private: + + Aws::String m_fileArn; + bool m_fileArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCases +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetFieldResponse.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetFieldResponse.h index 80b2b1c5454..69a8329ffea 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetFieldResponse.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetFieldResponse.h @@ -42,53 +42,53 @@ namespace Model /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline GetFieldResponse& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline GetFieldResponse& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline bool GetDeleted() const{ return m_deleted; } /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; } /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline void SetDeleted(bool value) { m_deletedHasBeenSet = true; m_deleted = value; } /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline GetFieldResponse& WithDeleted(bool value) { SetDeleted(value); return *this;} @@ -217,32 +217,32 @@ namespace Model /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline GetFieldResponse& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline GetFieldResponse& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetLayoutResult.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetLayoutResult.h index 781c10cceca..a63547bdad3 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetLayoutResult.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetLayoutResult.h @@ -67,69 +67,69 @@ namespace Model /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTime = value; } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTime = std::move(value); } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline GetLayoutResult& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline GetLayoutResult& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline bool GetDeleted() const{ return m_deleted; } /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline void SetDeleted(bool value) { m_deleted = value; } /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline GetLayoutResult& WithDeleted(bool value) { SetDeleted(value); return *this;} /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline GetLayoutResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline GetLayoutResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetTemplateResult.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetTemplateResult.h index 4397271fed3..76c837915d5 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetTemplateResult.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/GetTemplateResult.h @@ -39,43 +39,43 @@ namespace Model /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTime = value; } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTime = std::move(value); } /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline GetTemplateResult& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** - *

    The timestamp for when the resource was created.

    + *

    Timestamp at which the resource was created.

    */ inline GetTemplateResult& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline bool GetDeleted() const{ return m_deleted; } /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline void SetDeleted(bool value) { m_deleted = value; } /** - *

    Indicates whether the resource has been deleted.

    + *

    Denotes whether or not the resource has been deleted.

    */ inline GetTemplateResult& WithDeleted(bool value) { SetDeleted(value); return *this;} @@ -117,27 +117,27 @@ namespace Model /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline GetTemplateResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** - *

    The timestamp for when the resource was created or last modified.

    + *

    Timestamp at which the resource was created or last modified.

    */ inline GetTemplateResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemContent.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemContent.h index 290552e2401..14909189a24 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemContent.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemContent.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -100,6 +101,37 @@ namespace Model */ inline RelatedItemContent& WithContact(ContactContent&& value) { SetContact(std::move(value)); return *this;} + + /** + *

    Represents the content of a File to be returned to agents.

    + */ + inline const FileContent& GetFile() const{ return m_file; } + + /** + *

    Represents the content of a File to be returned to agents.

    + */ + inline bool FileHasBeenSet() const { return m_fileHasBeenSet; } + + /** + *

    Represents the content of a File to be returned to agents.

    + */ + inline void SetFile(const FileContent& value) { m_fileHasBeenSet = true; m_file = value; } + + /** + *

    Represents the content of a File to be returned to agents.

    + */ + inline void SetFile(FileContent&& value) { m_fileHasBeenSet = true; m_file = std::move(value); } + + /** + *

    Represents the content of a File to be returned to agents.

    + */ + inline RelatedItemContent& WithFile(const FileContent& value) { SetFile(value); return *this;} + + /** + *

    Represents the content of a File to be returned to agents.

    + */ + inline RelatedItemContent& WithFile(FileContent&& value) { SetFile(std::move(value)); return *this;} + private: CommentContent m_comment; @@ -107,6 +139,9 @@ namespace Model ContactContent m_contact; bool m_contactHasBeenSet = false; + + FileContent m_file; + bool m_fileHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemInputContent.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemInputContent.h index 13e9bb983c4..26f88dbd0a3 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemInputContent.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemInputContent.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -100,6 +101,37 @@ namespace Model */ inline RelatedItemInputContent& WithContact(Contact&& value) { SetContact(std::move(value)); return *this;} + + /** + *

    A file of related items.

    + */ + inline const FileContent& GetFile() const{ return m_file; } + + /** + *

    A file of related items.

    + */ + inline bool FileHasBeenSet() const { return m_fileHasBeenSet; } + + /** + *

    A file of related items.

    + */ + inline void SetFile(const FileContent& value) { m_fileHasBeenSet = true; m_file = value; } + + /** + *

    A file of related items.

    + */ + inline void SetFile(FileContent&& value) { m_fileHasBeenSet = true; m_file = std::move(value); } + + /** + *

    A file of related items.

    + */ + inline RelatedItemInputContent& WithFile(const FileContent& value) { SetFile(value); return *this;} + + /** + *

    A file of related items.

    + */ + inline RelatedItemInputContent& WithFile(FileContent&& value) { SetFile(std::move(value)); return *this;} + private: CommentContent m_comment; @@ -107,6 +139,9 @@ namespace Model Contact m_contact; bool m_contactHasBeenSet = false; + + FileContent m_file; + bool m_fileHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemType.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemType.h index edc9cdc8eea..60fa2a5bc96 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemType.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemType.h @@ -17,7 +17,8 @@ namespace Model { NOT_SET, Contact, - Comment + Comment, + File }; namespace RelatedItemTypeMapper diff --git a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemTypeFilter.h b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemTypeFilter.h index 607907ea2f4..b0b052b575f 100644 --- a/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemTypeFilter.h +++ b/generated/src/aws-cpp-sdk-connectcases/include/aws/connectcases/model/RelatedItemTypeFilter.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -100,6 +101,37 @@ namespace Model */ inline RelatedItemTypeFilter& WithContact(ContactFilter&& value) { SetContact(std::move(value)); return *this;} + + /** + *

    A filter for related items of this type of File.

    + */ + inline const FileFilter& GetFile() const{ return m_file; } + + /** + *

    A filter for related items of this type of File.

    + */ + inline bool FileHasBeenSet() const { return m_fileHasBeenSet; } + + /** + *

    A filter for related items of this type of File.

    + */ + inline void SetFile(const FileFilter& value) { m_fileHasBeenSet = true; m_file = value; } + + /** + *

    A filter for related items of this type of File.

    + */ + inline void SetFile(FileFilter&& value) { m_fileHasBeenSet = true; m_file = std::move(value); } + + /** + *

    A filter for related items of this type of File.

    + */ + inline RelatedItemTypeFilter& WithFile(const FileFilter& value) { SetFile(value); return *this;} + + /** + *

    A filter for related items of this type of File.

    + */ + inline RelatedItemTypeFilter& WithFile(FileFilter&& value) { SetFile(std::move(value)); return *this;} + private: CommentFilter m_comment; @@ -107,6 +139,9 @@ namespace Model ContactFilter m_contact; bool m_contactHasBeenSet = false; + + FileFilter m_file; + bool m_fileHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/FileContent.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/FileContent.cpp new file mode 100644 index 00000000000..12cd7e89976 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/FileContent.cpp @@ -0,0 +1,59 @@ +/** + * 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 ConnectCases +{ +namespace Model +{ + +FileContent::FileContent() : + m_fileArnHasBeenSet(false) +{ +} + +FileContent::FileContent(JsonView jsonValue) : + m_fileArnHasBeenSet(false) +{ + *this = jsonValue; +} + +FileContent& FileContent::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("fileArn")) + { + m_fileArn = jsonValue.GetString("fileArn"); + + m_fileArnHasBeenSet = true; + } + + return *this; +} + +JsonValue FileContent::Jsonize() const +{ + JsonValue payload; + + if(m_fileArnHasBeenSet) + { + payload.WithString("fileArn", m_fileArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCases +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/FileFilter.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/FileFilter.cpp new file mode 100644 index 00000000000..fdfea6f1692 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/FileFilter.cpp @@ -0,0 +1,59 @@ +/** + * 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 ConnectCases +{ +namespace Model +{ + +FileFilter::FileFilter() : + m_fileArnHasBeenSet(false) +{ +} + +FileFilter::FileFilter(JsonView jsonValue) : + m_fileArnHasBeenSet(false) +{ + *this = jsonValue; +} + +FileFilter& FileFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("fileArn")) + { + m_fileArn = jsonValue.GetString("fileArn"); + + m_fileArnHasBeenSet = true; + } + + return *this; +} + +JsonValue FileFilter::Jsonize() const +{ + JsonValue payload; + + if(m_fileArnHasBeenSet) + { + payload.WithString("fileArn", m_fileArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCases +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemContent.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemContent.cpp index 6b422b87b41..835d9611740 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemContent.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemContent.cpp @@ -20,13 +20,15 @@ namespace Model RelatedItemContent::RelatedItemContent() : m_commentHasBeenSet(false), - m_contactHasBeenSet(false) + m_contactHasBeenSet(false), + m_fileHasBeenSet(false) { } RelatedItemContent::RelatedItemContent(JsonView jsonValue) : m_commentHasBeenSet(false), - m_contactHasBeenSet(false) + m_contactHasBeenSet(false), + m_fileHasBeenSet(false) { *this = jsonValue; } @@ -47,6 +49,13 @@ RelatedItemContent& RelatedItemContent::operator =(JsonView jsonValue) m_contactHasBeenSet = true; } + if(jsonValue.ValueExists("file")) + { + m_file = jsonValue.GetObject("file"); + + m_fileHasBeenSet = true; + } + return *this; } @@ -66,6 +75,12 @@ JsonValue RelatedItemContent::Jsonize() const } + if(m_fileHasBeenSet) + { + payload.WithObject("file", m_file.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemInputContent.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemInputContent.cpp index c552fe65283..866ffaf3841 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemInputContent.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemInputContent.cpp @@ -20,13 +20,15 @@ namespace Model RelatedItemInputContent::RelatedItemInputContent() : m_commentHasBeenSet(false), - m_contactHasBeenSet(false) + m_contactHasBeenSet(false), + m_fileHasBeenSet(false) { } RelatedItemInputContent::RelatedItemInputContent(JsonView jsonValue) : m_commentHasBeenSet(false), - m_contactHasBeenSet(false) + m_contactHasBeenSet(false), + m_fileHasBeenSet(false) { *this = jsonValue; } @@ -47,6 +49,13 @@ RelatedItemInputContent& RelatedItemInputContent::operator =(JsonView jsonValue) m_contactHasBeenSet = true; } + if(jsonValue.ValueExists("file")) + { + m_file = jsonValue.GetObject("file"); + + m_fileHasBeenSet = true; + } + return *this; } @@ -66,6 +75,12 @@ JsonValue RelatedItemInputContent::Jsonize() const } + if(m_fileHasBeenSet) + { + payload.WithObject("file", m_file.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemType.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemType.cpp index 7347a20bdf3..00710c6f9b2 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemType.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemType.cpp @@ -22,6 +22,7 @@ namespace Aws static const int Contact_HASH = HashingUtils::HashString("Contact"); static const int Comment_HASH = HashingUtils::HashString("Comment"); + static const int File_HASH = HashingUtils::HashString("File"); RelatedItemType GetRelatedItemTypeForName(const Aws::String& name) @@ -35,6 +36,10 @@ namespace Aws { return RelatedItemType::Comment; } + else if (hashCode == File_HASH) + { + return RelatedItemType::File; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -55,6 +60,8 @@ namespace Aws return "Contact"; case RelatedItemType::Comment: return "Comment"; + case RelatedItemType::File: + return "File"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemTypeFilter.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemTypeFilter.cpp index afe248cd408..8ece7700856 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemTypeFilter.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemTypeFilter.cpp @@ -20,13 +20,15 @@ namespace Model RelatedItemTypeFilter::RelatedItemTypeFilter() : m_commentHasBeenSet(false), - m_contactHasBeenSet(false) + m_contactHasBeenSet(false), + m_fileHasBeenSet(false) { } RelatedItemTypeFilter::RelatedItemTypeFilter(JsonView jsonValue) : m_commentHasBeenSet(false), - m_contactHasBeenSet(false) + m_contactHasBeenSet(false), + m_fileHasBeenSet(false) { *this = jsonValue; } @@ -47,6 +49,13 @@ RelatedItemTypeFilter& RelatedItemTypeFilter::operator =(JsonView jsonValue) m_contactHasBeenSet = true; } + if(jsonValue.ValueExists("file")) + { + m_file = jsonValue.GetObject("file"); + + m_fileHasBeenSet = true; + } + return *this; } @@ -66,6 +75,12 @@ JsonValue RelatedItemTypeFilter::Jsonize() const } + if(m_fileHasBeenSet) + { + payload.WithObject("file", m_file.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h index 31323d4c7cb..7260ef52e4e 100644 --- a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h +++ b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h @@ -1644,11 +1644,8 @@ namespace DataSync } /** - *

    Updates some parameters of an existing object storage location that DataSync - * accesses for a transfer. For information about creating a self-managed object - * storage location, see Creating - * a location for object storage.

    See Also:

    Updates some parameters of an existing DataSync location for an object + * storage system.

    See Also:

    AWS * API Reference

    */ diff --git a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/CreateLocationObjectStorageRequest.h b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/CreateLocationObjectStorageRequest.h index 3bc0181bc0e..e39c9c2d866 100644 --- a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/CreateLocationObjectStorageRequest.h +++ b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/CreateLocationObjectStorageRequest.h @@ -469,80 +469,122 @@ namespace Model /** - *

    Specifies a file with the certificates that are used to sign the object - * storage server's certificate (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The file you - * specify must include the following:

    • The certificate of the - * signing certificate authority (CA)

    • Any intermediate - * certificates

    • base64 encoding

    • A - * .pem extension

    The file can be up to 32768 bytes - * (before base64 encoding).

    To use this parameter, configure - * ServerProtocol to HTTPS.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    */ inline const Aws::Utils::ByteBuffer& GetServerCertificate() const{ return m_serverCertificate; } /** - *

    Specifies a file with the certificates that are used to sign the object - * storage server's certificate (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The file you - * specify must include the following:

    • The certificate of the - * signing certificate authority (CA)

    • Any intermediate - * certificates

    • base64 encoding

    • A - * .pem extension

    The file can be up to 32768 bytes - * (before base64 encoding).

    To use this parameter, configure - * ServerProtocol to HTTPS.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    */ inline bool ServerCertificateHasBeenSet() const { return m_serverCertificateHasBeenSet; } /** - *

    Specifies a file with the certificates that are used to sign the object - * storage server's certificate (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The file you - * specify must include the following:

    • The certificate of the - * signing certificate authority (CA)

    • Any intermediate - * certificates

    • base64 encoding

    • A - * .pem extension

    The file can be up to 32768 bytes - * (before base64 encoding).

    To use this parameter, configure - * ServerProtocol to HTTPS.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    */ inline void SetServerCertificate(const Aws::Utils::ByteBuffer& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = value; } /** - *

    Specifies a file with the certificates that are used to sign the object - * storage server's certificate (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The file you - * specify must include the following:

    • The certificate of the - * signing certificate authority (CA)

    • Any intermediate - * certificates

    • base64 encoding

    • A - * .pem extension

    The file can be up to 32768 bytes - * (before base64 encoding).

    To use this parameter, configure - * ServerProtocol to HTTPS.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    */ inline void SetServerCertificate(Aws::Utils::ByteBuffer&& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = std::move(value); } /** - *

    Specifies a file with the certificates that are used to sign the object - * storage server's certificate (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The file you - * specify must include the following:

    • The certificate of the - * signing certificate authority (CA)

    • Any intermediate - * certificates

    • base64 encoding

    • A - * .pem extension

    The file can be up to 32768 bytes - * (before base64 encoding).

    To use this parameter, configure - * ServerProtocol to HTTPS.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    */ inline CreateLocationObjectStorageRequest& WithServerCertificate(const Aws::Utils::ByteBuffer& value) { SetServerCertificate(value); return *this;} /** - *

    Specifies a file with the certificates that are used to sign the object - * storage server's certificate (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The file you - * specify must include the following:

    • The certificate of the - * signing certificate authority (CA)

    • Any intermediate - * certificates

    • base64 encoding

    • A - * .pem extension

    The file can be up to 32768 bytes - * (before base64 encoding).

    To use this parameter, configure - * ServerProtocol to HTTPS.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    */ inline CreateLocationObjectStorageRequest& WithServerCertificate(Aws::Utils::ByteBuffer&& value) { SetServerCertificate(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/DescribeLocationObjectStorageResult.h b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/DescribeLocationObjectStorageResult.h index f8a92c16967..f7dd56d6230 100644 --- a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/DescribeLocationObjectStorageResult.h +++ b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/DescribeLocationObjectStorageResult.h @@ -277,32 +277,37 @@ namespace Model /** - *

    The self-signed certificate that DataSync uses to securely authenticate with - * your object storage system.

    + *

    The certificate chain for DataSync to authenticate with your object storage + * system if the system uses a private or self-signed certificate authority + * (CA).

    */ inline const Aws::Utils::ByteBuffer& GetServerCertificate() const{ return m_serverCertificate; } /** - *

    The self-signed certificate that DataSync uses to securely authenticate with - * your object storage system.

    + *

    The certificate chain for DataSync to authenticate with your object storage + * system if the system uses a private or self-signed certificate authority + * (CA).

    */ inline void SetServerCertificate(const Aws::Utils::ByteBuffer& value) { m_serverCertificate = value; } /** - *

    The self-signed certificate that DataSync uses to securely authenticate with - * your object storage system.

    + *

    The certificate chain for DataSync to authenticate with your object storage + * system if the system uses a private or self-signed certificate authority + * (CA).

    */ inline void SetServerCertificate(Aws::Utils::ByteBuffer&& value) { m_serverCertificate = std::move(value); } /** - *

    The self-signed certificate that DataSync uses to securely authenticate with - * your object storage system.

    + *

    The certificate chain for DataSync to authenticate with your object storage + * system if the system uses a private or self-signed certificate authority + * (CA).

    */ inline DescribeLocationObjectStorageResult& WithServerCertificate(const Aws::Utils::ByteBuffer& value) { SetServerCertificate(value); return *this;} /** - *

    The self-signed certificate that DataSync uses to securely authenticate with - * your object storage system.

    + *

    The certificate chain for DataSync to authenticate with your object storage + * system if the system uses a private or self-signed certificate authority + * (CA).

    */ inline DescribeLocationObjectStorageResult& WithServerCertificate(Aws::Utils::ByteBuffer&& value) { SetServerCertificate(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/TaskSchedule.h b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/TaskSchedule.h index 8b4bff8450f..c466eef4e63 100644 --- a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/TaskSchedule.h +++ b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/TaskSchedule.h @@ -108,7 +108,7 @@ namespace Model /** *

    Specifies whether to enable or disable your task schedule. Your schedule is * enabled by default, but there can be situations where you need to disable it. - * For example, you might need to pause a recurring transfer or fix an issue with + * For example, you might need to pause a recurring transfer to fix an issue with * your task or perform maintenance on your storage system.

    DataSync might * disable your schedule automatically if your task fails repeatedly with the same * error. For more information, see Specifies whether to enable or disable your task schedule. Your schedule is * enabled by default, but there can be situations where you need to disable it. - * For example, you might need to pause a recurring transfer or fix an issue with + * For example, you might need to pause a recurring transfer to fix an issue with * your task or perform maintenance on your storage system.

    DataSync might * disable your schedule automatically if your task fails repeatedly with the same * error. For more information, see Specifies whether to enable or disable your task schedule. Your schedule is * enabled by default, but there can be situations where you need to disable it. - * For example, you might need to pause a recurring transfer or fix an issue with + * For example, you might need to pause a recurring transfer to fix an issue with * your task or perform maintenance on your storage system.

    DataSync might * disable your schedule automatically if your task fails repeatedly with the same * error. For more information, see Specifies whether to enable or disable your task schedule. Your schedule is * enabled by default, but there can be situations where you need to disable it. - * For example, you might need to pause a recurring transfer or fix an issue with + * For example, you might need to pause a recurring transfer to fix an issue with * your task or perform maintenance on your storage system.

    DataSync might * disable your schedule automatically if your task fails repeatedly with the same * error. For more information, see Specifies whether to enable or disable your task schedule. Your schedule is * enabled by default, but there can be situations where you need to disable it. - * For example, you might need to pause a recurring transfer or fix an issue with + * For example, you might need to pause a recurring transfer to fix an issue with * your task or perform maintenance on your storage system.

    DataSync might * disable your schedule automatically if your task fails repeatedly with the same * error. For more information, see Specifies whether to enable or disable your task schedule. Your schedule is * enabled by default, but there can be situations where you need to disable it. - * For example, you might need to pause a recurring transfer or fix an issue with + * For example, you might need to pause a recurring transfer to fix an issue with * your task or perform maintenance on your storage system.

    DataSync might * disable your schedule automatically if your task fails repeatedly with the same * error. For more information, see Specifies a certificate to authenticate with an object storage system that - * uses a private or self-signed certificate authority (CA). You must specify a - * Base64-encoded .pem file (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The - * certificate can be up to 32768 bytes (before Base64 encoding).

    To use - * this parameter, configure ServerProtocol to HTTPS.

    - *

    Updating the certificate doesn't interfere with tasks that you have in - * progress.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    Updating this parameter doesn't interfere with tasks + * that you have in progress.

    */ inline const Aws::Utils::ByteBuffer& GetServerCertificate() const{ return m_serverCertificate; } /** - *

    Specifies a certificate to authenticate with an object storage system that - * uses a private or self-signed certificate authority (CA). You must specify a - * Base64-encoded .pem file (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The - * certificate can be up to 32768 bytes (before Base64 encoding).

    To use - * this parameter, configure ServerProtocol to HTTPS.

    - *

    Updating the certificate doesn't interfere with tasks that you have in - * progress.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    Updating this parameter doesn't interfere with tasks + * that you have in progress.

    */ inline bool ServerCertificateHasBeenSet() const { return m_serverCertificateHasBeenSet; } /** - *

    Specifies a certificate to authenticate with an object storage system that - * uses a private or self-signed certificate authority (CA). You must specify a - * Base64-encoded .pem file (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The - * certificate can be up to 32768 bytes (before Base64 encoding).

    To use - * this parameter, configure ServerProtocol to HTTPS.

    - *

    Updating the certificate doesn't interfere with tasks that you have in - * progress.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    Updating this parameter doesn't interfere with tasks + * that you have in progress.

    */ inline void SetServerCertificate(const Aws::Utils::ByteBuffer& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = value; } /** - *

    Specifies a certificate to authenticate with an object storage system that - * uses a private or self-signed certificate authority (CA). You must specify a - * Base64-encoded .pem file (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The - * certificate can be up to 32768 bytes (before Base64 encoding).

    To use - * this parameter, configure ServerProtocol to HTTPS.

    - *

    Updating the certificate doesn't interfere with tasks that you have in - * progress.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    Updating this parameter doesn't interfere with tasks + * that you have in progress.

    */ inline void SetServerCertificate(Aws::Utils::ByteBuffer&& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = std::move(value); } /** - *

    Specifies a certificate to authenticate with an object storage system that - * uses a private or self-signed certificate authority (CA). You must specify a - * Base64-encoded .pem file (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The - * certificate can be up to 32768 bytes (before Base64 encoding).

    To use - * this parameter, configure ServerProtocol to HTTPS.

    - *

    Updating the certificate doesn't interfere with tasks that you have in - * progress.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    Updating this parameter doesn't interfere with tasks + * that you have in progress.

    */ inline UpdateLocationObjectStorageRequest& WithServerCertificate(const Aws::Utils::ByteBuffer& value) { SetServerCertificate(value); return *this;} /** - *

    Specifies a certificate to authenticate with an object storage system that - * uses a private or self-signed certificate authority (CA). You must specify a - * Base64-encoded .pem file (for example, - * file:///home/user/.ssh/storage_sys_certificate.pem). The - * certificate can be up to 32768 bytes (before Base64 encoding).

    To use - * this parameter, configure ServerProtocol to HTTPS.

    - *

    Updating the certificate doesn't interfere with tasks that you have in - * progress.

    + *

    Specifies a certificate chain for DataSync to authenticate with your object + * storage system if the system uses a private or self-signed certificate authority + * (CA). You must specify a single .pem file with a full certificate + * chain (for example, + * file:///home/user/.ssh/object_storage_certificates.pem).

    The + * certificate chain might include:

    • The object storage system's + * certificate

    • All intermediate certificates (if there are + * any)

    • The root certificate of the signing CA

    + *

    You can concatenate your certificates into a .pem file (which + * can be up to 32768 bytes before base64 encoding). The following example + * cat command creates an object_storage_certificates.pem + * file that includes three certificates:

    cat + * object_server_certificate.pem intermediate_certificate.pem + * ca_root_certificate.pem > object_storage_certificates.pem

    To + * use this parameter, configure ServerProtocol to + * HTTPS.

    Updating this parameter doesn't interfere with tasks + * that you have in progress.

    */ inline UpdateLocationObjectStorageRequest& WithServerCertificate(Aws::Utils::ByteBuffer&& value) { SetServerCertificate(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CisReportFormat.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CisReportFormat.h new file mode 100644 index 00000000000..ed7dcd3a738 --- /dev/null +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CisReportFormat.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 Inspector2 +{ +namespace Model +{ + enum class CisReportFormat + { + NOT_SET, + PDF, + CSV + }; + +namespace CisReportFormatMapper +{ +AWS_INSPECTOR2_API CisReportFormat GetCisReportFormatForName(const Aws::String& name); + +AWS_INSPECTOR2_API Aws::String GetNameForCisReportFormat(CisReportFormat value); +} // namespace CisReportFormatMapper +} // namespace Model +} // namespace Inspector2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetCisScanReportRequest.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetCisScanReportRequest.h index b2917d206ab..fc1b61a2b05 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetCisScanReportRequest.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetCisScanReportRequest.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include #include @@ -33,6 +34,49 @@ namespace Model AWS_INSPECTOR2_API Aws::String SerializePayload() const override; + /** + *

    The format of the report. Valid values are PDF and + * CSV. If no value is specified, the report format defaults to + * PDF.

    + */ + inline const CisReportFormat& GetReportFormat() const{ return m_reportFormat; } + + /** + *

    The format of the report. Valid values are PDF and + * CSV. If no value is specified, the report format defaults to + * PDF.

    + */ + inline bool ReportFormatHasBeenSet() const { return m_reportFormatHasBeenSet; } + + /** + *

    The format of the report. Valid values are PDF and + * CSV. If no value is specified, the report format defaults to + * PDF.

    + */ + inline void SetReportFormat(const CisReportFormat& value) { m_reportFormatHasBeenSet = true; m_reportFormat = value; } + + /** + *

    The format of the report. Valid values are PDF and + * CSV. If no value is specified, the report format defaults to + * PDF.

    + */ + inline void SetReportFormat(CisReportFormat&& value) { m_reportFormatHasBeenSet = true; m_reportFormat = std::move(value); } + + /** + *

    The format of the report. Valid values are PDF and + * CSV. If no value is specified, the report format defaults to + * PDF.

    + */ + inline GetCisScanReportRequest& WithReportFormat(const CisReportFormat& value) { SetReportFormat(value); return *this;} + + /** + *

    The format of the report. Valid values are PDF and + * CSV. If no value is specified, the report format defaults to + * PDF.

    + */ + inline GetCisScanReportRequest& WithReportFormat(CisReportFormat&& value) { SetReportFormat(std::move(value)); return *this;} + + /** *

    The scan ARN.

    */ @@ -121,6 +165,9 @@ namespace Model private: + CisReportFormat m_reportFormat; + bool m_reportFormatHasBeenSet = false; + Aws::String m_scanArn; bool m_scanArnHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetCisScanReportResult.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetCisScanReportResult.h index 8e407bdeca6..d1e3a4a2c28 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetCisScanReportResult.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetCisScanReportResult.h @@ -60,37 +60,37 @@ namespace Model /** - *

    The URL where a PDF of the CIS scan report can be downloaded.

    + *

    The URL where a PDF or CSV of the CIS scan report can be downloaded.

    */ inline const Aws::String& GetUrl() const{ return m_url; } /** - *

    The URL where a PDF of the CIS scan report can be downloaded.

    + *

    The URL where a PDF or CSV of the CIS scan report can be downloaded.

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

    The URL where a PDF of the CIS scan report can be downloaded.

    + *

    The URL where a PDF or CSV of the CIS scan report can be downloaded.

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

    The URL where a PDF of the CIS scan report can be downloaded.

    + *

    The URL where a PDF or CSV of the CIS scan report can be downloaded.

    */ inline void SetUrl(const char* value) { m_url.assign(value); } /** - *

    The URL where a PDF of the CIS scan report can be downloaded.

    + *

    The URL where a PDF or CSV of the CIS scan report can be downloaded.

    */ inline GetCisScanReportResult& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** - *

    The URL where a PDF of the CIS scan report can be downloaded.

    + *

    The URL where a PDF or CSV of the CIS scan report can be downloaded.

    */ inline GetCisScanReportResult& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** - *

    The URL where a PDF of the CIS scan report can be downloaded.

    + *

    The URL where a PDF or CSV of the CIS scan report can be downloaded.

    */ inline GetCisScanReportResult& WithUrl(const char* value) { SetUrl(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/CisReportFormat.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/CisReportFormat.cpp new file mode 100644 index 00000000000..0391543350d --- /dev/null +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/CisReportFormat.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 Inspector2 + { + namespace Model + { + namespace CisReportFormatMapper + { + + static const int PDF_HASH = HashingUtils::HashString("PDF"); + static const int CSV_HASH = HashingUtils::HashString("CSV"); + + + CisReportFormat GetCisReportFormatForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PDF_HASH) + { + return CisReportFormat::PDF; + } + else if (hashCode == CSV_HASH) + { + return CisReportFormat::CSV; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CisReportFormat::NOT_SET; + } + + Aws::String GetNameForCisReportFormat(CisReportFormat enumValue) + { + switch(enumValue) + { + case CisReportFormat::NOT_SET: + return {}; + case CisReportFormat::PDF: + return "PDF"; + case CisReportFormat::CSV: + return "CSV"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CisReportFormatMapper + } // namespace Model + } // namespace Inspector2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/GetCisScanReportRequest.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/GetCisScanReportRequest.cpp index 9f17d36e09a..a15014e3492 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/GetCisScanReportRequest.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/GetCisScanReportRequest.cpp @@ -13,6 +13,8 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; GetCisScanReportRequest::GetCisScanReportRequest() : + m_reportFormat(CisReportFormat::NOT_SET), + m_reportFormatHasBeenSet(false), m_scanArnHasBeenSet(false), m_targetAccountsHasBeenSet(false) { @@ -22,6 +24,11 @@ Aws::String GetCisScanReportRequest::SerializePayload() const { JsonValue payload; + if(m_reportFormatHasBeenSet) + { + payload.WithString("reportFormat", CisReportFormatMapper::GetNameForCisReportFormat(m_reportFormat)); + } + if(m_scanArnHasBeenSet) { payload.WithString("scanArn", m_scanArn); diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SessionChainingConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SessionChainingConfig.h index dfc469e74e8..cd6c480a168 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SessionChainingConfig.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SessionChainingConfig.h @@ -23,7 +23,12 @@ namespace Model /** *

    Contains information about attribute-based access control (ABAC) for a - * training job.

    See Also:

    Attribute-based + * access control (ABAC) for multi-tenancy training.

    See Also:

    + * AWS * API Reference

    */ diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/TransformInstanceType.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/TransformInstanceType.h index 842f259380a..c83a3e1b6f1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/TransformInstanceType.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/TransformInstanceType.h @@ -42,12 +42,74 @@ namespace Model ml_m5_4xlarge, ml_m5_12xlarge, ml_m5_24xlarge, + ml_m6i_large, + ml_m6i_xlarge, + ml_m6i_2xlarge, + ml_m6i_4xlarge, + ml_m6i_8xlarge, + ml_m6i_12xlarge, + ml_m6i_16xlarge, + ml_m6i_24xlarge, + ml_m6i_32xlarge, + ml_c6i_large, + ml_c6i_xlarge, + ml_c6i_2xlarge, + ml_c6i_4xlarge, + ml_c6i_8xlarge, + ml_c6i_12xlarge, + ml_c6i_16xlarge, + ml_c6i_24xlarge, + ml_c6i_32xlarge, + ml_r6i_large, + ml_r6i_xlarge, + ml_r6i_2xlarge, + ml_r6i_4xlarge, + ml_r6i_8xlarge, + ml_r6i_12xlarge, + ml_r6i_16xlarge, + ml_r6i_24xlarge, + ml_r6i_32xlarge, + ml_m7i_large, + ml_m7i_xlarge, + ml_m7i_2xlarge, + ml_m7i_4xlarge, + ml_m7i_8xlarge, + ml_m7i_12xlarge, + ml_m7i_16xlarge, + ml_m7i_24xlarge, + ml_m7i_48xlarge, + ml_c7i_large, + ml_c7i_xlarge, + ml_c7i_2xlarge, + ml_c7i_4xlarge, + ml_c7i_8xlarge, + ml_c7i_12xlarge, + ml_c7i_16xlarge, + ml_c7i_24xlarge, + ml_c7i_48xlarge, + ml_r7i_large, + ml_r7i_xlarge, + ml_r7i_2xlarge, + ml_r7i_4xlarge, + ml_r7i_8xlarge, + ml_r7i_12xlarge, + ml_r7i_16xlarge, + ml_r7i_24xlarge, + ml_r7i_48xlarge, ml_g4dn_xlarge, ml_g4dn_2xlarge, ml_g4dn_4xlarge, ml_g4dn_8xlarge, ml_g4dn_12xlarge, - ml_g4dn_16xlarge + ml_g4dn_16xlarge, + ml_g5_xlarge, + ml_g5_2xlarge, + ml_g5_4xlarge, + ml_g5_8xlarge, + ml_g5_12xlarge, + ml_g5_16xlarge, + ml_g5_24xlarge, + ml_g5_48xlarge }; namespace TransformInstanceTypeMapper diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformInstanceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformInstanceType.cpp index c92c4498d20..88d85e6a3ad 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformInstanceType.cpp @@ -46,12 +46,74 @@ namespace Aws static const int ml_m5_4xlarge_HASH = HashingUtils::HashString("ml.m5.4xlarge"); static const int ml_m5_12xlarge_HASH = HashingUtils::HashString("ml.m5.12xlarge"); static const int ml_m5_24xlarge_HASH = HashingUtils::HashString("ml.m5.24xlarge"); + static const int ml_m6i_large_HASH = HashingUtils::HashString("ml.m6i.large"); + static const int ml_m6i_xlarge_HASH = HashingUtils::HashString("ml.m6i.xlarge"); + static const int ml_m6i_2xlarge_HASH = HashingUtils::HashString("ml.m6i.2xlarge"); + static const int ml_m6i_4xlarge_HASH = HashingUtils::HashString("ml.m6i.4xlarge"); + static const int ml_m6i_8xlarge_HASH = HashingUtils::HashString("ml.m6i.8xlarge"); + static const int ml_m6i_12xlarge_HASH = HashingUtils::HashString("ml.m6i.12xlarge"); + static const int ml_m6i_16xlarge_HASH = HashingUtils::HashString("ml.m6i.16xlarge"); + static const int ml_m6i_24xlarge_HASH = HashingUtils::HashString("ml.m6i.24xlarge"); + static const int ml_m6i_32xlarge_HASH = HashingUtils::HashString("ml.m6i.32xlarge"); + static const int ml_c6i_large_HASH = HashingUtils::HashString("ml.c6i.large"); + static const int ml_c6i_xlarge_HASH = HashingUtils::HashString("ml.c6i.xlarge"); + static const int ml_c6i_2xlarge_HASH = HashingUtils::HashString("ml.c6i.2xlarge"); + static const int ml_c6i_4xlarge_HASH = HashingUtils::HashString("ml.c6i.4xlarge"); + static const int ml_c6i_8xlarge_HASH = HashingUtils::HashString("ml.c6i.8xlarge"); + static const int ml_c6i_12xlarge_HASH = HashingUtils::HashString("ml.c6i.12xlarge"); + static const int ml_c6i_16xlarge_HASH = HashingUtils::HashString("ml.c6i.16xlarge"); + static const int ml_c6i_24xlarge_HASH = HashingUtils::HashString("ml.c6i.24xlarge"); + static const int ml_c6i_32xlarge_HASH = HashingUtils::HashString("ml.c6i.32xlarge"); + static const int ml_r6i_large_HASH = HashingUtils::HashString("ml.r6i.large"); + static const int ml_r6i_xlarge_HASH = HashingUtils::HashString("ml.r6i.xlarge"); + static const int ml_r6i_2xlarge_HASH = HashingUtils::HashString("ml.r6i.2xlarge"); + static const int ml_r6i_4xlarge_HASH = HashingUtils::HashString("ml.r6i.4xlarge"); + static const int ml_r6i_8xlarge_HASH = HashingUtils::HashString("ml.r6i.8xlarge"); + static const int ml_r6i_12xlarge_HASH = HashingUtils::HashString("ml.r6i.12xlarge"); + static const int ml_r6i_16xlarge_HASH = HashingUtils::HashString("ml.r6i.16xlarge"); + static const int ml_r6i_24xlarge_HASH = HashingUtils::HashString("ml.r6i.24xlarge"); + static const int ml_r6i_32xlarge_HASH = HashingUtils::HashString("ml.r6i.32xlarge"); + static const int ml_m7i_large_HASH = HashingUtils::HashString("ml.m7i.large"); + static const int ml_m7i_xlarge_HASH = HashingUtils::HashString("ml.m7i.xlarge"); + static const int ml_m7i_2xlarge_HASH = HashingUtils::HashString("ml.m7i.2xlarge"); + static const int ml_m7i_4xlarge_HASH = HashingUtils::HashString("ml.m7i.4xlarge"); + static const int ml_m7i_8xlarge_HASH = HashingUtils::HashString("ml.m7i.8xlarge"); + static const int ml_m7i_12xlarge_HASH = HashingUtils::HashString("ml.m7i.12xlarge"); + static const int ml_m7i_16xlarge_HASH = HashingUtils::HashString("ml.m7i.16xlarge"); + static const int ml_m7i_24xlarge_HASH = HashingUtils::HashString("ml.m7i.24xlarge"); + static const int ml_m7i_48xlarge_HASH = HashingUtils::HashString("ml.m7i.48xlarge"); + static const int ml_c7i_large_HASH = HashingUtils::HashString("ml.c7i.large"); + static const int ml_c7i_xlarge_HASH = HashingUtils::HashString("ml.c7i.xlarge"); + static const int ml_c7i_2xlarge_HASH = HashingUtils::HashString("ml.c7i.2xlarge"); + static const int ml_c7i_4xlarge_HASH = HashingUtils::HashString("ml.c7i.4xlarge"); + static const int ml_c7i_8xlarge_HASH = HashingUtils::HashString("ml.c7i.8xlarge"); + static const int ml_c7i_12xlarge_HASH = HashingUtils::HashString("ml.c7i.12xlarge"); + static const int ml_c7i_16xlarge_HASH = HashingUtils::HashString("ml.c7i.16xlarge"); + static const int ml_c7i_24xlarge_HASH = HashingUtils::HashString("ml.c7i.24xlarge"); + static const int ml_c7i_48xlarge_HASH = HashingUtils::HashString("ml.c7i.48xlarge"); + static const int ml_r7i_large_HASH = HashingUtils::HashString("ml.r7i.large"); + static const int ml_r7i_xlarge_HASH = HashingUtils::HashString("ml.r7i.xlarge"); + static const int ml_r7i_2xlarge_HASH = HashingUtils::HashString("ml.r7i.2xlarge"); + static const int ml_r7i_4xlarge_HASH = HashingUtils::HashString("ml.r7i.4xlarge"); + static const int ml_r7i_8xlarge_HASH = HashingUtils::HashString("ml.r7i.8xlarge"); + static const int ml_r7i_12xlarge_HASH = HashingUtils::HashString("ml.r7i.12xlarge"); + static const int ml_r7i_16xlarge_HASH = HashingUtils::HashString("ml.r7i.16xlarge"); + static const int ml_r7i_24xlarge_HASH = HashingUtils::HashString("ml.r7i.24xlarge"); + static const int ml_r7i_48xlarge_HASH = HashingUtils::HashString("ml.r7i.48xlarge"); static const int ml_g4dn_xlarge_HASH = HashingUtils::HashString("ml.g4dn.xlarge"); static const int ml_g4dn_2xlarge_HASH = HashingUtils::HashString("ml.g4dn.2xlarge"); static const int ml_g4dn_4xlarge_HASH = HashingUtils::HashString("ml.g4dn.4xlarge"); static const int ml_g4dn_8xlarge_HASH = HashingUtils::HashString("ml.g4dn.8xlarge"); static const int ml_g4dn_12xlarge_HASH = HashingUtils::HashString("ml.g4dn.12xlarge"); static const int ml_g4dn_16xlarge_HASH = HashingUtils::HashString("ml.g4dn.16xlarge"); + static const int ml_g5_xlarge_HASH = HashingUtils::HashString("ml.g5.xlarge"); + static const int ml_g5_2xlarge_HASH = HashingUtils::HashString("ml.g5.2xlarge"); + static const int ml_g5_4xlarge_HASH = HashingUtils::HashString("ml.g5.4xlarge"); + static const int ml_g5_8xlarge_HASH = HashingUtils::HashString("ml.g5.8xlarge"); + static const int ml_g5_12xlarge_HASH = HashingUtils::HashString("ml.g5.12xlarge"); + static const int ml_g5_16xlarge_HASH = HashingUtils::HashString("ml.g5.16xlarge"); + static const int ml_g5_24xlarge_HASH = HashingUtils::HashString("ml.g5.24xlarge"); + static const int ml_g5_48xlarge_HASH = HashingUtils::HashString("ml.g5.48xlarge"); TransformInstanceType GetTransformInstanceTypeForName(const Aws::String& name) @@ -161,6 +223,222 @@ namespace Aws { return TransformInstanceType::ml_m5_24xlarge; } + else if (hashCode == ml_m6i_large_HASH) + { + return TransformInstanceType::ml_m6i_large; + } + else if (hashCode == ml_m6i_xlarge_HASH) + { + return TransformInstanceType::ml_m6i_xlarge; + } + else if (hashCode == ml_m6i_2xlarge_HASH) + { + return TransformInstanceType::ml_m6i_2xlarge; + } + else if (hashCode == ml_m6i_4xlarge_HASH) + { + return TransformInstanceType::ml_m6i_4xlarge; + } + else if (hashCode == ml_m6i_8xlarge_HASH) + { + return TransformInstanceType::ml_m6i_8xlarge; + } + else if (hashCode == ml_m6i_12xlarge_HASH) + { + return TransformInstanceType::ml_m6i_12xlarge; + } + else if (hashCode == ml_m6i_16xlarge_HASH) + { + return TransformInstanceType::ml_m6i_16xlarge; + } + else if (hashCode == ml_m6i_24xlarge_HASH) + { + return TransformInstanceType::ml_m6i_24xlarge; + } + else if (hashCode == ml_m6i_32xlarge_HASH) + { + return TransformInstanceType::ml_m6i_32xlarge; + } + else if (hashCode == ml_c6i_large_HASH) + { + return TransformInstanceType::ml_c6i_large; + } + else if (hashCode == ml_c6i_xlarge_HASH) + { + return TransformInstanceType::ml_c6i_xlarge; + } + else if (hashCode == ml_c6i_2xlarge_HASH) + { + return TransformInstanceType::ml_c6i_2xlarge; + } + else if (hashCode == ml_c6i_4xlarge_HASH) + { + return TransformInstanceType::ml_c6i_4xlarge; + } + else if (hashCode == ml_c6i_8xlarge_HASH) + { + return TransformInstanceType::ml_c6i_8xlarge; + } + else if (hashCode == ml_c6i_12xlarge_HASH) + { + return TransformInstanceType::ml_c6i_12xlarge; + } + else if (hashCode == ml_c6i_16xlarge_HASH) + { + return TransformInstanceType::ml_c6i_16xlarge; + } + else if (hashCode == ml_c6i_24xlarge_HASH) + { + return TransformInstanceType::ml_c6i_24xlarge; + } + else if (hashCode == ml_c6i_32xlarge_HASH) + { + return TransformInstanceType::ml_c6i_32xlarge; + } + else if (hashCode == ml_r6i_large_HASH) + { + return TransformInstanceType::ml_r6i_large; + } + else if (hashCode == ml_r6i_xlarge_HASH) + { + return TransformInstanceType::ml_r6i_xlarge; + } + else if (hashCode == ml_r6i_2xlarge_HASH) + { + return TransformInstanceType::ml_r6i_2xlarge; + } + else if (hashCode == ml_r6i_4xlarge_HASH) + { + return TransformInstanceType::ml_r6i_4xlarge; + } + else if (hashCode == ml_r6i_8xlarge_HASH) + { + return TransformInstanceType::ml_r6i_8xlarge; + } + else if (hashCode == ml_r6i_12xlarge_HASH) + { + return TransformInstanceType::ml_r6i_12xlarge; + } + else if (hashCode == ml_r6i_16xlarge_HASH) + { + return TransformInstanceType::ml_r6i_16xlarge; + } + else if (hashCode == ml_r6i_24xlarge_HASH) + { + return TransformInstanceType::ml_r6i_24xlarge; + } + else if (hashCode == ml_r6i_32xlarge_HASH) + { + return TransformInstanceType::ml_r6i_32xlarge; + } + else if (hashCode == ml_m7i_large_HASH) + { + return TransformInstanceType::ml_m7i_large; + } + else if (hashCode == ml_m7i_xlarge_HASH) + { + return TransformInstanceType::ml_m7i_xlarge; + } + else if (hashCode == ml_m7i_2xlarge_HASH) + { + return TransformInstanceType::ml_m7i_2xlarge; + } + else if (hashCode == ml_m7i_4xlarge_HASH) + { + return TransformInstanceType::ml_m7i_4xlarge; + } + else if (hashCode == ml_m7i_8xlarge_HASH) + { + return TransformInstanceType::ml_m7i_8xlarge; + } + else if (hashCode == ml_m7i_12xlarge_HASH) + { + return TransformInstanceType::ml_m7i_12xlarge; + } + else if (hashCode == ml_m7i_16xlarge_HASH) + { + return TransformInstanceType::ml_m7i_16xlarge; + } + else if (hashCode == ml_m7i_24xlarge_HASH) + { + return TransformInstanceType::ml_m7i_24xlarge; + } + else if (hashCode == ml_m7i_48xlarge_HASH) + { + return TransformInstanceType::ml_m7i_48xlarge; + } + else if (hashCode == ml_c7i_large_HASH) + { + return TransformInstanceType::ml_c7i_large; + } + else if (hashCode == ml_c7i_xlarge_HASH) + { + return TransformInstanceType::ml_c7i_xlarge; + } + else if (hashCode == ml_c7i_2xlarge_HASH) + { + return TransformInstanceType::ml_c7i_2xlarge; + } + else if (hashCode == ml_c7i_4xlarge_HASH) + { + return TransformInstanceType::ml_c7i_4xlarge; + } + else if (hashCode == ml_c7i_8xlarge_HASH) + { + return TransformInstanceType::ml_c7i_8xlarge; + } + else if (hashCode == ml_c7i_12xlarge_HASH) + { + return TransformInstanceType::ml_c7i_12xlarge; + } + else if (hashCode == ml_c7i_16xlarge_HASH) + { + return TransformInstanceType::ml_c7i_16xlarge; + } + else if (hashCode == ml_c7i_24xlarge_HASH) + { + return TransformInstanceType::ml_c7i_24xlarge; + } + else if (hashCode == ml_c7i_48xlarge_HASH) + { + return TransformInstanceType::ml_c7i_48xlarge; + } + else if (hashCode == ml_r7i_large_HASH) + { + return TransformInstanceType::ml_r7i_large; + } + else if (hashCode == ml_r7i_xlarge_HASH) + { + return TransformInstanceType::ml_r7i_xlarge; + } + else if (hashCode == ml_r7i_2xlarge_HASH) + { + return TransformInstanceType::ml_r7i_2xlarge; + } + else if (hashCode == ml_r7i_4xlarge_HASH) + { + return TransformInstanceType::ml_r7i_4xlarge; + } + else if (hashCode == ml_r7i_8xlarge_HASH) + { + return TransformInstanceType::ml_r7i_8xlarge; + } + else if (hashCode == ml_r7i_12xlarge_HASH) + { + return TransformInstanceType::ml_r7i_12xlarge; + } + else if (hashCode == ml_r7i_16xlarge_HASH) + { + return TransformInstanceType::ml_r7i_16xlarge; + } + else if (hashCode == ml_r7i_24xlarge_HASH) + { + return TransformInstanceType::ml_r7i_24xlarge; + } + else if (hashCode == ml_r7i_48xlarge_HASH) + { + return TransformInstanceType::ml_r7i_48xlarge; + } else if (hashCode == ml_g4dn_xlarge_HASH) { return TransformInstanceType::ml_g4dn_xlarge; @@ -185,6 +463,38 @@ namespace Aws { return TransformInstanceType::ml_g4dn_16xlarge; } + else if (hashCode == ml_g5_xlarge_HASH) + { + return TransformInstanceType::ml_g5_xlarge; + } + else if (hashCode == ml_g5_2xlarge_HASH) + { + return TransformInstanceType::ml_g5_2xlarge; + } + else if (hashCode == ml_g5_4xlarge_HASH) + { + return TransformInstanceType::ml_g5_4xlarge; + } + else if (hashCode == ml_g5_8xlarge_HASH) + { + return TransformInstanceType::ml_g5_8xlarge; + } + else if (hashCode == ml_g5_12xlarge_HASH) + { + return TransformInstanceType::ml_g5_12xlarge; + } + else if (hashCode == ml_g5_16xlarge_HASH) + { + return TransformInstanceType::ml_g5_16xlarge; + } + else if (hashCode == ml_g5_24xlarge_HASH) + { + return TransformInstanceType::ml_g5_24xlarge; + } + else if (hashCode == ml_g5_48xlarge_HASH) + { + return TransformInstanceType::ml_g5_48xlarge; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -253,6 +563,114 @@ namespace Aws return "ml.m5.12xlarge"; case TransformInstanceType::ml_m5_24xlarge: return "ml.m5.24xlarge"; + case TransformInstanceType::ml_m6i_large: + return "ml.m6i.large"; + case TransformInstanceType::ml_m6i_xlarge: + return "ml.m6i.xlarge"; + case TransformInstanceType::ml_m6i_2xlarge: + return "ml.m6i.2xlarge"; + case TransformInstanceType::ml_m6i_4xlarge: + return "ml.m6i.4xlarge"; + case TransformInstanceType::ml_m6i_8xlarge: + return "ml.m6i.8xlarge"; + case TransformInstanceType::ml_m6i_12xlarge: + return "ml.m6i.12xlarge"; + case TransformInstanceType::ml_m6i_16xlarge: + return "ml.m6i.16xlarge"; + case TransformInstanceType::ml_m6i_24xlarge: + return "ml.m6i.24xlarge"; + case TransformInstanceType::ml_m6i_32xlarge: + return "ml.m6i.32xlarge"; + case TransformInstanceType::ml_c6i_large: + return "ml.c6i.large"; + case TransformInstanceType::ml_c6i_xlarge: + return "ml.c6i.xlarge"; + case TransformInstanceType::ml_c6i_2xlarge: + return "ml.c6i.2xlarge"; + case TransformInstanceType::ml_c6i_4xlarge: + return "ml.c6i.4xlarge"; + case TransformInstanceType::ml_c6i_8xlarge: + return "ml.c6i.8xlarge"; + case TransformInstanceType::ml_c6i_12xlarge: + return "ml.c6i.12xlarge"; + case TransformInstanceType::ml_c6i_16xlarge: + return "ml.c6i.16xlarge"; + case TransformInstanceType::ml_c6i_24xlarge: + return "ml.c6i.24xlarge"; + case TransformInstanceType::ml_c6i_32xlarge: + return "ml.c6i.32xlarge"; + case TransformInstanceType::ml_r6i_large: + return "ml.r6i.large"; + case TransformInstanceType::ml_r6i_xlarge: + return "ml.r6i.xlarge"; + case TransformInstanceType::ml_r6i_2xlarge: + return "ml.r6i.2xlarge"; + case TransformInstanceType::ml_r6i_4xlarge: + return "ml.r6i.4xlarge"; + case TransformInstanceType::ml_r6i_8xlarge: + return "ml.r6i.8xlarge"; + case TransformInstanceType::ml_r6i_12xlarge: + return "ml.r6i.12xlarge"; + case TransformInstanceType::ml_r6i_16xlarge: + return "ml.r6i.16xlarge"; + case TransformInstanceType::ml_r6i_24xlarge: + return "ml.r6i.24xlarge"; + case TransformInstanceType::ml_r6i_32xlarge: + return "ml.r6i.32xlarge"; + case TransformInstanceType::ml_m7i_large: + return "ml.m7i.large"; + case TransformInstanceType::ml_m7i_xlarge: + return "ml.m7i.xlarge"; + case TransformInstanceType::ml_m7i_2xlarge: + return "ml.m7i.2xlarge"; + case TransformInstanceType::ml_m7i_4xlarge: + return "ml.m7i.4xlarge"; + case TransformInstanceType::ml_m7i_8xlarge: + return "ml.m7i.8xlarge"; + case TransformInstanceType::ml_m7i_12xlarge: + return "ml.m7i.12xlarge"; + case TransformInstanceType::ml_m7i_16xlarge: + return "ml.m7i.16xlarge"; + case TransformInstanceType::ml_m7i_24xlarge: + return "ml.m7i.24xlarge"; + case TransformInstanceType::ml_m7i_48xlarge: + return "ml.m7i.48xlarge"; + case TransformInstanceType::ml_c7i_large: + return "ml.c7i.large"; + case TransformInstanceType::ml_c7i_xlarge: + return "ml.c7i.xlarge"; + case TransformInstanceType::ml_c7i_2xlarge: + return "ml.c7i.2xlarge"; + case TransformInstanceType::ml_c7i_4xlarge: + return "ml.c7i.4xlarge"; + case TransformInstanceType::ml_c7i_8xlarge: + return "ml.c7i.8xlarge"; + case TransformInstanceType::ml_c7i_12xlarge: + return "ml.c7i.12xlarge"; + case TransformInstanceType::ml_c7i_16xlarge: + return "ml.c7i.16xlarge"; + case TransformInstanceType::ml_c7i_24xlarge: + return "ml.c7i.24xlarge"; + case TransformInstanceType::ml_c7i_48xlarge: + return "ml.c7i.48xlarge"; + case TransformInstanceType::ml_r7i_large: + return "ml.r7i.large"; + case TransformInstanceType::ml_r7i_xlarge: + return "ml.r7i.xlarge"; + case TransformInstanceType::ml_r7i_2xlarge: + return "ml.r7i.2xlarge"; + case TransformInstanceType::ml_r7i_4xlarge: + return "ml.r7i.4xlarge"; + case TransformInstanceType::ml_r7i_8xlarge: + return "ml.r7i.8xlarge"; + case TransformInstanceType::ml_r7i_12xlarge: + return "ml.r7i.12xlarge"; + case TransformInstanceType::ml_r7i_16xlarge: + return "ml.r7i.16xlarge"; + case TransformInstanceType::ml_r7i_24xlarge: + return "ml.r7i.24xlarge"; + case TransformInstanceType::ml_r7i_48xlarge: + return "ml.r7i.48xlarge"; case TransformInstanceType::ml_g4dn_xlarge: return "ml.g4dn.xlarge"; case TransformInstanceType::ml_g4dn_2xlarge: @@ -265,6 +683,22 @@ namespace Aws return "ml.g4dn.12xlarge"; case TransformInstanceType::ml_g4dn_16xlarge: return "ml.g4dn.16xlarge"; + case TransformInstanceType::ml_g5_xlarge: + return "ml.g5.xlarge"; + case TransformInstanceType::ml_g5_2xlarge: + return "ml.g5.2xlarge"; + case TransformInstanceType::ml_g5_4xlarge: + return "ml.g5.4xlarge"; + case TransformInstanceType::ml_g5_8xlarge: + return "ml.g5.8xlarge"; + case TransformInstanceType::ml_g5_12xlarge: + return "ml.g5.12xlarge"; + case TransformInstanceType::ml_g5_16xlarge: + return "ml.g5.16xlarge"; + case TransformInstanceType::ml_g5_24xlarge: + return "ml.g5.24xlarge"; + case TransformInstanceType::ml_g5_48xlarge: + return "ml.g5.48xlarge"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-sesv2/include/aws/sesv2/model/BulkEmailEntry.h b/generated/src/aws-cpp-sdk-sesv2/include/aws/sesv2/model/BulkEmailEntry.h index f5b16fff305..0810eb33cd0 100644 --- a/generated/src/aws-cpp-sdk-sesv2/include/aws/sesv2/model/BulkEmailEntry.h +++ b/generated/src/aws-cpp-sdk-sesv2/include/aws/sesv2/model/BulkEmailEntry.h @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Aws @@ -215,6 +216,159 @@ namespace Model */ inline BulkEmailEntry& WithReplacementEmailContent(ReplacementEmailContent&& value) { SetReplacementEmailContent(std::move(value)); return *this;} + + /** + *

    The list of message headers associated with the BulkEmailEntry + * data type.

    • Headers Not Present in BulkEmailEntry: + * If a header is specified in + * Template but not in BulkEmailEntry, the header + * from Template will be added to the outgoing email.

    • + *

      Headers Present in BulkEmailEntry: If a header is specified in + * BulkEmailEntry, it takes precedence over any header of the same + * name specified in + * Template :

      • If the header is also defined + * within Template, the value from BulkEmailEntry will + * replace the header's value in the email.

      • If the header is not + * defined within Template, it will simply be added to the email as + * specified in BulkEmailEntry.

    + */ + inline const Aws::Vector& GetReplacementHeaders() const{ return m_replacementHeaders; } + + /** + *

    The list of message headers associated with the BulkEmailEntry + * data type.

    • Headers Not Present in BulkEmailEntry: + * If a header is specified in + * Template but not in BulkEmailEntry, the header + * from Template will be added to the outgoing email.

    • + *

      Headers Present in BulkEmailEntry: If a header is specified in + * BulkEmailEntry, it takes precedence over any header of the same + * name specified in + * Template :

      • If the header is also defined + * within Template, the value from BulkEmailEntry will + * replace the header's value in the email.

      • If the header is not + * defined within Template, it will simply be added to the email as + * specified in BulkEmailEntry.

    + */ + inline bool ReplacementHeadersHasBeenSet() const { return m_replacementHeadersHasBeenSet; } + + /** + *

    The list of message headers associated with the BulkEmailEntry + * data type.

    • Headers Not Present in BulkEmailEntry: + * If a header is specified in + * Template but not in BulkEmailEntry, the header + * from Template will be added to the outgoing email.

    • + *

      Headers Present in BulkEmailEntry: If a header is specified in + * BulkEmailEntry, it takes precedence over any header of the same + * name specified in + * Template :

      • If the header is also defined + * within Template, the value from BulkEmailEntry will + * replace the header's value in the email.

      • If the header is not + * defined within Template, it will simply be added to the email as + * specified in BulkEmailEntry.

    + */ + inline void SetReplacementHeaders(const Aws::Vector& value) { m_replacementHeadersHasBeenSet = true; m_replacementHeaders = value; } + + /** + *

    The list of message headers associated with the BulkEmailEntry + * data type.

    • Headers Not Present in BulkEmailEntry: + * If a header is specified in + * Template but not in BulkEmailEntry, the header + * from Template will be added to the outgoing email.

    • + *

      Headers Present in BulkEmailEntry: If a header is specified in + * BulkEmailEntry, it takes precedence over any header of the same + * name specified in + * Template :

      • If the header is also defined + * within Template, the value from BulkEmailEntry will + * replace the header's value in the email.

      • If the header is not + * defined within Template, it will simply be added to the email as + * specified in BulkEmailEntry.

    + */ + inline void SetReplacementHeaders(Aws::Vector&& value) { m_replacementHeadersHasBeenSet = true; m_replacementHeaders = std::move(value); } + + /** + *

    The list of message headers associated with the BulkEmailEntry + * data type.

    • Headers Not Present in BulkEmailEntry: + * If a header is specified in + * Template but not in BulkEmailEntry, the header + * from Template will be added to the outgoing email.

    • + *

      Headers Present in BulkEmailEntry: If a header is specified in + * BulkEmailEntry, it takes precedence over any header of the same + * name specified in + * Template :

      • If the header is also defined + * within Template, the value from BulkEmailEntry will + * replace the header's value in the email.

      • If the header is not + * defined within Template, it will simply be added to the email as + * specified in BulkEmailEntry.

    + */ + inline BulkEmailEntry& WithReplacementHeaders(const Aws::Vector& value) { SetReplacementHeaders(value); return *this;} + + /** + *

    The list of message headers associated with the BulkEmailEntry + * data type.

    • Headers Not Present in BulkEmailEntry: + * If a header is specified in + * Template but not in BulkEmailEntry, the header + * from Template will be added to the outgoing email.

    • + *

      Headers Present in BulkEmailEntry: If a header is specified in + * BulkEmailEntry, it takes precedence over any header of the same + * name specified in + * Template :

      • If the header is also defined + * within Template, the value from BulkEmailEntry will + * replace the header's value in the email.

      • If the header is not + * defined within Template, it will simply be added to the email as + * specified in BulkEmailEntry.

    + */ + inline BulkEmailEntry& WithReplacementHeaders(Aws::Vector&& value) { SetReplacementHeaders(std::move(value)); return *this;} + + /** + *

    The list of message headers associated with the BulkEmailEntry + * data type.

    • Headers Not Present in BulkEmailEntry: + * If a header is specified in + * Template but not in BulkEmailEntry, the header + * from Template will be added to the outgoing email.

    • + *

      Headers Present in BulkEmailEntry: If a header is specified in + * BulkEmailEntry, it takes precedence over any header of the same + * name specified in + * Template :

      • If the header is also defined + * within Template, the value from BulkEmailEntry will + * replace the header's value in the email.

      • If the header is not + * defined within Template, it will simply be added to the email as + * specified in BulkEmailEntry.

    + */ + inline BulkEmailEntry& AddReplacementHeaders(const MessageHeader& value) { m_replacementHeadersHasBeenSet = true; m_replacementHeaders.push_back(value); return *this; } + + /** + *

    The list of message headers associated with the BulkEmailEntry + * data type.

    • Headers Not Present in BulkEmailEntry: + * If a header is specified in + * Template but not in BulkEmailEntry, the header + * from Template will be added to the outgoing email.

    • + *

      Headers Present in BulkEmailEntry: If a header is specified in + * BulkEmailEntry, it takes precedence over any header of the same + * name specified in + * Template :

      • If the header is also defined + * within Template, the value from BulkEmailEntry will + * replace the header's value in the email.

      • If the header is not + * defined within Template, it will simply be added to the email as + * specified in BulkEmailEntry.

    + */ + inline BulkEmailEntry& AddReplacementHeaders(MessageHeader&& value) { m_replacementHeadersHasBeenSet = true; m_replacementHeaders.push_back(std::move(value)); return *this; } + private: Destination m_destination; @@ -225,6 +379,9 @@ namespace Model ReplacementEmailContent m_replacementEmailContent; bool m_replacementEmailContentHasBeenSet = false; + + Aws::Vector m_replacementHeaders; + bool m_replacementHeadersHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/BulkEmailEntry.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/BulkEmailEntry.cpp index d0492f422c9..642551fcb3e 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/BulkEmailEntry.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/BulkEmailEntry.cpp @@ -21,14 +21,16 @@ namespace Model BulkEmailEntry::BulkEmailEntry() : m_destinationHasBeenSet(false), m_replacementTagsHasBeenSet(false), - m_replacementEmailContentHasBeenSet(false) + m_replacementEmailContentHasBeenSet(false), + m_replacementHeadersHasBeenSet(false) { } BulkEmailEntry::BulkEmailEntry(JsonView jsonValue) : m_destinationHasBeenSet(false), m_replacementTagsHasBeenSet(false), - m_replacementEmailContentHasBeenSet(false) + m_replacementEmailContentHasBeenSet(false), + m_replacementHeadersHasBeenSet(false) { *this = jsonValue; } @@ -59,6 +61,16 @@ BulkEmailEntry& BulkEmailEntry::operator =(JsonView jsonValue) m_replacementEmailContentHasBeenSet = true; } + if(jsonValue.ValueExists("ReplacementHeaders")) + { + Aws::Utils::Array replacementHeadersJsonList = jsonValue.GetArray("ReplacementHeaders"); + for(unsigned replacementHeadersIndex = 0; replacementHeadersIndex < replacementHeadersJsonList.GetLength(); ++replacementHeadersIndex) + { + m_replacementHeaders.push_back(replacementHeadersJsonList[replacementHeadersIndex].AsObject()); + } + m_replacementHeadersHasBeenSet = true; + } + return *this; } @@ -89,6 +101,17 @@ JsonValue BulkEmailEntry::Jsonize() const } + if(m_replacementHeadersHasBeenSet) + { + Aws::Utils::Array replacementHeadersJsonList(m_replacementHeaders.size()); + for(unsigned replacementHeadersIndex = 0; replacementHeadersIndex < replacementHeadersJsonList.GetLength(); ++replacementHeadersIndex) + { + replacementHeadersJsonList[replacementHeadersIndex].AsObject(m_replacementHeaders[replacementHeadersIndex].Jsonize()); + } + payload.WithArray("ReplacementHeaders", std::move(replacementHeadersJsonList)); + + } + return payload; } 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 bfa70526867..270448f7453 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.320" +#define AWS_SDK_VERSION_STRING "1.11.321" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 320 +#define AWS_SDK_VERSION_PATCH 321 diff --git a/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json b/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json index b128ce33439..1b06e635924 100644 --- a/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json @@ -822,7 +822,7 @@ "documentation":"

    The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.

    " } }, - "documentation":"

    Contains details about the Lambda function containing the business logic that is carried out upon invoking the action.

    ", + "documentation":"

    Contains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.

    ", "union":true }, "ActionGroupSignature":{ @@ -977,7 +977,7 @@ "members":{ "actionGroupExecutor":{ "shape":"ActionGroupExecutor", - "documentation":"

    The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.

    " }, "actionGroupId":{ "shape":"Id", @@ -1079,6 +1079,10 @@ "shape":"Description", "documentation":"

    The description of the alias of the agent.

    " }, + "failureReasons":{ + "shape":"FailureReasons", + "documentation":"

    Information on the failure of Provisioned Throughput assigned to an agent alias.

    " + }, "routingConfiguration":{ "shape":"AgentAliasRoutingConfiguration", "documentation":"

    Contains details about the routing configuration of the alias.

    " @@ -1134,11 +1138,14 @@ }, "AgentAliasRoutingConfigurationListItem":{ "type":"structure", - "required":["agentVersion"], "members":{ "agentVersion":{ "shape":"Version", "documentation":"

    The version of the agent with which the alias is associated.

    " + }, + "provisionedThroughput":{ + "shape":"ProvisionedModelIdentifier", + "documentation":"

    Information on the Provisioned Throughput assigned to an agent alias.

    " } }, "documentation":"

    Contains details about the routing configuration of the alias.

    " @@ -1589,7 +1596,7 @@ "members":{ "actionGroupExecutor":{ "shape":"ActionGroupExecutor", - "documentation":"

    The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.

    " }, "actionGroupName":{ "shape":"Name", @@ -3755,6 +3762,12 @@ "KNOWLEDGE_BASE_RESPONSE_GENERATION" ] }, + "ProvisionedModelIdentifier":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^((([0-9a-zA-Z][_-]?){1,63})|(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:provisioned-model/[a-z0-9]{12}))$" + }, "RdsArn":{ "type":"string", "pattern":"^arn:aws(|-cn|-us-gov):rds:[a-zA-Z0-9-]*:[0-9]{12}:cluster:[a-zA-Z0-9-]{1,63}$" @@ -4443,7 +4456,7 @@ "members":{ "dataDeletionPolicy":{ "shape":"DataDeletionPolicy", - "documentation":"

    The data deletion policy assigned to the data source.

    " + "documentation":"

    The data deletion policy of the updated data source.

    " }, "dataSourceConfiguration":{ "shape":"DataSourceConfiguration", diff --git a/tools/code-generation/api-descriptions/connect-2017-08-08.normal.json b/tools/code-generation/api-descriptions/connect-2017-08-08.normal.json index 5e5f4cbd907..75fcec83c4e 100644 --- a/tools/code-generation/api-descriptions/connect-2017-08-08.normal.json +++ b/tools/code-generation/api-descriptions/connect-2017-08-08.normal.json @@ -5,6 +5,7 @@ "endpointPrefix":"connect", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceAbbreviation":"Amazon Connect", "serviceFullName":"Amazon Connect Service", "serviceId":"Connect", @@ -309,6 +310,23 @@ ], "documentation":"

    This API is in preview release for Amazon Connect and is subject to change.

    Removes a list of analytics datasets associated with a given Amazon Connect instance. You can disassociate multiple datasets in a single call.

    " }, + "BatchGetAttachedFileMetadata":{ + "name":"BatchGetAttachedFileMetadata", + "http":{ + "method":"POST", + "requestUri":"/attached-files/{InstanceId}" + }, + "input":{"shape":"BatchGetAttachedFileMetadataRequest"}, + "output":{"shape":"BatchGetAttachedFileMetadataResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Allows you to retrieve metadata about multiple attached files on an associated resource. Each attached file provided in the input list must be associated with the input AssociatedResourceArn.

    " + }, "BatchGetFlowAssociation":{ "name":"BatchGetFlowAssociation", "http":{ @@ -364,6 +382,23 @@ ], "documentation":"

    Claims an available phone number to your Amazon Connect instance or traffic distribution group. You can call this API only in the same Amazon Web Services Region where the Amazon Connect instance or traffic distribution group was created.

    For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon Connect Administrator Guide.

    You can call the SearchAvailablePhoneNumbers API for available phone numbers that you can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation.

    If you plan to claim and release numbers frequently during a 30 day period, contact us for a service quota exception. Otherwise, it is possible you will be blocked from claiming and releasing any more numbers until 30 days past the oldest number released has expired.

    By default you can claim and release up to 200% of your maximum number of active phone numbers during any 30 day period. If you claim and release phone numbers using the UI or API during a rolling 30 day cycle that exceeds 200% of your phone number service level quota, you will be blocked from claiming any more numbers until 30 days past the oldest number released has expired.

    For example, if you already have 99 claimed numbers and a service level quota of 99 phone numbers, and in any 30 day period you release 99, claim 99, and then release 99, you will have exceeded the 200% limit. At that point you are blocked from claiming any more numbers until you open an Amazon Web Services support ticket.

    " }, + "CompleteAttachedFileUpload":{ + "name":"CompleteAttachedFileUpload", + "http":{ + "method":"POST", + "requestUri":"/attached-files/{InstanceId}/{FileId}" + }, + "input":{"shape":"CompleteAttachedFileUploadRequest"}, + "output":{"shape":"CompleteAttachedFileUploadResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Allows you to confirm that the attached file has been uploaded using the pre-signed URL provided in the StartAttachedFileUpload API.

    " + }, "CreateAgentStatus":{ "name":"CreateAgentStatus", "http":{ @@ -835,6 +870,23 @@ ], "documentation":"

    Deactivates an evaluation form in the specified Amazon Connect instance. After a form is deactivated, it is no longer available for users to start new evaluations based on the form.

    " }, + "DeleteAttachedFile":{ + "name":"DeleteAttachedFile", + "http":{ + "method":"DELETE", + "requestUri":"/attached-files/{InstanceId}/{FileId}" + }, + "input":{"shape":"DeleteAttachedFileRequest"}, + "output":{"shape":"DeleteAttachedFileResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes an attached file along with the underlying S3 Object.

    The attached file is permanently deleted if S3 bucket versioning is not enabled.

    " + }, "DeleteContactEvaluation":{ "name":"DeleteContactEvaluation", "http":{ @@ -1843,6 +1895,23 @@ ], "documentation":"

    Dismisses contacts from an agent’s CCP and returns the agent to an available state, which allows the agent to receive a new routed contact. Contacts can only be dismissed if they are in a MISSED, ERROR, ENDED, or REJECTED state in the Agent Event Stream.

    " }, + "GetAttachedFile":{ + "name":"GetAttachedFile", + "http":{ + "method":"GET", + "requestUri":"/attached-files/{InstanceId}/{FileId}" + }, + "input":{"shape":"GetAttachedFileRequest"}, + "output":{"shape":"GetAttachedFileResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Provides a pre-signed URL for download of an approved attached file. This API also returns metadata about the attached file. It will only return a downloadURL if the status of the attached file is APPROVED.

    " + }, "GetContactAttributes":{ "name":"GetContactAttributes", "http":{ @@ -3122,6 +3191,24 @@ ], "documentation":"

    Processes chat integration events from Amazon Web Services or external integrations to Amazon Connect. A chat integration event includes:

    • SourceId, DestinationId, and Subtype: a set of identifiers, uniquely representing a chat

    • ChatEvent: details of the chat action to perform such as sending a message, event, or disconnecting from a chat

    When a chat integration event is sent with chat identifiers that do not map to an active chat contact, a new chat contact is also created before handling chat action.

    Access to this API is currently restricted to Amazon Pinpoint for supporting SMS integration.

    " }, + "StartAttachedFileUpload":{ + "name":"StartAttachedFileUpload", + "http":{ + "method":"PUT", + "requestUri":"/attached-files/{InstanceId}" + }, + "input":{"shape":"StartAttachedFileUploadRequest"}, + "output":{"shape":"StartAttachedFileUploadResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceConflictException"}, + {"shape":"ServiceQuotaExceededException"} + ], + "documentation":"

    Provides a pre-signed Amazon S3 URL in response for uploading your content.

    You may only use this API to upload attachments to a Connect Case.

    " + }, "StartChatContact":{ "name":"StartChatContact", "http":{ @@ -5052,6 +5139,95 @@ "max":100, "min":1 }, + "AttachedFile":{ + "type":"structure", + "required":[ + "CreationTime", + "FileArn", + "FileId", + "FileName", + "FileSizeInBytes", + "FileStatus" + ], + "members":{ + "CreationTime":{ + "shape":"ISO8601Datetime", + "documentation":"

    The time of Creation of the file resource as an ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2024-05-03T02:41:28.172Z.

    " + }, + "FileArn":{ + "shape":"ARN", + "documentation":"

    The unique identifier of the attached file resource (ARN).

    " + }, + "FileId":{ + "shape":"FileId", + "documentation":"

    The unique identifier of the attached file resource.

    " + }, + "FileName":{ + "shape":"FileName", + "documentation":"

    A case-sensitive name of the attached file being uploaded.

    " + }, + "FileSizeInBytes":{ + "shape":"FileSizeInBytes", + "documentation":"

    The size of the attached file in bytes.

    ", + "box":true + }, + "FileStatus":{ + "shape":"FileStatusType", + "documentation":"

    The current status of the attached file.

    " + }, + "CreatedBy":{ + "shape":"CreatedByInfo", + "documentation":"

    Represents the identity that created the file.

    " + }, + "FileUseCaseType":{ + "shape":"FileUseCaseType", + "documentation":"

    The use case for the file.

    " + }, + "AssociatedResourceArn":{ + "shape":"ARN", + "documentation":"

    The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource.

    This value must be a valid ARN.

    " + }, + "Tags":{ + "shape":"TagMap", + "documentation":"

    The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + }, + "documentation":"

    Information about the attached file.

    " + }, + "AttachedFileError":{ + "type":"structure", + "members":{ + "ErrorCode":{ + "shape":"ErrorCode", + "documentation":"

    Status code describing the failure.

    " + }, + "ErrorMessage":{ + "shape":"ErrorMessage", + "documentation":"

    Why the attached file couldn't be retrieved.

    " + }, + "FileId":{ + "shape":"FileId", + "documentation":"

    The unique identifier of the attached file resource.

    " + } + }, + "documentation":"

    Error describing a failure to retrieve attached file metadata through BatchGetAttachedFileMetadata action.

    " + }, + "AttachedFileErrorsList":{ + "type":"list", + "member":{"shape":"AttachedFileError"} + }, + "AttachedFileInvalidRequestExceptionReason":{ + "type":"string", + "enum":[ + "INVALID_FILE_SIZE", + "INVALID_FILE_TYPE", + "INVALID_FILE_NAME" + ] + }, + "AttachedFilesList":{ + "type":"list", + "member":{"shape":"AttachedFile"} + }, "AttachmentName":{ "type":"string", "max":256, @@ -5249,6 +5425,45 @@ } } }, + "BatchGetAttachedFileMetadataRequest":{ + "type":"structure", + "required":[ + "FileIds", + "InstanceId", + "AssociatedResourceArn" + ], + "members":{ + "FileIds":{ + "shape":"FileIdList", + "documentation":"

    The unique identifiers of the attached file resource.

    " + }, + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

    The unique identifier of the Connect instance.

    ", + "location":"uri", + "locationName":"InstanceId" + }, + "AssociatedResourceArn":{ + "shape":"ARN", + "documentation":"

    The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource.

    This value must be a valid ARN.

    ", + "location":"querystring", + "locationName":"associatedResourceArn" + } + } + }, + "BatchGetAttachedFileMetadataResponse":{ + "type":"structure", + "members":{ + "Files":{ + "shape":"AttachedFilesList", + "documentation":"

    List of attached files that were successfully retrieved.

    " + }, + "Errors":{ + "shape":"AttachedFileErrorsList", + "documentation":"

    List of errors of attached files that could not be retrieved.

    " + } + } + }, "BatchGetFlowAssociationRequest":{ "type":"structure", "required":[ @@ -5567,6 +5782,41 @@ "type":"string", "enum":["LT"] }, + "CompleteAttachedFileUploadRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "FileId", + "AssociatedResourceArn" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

    The unique identifier of the Connect instance.

    ", + "location":"uri", + "locationName":"InstanceId" + }, + "FileId":{ + "shape":"FileId", + "documentation":"

    The unique identifier of the attached file resource.

    ", + "location":"uri", + "locationName":"FileId" + }, + "AssociatedResourceArn":{ + "shape":"ARN", + "documentation":"

    The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource.

    This value must be a valid ARN.

    ", + "location":"querystring", + "locationName":"associatedResourceArn" + } + }, + "documentation":"Request to CompleteAttachedFileUpload API" + }, + "CompleteAttachedFileUploadResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"Response from CompleteAttachedFileUpload API" + }, "Concurrency":{ "type":"integer", "max":10, @@ -7395,6 +7645,21 @@ } } }, + "CreatedByInfo":{ + "type":"structure", + "members":{ + "ConnectUserArn":{ + "shape":"ARN", + "documentation":"

    An agent ARN representing a connect user.

    " + }, + "AWSIdentityArn":{ + "shape":"ARN", + "documentation":"

    STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided.

    " + } + }, + "documentation":"

    Information on the identity that created the file.

    ", + "union":true + }, "Credentials":{ "type":"structure", "members":{ @@ -7628,6 +7893,41 @@ "max":9999, "min":0 }, + "DeleteAttachedFileRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "FileId", + "AssociatedResourceArn" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

    The unique identifier of the Connect instance.

    ", + "location":"uri", + "locationName":"InstanceId" + }, + "FileId":{ + "shape":"FileId", + "documentation":"

    The unique identifier of the attached file resource.

    ", + "location":"uri", + "locationName":"FileId" + }, + "AssociatedResourceArn":{ + "shape":"ARN", + "documentation":"

    The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource.

    This value must be a valid ARN.

    ", + "location":"querystring", + "locationName":"associatedResourceArn" + } + }, + "documentation":"Request to DeleteAttachedFile API" + }, + "DeleteAttachedFileResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"Response from DeleteAttachedFile API" + }, "DeleteContactEvaluationRequest":{ "type":"structure", "required":[ @@ -9325,6 +9625,20 @@ "member":{"shape":"Distribution"} }, "Double":{"type":"double"}, + "DownloadUrlMetadata":{ + "type":"structure", + "members":{ + "Url":{ + "shape":"MetadataUrl", + "documentation":"

    A pre-signed URL that should be used to download the attached file.

    " + }, + "UrlExpiry":{ + "shape":"ISO8601Datetime", + "documentation":"

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    " + } + }, + "documentation":"

    Metadata used to download the attached file.

    " + }, "DuplicateResourceException":{ "type":"structure", "members":{ @@ -9413,6 +9727,8 @@ "CONTACT_FLOW" ] }, + "ErrorCode":{"type":"string"}, + "ErrorMessage":{"type":"string"}, "ErrorResult":{ "type":"structure", "members":{ @@ -10406,6 +10722,40 @@ "type":"list", "member":{"shape":"FieldValue"} }, + "FileId":{ + "type":"string", + "max":256, + "min":1 + }, + "FileIdList":{ + "type":"list", + "member":{"shape":"FileId"}, + "min":1 + }, + "FileName":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^\\P{C}*$" + }, + "FileSizeInBytes":{ + "type":"long", + "box":true, + "min":1 + }, + "FileStatusType":{ + "type":"string", + "enum":[ + "APPROVED", + "REJECTED", + "PROCESSING", + "FAILED" + ] + }, + "FileUseCaseType":{ + "type":"string", + "enum":["ATTACHMENT"] + }, "FilterV2":{ "type":"structure", "members":{ @@ -10489,6 +10839,93 @@ "type":"list", "member":{"shape":"FunctionArn"} }, + "GetAttachedFileRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "FileId", + "AssociatedResourceArn" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

    The unique identifier of the Connect instance.

    ", + "location":"uri", + "locationName":"InstanceId" + }, + "FileId":{ + "shape":"FileId", + "documentation":"

    The unique identifier of the attached file resource.

    ", + "location":"uri", + "locationName":"FileId" + }, + "UrlExpiryInSeconds":{ + "shape":"URLExpiryInSeconds", + "documentation":"

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    ", + "location":"querystring", + "locationName":"urlExpiryInSeconds" + }, + "AssociatedResourceArn":{ + "shape":"ARN", + "documentation":"

    The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource.

    This value must be a valid ARN.

    ", + "location":"querystring", + "locationName":"associatedResourceArn" + } + }, + "documentation":"Request to GetAttachedFile API." + }, + "GetAttachedFileResponse":{ + "type":"structure", + "required":["FileSizeInBytes"], + "members":{ + "FileArn":{ + "shape":"ARN", + "documentation":"

    The unique identifier of the attached file resource (ARN).

    " + }, + "FileId":{ + "shape":"FileId", + "documentation":"

    The unique identifier of the attached file resource.

    " + }, + "CreationTime":{ + "shape":"ISO8601Datetime", + "documentation":"

    The time of Creation of the file resource as an ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2024-05-03T02:41:28.172Z.

    " + }, + "FileStatus":{ + "shape":"FileStatusType", + "documentation":"

    The current status of the attached file.

    " + }, + "FileName":{ + "shape":"FileName", + "documentation":"

    A case-sensitive name of the attached file being uploaded.

    " + }, + "FileSizeInBytes":{ + "shape":"FileSizeInBytes", + "documentation":"

    The size of the attached file in bytes.

    ", + "box":true + }, + "AssociatedResourceArn":{ + "shape":"ARN", + "documentation":"

    The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource.

    This value must be a valid ARN.

    " + }, + "FileUseCaseType":{ + "shape":"FileUseCaseType", + "documentation":"

    The use case for the file.

    " + }, + "CreatedBy":{ + "shape":"CreatedByInfo", + "documentation":"

    Represents the identity that created the file.

    " + }, + "DownloadUrlMetadata":{ + "shape":"DownloadUrlMetadata", + "documentation":"

    URL and expiry to be used when downloading the attached file.

    " + }, + "Tags":{ + "shape":"TagMap", + "documentation":"

    The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + }, + "documentation":"Response from GetAttachedFile API." + }, "GetContactAttributesRequest":{ "type":"structure", "required":[ @@ -10800,7 +11237,7 @@ }, "Metrics":{ "shape":"MetricsV2", - "documentation":"

    The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

    ABANDONMENT_RATE

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Abandonment rate

    AGENT_ADHERENT_TIME

    This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Adherent time

    AGENT_ANSWER_RATE

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent answer rate

    AGENT_NON_ADHERENT_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Non-adherent time

    AGENT_NON_RESPONSE

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent non-response

    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    Data for this metric is available starting from October 1, 2023 0:00:00 GMT.

    UI name: Agent non-response without customer abandons

    AGENT_OCCUPANCY

    Unit: Percentage

    Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

    UI name: Occupancy

    AGENT_SCHEDULE_ADHERENCE

    This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Adherence

    AGENT_SCHEDULED_TIME

    This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Scheduled time

    AVG_ABANDON_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average queue abandon time

    AVG_ACTIVE_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Average active time

    AVG_AFTER_CONTACT_WORK_TIME

    Unit: Seconds

    Valid metric filter key: INITIATION_METHOD

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average after contact work time

    Feature is a valid filter but not a valid grouping.

    AVG_AGENT_CONNECTING_TIME

    Unit: Seconds

    Valid metric filter key: INITIATION_METHOD. For now, this metric only supports the following as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Average agent API connecting time

    The Negate key in Metric Level Filters is not applicable for this metric.

    AVG_AGENT_PAUSE_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Average agent pause time

    AVG_CASE_RELATED_CONTACTS

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Average contacts per case

    AVG_CASE_RESOLUTION_TIME

    Unit: Seconds

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Average case resolution time

    AVG_CONTACT_DURATION

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average contact duration

    Feature is a valid filter but not a valid grouping.

    AVG_CONVERSATION_DURATION

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average conversation duration

    AVG_GREETING_TIME_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average greeting time agent

    AVG_HANDLE_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression

    UI name: Average handle time

    Feature is a valid filter but not a valid grouping.

    AVG_HOLD_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average customer hold time

    Feature is a valid filter but not a valid grouping.

    AVG_HOLD_TIME_ALL_CONTACTS

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average customer hold time all contacts

    AVG_HOLDS

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average holds

    Feature is a valid filter but not a valid grouping.

    AVG_INTERACTION_AND_HOLD_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average agent interaction and customer hold time

    AVG_INTERACTION_TIME

    Unit: Seconds

    Valid metric filter key: INITIATION_METHOD

    Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average agent interaction time

    Feature is a valid filter but not a valid grouping.

    AVG_INTERRUPTIONS_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average interruptions agent

    AVG_INTERRUPTION_TIME_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average interruption time agent

    AVG_NON_TALK_TIME

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average non-talk time

    AVG_QUEUE_ANSWER_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average queue answer time

    Feature is a valid filter but not a valid grouping.

    AVG_RESOLUTION_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    UI name: Average resolution time

    AVG_TALK_TIME

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average talk time

    AVG_TALK_TIME_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average talk time agent

    AVG_TALK_TIME_CUSTOMER

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average talk time customer

    CASES_CREATED

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases created

    CONTACTS_ABANDONED

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, RoutingStepExpression

    UI name: Contact abandoned

    CONTACTS_CREATED

    Unit: Count

    Valid metric filter key: INITIATION_METHOD

    Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Contacts created

    Feature is a valid filter but not a valid grouping.

    CONTACTS_HANDLED

    Unit: Count

    Valid metric filter key: INITIATION_METHOD, DISCONNECT_REASON

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression

    UI name: API contacts handled

    Feature is a valid filter but not a valid grouping.

    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT

    Unit: Count

    Valid metric filter key: INITIATION_METHOD

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts handled by Connected to agent

    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts hold agent disconnect

    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts hold customer disconnect

    CONTACTS_PUT_ON_HOLD

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts put on hold

    CONTACTS_TRANSFERRED_OUT_EXTERNAL

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts transferred out external

    CONTACTS_TRANSFERRED_OUT_INTERNAL

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts transferred out internal

    CONTACTS_QUEUED

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts queued

    CONTACTS_QUEUED_BY_ENQUEUE

    Unit: Count

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts queued by Enqueue

    CONTACTS_RESOLVED_IN_X

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For ThresholdValue enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \"Less than\").

    UI name: Contacts resolved in X

    CONTACTS_TRANSFERRED_OUT

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Contacts transferred out

    Feature is a valid filter but not a valid grouping.

    CONTACTS_TRANSFERRED_OUT_BY_AGENT

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts transferred out by agent

    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts transferred out queue

    CURRENT_CASES

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Current cases

    MAX_QUEUED_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Maximum queued time

    PERCENT_CASES_FIRST_CONTACT_RESOLVED

    Unit: Percent

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases resolved on first contact

    PERCENT_CONTACTS_STEP_EXPIRED

    Unit: Percent

    Valid groupings and filters: Queue, RoutingStepExpression

    UI name: Not available

    PERCENT_CONTACTS_STEP_JOINED

    Unit: Percent

    Valid groupings and filters: Queue, RoutingStepExpression

    UI name: Not available

    PERCENT_NON_TALK_TIME

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Percentage

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Non-talk time percent

    PERCENT_TALK_TIME

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Percentage

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Talk time percent

    PERCENT_TALK_TIME_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Percentage

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Talk time agent percent

    PERCENT_TALK_TIME_CUSTOMER

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Percentage

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Talk time customer percent

    REOPENED_CASE_ACTIONS

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases resolved

    SERVICE_LEVEL

    You can include up to 20 SERVICE_LEVEL metrics in a request.

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile

    Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \"Less than\").

    UI name: Service level X

    STEP_CONTACTS_QUEUED

    Unit: Count

    Valid groupings and filters: Queue, RoutingStepExpression

    UI name: Not available

    SUM_AFTER_CONTACT_WORK_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: After contact work time

    SUM_CONNECTING_TIME_AGENT

    Unit: Seconds

    Valid metric filter key: INITIATION_METHOD. This metric only supports the following filter keys as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent API connecting time

    The Negate key in Metric Level Filters is not applicable for this metric.

    SUM_CONTACT_FLOW_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contact flow time

    SUM_CONTACT_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent on contact time

    SUM_CONTACTS_ANSWERED_IN_X

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \"Less than\").

    UI name: Contacts answered in X seconds

    SUM_CONTACTS_ABANDONED_IN_X

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \"Less than\").

    UI name: Contacts abandoned in X seconds

    SUM_CONTACTS_DISCONNECTED

    Valid metric filter key: DISCONNECT_REASON

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contact disconnected

    SUM_ERROR_STATUS_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Error status time

    SUM_HANDLE_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contact handle time

    SUM_HOLD_TIME

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Customer hold time

    SUM_IDLE_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

    UI name: Agent idle time

    SUM_INTERACTION_AND_HOLD_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent interaction and hold time

    SUM_INTERACTION_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent interaction time

    SUM_NON_PRODUCTIVE_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

    UI name: Non-Productive Time

    SUM_ONLINE_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

    UI name: Online time

    SUM_RETRY_CALLBACK_ATTEMPTS

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    UI name: Callback attempts

    " + "documentation":"

    The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

    ABANDONMENT_RATE

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Abandonment rate

    AGENT_ADHERENT_TIME

    This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Adherent time

    AGENT_ANSWER_RATE

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent answer rate

    AGENT_NON_ADHERENT_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Non-adherent time

    AGENT_NON_RESPONSE

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent non-response

    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    Data for this metric is available starting from October 1, 2023 0:00:00 GMT.

    UI name: Agent non-response without customer abandons

    AGENT_OCCUPANCY

    Unit: Percentage

    Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

    UI name: Occupancy

    AGENT_SCHEDULE_ADHERENCE

    This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Adherence

    AGENT_SCHEDULED_TIME

    This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Scheduled time

    AVG_ABANDON_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average queue abandon time

    AVG_ACTIVE_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Average active time

    AVG_AFTER_CONTACT_WORK_TIME

    Unit: Seconds

    Valid metric filter key: INITIATION_METHOD

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average after contact work time

    Feature is a valid filter but not a valid grouping.

    AVG_AGENT_CONNECTING_TIME

    Unit: Seconds

    Valid metric filter key: INITIATION_METHOD. For now, this metric only supports the following as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Average agent API connecting time

    The Negate key in Metric Level Filters is not applicable for this metric.

    AVG_AGENT_PAUSE_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Average agent pause time

    AVG_CASE_RELATED_CONTACTS

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Average contacts per case

    AVG_CASE_RESOLUTION_TIME

    Unit: Seconds

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Average case resolution time

    AVG_CONTACT_DURATION

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average contact duration

    Feature is a valid filter but not a valid grouping.

    AVG_CONVERSATION_DURATION

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average conversation duration

    AVG_GREETING_TIME_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average agent greeting time

    AVG_HANDLE_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression

    UI name: Average handle time

    Feature is a valid filter but not a valid grouping.

    AVG_HOLD_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average customer hold time

    Feature is a valid filter but not a valid grouping.

    AVG_HOLD_TIME_ALL_CONTACTS

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average customer hold time all contacts

    AVG_HOLDS

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average holds

    Feature is a valid filter but not a valid grouping.

    AVG_INTERACTION_AND_HOLD_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average agent interaction and customer hold time

    AVG_INTERACTION_TIME

    Unit: Seconds

    Valid metric filter key: INITIATION_METHOD

    Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average agent interaction time

    Feature is a valid filter but not a valid grouping.

    AVG_INTERRUPTIONS_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average agent interruptions

    AVG_INTERRUPTION_TIME_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average agent interruption time

    AVG_NON_TALK_TIME

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average non-talk time

    AVG_QUEUE_ANSWER_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Average queue answer time

    Feature is a valid filter but not a valid grouping.

    AVG_RESOLUTION_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    UI name: Average resolution time

    AVG_TALK_TIME

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average talk time

    AVG_TALK_TIME_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average agent talk time

    AVG_TALK_TIME_CUSTOMER

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Average customer talk time

    CASES_CREATED

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases created

    CONTACTS_ABANDONED

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, RoutingStepExpression

    UI name: Contact abandoned

    CONTACTS_CREATED

    Unit: Count

    Valid metric filter key: INITIATION_METHOD

    Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Contacts created

    Feature is a valid filter but not a valid grouping.

    CONTACTS_HANDLED

    Unit: Count

    Valid metric filter key: INITIATION_METHOD, DISCONNECT_REASON

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression

    UI name: API contacts handled

    Feature is a valid filter but not a valid grouping.

    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT

    Unit: Count

    Valid metric filter key: INITIATION_METHOD

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts handled (connected to agent timestamp)

    CONTACTS_HOLD_ABANDONS

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts hold disconnect

    CONTACTS_ON_HOLD_AGENT_DISCONNECT

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts hold agent disconnect

    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts hold customer disconnect

    CONTACTS_PUT_ON_HOLD

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts put on hold

    CONTACTS_TRANSFERRED_OUT_EXTERNAL

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts transferred out external

    CONTACTS_TRANSFERRED_OUT_INTERNAL

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contacts transferred out internal

    CONTACTS_QUEUED

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts queued

    CONTACTS_QUEUED_BY_ENQUEUE

    Unit: Count

    Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts queued (enqueue timestamp)

    CONTACTS_RESOLVED_IN_X

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For ThresholdValue enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \"Less than\").

    UI name: Contacts resolved in X

    CONTACTS_TRANSFERRED_OUT

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

    UI name: Contacts transferred out

    Feature is a valid filter but not a valid grouping.

    CONTACTS_TRANSFERRED_OUT_BY_AGENT

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts transferred out by agent

    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contacts transferred out queue

    CURRENT_CASES

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Current cases

    MAX_QUEUED_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Maximum queued time

    PERCENT_CASES_FIRST_CONTACT_RESOLVED

    Unit: Percent

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases resolved on first contact

    PERCENT_CONTACTS_STEP_EXPIRED

    Unit: Percent

    Valid groupings and filters: Queue, RoutingStepExpression

    UI name: Not available

    PERCENT_CONTACTS_STEP_JOINED

    Unit: Percent

    Valid groupings and filters: Queue, RoutingStepExpression

    UI name: Not available

    PERCENT_NON_TALK_TIME

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Percentage

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Non-talk time percent

    PERCENT_TALK_TIME

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Percentage

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Talk time percent

    PERCENT_TALK_TIME_AGENT

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Percentage

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Agent talk time percent

    PERCENT_TALK_TIME_CUSTOMER

    This metric is available only for contacts analyzed by Contact Lens conversational analytics.

    Unit: Percentage

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Customer talk time percent

    REOPENED_CASE_ACTIONS

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases reopened

    RESOLVED_CASE_ACTIONS

    Unit: Count

    Required filter key: CASE_TEMPLATE_ARN

    Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

    UI name: Cases resolved

    SERVICE_LEVEL

    You can include up to 20 SERVICE_LEVEL metrics in a request.

    Unit: Percent

    Valid groupings and filters: Queue, Channel, Routing Profile

    Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \"Less than\").

    UI name: Service level X

    STEP_CONTACTS_QUEUED

    Unit: Count

    Valid groupings and filters: Queue, RoutingStepExpression

    UI name: Not available

    SUM_AFTER_CONTACT_WORK_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: After contact work time

    SUM_CONNECTING_TIME_AGENT

    Unit: Seconds

    Valid metric filter key: INITIATION_METHOD. This metric only supports the following filter keys as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent API connecting time

    The Negate key in Metric Level Filters is not applicable for this metric.

    SUM_CONTACT_FLOW_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contact flow time

    SUM_CONTACT_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent on contact time

    SUM_CONTACTS_ANSWERED_IN_X

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \"Less than\").

    UI name: Contacts answered in X seconds

    SUM_CONTACTS_ABANDONED_IN_X

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \"Less than\").

    UI name: Contacts abandoned in X seconds

    SUM_CONTACTS_DISCONNECTED

    Valid metric filter key: DISCONNECT_REASON

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

    UI name: Contact disconnected

    SUM_ERROR_STATUS_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Error status time

    SUM_HANDLE_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Contact handle time

    SUM_HOLD_TIME

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Customer hold time

    SUM_IDLE_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

    UI name: Agent idle time

    SUM_INTERACTION_AND_HOLD_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent interaction and hold time

    SUM_INTERACTION_TIME

    Unit: Seconds

    Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

    UI name: Agent interaction time

    SUM_NON_PRODUCTIVE_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

    UI name: Non-Productive Time

    SUM_ONLINE_TIME_AGENT

    Unit: Seconds

    Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

    UI name: Online time

    SUM_RETRY_CALLBACK_ATTEMPTS

    Unit: Count

    Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

    UI name: Callback attempts

    " }, "NextToken":{ "shape":"NextToken2500", @@ -11961,12 +12398,24 @@ "Message":{ "shape":"Message", "documentation":"

    The message about the request.

    " - } + }, + "Reason":{"shape":"InvalidRequestExceptionReason"} }, "documentation":"

    The request is not valid.

    ", "error":{"httpStatusCode":400}, "exception":true }, + "InvalidRequestExceptionReason":{ + "type":"structure", + "members":{ + "AttachedFileInvalidRequestExceptionReason":{ + "shape":"AttachedFileInvalidRequestExceptionReason", + "documentation":"

    Reason why the StartAttachedFiledUpload request was invalid.

    " + } + }, + "documentation":"

    Reason why the request was invalid.

    ", + "union":true + }, "InvisibleFieldInfo":{ "type":"structure", "members":{ @@ -14228,6 +14677,11 @@ }, "MeetingId":{"type":"string"}, "Message":{"type":"string"}, + "MetadataUrl":{ + "type":"string", + "max":2000, + "min":1 + }, "MetricDataCollectionsV2":{ "type":"list", "member":{"shape":"MetricDataV2"} @@ -18134,6 +18588,90 @@ "CASES" ] }, + "StartAttachedFileUploadRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "FileName", + "FileSizeInBytes", + "FileUseCaseType", + "AssociatedResourceArn" + ], + "members":{ + "ClientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    ", + "idempotencyToken":true + }, + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

    The unique identifier of the Connect instance.

    ", + "location":"uri", + "locationName":"InstanceId" + }, + "FileName":{ + "shape":"FileName", + "documentation":"

    A case-sensitive name of the attached file being uploaded.

    " + }, + "FileSizeInBytes":{ + "shape":"FileSizeInBytes", + "documentation":"

    The size of the attached file in bytes.

    ", + "box":true + }, + "UrlExpiryInSeconds":{ + "shape":"URLExpiryInSeconds", + "documentation":"

    Optional override for the expiry of the pre-signed S3 URL in seconds.

    " + }, + "FileUseCaseType":{ + "shape":"FileUseCaseType", + "documentation":"

    The use case for the file.

    " + }, + "AssociatedResourceArn":{ + "shape":"ARN", + "documentation":"

    The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource.

    This value must be a valid ARN.

    ", + "location":"querystring", + "locationName":"associatedResourceArn" + }, + "CreatedBy":{ + "shape":"CreatedByInfo", + "documentation":"

    Represents the identity that created the file.

    " + }, + "Tags":{ + "shape":"TagMap", + "documentation":"

    The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + } + }, + "StartAttachedFileUploadResponse":{ + "type":"structure", + "members":{ + "FileArn":{ + "shape":"ARN", + "documentation":"

    The unique identifier of the attached file resource (ARN).

    " + }, + "FileId":{ + "shape":"FileId", + "documentation":"

    The unique identifier of the attached file resource.

    " + }, + "CreationTime":{ + "shape":"ISO8601Datetime", + "documentation":"

    The time of Creation of the file resource as an ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2024-05-03T02:41:28.172Z.

    " + }, + "FileStatus":{ + "shape":"FileStatusType", + "documentation":"

    The current status of the attached file.

    " + }, + "CreatedBy":{ + "shape":"CreatedByInfo", + "documentation":"

    Represents the identity that created the file.

    " + }, + "UploadUrlMetadata":{ + "shape":"UploadUrlMetadata", + "documentation":"

    Information to be used while uploading the attached file.

    " + } + }, + "documentation":"Response from StartAttachedFileUpload API." + }, "StartChatContactRequest":{ "type":"structure", "required":[ @@ -19474,6 +20012,11 @@ "max":2000, "min":1 }, + "URLExpiryInSeconds":{ + "type":"integer", + "max":300, + "min":5 + }, "Unit":{ "type":"string", "enum":[ @@ -19612,7 +20155,7 @@ }, "Attributes":{ "shape":"Attributes", - "documentation":"

    The Amazon Connect attributes. These attributes can be accessed in flows just like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes across all attributes for a contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

    " + "documentation":"

    The Amazon Connect attributes. These attributes can be accessed in flows just like any other contact attributes.

    You can have up to 32,768 UTF-8 bytes across all attributes for a contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

    When the attributes for a contact exceed 32 KB, the contact is routed down the Error branch of the flow. As a mitigation, consider the following options:

    • Remove unnecessary attributes by setting their values to empty.

    • If the attributes are only used in one flow and don't need to be referred to outside of that flow (for example, by a Lambda or another flow), then use flow attributes. This way you aren't needlessly persisting the 32 KB of information from one flow to another. For more information, see Flow block: Set contact attributes in the Amazon Connect Administrator Guide.

    " } } }, @@ -21105,7 +21648,40 @@ "members":{ } }, + "UploadUrlMetadata":{ + "type":"structure", + "members":{ + "Url":{ + "shape":"MetadataUrl", + "documentation":"

    A pre-signed S3 URL that should be used for uploading the attached file.

    " + }, + "UrlExpiry":{ + "shape":"ISO8601Datetime", + "documentation":"

    The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    " + }, + "HeadersToInclude":{ + "shape":"UrlMetadataSignedHeaders", + "documentation":"

    A map of headers that should be provided when uploading the attached file.

    " + } + }, + "documentation":"

    Fields required when uploading an attached file.

    " + }, "Url":{"type":"string"}, + "UrlMetadataSignedHeaders":{ + "type":"map", + "key":{"shape":"UrlMetadataSignedHeadersKey"}, + "value":{"shape":"UrlMetadataSignedHeadersValue"} + }, + "UrlMetadataSignedHeadersKey":{ + "type":"string", + "max":128, + "min":1 + }, + "UrlMetadataSignedHeadersValue":{ + "type":"string", + "max":256, + "min":1 + }, "UrlReference":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/connectcases-2022-10-03.normal.json b/tools/code-generation/api-descriptions/connectcases-2022-10-03.normal.json index ff1100de287..5974e1856d2 100644 --- a/tools/code-generation/api-descriptions/connectcases-2022-10-03.normal.json +++ b/tools/code-generation/api-descriptions/connectcases-2022-10-03.normal.json @@ -1426,13 +1426,13 @@ "members":{ "domainId":{ "shape":"DomainId", - "documentation":"

    The unique identifier of the Cases domain.

    ", + "documentation":"

    The unique identifier of the Cases domain.

    ", "location":"uri", "locationName":"domainId" }, "fieldId":{ "shape":"FieldId", - "documentation":"

    The unique identifier of a field.

    ", + "documentation":"

    Unique identifier of the field.

    ", "location":"uri", "locationName":"fieldId" } @@ -1452,7 +1452,7 @@ "members":{ "domainId":{ "shape":"DomainId", - "documentation":"

    The unique identifier of the Cases domain.

    ", + "documentation":"

    The unique identifier of the Cases domain.

    ", "location":"uri", "locationName":"domainId" }, @@ -1478,7 +1478,7 @@ "members":{ "domainId":{ "shape":"DomainId", - "documentation":"

    The unique identifier of the Cases domain.

    ", + "documentation":"

    The unique identifier of the Cases domain.

    ", "location":"uri", "locationName":"domainId" }, @@ -1872,6 +1872,32 @@ "max":1500, "min":0 }, + "FileArn":{ + "type":"string", + "max":500, + "min":1 + }, + "FileContent":{ + "type":"structure", + "required":["fileArn"], + "members":{ + "fileArn":{ + "shape":"FileArn", + "documentation":"

    The Amazon Resource Name (ARN) of a File in Amazon Connect.

    " + } + }, + "documentation":"

    An object that represents a content of an Amazon Connect file object.

    " + }, + "FileFilter":{ + "type":"structure", + "members":{ + "fileArn":{ + "shape":"FileArn", + "documentation":"

    The Amazon Resource Name (ARN) of the file.

    " + } + }, + "documentation":"

    A filter for related items of type File.

    " + }, "GetCaseAuditEventsRequest":{ "type":"structure", "required":[ @@ -2076,11 +2102,11 @@ "members":{ "createdTime":{ "shape":"CreatedTime", - "documentation":"

    The timestamp for when the resource was created.

    " + "documentation":"

    Timestamp at which the resource was created.

    " }, "deleted":{ "shape":"Deleted", - "documentation":"

    Indicates whether the resource has been deleted.

    " + "documentation":"

    Denotes whether or not the resource has been deleted.

    " }, "description":{ "shape":"FieldDescription", @@ -2096,7 +2122,7 @@ }, "lastModifiedTime":{ "shape":"LastModifiedTime", - "documentation":"

    The timestamp for when the resource was created or last modified.

    " + "documentation":"

    Timestamp at which the resource was created or last modified.

    " }, "name":{ "shape":"FieldName", @@ -2153,15 +2179,15 @@ }, "createdTime":{ "shape":"CreatedTime", - "documentation":"

    The timestamp for when the resource was created.

    " + "documentation":"

    Timestamp at which the resource was created.

    " }, "deleted":{ "shape":"Deleted", - "documentation":"

    Indicates whether the resource has been deleted.

    " + "documentation":"

    Denotes whether or not the resource has been deleted.

    " }, "lastModifiedTime":{ "shape":"LastModifiedTime", - "documentation":"

    The timestamp for when the resource was created or last modified.

    " + "documentation":"

    Timestamp at which the resource was created or last modified.

    " }, "layoutArn":{ "shape":"LayoutArn", @@ -2213,11 +2239,11 @@ "members":{ "createdTime":{ "shape":"CreatedTime", - "documentation":"

    The timestamp for when the resource was created.

    " + "documentation":"

    Timestamp at which the resource was created.

    " }, "deleted":{ "shape":"Deleted", - "documentation":"

    Indicates whether the resource has been deleted.

    " + "documentation":"

    Denotes whether or not the resource has been deleted.

    " }, "description":{ "shape":"TemplateDescription", @@ -2225,7 +2251,7 @@ }, "lastModifiedTime":{ "shape":"LastModifiedTime", - "documentation":"

    The timestamp for when the resource was created or last modified.

    " + "documentation":"

    Timestamp at which the resource was created or last modified.

    " }, "layoutConfiguration":{ "shape":"LayoutConfiguration", @@ -2712,6 +2738,10 @@ "contact":{ "shape":"ContactContent", "documentation":"

    Represents the content of a contact to be returned to agents.

    " + }, + "file":{ + "shape":"FileContent", + "documentation":"

    Represents the content of a File to be returned to agents.

    " } }, "documentation":"

    Represents the content of a particular type of related item.

    ", @@ -2743,6 +2773,10 @@ "contact":{ "shape":"Contact", "documentation":"

    Object representing a contact in Amazon Connect as an API request field.

    " + }, + "file":{ + "shape":"FileContent", + "documentation":"

    A file of related items.

    " } }, "documentation":"

    Represents the content of a related item to be created.

    ", @@ -2752,7 +2786,8 @@ "type":"string", "enum":[ "Contact", - "Comment" + "Comment", + "File" ] }, "RelatedItemTypeFilter":{ @@ -2765,6 +2800,10 @@ "contact":{ "shape":"ContactFilter", "documentation":"

    A filter for related items of type Contact.

    " + }, + "file":{ + "shape":"FileFilter", + "documentation":"

    A filter for related items of this type of File.

    " } }, "documentation":"

    The list of types of related items and their parameters to use for filtering.

    ", diff --git a/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json b/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json index 33f79859921..59190377ae8 100644 --- a/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json +++ b/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json @@ -5,6 +5,7 @@ "endpointPrefix":"datasync", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceAbbreviation":"DataSync", "serviceFullName":"AWS DataSync", "serviceId":"DataSync", @@ -808,7 +809,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

    Updates some parameters of an existing object storage location that DataSync accesses for a transfer. For information about creating a self-managed object storage location, see Creating a location for object storage.

    " + "documentation":"

    Updates some parameters of an existing DataSync location for an object storage system.

    " }, "UpdateLocationSmb":{ "name":"UpdateLocationSmb", @@ -1532,7 +1533,7 @@ }, "ServerCertificate":{ "shape":"ObjectStorageCertificate", - "documentation":"

    Specifies a file with the certificates that are used to sign the object storage server's certificate (for example, file:///home/user/.ssh/storage_sys_certificate.pem). The file you specify must include the following:

    • The certificate of the signing certificate authority (CA)

    • Any intermediate certificates

    • base64 encoding

    • A .pem extension

    The file can be up to 32768 bytes (before base64 encoding).

    To use this parameter, configure ServerProtocol to HTTPS.

    " + "documentation":"

    Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single .pem file with a full certificate chain (for example, file:///home/user/.ssh/object_storage_certificates.pem).

    The certificate chain might include:

    • The object storage system's certificate

    • All intermediate certificates (if there are any)

    • The root certificate of the signing CA

    You can concatenate your certificates into a .pem file (which can be up to 32768 bytes before base64 encoding). The following example cat command creates an object_storage_certificates.pem file that includes three certificates:

    cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem

    To use this parameter, configure ServerProtocol to HTTPS.

    " } }, "documentation":"

    CreateLocationObjectStorageRequest

    " @@ -2232,7 +2233,7 @@ }, "ServerCertificate":{ "shape":"ObjectStorageCertificate", - "documentation":"

    The self-signed certificate that DataSync uses to securely authenticate with your object storage system.

    " + "documentation":"

    The certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).

    " } }, "documentation":"

    DescribeLocationObjectStorageResponse

    " @@ -4813,7 +4814,7 @@ }, "Status":{ "shape":"ScheduleStatus", - "documentation":"

    Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer or fix an issue with your task or perform maintenance on your storage system.

    DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.

    " + "documentation":"

    Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.

    DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.

    " } }, "documentation":"

    Configures your DataSync task to run on a schedule (at a minimum interval of 1 hour).

    " @@ -5108,7 +5109,7 @@ }, "ServerCertificate":{ "shape":"ObjectStorageCertificate", - "documentation":"

    Specifies a certificate to authenticate with an object storage system that uses a private or self-signed certificate authority (CA). You must specify a Base64-encoded .pem file (for example, file:///home/user/.ssh/storage_sys_certificate.pem). The certificate can be up to 32768 bytes (before Base64 encoding).

    To use this parameter, configure ServerProtocol to HTTPS.

    Updating the certificate doesn't interfere with tasks that you have in progress.

    " + "documentation":"

    Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single .pem file with a full certificate chain (for example, file:///home/user/.ssh/object_storage_certificates.pem).

    The certificate chain might include:

    • The object storage system's certificate

    • All intermediate certificates (if there are any)

    • The root certificate of the signing CA

    You can concatenate your certificates into a .pem file (which can be up to 32768 bytes before base64 encoding). The following example cat command creates an object_storage_certificates.pem file that includes three certificates:

    cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem

    To use this parameter, configure ServerProtocol to HTTPS.

    Updating this parameter doesn't interfere with tasks that you have in progress.

    " } } }, diff --git a/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json b/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json index 0a43d0e7f25..9c28347bc90 100644 --- a/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json +++ b/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json @@ -401,6 +401,7 @@ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, {"shape":"InternalServerException"} ], "documentation":"

    Retrieves a CIS scan report.

    " @@ -2047,6 +2048,13 @@ "type":"string", "pattern":"^\\d{12}|o-[a-z0-9]{10,32}$" }, + "CisReportFormat":{ + "type":"string", + "enum":[ + "PDF", + "CSV" + ] + }, "CisReportStatus":{ "type":"string", "enum":[ @@ -4922,6 +4930,10 @@ "type":"structure", "required":["scanArn"], "members":{ + "reportFormat":{ + "shape":"CisReportFormat", + "documentation":"

    The format of the report. Valid values are PDF and CSV. If no value is specified, the report format defaults to PDF.

    " + }, "scanArn":{ "shape":"CisScanArn", "documentation":"

    The scan ARN.

    " @@ -4941,7 +4953,7 @@ }, "url":{ "shape":"String", - "documentation":"

    The URL where a PDF of the CIS scan report can be downloaded.

    " + "documentation":"

    The URL where a PDF or CSV of the CIS scan report can be downloaded.

    " } } }, diff --git a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json index be45ca08928..ba74eccef96 100644 --- a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json +++ b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json @@ -32880,7 +32880,7 @@ "documentation":"

    Set to True to allow SageMaker to extract session tags from a training job creation role and reuse these tags when assuming the training job execution role.

    " } }, - "documentation":"

    Contains information about attribute-based access control (ABAC) for a training job.

    " + "documentation":"

    Contains information about attribute-based access control (ABAC) for a training job. The session chaining configuration uses Amazon Security Token Service (STS) for your training job to request temporary, limited-privilege credentials to tenants. For more information, see Attribute-based access control (ABAC) for multi-tenancy training.

    " }, "SessionExpirationDurationInSeconds":{ "type":"integer", @@ -35088,12 +35088,74 @@ "ml.m5.4xlarge", "ml.m5.12xlarge", "ml.m5.24xlarge", + "ml.m6i.large", + "ml.m6i.xlarge", + "ml.m6i.2xlarge", + "ml.m6i.4xlarge", + "ml.m6i.8xlarge", + "ml.m6i.12xlarge", + "ml.m6i.16xlarge", + "ml.m6i.24xlarge", + "ml.m6i.32xlarge", + "ml.c6i.large", + "ml.c6i.xlarge", + "ml.c6i.2xlarge", + "ml.c6i.4xlarge", + "ml.c6i.8xlarge", + "ml.c6i.12xlarge", + "ml.c6i.16xlarge", + "ml.c6i.24xlarge", + "ml.c6i.32xlarge", + "ml.r6i.large", + "ml.r6i.xlarge", + "ml.r6i.2xlarge", + "ml.r6i.4xlarge", + "ml.r6i.8xlarge", + "ml.r6i.12xlarge", + "ml.r6i.16xlarge", + "ml.r6i.24xlarge", + "ml.r6i.32xlarge", + "ml.m7i.large", + "ml.m7i.xlarge", + "ml.m7i.2xlarge", + "ml.m7i.4xlarge", + "ml.m7i.8xlarge", + "ml.m7i.12xlarge", + "ml.m7i.16xlarge", + "ml.m7i.24xlarge", + "ml.m7i.48xlarge", + "ml.c7i.large", + "ml.c7i.xlarge", + "ml.c7i.2xlarge", + "ml.c7i.4xlarge", + "ml.c7i.8xlarge", + "ml.c7i.12xlarge", + "ml.c7i.16xlarge", + "ml.c7i.24xlarge", + "ml.c7i.48xlarge", + "ml.r7i.large", + "ml.r7i.xlarge", + "ml.r7i.2xlarge", + "ml.r7i.4xlarge", + "ml.r7i.8xlarge", + "ml.r7i.12xlarge", + "ml.r7i.16xlarge", + "ml.r7i.24xlarge", + "ml.r7i.48xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", "ml.g4dn.8xlarge", "ml.g4dn.12xlarge", - "ml.g4dn.16xlarge" + "ml.g4dn.16xlarge", + "ml.g5.xlarge", + "ml.g5.2xlarge", + "ml.g5.4xlarge", + "ml.g5.8xlarge", + "ml.g5.12xlarge", + "ml.g5.16xlarge", + "ml.g5.24xlarge", + "ml.g5.48xlarge" ] }, "TransformInstanceTypes":{ diff --git a/tools/code-generation/api-descriptions/sesv2-2019-09-27.normal.json b/tools/code-generation/api-descriptions/sesv2-2019-09-27.normal.json index 53e066a3294..a3a2aa5e818 100644 --- a/tools/code-generation/api-descriptions/sesv2-2019-09-27.normal.json +++ b/tools/code-generation/api-descriptions/sesv2-2019-09-27.normal.json @@ -1685,6 +1685,10 @@ "ReplacementEmailContent":{ "shape":"ReplacementEmailContent", "documentation":"

    The ReplacementEmailContent associated with a BulkEmailEntry.

    " + }, + "ReplacementHeaders":{ + "shape":"MessageHeaderList", + "documentation":"

    The list of message headers associated with the BulkEmailEntry data type.

    • Headers Not Present in BulkEmailEntry: If a header is specified in Template but not in BulkEmailEntry, the header from Template will be added to the outgoing email.

    • Headers Present in BulkEmailEntry: If a header is specified in BulkEmailEntry, it takes precedence over any header of the same name specified in Template :

      • If the header is also defined within Template, the value from BulkEmailEntry will replace the header's value in the email.

      • If the header is not defined within Template, it will simply be added to the email as specified in BulkEmailEntry.

    " } } },