diff --git a/VERSION b/VERSION index 17e6550092a..298115c6ebf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.440 \ No newline at end of file +1.11.441 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ComputeConfiguration.h b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ComputeConfiguration.h new file mode 100644 index 00000000000..233f52cb983 --- /dev/null +++ b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ComputeConfiguration.h @@ -0,0 +1,100 @@ +/** + * 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 CodeBuild +{ +namespace Model +{ + + /** + *

Contains compute attributes. These attributes only need be specified when + * your project's or fleet's computeType is set to + * ATTRIBUTE_BASED_COMPUTE.

See Also:

AWS + * API Reference

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

The number of vCPUs of the instance type included in your fleet.

+ */ + inline long long GetVCpu() const{ return m_vCpu; } + inline bool VCpuHasBeenSet() const { return m_vCpuHasBeenSet; } + inline void SetVCpu(long long value) { m_vCpuHasBeenSet = true; m_vCpu = value; } + inline ComputeConfiguration& WithVCpu(long long value) { SetVCpu(value); return *this;} + ///@} + + ///@{ + /** + *

The amount of memory of the instance type included in your fleet.

+ */ + inline long long GetMemory() const{ return m_memory; } + inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; } + inline void SetMemory(long long value) { m_memoryHasBeenSet = true; m_memory = value; } + inline ComputeConfiguration& WithMemory(long long value) { SetMemory(value); return *this;} + ///@} + + ///@{ + /** + *

The amount of disk space of the instance type included in your fleet.

+ */ + inline long long GetDisk() const{ return m_disk; } + inline bool DiskHasBeenSet() const { return m_diskHasBeenSet; } + inline void SetDisk(long long value) { m_diskHasBeenSet = true; m_disk = value; } + inline ComputeConfiguration& WithDisk(long long value) { SetDisk(value); return *this;} + ///@} + + ///@{ + /** + *

The machine type of the instance type included in your fleet.

+ */ + inline const MachineType& GetMachineType() const{ return m_machineType; } + inline bool MachineTypeHasBeenSet() const { return m_machineTypeHasBeenSet; } + inline void SetMachineType(const MachineType& value) { m_machineTypeHasBeenSet = true; m_machineType = value; } + inline void SetMachineType(MachineType&& value) { m_machineTypeHasBeenSet = true; m_machineType = std::move(value); } + inline ComputeConfiguration& WithMachineType(const MachineType& value) { SetMachineType(value); return *this;} + inline ComputeConfiguration& WithMachineType(MachineType&& value) { SetMachineType(std::move(value)); return *this;} + ///@} + private: + + long long m_vCpu; + bool m_vCpuHasBeenSet = false; + + long long m_memory; + bool m_memoryHasBeenSet = false; + + long long m_disk; + bool m_diskHasBeenSet = false; + + MachineType m_machineType; + bool m_machineTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace CodeBuild +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ComputeType.h b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ComputeType.h index f8704530a0a..ee2e5f2d195 100644 --- a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ComputeType.h +++ b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ComputeType.h @@ -25,7 +25,8 @@ namespace Model BUILD_LAMBDA_2GB, BUILD_LAMBDA_4GB, BUILD_LAMBDA_8GB, - BUILD_LAMBDA_10GB + BUILD_LAMBDA_10GB, + ATTRIBUTE_BASED_COMPUTE }; namespace ComputeTypeMapper diff --git a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/CreateFleetRequest.h b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/CreateFleetRequest.h index 7e0af5ec349..72d21cec6f6 100644 --- a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/CreateFleetRequest.h +++ b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/CreateFleetRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -108,32 +109,53 @@ namespace Model ///@{ /** *

Information about the compute resources the compute fleet uses. Available - * values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 - * GB memory and 2 vCPUs for builds.

  • - * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for - * builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GB - * memory and 8 vCPUs for builds, depending on your environment type.

  • - *
  • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs - * for builds, depending on your environment type.

  • - * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 + * values include:

    • ATTRIBUTE_BASED_COMPUTE: Specify + * the amount of vCPUs, memory, disk space, and the type of machine.

      + * If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes + * by using computeConfiguration. CodeBuild will select the cheapest + * instance that satisfies your specified attributes. For more information, see Reserved + * capacity environment types in the CodeBuild User Guide.

      + *
    • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 + * vCPUs for builds.

    • BUILD_GENERAL1_MEDIUM: Use up + * to 8 GiB memory and 4 vCPUs for builds.

    • + * BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for + * builds, depending on your environment type.

    • + * BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for + * builds, depending on your environment type.

    • + * BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 * GB of SSD storage for builds. This compute type supports Docker images up to 100 - * GB uncompressed.

    If you use + * GB uncompressed.

  • BUILD_LAMBDA_1GB: Use up to 1 + * GiB memory for builds. Only available for environment type + * LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

    + *
  • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. + * Only available for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

  • + * BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available + * for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

  • + * BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available + * for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

  • + * BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only + * available for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

If you use * BUILD_GENERAL1_SMALL:

  • For environment type - * LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for + * LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for * builds.

  • For environment type - * LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 - * NVIDIA A10G Tensor Core GPU for builds.

  • For environment type - * ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on + * LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and + * 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment + * type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on * ARM-based processors for builds.

If you use * BUILD_GENERAL1_LARGE:

  • For environment type - * LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for + * LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for * builds.

  • For environment type - * LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and - * 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type - * ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on + * LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, + * and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type + * ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on * ARM-based processors for builds.

For more information, see Build - * environment compute types in the CodeBuild User Guide.

+ * href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types">On-demand + * environment types in the CodeBuild User Guide.

*/ inline const ComputeType& GetComputeType() const{ return m_computeType; } inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; } @@ -143,6 +165,19 @@ namespace Model inline CreateFleetRequest& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The compute configuration of the compute fleet. This is only required if + * computeType is set to ATTRIBUTE_BASED_COMPUTE.

+ */ + inline const ComputeConfiguration& GetComputeConfiguration() const{ return m_computeConfiguration; } + inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; } + inline void SetComputeConfiguration(const ComputeConfiguration& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = value; } + inline void SetComputeConfiguration(ComputeConfiguration&& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = std::move(value); } + inline CreateFleetRequest& WithComputeConfiguration(const ComputeConfiguration& value) { SetComputeConfiguration(value); return *this;} + inline CreateFleetRequest& WithComputeConfiguration(ComputeConfiguration&& value) { SetComputeConfiguration(std::move(value)); return *this;} + ///@} + ///@{ /** *

The scaling configuration of the compute fleet.

@@ -259,6 +294,9 @@ namespace Model ComputeType m_computeType; bool m_computeTypeHasBeenSet = false; + ComputeConfiguration m_computeConfiguration; + bool m_computeConfigurationHasBeenSet = false; + ScalingConfigurationInput m_scalingConfiguration; bool m_scalingConfigurationHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/Fleet.h b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/Fleet.h index 6a2b4fd81ce..6d4f230f47e 100644 --- a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/Fleet.h +++ b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/Fleet.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -178,32 +179,53 @@ namespace Model ///@{ /** *

Information about the compute resources the compute fleet uses. Available - * values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 - * GB memory and 2 vCPUs for builds.

  • - * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for - * builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GB - * memory and 8 vCPUs for builds, depending on your environment type.

  • - *
  • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs - * for builds, depending on your environment type.

  • - * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 + * values include:

    • ATTRIBUTE_BASED_COMPUTE: Specify + * the amount of vCPUs, memory, disk space, and the type of machine.

      + * If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes + * by using computeConfiguration. CodeBuild will select the cheapest + * instance that satisfies your specified attributes. For more information, see Reserved + * capacity environment types in the CodeBuild User Guide.

      + *
    • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 + * vCPUs for builds.

    • BUILD_GENERAL1_MEDIUM: Use up + * to 8 GiB memory and 4 vCPUs for builds.

    • + * BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for + * builds, depending on your environment type.

    • + * BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for + * builds, depending on your environment type.

    • + * BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 * GB of SSD storage for builds. This compute type supports Docker images up to 100 - * GB uncompressed.

    If you use + * GB uncompressed.

  • BUILD_LAMBDA_1GB: Use up to 1 + * GiB memory for builds. Only available for environment type + * LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

    + *
  • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. + * Only available for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

  • + * BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available + * for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

  • + * BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available + * for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

  • + * BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only + * available for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

If you use * BUILD_GENERAL1_SMALL:

  • For environment type - * LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for + * LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for * builds.

  • For environment type - * LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 - * NVIDIA A10G Tensor Core GPU for builds.

  • For environment type - * ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on + * LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and + * 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment + * type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on * ARM-based processors for builds.

If you use * BUILD_GENERAL1_LARGE:

  • For environment type - * LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for + * LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for * builds.

  • For environment type - * LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and - * 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type - * ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on + * LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, + * and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type + * ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on * ARM-based processors for builds.

For more information, see Build - * environment compute types in the CodeBuild User Guide.

+ * href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types">On-demand + * environment types in the CodeBuild User Guide.

*/ inline const ComputeType& GetComputeType() const{ return m_computeType; } inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; } @@ -213,6 +235,19 @@ namespace Model inline Fleet& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The compute configuration of the compute fleet. This is only required if + * computeType is set to ATTRIBUTE_BASED_COMPUTE.

+ */ + inline const ComputeConfiguration& GetComputeConfiguration() const{ return m_computeConfiguration; } + inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; } + inline void SetComputeConfiguration(const ComputeConfiguration& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = value; } + inline void SetComputeConfiguration(ComputeConfiguration&& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = std::move(value); } + inline Fleet& WithComputeConfiguration(const ComputeConfiguration& value) { SetComputeConfiguration(value); return *this;} + inline Fleet& WithComputeConfiguration(ComputeConfiguration&& value) { SetComputeConfiguration(std::move(value)); return *this;} + ///@} + ///@{ /** *

The scaling configuration of the compute fleet.

@@ -344,6 +379,9 @@ namespace Model ComputeType m_computeType; bool m_computeTypeHasBeenSet = false; + ComputeConfiguration m_computeConfiguration; + bool m_computeConfigurationHasBeenSet = false; + ScalingConfigurationOutput m_scalingConfiguration; bool m_scalingConfigurationHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/MachineType.h b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/MachineType.h new file mode 100644 index 00000000000..1b784dc5856 --- /dev/null +++ b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/MachineType.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 CodeBuild +{ +namespace Model +{ + enum class MachineType + { + NOT_SET, + GENERAL, + NVME + }; + +namespace MachineTypeMapper +{ +AWS_CODEBUILD_API MachineType GetMachineTypeForName(const Aws::String& name); + +AWS_CODEBUILD_API Aws::String GetNameForMachineType(MachineType value); +} // namespace MachineTypeMapper +} // namespace Model +} // namespace CodeBuild +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ProjectEnvironment.h b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ProjectEnvironment.h index 297dac2f149..090bf6a737c 100644 --- a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ProjectEnvironment.h +++ b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/ProjectEnvironment.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -110,48 +111,53 @@ namespace Model ///@{ /** *

Information about the compute resources the build project uses. Available - * values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 - * GB memory and 2 vCPUs for builds.

  • - * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for - * builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GB - * memory and 8 vCPUs for builds, depending on your environment type.

  • - *
  • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs - * for builds, depending on your environment type.

  • - * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 + * values include:

    • ATTRIBUTE_BASED_COMPUTE: Specify + * the amount of vCPUs, memory, disk space, and the type of machine.

      + * If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes + * by using computeConfiguration. CodeBuild will select the cheapest + * instance that satisfies your specified attributes. For more information, see Reserved + * capacity environment types in the CodeBuild User Guide.

      + *
    • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 + * vCPUs for builds.

    • BUILD_GENERAL1_MEDIUM: Use up + * to 8 GiB memory and 4 vCPUs for builds.

    • + * BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for + * builds, depending on your environment type.

    • + * BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for + * builds, depending on your environment type.

    • + * BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 * GB of SSD storage for builds. This compute type supports Docker images up to 100 * GB uncompressed.

    • BUILD_LAMBDA_1GB: Use up to 1 - * GB memory for builds. Only available for environment type + * GiB memory for builds. Only available for environment type * LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      - *
    • BUILD_LAMBDA_2GB: Use up to 2 GB memory for builds. + *

    • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. * Only available for environment type LINUX_LAMBDA_CONTAINER and * ARM_LAMBDA_CONTAINER.

    • - * BUILD_LAMBDA_4GB: Use up to 4 GB memory for builds. Only available + * BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available * for environment type LINUX_LAMBDA_CONTAINER and * ARM_LAMBDA_CONTAINER.

    • - * BUILD_LAMBDA_8GB: Use up to 8 GB memory for builds. Only available + * BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available * for environment type LINUX_LAMBDA_CONTAINER and * ARM_LAMBDA_CONTAINER.

    • - * BUILD_LAMBDA_10GB: Use up to 10 GB memory for builds. Only + * BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only * available for environment type LINUX_LAMBDA_CONTAINER and * ARM_LAMBDA_CONTAINER.

    If you use * BUILD_GENERAL1_SMALL:

    • For environment type - * LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for + * LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for * builds.

    • For environment type - * LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 - * NVIDIA A10G Tensor Core GPU for builds.

    • For environment type - * ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on + * LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and + * 1 NVIDIA A10G Tensor Core GPU for builds.

    • For environment + * type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on * ARM-based processors for builds.

    If you use * BUILD_GENERAL1_LARGE:

    • For environment type - * LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for + * LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for * builds.

    • For environment type - * LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and - * 4 NVIDIA Tesla V100 GPUs for builds.

    • For environment type - * ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on - * ARM-based processors for builds.

    If you're using - * compute fleets during project creation, computeType will be - * ignored.

    For more information, see Build - * Environment Compute Types in the CodeBuild User Guide.

    + * LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, + * and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type + * ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on + * ARM-based processors for builds.

For more information, see On-demand + * environment types in the CodeBuild User Guide.

*/ inline const ComputeType& GetComputeType() const{ return m_computeType; } inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; } @@ -161,6 +167,19 @@ namespace Model inline ProjectEnvironment& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The compute configuration of the build project. This is only required if + * computeType is set to ATTRIBUTE_BASED_COMPUTE.

+ */ + inline const ComputeConfiguration& GetComputeConfiguration() const{ return m_computeConfiguration; } + inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; } + inline void SetComputeConfiguration(const ComputeConfiguration& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = value; } + inline void SetComputeConfiguration(ComputeConfiguration&& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = std::move(value); } + inline ProjectEnvironment& WithComputeConfiguration(const ComputeConfiguration& value) { SetComputeConfiguration(value); return *this;} + inline ProjectEnvironment& WithComputeConfiguration(ComputeConfiguration&& value) { SetComputeConfiguration(std::move(value)); return *this;} + ///@} + ///@{ /** *

A ProjectFleet object to use for this build project.

@@ -270,6 +289,9 @@ namespace Model ComputeType m_computeType; bool m_computeTypeHasBeenSet = false; + ComputeConfiguration m_computeConfiguration; + bool m_computeConfigurationHasBeenSet = false; + ProjectFleet m_fleet; bool m_fleetHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/UpdateFleetRequest.h b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/UpdateFleetRequest.h index b3e0c486155..3ffb89d25a9 100644 --- a/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/UpdateFleetRequest.h +++ b/generated/src/aws-cpp-sdk-codebuild/include/aws/codebuild/model/UpdateFleetRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -108,32 +109,53 @@ namespace Model ///@{ /** *

Information about the compute resources the compute fleet uses. Available - * values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 - * GB memory and 2 vCPUs for builds.

  • - * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for - * builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GB - * memory and 8 vCPUs for builds, depending on your environment type.

  • - *
  • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs - * for builds, depending on your environment type.

  • - * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 + * values include:

    • ATTRIBUTE_BASED_COMPUTE: Specify + * the amount of vCPUs, memory, disk space, and the type of machine.

      + * If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes + * by using computeConfiguration. CodeBuild will select the cheapest + * instance that satisfies your specified attributes. For more information, see Reserved + * capacity environment types in the CodeBuild User Guide.

      + *
    • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 + * vCPUs for builds.

    • BUILD_GENERAL1_MEDIUM: Use up + * to 8 GiB memory and 4 vCPUs for builds.

    • + * BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for + * builds, depending on your environment type.

    • + * BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for + * builds, depending on your environment type.

    • + * BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 * GB of SSD storage for builds. This compute type supports Docker images up to 100 - * GB uncompressed.

    If you use + * GB uncompressed.

  • BUILD_LAMBDA_1GB: Use up to 1 + * GiB memory for builds. Only available for environment type + * LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

    + *
  • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. + * Only available for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

  • + * BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available + * for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

  • + * BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available + * for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

  • + * BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only + * available for environment type LINUX_LAMBDA_CONTAINER and + * ARM_LAMBDA_CONTAINER.

If you use * BUILD_GENERAL1_SMALL:

  • For environment type - * LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for + * LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for * builds.

  • For environment type - * LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 - * NVIDIA A10G Tensor Core GPU for builds.

  • For environment type - * ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on + * LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and + * 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment + * type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on * ARM-based processors for builds.

If you use * BUILD_GENERAL1_LARGE:

  • For environment type - * LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for + * LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for * builds.

  • For environment type - * LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and - * 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type - * ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on + * LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, + * and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type + * ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on * ARM-based processors for builds.

For more information, see Build - * environment compute types in the CodeBuild User Guide.

+ * href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types">On-demand + * environment types in the CodeBuild User Guide.

*/ inline const ComputeType& GetComputeType() const{ return m_computeType; } inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; } @@ -143,6 +165,19 @@ namespace Model inline UpdateFleetRequest& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The compute configuration of the compute fleet. This is only required if + * computeType is set to ATTRIBUTE_BASED_COMPUTE.

+ */ + inline const ComputeConfiguration& GetComputeConfiguration() const{ return m_computeConfiguration; } + inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; } + inline void SetComputeConfiguration(const ComputeConfiguration& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = value; } + inline void SetComputeConfiguration(ComputeConfiguration&& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = std::move(value); } + inline UpdateFleetRequest& WithComputeConfiguration(const ComputeConfiguration& value) { SetComputeConfiguration(value); return *this;} + inline UpdateFleetRequest& WithComputeConfiguration(ComputeConfiguration&& value) { SetComputeConfiguration(std::move(value)); return *this;} + ///@} + ///@{ /** *

The scaling configuration of the compute fleet.

@@ -259,6 +294,9 @@ namespace Model ComputeType m_computeType; bool m_computeTypeHasBeenSet = false; + ComputeConfiguration m_computeConfiguration; + bool m_computeConfigurationHasBeenSet = false; + ScalingConfigurationInput m_scalingConfiguration; bool m_scalingConfigurationHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeConfiguration.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeConfiguration.cpp new file mode 100644 index 00000000000..d24d66eeac8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeConfiguration.cpp @@ -0,0 +1,104 @@ +/** + * 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 CodeBuild +{ +namespace Model +{ + +ComputeConfiguration::ComputeConfiguration() : + m_vCpu(0), + m_vCpuHasBeenSet(false), + m_memory(0), + m_memoryHasBeenSet(false), + m_disk(0), + m_diskHasBeenSet(false), + m_machineType(MachineType::NOT_SET), + m_machineTypeHasBeenSet(false) +{ +} + +ComputeConfiguration::ComputeConfiguration(JsonView jsonValue) + : ComputeConfiguration() +{ + *this = jsonValue; +} + +ComputeConfiguration& ComputeConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("vCpu")) + { + m_vCpu = jsonValue.GetInt64("vCpu"); + + m_vCpuHasBeenSet = true; + } + + if(jsonValue.ValueExists("memory")) + { + m_memory = jsonValue.GetInt64("memory"); + + m_memoryHasBeenSet = true; + } + + if(jsonValue.ValueExists("disk")) + { + m_disk = jsonValue.GetInt64("disk"); + + m_diskHasBeenSet = true; + } + + if(jsonValue.ValueExists("machineType")) + { + m_machineType = MachineTypeMapper::GetMachineTypeForName(jsonValue.GetString("machineType")); + + m_machineTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ComputeConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_vCpuHasBeenSet) + { + payload.WithInt64("vCpu", m_vCpu); + + } + + if(m_memoryHasBeenSet) + { + payload.WithInt64("memory", m_memory); + + } + + if(m_diskHasBeenSet) + { + payload.WithInt64("disk", m_disk); + + } + + if(m_machineTypeHasBeenSet) + { + payload.WithString("machineType", MachineTypeMapper::GetNameForMachineType(m_machineType)); + } + + return payload; +} + +} // namespace Model +} // namespace CodeBuild +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeType.cpp index 10fcef5147c..2c485d8d5cb 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeType.cpp @@ -30,6 +30,7 @@ namespace Aws static const int BUILD_LAMBDA_4GB_HASH = HashingUtils::HashString("BUILD_LAMBDA_4GB"); static const int BUILD_LAMBDA_8GB_HASH = HashingUtils::HashString("BUILD_LAMBDA_8GB"); static const int BUILD_LAMBDA_10GB_HASH = HashingUtils::HashString("BUILD_LAMBDA_10GB"); + static const int ATTRIBUTE_BASED_COMPUTE_HASH = HashingUtils::HashString("ATTRIBUTE_BASED_COMPUTE"); ComputeType GetComputeTypeForName(const Aws::String& name) @@ -75,6 +76,10 @@ namespace Aws { return ComputeType::BUILD_LAMBDA_10GB; } + else if (hashCode == ATTRIBUTE_BASED_COMPUTE_HASH) + { + return ComputeType::ATTRIBUTE_BASED_COMPUTE; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -111,6 +116,8 @@ namespace Aws return "BUILD_LAMBDA_8GB"; case ComputeType::BUILD_LAMBDA_10GB: return "BUILD_LAMBDA_10GB"; + case ComputeType::ATTRIBUTE_BASED_COMPUTE: + return "ATTRIBUTE_BASED_COMPUTE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/CreateFleetRequest.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/CreateFleetRequest.cpp index 01c6c61fe47..9215c7ef135 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/CreateFleetRequest.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/CreateFleetRequest.cpp @@ -20,6 +20,7 @@ CreateFleetRequest::CreateFleetRequest() : m_environmentTypeHasBeenSet(false), m_computeType(ComputeType::NOT_SET), m_computeTypeHasBeenSet(false), + m_computeConfigurationHasBeenSet(false), m_scalingConfigurationHasBeenSet(false), m_overflowBehavior(FleetOverflowBehavior::NOT_SET), m_overflowBehaviorHasBeenSet(false), @@ -57,6 +58,12 @@ Aws::String CreateFleetRequest::SerializePayload() const payload.WithString("computeType", ComputeTypeMapper::GetNameForComputeType(m_computeType)); } + if(m_computeConfigurationHasBeenSet) + { + payload.WithObject("computeConfiguration", m_computeConfiguration.Jsonize()); + + } + if(m_scalingConfigurationHasBeenSet) { payload.WithObject("scalingConfiguration", m_scalingConfiguration.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/Fleet.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/Fleet.cpp index 2562032e0ab..840de15c9ab 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/Fleet.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/Fleet.cpp @@ -31,6 +31,7 @@ Fleet::Fleet() : m_environmentTypeHasBeenSet(false), m_computeType(ComputeType::NOT_SET), m_computeTypeHasBeenSet(false), + m_computeConfigurationHasBeenSet(false), m_scalingConfigurationHasBeenSet(false), m_overflowBehavior(FleetOverflowBehavior::NOT_SET), m_overflowBehaviorHasBeenSet(false), @@ -113,6 +114,13 @@ Fleet& Fleet::operator =(JsonView jsonValue) m_computeTypeHasBeenSet = true; } + if(jsonValue.ValueExists("computeConfiguration")) + { + m_computeConfiguration = jsonValue.GetObject("computeConfiguration"); + + m_computeConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("scalingConfiguration")) { m_scalingConfiguration = jsonValue.GetObject("scalingConfiguration"); @@ -222,6 +230,12 @@ JsonValue Fleet::Jsonize() const payload.WithString("computeType", ComputeTypeMapper::GetNameForComputeType(m_computeType)); } + if(m_computeConfigurationHasBeenSet) + { + payload.WithObject("computeConfiguration", m_computeConfiguration.Jsonize()); + + } + if(m_scalingConfigurationHasBeenSet) { payload.WithObject("scalingConfiguration", m_scalingConfiguration.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/MachineType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/MachineType.cpp new file mode 100644 index 00000000000..d952d2effe2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/MachineType.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 CodeBuild + { + namespace Model + { + namespace MachineTypeMapper + { + + static const int GENERAL_HASH = HashingUtils::HashString("GENERAL"); + static const int NVME_HASH = HashingUtils::HashString("NVME"); + + + MachineType GetMachineTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == GENERAL_HASH) + { + return MachineType::GENERAL; + } + else if (hashCode == NVME_HASH) + { + return MachineType::NVME; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return MachineType::NOT_SET; + } + + Aws::String GetNameForMachineType(MachineType enumValue) + { + switch(enumValue) + { + case MachineType::NOT_SET: + return {}; + case MachineType::GENERAL: + return "GENERAL"; + case MachineType::NVME: + return "NVME"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace MachineTypeMapper + } // namespace Model + } // namespace CodeBuild +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectEnvironment.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectEnvironment.cpp index 2a1bda7fa01..573f8900a2a 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectEnvironment.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectEnvironment.cpp @@ -24,6 +24,7 @@ ProjectEnvironment::ProjectEnvironment() : m_imageHasBeenSet(false), m_computeType(ComputeType::NOT_SET), m_computeTypeHasBeenSet(false), + m_computeConfigurationHasBeenSet(false), m_fleetHasBeenSet(false), m_environmentVariablesHasBeenSet(false), m_privilegedMode(false), @@ -64,6 +65,13 @@ ProjectEnvironment& ProjectEnvironment::operator =(JsonView jsonValue) m_computeTypeHasBeenSet = true; } + if(jsonValue.ValueExists("computeConfiguration")) + { + m_computeConfiguration = jsonValue.GetObject("computeConfiguration"); + + m_computeConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("fleet")) { m_fleet = jsonValue.GetObject("fleet"); @@ -132,6 +140,12 @@ JsonValue ProjectEnvironment::Jsonize() const payload.WithString("computeType", ComputeTypeMapper::GetNameForComputeType(m_computeType)); } + if(m_computeConfigurationHasBeenSet) + { + payload.WithObject("computeConfiguration", m_computeConfiguration.Jsonize()); + + } + if(m_fleetHasBeenSet) { payload.WithObject("fleet", m_fleet.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/UpdateFleetRequest.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/UpdateFleetRequest.cpp index c6fae57694d..cc70f00eaf8 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/UpdateFleetRequest.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/UpdateFleetRequest.cpp @@ -20,6 +20,7 @@ UpdateFleetRequest::UpdateFleetRequest() : m_environmentTypeHasBeenSet(false), m_computeType(ComputeType::NOT_SET), m_computeTypeHasBeenSet(false), + m_computeConfigurationHasBeenSet(false), m_scalingConfigurationHasBeenSet(false), m_overflowBehavior(FleetOverflowBehavior::NOT_SET), m_overflowBehaviorHasBeenSet(false), @@ -57,6 +58,12 @@ Aws::String UpdateFleetRequest::SerializePayload() const payload.WithString("computeType", ComputeTypeMapper::GetNameForComputeType(m_computeType)); } + if(m_computeConfigurationHasBeenSet) + { + payload.WithObject("computeConfiguration", m_computeConfiguration.Jsonize()); + + } + if(m_scalingConfigurationHasBeenSet) { payload.WithObject("scalingConfiguration", m_scalingConfiguration.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ArchiveFindingsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ArchiveFindingsRequest.h index 07d21b84918..54303273364 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ArchiveFindingsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ArchiveFindingsRequest.h @@ -36,7 +36,10 @@ namespace Model ///@{ /** *

The ID of the detector that specifies the GuardDuty service whose findings - * you want to archive.

+ * you want to archive.

To find the detectorId in the current + * Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateFilterRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateFilterRequest.h index dad1c7fa024..7a9c8ce9af9 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateFilterRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateFilterRequest.h @@ -39,7 +39,10 @@ namespace Model ///@{ /** *

The detector ID associated with the GuardDuty account for which you want to - * create a filter.

+ * create a filter.

To find the detectorId in the current + * Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateIPSetRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateIPSetRequest.h index d30b45db8c0..cb9b8981518 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateIPSetRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateIPSetRequest.h @@ -38,7 +38,10 @@ namespace Model ///@{ /** *

The unique ID of the detector of the GuardDuty account for which you want to - * create an IPSet.

+ * create an IPSet.

To find the detectorId in the current + * Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateMembersRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateMembersRequest.h index deb8279fdce..4319d42c076 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateMembersRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateMembersRequest.h @@ -37,7 +37,10 @@ namespace Model ///@{ /** *

The unique ID of the detector of the GuardDuty account for which you want to - * associate member accounts.

+ * associate member accounts.

To find the detectorId in the + * current Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreatePublishingDestinationRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreatePublishingDestinationRequest.h index c181e1182d6..d082c908b15 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreatePublishingDestinationRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreatePublishingDestinationRequest.h @@ -38,7 +38,10 @@ namespace Model ///@{ /** *

The ID of the GuardDuty detector associated with the publishing - * destination.

+ * destination.

To find the detectorId in the current Region, + * see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateSampleFindingsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateSampleFindingsRequest.h index dde6354622b..76ef790e072 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateSampleFindingsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateSampleFindingsRequest.h @@ -36,6 +36,10 @@ namespace Model ///@{ /** *

The ID of the detector for which you need to create sample findings.

+ *

To find the detectorId in the current Region, see the Settings + * page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateThreatIntelSetRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateThreatIntelSetRequest.h index ccbad95654f..84c89a23177 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateThreatIntelSetRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CreateThreatIntelSetRequest.h @@ -38,7 +38,11 @@ namespace Model ///@{ /** *

The unique ID of the detector of the GuardDuty account for which you want to - * create a ThreatIntelSet.

+ * create a ThreatIntelSet.

To find the detectorId + * in the current Region, see the Settings page in the GuardDuty console, or run + * the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteDetectorRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteDetectorRequest.h index 73d1064c8af..87d968eae5a 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteDetectorRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteDetectorRequest.h @@ -34,7 +34,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that you want to delete.

+ *

The unique ID of the detector that you want to delete.

To find the + * detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteFilterRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteFilterRequest.h index d531b689fbe..22e38ae91fc 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteFilterRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteFilterRequest.h @@ -34,7 +34,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that is associated with the filter.

+ *

The unique ID of the detector that is associated with the filter.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteIPSetRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteIPSetRequest.h index 55167081c02..4e0904ce1d8 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteIPSetRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteIPSetRequest.h @@ -34,7 +34,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector associated with the IPSet.

+ *

The unique ID of the detector associated with the IPSet.

To find the + * detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteMembersRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteMembersRequest.h index eac9bf81d04..2a9840c1e52 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteMembersRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteMembersRequest.h @@ -36,7 +36,10 @@ namespace Model ///@{ /** *

The unique ID of the detector of the GuardDuty account whose members you want - * to delete.

+ * to delete.

To find the detectorId in the current Region, see + * the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeletePublishingDestinationRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeletePublishingDestinationRequest.h index 705400c5a1c..be900c565fd 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeletePublishingDestinationRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeletePublishingDestinationRequest.h @@ -35,7 +35,10 @@ namespace Model ///@{ /** *

The unique ID of the detector associated with the publishing destination to - * delete.

+ * delete.

To find the detectorId in the current Region, see + * the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteThreatIntelSetRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteThreatIntelSetRequest.h index c340be250cd..3e344c0381c 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteThreatIntelSetRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DeleteThreatIntelSetRequest.h @@ -35,6 +35,10 @@ namespace Model ///@{ /** *

The unique ID of the detector that is associated with the threatIntelSet.

+ *

To find the detectorId in the current Region, see the Settings + * page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribeMalwareScansRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribeMalwareScansRequest.h index bee43932551..db05193d539 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribeMalwareScansRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribeMalwareScansRequest.h @@ -36,7 +36,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that the request is associated with.

+ *

The unique ID of the detector that the request is associated with.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribeOrganizationConfigurationRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribeOrganizationConfigurationRequest.h index 48fc4d78366..51602784491 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribeOrganizationConfigurationRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribeOrganizationConfigurationRequest.h @@ -41,7 +41,10 @@ namespace Model ///@{ /** *

The detector ID of the delegated administrator for which you need to retrieve - * the information.

+ * the information.

To find the detectorId in the current + * Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribePublishingDestinationRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribePublishingDestinationRequest.h index f15150bd75f..5d0c7011ccb 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribePublishingDestinationRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DescribePublishingDestinationRequest.h @@ -35,7 +35,10 @@ namespace Model ///@{ /** *

The unique ID of the detector associated with the publishing destination to - * retrieve.

+ * retrieve.

To find the detectorId in the current Region, see + * the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetCoverageStatisticsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetCoverageStatisticsRequest.h index c16133f5ca7..fd2b751b499 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetCoverageStatisticsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetCoverageStatisticsRequest.h @@ -37,7 +37,11 @@ namespace Model ///@{ /** - *

The unique ID of the GuardDuty detector.

+ *

The unique ID of the GuardDuty detector.

To find the + * detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetDetectorRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetDetectorRequest.h index eafef92e277..2716bcd4171 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetDetectorRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetDetectorRequest.h @@ -34,7 +34,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that you want to get.

+ *

The unique ID of the detector that you want to get.

To find the + * detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFilterRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFilterRequest.h index 85e3ba2b07f..0d0e1d95c6f 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFilterRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFilterRequest.h @@ -34,7 +34,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that is associated with this filter.

+ *

The unique ID of the detector that is associated with this filter.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFindingsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFindingsRequest.h index 6d2eca00b0a..7db6c694fd3 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFindingsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFindingsRequest.h @@ -37,7 +37,10 @@ namespace Model ///@{ /** *

The ID of the detector that specifies the GuardDuty service whose findings - * you want to retrieve.

+ * you want to retrieve.

To find the detectorId in the current + * Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFindingsStatisticsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFindingsStatisticsRequest.h index c966b4d64df..626ecb76a71 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFindingsStatisticsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetFindingsStatisticsRequest.h @@ -38,6 +38,10 @@ namespace Model ///@{ /** *

The ID of the detector whose findings statistics you want to retrieve.

+ *

To find the detectorId in the current Region, see the Settings + * page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetIPSetRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetIPSetRequest.h index 6e1e24104ab..a7dc5ee9e4e 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetIPSetRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetIPSetRequest.h @@ -34,7 +34,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that is associated with the IPSet.

+ *

The unique ID of the detector that is associated with the IPSet.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMalwareScanSettingsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMalwareScanSettingsRequest.h index 9275b39c970..6412a7dd780 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMalwareScanSettingsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMalwareScanSettingsRequest.h @@ -34,7 +34,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that is associated with this scan.

+ *

The unique ID of the detector that is associated with this scan.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMemberDetectorsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMemberDetectorsRequest.h index bbe221453b8..4b5f458998d 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMemberDetectorsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMemberDetectorsRequest.h @@ -35,7 +35,11 @@ namespace Model ///@{ /** - *

The detector ID for the administrator account.

+ *

The detector ID for the administrator account.

To find the + * detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMembersRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMembersRequest.h index 19a5f2c7c4c..22feab339e8 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMembersRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetMembersRequest.h @@ -36,7 +36,10 @@ namespace Model ///@{ /** *

The unique ID of the detector of the GuardDuty account whose members you want - * to retrieve.

+ * to retrieve.

To find the detectorId in the current Region, + * see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetRemainingFreeTrialDaysRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetRemainingFreeTrialDaysRequest.h index 390b4dd5664..25d48dd6c8d 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetRemainingFreeTrialDaysRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetRemainingFreeTrialDaysRequest.h @@ -35,7 +35,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector of the GuardDuty member account.

+ *

The unique ID of the detector of the GuardDuty member account.

To find + * the detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetThreatIntelSetRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetThreatIntelSetRequest.h index abaa3071c72..71bc4f26a2b 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetThreatIntelSetRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetThreatIntelSetRequest.h @@ -35,6 +35,10 @@ namespace Model ///@{ /** *

The unique ID of the detector that is associated with the threatIntelSet.

+ *

To find the detectorId in the current Region, see the Settings + * page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetUsageStatisticsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetUsageStatisticsRequest.h index ce5dc4f5719..193b99142e2 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetUsageStatisticsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetUsageStatisticsRequest.h @@ -37,7 +37,11 @@ namespace Model ///@{ /** *

The ID of the detector that specifies the GuardDuty service whose usage - * statistics you want to retrieve.

+ * statistics you want to retrieve.

To find the detectorId in + * the current Region, see the Settings page in the GuardDuty console, or run the + * ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/InviteMembersRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/InviteMembersRequest.h index 32bec399562..742d83db0d3 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/InviteMembersRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/InviteMembersRequest.h @@ -36,7 +36,10 @@ namespace Model ///@{ /** *

The unique ID of the detector of the GuardDuty account with which you want to - * invite members.

+ * invite members.

To find the detectorId in the current + * Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListCoverageRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListCoverageRequest.h index e8da3615965..0c4274ca107 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListCoverageRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListCoverageRequest.h @@ -37,7 +37,10 @@ namespace Model ///@{ /** *

The unique ID of the detector whose coverage details you want to - * retrieve.

+ * retrieve.

To find the detectorId in the current Region, see + * the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListFiltersRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListFiltersRequest.h index 724f2ff44de..ff1c726a321 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListFiltersRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListFiltersRequest.h @@ -40,7 +40,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that is associated with the filter.

+ *

The unique ID of the detector that is associated with the filter.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListFindingsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListFindingsRequest.h index 21ae3d06519..02db7f77c96 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListFindingsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListFindingsRequest.h @@ -37,7 +37,10 @@ namespace Model ///@{ /** *

The ID of the detector that specifies the GuardDuty service whose findings - * you want to list.

+ * you want to list.

To find the detectorId in the current + * Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListIPSetsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListIPSetsRequest.h index a0fef2ab488..227c67aee50 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListIPSetsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListIPSetsRequest.h @@ -40,7 +40,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that is associated with IPSet.

+ *

The unique ID of the detector that is associated with IPSet.

To find + * the detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListMembersRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListMembersRequest.h index 1f82d688dc1..a6c65c41bdf 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListMembersRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListMembersRequest.h @@ -40,7 +40,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that is associated with the member.

+ *

The unique ID of the detector that is associated with the member.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListPublishingDestinationsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListPublishingDestinationsRequest.h index 212532ceed2..bd4b4daf171 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListPublishingDestinationsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListPublishingDestinationsRequest.h @@ -41,7 +41,10 @@ namespace Model ///@{ /** *

The detector ID for which you want to retrieve the publishing - * destination.

+ * destination.

To find the detectorId in the current Region, + * see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListThreatIntelSetsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListThreatIntelSetsRequest.h index b03de787b6b..442534adf49 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListThreatIntelSetsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/ListThreatIntelSetsRequest.h @@ -41,6 +41,10 @@ namespace Model ///@{ /** *

The unique ID of the detector that is associated with the threatIntelSet.

+ *

To find the detectorId in the current Region, see the Settings + * page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/RdsDbInstanceDetails.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/RdsDbInstanceDetails.h index d52eb629eee..f11005de464 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/RdsDbInstanceDetails.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/RdsDbInstanceDetails.h @@ -115,7 +115,7 @@ namespace Model ///@{ /** - *

Instance tag key-value pairs associated with the database instance ID.

+ *

Information about the tag key-value pairs.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/RdsLimitlessDbDetails.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/RdsLimitlessDbDetails.h new file mode 100644 index 00000000000..c2a4c3e6048 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/RdsLimitlessDbDetails.h @@ -0,0 +1,168 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + + /** + *

Contains information about the resource type RDSLimitlessDB that + * is involved in a GuardDuty finding.

See Also:

AWS + * API Reference

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

The name associated with the Limitless DB shard group.

+ */ + inline const Aws::String& GetDbShardGroupIdentifier() const{ return m_dbShardGroupIdentifier; } + inline bool DbShardGroupIdentifierHasBeenSet() const { return m_dbShardGroupIdentifierHasBeenSet; } + inline void SetDbShardGroupIdentifier(const Aws::String& value) { m_dbShardGroupIdentifierHasBeenSet = true; m_dbShardGroupIdentifier = value; } + inline void SetDbShardGroupIdentifier(Aws::String&& value) { m_dbShardGroupIdentifierHasBeenSet = true; m_dbShardGroupIdentifier = std::move(value); } + inline void SetDbShardGroupIdentifier(const char* value) { m_dbShardGroupIdentifierHasBeenSet = true; m_dbShardGroupIdentifier.assign(value); } + inline RdsLimitlessDbDetails& WithDbShardGroupIdentifier(const Aws::String& value) { SetDbShardGroupIdentifier(value); return *this;} + inline RdsLimitlessDbDetails& WithDbShardGroupIdentifier(Aws::String&& value) { SetDbShardGroupIdentifier(std::move(value)); return *this;} + inline RdsLimitlessDbDetails& WithDbShardGroupIdentifier(const char* value) { SetDbShardGroupIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

The resource identifier of the DB shard group within the Limitless + * Database.

+ */ + inline const Aws::String& GetDbShardGroupResourceId() const{ return m_dbShardGroupResourceId; } + inline bool DbShardGroupResourceIdHasBeenSet() const { return m_dbShardGroupResourceIdHasBeenSet; } + inline void SetDbShardGroupResourceId(const Aws::String& value) { m_dbShardGroupResourceIdHasBeenSet = true; m_dbShardGroupResourceId = value; } + inline void SetDbShardGroupResourceId(Aws::String&& value) { m_dbShardGroupResourceIdHasBeenSet = true; m_dbShardGroupResourceId = std::move(value); } + inline void SetDbShardGroupResourceId(const char* value) { m_dbShardGroupResourceIdHasBeenSet = true; m_dbShardGroupResourceId.assign(value); } + inline RdsLimitlessDbDetails& WithDbShardGroupResourceId(const Aws::String& value) { SetDbShardGroupResourceId(value); return *this;} + inline RdsLimitlessDbDetails& WithDbShardGroupResourceId(Aws::String&& value) { SetDbShardGroupResourceId(std::move(value)); return *this;} + inline RdsLimitlessDbDetails& WithDbShardGroupResourceId(const char* value) { SetDbShardGroupResourceId(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) that identifies the DB shard group.

+ */ + inline const Aws::String& GetDbShardGroupArn() const{ return m_dbShardGroupArn; } + inline bool DbShardGroupArnHasBeenSet() const { return m_dbShardGroupArnHasBeenSet; } + inline void SetDbShardGroupArn(const Aws::String& value) { m_dbShardGroupArnHasBeenSet = true; m_dbShardGroupArn = value; } + inline void SetDbShardGroupArn(Aws::String&& value) { m_dbShardGroupArnHasBeenSet = true; m_dbShardGroupArn = std::move(value); } + inline void SetDbShardGroupArn(const char* value) { m_dbShardGroupArnHasBeenSet = true; m_dbShardGroupArn.assign(value); } + inline RdsLimitlessDbDetails& WithDbShardGroupArn(const Aws::String& value) { SetDbShardGroupArn(value); return *this;} + inline RdsLimitlessDbDetails& WithDbShardGroupArn(Aws::String&& value) { SetDbShardGroupArn(std::move(value)); return *this;} + inline RdsLimitlessDbDetails& WithDbShardGroupArn(const char* value) { SetDbShardGroupArn(value); return *this;} + ///@} + + ///@{ + /** + *

The database engine of the database instance involved in the finding.

+ */ + inline const Aws::String& GetEngine() const{ return m_engine; } + inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; } + inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; } + inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); } + inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); } + inline RdsLimitlessDbDetails& WithEngine(const Aws::String& value) { SetEngine(value); return *this;} + inline RdsLimitlessDbDetails& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;} + inline RdsLimitlessDbDetails& WithEngine(const char* value) { SetEngine(value); return *this;} + ///@} + + ///@{ + /** + *

The version of the database engine.

+ */ + inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } + inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } + inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } + inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } + inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } + inline RdsLimitlessDbDetails& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} + inline RdsLimitlessDbDetails& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} + inline RdsLimitlessDbDetails& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the database cluster that is a part of the Limitless + * Database.

+ */ + inline const Aws::String& GetDbClusterIdentifier() const{ return m_dbClusterIdentifier; } + inline bool DbClusterIdentifierHasBeenSet() const { return m_dbClusterIdentifierHasBeenSet; } + inline void SetDbClusterIdentifier(const Aws::String& value) { m_dbClusterIdentifierHasBeenSet = true; m_dbClusterIdentifier = value; } + inline void SetDbClusterIdentifier(Aws::String&& value) { m_dbClusterIdentifierHasBeenSet = true; m_dbClusterIdentifier = std::move(value); } + inline void SetDbClusterIdentifier(const char* value) { m_dbClusterIdentifierHasBeenSet = true; m_dbClusterIdentifier.assign(value); } + inline RdsLimitlessDbDetails& WithDbClusterIdentifier(const Aws::String& value) { SetDbClusterIdentifier(value); return *this;} + inline RdsLimitlessDbDetails& WithDbClusterIdentifier(Aws::String&& value) { SetDbClusterIdentifier(std::move(value)); return *this;} + inline RdsLimitlessDbDetails& WithDbClusterIdentifier(const char* value) { SetDbClusterIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

Information about the tag-key value pair.

+ */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline RdsLimitlessDbDetails& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + inline RdsLimitlessDbDetails& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + inline RdsLimitlessDbDetails& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + inline RdsLimitlessDbDetails& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_dbShardGroupIdentifier; + bool m_dbShardGroupIdentifierHasBeenSet = false; + + Aws::String m_dbShardGroupResourceId; + bool m_dbShardGroupResourceIdHasBeenSet = false; + + Aws::String m_dbShardGroupArn; + bool m_dbShardGroupArnHasBeenSet = false; + + Aws::String m_engine; + bool m_engineHasBeenSet = false; + + Aws::String m_engineVersion; + bool m_engineVersionHasBeenSet = false; + + Aws::String m_dbClusterIdentifier; + bool m_dbClusterIdentifierHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Resource.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Resource.h index 4a2eb0207c5..1b66650185f 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Resource.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Resource.h @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -177,6 +178,19 @@ namespace Model inline Resource& WithRdsDbInstanceDetails(RdsDbInstanceDetails&& value) { SetRdsDbInstanceDetails(std::move(value)); return *this;} ///@} + ///@{ + /** + *

Contains information about the RDS Limitless database that was involved in a + * GuardDuty finding.

+ */ + inline const RdsLimitlessDbDetails& GetRdsLimitlessDbDetails() const{ return m_rdsLimitlessDbDetails; } + inline bool RdsLimitlessDbDetailsHasBeenSet() const { return m_rdsLimitlessDbDetailsHasBeenSet; } + inline void SetRdsLimitlessDbDetails(const RdsLimitlessDbDetails& value) { m_rdsLimitlessDbDetailsHasBeenSet = true; m_rdsLimitlessDbDetails = value; } + inline void SetRdsLimitlessDbDetails(RdsLimitlessDbDetails&& value) { m_rdsLimitlessDbDetailsHasBeenSet = true; m_rdsLimitlessDbDetails = std::move(value); } + inline Resource& WithRdsLimitlessDbDetails(const RdsLimitlessDbDetails& value) { SetRdsLimitlessDbDetails(value); return *this;} + inline Resource& WithRdsLimitlessDbDetails(RdsLimitlessDbDetails&& value) { SetRdsLimitlessDbDetails(std::move(value)); return *this;} + ///@} + ///@{ /** *

Contains information about the user details through which anomalous login @@ -234,6 +248,9 @@ namespace Model RdsDbInstanceDetails m_rdsDbInstanceDetails; bool m_rdsDbInstanceDetailsHasBeenSet = false; + RdsLimitlessDbDetails m_rdsLimitlessDbDetails; + bool m_rdsLimitlessDbDetailsHasBeenSet = false; + RdsDbUserDetails m_rdsDbUserDetails; bool m_rdsDbUserDetailsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Scan.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Scan.h index 5b91f6946f9..c5f61100902 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Scan.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Scan.h @@ -47,7 +47,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector that the request is associated with.

+ *

The unique ID of the detector that the request is associated with.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } @@ -64,7 +68,10 @@ namespace Model *

The unique detector ID of the administrator account that the request is * associated with. If the account is an administrator, the * AdminDetectorId will be the same as the one used for - * DetectorId.

+ * DetectorId.

To find the detectorId in the + * current Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetAdminDetectorId() const{ return m_adminDetectorId; } inline bool AdminDetectorIdHasBeenSet() const { return m_adminDetectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/StartMonitoringMembersRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/StartMonitoringMembersRequest.h index 2f17d7acec9..57b373e2e45 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/StartMonitoringMembersRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/StartMonitoringMembersRequest.h @@ -36,7 +36,11 @@ namespace Model ///@{ /** *

The unique ID of the detector of the GuardDuty administrator account - * associated with the member accounts to monitor.

+ * associated with the member accounts to monitor.

To find the + * detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/StopMonitoringMembersRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/StopMonitoringMembersRequest.h index f997eeb5985..8e2664643ff 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/StopMonitoringMembersRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/StopMonitoringMembersRequest.h @@ -36,7 +36,11 @@ namespace Model ///@{ /** *

The unique ID of the detector associated with the GuardDuty administrator - * account that is monitoring member accounts.

+ * account that is monitoring member accounts.

To find the + * detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Tag.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Tag.h index 196c5337745..4772d6eedd5 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Tag.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/Tag.h @@ -24,10 +24,9 @@ namespace Model { /** - *

Contains information about a tag associated with the EC2 - * instance.

See Also:

AWS API - * Reference

+ *

Contains information about a tag key-value pair.

See Also:

+ * AWS + * API Reference

*/ class Tag { @@ -40,7 +39,7 @@ namespace Model ///@{ /** - *

The EC2 instance tag key.

+ *

Describes the key associated with the tag.

*/ inline const Aws::String& GetKey() const{ return m_key; } inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } @@ -54,7 +53,7 @@ namespace Model ///@{ /** - *

The EC2 instance tag value.

+ *

Describes the value associated with the tag key.

*/ inline const Aws::String& GetValue() const{ return m_value; } inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UnarchiveFindingsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UnarchiveFindingsRequest.h index 867d91ffb97..5d3d3010775 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UnarchiveFindingsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UnarchiveFindingsRequest.h @@ -35,7 +35,11 @@ namespace Model ///@{ /** - *

The ID of the detector associated with the findings to unarchive.

+ *

The ID of the detector associated with the findings to unarchive.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateDetectorRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateDetectorRequest.h index 9c61bd2802c..3634f0b725c 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateDetectorRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateDetectorRequest.h @@ -37,7 +37,11 @@ namespace Model ///@{ /** - *

The unique ID of the detector to update.

+ *

The unique ID of the detector to update.

To find the + * detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateFilterRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateFilterRequest.h index 0845dcb625e..5e68092d3f1 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateFilterRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateFilterRequest.h @@ -37,7 +37,10 @@ namespace Model ///@{ /** *

The unique ID of the detector that specifies the GuardDuty service where you - * want to update a filter.

+ * want to update a filter.

To find the detectorId in the + * current Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateFindingsFeedbackRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateFindingsFeedbackRequest.h index 59671dca2fe..94f960c73af 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateFindingsFeedbackRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateFindingsFeedbackRequest.h @@ -37,7 +37,10 @@ namespace Model ///@{ /** *

The ID of the detector that is associated with the findings for which you - * want to update the feedback.

+ * want to update the feedback.

To find the detectorId in the + * current Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateIPSetRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateIPSetRequest.h index 1313189c214..bccde32bfd9 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateIPSetRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateIPSetRequest.h @@ -35,7 +35,10 @@ namespace Model ///@{ /** *

The detectorID that specifies the GuardDuty service whose IPSet you want to - * update.

+ * update.

To find the detectorId in the current Region, see + * the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateMalwareScanSettingsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateMalwareScanSettingsRequest.h index 532c4f63658..da6481a6ab3 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateMalwareScanSettingsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateMalwareScanSettingsRequest.h @@ -37,7 +37,10 @@ namespace Model ///@{ /** *

The unique ID of the detector that specifies the GuardDuty service where you - * want to update scan settings.

+ * want to update scan settings.

To find the detectorId in the + * current Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateMemberDetectorsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateMemberDetectorsRequest.h index fe9610173df..9cd95964137 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateMemberDetectorsRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateMemberDetectorsRequest.h @@ -36,7 +36,11 @@ namespace Model ///@{ /** - *

The detector ID of the administrator account.

+ *

The detector ID of the administrator account.

To find the + * detectorId in the current Region, see the Settings page in the + * GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateOrganizationConfigurationRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateOrganizationConfigurationRequest.h index 95046b37cc4..0d7ee6cd53f 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateOrganizationConfigurationRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateOrganizationConfigurationRequest.h @@ -37,7 +37,11 @@ namespace Model ///@{ /** - *

The ID of the detector that configures the delegated administrator.

+ *

The ID of the detector that configures the delegated administrator.

To + * find the detectorId in the current Region, see the Settings page in + * the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdatePublishingDestinationRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdatePublishingDestinationRequest.h index 1858cc76232..35515cb9cdd 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdatePublishingDestinationRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdatePublishingDestinationRequest.h @@ -36,7 +36,10 @@ namespace Model ///@{ /** *

The ID of the detector associated with the publishing destinations to - * update.

+ * update.

To find the detectorId in the current Region, see + * the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateThreatIntelSetRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateThreatIntelSetRequest.h index 24acbadf1e7..a9011e80a21 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateThreatIntelSetRequest.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateThreatIntelSetRequest.h @@ -35,7 +35,10 @@ namespace Model ///@{ /** *

The detectorID that specifies the GuardDuty service whose ThreatIntelSet you - * want to update.

+ * want to update.

To find the detectorId in the current + * Region, see the Settings page in the GuardDuty console, or run the ListDetectors + * API.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/RdsLimitlessDbDetails.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/RdsLimitlessDbDetails.cpp new file mode 100644 index 00000000000..1bd57e805a3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/RdsLimitlessDbDetails.cpp @@ -0,0 +1,151 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + +RdsLimitlessDbDetails::RdsLimitlessDbDetails() : + m_dbShardGroupIdentifierHasBeenSet(false), + m_dbShardGroupResourceIdHasBeenSet(false), + m_dbShardGroupArnHasBeenSet(false), + m_engineHasBeenSet(false), + m_engineVersionHasBeenSet(false), + m_dbClusterIdentifierHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +RdsLimitlessDbDetails::RdsLimitlessDbDetails(JsonView jsonValue) + : RdsLimitlessDbDetails() +{ + *this = jsonValue; +} + +RdsLimitlessDbDetails& RdsLimitlessDbDetails::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("dbShardGroupIdentifier")) + { + m_dbShardGroupIdentifier = jsonValue.GetString("dbShardGroupIdentifier"); + + m_dbShardGroupIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("dbShardGroupResourceId")) + { + m_dbShardGroupResourceId = jsonValue.GetString("dbShardGroupResourceId"); + + m_dbShardGroupResourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("dbShardGroupArn")) + { + m_dbShardGroupArn = jsonValue.GetString("dbShardGroupArn"); + + m_dbShardGroupArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("engine")) + { + m_engine = jsonValue.GetString("engine"); + + m_engineHasBeenSet = true; + } + + if(jsonValue.ValueExists("engineVersion")) + { + m_engineVersion = jsonValue.GetString("engineVersion"); + + m_engineVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("dbClusterIdentifier")) + { + m_dbClusterIdentifier = jsonValue.GetString("dbClusterIdentifier"); + + m_dbClusterIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Utils::Array tagsJsonList = jsonValue.GetArray("tags"); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + m_tags.push_back(tagsJsonList[tagsIndex].AsObject()); + } + m_tagsHasBeenSet = true; + } + + return *this; +} + +JsonValue RdsLimitlessDbDetails::Jsonize() const +{ + JsonValue payload; + + if(m_dbShardGroupIdentifierHasBeenSet) + { + payload.WithString("dbShardGroupIdentifier", m_dbShardGroupIdentifier); + + } + + if(m_dbShardGroupResourceIdHasBeenSet) + { + payload.WithString("dbShardGroupResourceId", m_dbShardGroupResourceId); + + } + + if(m_dbShardGroupArnHasBeenSet) + { + payload.WithString("dbShardGroupArn", m_dbShardGroupArn); + + } + + if(m_engineHasBeenSet) + { + payload.WithString("engine", m_engine); + + } + + if(m_engineVersionHasBeenSet) + { + payload.WithString("engineVersion", m_engineVersion); + + } + + if(m_dbClusterIdentifierHasBeenSet) + { + payload.WithString("dbClusterIdentifier", m_dbClusterIdentifier); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("tags", std::move(tagsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/Resource.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/Resource.cpp index 4c93cdf6a1e..c962a267a71 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/Resource.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/Resource.cpp @@ -29,6 +29,7 @@ Resource::Resource() : m_ecsClusterDetailsHasBeenSet(false), m_containerDetailsHasBeenSet(false), m_rdsDbInstanceDetailsHasBeenSet(false), + m_rdsLimitlessDbDetailsHasBeenSet(false), m_rdsDbUserDetailsHasBeenSet(false), m_lambdaDetailsHasBeenSet(false) { @@ -115,6 +116,13 @@ Resource& Resource::operator =(JsonView jsonValue) m_rdsDbInstanceDetailsHasBeenSet = true; } + if(jsonValue.ValueExists("rdsLimitlessDbDetails")) + { + m_rdsLimitlessDbDetails = jsonValue.GetObject("rdsLimitlessDbDetails"); + + m_rdsLimitlessDbDetailsHasBeenSet = true; + } + if(jsonValue.ValueExists("rdsDbUserDetails")) { m_rdsDbUserDetails = jsonValue.GetObject("rdsDbUserDetails"); @@ -201,6 +209,12 @@ JsonValue Resource::Jsonize() const } + if(m_rdsLimitlessDbDetailsHasBeenSet) + { + payload.WithObject("rdsLimitlessDbDetails", m_rdsLimitlessDbDetails.Jsonize()); + + } + if(m_rdsDbUserDetailsHasBeenSet) { payload.WithObject("rdsDbUserDetails", m_rdsDbUserDetails.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/LakeFormationClient.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/LakeFormationClient.h index a985d55294d..dd24d3d4403 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/LakeFormationClient.h +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/LakeFormationClient.h @@ -298,6 +298,38 @@ namespace LakeFormation return SubmitAsync(&LakeFormationClient::CreateLFTag, request, handler, context); } + /** + *

Creates a new LF-Tag expression with the provided name, description, catalog + * ID, and expression body. This call fails if a LF-Tag expression with the same + * name already exists in the caller’s account or if the underlying LF-Tags don't + * exist. To call this API operation, caller needs the following Lake Formation + * permissions:

CREATE_LF_TAG_EXPRESSION on the root catalog + * resource.

GRANT_WITH_LF_TAG_EXPRESSION on all underlying + * LF-Tag key:value pairs included in the expression.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::CreateLFTagExpressionOutcome CreateLFTagExpression(const Model::CreateLFTagExpressionRequest& request) const; + + /** + * A Callable wrapper for CreateLFTagExpression that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateLFTagExpressionOutcomeCallable CreateLFTagExpressionCallable(const CreateLFTagExpressionRequestT& request) const + { + return SubmitCallable(&LakeFormationClient::CreateLFTagExpression, request); + } + + /** + * An Async wrapper for CreateLFTagExpression that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateLFTagExpressionAsync(const CreateLFTagExpressionRequestT& request, const CreateLFTagExpressionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&LakeFormationClient::CreateLFTagExpression, request, handler, context); + } + /** *

Creates an IAM Identity Center connection with Lake Formation to allow IAM * Identity Center users and groups to access Data Catalog resources.

See @@ -406,6 +438,34 @@ namespace LakeFormation return SubmitAsync(&LakeFormationClient::DeleteLFTag, request, handler, context); } + /** + *

Deletes the LF-Tag expression. The caller must be a data lake admin or have + * DROP permissions on the LF-Tag expression. Deleting a LF-Tag + * expression will also delete all LFTagPolicy permissions referencing + * the LF-Tag expression.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteLFTagExpressionOutcome DeleteLFTagExpression(const Model::DeleteLFTagExpressionRequest& request) const; + + /** + * A Callable wrapper for DeleteLFTagExpression that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteLFTagExpressionOutcomeCallable DeleteLFTagExpressionCallable(const DeleteLFTagExpressionRequestT& request) const + { + return SubmitCallable(&LakeFormationClient::DeleteLFTagExpression, request); + } + + /** + * An Async wrapper for DeleteLFTagExpression that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteLFTagExpressionAsync(const DeleteLFTagExpressionRequestT& request, const DeleteLFTagExpressionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&LakeFormationClient::DeleteLFTagExpression, request, handler, context); + } + /** *

Deletes an IAM Identity Center connection with Lake Formation.

See * Also:

Returns the details about the LF-Tag expression. The caller must be a data + * lake admin or must have DESCRIBE permission on the LF-Tag + * expression resource.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetLFTagExpressionOutcome GetLFTagExpression(const Model::GetLFTagExpressionRequest& request) const; + + /** + * A Callable wrapper for GetLFTagExpression that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetLFTagExpressionOutcomeCallable GetLFTagExpressionCallable(const GetLFTagExpressionRequestT& request) const + { + return SubmitCallable(&LakeFormationClient::GetLFTagExpression, request); + } + + /** + * An Async wrapper for GetLFTagExpression that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetLFTagExpressionAsync(const GetLFTagExpressionRequestT& request, const GetLFTagExpressionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&LakeFormationClient::GetLFTagExpression, request, handler, context); + } + /** *

Returns the state of a query previously submitted. Clients are expected to * poll GetQueryState to monitor the current state of the planning @@ -892,8 +979,10 @@ namespace LakeFormation *

Allows a caller in a secure environment to assume a role with permission to * access Amazon S3. In order to vend such credentials, Lake Formation assumes the * role associated with a registered location, for example an Amazon S3 bucket, - * with a scope down policy which restricts the access to a single - * prefix.

See Also:

+ *

To call this API, the role that the service assumes must have + * lakeformation:GetDataAccess permission on the + * resource.

See Also:

AWS * API Reference

*/ @@ -1023,6 +1112,34 @@ namespace LakeFormation return SubmitAsync(&LakeFormationClient::ListDataCellsFilter, request, handler, context); } + /** + *

Returns the LF-Tag expressions in caller’s account filtered based on caller's + * permissions. Data Lake and read only admins implicitly can see all tag + * expressions in their account, else caller needs DESCRIBE permissions on tag + * expression.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListLFTagExpressionsOutcome ListLFTagExpressions(const Model::ListLFTagExpressionsRequest& request = {}) const; + + /** + * A Callable wrapper for ListLFTagExpressions that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListLFTagExpressionsOutcomeCallable ListLFTagExpressionsCallable(const ListLFTagExpressionsRequestT& request = {}) const + { + return SubmitCallable(&LakeFormationClient::ListLFTagExpressions, request); + } + + /** + * An Async wrapper for ListLFTagExpressions that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListLFTagExpressionsAsync(const ListLFTagExpressionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListLFTagExpressionsRequestT& request = {}) const + { + return SubmitAsync(&LakeFormationClient::ListLFTagExpressions, request, handler, context); + } + /** *

Lists LF-tags that the requester has permission to view.

See * Also:

The following * request registers a new location and gives Lake Formation permission to use the * service-linked role to access that location.

ResourceArn = - * arn:aws:s3:::my-bucket UseServiceLinkedRole = true

If + * arn:aws:s3:::my-bucket/ UseServiceLinkedRole = true

If * UseServiceLinkedRole is not set to true, you must provide or set * the RoleArn:

* arn:aws:iam::12345:role/my-data-access-role

See @@ -1483,6 +1600,34 @@ namespace LakeFormation return SubmitAsync(&LakeFormationClient::UpdateLFTag, request, handler, context); } + /** + *

Updates the name of the LF-Tag expression to the new description and + * expression body provided. Updating a LF-Tag expression immediately changes the + * permission boundaries of all existing LFTagPolicy permission grants + * that reference the given LF-Tag expression.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateLFTagExpressionOutcome UpdateLFTagExpression(const Model::UpdateLFTagExpressionRequest& request) const; + + /** + * A Callable wrapper for UpdateLFTagExpression that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateLFTagExpressionOutcomeCallable UpdateLFTagExpressionCallable(const UpdateLFTagExpressionRequestT& request) const + { + return SubmitCallable(&LakeFormationClient::UpdateLFTagExpression, request); + } + + /** + * An Async wrapper for UpdateLFTagExpression that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateLFTagExpressionAsync(const UpdateLFTagExpressionRequestT& request, const UpdateLFTagExpressionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&LakeFormationClient::UpdateLFTagExpression, request, handler, context); + } + /** *

Updates the IAM Identity Center connection parameters.

See * Also:

#include #include +#include #include #include #include #include +#include #include #include #include @@ -43,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -53,6 +56,7 @@ #include #include #include +#include #include #include #include @@ -69,6 +73,7 @@ #include #include #include +#include #include #include #include @@ -83,6 +88,7 @@ #include #include #include +#include #include #include #include @@ -136,10 +142,12 @@ namespace Aws class CommitTransactionRequest; class CreateDataCellsFilterRequest; class CreateLFTagRequest; + class CreateLFTagExpressionRequest; class CreateLakeFormationIdentityCenterConfigurationRequest; class CreateLakeFormationOptInRequest; class DeleteDataCellsFilterRequest; class DeleteLFTagRequest; + class DeleteLFTagExpressionRequest; class DeleteLakeFormationIdentityCenterConfigurationRequest; class DeleteLakeFormationOptInRequest; class DeleteObjectsOnCancelRequest; @@ -153,6 +161,7 @@ namespace Aws class GetDataLakeSettingsRequest; class GetEffectivePermissionsForPathRequest; class GetLFTagRequest; + class GetLFTagExpressionRequest; class GetQueryStateRequest; class GetQueryStatisticsRequest; class GetResourceLFTagsRequest; @@ -163,6 +172,7 @@ namespace Aws class GetWorkUnitsRequest; class GrantPermissionsRequest; class ListDataCellsFilterRequest; + class ListLFTagExpressionsRequest; class ListLFTagsRequest; class ListLakeFormationOptInsRequest; class ListPermissionsRequest; @@ -179,6 +189,7 @@ namespace Aws class StartTransactionRequest; class UpdateDataCellsFilterRequest; class UpdateLFTagRequest; + class UpdateLFTagExpressionRequest; class UpdateLakeFormationIdentityCenterConfigurationRequest; class UpdateResourceRequest; class UpdateTableObjectsRequest; @@ -194,10 +205,12 @@ namespace Aws typedef Aws::Utils::Outcome CommitTransactionOutcome; typedef Aws::Utils::Outcome CreateDataCellsFilterOutcome; typedef Aws::Utils::Outcome CreateLFTagOutcome; + typedef Aws::Utils::Outcome CreateLFTagExpressionOutcome; typedef Aws::Utils::Outcome CreateLakeFormationIdentityCenterConfigurationOutcome; typedef Aws::Utils::Outcome CreateLakeFormationOptInOutcome; typedef Aws::Utils::Outcome DeleteDataCellsFilterOutcome; typedef Aws::Utils::Outcome DeleteLFTagOutcome; + typedef Aws::Utils::Outcome DeleteLFTagExpressionOutcome; typedef Aws::Utils::Outcome DeleteLakeFormationIdentityCenterConfigurationOutcome; typedef Aws::Utils::Outcome DeleteLakeFormationOptInOutcome; typedef Aws::Utils::Outcome DeleteObjectsOnCancelOutcome; @@ -211,6 +224,7 @@ namespace Aws typedef Aws::Utils::Outcome GetDataLakeSettingsOutcome; typedef Aws::Utils::Outcome GetEffectivePermissionsForPathOutcome; typedef Aws::Utils::Outcome GetLFTagOutcome; + typedef Aws::Utils::Outcome GetLFTagExpressionOutcome; typedef Aws::Utils::Outcome GetQueryStateOutcome; typedef Aws::Utils::Outcome GetQueryStatisticsOutcome; typedef Aws::Utils::Outcome GetResourceLFTagsOutcome; @@ -221,6 +235,7 @@ namespace Aws typedef Aws::Utils::Outcome GetWorkUnitsOutcome; typedef Aws::Utils::Outcome GrantPermissionsOutcome; typedef Aws::Utils::Outcome ListDataCellsFilterOutcome; + typedef Aws::Utils::Outcome ListLFTagExpressionsOutcome; typedef Aws::Utils::Outcome ListLFTagsOutcome; typedef Aws::Utils::Outcome ListLakeFormationOptInsOutcome; typedef Aws::Utils::Outcome ListPermissionsOutcome; @@ -237,6 +252,7 @@ namespace Aws typedef Aws::Utils::Outcome StartTransactionOutcome; typedef Aws::Utils::Outcome UpdateDataCellsFilterOutcome; typedef Aws::Utils::Outcome UpdateLFTagOutcome; + typedef Aws::Utils::Outcome UpdateLFTagExpressionOutcome; typedef Aws::Utils::Outcome UpdateLakeFormationIdentityCenterConfigurationOutcome; typedef Aws::Utils::Outcome UpdateResourceOutcome; typedef Aws::Utils::Outcome UpdateTableObjectsOutcome; @@ -252,10 +268,12 @@ namespace Aws typedef std::future CommitTransactionOutcomeCallable; typedef std::future CreateDataCellsFilterOutcomeCallable; typedef std::future CreateLFTagOutcomeCallable; + typedef std::future CreateLFTagExpressionOutcomeCallable; typedef std::future CreateLakeFormationIdentityCenterConfigurationOutcomeCallable; typedef std::future CreateLakeFormationOptInOutcomeCallable; typedef std::future DeleteDataCellsFilterOutcomeCallable; typedef std::future DeleteLFTagOutcomeCallable; + typedef std::future DeleteLFTagExpressionOutcomeCallable; typedef std::future DeleteLakeFormationIdentityCenterConfigurationOutcomeCallable; typedef std::future DeleteLakeFormationOptInOutcomeCallable; typedef std::future DeleteObjectsOnCancelOutcomeCallable; @@ -269,6 +287,7 @@ namespace Aws typedef std::future GetDataLakeSettingsOutcomeCallable; typedef std::future GetEffectivePermissionsForPathOutcomeCallable; typedef std::future GetLFTagOutcomeCallable; + typedef std::future GetLFTagExpressionOutcomeCallable; typedef std::future GetQueryStateOutcomeCallable; typedef std::future GetQueryStatisticsOutcomeCallable; typedef std::future GetResourceLFTagsOutcomeCallable; @@ -279,6 +298,7 @@ namespace Aws typedef std::future GetWorkUnitsOutcomeCallable; typedef std::future GrantPermissionsOutcomeCallable; typedef std::future ListDataCellsFilterOutcomeCallable; + typedef std::future ListLFTagExpressionsOutcomeCallable; typedef std::future ListLFTagsOutcomeCallable; typedef std::future ListLakeFormationOptInsOutcomeCallable; typedef std::future ListPermissionsOutcomeCallable; @@ -295,6 +315,7 @@ namespace Aws typedef std::future StartTransactionOutcomeCallable; typedef std::future UpdateDataCellsFilterOutcomeCallable; typedef std::future UpdateLFTagOutcomeCallable; + typedef std::future UpdateLFTagExpressionOutcomeCallable; typedef std::future UpdateLakeFormationIdentityCenterConfigurationOutcomeCallable; typedef std::future UpdateResourceOutcomeCallable; typedef std::future UpdateTableObjectsOutcomeCallable; @@ -313,10 +334,12 @@ namespace Aws typedef std::function&) > CommitTransactionResponseReceivedHandler; typedef std::function&) > CreateDataCellsFilterResponseReceivedHandler; typedef std::function&) > CreateLFTagResponseReceivedHandler; + typedef std::function&) > CreateLFTagExpressionResponseReceivedHandler; typedef std::function&) > CreateLakeFormationIdentityCenterConfigurationResponseReceivedHandler; typedef std::function&) > CreateLakeFormationOptInResponseReceivedHandler; typedef std::function&) > DeleteDataCellsFilterResponseReceivedHandler; typedef std::function&) > DeleteLFTagResponseReceivedHandler; + typedef std::function&) > DeleteLFTagExpressionResponseReceivedHandler; typedef std::function&) > DeleteLakeFormationIdentityCenterConfigurationResponseReceivedHandler; typedef std::function&) > DeleteLakeFormationOptInResponseReceivedHandler; typedef std::function&) > DeleteObjectsOnCancelResponseReceivedHandler; @@ -330,6 +353,7 @@ namespace Aws typedef std::function&) > GetDataLakeSettingsResponseReceivedHandler; typedef std::function&) > GetEffectivePermissionsForPathResponseReceivedHandler; typedef std::function&) > GetLFTagResponseReceivedHandler; + typedef std::function&) > GetLFTagExpressionResponseReceivedHandler; typedef std::function&) > GetQueryStateResponseReceivedHandler; typedef std::function&) > GetQueryStatisticsResponseReceivedHandler; typedef std::function&) > GetResourceLFTagsResponseReceivedHandler; @@ -340,6 +364,7 @@ namespace Aws typedef std::function&) > GetWorkUnitsResponseReceivedHandler; typedef std::function&) > GrantPermissionsResponseReceivedHandler; typedef std::function&) > ListDataCellsFilterResponseReceivedHandler; + typedef std::function&) > ListLFTagExpressionsResponseReceivedHandler; typedef std::function&) > ListLFTagsResponseReceivedHandler; typedef std::function&) > ListLakeFormationOptInsResponseReceivedHandler; typedef std::function&) > ListPermissionsResponseReceivedHandler; @@ -356,6 +381,7 @@ namespace Aws typedef std::function&) > StartTransactionResponseReceivedHandler; typedef std::function&) > UpdateDataCellsFilterResponseReceivedHandler; typedef std::function&) > UpdateLFTagResponseReceivedHandler; + typedef std::function&) > UpdateLFTagExpressionResponseReceivedHandler; typedef std::function&) > UpdateLakeFormationIdentityCenterConfigurationResponseReceivedHandler; typedef std::function&) > UpdateResourceResponseReceivedHandler; typedef std::function&) > UpdateTableObjectsResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/CreateLFTagExpressionRequest.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/CreateLFTagExpressionRequest.h new file mode 100644 index 00000000000..d710c687d7b --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/CreateLFTagExpressionRequest.h @@ -0,0 +1,112 @@ +/** + * 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 LakeFormation +{ +namespace Model +{ + + /** + */ + class CreateLFTagExpressionRequest : public LakeFormationRequest + { + public: + AWS_LAKEFORMATION_API CreateLFTagExpressionRequest(); + + // 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 "CreateLFTagExpression"; } + + AWS_LAKEFORMATION_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

A name for the expression.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline CreateLFTagExpressionRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline CreateLFTagExpressionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline CreateLFTagExpressionRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

A description with information about the LF-Tag expression.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline CreateLFTagExpressionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline CreateLFTagExpressionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline CreateLFTagExpressionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

The identifier for the Data Catalog. By default, the account ID. The Data + * Catalog is the persistent metadata store. It contains database definitions, + * table definitions, and other control information to manage your Lake Formation + * environment.

+ */ + inline const Aws::String& GetCatalogId() const{ return m_catalogId; } + inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } + inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } + inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } + inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } + inline CreateLFTagExpressionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} + inline CreateLFTagExpressionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} + inline CreateLFTagExpressionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} + ///@} + + ///@{ + /** + *

A list of LF-Tag conditions (key-value pairs).

+ */ + inline const Aws::Vector& GetExpression() const{ return m_expression; } + inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } + inline void SetExpression(const Aws::Vector& value) { m_expressionHasBeenSet = true; m_expression = value; } + inline void SetExpression(Aws::Vector&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } + inline CreateLFTagExpressionRequest& WithExpression(const Aws::Vector& value) { SetExpression(value); return *this;} + inline CreateLFTagExpressionRequest& WithExpression(Aws::Vector&& value) { SetExpression(std::move(value)); return *this;} + inline CreateLFTagExpressionRequest& AddExpression(const LFTag& value) { m_expressionHasBeenSet = true; m_expression.push_back(value); return *this; } + inline CreateLFTagExpressionRequest& AddExpression(LFTag&& value) { m_expressionHasBeenSet = true; m_expression.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_catalogId; + bool m_catalogIdHasBeenSet = false; + + Aws::Vector m_expression; + bool m_expressionHasBeenSet = false; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/CreateLFTagExpressionResult.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/CreateLFTagExpressionResult.h new file mode 100644 index 00000000000..09ebf023ae1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/CreateLFTagExpressionResult.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 LakeFormation +{ +namespace Model +{ + class CreateLFTagExpressionResult + { + public: + AWS_LAKEFORMATION_API CreateLFTagExpressionResult(); + AWS_LAKEFORMATION_API CreateLFTagExpressionResult(const Aws::AmazonWebServiceResult& result); + AWS_LAKEFORMATION_API CreateLFTagExpressionResult& 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 CreateLFTagExpressionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateLFTagExpressionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateLFTagExpressionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DataLakeResourceType.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DataLakeResourceType.h index 6945fdafacb..4a661ab6b0e 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DataLakeResourceType.h +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DataLakeResourceType.h @@ -23,7 +23,8 @@ namespace Model LF_TAG, LF_TAG_POLICY, LF_TAG_POLICY_DATABASE, - LF_TAG_POLICY_TABLE + LF_TAG_POLICY_TABLE, + LF_NAMED_TAG_EXPRESSION }; namespace DataLakeResourceTypeMapper diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DeleteLFTagExpressionRequest.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DeleteLFTagExpressionRequest.h new file mode 100644 index 00000000000..67f7b176167 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DeleteLFTagExpressionRequest.h @@ -0,0 +1,74 @@ +/** + * 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 LakeFormation +{ +namespace Model +{ + + /** + */ + class DeleteLFTagExpressionRequest : public LakeFormationRequest + { + public: + AWS_LAKEFORMATION_API DeleteLFTagExpressionRequest(); + + // 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 "DeleteLFTagExpression"; } + + AWS_LAKEFORMATION_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The name for the LF-Tag expression.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline DeleteLFTagExpressionRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline DeleteLFTagExpressionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline DeleteLFTagExpressionRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The identifier for the Data Catalog. By default, the account ID in which the + * LF-Tag expression is saved.

+ */ + inline const Aws::String& GetCatalogId() const{ return m_catalogId; } + inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } + inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } + inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } + inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } + inline DeleteLFTagExpressionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} + inline DeleteLFTagExpressionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} + inline DeleteLFTagExpressionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_catalogId; + bool m_catalogIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DeleteLFTagExpressionResult.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DeleteLFTagExpressionResult.h new file mode 100644 index 00000000000..432b020bada --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/DeleteLFTagExpressionResult.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 LakeFormation +{ +namespace Model +{ + class DeleteLFTagExpressionResult + { + public: + AWS_LAKEFORMATION_API DeleteLFTagExpressionResult(); + AWS_LAKEFORMATION_API DeleteLFTagExpressionResult(const Aws::AmazonWebServiceResult& result); + AWS_LAKEFORMATION_API DeleteLFTagExpressionResult& 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 DeleteLFTagExpressionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteLFTagExpressionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteLFTagExpressionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/GetLFTagExpressionRequest.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/GetLFTagExpressionRequest.h new file mode 100644 index 00000000000..b982bb3a2e3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/GetLFTagExpressionRequest.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 LakeFormation +{ +namespace Model +{ + + /** + */ + class GetLFTagExpressionRequest : public LakeFormationRequest + { + public: + AWS_LAKEFORMATION_API GetLFTagExpressionRequest(); + + // 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 "GetLFTagExpression"; } + + AWS_LAKEFORMATION_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The name for the LF-Tag expression

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline GetLFTagExpressionRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline GetLFTagExpressionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline GetLFTagExpressionRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The identifier for the Data Catalog. By default, the account ID.

+ */ + inline const Aws::String& GetCatalogId() const{ return m_catalogId; } + inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } + inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } + inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } + inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } + inline GetLFTagExpressionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} + inline GetLFTagExpressionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} + inline GetLFTagExpressionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_catalogId; + bool m_catalogIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/GetLFTagExpressionResult.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/GetLFTagExpressionResult.h new file mode 100644 index 00000000000..00880b1cdc4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/GetLFTagExpressionResult.h @@ -0,0 +1,116 @@ +/** + * 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 LakeFormation +{ +namespace Model +{ + class GetLFTagExpressionResult + { + public: + AWS_LAKEFORMATION_API GetLFTagExpressionResult(); + AWS_LAKEFORMATION_API GetLFTagExpressionResult(const Aws::AmazonWebServiceResult& result); + AWS_LAKEFORMATION_API GetLFTagExpressionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The name for the LF-Tag expression.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline void SetName(const Aws::String& value) { m_name = value; } + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + inline void SetName(const char* value) { m_name.assign(value); } + inline GetLFTagExpressionResult& WithName(const Aws::String& value) { SetName(value); return *this;} + inline GetLFTagExpressionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline GetLFTagExpressionResult& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The description with information about the LF-Tag expression.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline void SetDescription(const Aws::String& value) { m_description = value; } + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + inline void SetDescription(const char* value) { m_description.assign(value); } + inline GetLFTagExpressionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline GetLFTagExpressionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline GetLFTagExpressionResult& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

The identifier for the Data Catalog. By default, the account ID in which the + * LF-Tag expression is saved.

+ */ + inline const Aws::String& GetCatalogId() const{ return m_catalogId; } + inline void SetCatalogId(const Aws::String& value) { m_catalogId = value; } + inline void SetCatalogId(Aws::String&& value) { m_catalogId = std::move(value); } + inline void SetCatalogId(const char* value) { m_catalogId.assign(value); } + inline GetLFTagExpressionResult& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} + inline GetLFTagExpressionResult& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} + inline GetLFTagExpressionResult& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} + ///@} + + ///@{ + /** + *

The body of the LF-Tag expression. It is composed of one or more LF-Tag + * key-value pairs.

+ */ + inline const Aws::Vector& GetExpression() const{ return m_expression; } + inline void SetExpression(const Aws::Vector& value) { m_expression = value; } + inline void SetExpression(Aws::Vector&& value) { m_expression = std::move(value); } + inline GetLFTagExpressionResult& WithExpression(const Aws::Vector& value) { SetExpression(value); return *this;} + inline GetLFTagExpressionResult& WithExpression(Aws::Vector&& value) { SetExpression(std::move(value)); return *this;} + inline GetLFTagExpressionResult& AddExpression(const LFTag& value) { m_expression.push_back(value); return *this; } + inline GetLFTagExpressionResult& AddExpression(LFTag&& value) { m_expression.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 GetLFTagExpressionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetLFTagExpressionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetLFTagExpressionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_name; + + Aws::String m_description; + + Aws::String m_catalogId; + + Aws::Vector m_expression; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagExpression.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagExpression.h new file mode 100644 index 00000000000..5d6663b5eaf --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagExpression.h @@ -0,0 +1,115 @@ +/** + * 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 LakeFormation +{ +namespace Model +{ + + /** + *

A structure consists LF-Tag expression name and catalog ID.

See + * Also:

AWS + * API Reference

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

The name for saved the LF-Tag expression.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline LFTagExpression& WithName(const Aws::String& value) { SetName(value); return *this;} + inline LFTagExpression& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline LFTagExpression& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

A structure that contains information about the LF-Tag expression.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline LFTagExpression& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline LFTagExpression& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline LFTagExpression& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

The identifier for the Data Catalog. By default, the account ID.

+ */ + inline const Aws::String& GetCatalogId() const{ return m_catalogId; } + inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } + inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } + inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } + inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } + inline LFTagExpression& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} + inline LFTagExpression& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} + inline LFTagExpression& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} + ///@} + + ///@{ + /** + *

A logical expression composed of one or more LF-Tags.

+ */ + inline const Aws::Vector& GetExpression() const{ return m_expression; } + inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } + inline void SetExpression(const Aws::Vector& value) { m_expressionHasBeenSet = true; m_expression = value; } + inline void SetExpression(Aws::Vector&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } + inline LFTagExpression& WithExpression(const Aws::Vector& value) { SetExpression(value); return *this;} + inline LFTagExpression& WithExpression(Aws::Vector&& value) { SetExpression(std::move(value)); return *this;} + inline LFTagExpression& AddExpression(const LFTag& value) { m_expressionHasBeenSet = true; m_expression.push_back(value); return *this; } + inline LFTagExpression& AddExpression(LFTag&& value) { m_expressionHasBeenSet = true; m_expression.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_catalogId; + bool m_catalogIdHasBeenSet = false; + + Aws::Vector m_expression; + bool m_expressionHasBeenSet = false; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagExpressionResource.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagExpressionResource.h new file mode 100644 index 00000000000..184079adea5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagExpressionResource.h @@ -0,0 +1,79 @@ +/** + * 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 LakeFormation +{ +namespace Model +{ + + /** + *

A structure containing a LF-Tag expression (keys and values).

See + * Also:

AWS + * API Reference

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

The identifier for the Data Catalog. By default, the account ID.

+ */ + inline const Aws::String& GetCatalogId() const{ return m_catalogId; } + inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } + inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } + inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } + inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } + inline LFTagExpressionResource& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} + inline LFTagExpressionResource& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} + inline LFTagExpressionResource& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the LF-Tag expression to grant permissions on.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline LFTagExpressionResource& WithName(const Aws::String& value) { SetName(value); return *this;} + inline LFTagExpressionResource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline LFTagExpressionResource& WithName(const char* value) { SetName(value); return *this;} + ///@} + private: + + Aws::String m_catalogId; + bool m_catalogIdHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagPolicyResource.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagPolicyResource.h index cb0c72f46f6..4c99942492d 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagPolicyResource.h +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/LFTagPolicyResource.h @@ -27,8 +27,9 @@ namespace Model { /** - *

A structure containing a list of LF-tag conditions that apply to a resource's - * LF-tag policy.

See Also:

A structure containing a list of LF-tag conditions or saved LF-Tag + * expressions that apply to a resource's LF-tag policy.

See Also:

+ *
AWS * API Reference

*/ @@ -72,7 +73,8 @@ namespace Model ///@{ /** - *

A list of LF-tag conditions that apply to the resource's LF-tag policy.

+ *

A list of LF-tag conditions or a saved expression that apply to the + * resource's LF-tag policy.

*/ inline const Aws::Vector& GetExpression() const{ return m_expression; } inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } @@ -83,6 +85,22 @@ namespace Model inline LFTagPolicyResource& AddExpression(const LFTag& value) { m_expressionHasBeenSet = true; m_expression.push_back(value); return *this; } inline LFTagPolicyResource& AddExpression(LFTag&& value) { m_expressionHasBeenSet = true; m_expression.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

If provided, permissions are granted to the Data Catalog resources whose + * assigned LF-Tags match the expression body of the saved expression under the + * provided ExpressionName.

+ */ + inline const Aws::String& GetExpressionName() const{ return m_expressionName; } + inline bool ExpressionNameHasBeenSet() const { return m_expressionNameHasBeenSet; } + inline void SetExpressionName(const Aws::String& value) { m_expressionNameHasBeenSet = true; m_expressionName = value; } + inline void SetExpressionName(Aws::String&& value) { m_expressionNameHasBeenSet = true; m_expressionName = std::move(value); } + inline void SetExpressionName(const char* value) { m_expressionNameHasBeenSet = true; m_expressionName.assign(value); } + inline LFTagPolicyResource& WithExpressionName(const Aws::String& value) { SetExpressionName(value); return *this;} + inline LFTagPolicyResource& WithExpressionName(Aws::String&& value) { SetExpressionName(std::move(value)); return *this;} + inline LFTagPolicyResource& WithExpressionName(const char* value) { SetExpressionName(value); return *this;} + ///@} private: Aws::String m_catalogId; @@ -93,6 +111,9 @@ namespace Model Aws::Vector m_expression; bool m_expressionHasBeenSet = false; + + Aws::String m_expressionName; + bool m_expressionNameHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/ListLFTagExpressionsRequest.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/ListLFTagExpressionsRequest.h new file mode 100644 index 00000000000..a785ac885fc --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/ListLFTagExpressionsRequest.h @@ -0,0 +1,87 @@ +/** + * 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 LakeFormation +{ +namespace Model +{ + + /** + */ + class ListLFTagExpressionsRequest : public LakeFormationRequest + { + public: + AWS_LAKEFORMATION_API ListLFTagExpressionsRequest(); + + // 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 "ListLFTagExpressions"; } + + AWS_LAKEFORMATION_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The identifier for the Data Catalog. By default, the account ID.

+ */ + inline const Aws::String& GetCatalogId() const{ return m_catalogId; } + inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } + inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } + inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } + inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } + inline ListLFTagExpressionsRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} + inline ListLFTagExpressionsRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} + inline ListLFTagExpressionsRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} + ///@} + + ///@{ + /** + *

The maximum number of results to return.

+ */ + 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 ListLFTagExpressionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

A continuation token, if this is not the first call to retrieve this + * list.

+ */ + 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 ListLFTagExpressionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListLFTagExpressionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListLFTagExpressionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + private: + + Aws::String m_catalogId; + bool m_catalogIdHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/ListLFTagExpressionsResult.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/ListLFTagExpressionsResult.h new file mode 100644 index 00000000000..1b971303f42 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/ListLFTagExpressionsResult.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 LakeFormation +{ +namespace Model +{ + class ListLFTagExpressionsResult + { + public: + AWS_LAKEFORMATION_API ListLFTagExpressionsResult(); + AWS_LAKEFORMATION_API ListLFTagExpressionsResult(const Aws::AmazonWebServiceResult& result); + AWS_LAKEFORMATION_API ListLFTagExpressionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

Logical expressions composed of one more LF-Tag key-value pairs.

+ */ + inline const Aws::Vector& GetLFTagExpressions() const{ return m_lFTagExpressions; } + inline void SetLFTagExpressions(const Aws::Vector& value) { m_lFTagExpressions = value; } + inline void SetLFTagExpressions(Aws::Vector&& value) { m_lFTagExpressions = std::move(value); } + inline ListLFTagExpressionsResult& WithLFTagExpressions(const Aws::Vector& value) { SetLFTagExpressions(value); return *this;} + inline ListLFTagExpressionsResult& WithLFTagExpressions(Aws::Vector&& value) { SetLFTagExpressions(std::move(value)); return *this;} + inline ListLFTagExpressionsResult& AddLFTagExpressions(const LFTagExpression& value) { m_lFTagExpressions.push_back(value); return *this; } + inline ListLFTagExpressionsResult& AddLFTagExpressions(LFTagExpression&& value) { m_lFTagExpressions.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

A continuation token, if this is not the first call to retrieve this + * list.

+ */ + 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 ListLFTagExpressionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListLFTagExpressionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListLFTagExpressionsResult& 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 ListLFTagExpressionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListLFTagExpressionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListLFTagExpressionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_lFTagExpressions; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/Permission.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/Permission.h index f21d748b16e..83cfce0b0e9 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/Permission.h +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/Permission.h @@ -28,7 +28,8 @@ namespace Model DATA_LOCATION_ACCESS, CREATE_LF_TAG, ASSOCIATE, - GRANT_WITH_LF_TAG_EXPRESSION + GRANT_WITH_LF_TAG_EXPRESSION, + CREATE_LF_TAG_EXPRESSION }; namespace PermissionMapper diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/Resource.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/Resource.h index 7486ee3d7b3..6cc68e1be8f 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/Resource.h +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/Resource.h @@ -13,6 +13,7 @@ #include #include #include +#include #include namespace Aws @@ -139,7 +140,8 @@ namespace Model ///@{ /** - *

A list of LF-tag conditions that define a resource's LF-tag policy.

+ *

A list of LF-tag conditions or saved LF-Tag expressions that define a + * resource's LF-tag policy.

*/ inline const LFTagPolicyResource& GetLFTagPolicy() const{ return m_lFTagPolicy; } inline bool LFTagPolicyHasBeenSet() const { return m_lFTagPolicyHasBeenSet; } @@ -148,6 +150,19 @@ namespace Model inline Resource& WithLFTagPolicy(const LFTagPolicyResource& value) { SetLFTagPolicy(value); return *this;} inline Resource& WithLFTagPolicy(LFTagPolicyResource&& value) { SetLFTagPolicy(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

LF-Tag expression resource. A logical expression composed of one or more + * LF-Tag key:value pairs.

+ */ + inline const LFTagExpressionResource& GetLFTagExpression() const{ return m_lFTagExpression; } + inline bool LFTagExpressionHasBeenSet() const { return m_lFTagExpressionHasBeenSet; } + inline void SetLFTagExpression(const LFTagExpressionResource& value) { m_lFTagExpressionHasBeenSet = true; m_lFTagExpression = value; } + inline void SetLFTagExpression(LFTagExpressionResource&& value) { m_lFTagExpressionHasBeenSet = true; m_lFTagExpression = std::move(value); } + inline Resource& WithLFTagExpression(const LFTagExpressionResource& value) { SetLFTagExpression(value); return *this;} + inline Resource& WithLFTagExpression(LFTagExpressionResource&& value) { SetLFTagExpression(std::move(value)); return *this;} + ///@} private: CatalogResource m_catalog; @@ -173,6 +188,9 @@ namespace Model LFTagPolicyResource m_lFTagPolicy; bool m_lFTagPolicyHasBeenSet = false; + + LFTagExpressionResource m_lFTagExpression; + bool m_lFTagExpressionHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateLFTagExpressionRequest.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateLFTagExpressionRequest.h new file mode 100644 index 00000000000..7513c87342e --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateLFTagExpressionRequest.h @@ -0,0 +1,109 @@ +/** + * 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 LakeFormation +{ +namespace Model +{ + + /** + */ + class UpdateLFTagExpressionRequest : public LakeFormationRequest + { + public: + AWS_LAKEFORMATION_API UpdateLFTagExpressionRequest(); + + // 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 "UpdateLFTagExpression"; } + + AWS_LAKEFORMATION_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The name for the LF-Tag expression.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline UpdateLFTagExpressionRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline UpdateLFTagExpressionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline UpdateLFTagExpressionRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The description with information about the saved LF-Tag expression.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline UpdateLFTagExpressionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline UpdateLFTagExpressionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline UpdateLFTagExpressionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

The identifier for the Data Catalog. By default, the account ID.

+ */ + inline const Aws::String& GetCatalogId() const{ return m_catalogId; } + inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } + inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } + inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } + inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } + inline UpdateLFTagExpressionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} + inline UpdateLFTagExpressionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} + inline UpdateLFTagExpressionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} + ///@} + + ///@{ + /** + *

The LF-Tag expression body composed of one more LF-Tag key-value pairs.

+ */ + inline const Aws::Vector& GetExpression() const{ return m_expression; } + inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } + inline void SetExpression(const Aws::Vector& value) { m_expressionHasBeenSet = true; m_expression = value; } + inline void SetExpression(Aws::Vector&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } + inline UpdateLFTagExpressionRequest& WithExpression(const Aws::Vector& value) { SetExpression(value); return *this;} + inline UpdateLFTagExpressionRequest& WithExpression(Aws::Vector&& value) { SetExpression(std::move(value)); return *this;} + inline UpdateLFTagExpressionRequest& AddExpression(const LFTag& value) { m_expressionHasBeenSet = true; m_expression.push_back(value); return *this; } + inline UpdateLFTagExpressionRequest& AddExpression(LFTag&& value) { m_expressionHasBeenSet = true; m_expression.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_catalogId; + bool m_catalogIdHasBeenSet = false; + + Aws::Vector m_expression; + bool m_expressionHasBeenSet = false; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateLFTagExpressionResult.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateLFTagExpressionResult.h new file mode 100644 index 00000000000..2119ef3ea66 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateLFTagExpressionResult.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 LakeFormation +{ +namespace Model +{ + class UpdateLFTagExpressionResult + { + public: + AWS_LAKEFORMATION_API UpdateLFTagExpressionResult(); + AWS_LAKEFORMATION_API UpdateLFTagExpressionResult(const Aws::AmazonWebServiceResult& result); + AWS_LAKEFORMATION_API UpdateLFTagExpressionResult& 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 UpdateLFTagExpressionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateLFTagExpressionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateLFTagExpressionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateTableStorageOptimizerRequest.h b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateTableStorageOptimizerRequest.h index 02fad989f3a..e9ac21e2ac6 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateTableStorageOptimizerRequest.h +++ b/generated/src/aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/UpdateTableStorageOptimizerRequest.h @@ -78,7 +78,7 @@ namespace Model ///@{ /** - *

Name of the table for which to enable the storage optimizer.

+ *

Name of the configuration for the storage optimizer.

*/ inline const Aws::Map>& GetStorageOptimizerConfig() const{ return m_storageOptimizerConfig; } inline bool StorageOptimizerConfigHasBeenSet() const { return m_storageOptimizerConfigHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationClient.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationClient.cpp index f16d706ec6e..1632f40111e 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationClient.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationClient.cpp @@ -29,10 +29,12 @@ #include #include #include +#include #include #include #include #include +#include #include #include #include @@ -46,6 +48,7 @@ #include #include #include +#include #include #include #include @@ -56,6 +59,7 @@ #include #include #include +#include #include #include #include @@ -72,6 +76,7 @@ #include #include #include +#include #include #include #include @@ -435,6 +440,33 @@ CreateLFTagOutcome LakeFormationClient::CreateLFTag(const CreateLFTagRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateLFTagExpressionOutcome LakeFormationClient::CreateLFTagExpression(const CreateLFTagExpressionRequest& request) const +{ + AWS_OPERATION_GUARD(CreateLFTagExpression); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLFTagExpression, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLFTagExpression, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateLFTagExpression, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateLFTagExpression", + {{ 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( + [&]()-> CreateLFTagExpressionOutcome { + 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, CreateLFTagExpression, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/CreateLFTagExpression"); + return CreateLFTagExpressionOutcome(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()}}); +} + CreateLakeFormationIdentityCenterConfigurationOutcome LakeFormationClient::CreateLakeFormationIdentityCenterConfiguration(const CreateLakeFormationIdentityCenterConfigurationRequest& request) const { AWS_OPERATION_GUARD(CreateLakeFormationIdentityCenterConfiguration); @@ -543,6 +575,33 @@ DeleteLFTagOutcome LakeFormationClient::DeleteLFTag(const DeleteLFTagRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteLFTagExpressionOutcome LakeFormationClient::DeleteLFTagExpression(const DeleteLFTagExpressionRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteLFTagExpression); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteLFTagExpression, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteLFTagExpression, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteLFTagExpression, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteLFTagExpression", + {{ 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( + [&]()-> DeleteLFTagExpressionOutcome { + 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, DeleteLFTagExpression, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/DeleteLFTagExpression"); + return DeleteLFTagExpressionOutcome(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()}}); +} + DeleteLakeFormationIdentityCenterConfigurationOutcome LakeFormationClient::DeleteLakeFormationIdentityCenterConfiguration(const DeleteLakeFormationIdentityCenterConfigurationRequest& request) const { AWS_OPERATION_GUARD(DeleteLakeFormationIdentityCenterConfiguration); @@ -894,6 +953,33 @@ GetLFTagOutcome LakeFormationClient::GetLFTag(const GetLFTagRequest& request) co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetLFTagExpressionOutcome LakeFormationClient::GetLFTagExpression(const GetLFTagExpressionRequest& request) const +{ + AWS_OPERATION_GUARD(GetLFTagExpression); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetLFTagExpression, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetLFTagExpression, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetLFTagExpression, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetLFTagExpression", + {{ 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( + [&]()-> GetLFTagExpressionOutcome { + 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, GetLFTagExpression, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/GetLFTagExpression"); + return GetLFTagExpressionOutcome(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()}}); +} + GetQueryStateOutcome LakeFormationClient::GetQueryState(const GetQueryStateRequest& request) const { AWS_OPERATION_GUARD(GetQueryState); @@ -1172,6 +1258,33 @@ ListDataCellsFilterOutcome LakeFormationClient::ListDataCellsFilter(const ListDa {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListLFTagExpressionsOutcome LakeFormationClient::ListLFTagExpressions(const ListLFTagExpressionsRequest& request) const +{ + AWS_OPERATION_GUARD(ListLFTagExpressions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListLFTagExpressions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListLFTagExpressions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListLFTagExpressions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListLFTagExpressions", + {{ 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( + [&]()-> ListLFTagExpressionsOutcome { + 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, ListLFTagExpressions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/ListLFTagExpressions"); + return ListLFTagExpressionsOutcome(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()}}); +} + ListLFTagsOutcome LakeFormationClient::ListLFTags(const ListLFTagsRequest& request) const { AWS_OPERATION_GUARD(ListLFTags); @@ -1606,6 +1719,33 @@ UpdateLFTagOutcome LakeFormationClient::UpdateLFTag(const UpdateLFTagRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateLFTagExpressionOutcome LakeFormationClient::UpdateLFTagExpression(const UpdateLFTagExpressionRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateLFTagExpression); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateLFTagExpression, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateLFTagExpression, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateLFTagExpression, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateLFTagExpression", + {{ 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( + [&]()-> UpdateLFTagExpressionOutcome { + 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, UpdateLFTagExpression, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/UpdateLFTagExpression"); + return UpdateLFTagExpressionOutcome(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()}}); +} + UpdateLakeFormationIdentityCenterConfigurationOutcome LakeFormationClient::UpdateLakeFormationIdentityCenterConfiguration(const UpdateLakeFormationIdentityCenterConfigurationRequest& request) const { AWS_OPERATION_GUARD(UpdateLakeFormationIdentityCenterConfiguration); diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/CreateLFTagExpressionRequest.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/CreateLFTagExpressionRequest.cpp new file mode 100644 index 00000000000..84080fcffba --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/CreateLFTagExpressionRequest.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateLFTagExpressionRequest::CreateLFTagExpressionRequest() : + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_catalogIdHasBeenSet(false), + m_expressionHasBeenSet(false) +{ +} + +Aws::String CreateLFTagExpressionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_catalogIdHasBeenSet) + { + payload.WithString("CatalogId", m_catalogId); + + } + + if(m_expressionHasBeenSet) + { + Aws::Utils::Array expressionJsonList(m_expression.size()); + for(unsigned expressionIndex = 0; expressionIndex < expressionJsonList.GetLength(); ++expressionIndex) + { + expressionJsonList[expressionIndex].AsObject(m_expression[expressionIndex].Jsonize()); + } + payload.WithArray("Expression", std::move(expressionJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/CreateLFTagExpressionResult.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/CreateLFTagExpressionResult.cpp new file mode 100644 index 00000000000..23410422640 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/CreateLFTagExpressionResult.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::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateLFTagExpressionResult::CreateLFTagExpressionResult() +{ +} + +CreateLFTagExpressionResult::CreateLFTagExpressionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateLFTagExpressionResult& CreateLFTagExpressionResult::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-lakeformation/source/model/DataLakeResourceType.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/DataLakeResourceType.cpp index 248dcd5c06f..37b280cd0a0 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/DataLakeResourceType.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/DataLakeResourceType.cpp @@ -28,6 +28,7 @@ namespace Aws static const int LF_TAG_POLICY_HASH = HashingUtils::HashString("LF_TAG_POLICY"); static const int LF_TAG_POLICY_DATABASE_HASH = HashingUtils::HashString("LF_TAG_POLICY_DATABASE"); static const int LF_TAG_POLICY_TABLE_HASH = HashingUtils::HashString("LF_TAG_POLICY_TABLE"); + static const int LF_NAMED_TAG_EXPRESSION_HASH = HashingUtils::HashString("LF_NAMED_TAG_EXPRESSION"); DataLakeResourceType GetDataLakeResourceTypeForName(const Aws::String& name) @@ -65,6 +66,10 @@ namespace Aws { return DataLakeResourceType::LF_TAG_POLICY_TABLE; } + else if (hashCode == LF_NAMED_TAG_EXPRESSION_HASH) + { + return DataLakeResourceType::LF_NAMED_TAG_EXPRESSION; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -97,6 +102,8 @@ namespace Aws return "LF_TAG_POLICY_DATABASE"; case DataLakeResourceType::LF_TAG_POLICY_TABLE: return "LF_TAG_POLICY_TABLE"; + case DataLakeResourceType::LF_NAMED_TAG_EXPRESSION: + return "LF_NAMED_TAG_EXPRESSION"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/DeleteLFTagExpressionRequest.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/DeleteLFTagExpressionRequest.cpp new file mode 100644 index 00000000000..eca92cb1213 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/DeleteLFTagExpressionRequest.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteLFTagExpressionRequest::DeleteLFTagExpressionRequest() : + m_nameHasBeenSet(false), + m_catalogIdHasBeenSet(false) +{ +} + +Aws::String DeleteLFTagExpressionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_catalogIdHasBeenSet) + { + payload.WithString("CatalogId", m_catalogId); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/DeleteLFTagExpressionResult.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/DeleteLFTagExpressionResult.cpp new file mode 100644 index 00000000000..1ff6db820b3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/DeleteLFTagExpressionResult.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::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteLFTagExpressionResult::DeleteLFTagExpressionResult() +{ +} + +DeleteLFTagExpressionResult::DeleteLFTagExpressionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteLFTagExpressionResult& DeleteLFTagExpressionResult::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-lakeformation/source/model/GetLFTagExpressionRequest.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/GetLFTagExpressionRequest.cpp new file mode 100644 index 00000000000..a8087bff1c3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/GetLFTagExpressionRequest.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetLFTagExpressionRequest::GetLFTagExpressionRequest() : + m_nameHasBeenSet(false), + m_catalogIdHasBeenSet(false) +{ +} + +Aws::String GetLFTagExpressionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_catalogIdHasBeenSet) + { + payload.WithString("CatalogId", m_catalogId); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/GetLFTagExpressionResult.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/GetLFTagExpressionResult.cpp new file mode 100644 index 00000000000..8a64faf9d7f --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/GetLFTagExpressionResult.cpp @@ -0,0 +1,69 @@ +/** + * 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::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetLFTagExpressionResult::GetLFTagExpressionResult() +{ +} + +GetLFTagExpressionResult::GetLFTagExpressionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetLFTagExpressionResult& GetLFTagExpressionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + } + + if(jsonValue.ValueExists("CatalogId")) + { + m_catalogId = jsonValue.GetString("CatalogId"); + + } + + if(jsonValue.ValueExists("Expression")) + { + Aws::Utils::Array expressionJsonList = jsonValue.GetArray("Expression"); + for(unsigned expressionIndex = 0; expressionIndex < expressionJsonList.GetLength(); ++expressionIndex) + { + m_expression.push_back(expressionJsonList[expressionIndex].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-lakeformation/source/model/LFTagExpression.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/LFTagExpression.cpp new file mode 100644 index 00000000000..6a58500fa53 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/LFTagExpression.cpp @@ -0,0 +1,109 @@ +/** + * 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 LakeFormation +{ +namespace Model +{ + +LFTagExpression::LFTagExpression() : + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_catalogIdHasBeenSet(false), + m_expressionHasBeenSet(false) +{ +} + +LFTagExpression::LFTagExpression(JsonView jsonValue) + : LFTagExpression() +{ + *this = jsonValue; +} + +LFTagExpression& LFTagExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("CatalogId")) + { + m_catalogId = jsonValue.GetString("CatalogId"); + + m_catalogIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Expression")) + { + Aws::Utils::Array expressionJsonList = jsonValue.GetArray("Expression"); + for(unsigned expressionIndex = 0; expressionIndex < expressionJsonList.GetLength(); ++expressionIndex) + { + m_expression.push_back(expressionJsonList[expressionIndex].AsObject()); + } + m_expressionHasBeenSet = true; + } + + return *this; +} + +JsonValue LFTagExpression::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_catalogIdHasBeenSet) + { + payload.WithString("CatalogId", m_catalogId); + + } + + if(m_expressionHasBeenSet) + { + Aws::Utils::Array expressionJsonList(m_expression.size()); + for(unsigned expressionIndex = 0; expressionIndex < expressionJsonList.GetLength(); ++expressionIndex) + { + expressionJsonList[expressionIndex].AsObject(m_expression[expressionIndex].Jsonize()); + } + payload.WithArray("Expression", std::move(expressionJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/LFTagExpressionResource.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/LFTagExpressionResource.cpp new file mode 100644 index 00000000000..9824b6bfc32 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/LFTagExpressionResource.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 LakeFormation +{ +namespace Model +{ + +LFTagExpressionResource::LFTagExpressionResource() : + m_catalogIdHasBeenSet(false), + m_nameHasBeenSet(false) +{ +} + +LFTagExpressionResource::LFTagExpressionResource(JsonView jsonValue) + : LFTagExpressionResource() +{ + *this = jsonValue; +} + +LFTagExpressionResource& LFTagExpressionResource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("CatalogId")) + { + m_catalogId = jsonValue.GetString("CatalogId"); + + m_catalogIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + return *this; +} + +JsonValue LFTagExpressionResource::Jsonize() const +{ + JsonValue payload; + + if(m_catalogIdHasBeenSet) + { + payload.WithString("CatalogId", m_catalogId); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + return payload; +} + +} // namespace Model +} // namespace LakeFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/LFTagPolicyResource.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/LFTagPolicyResource.cpp index e691f7c2dac..4e1a2d8b1be 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/LFTagPolicyResource.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/LFTagPolicyResource.cpp @@ -22,7 +22,8 @@ LFTagPolicyResource::LFTagPolicyResource() : m_catalogIdHasBeenSet(false), m_resourceType(ResourceType::NOT_SET), m_resourceTypeHasBeenSet(false), - m_expressionHasBeenSet(false) + m_expressionHasBeenSet(false), + m_expressionNameHasBeenSet(false) { } @@ -58,6 +59,13 @@ LFTagPolicyResource& LFTagPolicyResource::operator =(JsonView jsonValue) m_expressionHasBeenSet = true; } + if(jsonValue.ValueExists("ExpressionName")) + { + m_expressionName = jsonValue.GetString("ExpressionName"); + + m_expressionNameHasBeenSet = true; + } + return *this; } @@ -87,6 +95,12 @@ JsonValue LFTagPolicyResource::Jsonize() const } + if(m_expressionNameHasBeenSet) + { + payload.WithString("ExpressionName", m_expressionName); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/ListLFTagExpressionsRequest.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/ListLFTagExpressionsRequest.cpp new file mode 100644 index 00000000000..9a033439d05 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/ListLFTagExpressionsRequest.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::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListLFTagExpressionsRequest::ListLFTagExpressionsRequest() : + m_catalogIdHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListLFTagExpressionsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_catalogIdHasBeenSet) + { + payload.WithString("CatalogId", m_catalogId); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("MaxResults", m_maxResults); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/ListLFTagExpressionsResult.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/ListLFTagExpressionsResult.cpp new file mode 100644 index 00000000000..40b03951afe --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/ListLFTagExpressionsResult.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::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListLFTagExpressionsResult::ListLFTagExpressionsResult() +{ +} + +ListLFTagExpressionsResult::ListLFTagExpressionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListLFTagExpressionsResult& ListLFTagExpressionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("LFTagExpressions")) + { + Aws::Utils::Array lFTagExpressionsJsonList = jsonValue.GetArray("LFTagExpressions"); + for(unsigned lFTagExpressionsIndex = 0; lFTagExpressionsIndex < lFTagExpressionsJsonList.GetLength(); ++lFTagExpressionsIndex) + { + m_lFTagExpressions.push_back(lFTagExpressionsJsonList[lFTagExpressionsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/Permission.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/Permission.cpp index 313df968f23..11762f7c9f9 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/Permission.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/Permission.cpp @@ -33,6 +33,7 @@ namespace Aws static const int CREATE_LF_TAG_HASH = HashingUtils::HashString("CREATE_LF_TAG"); static const int ASSOCIATE_HASH = HashingUtils::HashString("ASSOCIATE"); static const int GRANT_WITH_LF_TAG_EXPRESSION_HASH = HashingUtils::HashString("GRANT_WITH_LF_TAG_EXPRESSION"); + static const int CREATE_LF_TAG_EXPRESSION_HASH = HashingUtils::HashString("CREATE_LF_TAG_EXPRESSION"); Permission GetPermissionForName(const Aws::String& name) @@ -90,6 +91,10 @@ namespace Aws { return Permission::GRANT_WITH_LF_TAG_EXPRESSION; } + else if (hashCode == CREATE_LF_TAG_EXPRESSION_HASH) + { + return Permission::CREATE_LF_TAG_EXPRESSION; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -132,6 +137,8 @@ namespace Aws return "ASSOCIATE"; case Permission::GRANT_WITH_LF_TAG_EXPRESSION: return "GRANT_WITH_LF_TAG_EXPRESSION"; + case Permission::CREATE_LF_TAG_EXPRESSION: + return "CREATE_LF_TAG_EXPRESSION"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/Resource.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/Resource.cpp index 2c6ad37d86b..0bda9cd0388 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/Resource.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/Resource.cpp @@ -26,7 +26,8 @@ Resource::Resource() : m_dataLocationHasBeenSet(false), m_dataCellsFilterHasBeenSet(false), m_lFTagHasBeenSet(false), - m_lFTagPolicyHasBeenSet(false) + m_lFTagPolicyHasBeenSet(false), + m_lFTagExpressionHasBeenSet(false) { } @@ -94,6 +95,13 @@ Resource& Resource::operator =(JsonView jsonValue) m_lFTagPolicyHasBeenSet = true; } + if(jsonValue.ValueExists("LFTagExpression")) + { + m_lFTagExpression = jsonValue.GetObject("LFTagExpression"); + + m_lFTagExpressionHasBeenSet = true; + } + return *this; } @@ -149,6 +157,12 @@ JsonValue Resource::Jsonize() const } + if(m_lFTagExpressionHasBeenSet) + { + payload.WithObject("LFTagExpression", m_lFTagExpression.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/UpdateLFTagExpressionRequest.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/UpdateLFTagExpressionRequest.cpp new file mode 100644 index 00000000000..0165d84397c --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/UpdateLFTagExpressionRequest.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateLFTagExpressionRequest::UpdateLFTagExpressionRequest() : + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_catalogIdHasBeenSet(false), + m_expressionHasBeenSet(false) +{ +} + +Aws::String UpdateLFTagExpressionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_catalogIdHasBeenSet) + { + payload.WithString("CatalogId", m_catalogId); + + } + + if(m_expressionHasBeenSet) + { + Aws::Utils::Array expressionJsonList(m_expression.size()); + for(unsigned expressionIndex = 0; expressionIndex < expressionJsonList.GetLength(); ++expressionIndex) + { + expressionJsonList[expressionIndex].AsObject(m_expression[expressionIndex].Jsonize()); + } + payload.WithArray("Expression", std::move(expressionJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/UpdateLFTagExpressionResult.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/UpdateLFTagExpressionResult.cpp new file mode 100644 index 00000000000..5ded08b9de3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/UpdateLFTagExpressionResult.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::LakeFormation::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateLFTagExpressionResult::UpdateLFTagExpressionResult() +{ +} + +UpdateLFTagExpressionResult::UpdateLFTagExpressionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateLFTagExpressionResult& UpdateLFTagExpressionResult::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-qapps/include/aws/qapps/QAppsClient.h b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/QAppsClient.h index a9252a2db68..1dd9f6d8d07 100644 --- a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/QAppsClient.h +++ b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/QAppsClient.h @@ -147,6 +147,93 @@ namespace QApps return SubmitAsync(&QAppsClient::AssociateQAppWithUser, request, handler, context); } + /** + *

Creates Categories for the Amazon Q Business application environment + * instance. Web experience users use Categories to tag and filter library items. + * For more information, see Custom + * labels for Amazon Q Apps.

See Also:

AWS + * API Reference

+ */ + virtual Model::BatchCreateCategoryOutcome BatchCreateCategory(const Model::BatchCreateCategoryRequest& request) const; + + /** + * A Callable wrapper for BatchCreateCategory that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::BatchCreateCategoryOutcomeCallable BatchCreateCategoryCallable(const BatchCreateCategoryRequestT& request) const + { + return SubmitCallable(&QAppsClient::BatchCreateCategory, request); + } + + /** + * An Async wrapper for BatchCreateCategory that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void BatchCreateCategoryAsync(const BatchCreateCategoryRequestT& request, const BatchCreateCategoryResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QAppsClient::BatchCreateCategory, request, handler, context); + } + + /** + *

Deletes Categories for the Amazon Q Business application environment + * instance. Web experience users use Categories to tag and filter library items. + * For more information, see Custom + * labels for Amazon Q Apps.

See Also:

AWS + * API Reference

+ */ + virtual Model::BatchDeleteCategoryOutcome BatchDeleteCategory(const Model::BatchDeleteCategoryRequest& request) const; + + /** + * A Callable wrapper for BatchDeleteCategory that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::BatchDeleteCategoryOutcomeCallable BatchDeleteCategoryCallable(const BatchDeleteCategoryRequestT& request) const + { + return SubmitCallable(&QAppsClient::BatchDeleteCategory, request); + } + + /** + * An Async wrapper for BatchDeleteCategory that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void BatchDeleteCategoryAsync(const BatchDeleteCategoryRequestT& request, const BatchDeleteCategoryResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QAppsClient::BatchDeleteCategory, request, handler, context); + } + + /** + *

Updates Categories for the Amazon Q Business application environment + * instance. Web experience users use Categories to tag and filter library items. + * For more information, see Custom + * labels for Amazon Q Apps.

See Also:

AWS + * API Reference

+ */ + virtual Model::BatchUpdateCategoryOutcome BatchUpdateCategory(const Model::BatchUpdateCategoryRequest& request) const; + + /** + * A Callable wrapper for BatchUpdateCategory that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::BatchUpdateCategoryOutcomeCallable BatchUpdateCategoryCallable(const BatchUpdateCategoryRequestT& request) const + { + return SubmitCallable(&QAppsClient::BatchUpdateCategory, request); + } + + /** + * An Async wrapper for BatchUpdateCategory that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void BatchUpdateCategoryAsync(const BatchUpdateCategoryRequestT& request, const BatchUpdateCategoryResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QAppsClient::BatchUpdateCategory, request, handler, context); + } + /** *

Creates a new library item for an Amazon Q App, allowing it to be discovered * and used by other allowed users.

See Also:

Lists the categories of a Amazon Q Business application environment instance. + * For more information, see Custom + * labels for Amazon Q Apps.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListCategoriesOutcome ListCategories(const Model::ListCategoriesRequest& request) const; + + /** + * A Callable wrapper for ListCategories that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListCategoriesOutcomeCallable ListCategoriesCallable(const ListCategoriesRequestT& request) const + { + return SubmitCallable(&QAppsClient::ListCategories, request); + } + + /** + * An Async wrapper for ListCategories that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListCategoriesAsync(const ListCategoriesRequestT& request, const ListCategoriesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QAppsClient::ListCategories, request, handler, context); + } + /** *

Lists the library items for Amazon Q Apps that are published and available * for users in your Amazon Web Services account.

See Also:

#include #include +#include #include #include #include @@ -77,6 +78,9 @@ namespace Aws /* Service model forward declarations required in QAppsClient header */ class AssociateLibraryItemReviewRequest; class AssociateQAppWithUserRequest; + class BatchCreateCategoryRequest; + class BatchDeleteCategoryRequest; + class BatchUpdateCategoryRequest; class CreateLibraryItemRequest; class CreateQAppRequest; class DeleteLibraryItemRequest; @@ -87,6 +91,7 @@ namespace Aws class GetQAppRequest; class GetQAppSessionRequest; class ImportDocumentRequest; + class ListCategoriesRequest; class ListLibraryItemsRequest; class ListQAppsRequest; class ListTagsForResourceRequest; @@ -104,6 +109,9 @@ namespace Aws /* Service model Outcome class definitions */ typedef Aws::Utils::Outcome AssociateLibraryItemReviewOutcome; typedef Aws::Utils::Outcome AssociateQAppWithUserOutcome; + typedef Aws::Utils::Outcome BatchCreateCategoryOutcome; + typedef Aws::Utils::Outcome BatchDeleteCategoryOutcome; + typedef Aws::Utils::Outcome BatchUpdateCategoryOutcome; typedef Aws::Utils::Outcome CreateLibraryItemOutcome; typedef Aws::Utils::Outcome CreateQAppOutcome; typedef Aws::Utils::Outcome DeleteLibraryItemOutcome; @@ -114,6 +122,7 @@ namespace Aws typedef Aws::Utils::Outcome GetQAppOutcome; typedef Aws::Utils::Outcome GetQAppSessionOutcome; typedef Aws::Utils::Outcome ImportDocumentOutcome; + typedef Aws::Utils::Outcome ListCategoriesOutcome; typedef Aws::Utils::Outcome ListLibraryItemsOutcome; typedef Aws::Utils::Outcome ListQAppsOutcome; typedef Aws::Utils::Outcome ListTagsForResourceOutcome; @@ -131,6 +140,9 @@ namespace Aws /* Service model Outcome callable definitions */ typedef std::future AssociateLibraryItemReviewOutcomeCallable; typedef std::future AssociateQAppWithUserOutcomeCallable; + typedef std::future BatchCreateCategoryOutcomeCallable; + typedef std::future BatchDeleteCategoryOutcomeCallable; + typedef std::future BatchUpdateCategoryOutcomeCallable; typedef std::future CreateLibraryItemOutcomeCallable; typedef std::future CreateQAppOutcomeCallable; typedef std::future DeleteLibraryItemOutcomeCallable; @@ -141,6 +153,7 @@ namespace Aws typedef std::future GetQAppOutcomeCallable; typedef std::future GetQAppSessionOutcomeCallable; typedef std::future ImportDocumentOutcomeCallable; + typedef std::future ListCategoriesOutcomeCallable; typedef std::future ListLibraryItemsOutcomeCallable; typedef std::future ListQAppsOutcomeCallable; typedef std::future ListTagsForResourceOutcomeCallable; @@ -161,6 +174,9 @@ namespace Aws /* Service model async handlers definitions */ typedef std::function&) > AssociateLibraryItemReviewResponseReceivedHandler; typedef std::function&) > AssociateQAppWithUserResponseReceivedHandler; + typedef std::function&) > BatchCreateCategoryResponseReceivedHandler; + typedef std::function&) > BatchDeleteCategoryResponseReceivedHandler; + typedef std::function&) > BatchUpdateCategoryResponseReceivedHandler; typedef std::function&) > CreateLibraryItemResponseReceivedHandler; typedef std::function&) > CreateQAppResponseReceivedHandler; typedef std::function&) > DeleteLibraryItemResponseReceivedHandler; @@ -171,6 +187,7 @@ namespace Aws typedef std::function&) > GetQAppResponseReceivedHandler; typedef std::function&) > GetQAppSessionResponseReceivedHandler; typedef std::function&) > ImportDocumentResponseReceivedHandler; + typedef std::function&) > ListCategoriesResponseReceivedHandler; typedef std::function&) > ListLibraryItemsResponseReceivedHandler; typedef std::function&) > ListQAppsResponseReceivedHandler; typedef std::function&) > ListTagsForResourceResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchCreateCategoryInputCategory.h b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchCreateCategoryInputCategory.h new file mode 100644 index 00000000000..9544f636824 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchCreateCategoryInputCategory.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QApps +{ +namespace Model +{ + + /** + *

The category object to be created.

See Also:

AWS + * API Reference

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

The unique identifier to be associated with a category. If you don't include + * a value, the category is automatically assigned a unique identifier.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline BatchCreateCategoryInputCategory& WithId(const Aws::String& value) { SetId(value); return *this;} + inline BatchCreateCategoryInputCategory& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline BatchCreateCategoryInputCategory& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the category.

+ */ + inline const Aws::String& GetTitle() const{ return m_title; } + inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } + inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } + inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } + inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } + inline BatchCreateCategoryInputCategory& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} + inline BatchCreateCategoryInputCategory& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} + inline BatchCreateCategoryInputCategory& WithTitle(const char* value) { SetTitle(value); return *this;} + ///@} + + ///@{ + /** + *

The color to be associated with a category. The color must be a hexadecimal + * value of either 3 or 6 digits.

+ */ + inline const Aws::String& GetColor() const{ return m_color; } + inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; } + inline void SetColor(const Aws::String& value) { m_colorHasBeenSet = true; m_color = value; } + inline void SetColor(Aws::String&& value) { m_colorHasBeenSet = true; m_color = std::move(value); } + inline void SetColor(const char* value) { m_colorHasBeenSet = true; m_color.assign(value); } + inline BatchCreateCategoryInputCategory& WithColor(const Aws::String& value) { SetColor(value); return *this;} + inline BatchCreateCategoryInputCategory& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;} + inline BatchCreateCategoryInputCategory& WithColor(const char* value) { SetColor(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_title; + bool m_titleHasBeenSet = false; + + Aws::String m_color; + bool m_colorHasBeenSet = false; + }; + +} // namespace Model +} // namespace QApps +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchCreateCategoryRequest.h b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchCreateCategoryRequest.h new file mode 100644 index 00000000000..58de379ccf0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchCreateCategoryRequest.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QApps +{ +namespace Model +{ + + /** + */ + class BatchCreateCategoryRequest : public QAppsRequest + { + public: + AWS_QAPPS_API BatchCreateCategoryRequest(); + + // 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 "BatchCreateCategory"; } + + AWS_QAPPS_API Aws::String SerializePayload() const override; + + AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

The unique identifier of the Amazon Q Business application environment + * instance.

+ */ + inline const Aws::String& GetInstanceId() const{ return m_instanceId; } + inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } + inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } + inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } + inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } + inline BatchCreateCategoryRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} + inline BatchCreateCategoryRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} + inline BatchCreateCategoryRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} + ///@} + + ///@{ + /** + *

The list of category objects to be created

+ */ + inline const Aws::Vector& GetCategories() const{ return m_categories; } + inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; } + inline void SetCategories(const Aws::Vector& value) { m_categoriesHasBeenSet = true; m_categories = value; } + inline void SetCategories(Aws::Vector&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); } + inline BatchCreateCategoryRequest& WithCategories(const Aws::Vector& value) { SetCategories(value); return *this;} + inline BatchCreateCategoryRequest& WithCategories(Aws::Vector&& value) { SetCategories(std::move(value)); return *this;} + inline BatchCreateCategoryRequest& AddCategories(const BatchCreateCategoryInputCategory& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; } + inline BatchCreateCategoryRequest& AddCategories(BatchCreateCategoryInputCategory&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::Vector m_categories; + bool m_categoriesHasBeenSet = false; + }; + +} // namespace Model +} // namespace QApps +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchDeleteCategoryRequest.h b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchDeleteCategoryRequest.h new file mode 100644 index 00000000000..8dadb96302a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchDeleteCategoryRequest.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QApps +{ +namespace Model +{ + + /** + */ + class BatchDeleteCategoryRequest : public QAppsRequest + { + public: + AWS_QAPPS_API BatchDeleteCategoryRequest(); + + // 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 "BatchDeleteCategory"; } + + AWS_QAPPS_API Aws::String SerializePayload() const override; + + AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

The unique identifier of the Amazon Q Business application environment + * instance.

+ */ + inline const Aws::String& GetInstanceId() const{ return m_instanceId; } + inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } + inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } + inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } + inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } + inline BatchDeleteCategoryRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} + inline BatchDeleteCategoryRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} + inline BatchDeleteCategoryRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} + ///@} + + ///@{ + /** + *

The list of IDs of the categories to be deleted.

+ */ + inline const Aws::Vector& GetCategories() const{ return m_categories; } + inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; } + inline void SetCategories(const Aws::Vector& value) { m_categoriesHasBeenSet = true; m_categories = value; } + inline void SetCategories(Aws::Vector&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); } + inline BatchDeleteCategoryRequest& WithCategories(const Aws::Vector& value) { SetCategories(value); return *this;} + inline BatchDeleteCategoryRequest& WithCategories(Aws::Vector&& value) { SetCategories(std::move(value)); return *this;} + inline BatchDeleteCategoryRequest& AddCategories(const Aws::String& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; } + inline BatchDeleteCategoryRequest& AddCategories(Aws::String&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; } + inline BatchDeleteCategoryRequest& AddCategories(const char* value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; } + ///@} + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::Vector m_categories; + bool m_categoriesHasBeenSet = false; + }; + +} // namespace Model +} // namespace QApps +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchUpdateCategoryRequest.h b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchUpdateCategoryRequest.h new file mode 100644 index 00000000000..d647657ca9e --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/BatchUpdateCategoryRequest.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QApps +{ +namespace Model +{ + + /** + */ + class BatchUpdateCategoryRequest : public QAppsRequest + { + public: + AWS_QAPPS_API BatchUpdateCategoryRequest(); + + // 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 "BatchUpdateCategory"; } + + AWS_QAPPS_API Aws::String SerializePayload() const override; + + AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

The unique identifier of the Amazon Q Business application environment + * instance.

+ */ + inline const Aws::String& GetInstanceId() const{ return m_instanceId; } + inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } + inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } + inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } + inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } + inline BatchUpdateCategoryRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} + inline BatchUpdateCategoryRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} + inline BatchUpdateCategoryRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} + ///@} + + ///@{ + /** + *

The list of categories to be updated with their new values.

+ */ + inline const Aws::Vector& GetCategories() const{ return m_categories; } + inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; } + inline void SetCategories(const Aws::Vector& value) { m_categoriesHasBeenSet = true; m_categories = value; } + inline void SetCategories(Aws::Vector&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); } + inline BatchUpdateCategoryRequest& WithCategories(const Aws::Vector& value) { SetCategories(value); return *this;} + inline BatchUpdateCategoryRequest& WithCategories(Aws::Vector&& value) { SetCategories(std::move(value)); return *this;} + inline BatchUpdateCategoryRequest& AddCategories(const CategoryInput& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; } + inline BatchUpdateCategoryRequest& AddCategories(CategoryInput&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::Vector m_categories; + bool m_categoriesHasBeenSet = false; + }; + +} // namespace Model +} // namespace QApps +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/Category.h b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/Category.h index 8b5707fe5db..c809f9cb848 100644 --- a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/Category.h +++ b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/Category.h @@ -65,6 +65,30 @@ namespace Model inline Category& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} inline Category& WithTitle(const char* value) { SetTitle(value); return *this;} ///@} + + ///@{ + /** + *

The color of the category

+ */ + inline const Aws::String& GetColor() const{ return m_color; } + inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; } + inline void SetColor(const Aws::String& value) { m_colorHasBeenSet = true; m_color = value; } + inline void SetColor(Aws::String&& value) { m_colorHasBeenSet = true; m_color = std::move(value); } + inline void SetColor(const char* value) { m_colorHasBeenSet = true; m_color.assign(value); } + inline Category& WithColor(const Aws::String& value) { SetColor(value); return *this;} + inline Category& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;} + inline Category& WithColor(const char* value) { SetColor(value); return *this;} + ///@} + + ///@{ + /** + *

The number of published Amazon Q Apps associated with a category

+ */ + inline int GetAppCount() const{ return m_appCount; } + inline bool AppCountHasBeenSet() const { return m_appCountHasBeenSet; } + inline void SetAppCount(int value) { m_appCountHasBeenSet = true; m_appCount = value; } + inline Category& WithAppCount(int value) { SetAppCount(value); return *this;} + ///@} private: Aws::String m_id; @@ -72,6 +96,12 @@ namespace Model Aws::String m_title; bool m_titleHasBeenSet = false; + + Aws::String m_color; + bool m_colorHasBeenSet = false; + + int m_appCount; + bool m_appCountHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/CategoryInput.h b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/CategoryInput.h new file mode 100644 index 00000000000..f1a1f68ca63 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/CategoryInput.h @@ -0,0 +1,98 @@ +/** + * 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 QApps +{ +namespace Model +{ + + /** + *

A label that web experience users associate with a library item. Web + * experience users use Categories to tag and filter library items.

See + * Also:

AWS + * API Reference

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

The unique identifier of the category.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline CategoryInput& WithId(const Aws::String& value) { SetId(value); return *this;} + inline CategoryInput& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline CategoryInput& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the category.

+ */ + inline const Aws::String& GetTitle() const{ return m_title; } + inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } + inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } + inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } + inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } + inline CategoryInput& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} + inline CategoryInput& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} + inline CategoryInput& WithTitle(const char* value) { SetTitle(value); return *this;} + ///@} + + ///@{ + /** + *

The color of the category, represented as a hexadecimal value of either 3 or + * 6 digits.

+ */ + inline const Aws::String& GetColor() const{ return m_color; } + inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; } + inline void SetColor(const Aws::String& value) { m_colorHasBeenSet = true; m_color = value; } + inline void SetColor(Aws::String&& value) { m_colorHasBeenSet = true; m_color = std::move(value); } + inline void SetColor(const char* value) { m_colorHasBeenSet = true; m_color.assign(value); } + inline CategoryInput& WithColor(const Aws::String& value) { SetColor(value); return *this;} + inline CategoryInput& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;} + inline CategoryInput& WithColor(const char* value) { SetColor(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_title; + bool m_titleHasBeenSet = false; + + Aws::String m_color; + bool m_colorHasBeenSet = false; + }; + +} // namespace Model +} // namespace QApps +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/ListCategoriesRequest.h b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/ListCategoriesRequest.h new file mode 100644 index 00000000000..e012a30edf1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/ListCategoriesRequest.h @@ -0,0 +1,59 @@ +/** + * 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 QApps +{ +namespace Model +{ + + /** + */ + class ListCategoriesRequest : public QAppsRequest + { + public: + AWS_QAPPS_API ListCategoriesRequest(); + + // 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 "ListCategories"; } + + AWS_QAPPS_API Aws::String SerializePayload() const override; + + AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

The unique identifier of the Amazon Q Business application environment + * instance.

+ */ + inline const Aws::String& GetInstanceId() const{ return m_instanceId; } + inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } + inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } + inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } + inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } + inline ListCategoriesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} + inline ListCategoriesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} + inline ListCategoriesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} + ///@} + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QApps +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/ListCategoriesResult.h b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/ListCategoriesResult.h new file mode 100644 index 00000000000..911a9857c26 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/include/aws/qapps/model/ListCategoriesResult.h @@ -0,0 +1,69 @@ +/** + * 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 QApps +{ +namespace Model +{ + class ListCategoriesResult + { + public: + AWS_QAPPS_API ListCategoriesResult(); + AWS_QAPPS_API ListCategoriesResult(const Aws::AmazonWebServiceResult& result); + AWS_QAPPS_API ListCategoriesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The categories of a Amazon Q Business application environment instance.

+ */ + inline const Aws::Vector& GetCategories() const{ return m_categories; } + inline void SetCategories(const Aws::Vector& value) { m_categories = value; } + inline void SetCategories(Aws::Vector&& value) { m_categories = std::move(value); } + inline ListCategoriesResult& WithCategories(const Aws::Vector& value) { SetCategories(value); return *this;} + inline ListCategoriesResult& WithCategories(Aws::Vector&& value) { SetCategories(std::move(value)); return *this;} + inline ListCategoriesResult& AddCategories(const Category& value) { m_categories.push_back(value); return *this; } + inline ListCategoriesResult& AddCategories(Category&& value) { m_categories.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 ListCategoriesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListCategoriesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListCategoriesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_categories; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QApps +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qapps/source/QAppsClient.cpp b/generated/src/aws-cpp-sdk-qapps/source/QAppsClient.cpp index e9fa3bdca88..804ee1eb573 100644 --- a/generated/src/aws-cpp-sdk-qapps/source/QAppsClient.cpp +++ b/generated/src/aws-cpp-sdk-qapps/source/QAppsClient.cpp @@ -23,6 +23,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -33,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -252,6 +256,102 @@ AssociateQAppWithUserOutcome QAppsClient::AssociateQAppWithUser(const AssociateQ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +BatchCreateCategoryOutcome QAppsClient::BatchCreateCategory(const BatchCreateCategoryRequest& request) const +{ + AWS_OPERATION_GUARD(BatchCreateCategory); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchCreateCategory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("BatchCreateCategory", "Required field: InstanceId, is not set"); + return BatchCreateCategoryOutcome(Aws::Client::AWSError(QAppsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchCreateCategory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, BatchCreateCategory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchCreateCategory", + {{ 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( + [&]()-> BatchCreateCategoryOutcome { + 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, BatchCreateCategory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/catalog.createCategories"); + return BatchCreateCategoryOutcome(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()}}); +} + +BatchDeleteCategoryOutcome QAppsClient::BatchDeleteCategory(const BatchDeleteCategoryRequest& request) const +{ + AWS_OPERATION_GUARD(BatchDeleteCategory); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchDeleteCategory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("BatchDeleteCategory", "Required field: InstanceId, is not set"); + return BatchDeleteCategoryOutcome(Aws::Client::AWSError(QAppsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchDeleteCategory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, BatchDeleteCategory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchDeleteCategory", + {{ 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( + [&]()-> BatchDeleteCategoryOutcome { + 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, BatchDeleteCategory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/catalog.deleteCategories"); + return BatchDeleteCategoryOutcome(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()}}); +} + +BatchUpdateCategoryOutcome QAppsClient::BatchUpdateCategory(const BatchUpdateCategoryRequest& request) const +{ + AWS_OPERATION_GUARD(BatchUpdateCategory); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchUpdateCategory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("BatchUpdateCategory", "Required field: InstanceId, is not set"); + return BatchUpdateCategoryOutcome(Aws::Client::AWSError(QAppsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchUpdateCategory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, BatchUpdateCategory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchUpdateCategory", + {{ 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( + [&]()-> BatchUpdateCategoryOutcome { + 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, BatchUpdateCategory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/catalog.updateCategories"); + return BatchUpdateCategoryOutcome(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()}}); +} + CreateLibraryItemOutcome QAppsClient::CreateLibraryItem(const CreateLibraryItemRequest& request) const { AWS_OPERATION_GUARD(CreateLibraryItem); @@ -587,6 +687,38 @@ ImportDocumentOutcome QAppsClient::ImportDocument(const ImportDocumentRequest& r {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListCategoriesOutcome QAppsClient::ListCategories(const ListCategoriesRequest& request) const +{ + AWS_OPERATION_GUARD(ListCategories); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCategories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListCategories", "Required field: InstanceId, is not set"); + return ListCategoriesOutcome(Aws::Client::AWSError(QAppsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCategories, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListCategories, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCategories", + {{ 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( + [&]()-> ListCategoriesOutcome { + 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, ListCategories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/catalog.listCategories"); + return ListCategoriesOutcome(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()}}); +} + ListLibraryItemsOutcome QAppsClient::ListLibraryItems(const ListLibraryItemsRequest& request) const { AWS_OPERATION_GUARD(ListLibraryItems); diff --git a/generated/src/aws-cpp-sdk-qapps/source/model/BatchCreateCategoryInputCategory.cpp b/generated/src/aws-cpp-sdk-qapps/source/model/BatchCreateCategoryInputCategory.cpp new file mode 100644 index 00000000000..2a3779fc37a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/source/model/BatchCreateCategoryInputCategory.cpp @@ -0,0 +1,87 @@ +/** + * 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 QApps +{ +namespace Model +{ + +BatchCreateCategoryInputCategory::BatchCreateCategoryInputCategory() : + m_idHasBeenSet(false), + m_titleHasBeenSet(false), + m_colorHasBeenSet(false) +{ +} + +BatchCreateCategoryInputCategory::BatchCreateCategoryInputCategory(JsonView jsonValue) + : BatchCreateCategoryInputCategory() +{ + *this = jsonValue; +} + +BatchCreateCategoryInputCategory& BatchCreateCategoryInputCategory::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("title")) + { + m_title = jsonValue.GetString("title"); + + m_titleHasBeenSet = true; + } + + if(jsonValue.ValueExists("color")) + { + m_color = jsonValue.GetString("color"); + + m_colorHasBeenSet = true; + } + + return *this; +} + +JsonValue BatchCreateCategoryInputCategory::Jsonize() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_titleHasBeenSet) + { + payload.WithString("title", m_title); + + } + + if(m_colorHasBeenSet) + { + payload.WithString("color", m_color); + + } + + return payload; +} + +} // namespace Model +} // namespace QApps +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qapps/source/model/BatchCreateCategoryRequest.cpp b/generated/src/aws-cpp-sdk-qapps/source/model/BatchCreateCategoryRequest.cpp new file mode 100644 index 00000000000..630824f5463 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/source/model/BatchCreateCategoryRequest.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 + +using namespace Aws::QApps::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +BatchCreateCategoryRequest::BatchCreateCategoryRequest() : + m_instanceIdHasBeenSet(false), + m_categoriesHasBeenSet(false) +{ +} + +Aws::String BatchCreateCategoryRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_categoriesHasBeenSet) + { + Aws::Utils::Array categoriesJsonList(m_categories.size()); + for(unsigned categoriesIndex = 0; categoriesIndex < categoriesJsonList.GetLength(); ++categoriesIndex) + { + categoriesJsonList[categoriesIndex].AsObject(m_categories[categoriesIndex].Jsonize()); + } + payload.WithArray("categories", std::move(categoriesJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection BatchCreateCategoryRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_instanceIdHasBeenSet) + { + ss << m_instanceId; + headers.emplace("instance-id", ss.str()); + ss.str(""); + } + + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-qapps/source/model/BatchDeleteCategoryRequest.cpp b/generated/src/aws-cpp-sdk-qapps/source/model/BatchDeleteCategoryRequest.cpp new file mode 100644 index 00000000000..ef087fa5486 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/source/model/BatchDeleteCategoryRequest.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 + +using namespace Aws::QApps::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +BatchDeleteCategoryRequest::BatchDeleteCategoryRequest() : + m_instanceIdHasBeenSet(false), + m_categoriesHasBeenSet(false) +{ +} + +Aws::String BatchDeleteCategoryRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_categoriesHasBeenSet) + { + Aws::Utils::Array categoriesJsonList(m_categories.size()); + for(unsigned categoriesIndex = 0; categoriesIndex < categoriesJsonList.GetLength(); ++categoriesIndex) + { + categoriesJsonList[categoriesIndex].AsString(m_categories[categoriesIndex]); + } + payload.WithArray("categories", std::move(categoriesJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection BatchDeleteCategoryRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_instanceIdHasBeenSet) + { + ss << m_instanceId; + headers.emplace("instance-id", ss.str()); + ss.str(""); + } + + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-qapps/source/model/BatchUpdateCategoryRequest.cpp b/generated/src/aws-cpp-sdk-qapps/source/model/BatchUpdateCategoryRequest.cpp new file mode 100644 index 00000000000..f8bee3c4798 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/source/model/BatchUpdateCategoryRequest.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 + +using namespace Aws::QApps::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +BatchUpdateCategoryRequest::BatchUpdateCategoryRequest() : + m_instanceIdHasBeenSet(false), + m_categoriesHasBeenSet(false) +{ +} + +Aws::String BatchUpdateCategoryRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_categoriesHasBeenSet) + { + Aws::Utils::Array categoriesJsonList(m_categories.size()); + for(unsigned categoriesIndex = 0; categoriesIndex < categoriesJsonList.GetLength(); ++categoriesIndex) + { + categoriesJsonList[categoriesIndex].AsObject(m_categories[categoriesIndex].Jsonize()); + } + payload.WithArray("categories", std::move(categoriesJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection BatchUpdateCategoryRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_instanceIdHasBeenSet) + { + ss << m_instanceId; + headers.emplace("instance-id", ss.str()); + ss.str(""); + } + + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-qapps/source/model/Category.cpp b/generated/src/aws-cpp-sdk-qapps/source/model/Category.cpp index dd8911c555e..ec1bfc07c5a 100644 --- a/generated/src/aws-cpp-sdk-qapps/source/model/Category.cpp +++ b/generated/src/aws-cpp-sdk-qapps/source/model/Category.cpp @@ -20,7 +20,10 @@ namespace Model Category::Category() : m_idHasBeenSet(false), - m_titleHasBeenSet(false) + m_titleHasBeenSet(false), + m_colorHasBeenSet(false), + m_appCount(0), + m_appCountHasBeenSet(false) { } @@ -46,6 +49,20 @@ Category& Category::operator =(JsonView jsonValue) m_titleHasBeenSet = true; } + if(jsonValue.ValueExists("color")) + { + m_color = jsonValue.GetString("color"); + + m_colorHasBeenSet = true; + } + + if(jsonValue.ValueExists("appCount")) + { + m_appCount = jsonValue.GetInteger("appCount"); + + m_appCountHasBeenSet = true; + } + return *this; } @@ -65,6 +82,18 @@ JsonValue Category::Jsonize() const } + if(m_colorHasBeenSet) + { + payload.WithString("color", m_color); + + } + + if(m_appCountHasBeenSet) + { + payload.WithInteger("appCount", m_appCount); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-qapps/source/model/CategoryInput.cpp b/generated/src/aws-cpp-sdk-qapps/source/model/CategoryInput.cpp new file mode 100644 index 00000000000..0a4edf973a7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/source/model/CategoryInput.cpp @@ -0,0 +1,87 @@ +/** + * 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 QApps +{ +namespace Model +{ + +CategoryInput::CategoryInput() : + m_idHasBeenSet(false), + m_titleHasBeenSet(false), + m_colorHasBeenSet(false) +{ +} + +CategoryInput::CategoryInput(JsonView jsonValue) + : CategoryInput() +{ + *this = jsonValue; +} + +CategoryInput& CategoryInput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("title")) + { + m_title = jsonValue.GetString("title"); + + m_titleHasBeenSet = true; + } + + if(jsonValue.ValueExists("color")) + { + m_color = jsonValue.GetString("color"); + + m_colorHasBeenSet = true; + } + + return *this; +} + +JsonValue CategoryInput::Jsonize() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_titleHasBeenSet) + { + payload.WithString("title", m_title); + + } + + if(m_colorHasBeenSet) + { + payload.WithString("color", m_color); + + } + + return payload; +} + +} // namespace Model +} // namespace QApps +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qapps/source/model/ListCategoriesRequest.cpp b/generated/src/aws-cpp-sdk-qapps/source/model/ListCategoriesRequest.cpp new file mode 100644 index 00000000000..ccb60b1ca9d --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/source/model/ListCategoriesRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::QApps::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListCategoriesRequest::ListCategoriesRequest() : + m_instanceIdHasBeenSet(false) +{ +} + +Aws::String ListCategoriesRequest::SerializePayload() const +{ + return {}; +} + +Aws::Http::HeaderValueCollection ListCategoriesRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_instanceIdHasBeenSet) + { + ss << m_instanceId; + headers.emplace("instance-id", ss.str()); + ss.str(""); + } + + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-qapps/source/model/ListCategoriesResult.cpp b/generated/src/aws-cpp-sdk-qapps/source/model/ListCategoriesResult.cpp new file mode 100644 index 00000000000..29bcc5b82bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-qapps/source/model/ListCategoriesResult.cpp @@ -0,0 +1,51 @@ +/** + * 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::QApps::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListCategoriesResult::ListCategoriesResult() +{ +} + +ListCategoriesResult::ListCategoriesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListCategoriesResult& ListCategoriesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("categories")) + { + Aws::Utils::Array categoriesJsonList = jsonValue.GetArray("categories"); + for(unsigned categoriesIndex = 0; categoriesIndex < categoriesJsonList.GetLength(); ++categoriesIndex) + { + m_categories.push_back(categoriesJsonList[categoriesIndex].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-s3control/include/aws/s3control/model/AccessPoint.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AccessPoint.h index f280866f17c..b15836c8bbf 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AccessPoint.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AccessPoint.h @@ -74,7 +74,7 @@ namespace Model /** *

The virtual private cloud (VPC) configuration for this access point, if one * exists.

This element is empty if this access point is an Amazon S3 - * on Outposts access point that is used by other Amazon Web Servicesservices.

+ * on Outposts access point that is used by other Amazon Web Services services.

* */ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessPointResult.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessPointResult.h index b82c559d432..dd50fb4b5e1 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessPointResult.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessPointResult.h @@ -84,8 +84,8 @@ namespace Model /** *

Contains the virtual private cloud (VPC) configuration for the specified * access point.

This element is empty if this access point is an - * Amazon S3 on Outposts access point that is used by other Amazon Web - * Servicesservices.

+ * Amazon S3 on Outposts access point that is used by other Amazon Web Services + * services.

*/ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfiguration = value; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PublicAccessBlockConfiguration.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PublicAccessBlockConfiguration.h index d649dfc5c98..23000c630a4 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PublicAccessBlockConfiguration.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PublicAccessBlockConfiguration.h @@ -91,7 +91,7 @@ namespace Model /** *

Specifies whether Amazon S3 should restrict public bucket policies for * buckets in this account. Setting this element to TRUE restricts - * access to buckets with public policies to only Amazon Web Servicesservice + * access to buckets with public policies to only Amazon Web Services service * principals and authorized users within this account.

Enabling this * setting doesn't affect previously stored bucket policies, except that public and * cross-account access within any public bucket policy, including non-public diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/VerifiedPermissionsClient.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/VerifiedPermissionsClient.h index 913e754daf7..c6df715ee2e 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/VerifiedPermissionsClient.h +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/VerifiedPermissionsClient.h @@ -123,6 +123,35 @@ namespace VerifiedPermissions /* End of legacy constructors due deprecation */ virtual ~VerifiedPermissionsClient(); + /** + *

Retrieves information about a group (batch) of policies.

The + * BatchGetPolicy operation doesn't have its own IAM permission. To + * authorize this operation for Amazon Web Services principals, include the + * permission verifiedpermissions:GetPolicy in their IAM policies.

+ *

See Also:

AWS + * API Reference

+ */ + virtual Model::BatchGetPolicyOutcome BatchGetPolicy(const Model::BatchGetPolicyRequest& request) const; + + /** + * A Callable wrapper for BatchGetPolicy that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::BatchGetPolicyOutcomeCallable BatchGetPolicyCallable(const BatchGetPolicyRequestT& request) const + { + return SubmitCallable(&VerifiedPermissionsClient::BatchGetPolicy, request); + } + + /** + * An Async wrapper for BatchGetPolicy that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void BatchGetPolicyAsync(const BatchGetPolicyRequestT& request, const BatchGetPolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&VerifiedPermissionsClient::BatchGetPolicy, request, handler, context); + } + /** *

Makes a series of decisions about multiple authorization requests for one * principal or resource. Each request contains the equivalent content of an diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/VerifiedPermissionsServiceClientModel.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/VerifiedPermissionsServiceClientModel.h index 5298ecfad91..18bb734a872 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/VerifiedPermissionsServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/VerifiedPermissionsServiceClientModel.h @@ -18,6 +18,7 @@ /* End of generic header includes */ /* Service model headers required in VerifiedPermissionsClient header */ +#include #include #include #include @@ -85,6 +86,7 @@ namespace Aws namespace Model { /* Service model forward declarations required in VerifiedPermissionsClient header */ + class BatchGetPolicyRequest; class BatchIsAuthorizedRequest; class BatchIsAuthorizedWithTokenRequest; class CreateIdentitySourceRequest; @@ -114,6 +116,7 @@ namespace Aws /* End of service model forward declarations required in VerifiedPermissionsClient header */ /* Service model Outcome class definitions */ + typedef Aws::Utils::Outcome BatchGetPolicyOutcome; typedef Aws::Utils::Outcome BatchIsAuthorizedOutcome; typedef Aws::Utils::Outcome BatchIsAuthorizedWithTokenOutcome; typedef Aws::Utils::Outcome CreateIdentitySourceOutcome; @@ -143,6 +146,7 @@ namespace Aws /* End of service model Outcome class definitions */ /* Service model Outcome callable definitions */ + typedef std::future BatchGetPolicyOutcomeCallable; typedef std::future BatchIsAuthorizedOutcomeCallable; typedef std::future BatchIsAuthorizedWithTokenOutcomeCallable; typedef std::future CreateIdentitySourceOutcomeCallable; @@ -175,6 +179,7 @@ namespace Aws class VerifiedPermissionsClient; /* Service model async handlers definitions */ + typedef std::function&) > BatchGetPolicyResponseReceivedHandler; typedef std::function&) > BatchIsAuthorizedResponseReceivedHandler; typedef std::function&) > BatchIsAuthorizedWithTokenResponseReceivedHandler; typedef std::function&) > CreateIdentitySourceResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/AttributeValue.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/AttributeValue.h index 61237c3174f..719ed5886e2 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/AttributeValue.h +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/AttributeValue.h @@ -140,6 +140,38 @@ namespace Model inline AttributeValue& AddRecord(const char* key, AttributeValue&& value) { m_recordHasBeenSet = true; m_record.emplace(key, std::move(value)); return *this; } inline AttributeValue& AddRecord(const char* key, const AttributeValue& value) { m_recordHasBeenSet = true; m_record.emplace(key, value); return *this; } ///@} + + ///@{ + /** + *

An attribute value of ipaddr + * type.

Example: {"ip": "192.168.1.100"}

+ */ + inline const Aws::String& GetIpaddr() const{ return m_ipaddr; } + inline bool IpaddrHasBeenSet() const { return m_ipaddrHasBeenSet; } + inline void SetIpaddr(const Aws::String& value) { m_ipaddrHasBeenSet = true; m_ipaddr = value; } + inline void SetIpaddr(Aws::String&& value) { m_ipaddrHasBeenSet = true; m_ipaddr = std::move(value); } + inline void SetIpaddr(const char* value) { m_ipaddrHasBeenSet = true; m_ipaddr.assign(value); } + inline AttributeValue& WithIpaddr(const Aws::String& value) { SetIpaddr(value); return *this;} + inline AttributeValue& WithIpaddr(Aws::String&& value) { SetIpaddr(std::move(value)); return *this;} + inline AttributeValue& WithIpaddr(const char* value) { SetIpaddr(value); return *this;} + ///@} + + ///@{ + /** + *

An attribute value of decimal + * type.

Example: {"decimal": "1.1"}

+ */ + inline const Aws::String& GetDecimal() const{ return m_decimal; } + inline bool DecimalHasBeenSet() const { return m_decimalHasBeenSet; } + inline void SetDecimal(const Aws::String& value) { m_decimalHasBeenSet = true; m_decimal = value; } + inline void SetDecimal(Aws::String&& value) { m_decimalHasBeenSet = true; m_decimal = std::move(value); } + inline void SetDecimal(const char* value) { m_decimalHasBeenSet = true; m_decimal.assign(value); } + inline AttributeValue& WithDecimal(const Aws::String& value) { SetDecimal(value); return *this;} + inline AttributeValue& WithDecimal(Aws::String&& value) { SetDecimal(std::move(value)); return *this;} + inline AttributeValue& WithDecimal(const char* value) { SetDecimal(value); return *this;} + ///@} private: bool m_boolean; @@ -159,6 +191,12 @@ namespace Model Aws::Map m_record; bool m_recordHasBeenSet = false; + + Aws::String m_ipaddr; + bool m_ipaddrHasBeenSet = false; + + Aws::String m_decimal; + bool m_decimalHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyErrorCode.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyErrorCode.h new file mode 100644 index 00000000000..11fb77b0c90 --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyErrorCode.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 VerifiedPermissions +{ +namespace Model +{ + enum class BatchGetPolicyErrorCode + { + NOT_SET, + POLICY_STORE_NOT_FOUND, + POLICY_NOT_FOUND + }; + +namespace BatchGetPolicyErrorCodeMapper +{ +AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyErrorCode GetBatchGetPolicyErrorCodeForName(const Aws::String& name); + +AWS_VERIFIEDPERMISSIONS_API Aws::String GetNameForBatchGetPolicyErrorCode(BatchGetPolicyErrorCode value); +} // namespace BatchGetPolicyErrorCodeMapper +} // namespace Model +} // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyErrorItem.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyErrorItem.h new file mode 100644 index 00000000000..4ea82d1fc83 --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyErrorItem.h @@ -0,0 +1,112 @@ +/** + * 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 VerifiedPermissions +{ +namespace Model +{ + + /** + *

Contains the information about an error resulting from a + * BatchGetPolicy API call.

See Also:

AWS + * API Reference

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

The error code that was returned.

+ */ + inline const BatchGetPolicyErrorCode& GetCode() const{ return m_code; } + inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } + inline void SetCode(const BatchGetPolicyErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } + inline void SetCode(BatchGetPolicyErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } + inline BatchGetPolicyErrorItem& WithCode(const BatchGetPolicyErrorCode& value) { SetCode(value); return *this;} + inline BatchGetPolicyErrorItem& WithCode(BatchGetPolicyErrorCode&& value) { SetCode(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The identifier of the policy store associated with the failed request.

+ */ + inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; } + inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; } + inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; } + inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); } + inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); } + inline BatchGetPolicyErrorItem& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;} + inline BatchGetPolicyErrorItem& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;} + inline BatchGetPolicyErrorItem& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;} + ///@} + + ///@{ + /** + *

The identifier of the policy associated with the failed request.

+ */ + inline const Aws::String& GetPolicyId() const{ return m_policyId; } + inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; } + inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; } + inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); } + inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); } + inline BatchGetPolicyErrorItem& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;} + inline BatchGetPolicyErrorItem& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;} + inline BatchGetPolicyErrorItem& WithPolicyId(const char* value) { SetPolicyId(value); return *this;} + ///@} + + ///@{ + /** + *

A detailed error message.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline BatchGetPolicyErrorItem& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline BatchGetPolicyErrorItem& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline BatchGetPolicyErrorItem& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + private: + + BatchGetPolicyErrorCode m_code; + bool m_codeHasBeenSet = false; + + Aws::String m_policyStoreId; + bool m_policyStoreIdHasBeenSet = false; + + Aws::String m_policyId; + bool m_policyIdHasBeenSet = false; + + Aws::String m_message; + bool m_messageHasBeenSet = false; + }; + +} // namespace Model +} // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyInputItem.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyInputItem.h new file mode 100644 index 00000000000..c2790aa1be0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyInputItem.h @@ -0,0 +1,80 @@ +/** + * 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 VerifiedPermissions +{ +namespace Model +{ + + /** + *

Information about a policy that you include in a BatchGetPolicy + * API request.

See Also:

AWS + * API Reference

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

The identifier of the policy store where the policy you want information + * about is stored.

+ */ + inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; } + inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; } + inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; } + inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); } + inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); } + inline BatchGetPolicyInputItem& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;} + inline BatchGetPolicyInputItem& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;} + inline BatchGetPolicyInputItem& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;} + ///@} + + ///@{ + /** + *

The identifier of the policy you want information about.

+ */ + inline const Aws::String& GetPolicyId() const{ return m_policyId; } + inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; } + inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; } + inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); } + inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); } + inline BatchGetPolicyInputItem& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;} + inline BatchGetPolicyInputItem& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;} + inline BatchGetPolicyInputItem& WithPolicyId(const char* value) { SetPolicyId(value); return *this;} + ///@} + private: + + Aws::String m_policyStoreId; + bool m_policyStoreIdHasBeenSet = false; + + Aws::String m_policyId; + bool m_policyIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyOutputItem.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyOutputItem.h new file mode 100644 index 00000000000..c2a13dd8f0b --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyOutputItem.h @@ -0,0 +1,145 @@ +/** + * 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 VerifiedPermissions +{ +namespace Model +{ + + /** + *

Contains information about a policy returned from a + * BatchGetPolicy API request.

See Also:

AWS + * API Reference

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

The identifier of the policy store where the policy you want information + * about is stored.

+ */ + inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; } + inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; } + inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; } + inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); } + inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); } + inline BatchGetPolicyOutputItem& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;} + inline BatchGetPolicyOutputItem& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;} + inline BatchGetPolicyOutputItem& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;} + ///@} + + ///@{ + /** + *

The identifier of the policy you want information about.

+ */ + inline const Aws::String& GetPolicyId() const{ return m_policyId; } + inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; } + inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; } + inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); } + inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); } + inline BatchGetPolicyOutputItem& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;} + inline BatchGetPolicyOutputItem& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;} + inline BatchGetPolicyOutputItem& WithPolicyId(const char* value) { SetPolicyId(value); return *this;} + ///@} + + ///@{ + /** + *

The type of the policy. This is one of the following values:

  • + *

    STATIC

  • TEMPLATE_LINKED

    + *
+ */ + inline const PolicyType& GetPolicyType() const{ return m_policyType; } + inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; } + inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; } + inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); } + inline BatchGetPolicyOutputItem& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;} + inline BatchGetPolicyOutputItem& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The policy definition of an item in the list of policies returned.

+ */ + inline const PolicyDefinitionDetail& GetDefinition() const{ return m_definition; } + inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; } + inline void SetDefinition(const PolicyDefinitionDetail& value) { m_definitionHasBeenSet = true; m_definition = value; } + inline void SetDefinition(PolicyDefinitionDetail&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); } + inline BatchGetPolicyOutputItem& WithDefinition(const PolicyDefinitionDetail& value) { SetDefinition(value); return *this;} + inline BatchGetPolicyOutputItem& WithDefinition(PolicyDefinitionDetail&& value) { SetDefinition(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The date and time the policy was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } + inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } + inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } + inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } + inline BatchGetPolicyOutputItem& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} + inline BatchGetPolicyOutputItem& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The date and time the policy was most recently updated.

+ */ + inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; } + inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; } + inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; } + inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); } + inline BatchGetPolicyOutputItem& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;} + inline BatchGetPolicyOutputItem& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_policyStoreId; + bool m_policyStoreIdHasBeenSet = false; + + Aws::String m_policyId; + bool m_policyIdHasBeenSet = false; + + PolicyType m_policyType; + bool m_policyTypeHasBeenSet = false; + + PolicyDefinitionDetail m_definition; + bool m_definitionHasBeenSet = false; + + Aws::Utils::DateTime m_createdDate; + bool m_createdDateHasBeenSet = false; + + Aws::Utils::DateTime m_lastUpdatedDate; + bool m_lastUpdatedDateHasBeenSet = false; + }; + +} // namespace Model +} // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyRequest.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyRequest.h new file mode 100644 index 00000000000..4493996d848 --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyRequest.h @@ -0,0 +1,59 @@ +/** + * 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 VerifiedPermissions +{ +namespace Model +{ + + /** + */ + class BatchGetPolicyRequest : public VerifiedPermissionsRequest + { + public: + AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyRequest(); + + // 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 "BatchGetPolicy"; } + + AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override; + + AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

An array of up to 100 policies you want information about.

+ */ + inline const Aws::Vector& GetRequests() const{ return m_requests; } + inline bool RequestsHasBeenSet() const { return m_requestsHasBeenSet; } + inline void SetRequests(const Aws::Vector& value) { m_requestsHasBeenSet = true; m_requests = value; } + inline void SetRequests(Aws::Vector&& value) { m_requestsHasBeenSet = true; m_requests = std::move(value); } + inline BatchGetPolicyRequest& WithRequests(const Aws::Vector& value) { SetRequests(value); return *this;} + inline BatchGetPolicyRequest& WithRequests(Aws::Vector&& value) { SetRequests(std::move(value)); return *this;} + inline BatchGetPolicyRequest& AddRequests(const BatchGetPolicyInputItem& value) { m_requestsHasBeenSet = true; m_requests.push_back(value); return *this; } + inline BatchGetPolicyRequest& AddRequests(BatchGetPolicyInputItem&& value) { m_requestsHasBeenSet = true; m_requests.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_requests; + bool m_requestsHasBeenSet = false; + }; + +} // namespace Model +} // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyResult.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyResult.h new file mode 100644 index 00000000000..256f7170d0e --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchGetPolicyResult.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace VerifiedPermissions +{ +namespace Model +{ + class BatchGetPolicyResult + { + public: + AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyResult(); + AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyResult(const Aws::AmazonWebServiceResult& result); + AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

Information about the policies listed in the request that were successfully + * returned. These results are returned in the order they were requested.

+ */ + inline const Aws::Vector& GetResults() const{ return m_results; } + inline void SetResults(const Aws::Vector& value) { m_results = value; } + inline void SetResults(Aws::Vector&& value) { m_results = std::move(value); } + inline BatchGetPolicyResult& WithResults(const Aws::Vector& value) { SetResults(value); return *this;} + inline BatchGetPolicyResult& WithResults(Aws::Vector&& value) { SetResults(std::move(value)); return *this;} + inline BatchGetPolicyResult& AddResults(const BatchGetPolicyOutputItem& value) { m_results.push_back(value); return *this; } + inline BatchGetPolicyResult& AddResults(BatchGetPolicyOutputItem&& value) { m_results.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

Information about the policies from the request that resulted in an error. + * These results are returned in the order they were requested.

+ */ + inline const Aws::Vector& GetErrors() const{ return m_errors; } + inline void SetErrors(const Aws::Vector& value) { m_errors = value; } + inline void SetErrors(Aws::Vector&& value) { m_errors = std::move(value); } + inline BatchGetPolicyResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} + inline BatchGetPolicyResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} + inline BatchGetPolicyResult& AddErrors(const BatchGetPolicyErrorItem& value) { m_errors.push_back(value); return *this; } + inline BatchGetPolicyResult& AddErrors(BatchGetPolicyErrorItem&& value) { m_errors.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline BatchGetPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline BatchGetPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline BatchGetPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_results; + + Aws::Vector m_errors; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchIsAuthorizedResult.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchIsAuthorizedResult.h index c3a65b265ae..2cee8e81670 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchIsAuthorizedResult.h +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchIsAuthorizedResult.h @@ -37,7 +37,8 @@ namespace Model ///@{ /** *

A series of Allow or Deny decisions for each - * request, and the policies that produced them.

+ * request, and the policies that produced them. These results are returned in the + * order they were requested.

*/ inline const Aws::Vector& GetResults() const{ return m_results; } inline void SetResults(const Aws::Vector& value) { m_results = value; } diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchIsAuthorizedWithTokenResult.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchIsAuthorizedWithTokenResult.h index 849905774f6..8740be7797e 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchIsAuthorizedWithTokenResult.h +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/BatchIsAuthorizedWithTokenResult.h @@ -49,7 +49,8 @@ namespace Model ///@{ /** *

A series of Allow or Deny decisions for each - * request, and the policies that produced them.

+ * request, and the policies that produced them. These results are returned in the + * order they were requested.

*/ inline const Aws::Vector& GetResults() const{ return m_results; } inline void SetResults(const Aws::Vector& value) { m_results = value; } diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/PolicyItem.h b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/PolicyItem.h index 2f83b4903cc..1adbfb5e704 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/PolicyItem.h +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/include/aws/verifiedpermissions/model/PolicyItem.h @@ -49,8 +49,8 @@ namespace Model ///@{ /** - *

The identifier of the PolicyStore where the policy you want information about - * is stored.

+ *

The identifier of the policy store where the policy you want information + * about is stored.

*/ inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; } inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsClient.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsClient.cpp index ef94c1d55fb..50fac24fdac 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsClient.cpp +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsClient.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -190,6 +191,32 @@ void VerifiedPermissionsClient::OverrideEndpoint(const Aws::String& endpoint) m_endpointProvider->OverrideEndpoint(endpoint); } +BatchGetPolicyOutcome VerifiedPermissionsClient::BatchGetPolicy(const BatchGetPolicyRequest& request) const +{ + AWS_OPERATION_GUARD(BatchGetPolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchGetPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchGetPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, BatchGetPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchGetPolicy", + {{ 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( + [&]()-> BatchGetPolicyOutcome { + 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, BatchGetPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return BatchGetPolicyOutcome(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()}}); +} + BatchIsAuthorizedOutcome VerifiedPermissionsClient::BatchIsAuthorized(const BatchIsAuthorizedRequest& request) const { AWS_OPERATION_GUARD(BatchIsAuthorized); diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/AttributeValue.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/AttributeValue.cpp index c24b5e839d3..de0c2683d4f 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/AttributeValue.cpp +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/AttributeValue.cpp @@ -26,7 +26,9 @@ AttributeValue::AttributeValue() : m_longHasBeenSet(false), m_stringHasBeenSet(false), m_setHasBeenSet(false), - m_recordHasBeenSet(false) + m_recordHasBeenSet(false), + m_ipaddrHasBeenSet(false), + m_decimalHasBeenSet(false) { } @@ -86,6 +88,20 @@ AttributeValue& AttributeValue::operator =(JsonView jsonValue) m_recordHasBeenSet = true; } + if(jsonValue.ValueExists("ipaddr")) + { + m_ipaddr = jsonValue.GetString("ipaddr"); + + m_ipaddrHasBeenSet = true; + } + + if(jsonValue.ValueExists("decimal")) + { + m_decimal = jsonValue.GetString("decimal"); + + m_decimalHasBeenSet = true; + } + return *this; } @@ -139,6 +155,18 @@ JsonValue AttributeValue::Jsonize() const } + if(m_ipaddrHasBeenSet) + { + payload.WithString("ipaddr", m_ipaddr); + + } + + if(m_decimalHasBeenSet) + { + payload.WithString("decimal", m_decimal); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyErrorCode.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyErrorCode.cpp new file mode 100644 index 00000000000..425faa60391 --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyErrorCode.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 VerifiedPermissions + { + namespace Model + { + namespace BatchGetPolicyErrorCodeMapper + { + + static const int POLICY_STORE_NOT_FOUND_HASH = HashingUtils::HashString("POLICY_STORE_NOT_FOUND"); + static const int POLICY_NOT_FOUND_HASH = HashingUtils::HashString("POLICY_NOT_FOUND"); + + + BatchGetPolicyErrorCode GetBatchGetPolicyErrorCodeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == POLICY_STORE_NOT_FOUND_HASH) + { + return BatchGetPolicyErrorCode::POLICY_STORE_NOT_FOUND; + } + else if (hashCode == POLICY_NOT_FOUND_HASH) + { + return BatchGetPolicyErrorCode::POLICY_NOT_FOUND; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return BatchGetPolicyErrorCode::NOT_SET; + } + + Aws::String GetNameForBatchGetPolicyErrorCode(BatchGetPolicyErrorCode enumValue) + { + switch(enumValue) + { + case BatchGetPolicyErrorCode::NOT_SET: + return {}; + case BatchGetPolicyErrorCode::POLICY_STORE_NOT_FOUND: + return "POLICY_STORE_NOT_FOUND"; + case BatchGetPolicyErrorCode::POLICY_NOT_FOUND: + return "POLICY_NOT_FOUND"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace BatchGetPolicyErrorCodeMapper + } // namespace Model + } // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyErrorItem.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyErrorItem.cpp new file mode 100644 index 00000000000..787e4692bb2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyErrorItem.cpp @@ -0,0 +1,101 @@ +/** + * 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 VerifiedPermissions +{ +namespace Model +{ + +BatchGetPolicyErrorItem::BatchGetPolicyErrorItem() : + m_code(BatchGetPolicyErrorCode::NOT_SET), + m_codeHasBeenSet(false), + m_policyStoreIdHasBeenSet(false), + m_policyIdHasBeenSet(false), + m_messageHasBeenSet(false) +{ +} + +BatchGetPolicyErrorItem::BatchGetPolicyErrorItem(JsonView jsonValue) + : BatchGetPolicyErrorItem() +{ + *this = jsonValue; +} + +BatchGetPolicyErrorItem& BatchGetPolicyErrorItem::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("code")) + { + m_code = BatchGetPolicyErrorCodeMapper::GetBatchGetPolicyErrorCodeForName(jsonValue.GetString("code")); + + m_codeHasBeenSet = true; + } + + if(jsonValue.ValueExists("policyStoreId")) + { + m_policyStoreId = jsonValue.GetString("policyStoreId"); + + m_policyStoreIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("policyId")) + { + m_policyId = jsonValue.GetString("policyId"); + + m_policyIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue BatchGetPolicyErrorItem::Jsonize() const +{ + JsonValue payload; + + if(m_codeHasBeenSet) + { + payload.WithString("code", BatchGetPolicyErrorCodeMapper::GetNameForBatchGetPolicyErrorCode(m_code)); + } + + if(m_policyStoreIdHasBeenSet) + { + payload.WithString("policyStoreId", m_policyStoreId); + + } + + if(m_policyIdHasBeenSet) + { + payload.WithString("policyId", m_policyId); + + } + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyInputItem.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyInputItem.cpp new file mode 100644 index 00000000000..f57090c15a5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyInputItem.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 VerifiedPermissions +{ +namespace Model +{ + +BatchGetPolicyInputItem::BatchGetPolicyInputItem() : + m_policyStoreIdHasBeenSet(false), + m_policyIdHasBeenSet(false) +{ +} + +BatchGetPolicyInputItem::BatchGetPolicyInputItem(JsonView jsonValue) + : BatchGetPolicyInputItem() +{ + *this = jsonValue; +} + +BatchGetPolicyInputItem& BatchGetPolicyInputItem::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("policyStoreId")) + { + m_policyStoreId = jsonValue.GetString("policyStoreId"); + + m_policyStoreIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("policyId")) + { + m_policyId = jsonValue.GetString("policyId"); + + m_policyIdHasBeenSet = true; + } + + return *this; +} + +JsonValue BatchGetPolicyInputItem::Jsonize() const +{ + JsonValue payload; + + if(m_policyStoreIdHasBeenSet) + { + payload.WithString("policyStoreId", m_policyStoreId); + + } + + if(m_policyIdHasBeenSet) + { + payload.WithString("policyId", m_policyId); + + } + + return payload; +} + +} // namespace Model +} // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyOutputItem.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyOutputItem.cpp new file mode 100644 index 00000000000..1b5c021ab32 --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyOutputItem.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 VerifiedPermissions +{ +namespace Model +{ + +BatchGetPolicyOutputItem::BatchGetPolicyOutputItem() : + m_policyStoreIdHasBeenSet(false), + m_policyIdHasBeenSet(false), + m_policyType(PolicyType::NOT_SET), + m_policyTypeHasBeenSet(false), + m_definitionHasBeenSet(false), + m_createdDateHasBeenSet(false), + m_lastUpdatedDateHasBeenSet(false) +{ +} + +BatchGetPolicyOutputItem::BatchGetPolicyOutputItem(JsonView jsonValue) + : BatchGetPolicyOutputItem() +{ + *this = jsonValue; +} + +BatchGetPolicyOutputItem& BatchGetPolicyOutputItem::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("policyStoreId")) + { + m_policyStoreId = jsonValue.GetString("policyStoreId"); + + m_policyStoreIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("policyId")) + { + m_policyId = jsonValue.GetString("policyId"); + + m_policyIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("policyType")) + { + m_policyType = PolicyTypeMapper::GetPolicyTypeForName(jsonValue.GetString("policyType")); + + m_policyTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("definition")) + { + m_definition = jsonValue.GetObject("definition"); + + m_definitionHasBeenSet = true; + } + + if(jsonValue.ValueExists("createdDate")) + { + m_createdDate = jsonValue.GetString("createdDate"); + + m_createdDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastUpdatedDate")) + { + m_lastUpdatedDate = jsonValue.GetString("lastUpdatedDate"); + + m_lastUpdatedDateHasBeenSet = true; + } + + return *this; +} + +JsonValue BatchGetPolicyOutputItem::Jsonize() const +{ + JsonValue payload; + + if(m_policyStoreIdHasBeenSet) + { + payload.WithString("policyStoreId", m_policyStoreId); + + } + + if(m_policyIdHasBeenSet) + { + payload.WithString("policyId", m_policyId); + + } + + if(m_policyTypeHasBeenSet) + { + payload.WithString("policyType", PolicyTypeMapper::GetNameForPolicyType(m_policyType)); + } + + if(m_definitionHasBeenSet) + { + payload.WithObject("definition", m_definition.Jsonize()); + + } + + if(m_createdDateHasBeenSet) + { + payload.WithString("createdDate", m_createdDate.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_lastUpdatedDateHasBeenSet) + { + payload.WithString("lastUpdatedDate", m_lastUpdatedDate.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + return payload; +} + +} // namespace Model +} // namespace VerifiedPermissions +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyRequest.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyRequest.cpp new file mode 100644 index 00000000000..27b9bc9730f --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyRequest.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::VerifiedPermissions::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +BatchGetPolicyRequest::BatchGetPolicyRequest() : + m_requestsHasBeenSet(false) +{ +} + +Aws::String BatchGetPolicyRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_requestsHasBeenSet) + { + Aws::Utils::Array requestsJsonList(m_requests.size()); + for(unsigned requestsIndex = 0; requestsIndex < requestsJsonList.GetLength(); ++requestsIndex) + { + requestsJsonList[requestsIndex].AsObject(m_requests[requestsIndex].Jsonize()); + } + payload.WithArray("requests", std::move(requestsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection BatchGetPolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "VerifiedPermissions.BatchGetPolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyResult.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyResult.cpp new file mode 100644 index 00000000000..852d09cf461 --- /dev/null +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/BatchGetPolicyResult.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::VerifiedPermissions::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +BatchGetPolicyResult::BatchGetPolicyResult() +{ +} + +BatchGetPolicyResult::BatchGetPolicyResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +BatchGetPolicyResult& BatchGetPolicyResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("results")) + { + Aws::Utils::Array resultsJsonList = jsonValue.GetArray("results"); + for(unsigned resultsIndex = 0; resultsIndex < resultsJsonList.GetLength(); ++resultsIndex) + { + m_results.push_back(resultsJsonList[resultsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("errors")) + { + Aws::Utils::Array errorsJsonList = jsonValue.GetArray("errors"); + for(unsigned errorsIndex = 0; errorsIndex < errorsJsonList.GetLength(); ++errorsIndex) + { + m_errors.push_back(errorsJsonList[errorsIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index c85d80a59be..02d6e8e2501 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.440" +#define AWS_SDK_VERSION_STRING "1.11.441" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 440 +#define AWS_SDK_VERSION_PATCH 441 diff --git a/tools/code-generation/api-descriptions/codebuild-2016-10-06.normal.json b/tools/code-generation/api-descriptions/codebuild-2016-10-06.normal.json index c4090a825c6..031467a8d83 100644 --- a/tools/code-generation/api-descriptions/codebuild-2016-10-06.normal.json +++ b/tools/code-generation/api-descriptions/codebuild-2016-10-06.normal.json @@ -1580,6 +1580,28 @@ "type":"list", "member":{"shape":"CodeCoverage"} }, + "ComputeConfiguration":{ + "type":"structure", + "members":{ + "vCpu":{ + "shape":"WrapperLong", + "documentation":"

The number of vCPUs of the instance type included in your fleet.

" + }, + "memory":{ + "shape":"WrapperLong", + "documentation":"

The amount of memory of the instance type included in your fleet.

" + }, + "disk":{ + "shape":"WrapperLong", + "documentation":"

The amount of disk space of the instance type included in your fleet.

" + }, + "machineType":{ + "shape":"MachineType", + "documentation":"

The machine type of the instance type included in your fleet.

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

Contains compute attributes. These attributes only need be specified when your project's or fleet's computeType is set to ATTRIBUTE_BASED_COMPUTE.

" + }, "ComputeType":{ "type":"string", "enum":[ @@ -1592,7 +1614,8 @@ "BUILD_LAMBDA_2GB", "BUILD_LAMBDA_4GB", "BUILD_LAMBDA_8GB", - "BUILD_LAMBDA_10GB" + "BUILD_LAMBDA_10GB", + "ATTRIBUTE_BASED_COMPUTE" ] }, "ComputeTypesAllowed":{ @@ -1622,7 +1645,11 @@ }, "computeType":{ "shape":"ComputeType", - "documentation":"

Information about the compute resources the compute fleet uses. Available values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

If you use BUILD_GENERAL1_SMALL:

  • For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.

If you use BUILD_GENERAL1_LARGE:

  • For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.

For more information, see Build environment compute types in the CodeBuild User Guide.

" + "documentation":"

Information about the compute resources the compute fleet uses. Available values include:

  • ATTRIBUTE_BASED_COMPUTE: Specify the amount of vCPUs, memory, disk space, and the type of machine.

    If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes by using computeConfiguration. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see Reserved capacity environment types in the CodeBuild User Guide.

  • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 8 GiB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

  • BUILD_LAMBDA_1GB: Use up to 1 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

If you use BUILD_GENERAL1_SMALL:

  • For environment type LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.

If you use BUILD_GENERAL1_LARGE:

  • For environment type LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.

For more information, see On-demand environment types in the CodeBuild User Guide.

" + }, + "computeConfiguration":{ + "shape":"ComputeConfiguration", + "documentation":"

The compute configuration of the compute fleet. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE.

" }, "scalingConfiguration":{ "shape":"ScalingConfigurationInput", @@ -2255,7 +2282,11 @@ }, "computeType":{ "shape":"ComputeType", - "documentation":"

Information about the compute resources the compute fleet uses. Available values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

If you use BUILD_GENERAL1_SMALL:

  • For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.

If you use BUILD_GENERAL1_LARGE:

  • For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.

For more information, see Build environment compute types in the CodeBuild User Guide.

" + "documentation":"

Information about the compute resources the compute fleet uses. Available values include:

  • ATTRIBUTE_BASED_COMPUTE: Specify the amount of vCPUs, memory, disk space, and the type of machine.

    If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes by using computeConfiguration. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see Reserved capacity environment types in the CodeBuild User Guide.

  • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 8 GiB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

  • BUILD_LAMBDA_1GB: Use up to 1 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

If you use BUILD_GENERAL1_SMALL:

  • For environment type LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.

If you use BUILD_GENERAL1_LARGE:

  • For environment type LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.

For more information, see On-demand environment types in the CodeBuild User Guide.

" + }, + "computeConfiguration":{ + "shape":"ComputeConfiguration", + "documentation":"

The compute configuration of the compute fleet. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE.

" }, "scalingConfiguration":{ "shape":"ScalingConfigurationOutput", @@ -3052,6 +3083,13 @@ }, "documentation":"

Information about build logs in CloudWatch Logs.

" }, + "MachineType":{ + "type":"string", + "enum":[ + "GENERAL", + "NVME" + ] + }, "NetworkInterface":{ "type":"structure", "members":{ @@ -3379,7 +3417,11 @@ }, "computeType":{ "shape":"ComputeType", - "documentation":"

Information about the compute resources the build project uses. Available values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

  • BUILD_LAMBDA_1GB: Use up to 1 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_2GB: Use up to 2 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_4GB: Use up to 4 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_8GB: Use up to 8 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_10GB: Use up to 10 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

If you use BUILD_GENERAL1_SMALL:

  • For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.

If you use BUILD_GENERAL1_LARGE:

  • For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.

If you're using compute fleets during project creation, computeType will be ignored.

For more information, see Build Environment Compute Types in the CodeBuild User Guide.

" + "documentation":"

Information about the compute resources the build project uses. Available values include:

  • ATTRIBUTE_BASED_COMPUTE: Specify the amount of vCPUs, memory, disk space, and the type of machine.

    If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes by using computeConfiguration. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see Reserved capacity environment types in the CodeBuild User Guide.

  • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 8 GiB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

  • BUILD_LAMBDA_1GB: Use up to 1 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

If you use BUILD_GENERAL1_SMALL:

  • For environment type LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.

If you use BUILD_GENERAL1_LARGE:

  • For environment type LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.

For more information, see On-demand environment types in the CodeBuild User Guide.

" + }, + "computeConfiguration":{ + "shape":"ComputeConfiguration", + "documentation":"

The compute configuration of the build project. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE.

" }, "fleet":{ "shape":"ProjectFleet", @@ -4645,7 +4687,11 @@ }, "computeType":{ "shape":"ComputeType", - "documentation":"

Information about the compute resources the compute fleet uses. Available values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

If you use BUILD_GENERAL1_SMALL:

  • For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.

If you use BUILD_GENERAL1_LARGE:

  • For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.

For more information, see Build environment compute types in the CodeBuild User Guide.

" + "documentation":"

Information about the compute resources the compute fleet uses. Available values include:

  • ATTRIBUTE_BASED_COMPUTE: Specify the amount of vCPUs, memory, disk space, and the type of machine.

    If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes by using computeConfiguration. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see Reserved capacity environment types in the CodeBuild User Guide.

  • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 8 GiB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.

  • BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

  • BUILD_LAMBDA_1GB: Use up to 1 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

  • BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

If you use BUILD_GENERAL1_SMALL:

  • For environment type LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

  • For environment type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.

If you use BUILD_GENERAL1_LARGE:

  • For environment type LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for builds.

  • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

  • For environment type ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.

For more information, see On-demand environment types in the CodeBuild User Guide.

" + }, + "computeConfiguration":{ + "shape":"ComputeConfiguration", + "documentation":"

The compute configuration of the compute fleet. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE.

" }, "scalingConfiguration":{ "shape":"ScalingConfigurationInput", diff --git a/tools/code-generation/api-descriptions/guardduty-2017-11-28.normal.json b/tools/code-generation/api-descriptions/guardduty-2017-11-28.normal.json index 2f0fc5a73b9..9990fb869a4 100644 --- a/tools/code-generation/api-descriptions/guardduty-2017-11-28.normal.json +++ b/tools/code-generation/api-descriptions/guardduty-2017-11-28.normal.json @@ -1183,7 +1183,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty member account.

", + "documentation":"

The unique ID of the detector of the GuardDuty member account.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -1585,7 +1585,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector that specifies the GuardDuty service whose findings you want to archive.

", + "documentation":"

The ID of the detector that specifies the GuardDuty service whose findings you want to archive.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -2304,7 +2304,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The detector ID associated with the GuardDuty account for which you want to create a filter.

", + "documentation":"

The detector ID associated with the GuardDuty account for which you want to create a filter.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -2369,7 +2369,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty account for which you want to create an IPSet.

", + "documentation":"

The unique ID of the detector of the GuardDuty account for which you want to create an IPSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -2471,7 +2471,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty account for which you want to associate member accounts.

", + "documentation":"

The unique ID of the detector of the GuardDuty account for which you want to associate member accounts.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -2514,7 +2514,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the GuardDuty detector associated with the publishing destination.

", + "documentation":"

The ID of the GuardDuty detector associated with the publishing destination.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -2569,7 +2569,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector for which you need to create sample findings.

", + "documentation":"

The ID of the detector for which you need to create sample findings.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -2597,7 +2597,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty account for which you want to create a ThreatIntelSet.

", + "documentation":"

The unique ID of the detector of the GuardDuty account for which you want to create a ThreatIntelSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -2878,7 +2878,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that you want to delete.

", + "documentation":"

The unique ID of the detector that you want to delete.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" } @@ -2898,7 +2898,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with the filter.

", + "documentation":"

The unique ID of the detector that is associated with the filter.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -2924,7 +2924,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector associated with the IPSet.

", + "documentation":"

The unique ID of the detector associated with the IPSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -2984,7 +2984,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty account whose members you want to delete.

", + "documentation":"

The unique ID of the detector of the GuardDuty account whose members you want to delete.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -3015,7 +3015,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector associated with the publishing destination to delete.

", + "documentation":"

The unique ID of the detector associated with the publishing destination to delete.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -3041,7 +3041,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with the threatIntelSet.

", + "documentation":"

The unique ID of the detector that is associated with the threatIntelSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -3064,7 +3064,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that the request is associated with.

", + "documentation":"

The unique ID of the detector that the request is associated with.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -3112,7 +3112,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The detector ID of the delegated administrator for which you need to retrieve the information.

", + "documentation":"

The detector ID of the delegated administrator for which you need to retrieve the information.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -3179,7 +3179,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector associated with the publishing destination to retrieve.

", + "documentation":"

The unique ID of the detector associated with the publishing destination to retrieve.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4258,7 +4258,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the GuardDuty detector.

", + "documentation":"

The unique ID of the GuardDuty detector.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4290,7 +4290,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that you want to get.

", + "documentation":"

The unique ID of the detector that you want to get.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" } @@ -4356,7 +4356,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with this filter.

", + "documentation":"

The unique ID of the detector that is associated with this filter.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4417,7 +4417,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector that specifies the GuardDuty service whose findings you want to retrieve.

", + "documentation":"

The ID of the detector that specifies the GuardDuty service whose findings you want to retrieve.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4450,7 +4450,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector whose findings statistics you want to retrieve.

", + "documentation":"

The ID of the detector whose findings statistics you want to retrieve.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4508,7 +4508,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with the IPSet.

", + "documentation":"

The unique ID of the detector that is associated with the IPSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4634,7 +4634,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with this scan.

", + "documentation":"

The unique ID of the detector that is associated with this scan.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" } @@ -4661,7 +4661,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty member account.

", + "documentation":"

The unique ID of the detector of the GuardDuty member account.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" } @@ -4691,7 +4691,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The detector ID for the administrator account.

", + "documentation":"

The detector ID for the administrator account.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4730,7 +4730,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty account whose members you want to retrieve.

", + "documentation":"

The unique ID of the detector of the GuardDuty account whose members you want to retrieve.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4776,7 +4776,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty member account.

", + "documentation":"

The unique ID of the detector of the GuardDuty member account.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4811,7 +4811,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with the threatIntelSet.

", + "documentation":"

The unique ID of the detector that is associated with the threatIntelSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -4869,7 +4869,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector that specifies the GuardDuty service whose usage statistics you want to retrieve.

", + "documentation":"

The ID of the detector that specifies the GuardDuty service whose usage statistics you want to retrieve.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -5157,7 +5157,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty account with which you want to invite members.

", + "documentation":"

The unique ID of the detector of the GuardDuty account with which you want to invite members.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -5664,7 +5664,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector whose coverage details you want to retrieve.

", + "documentation":"

The unique ID of the detector whose coverage details you want to retrieve.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -5745,7 +5745,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with the filter.

", + "documentation":"

The unique ID of the detector that is associated with the filter.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -5785,7 +5785,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector that specifies the GuardDuty service whose findings you want to list.

", + "documentation":"

The ID of the detector that specifies the GuardDuty service whose findings you want to list.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -5833,7 +5833,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with IPSet.

", + "documentation":"

The unique ID of the detector that is associated with IPSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -5931,7 +5931,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with the member.

", + "documentation":"

The unique ID of the detector that is associated with the member.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -6008,7 +6008,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The detector ID for which you want to retrieve the publishing destination.

", + "documentation":"

The detector ID for which you want to retrieve the publishing destination.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -6070,7 +6070,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that is associated with the threatIntelSet.

", + "documentation":"

The unique ID of the detector that is associated with the threatIntelSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -7359,7 +7359,7 @@ }, "Tags":{ "shape":"Tags", - "documentation":"

Instance tag key-value pairs associated with the database instance ID.

", + "documentation":"

Information about the tag key-value pairs.

", "locationName":"tags" } }, @@ -7396,6 +7396,47 @@ }, "documentation":"

Contains information about the user and authentication details for a database instance involved in the finding.

" }, + "RdsLimitlessDbDetails":{ + "type":"structure", + "members":{ + "DbShardGroupIdentifier":{ + "shape":"String", + "documentation":"

The name associated with the Limitless DB shard group.

", + "locationName":"dbShardGroupIdentifier" + }, + "DbShardGroupResourceId":{ + "shape":"String", + "documentation":"

The resource identifier of the DB shard group within the Limitless Database.

", + "locationName":"dbShardGroupResourceId" + }, + "DbShardGroupArn":{ + "shape":"String", + "documentation":"

The Amazon Resource Name (ARN) that identifies the DB shard group.

", + "locationName":"dbShardGroupArn" + }, + "Engine":{ + "shape":"String", + "documentation":"

The database engine of the database instance involved in the finding.

", + "locationName":"engine" + }, + "EngineVersion":{ + "shape":"String", + "documentation":"

The version of the database engine.

", + "locationName":"engineVersion" + }, + "DbClusterIdentifier":{ + "shape":"String", + "documentation":"

The name of the database cluster that is a part of the Limitless Database.

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

Information about the tag-key value pair.

", + "locationName":"tags" + } + }, + "documentation":"

Contains information about the resource type RDSLimitlessDB that is involved in a GuardDuty finding.

" + }, "RdsLoginAttemptAction":{ "type":"structure", "members":{ @@ -7530,6 +7571,11 @@ "documentation":"

Contains information about the database instance to which an anomalous login attempt was made.

", "locationName":"rdsDbInstanceDetails" }, + "RdsLimitlessDbDetails":{ + "shape":"RdsLimitlessDbDetails", + "documentation":"

Contains information about the RDS Limitless database that was involved in a GuardDuty finding.

", + "locationName":"rdsLimitlessDbDetails" + }, "RdsDbUserDetails":{ "shape":"RdsDbUserDetails", "documentation":"

Contains information about the user details through which anomalous login attempt was made.

", @@ -7885,12 +7931,12 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that the request is associated with.

", + "documentation":"

The unique ID of the detector that the request is associated with.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "locationName":"detectorId" }, "AdminDetectorId":{ "shape":"DetectorId", - "documentation":"

The unique detector ID of the administrator account that the request is associated with. If the account is an administrator, the AdminDetectorId will be the same as the one used for DetectorId.

", + "documentation":"

The unique detector ID of the administrator account that the request is associated with. If the account is an administrator, the AdminDetectorId will be the same as the one used for DetectorId.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "locationName":"adminDetectorId" }, "ScanId":{ @@ -8401,7 +8447,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector of the GuardDuty administrator account associated with the member accounts to monitor.

", + "documentation":"

The unique ID of the detector of the GuardDuty administrator account associated with the member accounts to monitor.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -8432,7 +8478,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector associated with the GuardDuty administrator account that is monitoring member accounts.

", + "documentation":"

The unique ID of the detector associated with the GuardDuty administrator account that is monitoring member accounts.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -8464,16 +8510,16 @@ "members":{ "Key":{ "shape":"String", - "documentation":"

The EC2 instance tag key.

", + "documentation":"

Describes the key associated with the tag.

", "locationName":"key" }, "Value":{ "shape":"String", - "documentation":"

The EC2 instance tag value.

", + "documentation":"

Describes the value associated with the tag key.

", "locationName":"value" } }, - "documentation":"

Contains information about a tag associated with the EC2 instance.

" + "documentation":"

Contains information about a tag key-value pair.

" }, "TagKey":{ "type":"string", @@ -8693,7 +8739,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector associated with the findings to unarchive.

", + "documentation":"

The ID of the detector associated with the findings to unarchive.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -8777,7 +8823,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector to update.

", + "documentation":"

The unique ID of the detector to update.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -8819,7 +8865,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that specifies the GuardDuty service where you want to update a filter.

", + "documentation":"

The unique ID of the detector that specifies the GuardDuty service where you want to update a filter.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -8872,7 +8918,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector that is associated with the findings for which you want to update the feedback.

", + "documentation":"

The ID of the detector that is associated with the findings for which you want to update the feedback.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -8907,7 +8953,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The detectorID that specifies the GuardDuty service whose IPSet you want to update.

", + "documentation":"

The detectorID that specifies the GuardDuty service whose IPSet you want to update.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -8972,7 +9018,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The unique ID of the detector that specifies the GuardDuty service where you want to update scan settings.

", + "documentation":"

The unique ID of the detector that specifies the GuardDuty service where you want to update scan settings.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -9002,7 +9048,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The detector ID of the administrator account.

", + "documentation":"

The detector ID of the administrator account.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -9042,7 +9088,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector that configures the delegated administrator.

", + "documentation":"

The ID of the detector that configures the delegated administrator.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -9097,7 +9143,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The ID of the detector associated with the publishing destinations to update.

", + "documentation":"

The ID of the detector associated with the publishing destinations to update.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, @@ -9139,7 +9185,7 @@ "members":{ "DetectorId":{ "shape":"DetectorId", - "documentation":"

The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update.

", + "documentation":"

The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

", "location":"uri", "locationName":"detectorId" }, diff --git a/tools/code-generation/api-descriptions/lakeformation-2017-03-31.normal.json b/tools/code-generation/api-descriptions/lakeformation-2017-03-31.normal.json index 3e6a768ab4b..fc74fd26f38 100644 --- a/tools/code-generation/api-descriptions/lakeformation-2017-03-31.normal.json +++ b/tools/code-generation/api-descriptions/lakeformation-2017-03-31.normal.json @@ -10,7 +10,8 @@ "serviceId":"LakeFormation", "signatureVersion":"v4", "signingName":"lakeformation", - "uid":"lakeformation-2017-03-31" + "uid":"lakeformation-2017-03-31", + "auth":["aws.auth#sigv4"] }, "operations":{ "AddLFTagsToResource":{ @@ -150,6 +151,24 @@ ], "documentation":"

Creates an LF-tag with the specified name and values.

" }, + "CreateLFTagExpression":{ + "name":"CreateLFTagExpression", + "http":{ + "method":"POST", + "requestUri":"/CreateLFTagExpression" + }, + "input":{"shape":"CreateLFTagExpressionRequest"}, + "output":{"shape":"CreateLFTagExpressionResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNumberLimitExceededException"}, + {"shape":"InternalServiceException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"AccessDeniedException"}, + {"shape":"EntityNotFoundException"} + ], + "documentation":"

Creates a new LF-Tag expression with the provided name, description, catalog ID, and expression body. This call fails if a LF-Tag expression with the same name already exists in the caller’s account or if the underlying LF-Tags don't exist. To call this API operation, caller needs the following Lake Formation permissions:

CREATE_LF_TAG_EXPRESSION on the root catalog resource.

GRANT_WITH_LF_TAG_EXPRESSION on all underlying LF-Tag key:value pairs included in the expression.

" + }, "CreateLakeFormationIdentityCenterConfiguration":{ "name":"CreateLakeFormationIdentityCenterConfiguration", "http":{ @@ -220,6 +239,23 @@ ], "documentation":"

Deletes the specified LF-tag given a key name. If the input parameter tag key was not found, then the operation will throw an exception. When you delete an LF-tag, the LFTagPolicy attached to the LF-tag becomes invalid. If the deleted LF-tag was still assigned to any resource, the tag policy attach to the deleted LF-tag will no longer be applied to the resource.

" }, + "DeleteLFTagExpression":{ + "name":"DeleteLFTagExpression", + "http":{ + "method":"POST", + "requestUri":"/DeleteLFTagExpression" + }, + "input":{"shape":"DeleteLFTagExpressionRequest"}, + "output":{"shape":"DeleteLFTagExpressionResponse"}, + "errors":[ + {"shape":"EntityNotFoundException"}, + {"shape":"InvalidInputException"}, + {"shape":"InternalServiceException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Deletes the LF-Tag expression. The caller must be a data lake admin or have DROP permissions on the LF-Tag expression. Deleting a LF-Tag expression will also delete all LFTagPolicy permissions referencing the LF-Tag expression.

" + }, "DeleteLakeFormationIdentityCenterConfiguration":{ "name":"DeleteLakeFormationIdentityCenterConfiguration", "http":{ @@ -440,6 +476,23 @@ ], "documentation":"

Returns an LF-tag definition.

" }, + "GetLFTagExpression":{ + "name":"GetLFTagExpression", + "http":{ + "method":"POST", + "requestUri":"/GetLFTagExpression" + }, + "input":{"shape":"GetLFTagExpressionRequest"}, + "output":{"shape":"GetLFTagExpressionResponse"}, + "errors":[ + {"shape":"EntityNotFoundException"}, + {"shape":"InvalidInputException"}, + {"shape":"InternalServiceException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Returns the details about the LF-Tag expression. The caller must be a data lake admin or must have DESCRIBE permission on the LF-Tag expression resource.

" + }, "GetQueryState":{ "name":"GetQueryState", "http":{ @@ -548,7 +601,7 @@ {"shape":"AccessDeniedException"}, {"shape":"PermissionTypeMismatchException"} ], - "documentation":"

Allows a caller in a secure environment to assume a role with permission to access Amazon S3. In order to vend such credentials, Lake Formation assumes the role associated with a registered location, for example an Amazon S3 bucket, with a scope down policy which restricts the access to a single prefix.

" + "documentation":"

Allows a caller in a secure environment to assume a role with permission to access Amazon S3. In order to vend such credentials, Lake Formation assumes the role associated with a registered location, for example an Amazon S3 bucket, with a scope down policy which restricts the access to a single prefix.

To call this API, the role that the service assumes must have lakeformation:GetDataAccess permission on the resource.

" }, "GetWorkUnitResults":{ "name":"GetWorkUnitResults", @@ -619,6 +672,23 @@ ], "documentation":"

Lists all the data cell filters on a table.

" }, + "ListLFTagExpressions":{ + "name":"ListLFTagExpressions", + "http":{ + "method":"POST", + "requestUri":"/ListLFTagExpressions" + }, + "input":{"shape":"ListLFTagExpressionsRequest"}, + "output":{"shape":"ListLFTagExpressionsResponse"}, + "errors":[ + {"shape":"EntityNotFoundException"}, + {"shape":"InvalidInputException"}, + {"shape":"InternalServiceException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Returns the LF-Tag expressions in caller’s account filtered based on caller's permissions. Data Lake and read only admins implicitly can see all tag expressions in their account, else caller needs DESCRIBE permissions on tag expression.

" + }, "ListLFTags":{ "name":"ListLFTags", "http":{ @@ -744,7 +814,7 @@ {"shape":"ResourceNumberLimitExceededException"}, {"shape":"AccessDeniedException"} ], - "documentation":"

Registers the resource as managed by the Data Catalog.

To add or update data, Lake Formation needs read/write access to the chosen Amazon S3 path. Choose a role that you know has permission to do this, or choose the AWSServiceRoleForLakeFormationDataAccess service-linked role. When you register the first Amazon S3 path, the service-linked role and a new inline policy are created on your behalf. Lake Formation adds the first path to the inline policy and attaches it to the service-linked role. When you register subsequent paths, Lake Formation adds the path to the existing policy.

The following request registers a new location and gives Lake Formation permission to use the service-linked role to access that location.

ResourceArn = arn:aws:s3:::my-bucket UseServiceLinkedRole = true

If UseServiceLinkedRole is not set to true, you must provide or set the RoleArn:

arn:aws:iam::12345:role/my-data-access-role

" + "documentation":"

Registers the resource as managed by the Data Catalog.

To add or update data, Lake Formation needs read/write access to the chosen Amazon S3 path. Choose a role that you know has permission to do this, or choose the AWSServiceRoleForLakeFormationDataAccess service-linked role. When you register the first Amazon S3 path, the service-linked role and a new inline policy are created on your behalf. Lake Formation adds the first path to the inline policy and attaches it to the service-linked role. When you register subsequent paths, Lake Formation adds the path to the existing policy.

The following request registers a new location and gives Lake Formation permission to use the service-linked role to access that location.

ResourceArn = arn:aws:s3:::my-bucket/ UseServiceLinkedRole = true

If UseServiceLinkedRole is not set to true, you must provide or set the RoleArn:

arn:aws:iam::12345:role/my-data-access-role

" }, "RemoveLFTagsFromResource":{ "name":"RemoveLFTagsFromResource", @@ -884,6 +954,24 @@ ], "documentation":"

Updates the list of possible values for the specified LF-tag key. If the LF-tag does not exist, the operation throws an EntityNotFoundException. The values in the delete key values will be deleted from list of possible values. If any value in the delete key values is attached to a resource, then API errors out with a 400 Exception - \"Update not allowed\". Untag the attribute before deleting the LF-tag key's value.

" }, + "UpdateLFTagExpression":{ + "name":"UpdateLFTagExpression", + "http":{ + "method":"POST", + "requestUri":"/UpdateLFTagExpression" + }, + "input":{"shape":"UpdateLFTagExpressionRequest"}, + "output":{"shape":"UpdateLFTagExpressionResponse"}, + "errors":[ + {"shape":"EntityNotFoundException"}, + {"shape":"InvalidInputException"}, + {"shape":"ResourceNumberLimitExceededException"}, + {"shape":"InternalServiceException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Updates the name of the LF-Tag expression to the new description and expression body provided. Updating a LF-Tag expression immediately changes the permission boundaries of all existing LFTagPolicy permission grants that reference the given LF-Tag expression.

" + }, "UpdateLakeFormationIdentityCenterConfiguration":{ "name":"UpdateLakeFormationIdentityCenterConfiguration", "http":{ @@ -1353,6 +1441,36 @@ "members":{ } }, + "CreateLFTagExpressionRequest":{ + "type":"structure", + "required":[ + "Name", + "Expression" + ], + "members":{ + "Name":{ + "shape":"NameString", + "documentation":"

A name for the expression.

" + }, + "Description":{ + "shape":"DescriptionString", + "documentation":"

A description with information about the LF-Tag expression.

" + }, + "CatalogId":{ + "shape":"CatalogIdString", + "documentation":"

The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

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

A list of LF-Tag conditions (key-value pairs).

" + } + } + }, + "CreateLFTagExpressionResponse":{ + "type":"structure", + "members":{ + } + }, "CreateLFTagRequest":{ "type":"structure", "required":[ @@ -1532,7 +1650,8 @@ "LF_TAG", "LF_TAG_POLICY", "LF_TAG_POLICY_DATABASE", - "LF_TAG_POLICY_TABLE" + "LF_TAG_POLICY_TABLE", + "LF_NAMED_TAG_EXPRESSION" ] }, "DataLakeSettings":{ @@ -1645,6 +1764,25 @@ "members":{ } }, + "DeleteLFTagExpressionRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{ + "shape":"NameString", + "documentation":"

The name for the LF-Tag expression.

" + }, + "CatalogId":{ + "shape":"CatalogIdString", + "documentation":"

The identifier for the Data Catalog. By default, the account ID in which the LF-Tag expression is saved.

" + } + } + }, + "DeleteLFTagExpressionResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteLFTagRequest":{ "type":"structure", "required":["TagKey"], @@ -2100,6 +2238,41 @@ } } }, + "GetLFTagExpressionRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{ + "shape":"NameString", + "documentation":"

The name for the LF-Tag expression

" + }, + "CatalogId":{ + "shape":"CatalogIdString", + "documentation":"

The identifier for the Data Catalog. By default, the account ID.

" + } + } + }, + "GetLFTagExpressionResponse":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"NameString", + "documentation":"

The name for the LF-Tag expression.

" + }, + "Description":{ + "shape":"DescriptionString", + "documentation":"

The description with information about the LF-Tag expression.

" + }, + "CatalogId":{ + "shape":"CatalogIdString", + "documentation":"

The identifier for the Data Catalog. By default, the account ID in which the LF-Tag expression is saved.

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

The body of the LF-Tag expression. It is composed of one or more LF-Tag key-value pairs.

" + } + } + }, "GetLFTagRequest":{ "type":"structure", "required":["TagKey"], @@ -2623,6 +2796,47 @@ "type":"list", "member":{"shape":"LFTagError"} }, + "LFTagExpression":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"NameString", + "documentation":"

The name for saved the LF-Tag expression.

" + }, + "Description":{ + "shape":"DescriptionString", + "documentation":"

A structure that contains information about the LF-Tag expression.

" + }, + "CatalogId":{ + "shape":"CatalogIdString", + "documentation":"

The identifier for the Data Catalog. By default, the account ID.

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

A logical expression composed of one or more LF-Tags.

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

A structure consists LF-Tag expression name and catalog ID.

" + }, + "LFTagExpressionResource":{ + "type":"structure", + "required":["Name"], + "members":{ + "CatalogId":{ + "shape":"CatalogIdString", + "documentation":"

The identifier for the Data Catalog. By default, the account ID.

" + }, + "Name":{ + "shape":"NameString", + "documentation":"

The name of the LF-Tag expression to grant permissions on.

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

A structure containing a LF-Tag expression (keys and values).

" + }, + "LFTagExpressionsList":{ + "type":"list", + "member":{"shape":"LFTagExpression"} + }, "LFTagKey":{ "type":"string", "max":128, @@ -2675,10 +2889,7 @@ }, "LFTagPolicyResource":{ "type":"structure", - "required":[ - "ResourceType", - "Expression" - ], + "required":["ResourceType"], "members":{ "CatalogId":{ "shape":"CatalogIdString", @@ -2690,10 +2901,14 @@ }, "Expression":{ "shape":"Expression", - "documentation":"

A list of LF-tag conditions that apply to the resource's LF-tag policy.

" + "documentation":"

A list of LF-tag conditions or a saved expression that apply to the resource's LF-tag policy.

" + }, + "ExpressionName":{ + "shape":"NameString", + "documentation":"

If provided, permissions are granted to the Data Catalog resources whose assigned LF-Tags match the expression body of the saved expression under the provided ExpressionName.

" } }, - "documentation":"

A structure containing a list of LF-tag conditions that apply to a resource's LF-tag policy.

" + "documentation":"

A structure containing a list of LF-tag conditions or saved LF-Tag expressions that apply to a resource's LF-tag policy.

" }, "LFTagValue":{ "type":"string", @@ -2758,6 +2973,36 @@ } } }, + "ListLFTagExpressionsRequest":{ + "type":"structure", + "members":{ + "CatalogId":{ + "shape":"CatalogIdString", + "documentation":"

The identifier for the Data Catalog. By default, the account ID.

" + }, + "MaxResults":{ + "shape":"PageSize", + "documentation":"

The maximum number of results to return.

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

A continuation token, if this is not the first call to retrieve this list.

" + } + } + }, + "ListLFTagExpressionsResponse":{ + "type":"structure", + "members":{ + "LFTagExpressions":{ + "shape":"LFTagExpressionsList", + "documentation":"

Logical expressions composed of one more LF-Tag key-value pairs.

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

A continuation token, if this is not the first call to retrieve this list.

" + } + } + }, "ListLFTagsRequest":{ "type":"structure", "members":{ @@ -3091,7 +3336,8 @@ "DATA_LOCATION_ACCESS", "CREATE_LF_TAG", "ASSOCIATE", - "GRANT_WITH_LF_TAG_EXPRESSION" + "GRANT_WITH_LF_TAG_EXPRESSION", + "CREATE_LF_TAG_EXPRESSION" ] }, "PermissionList":{ @@ -3396,7 +3642,11 @@ }, "LFTagPolicy":{ "shape":"LFTagPolicyResource", - "documentation":"

A list of LF-tag conditions that define a resource's LF-tag policy.

" + "documentation":"

A list of LF-tag conditions or saved LF-Tag expressions that define a resource's LF-tag policy.

" + }, + "LFTagExpression":{ + "shape":"LFTagExpressionResource", + "documentation":"

LF-Tag expression resource. A logical expression composed of one or more LF-Tag key:value pairs.

" } }, "documentation":"

A structure for the resource.

" @@ -4008,6 +4258,36 @@ "members":{ } }, + "UpdateLFTagExpressionRequest":{ + "type":"structure", + "required":[ + "Name", + "Expression" + ], + "members":{ + "Name":{ + "shape":"NameString", + "documentation":"

The name for the LF-Tag expression.

" + }, + "Description":{ + "shape":"DescriptionString", + "documentation":"

The description with information about the saved LF-Tag expression.

" + }, + "CatalogId":{ + "shape":"CatalogIdString", + "documentation":"

The identifier for the Data Catalog. By default, the account ID.

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

The LF-Tag expression body composed of one more LF-Tag key-value pairs.

" + } + } + }, + "UpdateLFTagExpressionResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateLFTagRequest":{ "type":"structure", "required":["TagKey"], @@ -4148,7 +4428,7 @@ }, "StorageOptimizerConfig":{ "shape":"StorageOptimizerConfigMap", - "documentation":"

Name of the table for which to enable the storage optimizer.

" + "documentation":"

Name of the configuration for the storage optimizer.

" } } }, diff --git a/tools/code-generation/api-descriptions/qapps-2023-11-27.normal.json b/tools/code-generation/api-descriptions/qapps-2023-11-27.normal.json index cce8be26c80..a2bf087de15 100644 --- a/tools/code-generation/api-descriptions/qapps-2023-11-27.normal.json +++ b/tools/code-generation/api-descriptions/qapps-2023-11-27.normal.json @@ -52,6 +52,63 @@ ], "documentation":"

This operation creates a link between the user's identity calling the operation and a specific Q App. This is useful to mark the Q App as a favorite for the user if the user doesn't own the Amazon Q App so they can still run it and see it in their inventory of Q Apps.

" }, + "BatchCreateCategory":{ + "name":"BatchCreateCategory", + "http":{ + "method":"POST", + "requestUri":"/catalog.createCategories", + "responseCode":200 + }, + "input":{"shape":"BatchCreateCategoryInput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"UnauthorizedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Creates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.

" + }, + "BatchDeleteCategory":{ + "name":"BatchDeleteCategory", + "http":{ + "method":"POST", + "requestUri":"/catalog.deleteCategories", + "responseCode":200 + }, + "input":{"shape":"BatchDeleteCategoryInput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"UnauthorizedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Deletes Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.

" + }, + "BatchUpdateCategory":{ + "name":"BatchUpdateCategory", + "http":{ + "method":"POST", + "requestUri":"/catalog.updateCategories", + "responseCode":200 + }, + "input":{"shape":"BatchUpdateCategoryInput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"UnauthorizedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Updates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.

" + }, "CreateLibraryItem":{ "name":"CreateLibraryItem", "http":{ @@ -249,6 +306,25 @@ ], "documentation":"

Uploads a file that can then be used either as a default in a FileUploadCard from Q App definition or as a file that is used inside a single Q App run. The purpose of the document is determined by a scope parameter that indicates whether it is at the app definition level or at the app session level.

" }, + "ListCategories":{ + "name":"ListCategories", + "http":{ + "method":"GET", + "requestUri":"/catalog.listCategories", + "responseCode":200 + }, + "input":{"shape":"ListCategoriesInput"}, + "output":{"shape":"ListCategoriesOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"UnauthorizedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Lists the categories of a Amazon Q Business application environment instance. For more information, see Custom labels for Amazon Q Apps.

" + }, "ListLibraryItems":{ "name":"ListLibraryItems", "http":{ @@ -653,6 +729,100 @@ "type":"list", "member":{"shape":"AttributeFilter"} }, + "BatchCreateCategoryInput":{ + "type":"structure", + "required":[ + "instanceId", + "categories" + ], + "members":{ + "instanceId":{ + "shape":"InstanceId", + "documentation":"

The unique identifier of the Amazon Q Business application environment instance.

", + "location":"header", + "locationName":"instance-id" + }, + "categories":{ + "shape":"BatchCreateCategoryInputCategoryList", + "documentation":"

The list of category objects to be created

" + } + } + }, + "BatchCreateCategoryInputCategory":{ + "type":"structure", + "required":["title"], + "members":{ + "id":{ + "shape":"UUID", + "documentation":"

The unique identifier to be associated with a category. If you don't include a value, the category is automatically assigned a unique identifier.

" + }, + "title":{ + "shape":"BatchCreateCategoryInputCategoryTitleString", + "documentation":"

The name of the category.

" + }, + "color":{ + "shape":"BatchCreateCategoryInputCategoryColorString", + "documentation":"

The color to be associated with a category. The color must be a hexadecimal value of either 3 or 6 digits.

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

The category object to be created.

" + }, + "BatchCreateCategoryInputCategoryColorString":{ + "type":"string", + "max":7, + "min":4, + "pattern":"#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})" + }, + "BatchCreateCategoryInputCategoryList":{ + "type":"list", + "member":{"shape":"BatchCreateCategoryInputCategory"}, + "max":10, + "min":0 + }, + "BatchCreateCategoryInputCategoryTitleString":{ + "type":"string", + "max":30, + "min":1, + "pattern":"[a-zA-Z0-9_]+( [a-zA-Z0-9_]+)*" + }, + "BatchDeleteCategoryInput":{ + "type":"structure", + "required":[ + "instanceId", + "categories" + ], + "members":{ + "instanceId":{ + "shape":"InstanceId", + "documentation":"

The unique identifier of the Amazon Q Business application environment instance.

", + "location":"header", + "locationName":"instance-id" + }, + "categories":{ + "shape":"DeleteCategoryInputList", + "documentation":"

The list of IDs of the categories to be deleted.

" + } + } + }, + "BatchUpdateCategoryInput":{ + "type":"structure", + "required":[ + "instanceId", + "categories" + ], + "members":{ + "instanceId":{ + "shape":"InstanceId", + "documentation":"

The unique identifier of the Amazon Q Business application environment instance.

", + "location":"header", + "locationName":"instance-id" + }, + "categories":{ + "shape":"CategoryListInput", + "documentation":"

The list of categories to be updated with their new values.

" + } + } + }, "Boolean":{ "type":"boolean", "box":true @@ -783,6 +953,12 @@ "max":5000, "min":0 }, + "CategoriesList":{ + "type":"list", + "member":{"shape":"Category"}, + "max":10, + "min":0 + }, "Category":{ "type":"structure", "required":[ @@ -797,6 +973,14 @@ "title":{ "shape":"String", "documentation":"

The title or name of the category.

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

The color of the category

" + }, + "appCount":{ + "shape":"Integer", + "documentation":"

The number of published Amazon Q Apps associated with a category

" } }, "documentation":"

A category used to classify and filter library items for Amazon Q Apps.

" @@ -807,12 +991,52 @@ "max":3, "min":0 }, + "CategoryInput":{ + "type":"structure", + "required":[ + "id", + "title" + ], + "members":{ + "id":{ + "shape":"UUID", + "documentation":"

The unique identifier of the category.

" + }, + "title":{ + "shape":"CategoryInputTitleString", + "documentation":"

The name of the category.

" + }, + "color":{ + "shape":"CategoryInputColorString", + "documentation":"

The color of the category, represented as a hexadecimal value of either 3 or 6 digits.

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

A label that web experience users associate with a library item. Web experience users use Categories to tag and filter library items.

" + }, + "CategoryInputColorString":{ + "type":"string", + "max":7, + "min":4, + "pattern":"#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})" + }, + "CategoryInputTitleString":{ + "type":"string", + "max":30, + "min":1, + "pattern":"[a-zA-Z0-9_]+( [a-zA-Z0-9_]+)*" + }, "CategoryList":{ "type":"list", "member":{"shape":"Category"}, "max":3, "min":0 }, + "CategoryListInput":{ + "type":"list", + "member":{"shape":"CategoryInput"}, + "max":10, + "min":0 + }, "ConflictException":{ "type":"structure", "required":[ @@ -1060,6 +1284,12 @@ "max":500, "min":0 }, + "DeleteCategoryInputList":{ + "type":"list", + "member":{"shape":"UUID"}, + "max":10, + "min":0 + }, "DeleteLibraryItemInput":{ "type":"structure", "required":[ @@ -1687,6 +1917,27 @@ "DISABLED" ] }, + "ListCategoriesInput":{ + "type":"structure", + "required":["instanceId"], + "members":{ + "instanceId":{ + "shape":"InstanceId", + "documentation":"

The unique identifier of the Amazon Q Business application environment instance.

", + "location":"header", + "locationName":"instance-id" + } + } + }, + "ListCategoriesOutput":{ + "type":"structure", + "members":{ + "categories":{ + "shape":"CategoriesList", + "documentation":"

The categories of a Amazon Q Business application environment instance.

" + } + } + }, "ListLibraryItemsInput":{ "type":"structure", "required":["instanceId"], @@ -2367,7 +2618,7 @@ }, "UUID":{ "type":"string", - "pattern":"[\\da-f]{8}-[\\da-f]{4}-4[\\da-f]{3}-[89ABab][\\da-f]{3}-[\\da-f]{12}" + "pattern":"[\\da-f]{8}-[\\da-f]{4}-[45][\\da-f]{3}-[89ABab][\\da-f]{3}-[\\da-f]{12}" }, "UnauthorizedException":{ "type":"structure", diff --git a/tools/code-generation/api-descriptions/s3control-2018-08-20.normal.json b/tools/code-generation/api-descriptions/s3control-2018-08-20.normal.json index 9a18ab4c165..44f1e6eb95d 100755 --- a/tools/code-generation/api-descriptions/s3control-2018-08-20.normal.json +++ b/tools/code-generation/api-descriptions/s3control-2018-08-20.normal.json @@ -1765,7 +1765,7 @@ }, "VpcConfiguration":{ "shape":"VpcConfiguration", - "documentation":"

The virtual private cloud (VPC) configuration for this access point, if one exists.

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Servicesservices.

" + "documentation":"

The virtual private cloud (VPC) configuration for this access point, if one exists.

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services services.

" }, "Bucket":{ "shape":"BucketName", @@ -3870,7 +3870,7 @@ }, "VpcConfiguration":{ "shape":"VpcConfiguration", - "documentation":"

Contains the virtual private cloud (VPC) configuration for the specified access point.

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Servicesservices.

" + "documentation":"

Contains the virtual private cloud (VPC) configuration for the specified access point.

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services services.

" }, "PublicAccessBlockConfiguration":{"shape":"PublicAccessBlockConfiguration"}, "CreationDate":{ @@ -5796,9 +5796,11 @@ }, "StorageLensConfigurationList":{ "shape":"StorageLensConfigurationList", - "documentation":"

A list of S3 Storage Lens configurations.

" + "documentation":"

A list of S3 Storage Lens configurations.

", + "locationName":"StorageLensConfiguration" } - } + }, + "locationName":"ListStorageLensConfigurationResult" }, "ListStorageLensGroupEntry":{ "type":"structure", @@ -5852,7 +5854,8 @@ }, "StorageLensGroupList":{ "shape":"StorageLensGroupList", - "documentation":"

The list of Storage Lens groups that exist in the specified home Region.

" + "documentation":"

The list of Storage Lens groups that exist in the specified home Region.

", + "locationName":"StorageLensGroup" } } }, @@ -6498,7 +6501,7 @@ }, "RestrictPublicBuckets":{ "shape":"Setting", - "documentation":"

Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account. Setting this element to TRUE restricts access to buckets with public policies to only Amazon Web Servicesservice principals and authorized users within this account.

Enabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.

This property is not supported for Amazon S3 on Outposts.

", + "documentation":"

Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account. Setting this element to TRUE restricts access to buckets with public policies to only Amazon Web Services service principals and authorized users within this account.

Enabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.

This property is not supported for Amazon S3 on Outposts.

", "locationName":"RestrictPublicBuckets" } }, diff --git a/tools/code-generation/api-descriptions/verifiedpermissions-2021-12-01.normal.json b/tools/code-generation/api-descriptions/verifiedpermissions-2021-12-01.normal.json index 5ec41e26d76..9c57215e874 100644 --- a/tools/code-generation/api-descriptions/verifiedpermissions-2021-12-01.normal.json +++ b/tools/code-generation/api-descriptions/verifiedpermissions-2021-12-01.normal.json @@ -15,6 +15,22 @@ "uid":"verifiedpermissions-2021-12-01" }, "operations":{ + "BatchGetPolicy":{ + "name":"BatchGetPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchGetPolicyInput"}, + "output":{"shape":"BatchGetPolicyOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

Retrieves information about a group (batch) of policies.

The BatchGetPolicy operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permission verifiedpermissions:GetPolicy in their IAM policies.

" + }, "BatchIsAuthorized":{ "name":"BatchIsAuthorized", "http":{ @@ -558,6 +574,14 @@ "record":{ "shape":"RecordAttribute", "documentation":"

An attribute value of Record type.

Example: {\"record\": { \"keyName\": {} } }

" + }, + "ipaddr":{ + "shape":"IpAddr", + "documentation":"

An attribute value of ipaddr type.

Example: {\"ip\": \"192.168.1.100\"}

" + }, + "decimal":{ + "shape":"Decimal", + "documentation":"

An attribute value of decimal type.

Example: {\"decimal\": \"1.1\"}

" } }, "documentation":"

The value of an attribute.

Contains information about the runtime context for a request for which an authorization decision is made.

This data type is used as a member of the ContextDefinition structure which is uses as a request parameter for the IsAuthorized, BatchIsAuthorized, and IsAuthorizedWithToken operations.

", @@ -574,6 +598,138 @@ "max":255, "min":1 }, + "BatchGetPolicyErrorCode":{ + "type":"string", + "enum":[ + "POLICY_STORE_NOT_FOUND", + "POLICY_NOT_FOUND" + ] + }, + "BatchGetPolicyErrorItem":{ + "type":"structure", + "required":[ + "code", + "policyStoreId", + "policyId", + "message" + ], + "members":{ + "code":{ + "shape":"BatchGetPolicyErrorCode", + "documentation":"

The error code that was returned.

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

The identifier of the policy store associated with the failed request.

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

The identifier of the policy associated with the failed request.

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

A detailed error message.

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

Contains the information about an error resulting from a BatchGetPolicy API call.

" + }, + "BatchGetPolicyErrorList":{ + "type":"list", + "member":{"shape":"BatchGetPolicyErrorItem"} + }, + "BatchGetPolicyInput":{ + "type":"structure", + "required":["requests"], + "members":{ + "requests":{ + "shape":"BatchGetPolicyInputList", + "documentation":"

An array of up to 100 policies you want information about.

" + } + } + }, + "BatchGetPolicyInputItem":{ + "type":"structure", + "required":[ + "policyStoreId", + "policyId" + ], + "members":{ + "policyStoreId":{ + "shape":"PolicyStoreId", + "documentation":"

The identifier of the policy store where the policy you want information about is stored.

" + }, + "policyId":{ + "shape":"PolicyId", + "documentation":"

The identifier of the policy you want information about.

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

Information about a policy that you include in a BatchGetPolicy API request.

" + }, + "BatchGetPolicyInputList":{ + "type":"list", + "member":{"shape":"BatchGetPolicyInputItem"}, + "max":100, + "min":1 + }, + "BatchGetPolicyOutput":{ + "type":"structure", + "required":[ + "results", + "errors" + ], + "members":{ + "results":{ + "shape":"BatchGetPolicyOutputList", + "documentation":"

Information about the policies listed in the request that were successfully returned. These results are returned in the order they were requested.

" + }, + "errors":{ + "shape":"BatchGetPolicyErrorList", + "documentation":"

Information about the policies from the request that resulted in an error. These results are returned in the order they were requested.

" + } + } + }, + "BatchGetPolicyOutputItem":{ + "type":"structure", + "required":[ + "policyStoreId", + "policyId", + "policyType", + "definition", + "createdDate", + "lastUpdatedDate" + ], + "members":{ + "policyStoreId":{ + "shape":"PolicyStoreId", + "documentation":"

The identifier of the policy store where the policy you want information about is stored.

" + }, + "policyId":{ + "shape":"PolicyId", + "documentation":"

The identifier of the policy you want information about.

" + }, + "policyType":{ + "shape":"PolicyType", + "documentation":"

The type of the policy. This is one of the following values:

  • STATIC

  • TEMPLATE_LINKED

" + }, + "definition":{ + "shape":"PolicyDefinitionDetail", + "documentation":"

The policy definition of an item in the list of policies returned.

" + }, + "createdDate":{ + "shape":"TimestampFormat", + "documentation":"

The date and time the policy was created.

" + }, + "lastUpdatedDate":{ + "shape":"TimestampFormat", + "documentation":"

The date and time the policy was most recently updated.

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

Contains information about a policy returned from a BatchGetPolicy API request.

" + }, + "BatchGetPolicyOutputList":{ + "type":"list", + "member":{"shape":"BatchGetPolicyOutputItem"} + }, "BatchIsAuthorizedInput":{ "type":"structure", "required":[ @@ -628,7 +784,7 @@ "members":{ "results":{ "shape":"BatchIsAuthorizedOutputList", - "documentation":"

A series of Allow or Deny decisions for each request, and the policies that produced them.

" + "documentation":"

A series of Allow or Deny decisions for each request, and the policies that produced them. These results are returned in the order they were requested.

" } } }, @@ -726,7 +882,7 @@ }, "results":{ "shape":"BatchIsAuthorizedWithTokenOutputList", - "documentation":"

A series of Allow or Deny decisions for each request, and the policies that produced them.

" + "documentation":"

A series of Allow or Deny decisions for each request, and the policies that produced them. These results are returned in the order they were requested.

" } } }, @@ -1193,6 +1349,13 @@ } } }, + "Decimal":{ + "type":"string", + "max":23, + "min":3, + "pattern":"-?\\d{1,15}\\.\\d{1,4}", + "sensitive":true + }, "Decision":{ "type":"string", "enum":[ @@ -1836,6 +1999,13 @@ "fault":true, "retryable":{"throttling":false} }, + "IpAddr":{ + "type":"string", + "max":44, + "min":1, + "pattern":"[0-9a-fA-F\\.:\\/]*", + "sensitive":true + }, "IsAuthorizedInput":{ "type":"structure", "required":["policyStoreId"], @@ -2103,7 +2273,7 @@ "Namespace":{ "type":"string", "max":100, - "min":1, + "min":0, "pattern":".*", "sensitive":true }, @@ -2479,7 +2649,7 @@ "members":{ "policyStoreId":{ "shape":"PolicyStoreId", - "documentation":"

The identifier of the PolicyStore where the policy you want information about is stored.

" + "documentation":"

The identifier of the policy store where the policy you want information about is stored.

" }, "policyId":{ "shape":"PolicyId", @@ -2760,7 +2930,6 @@ }, "SchemaJson":{ "type":"string", - "max":100000, "min":1, "sensitive":true },