From 8ab2e71b78e78111aff458131c30a1a636371f46 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Thu, 19 Sep 2024 18:12:43 +0000 Subject: [PATCH] Introduced support for G6e instance types on SageMaker Studio for JupyterLab and CodeEditor applications. QuickSight: 1. Add new API - ListFoldersForResource. 2. Commit mode adds visibility configuration of Apply button on multi-select controls for authors. Tagging support for Lambda event source mapping, and code signing configuration resources. This change is for releasing TestConnection api SDK model This release provides support for additional DRM configurations per SPEKE Version 2.0. Adds Bandwidth Reduction Filtering for HD AVC and HEVC encodes, multiplex container settings. This release adds the PullRequestComment field to CreateSyncConfiguration API input, UpdateSyncConfiguration API input, GetSyncConfiguration API output and ListSyncConfiguration API output WorkSpaces Secure Browser now enables Administrators to view and manage end-user browsing sessions via Session Management APIs. --- VERSION | 2 +- .../aws/codeconnections/model/Connection.h | 2 +- .../model/CreateSyncConfigurationRequest.h | 17 + .../model/PullRequestComment.h | 31 ++ .../codeconnections/model/SyncConfiguration.h | 17 + .../model/UpdateSyncConfigurationRequest.h | 17 + .../model/CreateSyncConfigurationRequest.cpp | 9 +- .../source/model/PullRequestComment.cpp | 72 +++++ .../source/model/SyncConfiguration.cpp | 16 +- .../model/UpdateSyncConfigurationRequest.cpp | 9 +- .../include/aws/glue/GlueClient.h | 30 ++ .../include/aws/glue/GlueServiceClientModel.h | 6 + .../aws/glue/model/TestConnectionInput.h | 111 +++++++ .../aws/glue/model/TestConnectionRequest.h | 75 +++++ .../aws/glue/model/TestConnectionResult.h | 52 +++ .../aws-cpp-sdk-glue/source/GlueClient2.cpp | 27 ++ .../source/model/TestConnectionInput.cpp | 95 ++++++ .../source/model/TestConnectionRequest.cpp | 50 +++ .../source/model/TestConnectionResult.cpp | 42 +++ .../include/aws/lambda/LambdaClient.h | 78 +++-- .../aws/lambda/model/AddPermissionRequest.h | 8 +- .../model/CreateCodeSigningConfigRequest.h | 23 ++ .../model/CreateEventSourceMappingRequest.h | 23 ++ .../model/CreateEventSourceMappingResult.h | 15 + .../model/DeleteEventSourceMappingResult.h | 15 + .../model/EventSourceMappingConfiguration.h | 17 + .../model/GetEventSourceMappingResult.h | 15 + .../aws/lambda/model/ListTagsRequest.h | 4 +- .../aws/lambda/model/TagResourceRequest.h | 4 +- .../aws/lambda/model/UntagResourceRequest.h | 4 +- .../model/UpdateEventSourceMappingResult.h | 15 + .../model/CreateCodeSigningConfigRequest.cpp | 14 +- .../model/CreateEventSourceMappingRequest.cpp | 12 + .../model/CreateEventSourceMappingResult.cpp | 6 + .../model/DeleteEventSourceMappingResult.cpp | 6 + .../model/EventSourceMappingConfiguration.cpp | 14 + .../model/GetEventSourceMappingResult.cpp | 6 + .../model/UpdateEventSourceMappingResult.cpp | 6 + .../model/EncryptionContractConfiguration.h | 96 ++++++ .../mediaconvert/model/PresetSpeke20Audio.h | 34 ++ .../mediaconvert/model/PresetSpeke20Video.h | 39 +++ .../aws/mediaconvert/model/SpekeKeyProvider.h | 20 ++ .../mediaconvert/model/SpekeKeyProviderCmaf.h | 20 ++ .../model/EncryptionContractConfiguration.cpp | 73 +++++ .../source/model/PresetSpeke20Audio.cpp | 93 ++++++ .../source/model/PresetSpeke20Video.cpp | 128 ++++++++ .../source/model/SpekeKeyProvider.cpp | 14 + .../source/model/SpekeKeyProviderCmaf.cpp | 14 + .../model/BandwidthReductionFilterSettings.h | 86 +++++ .../model/BandwidthReductionFilterStrength.h | 34 ++ .../BandwidthReductionPostFilterSharpening.h | 33 ++ .../aws/medialive/model/H264FilterSettings.h | 14 + .../aws/medialive/model/H265FilterSettings.h | 14 + .../model/MultiplexContainerSettings.h | 57 ++++ .../medialive/model/MultiplexM2tsSettings.h | 276 ++++++++++++++++ .../medialive/model/MultiplexOutputSettings.h | 14 + .../BandwidthReductionFilterSettings.cpp | 73 +++++ .../BandwidthReductionFilterStrength.cpp | 93 ++++++ ...BandwidthReductionPostFilterSharpening.cpp | 86 +++++ .../source/model/H264FilterSettings.cpp | 16 +- .../source/model/H265FilterSettings.cpp | 16 +- .../model/MultiplexContainerSettings.cpp | 59 ++++ .../source/model/MultiplexM2tsSettings.cpp | 244 ++++++++++++++ .../source/model/MultiplexOutputSettings.cpp | 16 +- .../include/aws/quicksight/QuickSightClient.h | 26 ++ .../quicksight/QuickSightServiceClientModel.h | 5 + .../include/aws/quicksight/model/CommitMode.h | 31 ++ .../DefaultDateTimePickerControlOptions.h | 17 + .../DefaultFilterDropDownControlOptions.h | 17 + .../DefaultRelativeDateTimeControlOptions.h | 17 + .../model/FilterDateTimePickerControl.h | 17 + .../quicksight/model/FilterDropDownControl.h | 17 + .../model/FilterRelativeDateTimeControl.h | 17 + .../model/ListFoldersForResourceRequest.h | 111 +++++++ .../model/ListFoldersForResourceResult.h | 97 ++++++ .../model/ParameterDropDownControl.h | 17 + .../source/QuickSightClient.cpp | 42 +++ .../source/model/CommitMode.cpp | 72 +++++ .../DefaultDateTimePickerControlOptions.cpp | 16 +- .../DefaultFilterDropDownControlOptions.cpp | 16 +- .../DefaultRelativeDateTimeControlOptions.cpp | 16 +- .../model/FilterDateTimePickerControl.cpp | 16 +- .../source/model/FilterDropDownControl.cpp | 16 +- .../model/FilterRelativeDateTimeControl.cpp | 16 +- .../model/ListFoldersForResourceRequest.cpp | 52 +++ .../model/ListFoldersForResourceResult.cpp | 61 ++++ .../source/model/ParameterDropDownControl.cpp | 16 +- .../aws/sagemaker/model/AppInstanceType.h | 8 + .../source/model/AppInstanceType.cpp | 100 +++++- .../aws/workspaces-web/WorkSpacesWebClient.h | 76 +++++ .../WorkSpacesWebServiceClientModel.h | 15 + .../model/CreatePortalRequest.h | 7 +- .../model/ExpireSessionRequest.h | 73 +++++ .../model/ExpireSessionResult.h | 52 +++ .../workspaces-web/model/GetSessionRequest.h | 73 +++++ .../workspaces-web/model/GetSessionResult.h | 66 ++++ .../model/ListSessionsRequest.h | 159 +++++++++ .../workspaces-web/model/ListSessionsResult.h | 85 +++++ .../include/aws/workspaces-web/model/Portal.h | 7 +- .../aws/workspaces-web/model/PortalSummary.h | 7 +- .../aws/workspaces-web/model/Session.h | 161 ++++++++++ .../aws/workspaces-web/model/SessionSortBy.h | 31 ++ .../aws/workspaces-web/model/SessionStatus.h | 31 ++ .../aws/workspaces-web/model/SessionSummary.h | 143 +++++++++ .../model/UpdatePortalRequest.h | 7 +- .../source/WorkSpacesWebClient.cpp | 117 +++++++ .../source/model/ExpireSessionRequest.cpp | 28 ++ .../source/model/ExpireSessionResult.cpp | 42 +++ .../source/model/GetSessionRequest.cpp | 28 ++ .../source/model/GetSessionResult.cpp | 48 +++ .../source/model/ListSessionsRequest.cpp | 85 +++++ .../source/model/ListSessionsResult.cpp | 57 ++++ .../source/model/Session.cpp | 149 +++++++++ .../source/model/SessionSortBy.cpp | 72 +++++ .../source/model/SessionStatus.cpp | 72 +++++ .../source/model/SessionSummary.cpp | 127 ++++++++ .../include/aws/core/VersionConfig.h | 4 +- .../codeconnections-2023-12-01.normal.json | 25 +- .../glue-2017-03-31.normal.json | 61 ++++ .../lambda-2015-03-31.normal.json | 66 ++-- .../mediaconvert-2017-08-29.normal.json | 53 +++ .../medialive-2017-10-14.normal.json | 137 +++++++- .../quicksight-2018-04-01.normal.json | 115 +++++++ .../sagemaker-2017-07-24.normal.json | 8 + .../workspaces-web-2020-07-08.normal.json | 301 +++++++++++++++++- 125 files changed, 5933 insertions(+), 118 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/PullRequestComment.h create mode 100644 generated/src/aws-cpp-sdk-codeconnections/source/model/PullRequestComment.cpp create mode 100644 generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionInput.h create mode 100644 generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionRequest.h create mode 100644 generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionResult.h create mode 100644 generated/src/aws-cpp-sdk-glue/source/model/TestConnectionInput.cpp create mode 100644 generated/src/aws-cpp-sdk-glue/source/model/TestConnectionRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-glue/source/model/TestConnectionResult.cpp create mode 100644 generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/EncryptionContractConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/PresetSpeke20Audio.h create mode 100644 generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/PresetSpeke20Video.h create mode 100644 generated/src/aws-cpp-sdk-mediaconvert/source/model/EncryptionContractConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetSpeke20Audio.cpp create mode 100644 generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetSpeke20Video.cpp create mode 100644 generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionFilterSettings.h create mode 100644 generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionFilterStrength.h create mode 100644 generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionPostFilterSharpening.h create mode 100644 generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexContainerSettings.h create mode 100644 generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexM2tsSettings.h create mode 100644 generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionFilterSettings.cpp create mode 100644 generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionFilterStrength.cpp create mode 100644 generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionPostFilterSharpening.cpp create mode 100644 generated/src/aws-cpp-sdk-medialive/source/model/MultiplexContainerSettings.cpp create mode 100644 generated/src/aws-cpp-sdk-medialive/source/model/MultiplexM2tsSettings.cpp create mode 100644 generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/CommitMode.h create mode 100644 generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ListFoldersForResourceRequest.h create mode 100644 generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ListFoldersForResourceResult.h create mode 100644 generated/src/aws-cpp-sdk-quicksight/source/model/CommitMode.cpp create mode 100644 generated/src/aws-cpp-sdk-quicksight/source/model/ListFoldersForResourceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-quicksight/source/model/ListFoldersForResourceResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ExpireSessionRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ExpireSessionResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetSessionRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetSessionResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListSessionsRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListSessionsResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Session.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionSortBy.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionStatus.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionSummary.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/ExpireSessionRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/ExpireSessionResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/GetSessionRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/GetSessionResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/ListSessionsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/ListSessionsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/Session.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionSortBy.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionSummary.cpp diff --git a/VERSION b/VERSION index 04db7d3b155..329966fb472 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.408 \ No newline at end of file +1.11.409 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/Connection.h b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/Connection.h index 4123779d683..c1383b1f596 100644 --- a/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/Connection.h +++ b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/Connection.h @@ -62,7 +62,7 @@ namespace Model /** *

The Amazon Resource Name (ARN) of the connection. The ARN is used as the * connection reference when the connection is shared between Amazon Web - * Services.

The ARN is never reused if the connection is + * Servicesservices.

The ARN is never reused if the connection is * deleted.

*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } diff --git a/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/CreateSyncConfigurationRequest.h b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/CreateSyncConfigurationRequest.h index 0a1e47a8e98..2056d81e97b 100644 --- a/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/CreateSyncConfigurationRequest.h +++ b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/CreateSyncConfigurationRequest.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace Aws @@ -150,6 +151,19 @@ namespace Model inline CreateSyncConfigurationRequest& WithTriggerResourceUpdateOn(const TriggerResourceUpdateOn& value) { SetTriggerResourceUpdateOn(value); return *this;} inline CreateSyncConfigurationRequest& WithTriggerResourceUpdateOn(TriggerResourceUpdateOn&& value) { SetTriggerResourceUpdateOn(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

A toggle that specifies whether to enable or disable pull request comments + * for the sync configuration to be created.

+ */ + inline const PullRequestComment& GetPullRequestComment() const{ return m_pullRequestComment; } + inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; } + inline void SetPullRequestComment(const PullRequestComment& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = value; } + inline void SetPullRequestComment(PullRequestComment&& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = std::move(value); } + inline CreateSyncConfigurationRequest& WithPullRequestComment(const PullRequestComment& value) { SetPullRequestComment(value); return *this;} + inline CreateSyncConfigurationRequest& WithPullRequestComment(PullRequestComment&& value) { SetPullRequestComment(std::move(value)); return *this;} + ///@} private: Aws::String m_branch; @@ -175,6 +189,9 @@ namespace Model TriggerResourceUpdateOn m_triggerResourceUpdateOn; bool m_triggerResourceUpdateOnHasBeenSet = false; + + PullRequestComment m_pullRequestComment; + bool m_pullRequestCommentHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/PullRequestComment.h b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/PullRequestComment.h new file mode 100644 index 00000000000..78a075fe74f --- /dev/null +++ b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/PullRequestComment.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 CodeConnections +{ +namespace Model +{ + enum class PullRequestComment + { + NOT_SET, + ENABLED, + DISABLED + }; + +namespace PullRequestCommentMapper +{ +AWS_CODECONNECTIONS_API PullRequestComment GetPullRequestCommentForName(const Aws::String& name); + +AWS_CODECONNECTIONS_API Aws::String GetNameForPullRequestComment(PullRequestComment value); +} // namespace PullRequestCommentMapper +} // namespace Model +} // namespace CodeConnections +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/SyncConfiguration.h b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/SyncConfiguration.h index 277cf11fc49..2363ae34906 100644 --- a/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/SyncConfiguration.h +++ b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/SyncConfiguration.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace Aws @@ -195,6 +196,19 @@ namespace Model inline SyncConfiguration& WithTriggerResourceUpdateOn(const TriggerResourceUpdateOn& value) { SetTriggerResourceUpdateOn(value); return *this;} inline SyncConfiguration& WithTriggerResourceUpdateOn(TriggerResourceUpdateOn&& value) { SetTriggerResourceUpdateOn(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

A toggle that specifies whether to enable or disable pull request comments + * for the sync configuration to be created.

+ */ + inline const PullRequestComment& GetPullRequestComment() const{ return m_pullRequestComment; } + inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; } + inline void SetPullRequestComment(const PullRequestComment& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = value; } + inline void SetPullRequestComment(PullRequestComment&& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = std::move(value); } + inline SyncConfiguration& WithPullRequestComment(const PullRequestComment& value) { SetPullRequestComment(value); return *this;} + inline SyncConfiguration& WithPullRequestComment(PullRequestComment&& value) { SetPullRequestComment(std::move(value)); return *this;} + ///@} private: Aws::String m_branch; @@ -229,6 +243,9 @@ namespace Model TriggerResourceUpdateOn m_triggerResourceUpdateOn; bool m_triggerResourceUpdateOnHasBeenSet = false; + + PullRequestComment m_pullRequestComment; + bool m_pullRequestCommentHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/UpdateSyncConfigurationRequest.h b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/UpdateSyncConfigurationRequest.h index 5d8345bad02..44075c30c65 100644 --- a/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/UpdateSyncConfigurationRequest.h +++ b/generated/src/aws-cpp-sdk-codeconnections/include/aws/codeconnections/model/UpdateSyncConfigurationRequest.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace Aws @@ -144,6 +145,19 @@ namespace Model inline UpdateSyncConfigurationRequest& WithTriggerResourceUpdateOn(const TriggerResourceUpdateOn& value) { SetTriggerResourceUpdateOn(value); return *this;} inline UpdateSyncConfigurationRequest& WithTriggerResourceUpdateOn(TriggerResourceUpdateOn&& value) { SetTriggerResourceUpdateOn(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

TA toggle that specifies whether to enable or disable pull request comments + * for the sync configuration to be updated.

+ */ + inline const PullRequestComment& GetPullRequestComment() const{ return m_pullRequestComment; } + inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; } + inline void SetPullRequestComment(const PullRequestComment& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = value; } + inline void SetPullRequestComment(PullRequestComment&& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = std::move(value); } + inline UpdateSyncConfigurationRequest& WithPullRequestComment(const PullRequestComment& value) { SetPullRequestComment(value); return *this;} + inline UpdateSyncConfigurationRequest& WithPullRequestComment(PullRequestComment&& value) { SetPullRequestComment(std::move(value)); return *this;} + ///@} private: Aws::String m_branch; @@ -169,6 +183,9 @@ namespace Model TriggerResourceUpdateOn m_triggerResourceUpdateOn; bool m_triggerResourceUpdateOnHasBeenSet = false; + + PullRequestComment m_pullRequestComment; + bool m_pullRequestCommentHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-codeconnections/source/model/CreateSyncConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-codeconnections/source/model/CreateSyncConfigurationRequest.cpp index eb531dfbcc7..50af3254c2e 100644 --- a/generated/src/aws-cpp-sdk-codeconnections/source/model/CreateSyncConfigurationRequest.cpp +++ b/generated/src/aws-cpp-sdk-codeconnections/source/model/CreateSyncConfigurationRequest.cpp @@ -23,7 +23,9 @@ CreateSyncConfigurationRequest::CreateSyncConfigurationRequest() : m_publishDeploymentStatus(PublishDeploymentStatus::NOT_SET), m_publishDeploymentStatusHasBeenSet(false), m_triggerResourceUpdateOn(TriggerResourceUpdateOn::NOT_SET), - m_triggerResourceUpdateOnHasBeenSet(false) + m_triggerResourceUpdateOnHasBeenSet(false), + m_pullRequestComment(PullRequestComment::NOT_SET), + m_pullRequestCommentHasBeenSet(false) { } @@ -76,6 +78,11 @@ Aws::String CreateSyncConfigurationRequest::SerializePayload() const payload.WithString("TriggerResourceUpdateOn", TriggerResourceUpdateOnMapper::GetNameForTriggerResourceUpdateOn(m_triggerResourceUpdateOn)); } + if(m_pullRequestCommentHasBeenSet) + { + payload.WithString("PullRequestComment", PullRequestCommentMapper::GetNameForPullRequestComment(m_pullRequestComment)); + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-codeconnections/source/model/PullRequestComment.cpp b/generated/src/aws-cpp-sdk-codeconnections/source/model/PullRequestComment.cpp new file mode 100644 index 00000000000..6f00248cdbb --- /dev/null +++ b/generated/src/aws-cpp-sdk-codeconnections/source/model/PullRequestComment.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 CodeConnections + { + namespace Model + { + namespace PullRequestCommentMapper + { + + static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + + + PullRequestComment GetPullRequestCommentForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ENABLED_HASH) + { + return PullRequestComment::ENABLED; + } + else if (hashCode == DISABLED_HASH) + { + return PullRequestComment::DISABLED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return PullRequestComment::NOT_SET; + } + + Aws::String GetNameForPullRequestComment(PullRequestComment enumValue) + { + switch(enumValue) + { + case PullRequestComment::NOT_SET: + return {}; + case PullRequestComment::ENABLED: + return "ENABLED"; + case PullRequestComment::DISABLED: + return "DISABLED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace PullRequestCommentMapper + } // namespace Model + } // namespace CodeConnections +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-codeconnections/source/model/SyncConfiguration.cpp b/generated/src/aws-cpp-sdk-codeconnections/source/model/SyncConfiguration.cpp index ecd3b207905..8248fad81f1 100644 --- a/generated/src/aws-cpp-sdk-codeconnections/source/model/SyncConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-codeconnections/source/model/SyncConfiguration.cpp @@ -33,7 +33,9 @@ SyncConfiguration::SyncConfiguration() : m_publishDeploymentStatus(PublishDeploymentStatus::NOT_SET), m_publishDeploymentStatusHasBeenSet(false), m_triggerResourceUpdateOn(TriggerResourceUpdateOn::NOT_SET), - m_triggerResourceUpdateOnHasBeenSet(false) + m_triggerResourceUpdateOnHasBeenSet(false), + m_pullRequestComment(PullRequestComment::NOT_SET), + m_pullRequestCommentHasBeenSet(false) { } @@ -122,6 +124,13 @@ SyncConfiguration& SyncConfiguration::operator =(JsonView jsonValue) m_triggerResourceUpdateOnHasBeenSet = true; } + if(jsonValue.ValueExists("PullRequestComment")) + { + m_pullRequestComment = PullRequestCommentMapper::GetPullRequestCommentForName(jsonValue.GetString("PullRequestComment")); + + m_pullRequestCommentHasBeenSet = true; + } + return *this; } @@ -191,6 +200,11 @@ JsonValue SyncConfiguration::Jsonize() const payload.WithString("TriggerResourceUpdateOn", TriggerResourceUpdateOnMapper::GetNameForTriggerResourceUpdateOn(m_triggerResourceUpdateOn)); } + if(m_pullRequestCommentHasBeenSet) + { + payload.WithString("PullRequestComment", PullRequestCommentMapper::GetNameForPullRequestComment(m_pullRequestComment)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-codeconnections/source/model/UpdateSyncConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-codeconnections/source/model/UpdateSyncConfigurationRequest.cpp index f880b15a760..a342edef5c3 100644 --- a/generated/src/aws-cpp-sdk-codeconnections/source/model/UpdateSyncConfigurationRequest.cpp +++ b/generated/src/aws-cpp-sdk-codeconnections/source/model/UpdateSyncConfigurationRequest.cpp @@ -23,7 +23,9 @@ UpdateSyncConfigurationRequest::UpdateSyncConfigurationRequest() : m_publishDeploymentStatus(PublishDeploymentStatus::NOT_SET), m_publishDeploymentStatusHasBeenSet(false), m_triggerResourceUpdateOn(TriggerResourceUpdateOn::NOT_SET), - m_triggerResourceUpdateOnHasBeenSet(false) + m_triggerResourceUpdateOnHasBeenSet(false), + m_pullRequestComment(PullRequestComment::NOT_SET), + m_pullRequestCommentHasBeenSet(false) { } @@ -76,6 +78,11 @@ Aws::String UpdateSyncConfigurationRequest::SerializePayload() const payload.WithString("TriggerResourceUpdateOn", TriggerResourceUpdateOnMapper::GetNameForTriggerResourceUpdateOn(m_triggerResourceUpdateOn)); } + if(m_pullRequestCommentHasBeenSet) + { + payload.WithString("PullRequestComment", PullRequestCommentMapper::GetNameForPullRequestComment(m_pullRequestComment)); + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/GlueClient.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/GlueClient.h index 987958fc8e5..80b6daa2eff 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/GlueClient.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/GlueClient.h @@ -5496,6 +5496,36 @@ namespace Glue return SubmitAsync(&GlueClient::TagResource, request, handler, context); } + /** + *

Tests a connection to a service to validate the service credentials that you + * provide.

You can either provide an existing connection name or a + * TestConnectionInput for testing a non-existing connection input. + * Providing both at the same time will cause an error.

If the action is + * successful, the service sends back an HTTP 200 response.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::TestConnectionOutcome TestConnection(const Model::TestConnectionRequest& request = {}) const; + + /** + * A Callable wrapper for TestConnection that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::TestConnectionOutcomeCallable TestConnectionCallable(const TestConnectionRequestT& request = {}) const + { + return SubmitCallable(&GlueClient::TestConnection, request); + } + + /** + * An Async wrapper for TestConnection that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void TestConnectionAsync(const TestConnectionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const TestConnectionRequestT& request = {}) const + { + return SubmitAsync(&GlueClient::TestConnection, request, handler, context); + } + /** *

Removes tags from a resource.

See Also:

AWS diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/GlueServiceClientModel.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/GlueServiceClientModel.h index e6958f0b506..9056a107863 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/GlueServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/GlueServiceClientModel.h @@ -218,6 +218,7 @@ #include #include #include +#include #include #include #include @@ -249,6 +250,7 @@ #include #include #include +#include #include #include #include @@ -526,6 +528,7 @@ namespace Aws class StopTriggerRequest; class StopWorkflowRunRequest; class TagResourceRequest; + class TestConnectionRequest; class UntagResourceRequest; class UpdateBlueprintRequest; class UpdateClassifierRequest; @@ -753,6 +756,7 @@ namespace Aws typedef Aws::Utils::Outcome StopTriggerOutcome; typedef Aws::Utils::Outcome StopWorkflowRunOutcome; typedef Aws::Utils::Outcome TagResourceOutcome; + typedef Aws::Utils::Outcome TestConnectionOutcome; typedef Aws::Utils::Outcome UntagResourceOutcome; typedef Aws::Utils::Outcome UpdateBlueprintOutcome; typedef Aws::Utils::Outcome UpdateClassifierOutcome; @@ -980,6 +984,7 @@ namespace Aws typedef std::future StopTriggerOutcomeCallable; typedef std::future StopWorkflowRunOutcomeCallable; typedef std::future TagResourceOutcomeCallable; + typedef std::future TestConnectionOutcomeCallable; typedef std::future UntagResourceOutcomeCallable; typedef std::future UpdateBlueprintOutcomeCallable; typedef std::future UpdateClassifierOutcomeCallable; @@ -1210,6 +1215,7 @@ namespace Aws typedef std::function&) > StopTriggerResponseReceivedHandler; typedef std::function&) > StopWorkflowRunResponseReceivedHandler; typedef std::function&) > TagResourceResponseReceivedHandler; + typedef std::function&) > TestConnectionResponseReceivedHandler; typedef std::function&) > UntagResourceResponseReceivedHandler; typedef std::function&) > UpdateBlueprintResponseReceivedHandler; typedef std::function&) > UpdateClassifierResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionInput.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionInput.h new file mode 100644 index 00000000000..f61af6a3d5c --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionInput.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 +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Glue +{ +namespace Model +{ + + /** + *

A structure that is used to specify testing a connection to a + * service.

See Also:

AWS + * API Reference

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

The type of connection to test. This operation is only available for the + * JDBC or SALESFORCE connection types.

+ */ + inline const ConnectionType& GetConnectionType() const{ return m_connectionType; } + inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; } + inline void SetConnectionType(const ConnectionType& value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; } + inline void SetConnectionType(ConnectionType&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::move(value); } + inline TestConnectionInput& WithConnectionType(const ConnectionType& value) { SetConnectionType(value); return *this;} + inline TestConnectionInput& WithConnectionType(ConnectionType&& value) { SetConnectionType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The key-value pairs that define parameters for the connection.

JDBC + * connections use the following connection properties:

  • Required: + * All of (HOST, PORT, JDBC_ENGINE) or + * JDBC_CONNECTION_URL.

  • Required: All of + * (USERNAME, PASSWORD) or SECRET_ID.

    + *
  • Optional: JDBC_ENFORCE_SSL, + * CUSTOM_JDBC_CERT, CUSTOM_JDBC_CERT_STRING, + * SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to + * configure SSL with JDBC.

SALESFORCE connections require the + * AuthenticationConfiguration member to be configured.

+ */ + inline const Aws::Map& GetConnectionProperties() const{ return m_connectionProperties; } + inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; } + inline void SetConnectionProperties(const Aws::Map& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = value; } + inline void SetConnectionProperties(Aws::Map&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = std::move(value); } + inline TestConnectionInput& WithConnectionProperties(const Aws::Map& value) { SetConnectionProperties(value); return *this;} + inline TestConnectionInput& WithConnectionProperties(Aws::Map&& value) { SetConnectionProperties(std::move(value)); return *this;} + inline TestConnectionInput& AddConnectionProperties(const ConnectionPropertyKey& key, const Aws::String& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, value); return *this; } + inline TestConnectionInput& AddConnectionProperties(ConnectionPropertyKey&& key, const Aws::String& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(std::move(key), value); return *this; } + inline TestConnectionInput& AddConnectionProperties(const ConnectionPropertyKey& key, Aws::String&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, std::move(value)); return *this; } + inline TestConnectionInput& AddConnectionProperties(ConnectionPropertyKey&& key, Aws::String&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(std::move(key), std::move(value)); return *this; } + inline TestConnectionInput& AddConnectionProperties(ConnectionPropertyKey&& key, const char* value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(std::move(key), value); return *this; } + inline TestConnectionInput& AddConnectionProperties(const ConnectionPropertyKey& key, const char* value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

A structure containing the authentication configuration in the TestConnection + * request. Required for a connection to Salesforce using OAuth authentication.

+ */ + inline const AuthenticationConfigurationInput& GetAuthenticationConfiguration() const{ return m_authenticationConfiguration; } + inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; } + inline void SetAuthenticationConfiguration(const AuthenticationConfigurationInput& value) { m_authenticationConfigurationHasBeenSet = true; m_authenticationConfiguration = value; } + inline void SetAuthenticationConfiguration(AuthenticationConfigurationInput&& value) { m_authenticationConfigurationHasBeenSet = true; m_authenticationConfiguration = std::move(value); } + inline TestConnectionInput& WithAuthenticationConfiguration(const AuthenticationConfigurationInput& value) { SetAuthenticationConfiguration(value); return *this;} + inline TestConnectionInput& WithAuthenticationConfiguration(AuthenticationConfigurationInput&& value) { SetAuthenticationConfiguration(std::move(value)); return *this;} + ///@} + private: + + ConnectionType m_connectionType; + bool m_connectionTypeHasBeenSet = false; + + Aws::Map m_connectionProperties; + bool m_connectionPropertiesHasBeenSet = false; + + AuthenticationConfigurationInput m_authenticationConfiguration; + bool m_authenticationConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionRequest.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionRequest.h new file mode 100644 index 00000000000..c0b6faf3baa --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionRequest.h @@ -0,0 +1,75 @@ +/** + * 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 Glue +{ +namespace Model +{ + + /** + */ + class TestConnectionRequest : public GlueRequest + { + public: + AWS_GLUE_API TestConnectionRequest(); + + // 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 "TestConnection"; } + + AWS_GLUE_API Aws::String SerializePayload() const override; + + AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

Optional. The name of the connection to test. If only name is provided, the + * operation will get the connection and use that for testing.

+ */ + inline const Aws::String& GetConnectionName() const{ return m_connectionName; } + inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; } + inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; } + inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); } + inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); } + inline TestConnectionRequest& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;} + inline TestConnectionRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;} + inline TestConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;} + ///@} + + ///@{ + /** + *

A structure that is used to specify testing a connection to a service.

+ */ + inline const TestConnectionInput& GetTestConnectionInput() const{ return m_testConnectionInput; } + inline bool TestConnectionInputHasBeenSet() const { return m_testConnectionInputHasBeenSet; } + inline void SetTestConnectionInput(const TestConnectionInput& value) { m_testConnectionInputHasBeenSet = true; m_testConnectionInput = value; } + inline void SetTestConnectionInput(TestConnectionInput&& value) { m_testConnectionInputHasBeenSet = true; m_testConnectionInput = std::move(value); } + inline TestConnectionRequest& WithTestConnectionInput(const TestConnectionInput& value) { SetTestConnectionInput(value); return *this;} + inline TestConnectionRequest& WithTestConnectionInput(TestConnectionInput&& value) { SetTestConnectionInput(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_connectionName; + bool m_connectionNameHasBeenSet = false; + + TestConnectionInput m_testConnectionInput; + bool m_testConnectionInputHasBeenSet = false; + }; + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionResult.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionResult.h new file mode 100644 index 00000000000..1dea10afaa0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/TestConnectionResult.h @@ -0,0 +1,52 @@ +/** + * 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 Glue +{ +namespace Model +{ + class TestConnectionResult + { + public: + AWS_GLUE_API TestConnectionResult(); + AWS_GLUE_API TestConnectionResult(const Aws::AmazonWebServiceResult& result); + AWS_GLUE_API TestConnectionResult& 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 TestConnectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline TestConnectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline TestConnectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/source/GlueClient2.cpp b/generated/src/aws-cpp-sdk-glue/source/GlueClient2.cpp index 8c8ef4e8eae..cbf65c1c75c 100644 --- a/generated/src/aws-cpp-sdk-glue/source/GlueClient2.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/GlueClient2.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -60,6 +61,32 @@ using namespace smithy::components::tracing; using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; +TestConnectionOutcome GlueClient::TestConnection(const TestConnectionRequest& request) const +{ + AWS_OPERATION_GUARD(TestConnection); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, TestConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TestConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, TestConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".TestConnection", + {{ 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( + [&]()-> TestConnectionOutcome { + 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, TestConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return TestConnectionOutcome(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()}}); +} + UntagResourceOutcome GlueClient::UntagResource(const UntagResourceRequest& request) const { AWS_OPERATION_GUARD(UntagResource); diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TestConnectionInput.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TestConnectionInput.cpp new file mode 100644 index 00000000000..54f91c18937 --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/source/model/TestConnectionInput.cpp @@ -0,0 +1,95 @@ +/** + * 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 Glue +{ +namespace Model +{ + +TestConnectionInput::TestConnectionInput() : + m_connectionType(ConnectionType::NOT_SET), + m_connectionTypeHasBeenSet(false), + m_connectionPropertiesHasBeenSet(false), + m_authenticationConfigurationHasBeenSet(false) +{ +} + +TestConnectionInput::TestConnectionInput(JsonView jsonValue) + : TestConnectionInput() +{ + *this = jsonValue; +} + +TestConnectionInput& TestConnectionInput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ConnectionType")) + { + m_connectionType = ConnectionTypeMapper::GetConnectionTypeForName(jsonValue.GetString("ConnectionType")); + + m_connectionTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ConnectionProperties")) + { + Aws::Map connectionPropertiesJsonMap = jsonValue.GetObject("ConnectionProperties").GetAllObjects(); + for(auto& connectionPropertiesItem : connectionPropertiesJsonMap) + { + m_connectionProperties[ConnectionPropertyKeyMapper::GetConnectionPropertyKeyForName(connectionPropertiesItem.first)] = connectionPropertiesItem.second.AsString(); + } + m_connectionPropertiesHasBeenSet = true; + } + + if(jsonValue.ValueExists("AuthenticationConfiguration")) + { + m_authenticationConfiguration = jsonValue.GetObject("AuthenticationConfiguration"); + + m_authenticationConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue TestConnectionInput::Jsonize() const +{ + JsonValue payload; + + if(m_connectionTypeHasBeenSet) + { + payload.WithString("ConnectionType", ConnectionTypeMapper::GetNameForConnectionType(m_connectionType)); + } + + if(m_connectionPropertiesHasBeenSet) + { + JsonValue connectionPropertiesJsonMap; + for(auto& connectionPropertiesItem : m_connectionProperties) + { + connectionPropertiesJsonMap.WithString(ConnectionPropertyKeyMapper::GetNameForConnectionPropertyKey(connectionPropertiesItem.first), connectionPropertiesItem.second); + } + payload.WithObject("ConnectionProperties", std::move(connectionPropertiesJsonMap)); + + } + + if(m_authenticationConfigurationHasBeenSet) + { + payload.WithObject("AuthenticationConfiguration", m_authenticationConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TestConnectionRequest.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TestConnectionRequest.cpp new file mode 100644 index 00000000000..e13401fa3ae --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/source/model/TestConnectionRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Glue::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +TestConnectionRequest::TestConnectionRequest() : + m_connectionNameHasBeenSet(false), + m_testConnectionInputHasBeenSet(false) +{ +} + +Aws::String TestConnectionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_connectionNameHasBeenSet) + { + payload.WithString("ConnectionName", m_connectionName); + + } + + if(m_testConnectionInputHasBeenSet) + { + payload.WithObject("TestConnectionInput", m_testConnectionInput.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection TestConnectionRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSGlue.TestConnection")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TestConnectionResult.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TestConnectionResult.cpp new file mode 100644 index 00000000000..7836c9ca6ab --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/source/model/TestConnectionResult.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::Glue::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +TestConnectionResult::TestConnectionResult() +{ +} + +TestConnectionResult::TestConnectionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +TestConnectionResult& TestConnectionResult::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-lambda/include/aws/lambda/LambdaClient.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h index 6f46812fa1e..333fd7b304a 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h @@ -159,24 +159,24 @@ namespace Lambda } /** - *

Grants an Amazon Web Servicesservice, Amazon Web Services account, or Amazon - * Web Services organization permission to use a function. You can apply the policy - * at the function level, or specify a qualifier to restrict access to a single - * version or alias. If you use a qualifier, the invoker must use the full Amazon - * Resource Name (ARN) of that version or alias to invoke the function. Note: - * Lambda does not support adding policies to version $LATEST.

To grant - * permission to another account, specify the account ID as the - * Principal. To grant permission to an organization defined in - * Organizations, specify the organization ID as the PrincipalOrgID. - * For Amazon Web Servicesservices, the principal is a domain-style identifier that - * the service defines, such as s3.amazonaws.com or - * sns.amazonaws.com. For Amazon Web Servicesservices, you can also - * specify the ARN of the associated resource as the SourceArn. If you - * grant permission to a service principal without specifying the source, other - * accounts could potentially configure resources in their account to invoke your - * Lambda function.

This operation adds a statement to a resource-based - * permissions policy for the function. For more information about function - * policies, see Grants a principal + * permission to use a function. You can apply the policy at the function level, or + * specify a qualifier to restrict access to a single version or alias. If you use + * a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that + * version or alias to invoke the function. Note: Lambda does not support adding + * policies to version $LATEST.

To grant permission to another account, + * specify the account ID as the Principal. To grant permission to an + * organization defined in Organizations, specify the organization ID as the + * PrincipalOrgID. For Amazon Web Servicesservices, the principal is a + * domain-style identifier that the service defines, such as + * s3.amazonaws.com or sns.amazonaws.com. For Amazon Web + * Servicesservices, you can also specify the ARN of the associated resource as the + * SourceArn. If you grant permission to a service principal without + * specifying the source, other accounts could potentially configure resources in + * their account to invoke your Lambda function.

This operation adds a + * statement to a resource-based permissions policy for the function. For more + * information about function policies, see Using * resource-based policies for Lambda.

See Also:

AWS @@ -715,7 +715,10 @@ namespace Lambda } /** - *

Deletes a The option to create and modify full JSON resource-based policies, and + * to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, + * won't be available in all Amazon Web Services Regions until September 30, + * 2024.

Deletes a resource-based * policy from a function.

See Also:

AWS @@ -1175,8 +1178,10 @@ namespace Lambda } /** - *

Retrieve the public-access settings for a function.

See Also:

- *
The option to configure public-access settings, and to use the + * PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all + * Amazon Web Services Regions until September 30, 2024.

Retrieve + * the public-access settings for a function.

See Also:

AWS * API Reference

*/ @@ -1201,7 +1206,10 @@ namespace Lambda } /** - *

Retrieves the The option to create and modify full JSON resource-based policies, and + * to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, + * won't be available in all Amazon Web Services Regions until September 30, + * 2024.

Retrieves the resource-based * policy attached to a function.

See Also:

AWS @@ -1648,11 +1656,11 @@ namespace Lambda } /** - *

Returns a function's Returns a function, event source mapping, or code signing configuration's tags. You - * can also view tags with GetFunction.

See Also:

AWS API - * Reference

+ * can also view funciton tags with GetFunction.

See Also:

+ * AWS + * API Reference

*/ virtual Model::ListTagsOutcome ListTags(const Model::ListTagsRequest& request) const; @@ -1934,8 +1942,11 @@ namespace Lambda } /** - *

Configure your function's public-access settings.

To control public - * access to a Lambda function, you can choose whether to allow the creation of The option to configure public-access settings, and to use the + * PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all + * Amazon Web Services Regions until September 30, 2024.

Configure + * your function's public-access settings.

To control public access to a + * Lambda function, you can choose whether to allow the creation of resource-based * policies that allow public access to that function. You can also block * public access to a function, even if it has an existing resource-based policy @@ -1964,7 +1975,10 @@ namespace Lambda } /** - *

Adds a The option to create and modify full JSON resource-based policies, and + * to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, + * won't be available in all Amazon Web Services Regions until September 30, + * 2024.

Adds a resource-based * policy to a function. You can use resource-based policies to grant access to * other Adds tags to a - * function.

See Also:

See + * Also:

AWS * API Reference

*/ @@ -2115,7 +2130,8 @@ namespace Lambda /** *

Removes tags from a - * function.

See Also:

See + * Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/AddPermissionRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/AddPermissionRequest.h index c557f29d7e9..1fa21053dcf 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/AddPermissionRequest.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/AddPermissionRequest.h @@ -94,10 +94,10 @@ namespace Model ///@{ /** - *

The Amazon Web Servicesservice or Amazon Web Services account that invokes - * the function. If you specify a service, use SourceArn or - * SourceAccount to limit who can invoke the function through that - * service.

+ *

The Amazon Web Servicesservice, Amazon Web Services account, IAM user, or IAM + * role that invokes the function. If you specify a service, use + * SourceArn or SourceAccount to limit who can invoke the + * function through that service.

*/ inline const Aws::String& GetPrincipal() const{ return m_principal; } inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateCodeSigningConfigRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateCodeSigningConfigRequest.h index 60ee0ba9214..ef781496f0b 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateCodeSigningConfigRequest.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateCodeSigningConfigRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Aws @@ -72,6 +73,25 @@ namespace Model inline CreateCodeSigningConfigRequest& WithCodeSigningPolicies(const CodeSigningPolicies& value) { SetCodeSigningPolicies(value); return *this;} inline CreateCodeSigningConfigRequest& WithCodeSigningPolicies(CodeSigningPolicies&& value) { SetCodeSigningPolicies(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

A list of tags to add to the code signing configuration.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateCodeSigningConfigRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateCodeSigningConfigRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateCodeSigningConfigRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline CreateCodeSigningConfigRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateCodeSigningConfigRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateCodeSigningConfigRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateCodeSigningConfigRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateCodeSigningConfigRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateCodeSigningConfigRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} private: Aws::String m_description; @@ -82,6 +102,9 @@ namespace Model CodeSigningPolicies m_codeSigningPolicies; bool m_codeSigningPoliciesHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingRequest.h index 4e7e99258c6..60d41c92c29 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingRequest.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingRequest.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -247,6 +248,25 @@ namespace Model inline CreateEventSourceMappingRequest& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;} ///@} + ///@{ + /** + *

A list of tags to apply to the event source mapping.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateEventSourceMappingRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateEventSourceMappingRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateEventSourceMappingRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline CreateEventSourceMappingRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateEventSourceMappingRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateEventSourceMappingRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateEventSourceMappingRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateEventSourceMappingRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateEventSourceMappingRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + ///@{ /** *

(Kinesis and DynamoDB Streams only) The duration in seconds of a processing @@ -442,6 +462,9 @@ namespace Model int m_maximumRetryAttempts; bool m_maximumRetryAttemptsHasBeenSet = false; + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + int m_tumblingWindowInSeconds; bool m_tumblingWindowInSecondsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingResult.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingResult.h index 5c8a3aa03ed..1354362b780 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingResult.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingResult.h @@ -441,6 +441,19 @@ namespace Model inline CreateEventSourceMappingResult& WithFilterCriteriaError(FilterCriteriaError&& value) { SetFilterCriteriaError(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The Amazon Resource Name (ARN) of the event source mapping.

+ */ + inline const Aws::String& GetEventSourceMappingArn() const{ return m_eventSourceMappingArn; } + inline void SetEventSourceMappingArn(const Aws::String& value) { m_eventSourceMappingArn = value; } + inline void SetEventSourceMappingArn(Aws::String&& value) { m_eventSourceMappingArn = std::move(value); } + inline void SetEventSourceMappingArn(const char* value) { m_eventSourceMappingArn.assign(value); } + inline CreateEventSourceMappingResult& WithEventSourceMappingArn(const Aws::String& value) { SetEventSourceMappingArn(value); return *this;} + inline CreateEventSourceMappingResult& WithEventSourceMappingArn(Aws::String&& value) { SetEventSourceMappingArn(std::move(value)); return *this;} + inline CreateEventSourceMappingResult& WithEventSourceMappingArn(const char* value) { SetEventSourceMappingArn(value); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -511,6 +524,8 @@ namespace Model FilterCriteriaError m_filterCriteriaError; + Aws::String m_eventSourceMappingArn; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteEventSourceMappingResult.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteEventSourceMappingResult.h index 611967aebe2..1d9c8710686 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteEventSourceMappingResult.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteEventSourceMappingResult.h @@ -441,6 +441,19 @@ namespace Model inline DeleteEventSourceMappingResult& WithFilterCriteriaError(FilterCriteriaError&& value) { SetFilterCriteriaError(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The Amazon Resource Name (ARN) of the event source mapping.

+ */ + inline const Aws::String& GetEventSourceMappingArn() const{ return m_eventSourceMappingArn; } + inline void SetEventSourceMappingArn(const Aws::String& value) { m_eventSourceMappingArn = value; } + inline void SetEventSourceMappingArn(Aws::String&& value) { m_eventSourceMappingArn = std::move(value); } + inline void SetEventSourceMappingArn(const char* value) { m_eventSourceMappingArn.assign(value); } + inline DeleteEventSourceMappingResult& WithEventSourceMappingArn(const Aws::String& value) { SetEventSourceMappingArn(value); return *this;} + inline DeleteEventSourceMappingResult& WithEventSourceMappingArn(Aws::String&& value) { SetEventSourceMappingArn(std::move(value)); return *this;} + inline DeleteEventSourceMappingResult& WithEventSourceMappingArn(const char* value) { SetEventSourceMappingArn(value); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -511,6 +524,8 @@ namespace Model FilterCriteriaError m_filterCriteriaError; + Aws::String m_eventSourceMappingArn; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/EventSourceMappingConfiguration.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/EventSourceMappingConfiguration.h index 801fbfd1eb8..f905d236a8f 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/EventSourceMappingConfiguration.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/EventSourceMappingConfiguration.h @@ -470,6 +470,20 @@ namespace Model inline EventSourceMappingConfiguration& WithFilterCriteriaError(FilterCriteriaError&& value) { SetFilterCriteriaError(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The Amazon Resource Name (ARN) of the event source mapping.

+ */ + inline const Aws::String& GetEventSourceMappingArn() const{ return m_eventSourceMappingArn; } + inline bool EventSourceMappingArnHasBeenSet() const { return m_eventSourceMappingArnHasBeenSet; } + inline void SetEventSourceMappingArn(const Aws::String& value) { m_eventSourceMappingArnHasBeenSet = true; m_eventSourceMappingArn = value; } + inline void SetEventSourceMappingArn(Aws::String&& value) { m_eventSourceMappingArnHasBeenSet = true; m_eventSourceMappingArn = std::move(value); } + inline void SetEventSourceMappingArn(const char* value) { m_eventSourceMappingArnHasBeenSet = true; m_eventSourceMappingArn.assign(value); } + inline EventSourceMappingConfiguration& WithEventSourceMappingArn(const Aws::String& value) { SetEventSourceMappingArn(value); return *this;} + inline EventSourceMappingConfiguration& WithEventSourceMappingArn(Aws::String&& value) { SetEventSourceMappingArn(std::move(value)); return *this;} + inline EventSourceMappingConfiguration& WithEventSourceMappingArn(const char* value) { SetEventSourceMappingArn(value); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -570,6 +584,9 @@ namespace Model FilterCriteriaError m_filterCriteriaError; bool m_filterCriteriaErrorHasBeenSet = false; + Aws::String m_eventSourceMappingArn; + bool m_eventSourceMappingArnHasBeenSet = false; + Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetEventSourceMappingResult.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetEventSourceMappingResult.h index 6e5af87c868..8575c73a814 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetEventSourceMappingResult.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetEventSourceMappingResult.h @@ -441,6 +441,19 @@ namespace Model inline GetEventSourceMappingResult& WithFilterCriteriaError(FilterCriteriaError&& value) { SetFilterCriteriaError(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The Amazon Resource Name (ARN) of the event source mapping.

+ */ + inline const Aws::String& GetEventSourceMappingArn() const{ return m_eventSourceMappingArn; } + inline void SetEventSourceMappingArn(const Aws::String& value) { m_eventSourceMappingArn = value; } + inline void SetEventSourceMappingArn(Aws::String&& value) { m_eventSourceMappingArn = std::move(value); } + inline void SetEventSourceMappingArn(const char* value) { m_eventSourceMappingArn.assign(value); } + inline GetEventSourceMappingResult& WithEventSourceMappingArn(const Aws::String& value) { SetEventSourceMappingArn(value); return *this;} + inline GetEventSourceMappingResult& WithEventSourceMappingArn(Aws::String&& value) { SetEventSourceMappingArn(std::move(value)); return *this;} + inline GetEventSourceMappingResult& WithEventSourceMappingArn(const char* value) { SetEventSourceMappingArn(value); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -511,6 +524,8 @@ namespace Model FilterCriteriaError m_filterCriteriaError; + Aws::String m_eventSourceMappingArn; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/ListTagsRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/ListTagsRequest.h index dae9eb69a74..7b47e2b11a1 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/ListTagsRequest.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/ListTagsRequest.h @@ -34,8 +34,8 @@ namespace Model ///@{ /** - *

The function's Amazon Resource Name (ARN). Note: Lambda does not support - * adding tags to aliases or versions.

+ *

The resource's Amazon Resource Name (ARN). Note: Lambda does not support + * adding tags to function aliases or versions.

*/ inline const Aws::String& GetResource() const{ return m_resource; } inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/TagResourceRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/TagResourceRequest.h index c47e71f1150..b3d6e380415 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/TagResourceRequest.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/TagResourceRequest.h @@ -35,7 +35,7 @@ namespace Model ///@{ /** - *

The function's Amazon Resource Name (ARN).

+ *

The resource's Amazon Resource Name (ARN).

*/ inline const Aws::String& GetResource() const{ return m_resource; } inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } @@ -49,7 +49,7 @@ namespace Model ///@{ /** - *

A list of tags to apply to the function.

+ *

A list of tags to apply to the resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/UntagResourceRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/UntagResourceRequest.h index 642e2b08d38..332dfb4edf9 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/UntagResourceRequest.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/UntagResourceRequest.h @@ -41,7 +41,7 @@ namespace Model ///@{ /** - *

The function's Amazon Resource Name (ARN).

+ *

The resource's Amazon Resource Name (ARN).

*/ inline const Aws::String& GetResource() const{ return m_resource; } inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } @@ -55,7 +55,7 @@ namespace Model ///@{ /** - *

A list of tag keys to remove from the function.

+ *

A list of tag keys to remove from the resource.

*/ inline const Aws::Vector& GetTagKeys() const{ return m_tagKeys; } inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingResult.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingResult.h index 8b139919ebf..8c33d53f5b6 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingResult.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingResult.h @@ -441,6 +441,19 @@ namespace Model inline UpdateEventSourceMappingResult& WithFilterCriteriaError(FilterCriteriaError&& value) { SetFilterCriteriaError(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The Amazon Resource Name (ARN) of the event source mapping.

+ */ + inline const Aws::String& GetEventSourceMappingArn() const{ return m_eventSourceMappingArn; } + inline void SetEventSourceMappingArn(const Aws::String& value) { m_eventSourceMappingArn = value; } + inline void SetEventSourceMappingArn(Aws::String&& value) { m_eventSourceMappingArn = std::move(value); } + inline void SetEventSourceMappingArn(const char* value) { m_eventSourceMappingArn.assign(value); } + inline UpdateEventSourceMappingResult& WithEventSourceMappingArn(const Aws::String& value) { SetEventSourceMappingArn(value); return *this;} + inline UpdateEventSourceMappingResult& WithEventSourceMappingArn(Aws::String&& value) { SetEventSourceMappingArn(std::move(value)); return *this;} + inline UpdateEventSourceMappingResult& WithEventSourceMappingArn(const char* value) { SetEventSourceMappingArn(value); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -511,6 +524,8 @@ namespace Model FilterCriteriaError m_filterCriteriaError; + Aws::String m_eventSourceMappingArn; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/CreateCodeSigningConfigRequest.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/CreateCodeSigningConfigRequest.cpp index ec2a30df1c6..0ed828c1096 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/CreateCodeSigningConfigRequest.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/CreateCodeSigningConfigRequest.cpp @@ -15,7 +15,8 @@ using namespace Aws::Utils; CreateCodeSigningConfigRequest::CreateCodeSigningConfigRequest() : m_descriptionHasBeenSet(false), m_allowedPublishersHasBeenSet(false), - m_codeSigningPoliciesHasBeenSet(false) + m_codeSigningPoliciesHasBeenSet(false), + m_tagsHasBeenSet(false) { } @@ -41,6 +42,17 @@ Aws::String CreateCodeSigningConfigRequest::SerializePayload() const } + 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(); } diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingRequest.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingRequest.cpp index 3886ddb73dd..da60f37853f 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingRequest.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingRequest.cpp @@ -34,6 +34,7 @@ CreateEventSourceMappingRequest::CreateEventSourceMappingRequest() : m_bisectBatchOnFunctionErrorHasBeenSet(false), m_maximumRetryAttempts(0), m_maximumRetryAttemptsHasBeenSet(false), + m_tagsHasBeenSet(false), m_tumblingWindowInSeconds(0), m_tumblingWindowInSecondsHasBeenSet(false), m_topicsHasBeenSet(false), @@ -129,6 +130,17 @@ Aws::String CreateEventSourceMappingRequest::SerializePayload() const } + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("Tags", std::move(tagsJsonMap)); + + } + if(m_tumblingWindowInSecondsHasBeenSet) { payload.WithInteger("TumblingWindowInSeconds", m_tumblingWindowInSeconds); diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingResult.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingResult.cpp index facbefecb2f..784282c7885 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingResult.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingResult.cpp @@ -224,6 +224,12 @@ CreateEventSourceMappingResult& CreateEventSourceMappingResult::operator =(const } + if(jsonValue.ValueExists("EventSourceMappingArn")) + { + m_eventSourceMappingArn = jsonValue.GetString("EventSourceMappingArn"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/DeleteEventSourceMappingResult.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/DeleteEventSourceMappingResult.cpp index 31a057219ea..805caec4add 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/DeleteEventSourceMappingResult.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/DeleteEventSourceMappingResult.cpp @@ -224,6 +224,12 @@ DeleteEventSourceMappingResult& DeleteEventSourceMappingResult::operator =(const } + if(jsonValue.ValueExists("EventSourceMappingArn")) + { + m_eventSourceMappingArn = jsonValue.GetString("EventSourceMappingArn"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/EventSourceMappingConfiguration.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/EventSourceMappingConfiguration.cpp index 06509e88462..4e1a32e9851 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/EventSourceMappingConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/EventSourceMappingConfiguration.cpp @@ -57,6 +57,7 @@ EventSourceMappingConfiguration::EventSourceMappingConfiguration() : m_documentDBEventSourceConfigHasBeenSet(false), m_kMSKeyArnHasBeenSet(false), m_filterCriteriaErrorHasBeenSet(false), + m_eventSourceMappingArnHasBeenSet(false), m_requestIdHasBeenSet(false) { } @@ -284,6 +285,13 @@ EventSourceMappingConfiguration& EventSourceMappingConfiguration::operator =(Jso m_filterCriteriaErrorHasBeenSet = true; } + if(jsonValue.ValueExists("EventSourceMappingArn")) + { + m_eventSourceMappingArn = jsonValue.GetString("EventSourceMappingArn"); + + m_eventSourceMappingArnHasBeenSet = true; + } + return *this; } @@ -482,6 +490,12 @@ JsonValue EventSourceMappingConfiguration::Jsonize() const } + if(m_eventSourceMappingArnHasBeenSet) + { + payload.WithString("EventSourceMappingArn", m_eventSourceMappingArn); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/GetEventSourceMappingResult.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/GetEventSourceMappingResult.cpp index a2bf3987323..5583042b5b7 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/GetEventSourceMappingResult.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/GetEventSourceMappingResult.cpp @@ -224,6 +224,12 @@ GetEventSourceMappingResult& GetEventSourceMappingResult::operator =(const Aws:: } + if(jsonValue.ValueExists("EventSourceMappingArn")) + { + m_eventSourceMappingArn = jsonValue.GetString("EventSourceMappingArn"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingResult.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingResult.cpp index 374842e262a..a314796c939 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingResult.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingResult.cpp @@ -224,6 +224,12 @@ UpdateEventSourceMappingResult& UpdateEventSourceMappingResult::operator =(const } + if(jsonValue.ValueExists("EventSourceMappingArn")) + { + m_eventSourceMappingArn = jsonValue.GetString("EventSourceMappingArn"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/EncryptionContractConfiguration.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/EncryptionContractConfiguration.h new file mode 100644 index 00000000000..c77e1e4caa9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/EncryptionContractConfiguration.h @@ -0,0 +1,96 @@ +/** + * 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 MediaConvert +{ +namespace Model +{ + + /** + * Specify the SPEKE version, either v1.0 or v2.0, that MediaConvert uses when + * encrypting your output. For more information, see: + * https://docs.aws.amazon.com/speke/latest/documentation/speke-api-specification.html + * To use SPEKE v1.0: Leave blank. To use SPEKE v2.0: Specify a SPEKE v2.0 video + * preset and a SPEKE v2.0 audio preset.

See Also:

AWS + * API Reference

+ */ + class EncryptionContractConfiguration + { + public: + AWS_MEDIACONVERT_API EncryptionContractConfiguration(); + AWS_MEDIACONVERT_API EncryptionContractConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIACONVERT_API EncryptionContractConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + * Specify which SPEKE version 2.0 audio preset MediaConvert uses to request + * content keys from your SPEKE server. For more information, see: + * https://docs.aws.amazon.com/mediaconvert/latest/ug/drm-content-speke-v2-presets.html + * To encrypt to your audio outputs, choose from the following: Audio preset 1, + * Audio preset 2, or Audio preset 3. To encrypt your audio outputs, using the same + * content key for both your audio and video outputs: Choose Shared. When you do, + * you must also set SPEKE v2.0 video preset to Shared. To not encrypt your audio + * outputs: Choose Unencrypted. When you do, to encrypt your video outputs, you + * must also specify a SPEKE v2.0 video preset (other than Shared or Unencrypted). + */ + inline const PresetSpeke20Audio& GetSpekeAudioPreset() const{ return m_spekeAudioPreset; } + inline bool SpekeAudioPresetHasBeenSet() const { return m_spekeAudioPresetHasBeenSet; } + inline void SetSpekeAudioPreset(const PresetSpeke20Audio& value) { m_spekeAudioPresetHasBeenSet = true; m_spekeAudioPreset = value; } + inline void SetSpekeAudioPreset(PresetSpeke20Audio&& value) { m_spekeAudioPresetHasBeenSet = true; m_spekeAudioPreset = std::move(value); } + inline EncryptionContractConfiguration& WithSpekeAudioPreset(const PresetSpeke20Audio& value) { SetSpekeAudioPreset(value); return *this;} + inline EncryptionContractConfiguration& WithSpekeAudioPreset(PresetSpeke20Audio&& value) { SetSpekeAudioPreset(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * Specify which SPEKE version 2.0 video preset MediaConvert uses to request + * content keys from your SPEKE server. For more information, see: + * https://docs.aws.amazon.com/mediaconvert/latest/ug/drm-content-speke-v2-presets.html + * To encrypt to your video outputs, choose from the following: Video preset 1, + * Video preset 2, Video preset 3, Video preset 4, Video preset 5, Video preset 6, + * Video preset 7, or Video preset 8. To encrypt your video outputs, using the same + * content key for both your video and audio outputs: Choose Shared. When you do, + * you must also set SPEKE v2.0 audio preset to Shared. To not encrypt your video + * outputs: Choose Unencrypted. When you do, to encrypt your audio outputs, you + * must also specify a SPEKE v2.0 audio preset (other than Shared or Unencrypted). + */ + inline const PresetSpeke20Video& GetSpekeVideoPreset() const{ return m_spekeVideoPreset; } + inline bool SpekeVideoPresetHasBeenSet() const { return m_spekeVideoPresetHasBeenSet; } + inline void SetSpekeVideoPreset(const PresetSpeke20Video& value) { m_spekeVideoPresetHasBeenSet = true; m_spekeVideoPreset = value; } + inline void SetSpekeVideoPreset(PresetSpeke20Video&& value) { m_spekeVideoPresetHasBeenSet = true; m_spekeVideoPreset = std::move(value); } + inline EncryptionContractConfiguration& WithSpekeVideoPreset(const PresetSpeke20Video& value) { SetSpekeVideoPreset(value); return *this;} + inline EncryptionContractConfiguration& WithSpekeVideoPreset(PresetSpeke20Video&& value) { SetSpekeVideoPreset(std::move(value)); return *this;} + ///@} + private: + + PresetSpeke20Audio m_spekeAudioPreset; + bool m_spekeAudioPresetHasBeenSet = false; + + PresetSpeke20Video m_spekeVideoPreset; + bool m_spekeVideoPresetHasBeenSet = false; + }; + +} // namespace Model +} // namespace MediaConvert +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/PresetSpeke20Audio.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/PresetSpeke20Audio.h new file mode 100644 index 00000000000..1f9c8bb865c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/PresetSpeke20Audio.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MediaConvert +{ +namespace Model +{ + enum class PresetSpeke20Audio + { + NOT_SET, + PRESET_AUDIO_1, + PRESET_AUDIO_2, + PRESET_AUDIO_3, + SHARED, + UNENCRYPTED + }; + +namespace PresetSpeke20AudioMapper +{ +AWS_MEDIACONVERT_API PresetSpeke20Audio GetPresetSpeke20AudioForName(const Aws::String& name); + +AWS_MEDIACONVERT_API Aws::String GetNameForPresetSpeke20Audio(PresetSpeke20Audio value); +} // namespace PresetSpeke20AudioMapper +} // namespace Model +} // namespace MediaConvert +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/PresetSpeke20Video.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/PresetSpeke20Video.h new file mode 100644 index 00000000000..c3a3bda3cf8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/PresetSpeke20Video.h @@ -0,0 +1,39 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MediaConvert +{ +namespace Model +{ + enum class PresetSpeke20Video + { + NOT_SET, + PRESET_VIDEO_1, + PRESET_VIDEO_2, + PRESET_VIDEO_3, + PRESET_VIDEO_4, + PRESET_VIDEO_5, + PRESET_VIDEO_6, + PRESET_VIDEO_7, + PRESET_VIDEO_8, + SHARED, + UNENCRYPTED + }; + +namespace PresetSpeke20VideoMapper +{ +AWS_MEDIACONVERT_API PresetSpeke20Video GetPresetSpeke20VideoForName(const Aws::String& name); + +AWS_MEDIACONVERT_API Aws::String GetNameForPresetSpeke20Video(PresetSpeke20Video value); +} // namespace PresetSpeke20VideoMapper +} // namespace Model +} // namespace MediaConvert +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/SpekeKeyProvider.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/SpekeKeyProvider.h index 2889c45aabb..a57a25a1763 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/SpekeKeyProvider.h +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/SpekeKeyProvider.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include @@ -57,6 +58,22 @@ namespace Model inline SpekeKeyProvider& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} ///@} + ///@{ + /** + * Specify the SPEKE version, either v1.0 or v2.0, that MediaConvert uses when + * encrypting your output. For more information, see: + * https://docs.aws.amazon.com/speke/latest/documentation/speke-api-specification.html + * To use SPEKE v1.0: Leave blank. To use SPEKE v2.0: Specify a SPEKE v2.0 video + * preset and a SPEKE v2.0 audio preset. + */ + inline const EncryptionContractConfiguration& GetEncryptionContractConfiguration() const{ return m_encryptionContractConfiguration; } + inline bool EncryptionContractConfigurationHasBeenSet() const { return m_encryptionContractConfigurationHasBeenSet; } + inline void SetEncryptionContractConfiguration(const EncryptionContractConfiguration& value) { m_encryptionContractConfigurationHasBeenSet = true; m_encryptionContractConfiguration = value; } + inline void SetEncryptionContractConfiguration(EncryptionContractConfiguration&& value) { m_encryptionContractConfigurationHasBeenSet = true; m_encryptionContractConfiguration = std::move(value); } + inline SpekeKeyProvider& WithEncryptionContractConfiguration(const EncryptionContractConfiguration& value) { SetEncryptionContractConfiguration(value); return *this;} + inline SpekeKeyProvider& WithEncryptionContractConfiguration(EncryptionContractConfiguration&& value) { SetEncryptionContractConfiguration(std::move(value)); return *this;} + ///@} + ///@{ /** * Specify the resource ID that your SPEKE-compliant key provider uses to identify @@ -109,6 +126,9 @@ namespace Model Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; + EncryptionContractConfiguration m_encryptionContractConfiguration; + bool m_encryptionContractConfigurationHasBeenSet = false; + Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/SpekeKeyProviderCmaf.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/SpekeKeyProviderCmaf.h index 277c1cf01a3..592d3aa8b56 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/SpekeKeyProviderCmaf.h +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/SpekeKeyProviderCmaf.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -75,6 +76,22 @@ namespace Model inline SpekeKeyProviderCmaf& AddDashSignaledSystemIds(const char* value) { m_dashSignaledSystemIdsHasBeenSet = true; m_dashSignaledSystemIds.push_back(value); return *this; } ///@} + ///@{ + /** + * Specify the SPEKE version, either v1.0 or v2.0, that MediaConvert uses when + * encrypting your output. For more information, see: + * https://docs.aws.amazon.com/speke/latest/documentation/speke-api-specification.html + * To use SPEKE v1.0: Leave blank. To use SPEKE v2.0: Specify a SPEKE v2.0 video + * preset and a SPEKE v2.0 audio preset. + */ + inline const EncryptionContractConfiguration& GetEncryptionContractConfiguration() const{ return m_encryptionContractConfiguration; } + inline bool EncryptionContractConfigurationHasBeenSet() const { return m_encryptionContractConfigurationHasBeenSet; } + inline void SetEncryptionContractConfiguration(const EncryptionContractConfiguration& value) { m_encryptionContractConfigurationHasBeenSet = true; m_encryptionContractConfiguration = value; } + inline void SetEncryptionContractConfiguration(EncryptionContractConfiguration&& value) { m_encryptionContractConfigurationHasBeenSet = true; m_encryptionContractConfiguration = std::move(value); } + inline SpekeKeyProviderCmaf& WithEncryptionContractConfiguration(const EncryptionContractConfiguration& value) { SetEncryptionContractConfiguration(value); return *this;} + inline SpekeKeyProviderCmaf& WithEncryptionContractConfiguration(EncryptionContractConfiguration&& value) { SetEncryptionContractConfiguration(std::move(value)); return *this;} + ///@} + ///@{ /** * Specify the DRM system ID that you want signaled in the HLS manifest that @@ -130,6 +147,9 @@ namespace Model Aws::Vector m_dashSignaledSystemIds; bool m_dashSignaledSystemIdsHasBeenSet = false; + EncryptionContractConfiguration m_encryptionContractConfiguration; + bool m_encryptionContractConfigurationHasBeenSet = false; + Aws::Vector m_hlsSignaledSystemIds; bool m_hlsSignaledSystemIdsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/EncryptionContractConfiguration.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/EncryptionContractConfiguration.cpp new file mode 100644 index 00000000000..7727e8c1b92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/EncryptionContractConfiguration.cpp @@ -0,0 +1,73 @@ +/** + * 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 MediaConvert +{ +namespace Model +{ + +EncryptionContractConfiguration::EncryptionContractConfiguration() : + m_spekeAudioPreset(PresetSpeke20Audio::NOT_SET), + m_spekeAudioPresetHasBeenSet(false), + m_spekeVideoPreset(PresetSpeke20Video::NOT_SET), + m_spekeVideoPresetHasBeenSet(false) +{ +} + +EncryptionContractConfiguration::EncryptionContractConfiguration(JsonView jsonValue) + : EncryptionContractConfiguration() +{ + *this = jsonValue; +} + +EncryptionContractConfiguration& EncryptionContractConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("spekeAudioPreset")) + { + m_spekeAudioPreset = PresetSpeke20AudioMapper::GetPresetSpeke20AudioForName(jsonValue.GetString("spekeAudioPreset")); + + m_spekeAudioPresetHasBeenSet = true; + } + + if(jsonValue.ValueExists("spekeVideoPreset")) + { + m_spekeVideoPreset = PresetSpeke20VideoMapper::GetPresetSpeke20VideoForName(jsonValue.GetString("spekeVideoPreset")); + + m_spekeVideoPresetHasBeenSet = true; + } + + return *this; +} + +JsonValue EncryptionContractConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_spekeAudioPresetHasBeenSet) + { + payload.WithString("spekeAudioPreset", PresetSpeke20AudioMapper::GetNameForPresetSpeke20Audio(m_spekeAudioPreset)); + } + + if(m_spekeVideoPresetHasBeenSet) + { + payload.WithString("spekeVideoPreset", PresetSpeke20VideoMapper::GetNameForPresetSpeke20Video(m_spekeVideoPreset)); + } + + return payload; +} + +} // namespace Model +} // namespace MediaConvert +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetSpeke20Audio.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetSpeke20Audio.cpp new file mode 100644 index 00000000000..ad05af3f757 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetSpeke20Audio.cpp @@ -0,0 +1,93 @@ +/** + * 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 MediaConvert + { + namespace Model + { + namespace PresetSpeke20AudioMapper + { + + static const int PRESET_AUDIO_1_HASH = HashingUtils::HashString("PRESET_AUDIO_1"); + static const int PRESET_AUDIO_2_HASH = HashingUtils::HashString("PRESET_AUDIO_2"); + static const int PRESET_AUDIO_3_HASH = HashingUtils::HashString("PRESET_AUDIO_3"); + static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static const int UNENCRYPTED_HASH = HashingUtils::HashString("UNENCRYPTED"); + + + PresetSpeke20Audio GetPresetSpeke20AudioForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PRESET_AUDIO_1_HASH) + { + return PresetSpeke20Audio::PRESET_AUDIO_1; + } + else if (hashCode == PRESET_AUDIO_2_HASH) + { + return PresetSpeke20Audio::PRESET_AUDIO_2; + } + else if (hashCode == PRESET_AUDIO_3_HASH) + { + return PresetSpeke20Audio::PRESET_AUDIO_3; + } + else if (hashCode == SHARED_HASH) + { + return PresetSpeke20Audio::SHARED; + } + else if (hashCode == UNENCRYPTED_HASH) + { + return PresetSpeke20Audio::UNENCRYPTED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return PresetSpeke20Audio::NOT_SET; + } + + Aws::String GetNameForPresetSpeke20Audio(PresetSpeke20Audio enumValue) + { + switch(enumValue) + { + case PresetSpeke20Audio::NOT_SET: + return {}; + case PresetSpeke20Audio::PRESET_AUDIO_1: + return "PRESET_AUDIO_1"; + case PresetSpeke20Audio::PRESET_AUDIO_2: + return "PRESET_AUDIO_2"; + case PresetSpeke20Audio::PRESET_AUDIO_3: + return "PRESET_AUDIO_3"; + case PresetSpeke20Audio::SHARED: + return "SHARED"; + case PresetSpeke20Audio::UNENCRYPTED: + return "UNENCRYPTED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace PresetSpeke20AudioMapper + } // namespace Model + } // namespace MediaConvert +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetSpeke20Video.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetSpeke20Video.cpp new file mode 100644 index 00000000000..cc2d3d80e61 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetSpeke20Video.cpp @@ -0,0 +1,128 @@ +/** + * 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 MediaConvert + { + namespace Model + { + namespace PresetSpeke20VideoMapper + { + + static const int PRESET_VIDEO_1_HASH = HashingUtils::HashString("PRESET_VIDEO_1"); + static const int PRESET_VIDEO_2_HASH = HashingUtils::HashString("PRESET_VIDEO_2"); + static const int PRESET_VIDEO_3_HASH = HashingUtils::HashString("PRESET_VIDEO_3"); + static const int PRESET_VIDEO_4_HASH = HashingUtils::HashString("PRESET_VIDEO_4"); + static const int PRESET_VIDEO_5_HASH = HashingUtils::HashString("PRESET_VIDEO_5"); + static const int PRESET_VIDEO_6_HASH = HashingUtils::HashString("PRESET_VIDEO_6"); + static const int PRESET_VIDEO_7_HASH = HashingUtils::HashString("PRESET_VIDEO_7"); + static const int PRESET_VIDEO_8_HASH = HashingUtils::HashString("PRESET_VIDEO_8"); + static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static const int UNENCRYPTED_HASH = HashingUtils::HashString("UNENCRYPTED"); + + + PresetSpeke20Video GetPresetSpeke20VideoForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PRESET_VIDEO_1_HASH) + { + return PresetSpeke20Video::PRESET_VIDEO_1; + } + else if (hashCode == PRESET_VIDEO_2_HASH) + { + return PresetSpeke20Video::PRESET_VIDEO_2; + } + else if (hashCode == PRESET_VIDEO_3_HASH) + { + return PresetSpeke20Video::PRESET_VIDEO_3; + } + else if (hashCode == PRESET_VIDEO_4_HASH) + { + return PresetSpeke20Video::PRESET_VIDEO_4; + } + else if (hashCode == PRESET_VIDEO_5_HASH) + { + return PresetSpeke20Video::PRESET_VIDEO_5; + } + else if (hashCode == PRESET_VIDEO_6_HASH) + { + return PresetSpeke20Video::PRESET_VIDEO_6; + } + else if (hashCode == PRESET_VIDEO_7_HASH) + { + return PresetSpeke20Video::PRESET_VIDEO_7; + } + else if (hashCode == PRESET_VIDEO_8_HASH) + { + return PresetSpeke20Video::PRESET_VIDEO_8; + } + else if (hashCode == SHARED_HASH) + { + return PresetSpeke20Video::SHARED; + } + else if (hashCode == UNENCRYPTED_HASH) + { + return PresetSpeke20Video::UNENCRYPTED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return PresetSpeke20Video::NOT_SET; + } + + Aws::String GetNameForPresetSpeke20Video(PresetSpeke20Video enumValue) + { + switch(enumValue) + { + case PresetSpeke20Video::NOT_SET: + return {}; + case PresetSpeke20Video::PRESET_VIDEO_1: + return "PRESET_VIDEO_1"; + case PresetSpeke20Video::PRESET_VIDEO_2: + return "PRESET_VIDEO_2"; + case PresetSpeke20Video::PRESET_VIDEO_3: + return "PRESET_VIDEO_3"; + case PresetSpeke20Video::PRESET_VIDEO_4: + return "PRESET_VIDEO_4"; + case PresetSpeke20Video::PRESET_VIDEO_5: + return "PRESET_VIDEO_5"; + case PresetSpeke20Video::PRESET_VIDEO_6: + return "PRESET_VIDEO_6"; + case PresetSpeke20Video::PRESET_VIDEO_7: + return "PRESET_VIDEO_7"; + case PresetSpeke20Video::PRESET_VIDEO_8: + return "PRESET_VIDEO_8"; + case PresetSpeke20Video::SHARED: + return "SHARED"; + case PresetSpeke20Video::UNENCRYPTED: + return "UNENCRYPTED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace PresetSpeke20VideoMapper + } // namespace Model + } // namespace MediaConvert +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SpekeKeyProvider.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SpekeKeyProvider.cpp index 377bb82cbcb..ce025d1d8fe 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SpekeKeyProvider.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SpekeKeyProvider.cpp @@ -20,6 +20,7 @@ namespace Model SpekeKeyProvider::SpekeKeyProvider() : m_certificateArnHasBeenSet(false), + m_encryptionContractConfigurationHasBeenSet(false), m_resourceIdHasBeenSet(false), m_systemIdsHasBeenSet(false), m_urlHasBeenSet(false) @@ -41,6 +42,13 @@ SpekeKeyProvider& SpekeKeyProvider::operator =(JsonView jsonValue) m_certificateArnHasBeenSet = true; } + if(jsonValue.ValueExists("encryptionContractConfiguration")) + { + m_encryptionContractConfiguration = jsonValue.GetObject("encryptionContractConfiguration"); + + m_encryptionContractConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("resourceId")) { m_resourceId = jsonValue.GetString("resourceId"); @@ -78,6 +86,12 @@ JsonValue SpekeKeyProvider::Jsonize() const } + if(m_encryptionContractConfigurationHasBeenSet) + { + payload.WithObject("encryptionContractConfiguration", m_encryptionContractConfiguration.Jsonize()); + + } + if(m_resourceIdHasBeenSet) { payload.WithString("resourceId", m_resourceId); diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SpekeKeyProviderCmaf.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SpekeKeyProviderCmaf.cpp index ece45a2af73..04bd0f0c9ae 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SpekeKeyProviderCmaf.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SpekeKeyProviderCmaf.cpp @@ -21,6 +21,7 @@ namespace Model SpekeKeyProviderCmaf::SpekeKeyProviderCmaf() : m_certificateArnHasBeenSet(false), m_dashSignaledSystemIdsHasBeenSet(false), + m_encryptionContractConfigurationHasBeenSet(false), m_hlsSignaledSystemIdsHasBeenSet(false), m_resourceIdHasBeenSet(false), m_urlHasBeenSet(false) @@ -52,6 +53,13 @@ SpekeKeyProviderCmaf& SpekeKeyProviderCmaf::operator =(JsonView jsonValue) m_dashSignaledSystemIdsHasBeenSet = true; } + if(jsonValue.ValueExists("encryptionContractConfiguration")) + { + m_encryptionContractConfiguration = jsonValue.GetObject("encryptionContractConfiguration"); + + m_encryptionContractConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("hlsSignaledSystemIds")) { Aws::Utils::Array hlsSignaledSystemIdsJsonList = jsonValue.GetArray("hlsSignaledSystemIds"); @@ -100,6 +108,12 @@ JsonValue SpekeKeyProviderCmaf::Jsonize() const } + if(m_encryptionContractConfigurationHasBeenSet) + { + payload.WithObject("encryptionContractConfiguration", m_encryptionContractConfiguration.Jsonize()); + + } + if(m_hlsSignaledSystemIdsHasBeenSet) { Aws::Utils::Array hlsSignaledSystemIdsJsonList(m_hlsSignaledSystemIds.size()); diff --git a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionFilterSettings.h b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionFilterSettings.h new file mode 100644 index 00000000000..9c85b984476 --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionFilterSettings.h @@ -0,0 +1,86 @@ +/** + * 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 MediaLive +{ +namespace Model +{ + + /** + * Bandwidth Reduction Filter Settings

See Also:

AWS + * API Reference

+ */ + class BandwidthReductionFilterSettings + { + public: + AWS_MEDIALIVE_API BandwidthReductionFilterSettings(); + AWS_MEDIALIVE_API BandwidthReductionFilterSettings(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIALIVE_API BandwidthReductionFilterSettings& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + * Configures the sharpening control, which is available when the bandwidth + * reduction filter is enabled. This +control sharpens edges and contours, which + * produces a specific artistic effect that you might want. + +We recommend that you + * test each of the values (including DISABLED) to observe the sharpening effect on + * the +content. + */ + inline const BandwidthReductionPostFilterSharpening& GetPostFilterSharpening() const{ return m_postFilterSharpening; } + inline bool PostFilterSharpeningHasBeenSet() const { return m_postFilterSharpeningHasBeenSet; } + inline void SetPostFilterSharpening(const BandwidthReductionPostFilterSharpening& value) { m_postFilterSharpeningHasBeenSet = true; m_postFilterSharpening = value; } + inline void SetPostFilterSharpening(BandwidthReductionPostFilterSharpening&& value) { m_postFilterSharpeningHasBeenSet = true; m_postFilterSharpening = std::move(value); } + inline BandwidthReductionFilterSettings& WithPostFilterSharpening(const BandwidthReductionPostFilterSharpening& value) { SetPostFilterSharpening(value); return *this;} + inline BandwidthReductionFilterSettings& WithPostFilterSharpening(BandwidthReductionPostFilterSharpening&& value) { SetPostFilterSharpening(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * Enables the bandwidth reduction filter. The filter strengths range from 1 to 4. + * We recommend that you always +enable this filter and use AUTO, to let MediaLive + * apply the optimum filtering for the context. + */ + inline const BandwidthReductionFilterStrength& GetStrength() const{ return m_strength; } + inline bool StrengthHasBeenSet() const { return m_strengthHasBeenSet; } + inline void SetStrength(const BandwidthReductionFilterStrength& value) { m_strengthHasBeenSet = true; m_strength = value; } + inline void SetStrength(BandwidthReductionFilterStrength&& value) { m_strengthHasBeenSet = true; m_strength = std::move(value); } + inline BandwidthReductionFilterSettings& WithStrength(const BandwidthReductionFilterStrength& value) { SetStrength(value); return *this;} + inline BandwidthReductionFilterSettings& WithStrength(BandwidthReductionFilterStrength&& value) { SetStrength(std::move(value)); return *this;} + ///@} + private: + + BandwidthReductionPostFilterSharpening m_postFilterSharpening; + bool m_postFilterSharpeningHasBeenSet = false; + + BandwidthReductionFilterStrength m_strength; + bool m_strengthHasBeenSet = false; + }; + +} // namespace Model +} // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionFilterStrength.h b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionFilterStrength.h new file mode 100644 index 00000000000..0628a8ec9d4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionFilterStrength.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MediaLive +{ +namespace Model +{ + enum class BandwidthReductionFilterStrength + { + NOT_SET, + AUTO, + STRENGTH_1, + STRENGTH_2, + STRENGTH_3, + STRENGTH_4 + }; + +namespace BandwidthReductionFilterStrengthMapper +{ +AWS_MEDIALIVE_API BandwidthReductionFilterStrength GetBandwidthReductionFilterStrengthForName(const Aws::String& name); + +AWS_MEDIALIVE_API Aws::String GetNameForBandwidthReductionFilterStrength(BandwidthReductionFilterStrength value); +} // namespace BandwidthReductionFilterStrengthMapper +} // namespace Model +} // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionPostFilterSharpening.h b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionPostFilterSharpening.h new file mode 100644 index 00000000000..556caf5a8e4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/BandwidthReductionPostFilterSharpening.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 MediaLive +{ +namespace Model +{ + enum class BandwidthReductionPostFilterSharpening + { + NOT_SET, + DISABLED, + SHARPENING_1, + SHARPENING_2, + SHARPENING_3 + }; + +namespace BandwidthReductionPostFilterSharpeningMapper +{ +AWS_MEDIALIVE_API BandwidthReductionPostFilterSharpening GetBandwidthReductionPostFilterSharpeningForName(const Aws::String& name); + +AWS_MEDIALIVE_API Aws::String GetNameForBandwidthReductionPostFilterSharpening(BandwidthReductionPostFilterSharpening value); +} // namespace BandwidthReductionPostFilterSharpeningMapper +} // namespace Model +} // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/H264FilterSettings.h b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/H264FilterSettings.h index 3b956cdb230..e2a8fcb68b4 100644 --- a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/H264FilterSettings.h +++ b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/H264FilterSettings.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -46,10 +47,23 @@ namespace Model inline H264FilterSettings& WithTemporalFilterSettings(const TemporalFilterSettings& value) { SetTemporalFilterSettings(value); return *this;} inline H264FilterSettings& WithTemporalFilterSettings(TemporalFilterSettings&& value) { SetTemporalFilterSettings(std::move(value)); return *this;} ///@} + + ///@{ + + inline const BandwidthReductionFilterSettings& GetBandwidthReductionFilterSettings() const{ return m_bandwidthReductionFilterSettings; } + inline bool BandwidthReductionFilterSettingsHasBeenSet() const { return m_bandwidthReductionFilterSettingsHasBeenSet; } + inline void SetBandwidthReductionFilterSettings(const BandwidthReductionFilterSettings& value) { m_bandwidthReductionFilterSettingsHasBeenSet = true; m_bandwidthReductionFilterSettings = value; } + inline void SetBandwidthReductionFilterSettings(BandwidthReductionFilterSettings&& value) { m_bandwidthReductionFilterSettingsHasBeenSet = true; m_bandwidthReductionFilterSettings = std::move(value); } + inline H264FilterSettings& WithBandwidthReductionFilterSettings(const BandwidthReductionFilterSettings& value) { SetBandwidthReductionFilterSettings(value); return *this;} + inline H264FilterSettings& WithBandwidthReductionFilterSettings(BandwidthReductionFilterSettings&& value) { SetBandwidthReductionFilterSettings(std::move(value)); return *this;} + ///@} private: TemporalFilterSettings m_temporalFilterSettings; bool m_temporalFilterSettingsHasBeenSet = false; + + BandwidthReductionFilterSettings m_bandwidthReductionFilterSettings; + bool m_bandwidthReductionFilterSettingsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/H265FilterSettings.h b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/H265FilterSettings.h index e9f78b0ad39..5126b7d56f2 100644 --- a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/H265FilterSettings.h +++ b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/H265FilterSettings.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -46,10 +47,23 @@ namespace Model inline H265FilterSettings& WithTemporalFilterSettings(const TemporalFilterSettings& value) { SetTemporalFilterSettings(value); return *this;} inline H265FilterSettings& WithTemporalFilterSettings(TemporalFilterSettings&& value) { SetTemporalFilterSettings(std::move(value)); return *this;} ///@} + + ///@{ + + inline const BandwidthReductionFilterSettings& GetBandwidthReductionFilterSettings() const{ return m_bandwidthReductionFilterSettings; } + inline bool BandwidthReductionFilterSettingsHasBeenSet() const { return m_bandwidthReductionFilterSettingsHasBeenSet; } + inline void SetBandwidthReductionFilterSettings(const BandwidthReductionFilterSettings& value) { m_bandwidthReductionFilterSettingsHasBeenSet = true; m_bandwidthReductionFilterSettings = value; } + inline void SetBandwidthReductionFilterSettings(BandwidthReductionFilterSettings&& value) { m_bandwidthReductionFilterSettingsHasBeenSet = true; m_bandwidthReductionFilterSettings = std::move(value); } + inline H265FilterSettings& WithBandwidthReductionFilterSettings(const BandwidthReductionFilterSettings& value) { SetBandwidthReductionFilterSettings(value); return *this;} + inline H265FilterSettings& WithBandwidthReductionFilterSettings(BandwidthReductionFilterSettings&& value) { SetBandwidthReductionFilterSettings(std::move(value)); return *this;} + ///@} private: TemporalFilterSettings m_temporalFilterSettings; bool m_temporalFilterSettingsHasBeenSet = false; + + BandwidthReductionFilterSettings m_bandwidthReductionFilterSettings; + bool m_bandwidthReductionFilterSettingsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexContainerSettings.h b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexContainerSettings.h new file mode 100644 index 00000000000..3b197c23c94 --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexContainerSettings.h @@ -0,0 +1,57 @@ +/** + * 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 MediaLive +{ +namespace Model +{ + + /** + * Multiplex Container Settings

See Also:

AWS + * API Reference

+ */ + class MultiplexContainerSettings + { + public: + AWS_MEDIALIVE_API MultiplexContainerSettings(); + AWS_MEDIALIVE_API MultiplexContainerSettings(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIALIVE_API MultiplexContainerSettings& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const MultiplexM2tsSettings& GetMultiplexM2tsSettings() const{ return m_multiplexM2tsSettings; } + inline bool MultiplexM2tsSettingsHasBeenSet() const { return m_multiplexM2tsSettingsHasBeenSet; } + inline void SetMultiplexM2tsSettings(const MultiplexM2tsSettings& value) { m_multiplexM2tsSettingsHasBeenSet = true; m_multiplexM2tsSettings = value; } + inline void SetMultiplexM2tsSettings(MultiplexM2tsSettings&& value) { m_multiplexM2tsSettingsHasBeenSet = true; m_multiplexM2tsSettings = std::move(value); } + inline MultiplexContainerSettings& WithMultiplexM2tsSettings(const MultiplexM2tsSettings& value) { SetMultiplexM2tsSettings(value); return *this;} + inline MultiplexContainerSettings& WithMultiplexM2tsSettings(MultiplexM2tsSettings&& value) { SetMultiplexM2tsSettings(std::move(value)); return *this;} + ///@} + private: + + MultiplexM2tsSettings m_multiplexM2tsSettings; + bool m_multiplexM2tsSettingsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexM2tsSettings.h b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexM2tsSettings.h new file mode 100644 index 00000000000..c9776c95c8f --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexM2tsSettings.h @@ -0,0 +1,276 @@ +/** + * 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 +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MediaLive +{ +namespace Model +{ + + /** + * Multiplex M2ts Settings

See Also:

AWS + * API Reference

+ */ + class MultiplexM2tsSettings + { + public: + AWS_MEDIALIVE_API MultiplexM2tsSettings(); + AWS_MEDIALIVE_API MultiplexM2tsSettings(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIALIVE_API MultiplexM2tsSettings& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + * When set to drop, output audio streams will be removed from the program if the + * selected input audio stream is removed from the input. This allows the output + * audio configuration to dynamically change based on input configuration. If this + * is set to encodeSilence, all output audio streams will output encoded silence + * when not connected to an active input stream. + */ + inline const M2tsAbsentInputAudioBehavior& GetAbsentInputAudioBehavior() const{ return m_absentInputAudioBehavior; } + inline bool AbsentInputAudioBehaviorHasBeenSet() const { return m_absentInputAudioBehaviorHasBeenSet; } + inline void SetAbsentInputAudioBehavior(const M2tsAbsentInputAudioBehavior& value) { m_absentInputAudioBehaviorHasBeenSet = true; m_absentInputAudioBehavior = value; } + inline void SetAbsentInputAudioBehavior(M2tsAbsentInputAudioBehavior&& value) { m_absentInputAudioBehaviorHasBeenSet = true; m_absentInputAudioBehavior = std::move(value); } + inline MultiplexM2tsSettings& WithAbsentInputAudioBehavior(const M2tsAbsentInputAudioBehavior& value) { SetAbsentInputAudioBehavior(value); return *this;} + inline MultiplexM2tsSettings& WithAbsentInputAudioBehavior(M2tsAbsentInputAudioBehavior&& value) { SetAbsentInputAudioBehavior(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * When set to enabled, uses ARIB-compliant field muxing and removes video + * descriptor. + */ + inline const M2tsArib& GetArib() const{ return m_arib; } + inline bool AribHasBeenSet() const { return m_aribHasBeenSet; } + inline void SetArib(const M2tsArib& value) { m_aribHasBeenSet = true; m_arib = value; } + inline void SetArib(M2tsArib&& value) { m_aribHasBeenSet = true; m_arib = std::move(value); } + inline MultiplexM2tsSettings& WithArib(const M2tsArib& value) { SetArib(value); return *this;} + inline MultiplexM2tsSettings& WithArib(M2tsArib&& value) { SetArib(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to + * atsc, the ATSC model is used. + */ + inline const M2tsAudioBufferModel& GetAudioBufferModel() const{ return m_audioBufferModel; } + inline bool AudioBufferModelHasBeenSet() const { return m_audioBufferModelHasBeenSet; } + inline void SetAudioBufferModel(const M2tsAudioBufferModel& value) { m_audioBufferModelHasBeenSet = true; m_audioBufferModel = value; } + inline void SetAudioBufferModel(M2tsAudioBufferModel&& value) { m_audioBufferModelHasBeenSet = true; m_audioBufferModel = std::move(value); } + inline MultiplexM2tsSettings& WithAudioBufferModel(const M2tsAudioBufferModel& value) { SetAudioBufferModel(value); return *this;} + inline MultiplexM2tsSettings& WithAudioBufferModel(M2tsAudioBufferModel&& value) { SetAudioBufferModel(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * The number of audio frames to insert for each PES packet. + */ + inline int GetAudioFramesPerPes() const{ return m_audioFramesPerPes; } + inline bool AudioFramesPerPesHasBeenSet() const { return m_audioFramesPerPesHasBeenSet; } + inline void SetAudioFramesPerPes(int value) { m_audioFramesPerPesHasBeenSet = true; m_audioFramesPerPes = value; } + inline MultiplexM2tsSettings& WithAudioFramesPerPes(int value) { SetAudioFramesPerPes(value); return *this;} + ///@} + + ///@{ + /** + * When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for + * EAC3. When set to dvb, uses stream type = 0x06. + */ + inline const M2tsAudioStreamType& GetAudioStreamType() const{ return m_audioStreamType; } + inline bool AudioStreamTypeHasBeenSet() const { return m_audioStreamTypeHasBeenSet; } + inline void SetAudioStreamType(const M2tsAudioStreamType& value) { m_audioStreamTypeHasBeenSet = true; m_audioStreamType = value; } + inline void SetAudioStreamType(M2tsAudioStreamType&& value) { m_audioStreamTypeHasBeenSet = true; m_audioStreamType = std::move(value); } + inline MultiplexM2tsSettings& WithAudioStreamType(const M2tsAudioStreamType& value) { SetAudioStreamType(value); return *this;} + inline MultiplexM2tsSettings& WithAudioStreamType(M2tsAudioStreamType&& value) { SetAudioStreamType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * When set to enabled, generates captionServiceDescriptor in PMT. + */ + inline const M2tsCcDescriptor& GetCcDescriptor() const{ return m_ccDescriptor; } + inline bool CcDescriptorHasBeenSet() const { return m_ccDescriptorHasBeenSet; } + inline void SetCcDescriptor(const M2tsCcDescriptor& value) { m_ccDescriptorHasBeenSet = true; m_ccDescriptor = value; } + inline void SetCcDescriptor(M2tsCcDescriptor&& value) { m_ccDescriptorHasBeenSet = true; m_ccDescriptor = std::move(value); } + inline MultiplexM2tsSettings& WithCcDescriptor(const M2tsCcDescriptor& value) { SetCcDescriptor(value); return *this;} + inline MultiplexM2tsSettings& WithCcDescriptor(M2tsCcDescriptor&& value) { SetCcDescriptor(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * If set to passthrough, passes any EBIF data from the input source to this + * output. + */ + inline const M2tsEbifControl& GetEbif() const{ return m_ebif; } + inline bool EbifHasBeenSet() const { return m_ebifHasBeenSet; } + inline void SetEbif(const M2tsEbifControl& value) { m_ebifHasBeenSet = true; m_ebif = value; } + inline void SetEbif(M2tsEbifControl&& value) { m_ebifHasBeenSet = true; m_ebif = std::move(value); } + inline MultiplexM2tsSettings& WithEbif(const M2tsEbifControl& value) { SetEbif(value); return *this;} + inline MultiplexM2tsSettings& WithEbif(M2tsEbifControl&& value) { SetEbif(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * Include or exclude the ES Rate field in the PES header. + */ + inline const M2tsEsRateInPes& GetEsRateInPes() const{ return m_esRateInPes; } + inline bool EsRateInPesHasBeenSet() const { return m_esRateInPesHasBeenSet; } + inline void SetEsRateInPes(const M2tsEsRateInPes& value) { m_esRateInPesHasBeenSet = true; m_esRateInPes = value; } + inline void SetEsRateInPes(M2tsEsRateInPes&& value) { m_esRateInPesHasBeenSet = true; m_esRateInPes = std::move(value); } + inline MultiplexM2tsSettings& WithEsRateInPes(const M2tsEsRateInPes& value) { SetEsRateInPes(value); return *this;} + inline MultiplexM2tsSettings& WithEsRateInPes(M2tsEsRateInPes&& value) { SetEsRateInPes(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * If set to passthrough, passes any KLV data from the input source to this output. + */ + inline const M2tsKlv& GetKlv() const{ return m_klv; } + inline bool KlvHasBeenSet() const { return m_klvHasBeenSet; } + inline void SetKlv(const M2tsKlv& value) { m_klvHasBeenSet = true; m_klv = value; } + inline void SetKlv(M2tsKlv&& value) { m_klvHasBeenSet = true; m_klv = std::move(value); } + inline MultiplexM2tsSettings& WithKlv(const M2tsKlv& value) { SetKlv(value); return *this;} + inline MultiplexM2tsSettings& WithKlv(M2tsKlv&& value) { SetKlv(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * If set to passthrough, Nielsen inaudible tones for media tracking will be + * detected in the input audio and an equivalent ID3 tag will be inserted in the + * output. + */ + inline const M2tsNielsenId3Behavior& GetNielsenId3Behavior() const{ return m_nielsenId3Behavior; } + inline bool NielsenId3BehaviorHasBeenSet() const { return m_nielsenId3BehaviorHasBeenSet; } + inline void SetNielsenId3Behavior(const M2tsNielsenId3Behavior& value) { m_nielsenId3BehaviorHasBeenSet = true; m_nielsenId3Behavior = value; } + inline void SetNielsenId3Behavior(M2tsNielsenId3Behavior&& value) { m_nielsenId3BehaviorHasBeenSet = true; m_nielsenId3Behavior = std::move(value); } + inline MultiplexM2tsSettings& WithNielsenId3Behavior(const M2tsNielsenId3Behavior& value) { SetNielsenId3Behavior(value); return *this;} + inline MultiplexM2tsSettings& WithNielsenId3Behavior(M2tsNielsenId3Behavior&& value) { SetNielsenId3Behavior(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for + * every Packetized Elementary Stream (PES) header. This parameter is effective + * only when the PCR PID is the same as the video or audio elementary stream. + */ + inline const M2tsPcrControl& GetPcrControl() const{ return m_pcrControl; } + inline bool PcrControlHasBeenSet() const { return m_pcrControlHasBeenSet; } + inline void SetPcrControl(const M2tsPcrControl& value) { m_pcrControlHasBeenSet = true; m_pcrControl = value; } + inline void SetPcrControl(M2tsPcrControl&& value) { m_pcrControlHasBeenSet = true; m_pcrControl = std::move(value); } + inline MultiplexM2tsSettings& WithPcrControl(const M2tsPcrControl& value) { SetPcrControl(value); return *this;} + inline MultiplexM2tsSettings& WithPcrControl(M2tsPcrControl&& value) { SetPcrControl(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * Maximum time in milliseconds between Program Clock Reference (PCRs) inserted + * into the transport stream. + */ + inline int GetPcrPeriod() const{ return m_pcrPeriod; } + inline bool PcrPeriodHasBeenSet() const { return m_pcrPeriodHasBeenSet; } + inline void SetPcrPeriod(int value) { m_pcrPeriodHasBeenSet = true; m_pcrPeriod = value; } + inline MultiplexM2tsSettings& WithPcrPeriod(int value) { SetPcrPeriod(value); return *this;} + ///@} + + ///@{ + /** + * Optionally pass SCTE-35 signals from the input source to this output. + */ + inline const M2tsScte35Control& GetScte35Control() const{ return m_scte35Control; } + inline bool Scte35ControlHasBeenSet() const { return m_scte35ControlHasBeenSet; } + inline void SetScte35Control(const M2tsScte35Control& value) { m_scte35ControlHasBeenSet = true; m_scte35Control = value; } + inline void SetScte35Control(M2tsScte35Control&& value) { m_scte35ControlHasBeenSet = true; m_scte35Control = std::move(value); } + inline MultiplexM2tsSettings& WithScte35Control(const M2tsScte35Control& value) { SetScte35Control(value); return *this;} + inline MultiplexM2tsSettings& WithScte35Control(M2tsScte35Control&& value) { SetScte35Control(std::move(value)); return *this;} + ///@} + + ///@{ + /** + * Defines the amount SCTE-35 preroll will be increased (in milliseconds) on the + * output. Preroll is the amount of time between the presence of a SCTE-35 + * indication in a transport stream and the PTS of the video frame it references. + * Zero means don't add pullup (it doesn't mean set the preroll to zero). Negative + * pullup is not supported, which means that you can't make the preroll shorter. Be + * aware that latency in the output will increase by the pullup amount. + */ + inline double GetScte35PrerollPullupMilliseconds() const{ return m_scte35PrerollPullupMilliseconds; } + inline bool Scte35PrerollPullupMillisecondsHasBeenSet() const { return m_scte35PrerollPullupMillisecondsHasBeenSet; } + inline void SetScte35PrerollPullupMilliseconds(double value) { m_scte35PrerollPullupMillisecondsHasBeenSet = true; m_scte35PrerollPullupMilliseconds = value; } + inline MultiplexM2tsSettings& WithScte35PrerollPullupMilliseconds(double value) { SetScte35PrerollPullupMilliseconds(value); return *this;} + ///@} + private: + + M2tsAbsentInputAudioBehavior m_absentInputAudioBehavior; + bool m_absentInputAudioBehaviorHasBeenSet = false; + + M2tsArib m_arib; + bool m_aribHasBeenSet = false; + + M2tsAudioBufferModel m_audioBufferModel; + bool m_audioBufferModelHasBeenSet = false; + + int m_audioFramesPerPes; + bool m_audioFramesPerPesHasBeenSet = false; + + M2tsAudioStreamType m_audioStreamType; + bool m_audioStreamTypeHasBeenSet = false; + + M2tsCcDescriptor m_ccDescriptor; + bool m_ccDescriptorHasBeenSet = false; + + M2tsEbifControl m_ebif; + bool m_ebifHasBeenSet = false; + + M2tsEsRateInPes m_esRateInPes; + bool m_esRateInPesHasBeenSet = false; + + M2tsKlv m_klv; + bool m_klvHasBeenSet = false; + + M2tsNielsenId3Behavior m_nielsenId3Behavior; + bool m_nielsenId3BehaviorHasBeenSet = false; + + M2tsPcrControl m_pcrControl; + bool m_pcrControlHasBeenSet = false; + + int m_pcrPeriod; + bool m_pcrPeriodHasBeenSet = false; + + M2tsScte35Control m_scte35Control; + bool m_scte35ControlHasBeenSet = false; + + double m_scte35PrerollPullupMilliseconds; + bool m_scte35PrerollPullupMillisecondsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexOutputSettings.h b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexOutputSettings.h index 70a2b80e956..89433ec519c 100644 --- a/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexOutputSettings.h +++ b/generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/MultiplexOutputSettings.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -48,10 +49,23 @@ namespace Model inline MultiplexOutputSettings& WithDestination(const OutputLocationRef& value) { SetDestination(value); return *this;} inline MultiplexOutputSettings& WithDestination(OutputLocationRef&& value) { SetDestination(std::move(value)); return *this;} ///@} + + ///@{ + + inline const MultiplexContainerSettings& GetContainerSettings() const{ return m_containerSettings; } + inline bool ContainerSettingsHasBeenSet() const { return m_containerSettingsHasBeenSet; } + inline void SetContainerSettings(const MultiplexContainerSettings& value) { m_containerSettingsHasBeenSet = true; m_containerSettings = value; } + inline void SetContainerSettings(MultiplexContainerSettings&& value) { m_containerSettingsHasBeenSet = true; m_containerSettings = std::move(value); } + inline MultiplexOutputSettings& WithContainerSettings(const MultiplexContainerSettings& value) { SetContainerSettings(value); return *this;} + inline MultiplexOutputSettings& WithContainerSettings(MultiplexContainerSettings&& value) { SetContainerSettings(std::move(value)); return *this;} + ///@} private: OutputLocationRef m_destination; bool m_destinationHasBeenSet = false; + + MultiplexContainerSettings m_containerSettings; + bool m_containerSettingsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionFilterSettings.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionFilterSettings.cpp new file mode 100644 index 00000000000..1df14e357db --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionFilterSettings.cpp @@ -0,0 +1,73 @@ +/** + * 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 MediaLive +{ +namespace Model +{ + +BandwidthReductionFilterSettings::BandwidthReductionFilterSettings() : + m_postFilterSharpening(BandwidthReductionPostFilterSharpening::NOT_SET), + m_postFilterSharpeningHasBeenSet(false), + m_strength(BandwidthReductionFilterStrength::NOT_SET), + m_strengthHasBeenSet(false) +{ +} + +BandwidthReductionFilterSettings::BandwidthReductionFilterSettings(JsonView jsonValue) + : BandwidthReductionFilterSettings() +{ + *this = jsonValue; +} + +BandwidthReductionFilterSettings& BandwidthReductionFilterSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("postFilterSharpening")) + { + m_postFilterSharpening = BandwidthReductionPostFilterSharpeningMapper::GetBandwidthReductionPostFilterSharpeningForName(jsonValue.GetString("postFilterSharpening")); + + m_postFilterSharpeningHasBeenSet = true; + } + + if(jsonValue.ValueExists("strength")) + { + m_strength = BandwidthReductionFilterStrengthMapper::GetBandwidthReductionFilterStrengthForName(jsonValue.GetString("strength")); + + m_strengthHasBeenSet = true; + } + + return *this; +} + +JsonValue BandwidthReductionFilterSettings::Jsonize() const +{ + JsonValue payload; + + if(m_postFilterSharpeningHasBeenSet) + { + payload.WithString("postFilterSharpening", BandwidthReductionPostFilterSharpeningMapper::GetNameForBandwidthReductionPostFilterSharpening(m_postFilterSharpening)); + } + + if(m_strengthHasBeenSet) + { + payload.WithString("strength", BandwidthReductionFilterStrengthMapper::GetNameForBandwidthReductionFilterStrength(m_strength)); + } + + return payload; +} + +} // namespace Model +} // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionFilterStrength.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionFilterStrength.cpp new file mode 100644 index 00000000000..461881095bb --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionFilterStrength.cpp @@ -0,0 +1,93 @@ +/** + * 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 MediaLive + { + namespace Model + { + namespace BandwidthReductionFilterStrengthMapper + { + + static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static const int STRENGTH_1_HASH = HashingUtils::HashString("STRENGTH_1"); + static const int STRENGTH_2_HASH = HashingUtils::HashString("STRENGTH_2"); + static const int STRENGTH_3_HASH = HashingUtils::HashString("STRENGTH_3"); + static const int STRENGTH_4_HASH = HashingUtils::HashString("STRENGTH_4"); + + + BandwidthReductionFilterStrength GetBandwidthReductionFilterStrengthForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == AUTO_HASH) + { + return BandwidthReductionFilterStrength::AUTO; + } + else if (hashCode == STRENGTH_1_HASH) + { + return BandwidthReductionFilterStrength::STRENGTH_1; + } + else if (hashCode == STRENGTH_2_HASH) + { + return BandwidthReductionFilterStrength::STRENGTH_2; + } + else if (hashCode == STRENGTH_3_HASH) + { + return BandwidthReductionFilterStrength::STRENGTH_3; + } + else if (hashCode == STRENGTH_4_HASH) + { + return BandwidthReductionFilterStrength::STRENGTH_4; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return BandwidthReductionFilterStrength::NOT_SET; + } + + Aws::String GetNameForBandwidthReductionFilterStrength(BandwidthReductionFilterStrength enumValue) + { + switch(enumValue) + { + case BandwidthReductionFilterStrength::NOT_SET: + return {}; + case BandwidthReductionFilterStrength::AUTO: + return "AUTO"; + case BandwidthReductionFilterStrength::STRENGTH_1: + return "STRENGTH_1"; + case BandwidthReductionFilterStrength::STRENGTH_2: + return "STRENGTH_2"; + case BandwidthReductionFilterStrength::STRENGTH_3: + return "STRENGTH_3"; + case BandwidthReductionFilterStrength::STRENGTH_4: + return "STRENGTH_4"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace BandwidthReductionFilterStrengthMapper + } // namespace Model + } // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionPostFilterSharpening.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionPostFilterSharpening.cpp new file mode 100644 index 00000000000..3abc9a8c54f --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BandwidthReductionPostFilterSharpening.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 MediaLive + { + namespace Model + { + namespace BandwidthReductionPostFilterSharpeningMapper + { + + static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static const int SHARPENING_1_HASH = HashingUtils::HashString("SHARPENING_1"); + static const int SHARPENING_2_HASH = HashingUtils::HashString("SHARPENING_2"); + static const int SHARPENING_3_HASH = HashingUtils::HashString("SHARPENING_3"); + + + BandwidthReductionPostFilterSharpening GetBandwidthReductionPostFilterSharpeningForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == DISABLED_HASH) + { + return BandwidthReductionPostFilterSharpening::DISABLED; + } + else if (hashCode == SHARPENING_1_HASH) + { + return BandwidthReductionPostFilterSharpening::SHARPENING_1; + } + else if (hashCode == SHARPENING_2_HASH) + { + return BandwidthReductionPostFilterSharpening::SHARPENING_2; + } + else if (hashCode == SHARPENING_3_HASH) + { + return BandwidthReductionPostFilterSharpening::SHARPENING_3; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return BandwidthReductionPostFilterSharpening::NOT_SET; + } + + Aws::String GetNameForBandwidthReductionPostFilterSharpening(BandwidthReductionPostFilterSharpening enumValue) + { + switch(enumValue) + { + case BandwidthReductionPostFilterSharpening::NOT_SET: + return {}; + case BandwidthReductionPostFilterSharpening::DISABLED: + return "DISABLED"; + case BandwidthReductionPostFilterSharpening::SHARPENING_1: + return "SHARPENING_1"; + case BandwidthReductionPostFilterSharpening::SHARPENING_2: + return "SHARPENING_2"; + case BandwidthReductionPostFilterSharpening::SHARPENING_3: + return "SHARPENING_3"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace BandwidthReductionPostFilterSharpeningMapper + } // namespace Model + } // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264FilterSettings.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264FilterSettings.cpp index c8979ef27bd..1c0481ef415 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264FilterSettings.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264FilterSettings.cpp @@ -19,7 +19,8 @@ namespace Model { H264FilterSettings::H264FilterSettings() : - m_temporalFilterSettingsHasBeenSet(false) + m_temporalFilterSettingsHasBeenSet(false), + m_bandwidthReductionFilterSettingsHasBeenSet(false) { } @@ -38,6 +39,13 @@ H264FilterSettings& H264FilterSettings::operator =(JsonView jsonValue) m_temporalFilterSettingsHasBeenSet = true; } + if(jsonValue.ValueExists("bandwidthReductionFilterSettings")) + { + m_bandwidthReductionFilterSettings = jsonValue.GetObject("bandwidthReductionFilterSettings"); + + m_bandwidthReductionFilterSettingsHasBeenSet = true; + } + return *this; } @@ -51,6 +59,12 @@ JsonValue H264FilterSettings::Jsonize() const } + if(m_bandwidthReductionFilterSettingsHasBeenSet) + { + payload.WithObject("bandwidthReductionFilterSettings", m_bandwidthReductionFilterSettings.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265FilterSettings.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265FilterSettings.cpp index 9a147ec76cf..a6f8ab81a1d 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265FilterSettings.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265FilterSettings.cpp @@ -19,7 +19,8 @@ namespace Model { H265FilterSettings::H265FilterSettings() : - m_temporalFilterSettingsHasBeenSet(false) + m_temporalFilterSettingsHasBeenSet(false), + m_bandwidthReductionFilterSettingsHasBeenSet(false) { } @@ -38,6 +39,13 @@ H265FilterSettings& H265FilterSettings::operator =(JsonView jsonValue) m_temporalFilterSettingsHasBeenSet = true; } + if(jsonValue.ValueExists("bandwidthReductionFilterSettings")) + { + m_bandwidthReductionFilterSettings = jsonValue.GetObject("bandwidthReductionFilterSettings"); + + m_bandwidthReductionFilterSettingsHasBeenSet = true; + } + return *this; } @@ -51,6 +59,12 @@ JsonValue H265FilterSettings::Jsonize() const } + if(m_bandwidthReductionFilterSettingsHasBeenSet) + { + payload.WithObject("bandwidthReductionFilterSettings", m_bandwidthReductionFilterSettings.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexContainerSettings.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexContainerSettings.cpp new file mode 100644 index 00000000000..a4c8b859275 --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexContainerSettings.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 MediaLive +{ +namespace Model +{ + +MultiplexContainerSettings::MultiplexContainerSettings() : + m_multiplexM2tsSettingsHasBeenSet(false) +{ +} + +MultiplexContainerSettings::MultiplexContainerSettings(JsonView jsonValue) + : MultiplexContainerSettings() +{ + *this = jsonValue; +} + +MultiplexContainerSettings& MultiplexContainerSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("multiplexM2tsSettings")) + { + m_multiplexM2tsSettings = jsonValue.GetObject("multiplexM2tsSettings"); + + m_multiplexM2tsSettingsHasBeenSet = true; + } + + return *this; +} + +JsonValue MultiplexContainerSettings::Jsonize() const +{ + JsonValue payload; + + if(m_multiplexM2tsSettingsHasBeenSet) + { + payload.WithObject("multiplexM2tsSettings", m_multiplexM2tsSettings.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexM2tsSettings.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexM2tsSettings.cpp new file mode 100644 index 00000000000..1f1ab2bdb3b --- /dev/null +++ b/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexM2tsSettings.cpp @@ -0,0 +1,244 @@ +/** + * 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 MediaLive +{ +namespace Model +{ + +MultiplexM2tsSettings::MultiplexM2tsSettings() : + m_absentInputAudioBehavior(M2tsAbsentInputAudioBehavior::NOT_SET), + m_absentInputAudioBehaviorHasBeenSet(false), + m_arib(M2tsArib::NOT_SET), + m_aribHasBeenSet(false), + m_audioBufferModel(M2tsAudioBufferModel::NOT_SET), + m_audioBufferModelHasBeenSet(false), + m_audioFramesPerPes(0), + m_audioFramesPerPesHasBeenSet(false), + m_audioStreamType(M2tsAudioStreamType::NOT_SET), + m_audioStreamTypeHasBeenSet(false), + m_ccDescriptor(M2tsCcDescriptor::NOT_SET), + m_ccDescriptorHasBeenSet(false), + m_ebif(M2tsEbifControl::NOT_SET), + m_ebifHasBeenSet(false), + m_esRateInPes(M2tsEsRateInPes::NOT_SET), + m_esRateInPesHasBeenSet(false), + m_klv(M2tsKlv::NOT_SET), + m_klvHasBeenSet(false), + m_nielsenId3Behavior(M2tsNielsenId3Behavior::NOT_SET), + m_nielsenId3BehaviorHasBeenSet(false), + m_pcrControl(M2tsPcrControl::NOT_SET), + m_pcrControlHasBeenSet(false), + m_pcrPeriod(0), + m_pcrPeriodHasBeenSet(false), + m_scte35Control(M2tsScte35Control::NOT_SET), + m_scte35ControlHasBeenSet(false), + m_scte35PrerollPullupMilliseconds(0.0), + m_scte35PrerollPullupMillisecondsHasBeenSet(false) +{ +} + +MultiplexM2tsSettings::MultiplexM2tsSettings(JsonView jsonValue) + : MultiplexM2tsSettings() +{ + *this = jsonValue; +} + +MultiplexM2tsSettings& MultiplexM2tsSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("absentInputAudioBehavior")) + { + m_absentInputAudioBehavior = M2tsAbsentInputAudioBehaviorMapper::GetM2tsAbsentInputAudioBehaviorForName(jsonValue.GetString("absentInputAudioBehavior")); + + m_absentInputAudioBehaviorHasBeenSet = true; + } + + if(jsonValue.ValueExists("arib")) + { + m_arib = M2tsAribMapper::GetM2tsAribForName(jsonValue.GetString("arib")); + + m_aribHasBeenSet = true; + } + + if(jsonValue.ValueExists("audioBufferModel")) + { + m_audioBufferModel = M2tsAudioBufferModelMapper::GetM2tsAudioBufferModelForName(jsonValue.GetString("audioBufferModel")); + + m_audioBufferModelHasBeenSet = true; + } + + if(jsonValue.ValueExists("audioFramesPerPes")) + { + m_audioFramesPerPes = jsonValue.GetInteger("audioFramesPerPes"); + + m_audioFramesPerPesHasBeenSet = true; + } + + if(jsonValue.ValueExists("audioStreamType")) + { + m_audioStreamType = M2tsAudioStreamTypeMapper::GetM2tsAudioStreamTypeForName(jsonValue.GetString("audioStreamType")); + + m_audioStreamTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ccDescriptor")) + { + m_ccDescriptor = M2tsCcDescriptorMapper::GetM2tsCcDescriptorForName(jsonValue.GetString("ccDescriptor")); + + m_ccDescriptorHasBeenSet = true; + } + + if(jsonValue.ValueExists("ebif")) + { + m_ebif = M2tsEbifControlMapper::GetM2tsEbifControlForName(jsonValue.GetString("ebif")); + + m_ebifHasBeenSet = true; + } + + if(jsonValue.ValueExists("esRateInPes")) + { + m_esRateInPes = M2tsEsRateInPesMapper::GetM2tsEsRateInPesForName(jsonValue.GetString("esRateInPes")); + + m_esRateInPesHasBeenSet = true; + } + + if(jsonValue.ValueExists("klv")) + { + m_klv = M2tsKlvMapper::GetM2tsKlvForName(jsonValue.GetString("klv")); + + m_klvHasBeenSet = true; + } + + if(jsonValue.ValueExists("nielsenId3Behavior")) + { + m_nielsenId3Behavior = M2tsNielsenId3BehaviorMapper::GetM2tsNielsenId3BehaviorForName(jsonValue.GetString("nielsenId3Behavior")); + + m_nielsenId3BehaviorHasBeenSet = true; + } + + if(jsonValue.ValueExists("pcrControl")) + { + m_pcrControl = M2tsPcrControlMapper::GetM2tsPcrControlForName(jsonValue.GetString("pcrControl")); + + m_pcrControlHasBeenSet = true; + } + + if(jsonValue.ValueExists("pcrPeriod")) + { + m_pcrPeriod = jsonValue.GetInteger("pcrPeriod"); + + m_pcrPeriodHasBeenSet = true; + } + + if(jsonValue.ValueExists("scte35Control")) + { + m_scte35Control = M2tsScte35ControlMapper::GetM2tsScte35ControlForName(jsonValue.GetString("scte35Control")); + + m_scte35ControlHasBeenSet = true; + } + + if(jsonValue.ValueExists("scte35PrerollPullupMilliseconds")) + { + m_scte35PrerollPullupMilliseconds = jsonValue.GetDouble("scte35PrerollPullupMilliseconds"); + + m_scte35PrerollPullupMillisecondsHasBeenSet = true; + } + + return *this; +} + +JsonValue MultiplexM2tsSettings::Jsonize() const +{ + JsonValue payload; + + if(m_absentInputAudioBehaviorHasBeenSet) + { + payload.WithString("absentInputAudioBehavior", M2tsAbsentInputAudioBehaviorMapper::GetNameForM2tsAbsentInputAudioBehavior(m_absentInputAudioBehavior)); + } + + if(m_aribHasBeenSet) + { + payload.WithString("arib", M2tsAribMapper::GetNameForM2tsArib(m_arib)); + } + + if(m_audioBufferModelHasBeenSet) + { + payload.WithString("audioBufferModel", M2tsAudioBufferModelMapper::GetNameForM2tsAudioBufferModel(m_audioBufferModel)); + } + + if(m_audioFramesPerPesHasBeenSet) + { + payload.WithInteger("audioFramesPerPes", m_audioFramesPerPes); + + } + + if(m_audioStreamTypeHasBeenSet) + { + payload.WithString("audioStreamType", M2tsAudioStreamTypeMapper::GetNameForM2tsAudioStreamType(m_audioStreamType)); + } + + if(m_ccDescriptorHasBeenSet) + { + payload.WithString("ccDescriptor", M2tsCcDescriptorMapper::GetNameForM2tsCcDescriptor(m_ccDescriptor)); + } + + if(m_ebifHasBeenSet) + { + payload.WithString("ebif", M2tsEbifControlMapper::GetNameForM2tsEbifControl(m_ebif)); + } + + if(m_esRateInPesHasBeenSet) + { + payload.WithString("esRateInPes", M2tsEsRateInPesMapper::GetNameForM2tsEsRateInPes(m_esRateInPes)); + } + + if(m_klvHasBeenSet) + { + payload.WithString("klv", M2tsKlvMapper::GetNameForM2tsKlv(m_klv)); + } + + if(m_nielsenId3BehaviorHasBeenSet) + { + payload.WithString("nielsenId3Behavior", M2tsNielsenId3BehaviorMapper::GetNameForM2tsNielsenId3Behavior(m_nielsenId3Behavior)); + } + + if(m_pcrControlHasBeenSet) + { + payload.WithString("pcrControl", M2tsPcrControlMapper::GetNameForM2tsPcrControl(m_pcrControl)); + } + + if(m_pcrPeriodHasBeenSet) + { + payload.WithInteger("pcrPeriod", m_pcrPeriod); + + } + + if(m_scte35ControlHasBeenSet) + { + payload.WithString("scte35Control", M2tsScte35ControlMapper::GetNameForM2tsScte35Control(m_scte35Control)); + } + + if(m_scte35PrerollPullupMillisecondsHasBeenSet) + { + payload.WithDouble("scte35PrerollPullupMilliseconds", m_scte35PrerollPullupMilliseconds); + + } + + return payload; +} + +} // namespace Model +} // namespace MediaLive +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexOutputSettings.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexOutputSettings.cpp index 6ed50fd4fd3..0927905b51e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexOutputSettings.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexOutputSettings.cpp @@ -19,7 +19,8 @@ namespace Model { MultiplexOutputSettings::MultiplexOutputSettings() : - m_destinationHasBeenSet(false) + m_destinationHasBeenSet(false), + m_containerSettingsHasBeenSet(false) { } @@ -38,6 +39,13 @@ MultiplexOutputSettings& MultiplexOutputSettings::operator =(JsonView jsonValue) m_destinationHasBeenSet = true; } + if(jsonValue.ValueExists("containerSettings")) + { + m_containerSettings = jsonValue.GetObject("containerSettings"); + + m_containerSettingsHasBeenSet = true; + } + return *this; } @@ -51,6 +59,12 @@ JsonValue MultiplexOutputSettings::Jsonize() const } + if(m_containerSettingsHasBeenSet) + { + payload.WithObject("containerSettings", m_containerSettings.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightClient.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightClient.h index 84d96f98057..734290ef8a8 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightClient.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightClient.h @@ -3086,6 +3086,32 @@ namespace QuickSight return SubmitAsync(&QuickSightClient::ListFolders, request, handler, context); } + /** + *

List all folders that a resource is a member of.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::ListFoldersForResourceOutcome ListFoldersForResource(const Model::ListFoldersForResourceRequest& request) const; + + /** + * A Callable wrapper for ListFoldersForResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListFoldersForResourceOutcomeCallable ListFoldersForResourceCallable(const ListFoldersForResourceRequestT& request) const + { + return SubmitCallable(&QuickSightClient::ListFoldersForResource, request); + } + + /** + * An Async wrapper for ListFoldersForResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListFoldersForResourceAsync(const ListFoldersForResourceRequestT& request, const ListFoldersForResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QuickSightClient::ListFoldersForResource, request, handler, context); + } + /** *

Lists member users in a group.

See Also:

AWS diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightServiceClientModel.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightServiceClientModel.h index 88d5e97478e..36efc3806c5 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightServiceClientModel.h @@ -125,6 +125,7 @@ #include #include #include +#include #include #include #include @@ -342,6 +343,7 @@ namespace Aws class ListDataSourcesRequest; class ListFolderMembersRequest; class ListFoldersRequest; + class ListFoldersForResourceRequest; class ListGroupMembershipsRequest; class ListGroupsRequest; class ListIAMPolicyAssignmentsRequest; @@ -522,6 +524,7 @@ namespace Aws typedef Aws::Utils::Outcome ListDataSourcesOutcome; typedef Aws::Utils::Outcome ListFolderMembersOutcome; typedef Aws::Utils::Outcome ListFoldersOutcome; + typedef Aws::Utils::Outcome ListFoldersForResourceOutcome; typedef Aws::Utils::Outcome ListGroupMembershipsOutcome; typedef Aws::Utils::Outcome ListGroupsOutcome; typedef Aws::Utils::Outcome ListIAMPolicyAssignmentsOutcome; @@ -702,6 +705,7 @@ namespace Aws typedef std::future ListDataSourcesOutcomeCallable; typedef std::future ListFolderMembersOutcomeCallable; typedef std::future ListFoldersOutcomeCallable; + typedef std::future ListFoldersForResourceOutcomeCallable; typedef std::future ListGroupMembershipsOutcomeCallable; typedef std::future ListGroupsOutcomeCallable; typedef std::future ListIAMPolicyAssignmentsOutcomeCallable; @@ -885,6 +889,7 @@ namespace Aws typedef std::function&) > ListDataSourcesResponseReceivedHandler; typedef std::function&) > ListFolderMembersResponseReceivedHandler; typedef std::function&) > ListFoldersResponseReceivedHandler; + typedef std::function&) > ListFoldersForResourceResponseReceivedHandler; typedef std::function&) > ListGroupMembershipsResponseReceivedHandler; typedef std::function&) > ListGroupsResponseReceivedHandler; typedef std::function&) > ListIAMPolicyAssignmentsResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/CommitMode.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/CommitMode.h new file mode 100644 index 00000000000..4dbe47be3e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/CommitMode.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 QuickSight +{ +namespace Model +{ + enum class CommitMode + { + NOT_SET, + AUTO, + MANUAL + }; + +namespace CommitModeMapper +{ +AWS_QUICKSIGHT_API CommitMode GetCommitModeForName(const Aws::String& name); + +AWS_QUICKSIGHT_API Aws::String GetNameForCommitMode(CommitMode value); +} // namespace CommitModeMapper +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultDateTimePickerControlOptions.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultDateTimePickerControlOptions.h index 15f239dfcfa..81d60cccc98 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultDateTimePickerControlOptions.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultDateTimePickerControlOptions.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -66,6 +67,19 @@ namespace Model inline DefaultDateTimePickerControlOptions& WithDisplayOptions(const DateTimePickerControlDisplayOptions& value) { SetDisplayOptions(value); return *this;} inline DefaultDateTimePickerControlOptions& WithDisplayOptions(DateTimePickerControlDisplayOptions&& value) { SetDisplayOptions(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

The visibility configuration of the Apply button on a + * DateTimePickerControl.

+ */ + inline const CommitMode& GetCommitMode() const{ return m_commitMode; } + inline bool CommitModeHasBeenSet() const { return m_commitModeHasBeenSet; } + inline void SetCommitMode(const CommitMode& value) { m_commitModeHasBeenSet = true; m_commitMode = value; } + inline void SetCommitMode(CommitMode&& value) { m_commitModeHasBeenSet = true; m_commitMode = std::move(value); } + inline DefaultDateTimePickerControlOptions& WithCommitMode(const CommitMode& value) { SetCommitMode(value); return *this;} + inline DefaultDateTimePickerControlOptions& WithCommitMode(CommitMode&& value) { SetCommitMode(std::move(value)); return *this;} + ///@} private: SheetControlDateTimePickerType m_type; @@ -73,6 +87,9 @@ namespace Model DateTimePickerControlDisplayOptions m_displayOptions; bool m_displayOptionsHasBeenSet = false; + + CommitMode m_commitMode; + bool m_commitModeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultFilterDropDownControlOptions.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultFilterDropDownControlOptions.h index 27e2793a55a..bd60c389faf 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultFilterDropDownControlOptions.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultFilterDropDownControlOptions.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -79,6 +80,19 @@ namespace Model inline DefaultFilterDropDownControlOptions& WithSelectableValues(const FilterSelectableValues& value) { SetSelectableValues(value); return *this;} inline DefaultFilterDropDownControlOptions& WithSelectableValues(FilterSelectableValues&& value) { SetSelectableValues(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

The visibility configuration of the Apply button on a + * FilterDropDownControl.

+ */ + inline const CommitMode& GetCommitMode() const{ return m_commitMode; } + inline bool CommitModeHasBeenSet() const { return m_commitModeHasBeenSet; } + inline void SetCommitMode(const CommitMode& value) { m_commitModeHasBeenSet = true; m_commitMode = value; } + inline void SetCommitMode(CommitMode&& value) { m_commitModeHasBeenSet = true; m_commitMode = std::move(value); } + inline DefaultFilterDropDownControlOptions& WithCommitMode(const CommitMode& value) { SetCommitMode(value); return *this;} + inline DefaultFilterDropDownControlOptions& WithCommitMode(CommitMode&& value) { SetCommitMode(std::move(value)); return *this;} + ///@} private: DropDownControlDisplayOptions m_displayOptions; @@ -89,6 +103,9 @@ namespace Model FilterSelectableValues m_selectableValues; bool m_selectableValuesHasBeenSet = false; + + CommitMode m_commitMode; + bool m_commitModeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultRelativeDateTimeControlOptions.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultRelativeDateTimeControlOptions.h index b2cbc7e5705..c7c06842b4c 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultRelativeDateTimeControlOptions.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DefaultRelativeDateTimeControlOptions.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -49,10 +50,26 @@ namespace Model inline DefaultRelativeDateTimeControlOptions& WithDisplayOptions(const RelativeDateTimeControlDisplayOptions& value) { SetDisplayOptions(value); return *this;} inline DefaultRelativeDateTimeControlOptions& WithDisplayOptions(RelativeDateTimeControlDisplayOptions&& value) { SetDisplayOptions(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

The visibility configuration of the Apply button on a + * RelativeDateTimeControl.

+ */ + inline const CommitMode& GetCommitMode() const{ return m_commitMode; } + inline bool CommitModeHasBeenSet() const { return m_commitModeHasBeenSet; } + inline void SetCommitMode(const CommitMode& value) { m_commitModeHasBeenSet = true; m_commitMode = value; } + inline void SetCommitMode(CommitMode&& value) { m_commitModeHasBeenSet = true; m_commitMode = std::move(value); } + inline DefaultRelativeDateTimeControlOptions& WithCommitMode(const CommitMode& value) { SetCommitMode(value); return *this;} + inline DefaultRelativeDateTimeControlOptions& WithCommitMode(CommitMode&& value) { SetCommitMode(std::move(value)); return *this;} + ///@} private: RelativeDateTimeControlDisplayOptions m_displayOptions; bool m_displayOptionsHasBeenSet = false; + + CommitMode m_commitMode; + bool m_commitModeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterDateTimePickerControl.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterDateTimePickerControl.h index 35cd8395116..bafbf2e10ec 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterDateTimePickerControl.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterDateTimePickerControl.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -109,6 +110,19 @@ namespace Model inline FilterDateTimePickerControl& WithType(const SheetControlDateTimePickerType& value) { SetType(value); return *this;} inline FilterDateTimePickerControl& WithType(SheetControlDateTimePickerType&& value) { SetType(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

The visibility configurationof the Apply button on a + * DateTimePickerControl.

+ */ + inline const CommitMode& GetCommitMode() const{ return m_commitMode; } + inline bool CommitModeHasBeenSet() const { return m_commitModeHasBeenSet; } + inline void SetCommitMode(const CommitMode& value) { m_commitModeHasBeenSet = true; m_commitMode = value; } + inline void SetCommitMode(CommitMode&& value) { m_commitModeHasBeenSet = true; m_commitMode = std::move(value); } + inline FilterDateTimePickerControl& WithCommitMode(const CommitMode& value) { SetCommitMode(value); return *this;} + inline FilterDateTimePickerControl& WithCommitMode(CommitMode&& value) { SetCommitMode(std::move(value)); return *this;} + ///@} private: Aws::String m_filterControlId; @@ -125,6 +139,9 @@ namespace Model SheetControlDateTimePickerType m_type; bool m_typeHasBeenSet = false; + + CommitMode m_commitMode; + bool m_commitModeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterDropDownControl.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterDropDownControl.h index 289dbf6382e..f2ceb676f88 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterDropDownControl.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterDropDownControl.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace Aws @@ -136,6 +137,19 @@ namespace Model inline FilterDropDownControl& WithCascadingControlConfiguration(const CascadingControlConfiguration& value) { SetCascadingControlConfiguration(value); return *this;} inline FilterDropDownControl& WithCascadingControlConfiguration(CascadingControlConfiguration&& value) { SetCascadingControlConfiguration(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

The visibility configuration of the Apply button on a + * FilterDropDownControl.

+ */ + inline const CommitMode& GetCommitMode() const{ return m_commitMode; } + inline bool CommitModeHasBeenSet() const { return m_commitModeHasBeenSet; } + inline void SetCommitMode(const CommitMode& value) { m_commitModeHasBeenSet = true; m_commitMode = value; } + inline void SetCommitMode(CommitMode&& value) { m_commitModeHasBeenSet = true; m_commitMode = std::move(value); } + inline FilterDropDownControl& WithCommitMode(const CommitMode& value) { SetCommitMode(value); return *this;} + inline FilterDropDownControl& WithCommitMode(CommitMode&& value) { SetCommitMode(std::move(value)); return *this;} + ///@} private: Aws::String m_filterControlId; @@ -158,6 +172,9 @@ namespace Model CascadingControlConfiguration m_cascadingControlConfiguration; bool m_cascadingControlConfigurationHasBeenSet = false; + + CommitMode m_commitMode; + bool m_commitModeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterRelativeDateTimeControl.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterRelativeDateTimeControl.h index cbada5d1d29..7c4f269a163 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterRelativeDateTimeControl.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilterRelativeDateTimeControl.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -92,6 +93,19 @@ namespace Model inline FilterRelativeDateTimeControl& WithDisplayOptions(const RelativeDateTimeControlDisplayOptions& value) { SetDisplayOptions(value); return *this;} inline FilterRelativeDateTimeControl& WithDisplayOptions(RelativeDateTimeControlDisplayOptions&& value) { SetDisplayOptions(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

The visibility configuration of the Apply button on a + * FilterRelativeDateTimeControl.

+ */ + inline const CommitMode& GetCommitMode() const{ return m_commitMode; } + inline bool CommitModeHasBeenSet() const { return m_commitModeHasBeenSet; } + inline void SetCommitMode(const CommitMode& value) { m_commitModeHasBeenSet = true; m_commitMode = value; } + inline void SetCommitMode(CommitMode&& value) { m_commitModeHasBeenSet = true; m_commitMode = std::move(value); } + inline FilterRelativeDateTimeControl& WithCommitMode(const CommitMode& value) { SetCommitMode(value); return *this;} + inline FilterRelativeDateTimeControl& WithCommitMode(CommitMode&& value) { SetCommitMode(std::move(value)); return *this;} + ///@} private: Aws::String m_filterControlId; @@ -105,6 +119,9 @@ namespace Model RelativeDateTimeControlDisplayOptions m_displayOptions; bool m_displayOptionsHasBeenSet = false; + + CommitMode m_commitMode; + bool m_commitModeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ListFoldersForResourceRequest.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ListFoldersForResourceRequest.h new file mode 100644 index 00000000000..8515b1186ce --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ListFoldersForResourceRequest.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 Http +{ + class URI; +} //namespace Http +namespace QuickSight +{ +namespace Model +{ + + /** + */ + class ListFoldersForResourceRequest : public QuickSightRequest + { + public: + AWS_QUICKSIGHT_API ListFoldersForResourceRequest(); + + // 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 "ListFoldersForResource"; } + + AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; + + AWS_QUICKSIGHT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

The ID for the Amazon Web Services account that contains the resource.

+ */ + inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } + inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } + inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } + inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } + inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } + inline ListFoldersForResourceRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} + inline ListFoldersForResourceRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} + inline ListFoldersForResourceRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) the resource whose folders you need to + * list.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + inline ListFoldersForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + inline ListFoldersForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + inline ListFoldersForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + ///@} + + ///@{ + /** + *

The token for the next set of results, or null if there are no more + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListFoldersForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListFoldersForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListFoldersForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

The maximum number of results to be returned per request.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListFoldersForResourceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + private: + + Aws::String m_awsAccountId; + bool m_awsAccountIdHasBeenSet = false; + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ListFoldersForResourceResult.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ListFoldersForResourceResult.h new file mode 100644 index 00000000000..8d77442ec5d --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ListFoldersForResourceResult.h @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QuickSight +{ +namespace Model +{ + class ListFoldersForResourceResult + { + public: + AWS_QUICKSIGHT_API ListFoldersForResourceResult(); + AWS_QUICKSIGHT_API ListFoldersForResourceResult(const Aws::AmazonWebServiceResult& result); + AWS_QUICKSIGHT_API ListFoldersForResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The HTTP status of the request.

+ */ + inline int GetStatus() const{ return m_status; } + inline void SetStatus(int value) { m_status = value; } + inline ListFoldersForResourceResult& WithStatus(int value) { SetStatus(value); return *this;} + ///@} + + ///@{ + /** + *

A list that contains the Amazon Resource Names (ARNs) of all folders that the + * resource is a member of.

+ */ + inline const Aws::Vector& GetFolders() const{ return m_folders; } + inline void SetFolders(const Aws::Vector& value) { m_folders = value; } + inline void SetFolders(Aws::Vector&& value) { m_folders = std::move(value); } + inline ListFoldersForResourceResult& WithFolders(const Aws::Vector& value) { SetFolders(value); return *this;} + inline ListFoldersForResourceResult& WithFolders(Aws::Vector&& value) { SetFolders(std::move(value)); return *this;} + inline ListFoldersForResourceResult& AddFolders(const Aws::String& value) { m_folders.push_back(value); return *this; } + inline ListFoldersForResourceResult& AddFolders(Aws::String&& value) { m_folders.push_back(std::move(value)); return *this; } + inline ListFoldersForResourceResult& AddFolders(const char* value) { m_folders.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

The token for the next set of results, or null if there are no more + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListFoldersForResourceResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListFoldersForResourceResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListFoldersForResourceResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListFoldersForResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListFoldersForResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListFoldersForResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + int m_status; + + Aws::Vector m_folders; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ParameterDropDownControl.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ParameterDropDownControl.h index f775522817b..b3bb797a3a4 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ParameterDropDownControl.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/ParameterDropDownControl.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace Aws @@ -132,6 +133,19 @@ namespace Model inline ParameterDropDownControl& WithCascadingControlConfiguration(const CascadingControlConfiguration& value) { SetCascadingControlConfiguration(value); return *this;} inline ParameterDropDownControl& WithCascadingControlConfiguration(CascadingControlConfiguration&& value) { SetCascadingControlConfiguration(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

The visibility configuration of the Apply button on a + * ParameterDropDownControl.

+ */ + inline const CommitMode& GetCommitMode() const{ return m_commitMode; } + inline bool CommitModeHasBeenSet() const { return m_commitModeHasBeenSet; } + inline void SetCommitMode(const CommitMode& value) { m_commitModeHasBeenSet = true; m_commitMode = value; } + inline void SetCommitMode(CommitMode&& value) { m_commitModeHasBeenSet = true; m_commitMode = std::move(value); } + inline ParameterDropDownControl& WithCommitMode(const CommitMode& value) { SetCommitMode(value); return *this;} + inline ParameterDropDownControl& WithCommitMode(CommitMode&& value) { SetCommitMode(std::move(value)); return *this;} + ///@} private: Aws::String m_parameterControlId; @@ -154,6 +168,9 @@ namespace Model CascadingControlConfiguration m_cascadingControlConfiguration; bool m_cascadingControlConfigurationHasBeenSet = false; + + CommitMode m_commitMode; + bool m_commitModeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp b/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp index 7d237b03381..8bb953cc903 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp @@ -128,6 +128,7 @@ #include #include #include +#include #include #include #include @@ -4775,6 +4776,47 @@ ListFoldersOutcome QuickSightClient::ListFolders(const ListFoldersRequest& reque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListFoldersForResourceOutcome QuickSightClient::ListFoldersForResource(const ListFoldersForResourceRequest& request) const +{ + AWS_OPERATION_GUARD(ListFoldersForResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListFoldersForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AwsAccountIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListFoldersForResource", "Required field: AwsAccountId, is not set"); + return ListFoldersForResourceOutcome(Aws::Client::AWSError(QuickSightErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AwsAccountId]", false)); + } + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListFoldersForResource", "Required field: ResourceArn, is not set"); + return ListFoldersForResourceOutcome(Aws::Client::AWSError(QuickSightErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListFoldersForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListFoldersForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListFoldersForResource", + {{ 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( + [&]()-> ListFoldersForResourceOutcome { + 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, ListFoldersForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/accounts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAwsAccountId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/resource/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); + endpointResolutionOutcome.GetResult().AddPathSegments("/folders"); + return ListFoldersForResourceOutcome(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()}}); +} + ListGroupMembershipsOutcome QuickSightClient::ListGroupMemberships(const ListGroupMembershipsRequest& request) const { AWS_OPERATION_GUARD(ListGroupMemberships); diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/CommitMode.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/CommitMode.cpp new file mode 100644 index 00000000000..eb40ab54b47 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/CommitMode.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 QuickSight + { + namespace Model + { + namespace CommitModeMapper + { + + static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + + + CommitMode GetCommitModeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == AUTO_HASH) + { + return CommitMode::AUTO; + } + else if (hashCode == MANUAL_HASH) + { + return CommitMode::MANUAL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CommitMode::NOT_SET; + } + + Aws::String GetNameForCommitMode(CommitMode enumValue) + { + switch(enumValue) + { + case CommitMode::NOT_SET: + return {}; + case CommitMode::AUTO: + return "AUTO"; + case CommitMode::MANUAL: + return "MANUAL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CommitModeMapper + } // namespace Model + } // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultDateTimePickerControlOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultDateTimePickerControlOptions.cpp index 1ce80b31854..e04e08ee129 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultDateTimePickerControlOptions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultDateTimePickerControlOptions.cpp @@ -21,7 +21,9 @@ namespace Model DefaultDateTimePickerControlOptions::DefaultDateTimePickerControlOptions() : m_type(SheetControlDateTimePickerType::NOT_SET), m_typeHasBeenSet(false), - m_displayOptionsHasBeenSet(false) + m_displayOptionsHasBeenSet(false), + m_commitMode(CommitMode::NOT_SET), + m_commitModeHasBeenSet(false) { } @@ -47,6 +49,13 @@ DefaultDateTimePickerControlOptions& DefaultDateTimePickerControlOptions::operat m_displayOptionsHasBeenSet = true; } + if(jsonValue.ValueExists("CommitMode")) + { + m_commitMode = CommitModeMapper::GetCommitModeForName(jsonValue.GetString("CommitMode")); + + m_commitModeHasBeenSet = true; + } + return *this; } @@ -65,6 +74,11 @@ JsonValue DefaultDateTimePickerControlOptions::Jsonize() const } + if(m_commitModeHasBeenSet) + { + payload.WithString("CommitMode", CommitModeMapper::GetNameForCommitMode(m_commitMode)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultFilterDropDownControlOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultFilterDropDownControlOptions.cpp index 026a75791d9..170b8e62301 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultFilterDropDownControlOptions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultFilterDropDownControlOptions.cpp @@ -22,7 +22,9 @@ DefaultFilterDropDownControlOptions::DefaultFilterDropDownControlOptions() : m_displayOptionsHasBeenSet(false), m_type(SheetControlListType::NOT_SET), m_typeHasBeenSet(false), - m_selectableValuesHasBeenSet(false) + m_selectableValuesHasBeenSet(false), + m_commitMode(CommitMode::NOT_SET), + m_commitModeHasBeenSet(false) { } @@ -55,6 +57,13 @@ DefaultFilterDropDownControlOptions& DefaultFilterDropDownControlOptions::operat m_selectableValuesHasBeenSet = true; } + if(jsonValue.ValueExists("CommitMode")) + { + m_commitMode = CommitModeMapper::GetCommitModeForName(jsonValue.GetString("CommitMode")); + + m_commitModeHasBeenSet = true; + } + return *this; } @@ -79,6 +88,11 @@ JsonValue DefaultFilterDropDownControlOptions::Jsonize() const } + if(m_commitModeHasBeenSet) + { + payload.WithString("CommitMode", CommitModeMapper::GetNameForCommitMode(m_commitMode)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultRelativeDateTimeControlOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultRelativeDateTimeControlOptions.cpp index 242ba5a4ff4..4fbc6aed307 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultRelativeDateTimeControlOptions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultRelativeDateTimeControlOptions.cpp @@ -19,7 +19,9 @@ namespace Model { DefaultRelativeDateTimeControlOptions::DefaultRelativeDateTimeControlOptions() : - m_displayOptionsHasBeenSet(false) + m_displayOptionsHasBeenSet(false), + m_commitMode(CommitMode::NOT_SET), + m_commitModeHasBeenSet(false) { } @@ -38,6 +40,13 @@ DefaultRelativeDateTimeControlOptions& DefaultRelativeDateTimeControlOptions::op m_displayOptionsHasBeenSet = true; } + if(jsonValue.ValueExists("CommitMode")) + { + m_commitMode = CommitModeMapper::GetCommitModeForName(jsonValue.GetString("CommitMode")); + + m_commitModeHasBeenSet = true; + } + return *this; } @@ -51,6 +60,11 @@ JsonValue DefaultRelativeDateTimeControlOptions::Jsonize() const } + if(m_commitModeHasBeenSet) + { + payload.WithString("CommitMode", CommitModeMapper::GetNameForCommitMode(m_commitMode)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterDateTimePickerControl.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterDateTimePickerControl.cpp index 3726c19aaa1..a53a64aa64d 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterDateTimePickerControl.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterDateTimePickerControl.cpp @@ -24,7 +24,9 @@ FilterDateTimePickerControl::FilterDateTimePickerControl() : m_sourceFilterIdHasBeenSet(false), m_displayOptionsHasBeenSet(false), m_type(SheetControlDateTimePickerType::NOT_SET), - m_typeHasBeenSet(false) + m_typeHasBeenSet(false), + m_commitMode(CommitMode::NOT_SET), + m_commitModeHasBeenSet(false) { } @@ -71,6 +73,13 @@ FilterDateTimePickerControl& FilterDateTimePickerControl::operator =(JsonView js m_typeHasBeenSet = true; } + if(jsonValue.ValueExists("CommitMode")) + { + m_commitMode = CommitModeMapper::GetCommitModeForName(jsonValue.GetString("CommitMode")); + + m_commitModeHasBeenSet = true; + } + return *this; } @@ -107,6 +116,11 @@ JsonValue FilterDateTimePickerControl::Jsonize() const payload.WithString("Type", SheetControlDateTimePickerTypeMapper::GetNameForSheetControlDateTimePickerType(m_type)); } + if(m_commitModeHasBeenSet) + { + payload.WithString("CommitMode", CommitModeMapper::GetNameForCommitMode(m_commitMode)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterDropDownControl.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterDropDownControl.cpp index 6e4996eff10..2ac11969b2e 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterDropDownControl.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterDropDownControl.cpp @@ -26,7 +26,9 @@ FilterDropDownControl::FilterDropDownControl() : m_type(SheetControlListType::NOT_SET), m_typeHasBeenSet(false), m_selectableValuesHasBeenSet(false), - m_cascadingControlConfigurationHasBeenSet(false) + m_cascadingControlConfigurationHasBeenSet(false), + m_commitMode(CommitMode::NOT_SET), + m_commitModeHasBeenSet(false) { } @@ -87,6 +89,13 @@ FilterDropDownControl& FilterDropDownControl::operator =(JsonView jsonValue) m_cascadingControlConfigurationHasBeenSet = true; } + if(jsonValue.ValueExists("CommitMode")) + { + m_commitMode = CommitModeMapper::GetCommitModeForName(jsonValue.GetString("CommitMode")); + + m_commitModeHasBeenSet = true; + } + return *this; } @@ -135,6 +144,11 @@ JsonValue FilterDropDownControl::Jsonize() const } + if(m_commitModeHasBeenSet) + { + payload.WithString("CommitMode", CommitModeMapper::GetNameForCommitMode(m_commitMode)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterRelativeDateTimeControl.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterRelativeDateTimeControl.cpp index dd0e3b42400..f9dbe79559c 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterRelativeDateTimeControl.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterRelativeDateTimeControl.cpp @@ -22,7 +22,9 @@ FilterRelativeDateTimeControl::FilterRelativeDateTimeControl() : m_filterControlIdHasBeenSet(false), m_titleHasBeenSet(false), m_sourceFilterIdHasBeenSet(false), - m_displayOptionsHasBeenSet(false) + m_displayOptionsHasBeenSet(false), + m_commitMode(CommitMode::NOT_SET), + m_commitModeHasBeenSet(false) { } @@ -62,6 +64,13 @@ FilterRelativeDateTimeControl& FilterRelativeDateTimeControl::operator =(JsonVie m_displayOptionsHasBeenSet = true; } + if(jsonValue.ValueExists("CommitMode")) + { + m_commitMode = CommitModeMapper::GetCommitModeForName(jsonValue.GetString("CommitMode")); + + m_commitModeHasBeenSet = true; + } + return *this; } @@ -93,6 +102,11 @@ JsonValue FilterRelativeDateTimeControl::Jsonize() const } + if(m_commitModeHasBeenSet) + { + payload.WithString("CommitMode", CommitModeMapper::GetNameForCommitMode(m_commitMode)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ListFoldersForResourceRequest.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ListFoldersForResourceRequest.cpp new file mode 100644 index 00000000000..5c78ff6c2a8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ListFoldersForResourceRequest.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::QuickSight::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListFoldersForResourceRequest::ListFoldersForResourceRequest() : + m_awsAccountIdHasBeenSet(false), + m_resourceArnHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListFoldersForResourceRequest::SerializePayload() const +{ + return {}; +} + +void ListFoldersForResourceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("next-token", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("max-results", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ListFoldersForResourceResult.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ListFoldersForResourceResult.cpp new file mode 100644 index 00000000000..58ee50ee6d8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ListFoldersForResourceResult.cpp @@ -0,0 +1,61 @@ +/** + * 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::QuickSight::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListFoldersForResourceResult::ListFoldersForResourceResult() : + m_status(0) +{ +} + +ListFoldersForResourceResult::ListFoldersForResourceResult(const Aws::AmazonWebServiceResult& result) + : ListFoldersForResourceResult() +{ + *this = result; +} + +ListFoldersForResourceResult& ListFoldersForResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Folders")) + { + Aws::Utils::Array foldersJsonList = jsonValue.GetArray("Folders"); + for(unsigned foldersIndex = 0; foldersIndex < foldersJsonList.GetLength(); ++foldersIndex) + { + m_folders.push_back(foldersJsonList[foldersIndex].AsString()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + m_status = static_cast(result.GetResponseCode()); + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ParameterDropDownControl.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ParameterDropDownControl.cpp index 8ecad145bbf..2e263770a6f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ParameterDropDownControl.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ParameterDropDownControl.cpp @@ -26,7 +26,9 @@ ParameterDropDownControl::ParameterDropDownControl() : m_type(SheetControlListType::NOT_SET), m_typeHasBeenSet(false), m_selectableValuesHasBeenSet(false), - m_cascadingControlConfigurationHasBeenSet(false) + m_cascadingControlConfigurationHasBeenSet(false), + m_commitMode(CommitMode::NOT_SET), + m_commitModeHasBeenSet(false) { } @@ -87,6 +89,13 @@ ParameterDropDownControl& ParameterDropDownControl::operator =(JsonView jsonValu m_cascadingControlConfigurationHasBeenSet = true; } + if(jsonValue.ValueExists("CommitMode")) + { + m_commitMode = CommitModeMapper::GetCommitModeForName(jsonValue.GetString("CommitMode")); + + m_commitModeHasBeenSet = true; + } + return *this; } @@ -135,6 +144,11 @@ JsonValue ParameterDropDownControl::Jsonize() const } + if(m_commitModeHasBeenSet) + { + payload.WithString("CommitMode", CommitModeMapper::GetNameForCommitMode(m_commitMode)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppInstanceType.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppInstanceType.h index a7cc55c30d2..d19b66e6f99 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppInstanceType.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppInstanceType.h @@ -81,6 +81,14 @@ namespace Model ml_g6_16xlarge, ml_g6_24xlarge, ml_g6_48xlarge, + ml_g6e_xlarge, + ml_g6e_2xlarge, + ml_g6e_4xlarge, + ml_g6e_8xlarge, + ml_g6e_12xlarge, + ml_g6e_16xlarge, + ml_g6e_24xlarge, + ml_g6e_48xlarge, ml_geospatial_interactive, ml_p4d_24xlarge, ml_p4de_24xlarge, diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppInstanceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppInstanceType.cpp index e38a8d90d76..04b572fa99b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppInstanceType.cpp @@ -85,6 +85,14 @@ namespace Aws static const int ml_g6_16xlarge_HASH = HashingUtils::HashString("ml.g6.16xlarge"); static const int ml_g6_24xlarge_HASH = HashingUtils::HashString("ml.g6.24xlarge"); static const int ml_g6_48xlarge_HASH = HashingUtils::HashString("ml.g6.48xlarge"); + static const int ml_g6e_xlarge_HASH = HashingUtils::HashString("ml.g6e.xlarge"); + static const int ml_g6e_2xlarge_HASH = HashingUtils::HashString("ml.g6e.2xlarge"); + static const int ml_g6e_4xlarge_HASH = HashingUtils::HashString("ml.g6e.4xlarge"); + static const int ml_g6e_8xlarge_HASH = HashingUtils::HashString("ml.g6e.8xlarge"); + static const int ml_g6e_12xlarge_HASH = HashingUtils::HashString("ml.g6e.12xlarge"); + static const int ml_g6e_16xlarge_HASH = HashingUtils::HashString("ml.g6e.16xlarge"); + static const int ml_g6e_24xlarge_HASH = HashingUtils::HashString("ml.g6e.24xlarge"); + static const int ml_g6e_48xlarge_HASH = HashingUtils::HashString("ml.g6e.48xlarge"); static const int ml_geospatial_interactive_HASH = HashingUtils::HashString("ml.geospatial.interactive"); static const int ml_p4d_24xlarge_HASH = HashingUtils::HashString("ml.p4d.24xlarge"); static const int ml_p4de_24xlarge_HASH = HashingUtils::HashString("ml.p4de.24xlarge"); @@ -506,6 +514,46 @@ namespace Aws enumValue = AppInstanceType::ml_g6_48xlarge; return true; } + else if (hashCode == ml_g6e_xlarge_HASH) + { + enumValue = AppInstanceType::ml_g6e_xlarge; + return true; + } + else if (hashCode == ml_g6e_2xlarge_HASH) + { + enumValue = AppInstanceType::ml_g6e_2xlarge; + return true; + } + else if (hashCode == ml_g6e_4xlarge_HASH) + { + enumValue = AppInstanceType::ml_g6e_4xlarge; + return true; + } + else if (hashCode == ml_g6e_8xlarge_HASH) + { + enumValue = AppInstanceType::ml_g6e_8xlarge; + return true; + } + else if (hashCode == ml_g6e_12xlarge_HASH) + { + enumValue = AppInstanceType::ml_g6e_12xlarge; + return true; + } + else if (hashCode == ml_g6e_16xlarge_HASH) + { + enumValue = AppInstanceType::ml_g6e_16xlarge; + return true; + } + else if (hashCode == ml_g6e_24xlarge_HASH) + { + enumValue = AppInstanceType::ml_g6e_24xlarge; + return true; + } + else if (hashCode == ml_g6e_48xlarge_HASH) + { + enumValue = AppInstanceType::ml_g6e_48xlarge; + return true; + } else if (hashCode == ml_geospatial_interactive_HASH) { enumValue = AppInstanceType::ml_geospatial_interactive; @@ -751,7 +799,11 @@ namespace Aws enumValue = AppInstanceType::ml_r6i_12xlarge; return true; } - else if (hashCode == ml_r6i_16xlarge_HASH) + return false; + } + static bool GetEnumForNameHelper1(int hashCode, AppInstanceType& enumValue) + { + if (hashCode == ml_r6i_16xlarge_HASH) { enumValue = AppInstanceType::ml_r6i_16xlarge; return true; @@ -791,11 +843,7 @@ namespace Aws enumValue = AppInstanceType::ml_r7i_8xlarge; return true; } - return false; - } - static bool GetEnumForNameHelper1(int hashCode, AppInstanceType& enumValue) - { - if (hashCode == ml_r7i_12xlarge_HASH) + else if (hashCode == ml_r7i_12xlarge_HASH) { enumValue = AppInstanceType::ml_r7i_12xlarge; return true; @@ -1152,6 +1200,30 @@ namespace Aws case AppInstanceType::ml_g6_48xlarge: value = "ml.g6.48xlarge"; return true; + case AppInstanceType::ml_g6e_xlarge: + value = "ml.g6e.xlarge"; + return true; + case AppInstanceType::ml_g6e_2xlarge: + value = "ml.g6e.2xlarge"; + return true; + case AppInstanceType::ml_g6e_4xlarge: + value = "ml.g6e.4xlarge"; + return true; + case AppInstanceType::ml_g6e_8xlarge: + value = "ml.g6e.8xlarge"; + return true; + case AppInstanceType::ml_g6e_12xlarge: + value = "ml.g6e.12xlarge"; + return true; + case AppInstanceType::ml_g6e_16xlarge: + value = "ml.g6e.16xlarge"; + return true; + case AppInstanceType::ml_g6e_24xlarge: + value = "ml.g6e.24xlarge"; + return true; + case AppInstanceType::ml_g6e_48xlarge: + value = "ml.g6e.48xlarge"; + return true; case AppInstanceType::ml_geospatial_interactive: value = "ml.geospatial.interactive"; return true; @@ -1299,6 +1371,14 @@ namespace Aws case AppInstanceType::ml_r6i_12xlarge: value = "ml.r6i.12xlarge"; return true; + default: + return false; + } + } + static bool GetNameForEnumHelper1(AppInstanceType enumValue, Aws::String& value) + { + switch(enumValue) + { case AppInstanceType::ml_r6i_16xlarge: value = "ml.r6i.16xlarge"; return true; @@ -1323,14 +1403,6 @@ namespace Aws case AppInstanceType::ml_r7i_8xlarge: value = "ml.r7i.8xlarge"; return true; - default: - return false; - } - } - static bool GetNameForEnumHelper1(AppInstanceType enumValue, Aws::String& value) - { - switch(enumValue) - { case AppInstanceType::ml_r7i_12xlarge: value = "ml.r7i.12xlarge"; return true; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebClient.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebClient.h index b13e3d0fc1c..62dc7c7e567 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebClient.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebClient.h @@ -808,6 +808,31 @@ namespace WorkSpacesWeb return SubmitAsync(&WorkSpacesWebClient::DisassociateUserSettings, request, handler, context); } + /** + *

Expires an active secure browser session.

See Also:

AWS + * API Reference

+ */ + virtual Model::ExpireSessionOutcome ExpireSession(const Model::ExpireSessionRequest& request) const; + + /** + * A Callable wrapper for ExpireSession that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ExpireSessionOutcomeCallable ExpireSessionCallable(const ExpireSessionRequestT& request) const + { + return SubmitCallable(&WorkSpacesWebClient::ExpireSession, request); + } + + /** + * An Async wrapper for ExpireSession that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ExpireSessionAsync(const ExpireSessionRequestT& request, const ExpireSessionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&WorkSpacesWebClient::ExpireSession, request, handler, context); + } + /** *

Gets browser settings.

See Also:

AWS @@ -958,6 +983,31 @@ namespace WorkSpacesWeb return SubmitAsync(&WorkSpacesWebClient::GetPortalServiceProviderMetadata, request, handler, context); } + /** + *

Gets information for a secure browser session.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetSessionOutcome GetSession(const Model::GetSessionRequest& request) const; + + /** + * A Callable wrapper for GetSession that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetSessionOutcomeCallable GetSessionCallable(const GetSessionRequestT& request) const + { + return SubmitCallable(&WorkSpacesWebClient::GetSession, request); + } + + /** + * An Async wrapper for GetSession that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetSessionAsync(const GetSessionRequestT& request, const GetSessionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&WorkSpacesWebClient::GetSession, request, handler, context); + } + /** *

Gets the trust store.

See Also:

AWS @@ -1184,6 +1234,32 @@ namespace WorkSpacesWeb return SubmitAsync(&WorkSpacesWebClient::ListPortals, request, handler, context); } + /** + *

Lists information for multiple secure browser sessions from a specific + * portal.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListSessionsOutcome ListSessions(const Model::ListSessionsRequest& request) const; + + /** + * A Callable wrapper for ListSessions that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListSessionsOutcomeCallable ListSessionsCallable(const ListSessionsRequestT& request) const + { + return SubmitCallable(&WorkSpacesWebClient::ListSessions, request); + } + + /** + * An Async wrapper for ListSessions that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListSessionsAsync(const ListSessionsRequestT& request, const ListSessionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&WorkSpacesWebClient::ListSessions, request, handler, context); + } + /** *

Retrieves a list of tags for a resource.

See Also:

AWS diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebServiceClientModel.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebServiceClientModel.h index 884136aea79..ae308e4411b 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebServiceClientModel.h @@ -46,12 +46,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -61,6 +63,7 @@ #include #include #include +#include #include #include #include @@ -152,12 +155,14 @@ namespace Aws class DisassociateTrustStoreRequest; class DisassociateUserAccessLoggingSettingsRequest; class DisassociateUserSettingsRequest; + class ExpireSessionRequest; class GetBrowserSettingsRequest; class GetIdentityProviderRequest; class GetIpAccessSettingsRequest; class GetNetworkSettingsRequest; class GetPortalRequest; class GetPortalServiceProviderMetadataRequest; + class GetSessionRequest; class GetTrustStoreRequest; class GetTrustStoreCertificateRequest; class GetUserAccessLoggingSettingsRequest; @@ -167,6 +172,7 @@ namespace Aws class ListIpAccessSettingsRequest; class ListNetworkSettingsRequest; class ListPortalsRequest; + class ListSessionsRequest; class ListTagsForResourceRequest; class ListTrustStoreCertificatesRequest; class ListTrustStoresRequest; @@ -213,12 +219,14 @@ namespace Aws typedef Aws::Utils::Outcome DisassociateTrustStoreOutcome; typedef Aws::Utils::Outcome DisassociateUserAccessLoggingSettingsOutcome; typedef Aws::Utils::Outcome DisassociateUserSettingsOutcome; + typedef Aws::Utils::Outcome ExpireSessionOutcome; typedef Aws::Utils::Outcome GetBrowserSettingsOutcome; typedef Aws::Utils::Outcome GetIdentityProviderOutcome; typedef Aws::Utils::Outcome GetIpAccessSettingsOutcome; typedef Aws::Utils::Outcome GetNetworkSettingsOutcome; typedef Aws::Utils::Outcome GetPortalOutcome; typedef Aws::Utils::Outcome GetPortalServiceProviderMetadataOutcome; + typedef Aws::Utils::Outcome GetSessionOutcome; typedef Aws::Utils::Outcome GetTrustStoreOutcome; typedef Aws::Utils::Outcome GetTrustStoreCertificateOutcome; typedef Aws::Utils::Outcome GetUserAccessLoggingSettingsOutcome; @@ -228,6 +236,7 @@ namespace Aws typedef Aws::Utils::Outcome ListIpAccessSettingsOutcome; typedef Aws::Utils::Outcome ListNetworkSettingsOutcome; typedef Aws::Utils::Outcome ListPortalsOutcome; + typedef Aws::Utils::Outcome ListSessionsOutcome; typedef Aws::Utils::Outcome ListTagsForResourceOutcome; typedef Aws::Utils::Outcome ListTrustStoreCertificatesOutcome; typedef Aws::Utils::Outcome ListTrustStoresOutcome; @@ -274,12 +283,14 @@ namespace Aws typedef std::future DisassociateTrustStoreOutcomeCallable; typedef std::future DisassociateUserAccessLoggingSettingsOutcomeCallable; typedef std::future DisassociateUserSettingsOutcomeCallable; + typedef std::future ExpireSessionOutcomeCallable; typedef std::future GetBrowserSettingsOutcomeCallable; typedef std::future GetIdentityProviderOutcomeCallable; typedef std::future GetIpAccessSettingsOutcomeCallable; typedef std::future GetNetworkSettingsOutcomeCallable; typedef std::future GetPortalOutcomeCallable; typedef std::future GetPortalServiceProviderMetadataOutcomeCallable; + typedef std::future GetSessionOutcomeCallable; typedef std::future GetTrustStoreOutcomeCallable; typedef std::future GetTrustStoreCertificateOutcomeCallable; typedef std::future GetUserAccessLoggingSettingsOutcomeCallable; @@ -289,6 +300,7 @@ namespace Aws typedef std::future ListIpAccessSettingsOutcomeCallable; typedef std::future ListNetworkSettingsOutcomeCallable; typedef std::future ListPortalsOutcomeCallable; + typedef std::future ListSessionsOutcomeCallable; typedef std::future ListTagsForResourceOutcomeCallable; typedef std::future ListTrustStoreCertificatesOutcomeCallable; typedef std::future ListTrustStoresOutcomeCallable; @@ -338,12 +350,14 @@ namespace Aws typedef std::function&) > DisassociateTrustStoreResponseReceivedHandler; typedef std::function&) > DisassociateUserAccessLoggingSettingsResponseReceivedHandler; typedef std::function&) > DisassociateUserSettingsResponseReceivedHandler; + typedef std::function&) > ExpireSessionResponseReceivedHandler; typedef std::function&) > GetBrowserSettingsResponseReceivedHandler; typedef std::function&) > GetIdentityProviderResponseReceivedHandler; typedef std::function&) > GetIpAccessSettingsResponseReceivedHandler; typedef std::function&) > GetNetworkSettingsResponseReceivedHandler; typedef std::function&) > GetPortalResponseReceivedHandler; typedef std::function&) > GetPortalServiceProviderMetadataResponseReceivedHandler; + typedef std::function&) > GetSessionResponseReceivedHandler; typedef std::function&) > GetTrustStoreResponseReceivedHandler; typedef std::function&) > GetTrustStoreCertificateResponseReceivedHandler; typedef std::function&) > GetUserAccessLoggingSettingsResponseReceivedHandler; @@ -353,6 +367,7 @@ namespace Aws typedef std::function&) > ListIpAccessSettingsResponseReceivedHandler; typedef std::function&) > ListNetworkSettingsResponseReceivedHandler; typedef std::function&) > ListPortalsResponseReceivedHandler; + typedef std::function&) > ListSessionsResponseReceivedHandler; typedef std::function&) > ListTagsForResourceResponseReceivedHandler; typedef std::function&) > ListTrustStoreCertificatesResponseReceivedHandler; typedef std::function&) > ListTrustStoresResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreatePortalRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreatePortalRequest.h index d2bda4b8f50..f8af8d66cad 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreatePortalRequest.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreatePortalRequest.h @@ -65,10 +65,9 @@ namespace Model * call CreateIdentityProvider to integrate your identity provider * with your web portal. User and group access to your web portal is controlled * through your identity provider.

IAM Identity Center web - * portals are authenticated through IAM Identity Center (successor to Single - * Sign-On). Identity sources (including external identity provider integration), - * plus user and group access to your web portal, can be configured in the IAM - * Identity Center.

+ * portals are authenticated through IAM Identity Center. Identity sources + * (including external identity provider integration), plus user and group access + * to your web portal, can be configured in the IAM Identity Center.

*/ inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ExpireSessionRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ExpireSessionRequest.h new file mode 100644 index 00000000000..4f8963de614 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ExpireSessionRequest.h @@ -0,0 +1,73 @@ +/** + * 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 WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class ExpireSessionRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API ExpireSessionRequest(); + + // 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 "ExpireSession"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The ID of the web portal for the session.

+ */ + inline const Aws::String& GetPortalId() const{ return m_portalId; } + inline bool PortalIdHasBeenSet() const { return m_portalIdHasBeenSet; } + inline void SetPortalId(const Aws::String& value) { m_portalIdHasBeenSet = true; m_portalId = value; } + inline void SetPortalId(Aws::String&& value) { m_portalIdHasBeenSet = true; m_portalId = std::move(value); } + inline void SetPortalId(const char* value) { m_portalIdHasBeenSet = true; m_portalId.assign(value); } + inline ExpireSessionRequest& WithPortalId(const Aws::String& value) { SetPortalId(value); return *this;} + inline ExpireSessionRequest& WithPortalId(Aws::String&& value) { SetPortalId(std::move(value)); return *this;} + inline ExpireSessionRequest& WithPortalId(const char* value) { SetPortalId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the session to expire.

+ */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + inline ExpireSessionRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + inline ExpireSessionRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + inline ExpireSessionRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} + ///@} + private: + + Aws::String m_portalId; + bool m_portalIdHasBeenSet = false; + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ExpireSessionResult.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ExpireSessionResult.h new file mode 100644 index 00000000000..20908257ae9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ExpireSessionResult.h @@ -0,0 +1,52 @@ +/** + * 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 WorkSpacesWeb +{ +namespace Model +{ + class ExpireSessionResult + { + public: + AWS_WORKSPACESWEB_API ExpireSessionResult(); + AWS_WORKSPACESWEB_API ExpireSessionResult(const Aws::AmazonWebServiceResult& result); + AWS_WORKSPACESWEB_API ExpireSessionResult& 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 ExpireSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ExpireSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ExpireSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetSessionRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetSessionRequest.h new file mode 100644 index 00000000000..79fbb75686a --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetSessionRequest.h @@ -0,0 +1,73 @@ +/** + * 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 WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class GetSessionRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API GetSessionRequest(); + + // 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 "GetSession"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The ID of the web portal for the session.

+ */ + inline const Aws::String& GetPortalId() const{ return m_portalId; } + inline bool PortalIdHasBeenSet() const { return m_portalIdHasBeenSet; } + inline void SetPortalId(const Aws::String& value) { m_portalIdHasBeenSet = true; m_portalId = value; } + inline void SetPortalId(Aws::String&& value) { m_portalIdHasBeenSet = true; m_portalId = std::move(value); } + inline void SetPortalId(const char* value) { m_portalIdHasBeenSet = true; m_portalId.assign(value); } + inline GetSessionRequest& WithPortalId(const Aws::String& value) { SetPortalId(value); return *this;} + inline GetSessionRequest& WithPortalId(Aws::String&& value) { SetPortalId(std::move(value)); return *this;} + inline GetSessionRequest& WithPortalId(const char* value) { SetPortalId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the session.

+ */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + inline GetSessionRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + inline GetSessionRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + inline GetSessionRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} + ///@} + private: + + Aws::String m_portalId; + bool m_portalIdHasBeenSet = false; + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetSessionResult.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetSessionResult.h new file mode 100644 index 00000000000..cb6a7f9f331 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetSessionResult.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + class GetSessionResult + { + public: + AWS_WORKSPACESWEB_API GetSessionResult(); + AWS_WORKSPACESWEB_API GetSessionResult(const Aws::AmazonWebServiceResult& result); + AWS_WORKSPACESWEB_API GetSessionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The sessions in a list.

+ */ + inline const Session& GetSession() const{ return m_session; } + inline void SetSession(const Session& value) { m_session = value; } + inline void SetSession(Session&& value) { m_session = std::move(value); } + inline GetSessionResult& WithSession(const Session& value) { SetSession(value); return *this;} + inline GetSessionResult& WithSession(Session&& value) { SetSession(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 GetSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Session m_session; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListSessionsRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListSessionsRequest.h new file mode 100644 index 00000000000..4fddc08b91b --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListSessionsRequest.h @@ -0,0 +1,159 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class ListSessionsRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API ListSessionsRequest(); + + // 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 "ListSessions"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + AWS_WORKSPACESWEB_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

The maximum number of results to be included in the next page.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListSessionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

The pagination token used to retrieve the next page of results for this + * operation.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListSessionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListSessionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListSessionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the web portal for the sessions.

+ */ + inline const Aws::String& GetPortalId() const{ return m_portalId; } + inline bool PortalIdHasBeenSet() const { return m_portalIdHasBeenSet; } + inline void SetPortalId(const Aws::String& value) { m_portalIdHasBeenSet = true; m_portalId = value; } + inline void SetPortalId(Aws::String&& value) { m_portalIdHasBeenSet = true; m_portalId = std::move(value); } + inline void SetPortalId(const char* value) { m_portalIdHasBeenSet = true; m_portalId.assign(value); } + inline ListSessionsRequest& WithPortalId(const Aws::String& value) { SetPortalId(value); return *this;} + inline ListSessionsRequest& WithPortalId(Aws::String&& value) { SetPortalId(std::move(value)); return *this;} + inline ListSessionsRequest& WithPortalId(const char* value) { SetPortalId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the session.

+ */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + inline ListSessionsRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + inline ListSessionsRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + inline ListSessionsRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} + ///@} + + ///@{ + /** + *

The method in which the returned sessions should be sorted.

+ */ + inline const SessionSortBy& GetSortBy() const{ return m_sortBy; } + inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } + inline void SetSortBy(const SessionSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } + inline void SetSortBy(SessionSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } + inline ListSessionsRequest& WithSortBy(const SessionSortBy& value) { SetSortBy(value); return *this;} + inline ListSessionsRequest& WithSortBy(SessionSortBy&& value) { SetSortBy(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The status of the session.

+ */ + inline const SessionStatus& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const SessionStatus& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(SessionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline ListSessionsRequest& WithStatus(const SessionStatus& value) { SetStatus(value); return *this;} + inline ListSessionsRequest& WithStatus(SessionStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The username of the session.

+ */ + inline const Aws::String& GetUsername() const{ return m_username; } + inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } + inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } + inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } + inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } + inline ListSessionsRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} + inline ListSessionsRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} + inline ListSessionsRequest& WithUsername(const char* value) { SetUsername(value); return *this;} + ///@} + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + Aws::String m_portalId; + bool m_portalIdHasBeenSet = false; + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + + SessionSortBy m_sortBy; + bool m_sortByHasBeenSet = false; + + SessionStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_username; + bool m_usernameHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListSessionsResult.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListSessionsResult.h new file mode 100644 index 00000000000..9f6d791900f --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListSessionsResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + class ListSessionsResult + { + public: + AWS_WORKSPACESWEB_API ListSessionsResult(); + AWS_WORKSPACESWEB_API ListSessionsResult(const Aws::AmazonWebServiceResult& result); + AWS_WORKSPACESWEB_API ListSessionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The pagination token used to retrieve the next page of results for this + * operation.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListSessionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListSessionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListSessionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

The sessions in a list.

+ */ + inline const Aws::Vector& GetSessions() const{ return m_sessions; } + inline void SetSessions(const Aws::Vector& value) { m_sessions = value; } + inline void SetSessions(Aws::Vector&& value) { m_sessions = std::move(value); } + inline ListSessionsResult& WithSessions(const Aws::Vector& value) { SetSessions(value); return *this;} + inline ListSessionsResult& WithSessions(Aws::Vector&& value) { SetSessions(std::move(value)); return *this;} + inline ListSessionsResult& AddSessions(const SessionSummary& value) { m_sessions.push_back(value); return *this; } + inline ListSessionsResult& AddSessions(SessionSummary&& value) { m_sessions.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 ListSessionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListSessionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListSessionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_nextToken; + + Aws::Vector m_sessions; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Portal.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Portal.h index 796060a4f6d..244fa55cef3 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Portal.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Portal.h @@ -71,10 +71,9 @@ namespace Model * call CreateIdentityProvider to integrate your identity provider * with your web portal. User and group access to your web portal is controlled * through your identity provider.

IAM Identity Center web - * portals are authenticated through IAM Identity Center (successor to Single - * Sign-On). Identity sources (including external identity provider integration), - * plus user and group access to your web portal, can be configured in the IAM - * Identity Center.

+ * portals are authenticated through IAM Identity Center. Identity sources + * (including external identity provider integration), plus user and group access + * to your web portal, can be configured in the IAM Identity Center.

*/ inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/PortalSummary.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/PortalSummary.h index 1a703dbe57e..74464a8f078 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/PortalSummary.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/PortalSummary.h @@ -51,10 +51,9 @@ namespace Model * call CreateIdentityProvider to integrate your identity provider * with your web portal. User and group access to your web portal is controlled * through your identity provider.

IAM Identity Center web - * portals are authenticated through IAM Identity Center (successor to Single - * Sign-On). Identity sources (including external identity provider integration), - * plus user and group access to your web portal, can be configured in the IAM - * Identity Center.

+ * portals are authenticated through IAM Identity Center. Identity sources + * (including external identity provider integration), plus user and group access + * to your web portal, can be configured in the IAM Identity Center.

*/ inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Session.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Session.h new file mode 100644 index 00000000000..9340264360d --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Session.h @@ -0,0 +1,161 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + *

Information about a secure browser session.

See Also:

AWS + * API Reference

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

The IP address of the client.

+ */ + inline const Aws::Vector& GetClientIpAddresses() const{ return m_clientIpAddresses; } + inline bool ClientIpAddressesHasBeenSet() const { return m_clientIpAddressesHasBeenSet; } + inline void SetClientIpAddresses(const Aws::Vector& value) { m_clientIpAddressesHasBeenSet = true; m_clientIpAddresses = value; } + inline void SetClientIpAddresses(Aws::Vector&& value) { m_clientIpAddressesHasBeenSet = true; m_clientIpAddresses = std::move(value); } + inline Session& WithClientIpAddresses(const Aws::Vector& value) { SetClientIpAddresses(value); return *this;} + inline Session& WithClientIpAddresses(Aws::Vector&& value) { SetClientIpAddresses(std::move(value)); return *this;} + inline Session& AddClientIpAddresses(const Aws::String& value) { m_clientIpAddressesHasBeenSet = true; m_clientIpAddresses.push_back(value); return *this; } + inline Session& AddClientIpAddresses(Aws::String&& value) { m_clientIpAddressesHasBeenSet = true; m_clientIpAddresses.push_back(std::move(value)); return *this; } + inline Session& AddClientIpAddresses(const char* value) { m_clientIpAddressesHasBeenSet = true; m_clientIpAddresses.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

The end time of the session.

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + inline Session& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + inline Session& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The ARN of the web portal.

+ */ + inline const Aws::String& GetPortalArn() const{ return m_portalArn; } + inline bool PortalArnHasBeenSet() const { return m_portalArnHasBeenSet; } + inline void SetPortalArn(const Aws::String& value) { m_portalArnHasBeenSet = true; m_portalArn = value; } + inline void SetPortalArn(Aws::String&& value) { m_portalArnHasBeenSet = true; m_portalArn = std::move(value); } + inline void SetPortalArn(const char* value) { m_portalArnHasBeenSet = true; m_portalArn.assign(value); } + inline Session& WithPortalArn(const Aws::String& value) { SetPortalArn(value); return *this;} + inline Session& WithPortalArn(Aws::String&& value) { SetPortalArn(std::move(value)); return *this;} + inline Session& WithPortalArn(const char* value) { SetPortalArn(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the session.

+ */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + inline Session& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + inline Session& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + inline Session& WithSessionId(const char* value) { SetSessionId(value); return *this;} + ///@} + + ///@{ + /** + *

The start time of the session.

+ */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + inline Session& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + inline Session& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The status of the session.

+ */ + inline const SessionStatus& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const SessionStatus& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(SessionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline Session& WithStatus(const SessionStatus& value) { SetStatus(value); return *this;} + inline Session& WithStatus(SessionStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The username of the session.

+ */ + inline const Aws::String& GetUsername() const{ return m_username; } + inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } + inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } + inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } + inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } + inline Session& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} + inline Session& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} + inline Session& WithUsername(const char* value) { SetUsername(value); return *this;} + ///@} + private: + + Aws::Vector m_clientIpAddresses; + bool m_clientIpAddressesHasBeenSet = false; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet = false; + + Aws::String m_portalArn; + bool m_portalArnHasBeenSet = false; + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet = false; + + SessionStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_username; + bool m_usernameHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionSortBy.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionSortBy.h new file mode 100644 index 00000000000..417db89ada5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionSortBy.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 WorkSpacesWeb +{ +namespace Model +{ + enum class SessionSortBy + { + NOT_SET, + StartTimeAscending, + StartTimeDescending + }; + +namespace SessionSortByMapper +{ +AWS_WORKSPACESWEB_API SessionSortBy GetSessionSortByForName(const Aws::String& name); + +AWS_WORKSPACESWEB_API Aws::String GetNameForSessionSortBy(SessionSortBy value); +} // namespace SessionSortByMapper +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionStatus.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionStatus.h new file mode 100644 index 00000000000..d2d3273ef70 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionStatus.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 WorkSpacesWeb +{ +namespace Model +{ + enum class SessionStatus + { + NOT_SET, + Active, + Terminated + }; + +namespace SessionStatusMapper +{ +AWS_WORKSPACESWEB_API SessionStatus GetSessionStatusForName(const Aws::String& name); + +AWS_WORKSPACESWEB_API Aws::String GetNameForSessionStatus(SessionStatus value); +} // namespace SessionStatusMapper +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionSummary.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionSummary.h new file mode 100644 index 00000000000..bf8644ce1a5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/SessionSummary.h @@ -0,0 +1,143 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + *

Summary information about a secure browser session.

See Also:

+ * AWS + * API Reference

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

The end time of the session.

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + inline SessionSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + inline SessionSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The ARN of the web portal.

+ */ + inline const Aws::String& GetPortalArn() const{ return m_portalArn; } + inline bool PortalArnHasBeenSet() const { return m_portalArnHasBeenSet; } + inline void SetPortalArn(const Aws::String& value) { m_portalArnHasBeenSet = true; m_portalArn = value; } + inline void SetPortalArn(Aws::String&& value) { m_portalArnHasBeenSet = true; m_portalArn = std::move(value); } + inline void SetPortalArn(const char* value) { m_portalArnHasBeenSet = true; m_portalArn.assign(value); } + inline SessionSummary& WithPortalArn(const Aws::String& value) { SetPortalArn(value); return *this;} + inline SessionSummary& WithPortalArn(Aws::String&& value) { SetPortalArn(std::move(value)); return *this;} + inline SessionSummary& WithPortalArn(const char* value) { SetPortalArn(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the session.

+ */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + inline SessionSummary& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + inline SessionSummary& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + inline SessionSummary& WithSessionId(const char* value) { SetSessionId(value); return *this;} + ///@} + + ///@{ + /** + *

The start time of the session.

+ */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + inline SessionSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + inline SessionSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The status of the session.

+ */ + inline const SessionStatus& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const SessionStatus& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(SessionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline SessionSummary& WithStatus(const SessionStatus& value) { SetStatus(value); return *this;} + inline SessionSummary& WithStatus(SessionStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The username of the session.

+ */ + inline const Aws::String& GetUsername() const{ return m_username; } + inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } + inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } + inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } + inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } + inline SessionSummary& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} + inline SessionSummary& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} + inline SessionSummary& WithUsername(const char* value) { SetUsername(value); return *this;} + ///@} + private: + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet = false; + + Aws::String m_portalArn; + bool m_portalArnHasBeenSet = false; + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet = false; + + SessionStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_username; + bool m_usernameHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdatePortalRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdatePortalRequest.h index 21f444ab3ff..19739ad282f 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdatePortalRequest.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdatePortalRequest.h @@ -42,10 +42,9 @@ namespace Model * call CreateIdentityProvider to integrate your identity provider * with your web portal. User and group access to your web portal is controlled * through your identity provider.

IAM Identity Center web - * portals are authenticated through IAM Identity Center (successor to Single - * Sign-On). Identity sources (including external identity provider integration), - * plus user and group access to your web portal, can be configured in the IAM - * Identity Center.

+ * portals are authenticated through IAM Identity Center. Identity sources + * (including external identity provider integration), plus user and group access + * to your web portal, can be configured in the IAM Identity Center.

*/ inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp index e5ee535c3a3..42adbbf85f0 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp @@ -49,12 +49,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -64,6 +66,7 @@ #include #include #include +#include #include #include #include @@ -1140,6 +1143,46 @@ DisassociateUserSettingsOutcome WorkSpacesWebClient::DisassociateUserSettings(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ExpireSessionOutcome WorkSpacesWebClient::ExpireSession(const ExpireSessionRequest& request) const +{ + AWS_OPERATION_GUARD(ExpireSession); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ExpireSession, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PortalIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ExpireSession", "Required field: PortalId, is not set"); + return ExpireSessionOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PortalId]", false)); + } + if (!request.SessionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ExpireSession", "Required field: SessionId, is not set"); + return ExpireSessionOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SessionId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ExpireSession, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ExpireSession, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ExpireSession", + {{ 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( + [&]()-> ExpireSessionOutcome { + 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, ExpireSession, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/portals/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPortalId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/sessions/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetSessionId()); + return ExpireSessionOutcome(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()}}); +} + GetBrowserSettingsOutcome WorkSpacesWebClient::GetBrowserSettings(const GetBrowserSettingsRequest& request) const { AWS_OPERATION_GUARD(GetBrowserSettings); @@ -1338,6 +1381,46 @@ GetPortalServiceProviderMetadataOutcome WorkSpacesWebClient::GetPortalServicePro {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetSessionOutcome WorkSpacesWebClient::GetSession(const GetSessionRequest& request) const +{ + AWS_OPERATION_GUARD(GetSession); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSession, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PortalIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetSession", "Required field: PortalId, is not set"); + return GetSessionOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PortalId]", false)); + } + if (!request.SessionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetSession", "Required field: SessionId, is not set"); + return GetSessionOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SessionId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSession, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetSession, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSession", + {{ 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( + [&]()-> GetSessionOutcome { + 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, GetSession, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/portals/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPortalId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/sessions/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetSessionId()); + return GetSessionOutcome(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()}}); +} + GetTrustStoreOutcome WorkSpacesWebClient::GetTrustStore(const GetTrustStoreRequest& request) const { AWS_OPERATION_GUARD(GetTrustStore); @@ -1618,6 +1701,40 @@ ListPortalsOutcome WorkSpacesWebClient::ListPortals(const ListPortalsRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListSessionsOutcome WorkSpacesWebClient::ListSessions(const ListSessionsRequest& request) const +{ + AWS_OPERATION_GUARD(ListSessions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListSessions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PortalIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListSessions", "Required field: PortalId, is not set"); + return ListSessionsOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PortalId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListSessions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListSessions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListSessions", + {{ 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( + [&]()-> ListSessionsOutcome { + 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, ListSessions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/portals/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPortalId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/sessions"); + return ListSessionsOutcome(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()}}); +} + ListTagsForResourceOutcome WorkSpacesWebClient::ListTagsForResource(const ListTagsForResourceRequest& request) const { AWS_OPERATION_GUARD(ListTagsForResource); diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/ExpireSessionRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ExpireSessionRequest.cpp new file mode 100644 index 00000000000..5bed542fc96 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ExpireSessionRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ExpireSessionRequest::ExpireSessionRequest() : + m_portalIdHasBeenSet(false), + m_sessionIdHasBeenSet(false) +{ +} + +Aws::String ExpireSessionRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/ExpireSessionResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ExpireSessionResult.cpp new file mode 100644 index 00000000000..a3f50839e5e --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ExpireSessionResult.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::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ExpireSessionResult::ExpireSessionResult() +{ +} + +ExpireSessionResult::ExpireSessionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ExpireSessionResult& ExpireSessionResult::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-workspaces-web/source/model/GetSessionRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetSessionRequest.cpp new file mode 100644 index 00000000000..3dffdbeb580 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetSessionRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetSessionRequest::GetSessionRequest() : + m_portalIdHasBeenSet(false), + m_sessionIdHasBeenSet(false) +{ +} + +Aws::String GetSessionRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetSessionResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetSessionResult.cpp new file mode 100644 index 00000000000..579cce0c55b --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetSessionResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetSessionResult::GetSessionResult() +{ +} + +GetSessionResult::GetSessionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetSessionResult& GetSessionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("session")) + { + m_session = jsonValue.GetObject("session"); + + } + + + 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-workspaces-web/source/model/ListSessionsRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListSessionsRequest.cpp new file mode 100644 index 00000000000..f0214dfa55d --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListSessionsRequest.cpp @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListSessionsRequest::ListSessionsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_portalIdHasBeenSet(false), + m_sessionIdHasBeenSet(false), + m_sortBy(SessionSortBy::NOT_SET), + m_sortByHasBeenSet(false), + m_status(SessionStatus::NOT_SET), + m_statusHasBeenSet(false), + m_usernameHasBeenSet(false) +{ +} + +Aws::String ListSessionsRequest::SerializePayload() const +{ + return {}; +} + +void ListSessionsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_sessionIdHasBeenSet) + { + ss << m_sessionId; + uri.AddQueryStringParameter("sessionId", ss.str()); + ss.str(""); + } + + if(m_sortByHasBeenSet) + { + ss << SessionSortByMapper::GetNameForSessionSortBy(m_sortBy); + uri.AddQueryStringParameter("sortBy", ss.str()); + ss.str(""); + } + + if(m_statusHasBeenSet) + { + ss << SessionStatusMapper::GetNameForSessionStatus(m_status); + uri.AddQueryStringParameter("status", ss.str()); + ss.str(""); + } + + if(m_usernameHasBeenSet) + { + ss << m_username; + uri.AddQueryStringParameter("username", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListSessionsResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListSessionsResult.cpp new file mode 100644 index 00000000000..7311dcbd9dc --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListSessionsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListSessionsResult::ListSessionsResult() +{ +} + +ListSessionsResult::ListSessionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListSessionsResult& ListSessionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + if(jsonValue.ValueExists("sessions")) + { + Aws::Utils::Array sessionsJsonList = jsonValue.GetArray("sessions"); + for(unsigned sessionsIndex = 0; sessionsIndex < sessionsJsonList.GetLength(); ++sessionsIndex) + { + m_sessions.push_back(sessionsJsonList[sessionsIndex].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-workspaces-web/source/model/Session.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/Session.cpp new file mode 100644 index 00000000000..f0c3246d43a --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/Session.cpp @@ -0,0 +1,149 @@ +/** + * 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 WorkSpacesWeb +{ +namespace Model +{ + +Session::Session() : + m_clientIpAddressesHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_portalArnHasBeenSet(false), + m_sessionIdHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_status(SessionStatus::NOT_SET), + m_statusHasBeenSet(false), + m_usernameHasBeenSet(false) +{ +} + +Session::Session(JsonView jsonValue) + : Session() +{ + *this = jsonValue; +} + +Session& Session::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("clientIpAddresses")) + { + Aws::Utils::Array clientIpAddressesJsonList = jsonValue.GetArray("clientIpAddresses"); + for(unsigned clientIpAddressesIndex = 0; clientIpAddressesIndex < clientIpAddressesJsonList.GetLength(); ++clientIpAddressesIndex) + { + m_clientIpAddresses.push_back(clientIpAddressesJsonList[clientIpAddressesIndex].AsString()); + } + m_clientIpAddressesHasBeenSet = true; + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetDouble("endTime"); + + m_endTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("portalArn")) + { + m_portalArn = jsonValue.GetString("portalArn"); + + m_portalArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("sessionId")) + { + m_sessionId = jsonValue.GetString("sessionId"); + + m_sessionIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetDouble("startTime"); + + m_startTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = SessionStatusMapper::GetSessionStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("username")) + { + m_username = jsonValue.GetString("username"); + + m_usernameHasBeenSet = true; + } + + return *this; +} + +JsonValue Session::Jsonize() const +{ + JsonValue payload; + + if(m_clientIpAddressesHasBeenSet) + { + Aws::Utils::Array clientIpAddressesJsonList(m_clientIpAddresses.size()); + for(unsigned clientIpAddressesIndex = 0; clientIpAddressesIndex < clientIpAddressesJsonList.GetLength(); ++clientIpAddressesIndex) + { + clientIpAddressesJsonList[clientIpAddressesIndex].AsString(m_clientIpAddresses[clientIpAddressesIndex]); + } + payload.WithArray("clientIpAddresses", std::move(clientIpAddressesJsonList)); + + } + + if(m_endTimeHasBeenSet) + { + payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision()); + } + + if(m_portalArnHasBeenSet) + { + payload.WithString("portalArn", m_portalArn); + + } + + if(m_sessionIdHasBeenSet) + { + payload.WithString("sessionId", m_sessionId); + + } + + if(m_startTimeHasBeenSet) + { + payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", SessionStatusMapper::GetNameForSessionStatus(m_status)); + } + + if(m_usernameHasBeenSet) + { + payload.WithString("username", m_username); + + } + + return payload; +} + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionSortBy.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionSortBy.cpp new file mode 100644 index 00000000000..bced1470fed --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionSortBy.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 WorkSpacesWeb + { + namespace Model + { + namespace SessionSortByMapper + { + + static const int StartTimeAscending_HASH = HashingUtils::HashString("StartTimeAscending"); + static const int StartTimeDescending_HASH = HashingUtils::HashString("StartTimeDescending"); + + + SessionSortBy GetSessionSortByForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == StartTimeAscending_HASH) + { + return SessionSortBy::StartTimeAscending; + } + else if (hashCode == StartTimeDescending_HASH) + { + return SessionSortBy::StartTimeDescending; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SessionSortBy::NOT_SET; + } + + Aws::String GetNameForSessionSortBy(SessionSortBy enumValue) + { + switch(enumValue) + { + case SessionSortBy::NOT_SET: + return {}; + case SessionSortBy::StartTimeAscending: + return "StartTimeAscending"; + case SessionSortBy::StartTimeDescending: + return "StartTimeDescending"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SessionSortByMapper + } // namespace Model + } // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionStatus.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionStatus.cpp new file mode 100644 index 00000000000..cd7cf17c165 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionStatus.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 WorkSpacesWeb + { + namespace Model + { + namespace SessionStatusMapper + { + + static const int Active_HASH = HashingUtils::HashString("Active"); + static const int Terminated_HASH = HashingUtils::HashString("Terminated"); + + + SessionStatus GetSessionStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Active_HASH) + { + return SessionStatus::Active; + } + else if (hashCode == Terminated_HASH) + { + return SessionStatus::Terminated; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SessionStatus::NOT_SET; + } + + Aws::String GetNameForSessionStatus(SessionStatus enumValue) + { + switch(enumValue) + { + case SessionStatus::NOT_SET: + return {}; + case SessionStatus::Active: + return "Active"; + case SessionStatus::Terminated: + return "Terminated"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SessionStatusMapper + } // namespace Model + } // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionSummary.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionSummary.cpp new file mode 100644 index 00000000000..b1be0ea1b52 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/SessionSummary.cpp @@ -0,0 +1,127 @@ +/** + * 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 WorkSpacesWeb +{ +namespace Model +{ + +SessionSummary::SessionSummary() : + m_endTimeHasBeenSet(false), + m_portalArnHasBeenSet(false), + m_sessionIdHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_status(SessionStatus::NOT_SET), + m_statusHasBeenSet(false), + m_usernameHasBeenSet(false) +{ +} + +SessionSummary::SessionSummary(JsonView jsonValue) + : SessionSummary() +{ + *this = jsonValue; +} + +SessionSummary& SessionSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetDouble("endTime"); + + m_endTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("portalArn")) + { + m_portalArn = jsonValue.GetString("portalArn"); + + m_portalArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("sessionId")) + { + m_sessionId = jsonValue.GetString("sessionId"); + + m_sessionIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetDouble("startTime"); + + m_startTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = SessionStatusMapper::GetSessionStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("username")) + { + m_username = jsonValue.GetString("username"); + + m_usernameHasBeenSet = true; + } + + return *this; +} + +JsonValue SessionSummary::Jsonize() const +{ + JsonValue payload; + + if(m_endTimeHasBeenSet) + { + payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision()); + } + + if(m_portalArnHasBeenSet) + { + payload.WithString("portalArn", m_portalArn); + + } + + if(m_sessionIdHasBeenSet) + { + payload.WithString("sessionId", m_sessionId); + + } + + if(m_startTimeHasBeenSet) + { + payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", SessionStatusMapper::GetNameForSessionStatus(m_status)); + } + + if(m_usernameHasBeenSet) + { + payload.WithString("username", m_username); + + } + + return payload; +} + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index f5406ae7595..ec52d1e43c3 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.408" +#define AWS_SDK_VERSION_STRING "1.11.409" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 408 +#define AWS_SDK_VERSION_PATCH 409 diff --git a/tools/code-generation/api-descriptions/codeconnections-2023-12-01.normal.json b/tools/code-generation/api-descriptions/codeconnections-2023-12-01.normal.json index c84f13160e5..af64b19a679 100644 --- a/tools/code-generation/api-descriptions/codeconnections-2023-12-01.normal.json +++ b/tools/code-generation/api-descriptions/codeconnections-2023-12-01.normal.json @@ -5,12 +5,14 @@ "endpointPrefix":"codeconnections", "jsonVersion":"1.0", "protocol":"json", + "protocols":["json"], "serviceFullName":"AWS CodeConnections", "serviceId":"CodeConnections", "signatureVersion":"v4", "signingName":"codeconnections", "targetPrefix":"com.amazonaws.codeconnections.CodeConnections_20231201", - "uid":"codeconnections-2023-12-01" + "uid":"codeconnections-2023-12-01", + "auth":["aws.auth#sigv4"] }, "operations":{ "CreateConnection":{ @@ -518,7 +520,7 @@ }, "ConnectionArn":{ "shape":"ConnectionArn", - "documentation":"

The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between Amazon Web Services.

The ARN is never reused if the connection is deleted.

" + "documentation":"

The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between Amazon Web Servicesservices.

The ARN is never reused if the connection is deleted.

" }, "ProviderType":{ "shape":"ProviderType", @@ -724,6 +726,10 @@ "TriggerResourceUpdateOn":{ "shape":"TriggerResourceUpdateOn", "documentation":"

When to trigger Git sync to begin the stack update.

" + }, + "PullRequestComment":{ + "shape":"PullRequestComment", + "documentation":"

A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.

" } } }, @@ -1321,6 +1327,13 @@ "DISABLED" ] }, + "PullRequestComment":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, "RepositoryLinkArn":{ "type":"string", "pattern":"^arn:aws(?:-[a-z]+)*:(codestar-connections|codeconnections):[a-z\\-0-9]+:\\d{12}:repository-link\\/[a-zA-Z0-9\\-:/]+" @@ -1823,6 +1836,10 @@ "TriggerResourceUpdateOn":{ "shape":"TriggerResourceUpdateOn", "documentation":"

When to trigger Git sync to begin the stack update.

" + }, + "PullRequestComment":{ + "shape":"PullRequestComment", + "documentation":"

A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.

" } }, "documentation":"

Information, such as repository, branch, provider, and resource names for a specific sync configuration.

" @@ -2114,6 +2131,10 @@ "TriggerResourceUpdateOn":{ "shape":"TriggerResourceUpdateOn", "documentation":"

When to trigger Git sync to begin the stack update.

" + }, + "PullRequestComment":{ + "shape":"PullRequestComment", + "documentation":"

TA toggle that specifies whether to enable or disable pull request comments for the sync configuration to be updated.

" } } }, diff --git a/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json b/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json index e66a37a051a..4031dda5621 100644 --- a/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json +++ b/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json @@ -3309,6 +3309,27 @@ ], "documentation":"

Adds tags to a resource. A tag is a label you can assign to an Amazon Web Services resource. In Glue, you can tag only certain resources. For information about what resources you can tag, see Amazon Web Services Tags in Glue.

" }, + "TestConnection":{ + "name":"TestConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TestConnectionRequest"}, + "output":{"shape":"TestConnectionResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"ResourceNumberLimitExceededException"}, + {"shape":"GlueEncryptionException"}, + {"shape":"FederationSourceException"}, + {"shape":"AccessDeniedException"}, + {"shape":"EntityNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServiceException"} + ], + "documentation":"

Tests a connection to a service to validate the service credentials that you provide.

You can either provide an existing connection name or a TestConnectionInput for testing a non-existing connection input. Providing both at the same time will cause an error.

If the action is successful, the service sends back an HTTP 200 response.

" + }, "UntagResource":{ "name":"UntagResource", "http":{ @@ -22107,6 +22128,46 @@ "FIND_MATCHES" ] }, + "TestConnectionInput":{ + "type":"structure", + "required":[ + "ConnectionType", + "ConnectionProperties" + ], + "members":{ + "ConnectionType":{ + "shape":"ConnectionType", + "documentation":"

The type of connection to test. This operation is only available for the JDBC or SALESFORCE connection types.

" + }, + "ConnectionProperties":{ + "shape":"ConnectionProperties", + "documentation":"

The key-value pairs that define parameters for the connection.

JDBC connections use the following connection properties:

  • Required: All of (HOST, PORT, JDBC_ENGINE) or JDBC_CONNECTION_URL.

  • Required: All of (USERNAME, PASSWORD) or SECRET_ID.

  • Optional: JDBC_ENFORCE_SSL, CUSTOM_JDBC_CERT, CUSTOM_JDBC_CERT_STRING, SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to configure SSL with JDBC.

SALESFORCE connections require the AuthenticationConfiguration member to be configured.

" + }, + "AuthenticationConfiguration":{ + "shape":"AuthenticationConfigurationInput", + "documentation":"

A structure containing the authentication configuration in the TestConnection request. Required for a connection to Salesforce using OAuth authentication.

" + } + }, + "documentation":"

A structure that is used to specify testing a connection to a service.

" + }, + "TestConnectionRequest":{ + "type":"structure", + "members":{ + "ConnectionName":{ + "shape":"NameString", + "documentation":"

Optional. The name of the connection to test. If only name is provided, the operation will get the connection and use that for testing.

" + }, + "TestConnectionInput":{ + "shape":"TestConnectionInput", + "documentation":"

A structure that is used to specify testing a connection to a service.

" + } + } + }, + "TestConnectionResponse":{ + "type":"structure", + "members":{ + } + }, "ThrottlingException":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json b/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json index 78280f14ad5..bdb644cdd2b 100644 --- a/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json +++ b/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json @@ -48,9 +48,10 @@ {"shape":"InvalidParameterValueException"}, {"shape":"PolicyLengthExceededException"}, {"shape":"TooManyRequestsException"}, - {"shape":"PreconditionFailedException"} + {"shape":"PreconditionFailedException"}, + {"shape":"PublicPolicyException"} ], - "documentation":"

Grants an Amazon Web Servicesservice, Amazon Web Services account, or Amazon Web Services organization permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST.

To grant permission to another account, specify the account ID as the Principal. To grant permission to an organization defined in Organizations, specify the organization ID as the PrincipalOrgID. For Amazon Web Servicesservices, the principal is a domain-style identifier that the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Servicesservices, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.

This operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.

" + "documentation":"

Grants a principal permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST.

To grant permission to another account, specify the account ID as the Principal. To grant permission to an organization defined in Organizations, specify the organization ID as the PrincipalOrgID. For Amazon Web Servicesservices, the principal is a domain-style identifier that the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Servicesservices, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.

This operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.

" }, "CreateAlias":{ "name":"CreateAlias", @@ -327,7 +328,7 @@ {"shape":"TooManyRequestsException"}, {"shape":"PreconditionFailedException"} ], - "documentation":"

Deletes a resource-based policy from a function.

" + "documentation":"

The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

Deletes a resource-based policy from a function.

" }, "GetAccountSettings":{ "name":"GetAccountSettings", @@ -614,7 +615,7 @@ {"shape":"TooManyRequestsException"}, {"shape":"InvalidParameterValueException"} ], - "documentation":"

Retrieve the public-access settings for a function.

" + "documentation":"

The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

Retrieve the public-access settings for a function.

" }, "GetResourcePolicy":{ "name":"GetResourcePolicy", @@ -631,7 +632,7 @@ {"shape":"TooManyRequestsException"}, {"shape":"InvalidParameterValueException"} ], - "documentation":"

Retrieves the resource-based policy attached to a function.

" + "documentation":"

The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

Retrieves the resource-based policy attached to a function.

" }, "GetRuntimeManagementConfig":{ "name":"GetRuntimeManagementConfig", @@ -932,7 +933,7 @@ {"shape":"InvalidParameterValueException"}, {"shape":"TooManyRequestsException"} ], - "documentation":"

Returns a function's tags. You can also view tags with GetFunction.

" + "documentation":"

Returns a function, event source mapping, or code signing configuration's tags. You can also view funciton tags with GetFunction.

" }, "ListVersionsByFunction":{ "name":"ListVersionsByFunction", @@ -1096,7 +1097,7 @@ {"shape":"InvalidParameterValueException"}, {"shape":"TooManyRequestsException"} ], - "documentation":"

Configure your function's public-access settings.

To control public access to a Lambda function, you can choose whether to allow the creation of resource-based policies that allow public access to that function. You can also block public access to a function, even if it has an existing resource-based policy that allows it.

" + "documentation":"

The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

Configure your function's public-access settings.

To control public access to a Lambda function, you can choose whether to allow the creation of resource-based policies that allow public access to that function. You can also block public access to a function, even if it has an existing resource-based policy that allows it.

" }, "PutResourcePolicy":{ "name":"PutResourcePolicy", @@ -1117,7 +1118,7 @@ {"shape":"PreconditionFailedException"}, {"shape":"PublicPolicyException"} ], - "documentation":"

Adds a resource-based policy to a function. You can use resource-based policies to grant access to other Amazon Web Services accounts, organizations, or services. Resource-based policies apply to a single function, version, or alias.

Adding a resource-based policy using this API action replaces any existing policy you've previously created. This means that if you've previously added resource-based permissions to a function using the AddPermission action, those permissions will be overwritten by your new policy.

" + "documentation":"

The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

Adds a resource-based policy to a function. You can use resource-based policies to grant access to other Amazon Web Services accounts, organizations, or services. Resource-based policies apply to a single function, version, or alias.

Adding a resource-based policy using this API action replaces any existing policy you've previously created. This means that if you've previously added resource-based permissions to a function using the AddPermission action, those permissions will be overwritten by your new policy.

" }, "PutRuntimeManagementConfig":{ "name":"PutRuntimeManagementConfig", @@ -1167,7 +1168,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"InvalidParameterValueException"}, {"shape":"TooManyRequestsException"}, - {"shape":"PreconditionFailedException"} + {"shape":"PreconditionFailedException"}, + {"shape":"PublicPolicyException"} ], "documentation":"

Revokes function-use permission from an Amazon Web Servicesservice or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.

" }, @@ -1186,7 +1188,7 @@ {"shape":"TooManyRequestsException"}, {"shape":"ResourceConflictException"} ], - "documentation":"

Adds tags to a function.

" + "documentation":"

Adds tags to a function, event source mapping, or code signing configuration.

" }, "UntagResource":{ "name":"UntagResource", @@ -1203,7 +1205,7 @@ {"shape":"TooManyRequestsException"}, {"shape":"ResourceConflictException"} ], - "documentation":"

Removes tags from a function.

" + "documentation":"

Removes tags from a function, event source mapping, or code signing configuration.

" }, "UpdateAlias":{ "name":"UpdateAlias", @@ -1470,7 +1472,7 @@ }, "Principal":{ "shape":"Principal", - "documentation":"

The Amazon Web Servicesservice or Amazon Web Services account that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.

" + "documentation":"

The Amazon Web Servicesservice, Amazon Web Services account, IAM user, or IAM role that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.

" }, "SourceArn":{ "shape":"Arn", @@ -1851,6 +1853,10 @@ "CodeSigningPolicies":{ "shape":"CodeSigningPolicies", "documentation":"

The code signing policies define the actions to take if the validation checks fail.

" + }, + "Tags":{ + "shape":"Tags", + "documentation":"

A list of tags to add to the code signing configuration.

" } } }, @@ -1920,6 +1926,10 @@ "shape":"MaximumRetryAttemptsEventSourceMapping", "documentation":"

(Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

" }, + "Tags":{ + "shape":"Tags", + "documentation":"

A list of tags to apply to the event source mapping.

" + }, "TumblingWindowInSeconds":{ "shape":"TumblingWindowInSeconds", "documentation":"

(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.

" @@ -2562,6 +2572,12 @@ "max":10240, "min":512 }, + "EventSourceMappingArn":{ + "type":"string", + "max":120, + "min":85, + "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:event-source-mapping:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" + }, "EventSourceMappingConfiguration":{ "type":"structure", "members":{ @@ -2680,6 +2696,10 @@ "FilterCriteriaError":{ "shape":"FilterCriteriaError", "documentation":"

An object that contains details about an error related to filter criteria encryption.

" + }, + "EventSourceMappingArn":{ + "shape":"EventSourceMappingArn", + "documentation":"

The Amazon Resource Name (ARN) of the event source mapping.

" } }, "documentation":"

A mapping between an Amazon Web Services resource and a Lambda function. For details, see CreateEventSourceMapping.

" @@ -4689,8 +4709,8 @@ "required":["Resource"], "members":{ "Resource":{ - "shape":"FunctionArn", - "documentation":"

The function's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to aliases or versions.

", + "shape":"TaggableResource", + "documentation":"

The resource's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to function aliases or versions.

", "location":"uri", "locationName":"ARN" } @@ -5993,18 +6013,24 @@ ], "members":{ "Resource":{ - "shape":"FunctionArn", - "documentation":"

The function's Amazon Resource Name (ARN).

", + "shape":"TaggableResource", + "documentation":"

The resource's Amazon Resource Name (ARN).

", "location":"uri", "locationName":"ARN" }, "Tags":{ "shape":"Tags", - "documentation":"

A list of tags to apply to the function.

" + "documentation":"

A list of tags to apply to the resource.

" } } }, "TagValue":{"type":"string"}, + "TaggableResource":{ + "type":"string", + "max":256, + "min":1, + "pattern":"arn:(aws[a-zA-Z-]*):lambda:[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:(function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?|code-signing-config:csc-[a-z0-9]{17}|event-source-mapping:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})" + }, "Tags":{ "type":"map", "key":{"shape":"TagKey"}, @@ -6121,14 +6147,14 @@ ], "members":{ "Resource":{ - "shape":"FunctionArn", - "documentation":"

The function's Amazon Resource Name (ARN).

", + "shape":"TaggableResource", + "documentation":"

The resource's Amazon Resource Name (ARN).

", "location":"uri", "locationName":"ARN" }, "TagKeys":{ "shape":"TagKeyList", - "documentation":"

A list of tag keys to remove from the function.

", + "documentation":"

A list of tag keys to remove from the resource.

", "location":"querystring", "locationName":"tagKeys" } diff --git a/tools/code-generation/api-descriptions/mediaconvert-2017-08-29.normal.json b/tools/code-generation/api-descriptions/mediaconvert-2017-08-29.normal.json index 62560d41aaa..bf4edcb915b 100644 --- a/tools/code-generation/api-descriptions/mediaconvert-2017-08-29.normal.json +++ b/tools/code-generation/api-descriptions/mediaconvert-2017-08-29.normal.json @@ -5476,6 +5476,22 @@ "USE_MDPM" ] }, + "EncryptionContractConfiguration": { + "type": "structure", + "members": { + "SpekeAudioPreset": { + "shape": "PresetSpeke20Audio", + "locationName": "spekeAudioPreset", + "documentation": "Specify which SPEKE version 2.0 audio preset MediaConvert uses to request content keys from your SPEKE server. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/drm-content-speke-v2-presets.html To encrypt to your audio outputs, choose from the following: Audio preset 1, Audio preset 2, or Audio preset 3. To encrypt your audio outputs, using the same content key for both your audio and video outputs: Choose Shared. When you do, you must also set SPEKE v2.0 video preset to Shared. To not encrypt your audio outputs: Choose Unencrypted. When you do, to encrypt your video outputs, you must also specify a SPEKE v2.0 video preset (other than Shared or Unencrypted)." + }, + "SpekeVideoPreset": { + "shape": "PresetSpeke20Video", + "locationName": "spekeVideoPreset", + "documentation": "Specify which SPEKE version 2.0 video preset MediaConvert uses to request content keys from your SPEKE server. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/drm-content-speke-v2-presets.html To encrypt to your video outputs, choose from the following: Video preset 1, Video preset 2, Video preset 3, Video preset 4, Video preset 5, Video preset 6, Video preset 7, or Video preset 8. To encrypt your video outputs, using the same content key for both your video and audio outputs: Choose Shared. When you do, you must also set SPEKE v2.0 audio preset to Shared. To not encrypt your video outputs: Choose Unencrypted. When you do, to encrypt your audio outputs, you must also specify a SPEKE v2.0 audio preset (other than Shared or Unencrypted)." + } + }, + "documentation": "Specify the SPEKE version, either v1.0 or v2.0, that MediaConvert uses when encrypting your output. For more information, see: https://docs.aws.amazon.com/speke/latest/documentation/speke-api-specification.html To use SPEKE v1.0: Leave blank. To use SPEKE v2.0: Specify a SPEKE v2.0 video preset and a SPEKE v2.0 audio preset." + }, "Endpoint": { "type": "structure", "members": { @@ -11042,6 +11058,33 @@ }, "documentation": "Settings for preset" }, + "PresetSpeke20Audio": { + "type": "string", + "documentation": "Specify which SPEKE version 2.0 audio preset MediaConvert uses to request content keys from your SPEKE server. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/drm-content-speke-v2-presets.html To encrypt to your audio outputs, choose from the following: Audio preset 1, Audio preset 2, or Audio preset 3. To encrypt your audio outputs, using the same content key for both your audio and video outputs: Choose Shared. When you do, you must also set SPEKE v2.0 video preset to Shared. To not encrypt your audio outputs: Choose Unencrypted. When you do, to encrypt your video outputs, you must also specify a SPEKE v2.0 video preset (other than Shared or Unencrypted).", + "enum": [ + "PRESET_AUDIO_1", + "PRESET_AUDIO_2", + "PRESET_AUDIO_3", + "SHARED", + "UNENCRYPTED" + ] + }, + "PresetSpeke20Video": { + "type": "string", + "documentation": "Specify which SPEKE version 2.0 video preset MediaConvert uses to request content keys from your SPEKE server. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/drm-content-speke-v2-presets.html To encrypt to your video outputs, choose from the following: Video preset 1, Video preset 2, Video preset 3, Video preset 4, Video preset 5, Video preset 6, Video preset 7, or Video preset 8. To encrypt your video outputs, using the same content key for both your video and audio outputs: Choose Shared. When you do, you must also set SPEKE v2.0 audio preset to Shared. To not encrypt your video outputs: Choose Unencrypted. When you do, to encrypt your audio outputs, you must also specify a SPEKE v2.0 audio preset (other than Shared or Unencrypted).", + "enum": [ + "PRESET_VIDEO_1", + "PRESET_VIDEO_2", + "PRESET_VIDEO_3", + "PRESET_VIDEO_4", + "PRESET_VIDEO_5", + "PRESET_VIDEO_6", + "PRESET_VIDEO_7", + "PRESET_VIDEO_8", + "SHARED", + "UNENCRYPTED" + ] + }, "PricingPlan": { "type": "string", "documentation": "Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment.", @@ -11701,6 +11744,11 @@ "locationName": "certificateArn", "documentation": "If you want your key provider to encrypt the content keys that it provides to MediaConvert, set up a certificate with a master key using AWS Certificate Manager. Specify the certificate's Amazon Resource Name (ARN) here." }, + "EncryptionContractConfiguration": { + "shape": "EncryptionContractConfiguration", + "locationName": "encryptionContractConfiguration", + "documentation": "Specify the SPEKE version, either v1.0 or v2.0, that MediaConvert uses when encrypting your output. For more information, see: https://docs.aws.amazon.com/speke/latest/documentation/speke-api-specification.html To use SPEKE v1.0: Leave blank. To use SPEKE v2.0: Specify a SPEKE v2.0 video preset and a SPEKE v2.0 audio preset." + }, "ResourceId": { "shape": "__string", "locationName": "resourceId", @@ -11732,6 +11780,11 @@ "locationName": "dashSignaledSystemIds", "documentation": "Specify the DRM system IDs that you want signaled in the DASH manifest that MediaConvert creates as part of this CMAF package. The DASH manifest can currently signal up to three system IDs. For more information, see https://dashif.org/identifiers/content_protection/." }, + "EncryptionContractConfiguration": { + "shape": "EncryptionContractConfiguration", + "locationName": "encryptionContractConfiguration", + "documentation": "Specify the SPEKE version, either v1.0 or v2.0, that MediaConvert uses when encrypting your output. For more information, see: https://docs.aws.amazon.com/speke/latest/documentation/speke-api-specification.html To use SPEKE v1.0: Leave blank. To use SPEKE v2.0: Specify a SPEKE v2.0 video preset and a SPEKE v2.0 audio preset." + }, "HlsSignaledSystemIds": { "shape": "__listOf__stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12", "locationName": "hlsSignaledSystemIds", diff --git a/tools/code-generation/api-descriptions/medialive-2017-10-14.normal.json b/tools/code-generation/api-descriptions/medialive-2017-10-14.normal.json index d95f989ded5..d0bdf736950 100644 --- a/tools/code-generation/api-descriptions/medialive-2017-10-14.normal.json +++ b/tools/code-generation/api-descriptions/medialive-2017-10-14.normal.json @@ -10480,6 +10480,10 @@ "TemporalFilterSettings": { "shape": "TemporalFilterSettings", "locationName": "temporalFilterSettings" + }, + "BandwidthReductionFilterSettings": { + "shape": "BandwidthReductionFilterSettings", + "locationName": "bandwidthReductionFilterSettings" } }, "documentation": "H264 Filter Settings" @@ -10932,6 +10936,10 @@ "TemporalFilterSettings": { "shape": "TemporalFilterSettings", "locationName": "temporalFilterSettings" + }, + "BandwidthReductionFilterSettings": { + "shape": "BandwidthReductionFilterSettings", + "locationName": "bandwidthReductionFilterSettings" } }, "documentation": "H265 Filter Settings" @@ -15108,6 +15116,10 @@ "shape": "OutputLocationRef", "locationName": "destination", "documentation": "Destination is a Multiplex." + }, + "ContainerSettings": { + "shape": "MultiplexContainerSettings", + "locationName": "containerSettings" } }, "documentation": "Multiplex Output Settings", @@ -26655,7 +26667,7 @@ }, "InputNetworkLocation": { "type": "string", - "documentation": "With the introduction of MediaLive OnPrem, a MediaLive input can now exist in two different places: AWS or\ninside an on-premise datacenter. By default all inputs will continue to be AWS inputs.", + "documentation": "With the introduction of MediaLive Anywhere, a MediaLive input can now exist in two different places: AWS or\ninside an on-premises datacenter. By default all inputs will continue to be AWS inputs.", "enum": [ "AWS", "ON_PREMISES" @@ -27943,6 +27955,129 @@ "shape": "SrtOutputDestinationSettings" }, "documentation": "Placeholder documentation for __listOfSrtOutputDestinationSettings" + }, + "BandwidthReductionFilterSettings": { + "type": "structure", + "members": { + "PostFilterSharpening": { + "shape": "BandwidthReductionPostFilterSharpening", + "locationName": "postFilterSharpening", + "documentation": "Configures the sharpening control, which is available when the bandwidth reduction filter is enabled. This\ncontrol sharpens edges and contours, which produces a specific artistic effect that you might want.\n\nWe recommend that you test each of the values (including DISABLED) to observe the sharpening effect on the\ncontent." + }, + "Strength": { + "shape": "BandwidthReductionFilterStrength", + "locationName": "strength", + "documentation": "Enables the bandwidth reduction filter. The filter strengths range from 1 to 4. We recommend that you always\nenable this filter and use AUTO, to let MediaLive apply the optimum filtering for the context." + } + }, + "documentation": "Bandwidth Reduction Filter Settings" + }, + "BandwidthReductionFilterStrength": { + "type": "string", + "documentation": "Bandwidth Reduction Filter Strength", + "enum": [ + "AUTO", + "STRENGTH_1", + "STRENGTH_2", + "STRENGTH_3", + "STRENGTH_4" + ] + }, + "BandwidthReductionPostFilterSharpening": { + "type": "string", + "documentation": "Bandwidth Reduction Post Filter Sharpening", + "enum": [ + "DISABLED", + "SHARPENING_1", + "SHARPENING_2", + "SHARPENING_3" + ] + }, + "MultiplexContainerSettings": { + "type": "structure", + "members": { + "MultiplexM2tsSettings": { + "shape": "MultiplexM2tsSettings", + "locationName": "multiplexM2tsSettings" + } + }, + "documentation": "Multiplex Container Settings" + }, + "MultiplexM2tsSettings": { + "type": "structure", + "members": { + "AbsentInputAudioBehavior": { + "shape": "M2tsAbsentInputAudioBehavior", + "locationName": "absentInputAudioBehavior", + "documentation": "When set to drop, output audio streams will be removed from the program if the selected input audio stream is removed from the input. This allows the output audio configuration to dynamically change based on input configuration. If this is set to encodeSilence, all output audio streams will output encoded silence when not connected to an active input stream." + }, + "Arib": { + "shape": "M2tsArib", + "locationName": "arib", + "documentation": "When set to enabled, uses ARIB-compliant field muxing and removes video descriptor." + }, + "AudioBufferModel": { + "shape": "M2tsAudioBufferModel", + "locationName": "audioBufferModel", + "documentation": "When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to atsc, the ATSC model is used." + }, + "AudioFramesPerPes": { + "shape": "__integerMin0", + "locationName": "audioFramesPerPes", + "documentation": "The number of audio frames to insert for each PES packet." + }, + "AudioStreamType": { + "shape": "M2tsAudioStreamType", + "locationName": "audioStreamType", + "documentation": "When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for EAC3. When set to dvb, uses stream type = 0x06." + }, + "CcDescriptor": { + "shape": "M2tsCcDescriptor", + "locationName": "ccDescriptor", + "documentation": "When set to enabled, generates captionServiceDescriptor in PMT." + }, + "Ebif": { + "shape": "M2tsEbifControl", + "locationName": "ebif", + "documentation": "If set to passthrough, passes any EBIF data from the input source to this output." + }, + "EsRateInPes": { + "shape": "M2tsEsRateInPes", + "locationName": "esRateInPes", + "documentation": "Include or exclude the ES Rate field in the PES header." + }, + "Klv": { + "shape": "M2tsKlv", + "locationName": "klv", + "documentation": "If set to passthrough, passes any KLV data from the input source to this output." + }, + "NielsenId3Behavior": { + "shape": "M2tsNielsenId3Behavior", + "locationName": "nielsenId3Behavior", + "documentation": "If set to passthrough, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output." + }, + "PcrControl": { + "shape": "M2tsPcrControl", + "locationName": "pcrControl", + "documentation": "When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream." + }, + "PcrPeriod": { + "shape": "__integerMin0Max500", + "locationName": "pcrPeriod", + "documentation": "Maximum time in milliseconds between Program Clock Reference (PCRs) inserted into the transport stream." + }, + "Scte35Control": { + "shape": "M2tsScte35Control", + "locationName": "scte35Control", + "documentation": "Optionally pass SCTE-35 signals from the input source to this output." + }, + "Scte35PrerollPullupMilliseconds": { + "shape": "__doubleMin0Max5000", + "locationName": "scte35PrerollPullupMilliseconds", + "documentation": "Defines the amount SCTE-35 preroll will be increased (in milliseconds) on the output. Preroll is the amount of time between the presence of a SCTE-35 indication in a transport stream and the PTS of the video frame it references. Zero means don't add pullup (it doesn't mean set the preroll to zero). Negative pullup is not supported, which means that you can't make the preroll shorter. Be aware that latency in the output will increase by the pullup amount." + } + }, + "documentation": "Multiplex M2ts Settings" } }, "documentation": "API for AWS Elemental MediaLive" diff --git a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json index 65faa8277bb..a4ccd6ae7db 100644 --- a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json +++ b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json @@ -2008,6 +2008,25 @@ ], "documentation":"

Lists all folders in an account.

" }, + "ListFoldersForResource":{ + "name":"ListFoldersForResource", + "http":{ + "method":"GET", + "requestUri":"/accounts/{AwsAccountId}/resource/{ResourceArn}/folders" + }, + "input":{"shape":"ListFoldersForResourceRequest"}, + "output":{"shape":"ListFoldersForResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"UnsupportedUserEditionException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

List all folders that a resource is a member of.

" + }, "ListGroupMemberships":{ "name":"ListGroupMemberships", "http":{ @@ -7305,6 +7324,13 @@ }, "documentation":"

A combo chart.

The ComboChartVisual includes stacked bar combo charts and clustered bar combo charts

For more information, see Using combo charts in the Amazon QuickSight User Guide.

" }, + "CommitMode":{ + "type":"string", + "enum":[ + "AUTO", + "MANUAL" + ] + }, "ComparativeOrder":{ "type":"structure", "members":{ @@ -11600,6 +11626,10 @@ "DisplayOptions":{ "shape":"DateTimePickerControlDisplayOptions", "documentation":"

The display options of a control.

" + }, + "CommitMode":{ + "shape":"CommitMode", + "documentation":"

The visibility configuration of the Apply button on a DateTimePickerControl.

" } }, "documentation":"

The default options that correspond to the filter control type of a DateTimePicker.

" @@ -11670,6 +11700,10 @@ "SelectableValues":{ "shape":"FilterSelectableValues", "documentation":"

A list of selectable values that are used in a control.

" + }, + "CommitMode":{ + "shape":"CommitMode", + "documentation":"

The visibility configuration of the Apply button on a FilterDropDownControl.

" } }, "documentation":"

The default options that correspond to the Dropdown filter control type.

" @@ -11776,6 +11810,10 @@ "DisplayOptions":{ "shape":"RelativeDateTimeControlDisplayOptions", "documentation":"

The display options of a control.

" + }, + "CommitMode":{ + "shape":"CommitMode", + "documentation":"

The visibility configuration of the Apply button on a RelativeDateTimeControl.

" } }, "documentation":"

The default options that correspond to the RelativeDateTime filter control type.

" @@ -16152,6 +16190,10 @@ "Type":{ "shape":"SheetControlDateTimePickerType", "documentation":"

The type of the FilterDropDownControl. Choose one of the following options:

  • MULTI_SELECT: The user can select multiple entries from a dropdown menu.

  • SINGLE_SELECT: The user can select a single entry from a dropdown menu.

" + }, + "CommitMode":{ + "shape":"CommitMode", + "documentation":"

The visibility configurationof the Apply button on a DateTimePickerControl.

" } }, "documentation":"

A control from a date filter that is used to specify date and time.

" @@ -16191,6 +16233,10 @@ "CascadingControlConfiguration":{ "shape":"CascadingControlConfiguration", "documentation":"

The values that are displayed in a control can be configured to only show values that are valid based on what's selected in other controls.

" + }, + "CommitMode":{ + "shape":"CommitMode", + "documentation":"

The visibility configuration of the Apply button on a FilterDropDownControl.

" } }, "documentation":"

A control to display a dropdown list with buttons that are used to select a single value.

" @@ -16376,6 +16422,10 @@ "DisplayOptions":{ "shape":"RelativeDateTimeControlDisplayOptions", "documentation":"

The display options of a control.

" + }, + "CommitMode":{ + "shape":"CommitMode", + "documentation":"

The visibility configuration of the Apply button on a FilterRelativeDateTimeControl.

" } }, "documentation":"

A control from a date filter that is used to specify the relative date.

" @@ -16673,6 +16723,11 @@ "RESTRICTED" ] }, + "FoldersForResourceArnList":{ + "type":"list", + "member":{"shape":"Arn"}, + "max":20 + }, "Font":{ "type":"structure", "members":{ @@ -20333,6 +20388,62 @@ } } }, + "ListFoldersForResourceRequest":{ + "type":"structure", + "required":[ + "AwsAccountId", + "ResourceArn" + ], + "members":{ + "AwsAccountId":{ + "shape":"AwsAccountId", + "documentation":"

The ID for the Amazon Web Services account that contains the resource.

", + "location":"uri", + "locationName":"AwsAccountId" + }, + "ResourceArn":{ + "shape":"Arn", + "documentation":"

The Amazon Resource Name (ARN) the resource whose folders you need to list.

", + "location":"uri", + "locationName":"ResourceArn" + }, + "NextToken":{ + "shape":"String", + "documentation":"

The token for the next set of results, or null if there are no more results.

", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

The maximum number of results to be returned per request.

", + "box":true, + "location":"querystring", + "locationName":"max-results" + } + } + }, + "ListFoldersForResourceResponse":{ + "type":"structure", + "members":{ + "Status":{ + "shape":"StatusCode", + "documentation":"

The HTTP status of the request.

", + "location":"statusCode" + }, + "Folders":{ + "shape":"FoldersForResourceArnList", + "documentation":"

A list that contains the Amazon Resource Names (ARNs) of all folders that the resource is a member of.

" + }, + "NextToken":{ + "shape":"String", + "documentation":"

The token for the next set of results, or null if there are no more results.

" + }, + "RequestId":{ + "shape":"String", + "documentation":"

The Amazon Web Services request ID for this operation.

" + } + } + }, "ListFoldersRequest":{ "type":"structure", "required":["AwsAccountId"], @@ -22941,6 +23052,10 @@ "CascadingControlConfiguration":{ "shape":"CascadingControlConfiguration", "documentation":"

The values that are displayed in a control can be configured to only show values that are valid based on what's selected in other controls.

" + }, + "CommitMode":{ + "shape":"CommitMode", + "documentation":"

The visibility configuration of the Apply button on a ParameterDropDownControl.

" } }, "documentation":"

A control to display a dropdown list with buttons that are used to select a single value.

" 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 e6271915fa2..4e3da8b6b56 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 @@ -4806,6 +4806,14 @@ "ml.g6.16xlarge", "ml.g6.24xlarge", "ml.g6.48xlarge", + "ml.g6e.xlarge", + "ml.g6e.2xlarge", + "ml.g6e.4xlarge", + "ml.g6e.8xlarge", + "ml.g6e.12xlarge", + "ml.g6e.16xlarge", + "ml.g6e.24xlarge", + "ml.g6e.48xlarge", "ml.geospatial.interactive", "ml.p4d.24xlarge", "ml.p4de.24xlarge", diff --git a/tools/code-generation/api-descriptions/workspaces-web-2020-07-08.normal.json b/tools/code-generation/api-descriptions/workspaces-web-2020-07-08.normal.json index 833cc123cd4..8fc91d9a909 100644 --- a/tools/code-generation/api-descriptions/workspaces-web-2020-07-08.normal.json +++ b/tools/code-generation/api-descriptions/workspaces-web-2020-07-08.normal.json @@ -5,11 +5,13 @@ "endpointPrefix":"workspaces-web", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"Amazon WorkSpaces Web", "serviceId":"WorkSpaces Web", "signatureVersion":"v4", "signingName":"workspaces-web", - "uid":"workspaces-web-2020-07-08" + "uid":"workspaces-web-2020-07-08", + "auth":["aws.auth#sigv4"] }, "operations":{ "AssociateBrowserSettings":{ @@ -559,6 +561,25 @@ "documentation":"

Disassociates user settings from a web portal.

", "idempotent":true }, + "ExpireSession":{ + "name":"ExpireSession", + "http":{ + "method":"DELETE", + "requestUri":"/portals/{portalId}/sessions/{sessionId}", + "responseCode":200 + }, + "input":{"shape":"ExpireSessionRequest"}, + "output":{"shape":"ExpireSessionResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ], + "documentation":"

Expires an active secure browser session.

", + "idempotent":true + }, "GetBrowserSettings":{ "name":"GetBrowserSettings", "http":{ @@ -667,6 +688,24 @@ ], "documentation":"

Gets the service provider metadata.

" }, + "GetSession":{ + "name":"GetSession", + "http":{ + "method":"GET", + "requestUri":"/portals/{portalId}/sessions/{sessionId}", + "responseCode":200 + }, + "input":{"shape":"GetSessionRequest"}, + "output":{"shape":"GetSessionResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ], + "documentation":"

Gets information for a secure browser session.

" + }, "GetTrustStore":{ "name":"GetTrustStore", "http":{ @@ -824,6 +863,24 @@ ], "documentation":"

Retrieves a list or web portals.

" }, + "ListSessions":{ + "name":"ListSessions", + "http":{ + "method":"GET", + "requestUri":"/portals/{portalId}/sessions", + "responseCode":200 + }, + "input":{"shape":"ListSessionsRequest"}, + "output":{"shape":"ListSessionsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ], + "documentation":"

Lists information for multiple secure browser sessions from a specific portal.

" + }, "ListTagsForResource":{ "name":"ListTagsForResource", "http":{ @@ -1754,7 +1811,7 @@ }, "authenticationType":{ "shape":"AuthenticationType", - "documentation":"

The type of authentication integration points used when signing into the web portal. Defaults to Standard.

Standard web portals are authenticated directly through your identity provider. You need to call CreateIdentityProvider to integrate your identity provider with your web portal. User and group access to your web portal is controlled through your identity provider.

IAM Identity Center web portals are authenticated through IAM Identity Center (successor to Single Sign-On). Identity sources (including external identity provider integration), plus user and group access to your web portal, can be configured in the IAM Identity Center.

" + "documentation":"

The type of authentication integration points used when signing into the web portal. Defaults to Standard.

Standard web portals are authenticated directly through your identity provider. You need to call CreateIdentityProvider to integrate your identity provider with your web portal. User and group access to your web portal is controlled through your identity provider.

IAM Identity Center web portals are authenticated through IAM Identity Center. Identity sources (including external identity provider integration), plus user and group access to your web portal, can be configured in the IAM Identity Center.

" }, "clientToken":{ "shape":"ClientToken", @@ -2204,6 +2261,32 @@ "value":{"shape":"StringType"} }, "ExceptionMessage":{"type":"string"}, + "ExpireSessionRequest":{ + "type":"structure", + "required":[ + "portalId", + "sessionId" + ], + "members":{ + "portalId":{ + "shape":"PortalId", + "documentation":"

The ID of the web portal for the session.

", + "location":"uri", + "locationName":"portalId" + }, + "sessionId":{ + "shape":"SessionId", + "documentation":"

The ID of the session to expire.

", + "location":"uri", + "locationName":"sessionId" + } + } + }, + "ExpireSessionResponse":{ + "type":"structure", + "members":{ + } + }, "FieldName":{"type":"string"}, "GetBrowserSettingsRequest":{ "type":"structure", @@ -2336,6 +2419,36 @@ } } }, + "GetSessionRequest":{ + "type":"structure", + "required":[ + "portalId", + "sessionId" + ], + "members":{ + "portalId":{ + "shape":"PortalId", + "documentation":"

The ID of the web portal for the session.

", + "location":"uri", + "locationName":"portalId" + }, + "sessionId":{ + "shape":"SessionId", + "documentation":"

The ID of the session.

", + "location":"uri", + "locationName":"sessionId" + } + } + }, + "GetSessionResponse":{ + "type":"structure", + "members":{ + "session":{ + "shape":"Session", + "documentation":"

The sessions in a list.

" + } + } + }, "GetTrustStoreCertificateRequest":{ "type":"structure", "required":[ @@ -2600,6 +2713,19 @@ }, "documentation":"

The summary of IP access settings.

" }, + "IpAddress":{ + "type":"string", + "max":15, + "min":1, + "pattern":"^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", + "sensitive":true + }, + "IpAddressList":{ + "type":"list", + "member":{"shape":"IpAddress"}, + "max":45, + "min":1 + }, "IpRange":{ "type":"string", "documentation":"

A single IP address or an IP address range in CIDR notation

", @@ -2792,6 +2918,68 @@ } } }, + "ListSessionsRequest":{ + "type":"structure", + "required":["portalId"], + "members":{ + "maxResults":{ + "shape":"MaxResults", + "documentation":"

The maximum number of results to be included in the next page.

", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

The pagination token used to retrieve the next page of results for this operation.

", + "location":"querystring", + "locationName":"nextToken" + }, + "portalId":{ + "shape":"PortalId", + "documentation":"

The ID of the web portal for the sessions.

", + "location":"uri", + "locationName":"portalId" + }, + "sessionId":{ + "shape":"SessionId", + "documentation":"

The ID of the session.

", + "location":"querystring", + "locationName":"sessionId" + }, + "sortBy":{ + "shape":"SessionSortBy", + "documentation":"

The method in which the returned sessions should be sorted.

", + "location":"querystring", + "locationName":"sortBy" + }, + "status":{ + "shape":"SessionStatus", + "documentation":"

The status of the session.

", + "location":"querystring", + "locationName":"status" + }, + "username":{ + "shape":"Username", + "documentation":"

The username of the session.

", + "location":"querystring", + "locationName":"username" + } + } + }, + "ListSessionsResponse":{ + "type":"structure", + "required":["sessions"], + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

The pagination token used to retrieve the next page of results for this operation.

" + }, + "sessions":{ + "shape":"SessionSummaryList", + "documentation":"

The sessions in a list.

" + } + } + }, "ListTagsForResourceRequest":{ "type":"structure", "required":["resourceArn"], @@ -3018,7 +3206,7 @@ }, "authenticationType":{ "shape":"AuthenticationType", - "documentation":"

The type of authentication integration points used when signing into the web portal. Defaults to Standard.

Standard web portals are authenticated directly through your identity provider. You need to call CreateIdentityProvider to integrate your identity provider with your web portal. User and group access to your web portal is controlled through your identity provider.

IAM Identity Center web portals are authenticated through IAM Identity Center (successor to Single Sign-On). Identity sources (including external identity provider integration), plus user and group access to your web portal, can be configured in the IAM Identity Center.

" + "documentation":"

The type of authentication integration points used when signing into the web portal. Defaults to Standard.

Standard web portals are authenticated directly through your identity provider. You need to call CreateIdentityProvider to integrate your identity provider with your web portal. User and group access to your web portal is controlled through your identity provider.

IAM Identity Center web portals are authenticated through IAM Identity Center. Identity sources (including external identity provider integration), plus user and group access to your web portal, can be configured in the IAM Identity Center.

" }, "browserSettingsArn":{ "shape":"ARN", @@ -3097,6 +3285,12 @@ "min":1, "pattern":"^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\\.)+[a-zA-Z0-9]+$" }, + "PortalId":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[a-zA-Z0-9\\-]+$" + }, "PortalList":{ "type":"list", "member":{"shape":"PortalSummary"} @@ -3115,7 +3309,7 @@ "members":{ "authenticationType":{ "shape":"AuthenticationType", - "documentation":"

The type of authentication integration points used when signing into the web portal. Defaults to Standard.

Standard web portals are authenticated directly through your identity provider. You need to call CreateIdentityProvider to integrate your identity provider with your web portal. User and group access to your web portal is controlled through your identity provider.

IAM Identity Center web portals are authenticated through IAM Identity Center (successor to Single Sign-On). Identity sources (including external identity provider integration), plus user and group access to your web portal, can be configured in the IAM Identity Center.

" + "documentation":"

The type of authentication integration points used when signing into the web portal. Defaults to Standard.

Standard web portals are authenticated directly through your identity provider. You need to call CreateIdentityProvider to integrate your identity provider with your web portal. User and group access to your web portal is controlled through your identity provider.

IAM Identity Center web portals are authenticated through IAM Identity Center. Identity sources (including external identity provider integration), plus user and group access to your web portal, can be configured in the IAM Identity Center.

" }, "browserSettingsArn":{ "shape":"ARN", @@ -3255,6 +3449,94 @@ }, "exception":true }, + "Session":{ + "type":"structure", + "members":{ + "clientIpAddresses":{ + "shape":"IpAddressList", + "documentation":"

The IP address of the client.

" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"

The end time of the session.

" + }, + "portalArn":{ + "shape":"ARN", + "documentation":"

The ARN of the web portal.

" + }, + "sessionId":{ + "shape":"StringType", + "documentation":"

The ID of the session.

" + }, + "startTime":{ + "shape":"Timestamp", + "documentation":"

The start time of the session.

" + }, + "status":{ + "shape":"SessionStatus", + "documentation":"

The status of the session.

" + }, + "username":{ + "shape":"Username", + "documentation":"

The username of the session.

" + } + }, + "documentation":"

Information about a secure browser session.

" + }, + "SessionId":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[a-zA-Z0-9\\-]+$" + }, + "SessionSortBy":{ + "type":"string", + "enum":[ + "StartTimeAscending", + "StartTimeDescending" + ] + }, + "SessionStatus":{ + "type":"string", + "enum":[ + "Active", + "Terminated" + ] + }, + "SessionSummary":{ + "type":"structure", + "members":{ + "endTime":{ + "shape":"Timestamp", + "documentation":"

The end time of the session.

" + }, + "portalArn":{ + "shape":"ARN", + "documentation":"

The ARN of the web portal.

" + }, + "sessionId":{ + "shape":"StringType", + "documentation":"

The ID of the session.

" + }, + "startTime":{ + "shape":"Timestamp", + "documentation":"

The start time of the session.

" + }, + "status":{ + "shape":"SessionStatus", + "documentation":"

The status of the session.

" + }, + "username":{ + "shape":"Username", + "documentation":"

The username of the session.

" + } + }, + "documentation":"

Summary information about a secure browser session.

" + }, + "SessionSummaryList":{ + "type":"list", + "member":{"shape":"SessionSummary"} + }, "StatusReason":{ "type":"string", "max":1024, @@ -3276,7 +3558,7 @@ "SubnetIdList":{ "type":"list", "member":{"shape":"SubnetId"}, - "max":3, + "max":5, "min":2 }, "SubresourceARN":{ @@ -3612,7 +3894,7 @@ "members":{ "authenticationType":{ "shape":"AuthenticationType", - "documentation":"

The type of authentication integration points used when signing into the web portal. Defaults to Standard.

Standard web portals are authenticated directly through your identity provider. You need to call CreateIdentityProvider to integrate your identity provider with your web portal. User and group access to your web portal is controlled through your identity provider.

IAM Identity Center web portals are authenticated through IAM Identity Center (successor to Single Sign-On). Identity sources (including external identity provider integration), plus user and group access to your web portal, can be configured in the IAM Identity Center.

" + "documentation":"

The type of authentication integration points used when signing into the web portal. Defaults to Standard.

Standard web portals are authenticated directly through your identity provider. You need to call CreateIdentityProvider to integrate your identity provider with your web portal. User and group access to your web portal is controlled through your identity provider.

IAM Identity Center web portals are authenticated through IAM Identity Center. Identity sources (including external identity provider integration), plus user and group access to your web portal, can be configured in the IAM Identity Center.

" }, "displayName":{ "shape":"DisplayName", @@ -3920,6 +4202,13 @@ }, "documentation":"

The summary of user settings.

" }, + "Username":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^[\\s\\S]*$", + "sensitive":true + }, "ValidationException":{ "type":"structure", "members":{