diff --git a/VERSION b/VERSION index 1931c2ff412..0aaa452ffc5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.418 \ No newline at end of file +1.11.419 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-codepipeline/include/aws/codepipeline/model/ActionDeclaration.h b/generated/src/aws-cpp-sdk-codepipeline/include/aws/codepipeline/model/ActionDeclaration.h index e4e8b349256..38a82008c8f 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/include/aws/codepipeline/model/ActionDeclaration.h +++ b/generated/src/aws-cpp-sdk-codepipeline/include/aws/codepipeline/model/ActionDeclaration.h @@ -111,6 +111,25 @@ namespace Model inline ActionDeclaration& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; } ///@} + ///@{ + /** + *

The shell commands to run with your compute action in CodePipeline. All + * commands are supported except multi-line formats. While CodeBuild logs and + * permissions are used, you do not need to create any resources in CodeBuild.

+ *

Using compute time for this action will incur separate charges in + * CodeBuild.

+ */ + inline const Aws::Vector& GetCommands() const{ return m_commands; } + inline bool CommandsHasBeenSet() const { return m_commandsHasBeenSet; } + inline void SetCommands(const Aws::Vector& value) { m_commandsHasBeenSet = true; m_commands = value; } + inline void SetCommands(Aws::Vector&& value) { m_commandsHasBeenSet = true; m_commands = std::move(value); } + inline ActionDeclaration& WithCommands(const Aws::Vector& value) { SetCommands(value); return *this;} + inline ActionDeclaration& WithCommands(Aws::Vector&& value) { SetCommands(std::move(value)); return *this;} + inline ActionDeclaration& AddCommands(const Aws::String& value) { m_commandsHasBeenSet = true; m_commands.push_back(value); return *this; } + inline ActionDeclaration& AddCommands(Aws::String&& value) { m_commandsHasBeenSet = true; m_commands.push_back(std::move(value)); return *this; } + inline ActionDeclaration& AddCommands(const char* value) { m_commandsHasBeenSet = true; m_commands.push_back(value); return *this; } + ///@} + ///@{ /** *

The name or ID of the result of the action declaration, such as a test or @@ -141,6 +160,22 @@ namespace Model inline ActionDeclaration& AddInputArtifacts(InputArtifact&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(std::move(value)); return *this; } ///@} + ///@{ + /** + *

The list of variables that are to be exported from the compute action. This + * is specifically CodeBuild environment variables as used for that action.

+ */ + inline const Aws::Vector& GetOutputVariables() const{ return m_outputVariables; } + inline bool OutputVariablesHasBeenSet() const { return m_outputVariablesHasBeenSet; } + inline void SetOutputVariables(const Aws::Vector& value) { m_outputVariablesHasBeenSet = true; m_outputVariables = value; } + inline void SetOutputVariables(Aws::Vector&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables = std::move(value); } + inline ActionDeclaration& WithOutputVariables(const Aws::Vector& value) { SetOutputVariables(value); return *this;} + inline ActionDeclaration& WithOutputVariables(Aws::Vector&& value) { SetOutputVariables(std::move(value)); return *this;} + inline ActionDeclaration& AddOutputVariables(const Aws::String& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.push_back(value); return *this; } + inline ActionDeclaration& AddOutputVariables(Aws::String&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.push_back(std::move(value)); return *this; } + inline ActionDeclaration& AddOutputVariables(const char* value) { m_outputVariablesHasBeenSet = true; m_outputVariables.push_back(value); return *this; } + ///@} + ///@{ /** *

The ARN of the IAM service role that performs the declared action. This is @@ -212,12 +247,18 @@ namespace Model Aws::Map m_configuration; bool m_configurationHasBeenSet = false; + Aws::Vector m_commands; + bool m_commandsHasBeenSet = false; + Aws::Vector m_outputArtifacts; bool m_outputArtifactsHasBeenSet = false; Aws::Vector m_inputArtifacts; bool m_inputArtifactsHasBeenSet = false; + Aws::Vector m_outputVariables; + bool m_outputVariablesHasBeenSet = false; + Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-codepipeline/include/aws/codepipeline/model/OutputArtifact.h b/generated/src/aws-cpp-sdk-codepipeline/include/aws/codepipeline/model/OutputArtifact.h index ac4019ed4e5..b6e223a972c 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/include/aws/codepipeline/model/OutputArtifact.h +++ b/generated/src/aws-cpp-sdk-codepipeline/include/aws/codepipeline/model/OutputArtifact.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -57,10 +58,29 @@ namespace Model inline OutputArtifact& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} inline OutputArtifact& WithName(const char* value) { SetName(value); return *this;} ///@} + + ///@{ + /** + *

The files that you want to associate with the output artifact that will be + * exported from the compute action.

+ */ + inline const Aws::Vector& GetFiles() const{ return m_files; } + inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; } + inline void SetFiles(const Aws::Vector& value) { m_filesHasBeenSet = true; m_files = value; } + inline void SetFiles(Aws::Vector&& value) { m_filesHasBeenSet = true; m_files = std::move(value); } + inline OutputArtifact& WithFiles(const Aws::Vector& value) { SetFiles(value); return *this;} + inline OutputArtifact& WithFiles(Aws::Vector&& value) { SetFiles(std::move(value)); return *this;} + inline OutputArtifact& AddFiles(const Aws::String& value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; } + inline OutputArtifact& AddFiles(Aws::String&& value) { m_filesHasBeenSet = true; m_files.push_back(std::move(value)); return *this; } + inline OutputArtifact& AddFiles(const char* value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; } + ///@} private: Aws::String m_name; bool m_nameHasBeenSet = false; + + Aws::Vector m_files; + bool m_filesHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionDeclaration.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionDeclaration.cpp index 13d0118d87b..52e209375eb 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionDeclaration.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionDeclaration.cpp @@ -24,8 +24,10 @@ ActionDeclaration::ActionDeclaration() : m_runOrder(0), m_runOrderHasBeenSet(false), m_configurationHasBeenSet(false), + m_commandsHasBeenSet(false), m_outputArtifactsHasBeenSet(false), m_inputArtifactsHasBeenSet(false), + m_outputVariablesHasBeenSet(false), m_roleArnHasBeenSet(false), m_regionHasBeenSet(false), m_namespaceHasBeenSet(false), @@ -73,6 +75,16 @@ ActionDeclaration& ActionDeclaration::operator =(JsonView jsonValue) m_configurationHasBeenSet = true; } + if(jsonValue.ValueExists("commands")) + { + Aws::Utils::Array commandsJsonList = jsonValue.GetArray("commands"); + for(unsigned commandsIndex = 0; commandsIndex < commandsJsonList.GetLength(); ++commandsIndex) + { + m_commands.push_back(commandsJsonList[commandsIndex].AsString()); + } + m_commandsHasBeenSet = true; + } + if(jsonValue.ValueExists("outputArtifacts")) { Aws::Utils::Array outputArtifactsJsonList = jsonValue.GetArray("outputArtifacts"); @@ -93,6 +105,16 @@ ActionDeclaration& ActionDeclaration::operator =(JsonView jsonValue) m_inputArtifactsHasBeenSet = true; } + if(jsonValue.ValueExists("outputVariables")) + { + Aws::Utils::Array outputVariablesJsonList = jsonValue.GetArray("outputVariables"); + for(unsigned outputVariablesIndex = 0; outputVariablesIndex < outputVariablesJsonList.GetLength(); ++outputVariablesIndex) + { + m_outputVariables.push_back(outputVariablesJsonList[outputVariablesIndex].AsString()); + } + m_outputVariablesHasBeenSet = true; + } + if(jsonValue.ValueExists("roleArn")) { m_roleArn = jsonValue.GetString("roleArn"); @@ -157,6 +179,17 @@ JsonValue ActionDeclaration::Jsonize() const } + if(m_commandsHasBeenSet) + { + Aws::Utils::Array commandsJsonList(m_commands.size()); + for(unsigned commandsIndex = 0; commandsIndex < commandsJsonList.GetLength(); ++commandsIndex) + { + commandsJsonList[commandsIndex].AsString(m_commands[commandsIndex]); + } + payload.WithArray("commands", std::move(commandsJsonList)); + + } + if(m_outputArtifactsHasBeenSet) { Aws::Utils::Array outputArtifactsJsonList(m_outputArtifacts.size()); @@ -179,6 +212,17 @@ JsonValue ActionDeclaration::Jsonize() const } + if(m_outputVariablesHasBeenSet) + { + Aws::Utils::Array outputVariablesJsonList(m_outputVariables.size()); + for(unsigned outputVariablesIndex = 0; outputVariablesIndex < outputVariablesJsonList.GetLength(); ++outputVariablesIndex) + { + outputVariablesJsonList[outputVariablesIndex].AsString(m_outputVariables[outputVariablesIndex]); + } + payload.WithArray("outputVariables", std::move(outputVariablesJsonList)); + + } + if(m_roleArnHasBeenSet) { payload.WithString("roleArn", m_roleArn); diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/OutputArtifact.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/OutputArtifact.cpp index 43f23f7c4a2..d99edcb2cae 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/OutputArtifact.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/OutputArtifact.cpp @@ -19,7 +19,8 @@ namespace Model { OutputArtifact::OutputArtifact() : - m_nameHasBeenSet(false) + m_nameHasBeenSet(false), + m_filesHasBeenSet(false) { } @@ -38,6 +39,16 @@ OutputArtifact& OutputArtifact::operator =(JsonView jsonValue) m_nameHasBeenSet = true; } + if(jsonValue.ValueExists("files")) + { + Aws::Utils::Array filesJsonList = jsonValue.GetArray("files"); + for(unsigned filesIndex = 0; filesIndex < filesJsonList.GetLength(); ++filesIndex) + { + m_files.push_back(filesJsonList[filesIndex].AsString()); + } + m_filesHasBeenSet = true; + } + return *this; } @@ -51,6 +62,17 @@ JsonValue OutputArtifact::Jsonize() const } + if(m_filesHasBeenSet) + { + Aws::Utils::Array filesJsonList(m_files.size()); + for(unsigned filesIndex = 0; filesIndex < filesJsonList.GetLength(); ++filesIndex) + { + filesJsonList[filesIndex].AsString(m_files[filesIndex]); + } + payload.WithArray("files", std::move(filesJsonList)); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h index fe0fcd0124b..de14af449c4 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h @@ -15358,6 +15358,40 @@ namespace EC2 return SubmitAsync(&EC2Client::ModifyInstanceCapacityReservationAttributes, request, handler, context); } + /** + *

By default, all vCPUs for the instance type are active when you launch an + * instance. When you configure the number of active vCPUs for the instance, it can + * help you save on licensing costs and optimize performance. The base cost of the + * instance remains unchanged.

The number of active vCPUs equals the number + * of threads per CPU core multiplied by the number of cores.

Some + * instance type options do not support this capability. For more information, see + * Supported + * CPU options in the Amazon EC2 User Guide.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ModifyInstanceCpuOptionsOutcome ModifyInstanceCpuOptions(const Model::ModifyInstanceCpuOptionsRequest& request) const; + + /** + * A Callable wrapper for ModifyInstanceCpuOptions that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ModifyInstanceCpuOptionsOutcomeCallable ModifyInstanceCpuOptionsCallable(const ModifyInstanceCpuOptionsRequestT& request) const + { + return SubmitCallable(&EC2Client::ModifyInstanceCpuOptions, request); + } + + /** + * An Async wrapper for ModifyInstanceCpuOptions that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ModifyInstanceCpuOptionsAsync(const ModifyInstanceCpuOptionsRequestT& request, const ModifyInstanceCpuOptionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&EC2Client::ModifyInstanceCpuOptions, request, handler, context); + } + /** *

Modifies the credit option for CPU usage on a running or stopped burstable * performance instance. The credit options are standard and diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h index 467e48ad8df..280c4404e91 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h @@ -485,6 +485,7 @@ #include #include #include +#include #include #include #include @@ -1324,6 +1325,7 @@ namespace Aws class ModifyImageAttributeRequest; class ModifyInstanceAttributeRequest; class ModifyInstanceCapacityReservationAttributesRequest; + class ModifyInstanceCpuOptionsRequest; class ModifyInstanceCreditSpecificationRequest; class ModifyInstanceEventStartTimeRequest; class ModifyInstanceEventWindowRequest; @@ -1954,6 +1956,7 @@ namespace Aws typedef Aws::Utils::Outcome ModifyImageAttributeOutcome; typedef Aws::Utils::Outcome ModifyInstanceAttributeOutcome; typedef Aws::Utils::Outcome ModifyInstanceCapacityReservationAttributesOutcome; + typedef Aws::Utils::Outcome ModifyInstanceCpuOptionsOutcome; typedef Aws::Utils::Outcome ModifyInstanceCreditSpecificationOutcome; typedef Aws::Utils::Outcome ModifyInstanceEventStartTimeOutcome; typedef Aws::Utils::Outcome ModifyInstanceEventWindowOutcome; @@ -2584,6 +2587,7 @@ namespace Aws typedef std::future ModifyImageAttributeOutcomeCallable; typedef std::future ModifyInstanceAttributeOutcomeCallable; typedef std::future ModifyInstanceCapacityReservationAttributesOutcomeCallable; + typedef std::future ModifyInstanceCpuOptionsOutcomeCallable; typedef std::future ModifyInstanceCreditSpecificationOutcomeCallable; typedef std::future ModifyInstanceEventStartTimeOutcomeCallable; typedef std::future ModifyInstanceEventWindowOutcomeCallable; @@ -3217,6 +3221,7 @@ namespace Aws typedef std::function&) > ModifyImageAttributeResponseReceivedHandler; typedef std::function&) > ModifyInstanceAttributeResponseReceivedHandler; typedef std::function&) > ModifyInstanceCapacityReservationAttributesResponseReceivedHandler; + typedef std::function&) > ModifyInstanceCpuOptionsResponseReceivedHandler; typedef std::function&) > ModifyInstanceCreditSpecificationResponseReceivedHandler; typedef std::function&) > ModifyInstanceEventStartTimeResponseReceivedHandler; typedef std::function&) > ModifyInstanceEventWindowResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ConfirmProductInstanceRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ConfirmProductInstanceRequest.h index 89e7ca445fa..1d0b5a7bd2d 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ConfirmProductInstanceRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ConfirmProductInstanceRequest.h @@ -66,7 +66,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateFleetInstance.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateFleetInstance.h index 1d785052814..7a601468502 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateFleetInstance.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateFleetInstance.h @@ -101,8 +101,8 @@ namespace Model ///@{ /** - *

The value is Windows for Windows instances. Otherwise, the value - * is blank.

+ *

The value is windows for Windows instances in an EC2 Fleet. + * Otherwise, the value is blank.

*/ inline const PlatformValues& GetPlatform() const{ return m_platform; } inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreatePlacementGroupRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreatePlacementGroupRequest.h index 3fcb877ae3b..5c32711e637 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreatePlacementGroupRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreatePlacementGroupRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateSpotDatafeedSubscriptionRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateSpotDatafeedSubscriptionRequest.h index aad81bc111f..739e560c457 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateSpotDatafeedSubscriptionRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateSpotDatafeedSubscriptionRequest.h @@ -44,8 +44,8 @@ namespace Model /** *

The name of the Amazon S3 bucket in which to store the Spot Instance data * feed. For more information about bucket names, see Rules - * for bucket naming in the Amazon S3 Developer Guide.

+ * href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Bucket + * naming rules in the Amazon S3 User Guide.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateTransitGatewayVpcAttachmentRequestOptions.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateTransitGatewayVpcAttachmentRequestOptions.h index aef13e7f0c8..9ceb2c5d9c4 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateTransitGatewayVpcAttachmentRequestOptions.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateTransitGatewayVpcAttachmentRequestOptions.h @@ -56,15 +56,17 @@ namespace Model ///@{ /** - *

Enables you to reference a security group across VPCs attached to a transit - * gateway to simplify security group management.

This option is disabled - * by default.

If you don't enable or disable - * SecurityGroupReferencingSupport in the request, the attachment will inherit the - * security group referencing support setting on the transit gateway.

For - * more information about security group referencing, see Security - * group referencing in the Amazon Web Services Transit Gateways - * Guide.

+ *

This parameter is in preview and may not be available for your + * account.

Enables you to reference a security group across VPCs + * attached to a transit gateway. Use this option to simplify security group + * management and control of instance-to-instance traffic across VPCs that are + * connected by transit gateway. You can also use this option to migrate from VPC + * peering (which was the only option that supported security group referencing) to + * transit gateways (which now also support security group referencing). This + * option is disabled by default and there are no additional costs to use this + * feature.

If you don't enable or disable SecurityGroupReferencingSupport + * in the request, the attachment will inherit the security group referencing + * support setting on the transit gateway.

*/ inline const SecurityGroupReferencingSupportValue& GetSecurityGroupReferencingSupport() const{ return m_securityGroupReferencingSupport; } inline bool SecurityGroupReferencingSupportHasBeenSet() const { return m_securityGroupReferencingSupportHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DeletePlacementGroupRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DeletePlacementGroupRequest.h index 74c7e52a166..347f62e0604 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DeletePlacementGroupRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DeletePlacementGroupRequest.h @@ -38,7 +38,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeFleetsInstances.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeFleetsInstances.h index 56288484fba..7793206c6a2 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeFleetsInstances.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeFleetsInstances.h @@ -101,8 +101,8 @@ namespace Model ///@{ /** - *

The value is Windows for Windows instances. Otherwise, the value - * is blank.

+ *

The value is windows for Windows instances in an EC2 Fleet. + * Otherwise, the value is blank.

*/ inline const PlatformValues& GetPlatform() const{ return m_platform; } inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceAttributeRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceAttributeRequest.h index 39c6d49004e..781c53e6c7f 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceAttributeRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceAttributeRequest.h @@ -52,7 +52,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceCreditSpecificationsRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceCreditSpecificationsRequest.h index 72d7ed41b28..74d082ed0b6 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceCreditSpecificationsRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceCreditSpecificationsRequest.h @@ -40,7 +40,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceStatusRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceStatusRequest.h index fd2c2297e00..fa3d28dd61d 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceStatusRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceStatusRequest.h @@ -138,7 +138,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceTopologyRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceTopologyRequest.h index 05e68d6e826..40641f474c9 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceTopologyRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstanceTopologyRequest.h @@ -40,7 +40,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstancesRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstancesRequest.h index 97462c1c22f..8f14bb956e9 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribeInstancesRequest.h @@ -362,7 +362,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribePlacementGroupsRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribePlacementGroupsRequest.h index 4333b47222f..1078661e0b2 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribePlacementGroupsRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DescribePlacementGroupsRequest.h @@ -70,7 +70,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetConsoleOutputRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetConsoleOutputRequest.h index c203657a2c2..aee4182f08f 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetConsoleOutputRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetConsoleOutputRequest.h @@ -52,7 +52,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetConsoleScreenshotRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetConsoleScreenshotRequest.h index 74866104f01..366a9b7d4e4 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetConsoleScreenshotRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetConsoleScreenshotRequest.h @@ -38,7 +38,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetDefaultCreditSpecificationRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetDefaultCreditSpecificationRequest.h index fb50634c557..5a6a37a1c45 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetDefaultCreditSpecificationRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetDefaultCreditSpecificationRequest.h @@ -38,7 +38,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceMetadataDefaultsRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceMetadataDefaultsRequest.h index 17f6017cdf6..39c573ae1b7 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceMetadataDefaultsRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceMetadataDefaultsRequest.h @@ -36,7 +36,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceUefiDataRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceUefiDataRequest.h index 01bb7bf4f67..59fcde62653 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceUefiDataRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetInstanceUefiDataRequest.h @@ -52,7 +52,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetPasswordDataRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetPasswordDataRequest.h index 8bf85af817b..324d3bba5ea 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetPasswordDataRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetPasswordDataRequest.h @@ -52,7 +52,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyDefaultCreditSpecificationRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyDefaultCreditSpecificationRequest.h index f2842a114a8..b69dde1e1e5 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyDefaultCreditSpecificationRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyDefaultCreditSpecificationRequest.h @@ -39,7 +39,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceAttributeRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceAttributeRequest.h index 254fbc48d09..c9f1e9e0e6a 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceAttributeRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceAttributeRequest.h @@ -118,7 +118,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCpuOptionsRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCpuOptionsRequest.h new file mode 100644 index 00000000000..6d1acc376b0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCpuOptionsRequest.h @@ -0,0 +1,102 @@ +/** + * 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 EC2 +{ +namespace Model +{ + + /** + */ + class ModifyInstanceCpuOptionsRequest : public EC2Request + { + public: + AWS_EC2_API ModifyInstanceCpuOptionsRequest(); + + // 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 "ModifyInstanceCpuOptions"; } + + AWS_EC2_API Aws::String SerializePayload() const override; + + protected: + AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + ///@{ + /** + *

The ID of the instance to update.

+ */ + 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 ModifyInstanceCpuOptionsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} + inline ModifyInstanceCpuOptionsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} + inline ModifyInstanceCpuOptionsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} + ///@} + + ///@{ + /** + *

The number of CPU cores to activate for the specified instance.

+ */ + inline int GetCoreCount() const{ return m_coreCount; } + inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; } + inline void SetCoreCount(int value) { m_coreCountHasBeenSet = true; m_coreCount = value; } + inline ModifyInstanceCpuOptionsRequest& WithCoreCount(int value) { SetCoreCount(value); return *this;} + ///@} + + ///@{ + /** + *

The number of threads to run for each CPU core.

+ */ + inline int GetThreadsPerCore() const{ return m_threadsPerCore; } + inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; } + inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; } + inline ModifyInstanceCpuOptionsRequest& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;} + ///@} + + ///@{ + /** + *

Checks whether you have the required permissions for the operation, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline bool GetDryRun() const{ return m_dryRun; } + inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } + inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } + inline ModifyInstanceCpuOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} + ///@} + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + int m_coreCount; + bool m_coreCountHasBeenSet = false; + + int m_threadsPerCore; + bool m_threadsPerCoreHasBeenSet = false; + + bool m_dryRun; + bool m_dryRunHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCpuOptionsResponse.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCpuOptionsResponse.h new file mode 100644 index 00000000000..d963ae6f839 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCpuOptionsResponse.h @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + class ModifyInstanceCpuOptionsResponse + { + public: + AWS_EC2_API ModifyInstanceCpuOptionsResponse(); + AWS_EC2_API ModifyInstanceCpuOptionsResponse(const Aws::AmazonWebServiceResult& result); + AWS_EC2_API ModifyInstanceCpuOptionsResponse& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The ID of the instance that was updated.

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

The number of CPU cores that are running for the specified instance after the + * update.

+ */ + inline int GetCoreCount() const{ return m_coreCount; } + inline void SetCoreCount(int value) { m_coreCount = value; } + inline ModifyInstanceCpuOptionsResponse& WithCoreCount(int value) { SetCoreCount(value); return *this;} + ///@} + + ///@{ + /** + *

The number of threads that are running per CPU core for the specified + * instance after the update.

+ */ + inline int GetThreadsPerCore() const{ return m_threadsPerCore; } + inline void SetThreadsPerCore(int value) { m_threadsPerCore = value; } + inline ModifyInstanceCpuOptionsResponse& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;} + ///@} + + ///@{ + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + inline ModifyInstanceCpuOptionsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + inline ModifyInstanceCpuOptionsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_instanceId; + + int m_coreCount; + + int m_threadsPerCore; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCreditSpecificationRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCreditSpecificationRequest.h index eaccce84f38..c540ba6280a 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCreditSpecificationRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceCreditSpecificationRequest.h @@ -40,7 +40,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceEventStartTimeRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceEventStartTimeRequest.h index 81e997c5656..d745f9fb464 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceEventStartTimeRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceEventStartTimeRequest.h @@ -39,7 +39,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceMetadataDefaultsRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceMetadataDefaultsRequest.h index c12886f109d..304bcd4fac9 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceMetadataDefaultsRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyInstanceMetadataDefaultsRequest.h @@ -97,7 +97,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyTransitGatewayOptions.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyTransitGatewayOptions.h index ca5387e246c..d4ba5302cc8 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyTransitGatewayOptions.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyTransitGatewayOptions.h @@ -103,12 +103,15 @@ namespace Model ///@{ /** - *

Enables you to reference a security group across VPCs attached to a transit - * gateway to simplify security group management.

This option is disabled - * by default.

For more information about security group referencing, see Security - * group referencing in the Amazon Web Services Transit Gateways - * Guide.

+ *

This parameter is in preview and may not be available for your + * account.

Enables you to reference a security group across VPCs + * attached to a transit gateway. Use this option to simplify security group + * management and control of instance-to-instance traffic across VPCs that are + * connected by transit gateway. You can also use this option to migrate from VPC + * peering (which was the only option that supported security group referencing) to + * transit gateways (which now also support security group referencing). This + * option is disabled by default and there are no additional costs to use this + * feature.

*/ inline const SecurityGroupReferencingSupportValue& GetSecurityGroupReferencingSupport() const{ return m_securityGroupReferencingSupport; } inline bool SecurityGroupReferencingSupportHasBeenSet() const { return m_securityGroupReferencingSupportHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyTransitGatewayVpcAttachmentRequestOptions.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyTransitGatewayVpcAttachmentRequestOptions.h index 645eb1e940d..8522bf7890b 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyTransitGatewayVpcAttachmentRequestOptions.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ModifyTransitGatewayVpcAttachmentRequestOptions.h @@ -56,12 +56,15 @@ namespace Model ///@{ /** - *

Enables you to reference a security group across VPCs attached to a transit - * gateway to simplify security group management.

This option is disabled - * by default.

For more information about security group referencing, see Security - * group referencing in the Amazon Web Services Transit Gateways - * Guide.

+ *

This parameter is in preview and may not be available for your + * account.

Enables you to reference a security group across VPCs + * attached to a transit gateway. Use this option to simplify security group + * management and control of instance-to-instance traffic across VPCs that are + * connected by transit gateway. You can also use this option to migrate from VPC + * peering (which was the only option that supported security group referencing) to + * transit gateways (which now also support security group referencing). This + * option is disabled by default and there are no additional costs to use this + * feature.

*/ inline const SecurityGroupReferencingSupportValue& GetSecurityGroupReferencingSupport() const{ return m_securityGroupReferencingSupport; } inline bool SecurityGroupReferencingSupportHasBeenSet() const { return m_securityGroupReferencingSupportHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/MonitorInstancesRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/MonitorInstancesRequest.h index d56d9e2dde1..d2bbdcf8644 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/MonitorInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/MonitorInstancesRequest.h @@ -54,7 +54,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/RebootInstancesRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/RebootInstancesRequest.h index ea537403764..8bb96c23721 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/RebootInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/RebootInstancesRequest.h @@ -54,7 +54,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ReportInstanceStatusRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ReportInstanceStatusRequest.h index b0434447747..308ac21050a 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ReportInstanceStatusRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ReportInstanceStatusRequest.h @@ -56,7 +56,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ResetInstanceAttributeRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ResetInstanceAttributeRequest.h index 4754be05965..d1ad43cf959 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ResetInstanceAttributeRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ResetInstanceAttributeRequest.h @@ -53,7 +53,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/RunInstancesRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/RunInstancesRequest.h index bf0222b9e5b..438dfd6ddb0 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/RunInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/RunInstancesRequest.h @@ -373,7 +373,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/SendDiagnosticInterruptRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/SendDiagnosticInterruptRequest.h index 32a2715ed67..596c7a1a765 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/SendDiagnosticInterruptRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/SendDiagnosticInterruptRequest.h @@ -52,7 +52,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/StartInstancesRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/StartInstancesRequest.h index c100a0ecee9..fe047dece9e 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/StartInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/StartInstancesRequest.h @@ -68,7 +68,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/StopInstancesRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/StopInstancesRequest.h index 859ff05b64d..f2a3f7d799b 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/StopInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/StopInstancesRequest.h @@ -69,7 +69,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TerminateInstancesRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TerminateInstancesRequest.h index e465bcee668..842a7d7f4c3 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TerminateInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TerminateInstancesRequest.h @@ -55,7 +55,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayOptions.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayOptions.h index 4751338207b..0dd4370122b 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayOptions.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayOptions.h @@ -166,12 +166,15 @@ namespace Model ///@{ /** - *

Enables you to reference a security group across VPCs attached to a transit - * gateway to simplify security group management.

This option is enabled by - * default.

For more information about security group referencing, see Security - * group referencing in the Amazon Web Services Transit Gateways - * Guide.

+ *

This parameter is in preview and may not be available for your + * account.

Enables you to reference a security group across VPCs + * attached to a transit gateway. Use this option to simplify security group + * management and control of instance-to-instance traffic across VPCs that are + * connected by transit gateway. You can also use this option to migrate from VPC + * peering (which was the only option that supported security group referencing) to + * transit gateways (which now also support security group referencing). This + * option is disabled by default and there are no additional costs to use this + * feature.

*/ inline const SecurityGroupReferencingSupportValue& GetSecurityGroupReferencingSupport() const{ return m_securityGroupReferencingSupport; } inline bool SecurityGroupReferencingSupportHasBeenSet() const { return m_securityGroupReferencingSupportHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayRequestOptions.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayRequestOptions.h index 6c729d48302..9d9ce7de2c1 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayRequestOptions.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayRequestOptions.h @@ -125,12 +125,15 @@ namespace Model ///@{ /** - *

Enables you to reference a security group across VPCs attached to a transit - * gateway to simplify security group management.

This option is disabled - * by default.

For more information about security group referencing, see Security - * group referencing in the Amazon Web Services Transit Gateways - * Guide.

+ *

This parameter is in preview and may not be available for your + * account.

Enables you to reference a security group across VPCs + * attached to a transit gateway. Use this option to simplify security group + * management and control of instance-to-instance traffic across VPCs that are + * connected by transit gateway. You can also use this option to migrate from VPC + * peering (which was the only option that supported security group referencing) to + * transit gateways (which now also support security group referencing). This + * option is disabled by default and there are no additional costs to use this + * feature.

*/ inline const SecurityGroupReferencingSupportValue& GetSecurityGroupReferencingSupport() const{ return m_securityGroupReferencingSupport; } inline bool SecurityGroupReferencingSupportHasBeenSet() const { return m_securityGroupReferencingSupportHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayVpcAttachmentOptions.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayVpcAttachmentOptions.h index d3a882f8298..248eaad6261 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayVpcAttachmentOptions.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayVpcAttachmentOptions.h @@ -56,12 +56,15 @@ namespace Model ///@{ /** - *

Enables you to reference a security group across VPCs attached to a transit - * gateway to simplify security group management.

This option is disabled - * by default.

For more information about security group referencing, see Security - * group referencing in the Amazon Web Services Transit Gateways - * Guide.

+ *

This parameter is in preview and may not be available for your + * account.

Enables you to reference a security group across VPCs + * attached to a transit gateway. Use this option to simplify security group + * management and control of instance-to-instance traffic across VPCs that are + * connected by transit gateway. You can also use this option to migrate from VPC + * peering (which was the only option that supported security group referencing) to + * transit gateways (which now also support security group referencing). This + * option is disabled by default and there are no additional costs to use this + * feature.

*/ inline const SecurityGroupReferencingSupportValue& GetSecurityGroupReferencingSupport() const{ return m_securityGroupReferencingSupport; } inline bool SecurityGroupReferencingSupportHasBeenSet() const { return m_securityGroupReferencingSupportHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/UnmonitorInstancesRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/UnmonitorInstancesRequest.h index 88d09a4f648..95c252f8b4d 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/UnmonitorInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/UnmonitorInstancesRequest.h @@ -54,7 +54,7 @@ namespace Model ///@{ /** - *

Checks whether you have the required permissions for the action, without + *

Checks whether you have the required permissions for the operation, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp index ae7c54b5dfb..bc0ebab6fb1 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -120,7 +121,6 @@ #include #include #include -#include #include @@ -293,6 +293,32 @@ ModifyInstanceCapacityReservationAttributesOutcome EC2Client::ModifyInstanceCapa {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ModifyInstanceCpuOptionsOutcome EC2Client::ModifyInstanceCpuOptions(const ModifyInstanceCpuOptionsRequest& request) const +{ + AWS_OPERATION_GUARD(ModifyInstanceCpuOptions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyInstanceCpuOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyInstanceCpuOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ModifyInstanceCpuOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyInstanceCpuOptionsOutcome { + 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, ModifyInstanceCpuOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyInstanceCpuOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ModifyInstanceCreditSpecificationOutcome EC2Client::ModifyInstanceCreditSpecification(const ModifyInstanceCreditSpecificationRequest& request) const { AWS_OPERATION_GUARD(ModifyInstanceCreditSpecification); @@ -2711,29 +2737,3 @@ RestoreAddressToClassicOutcome EC2Client::RestoreAddressToClassic(const RestoreA {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RestoreImageFromRecycleBinOutcome EC2Client::RestoreImageFromRecycleBin(const RestoreImageFromRecycleBinRequest& request) const -{ - AWS_OPERATION_GUARD(RestoreImageFromRecycleBin); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RestoreImageFromRecycleBin, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RestoreImageFromRecycleBin, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RestoreImageFromRecycleBin, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RestoreImageFromRecycleBinOutcome { - 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, RestoreImageFromRecycleBin, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RestoreImageFromRecycleBinOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client6.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client6.cpp index 30047985c49..14608a8ad69 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client6.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client6.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -64,6 +65,32 @@ using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; +RestoreImageFromRecycleBinOutcome EC2Client::RestoreImageFromRecycleBin(const RestoreImageFromRecycleBinRequest& request) const +{ + AWS_OPERATION_GUARD(RestoreImageFromRecycleBin); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RestoreImageFromRecycleBin, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RestoreImageFromRecycleBin, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, RestoreImageFromRecycleBin, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> RestoreImageFromRecycleBinOutcome { + 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, RestoreImageFromRecycleBin, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RestoreImageFromRecycleBinOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + RestoreManagedPrefixListVersionOutcome EC2Client::RestoreManagedPrefixListVersion(const RestoreManagedPrefixListVersionRequest& request) const { AWS_OPERATION_GUARD(RestoreManagedPrefixListVersion); diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ModifyInstanceCpuOptionsRequest.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ModifyInstanceCpuOptionsRequest.cpp new file mode 100644 index 00000000000..7b928d00fb1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ModifyInstanceCpuOptionsRequest.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::EC2::Model; +using namespace Aws::Utils; + +ModifyInstanceCpuOptionsRequest::ModifyInstanceCpuOptionsRequest() : + m_instanceIdHasBeenSet(false), + m_coreCount(0), + m_coreCountHasBeenSet(false), + m_threadsPerCore(0), + m_threadsPerCoreHasBeenSet(false), + m_dryRun(false), + m_dryRunHasBeenSet(false) +{ +} + +Aws::String ModifyInstanceCpuOptionsRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=ModifyInstanceCpuOptions&"; + if(m_instanceIdHasBeenSet) + { + ss << "InstanceId=" << StringUtils::URLEncode(m_instanceId.c_str()) << "&"; + } + + if(m_coreCountHasBeenSet) + { + ss << "CoreCount=" << m_coreCount << "&"; + } + + if(m_threadsPerCoreHasBeenSet) + { + ss << "ThreadsPerCore=" << m_threadsPerCore << "&"; + } + + if(m_dryRunHasBeenSet) + { + ss << "DryRun=" << std::boolalpha << m_dryRun << "&"; + } + + ss << "Version=2016-11-15"; + return ss.str(); +} + + +void ModifyInstanceCpuOptionsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ModifyInstanceCpuOptionsResponse.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ModifyInstanceCpuOptionsResponse.cpp new file mode 100644 index 00000000000..1f2cd50c75c --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ModifyInstanceCpuOptionsResponse.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::EC2::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +ModifyInstanceCpuOptionsResponse::ModifyInstanceCpuOptionsResponse() : + m_coreCount(0), + m_threadsPerCore(0) +{ +} + +ModifyInstanceCpuOptionsResponse::ModifyInstanceCpuOptionsResponse(const Aws::AmazonWebServiceResult& result) + : ModifyInstanceCpuOptionsResponse() +{ + *this = result; +} + +ModifyInstanceCpuOptionsResponse& ModifyInstanceCpuOptionsResponse::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "ModifyInstanceCpuOptionsResponse")) + { + resultNode = rootNode.FirstChild("ModifyInstanceCpuOptionsResponse"); + } + + if(!resultNode.IsNull()) + { + XmlNode instanceIdNode = resultNode.FirstChild("instanceId"); + if(!instanceIdNode.IsNull()) + { + m_instanceId = Aws::Utils::Xml::DecodeEscapedXmlText(instanceIdNode.GetText()); + } + XmlNode coreCountNode = resultNode.FirstChild("coreCount"); + if(!coreCountNode.IsNull()) + { + m_coreCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(coreCountNode.GetText()).c_str()).c_str()); + } + XmlNode threadsPerCoreNode = resultNode.FirstChild("threadsPerCore"); + if(!threadsPerCoreNode.IsNull()) + { + m_threadsPerCore = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(threadsPerCoreNode.GetText()).c_str()).c_str()); + } + } + + if (!rootNode.IsNull()) { + XmlNode requestIdNode = rootNode.FirstChild("requestId"); + if (!requestIdNode.IsNull()) + { + m_responseMetadata.SetRequestId(StringUtils::Trim(requestIdNode.GetText().c_str())); + } + AWS_LOGSTREAM_DEBUG("Aws::EC2::Model::ModifyInstanceCpuOptionsResponse", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h index a479f35dd25..e088857e94d 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h @@ -180,8 +180,8 @@ namespace IoT } /** - *

Associates a software bill of materials (SBOM) with a specific software - * package version.

Requires permission to access the Associates the selected software bill of materials (SBOM) with a specific + * software package version.

Requires permission to access the AssociateSbomWithPackageVersion * action.

See Also:

AWS @@ -614,7 +614,11 @@ namespace IoT } /** - *

Creates a billing group.

Requires permission to access the Creates a billing group. If this call is made multiple times using the same + * billing group name and configuration, the call will succeed. If this call is + * made with the same billing group name but different configuration a + * ResourceAlreadyExistsException is thrown.

Requires + * permission to access the CreateBillingGroup * action.

See Also:

AWS @@ -1232,7 +1236,15 @@ namespace IoT /** *

Creates a role alias.

Requires permission to access the CreateRoleAlias - * action.

See Also:

The value of + * credentialDurationSeconds must be less than or equal to the + * maximum session duration of the IAM role that the role alias references. For + * more information, see + * Modifying a role maximum session duration (Amazon Web Services API) from the + * Amazon Web Services Identity and Access Management User Guide.

+ *

See Also:

AWS * API Reference

*/ @@ -1409,7 +1421,11 @@ namespace IoT } /** - *

Creates a new thing type.

Requires permission to access the Creates a new thing type. If this call is made multiple times using the same + * thing type name and configuration, the call will succeed. If this call is made + * with the same thing type name but different configuration a + * ResourceAlreadyExistsException is thrown.

Requires + * permission to access the CreateThingType * action.

See Also:

AWS @@ -3545,8 +3561,8 @@ namespace IoT } /** - *

Disassociates a software bill of materials (SBOM) from a specific software - * package version.

Requires permission to access the Disassociates the selected software bill of materials (SBOM) from a specific + * software package version.

Requires permission to access the DisassociateSbomWithPackageVersion * action.

See Also:

AWS @@ -7111,7 +7127,15 @@ namespace IoT /** *

Updates a role alias.

Requires permission to access the UpdateRoleAlias - * action.

See Also:

The value of + * credentialDurationSeconds must be less than or equal to the + * maximum session duration of the IAM role that the role alias references. For + * more information, see + * Modifying a role maximum session duration (Amazon Web Services API) from the + * Amazon Web Services Identity and Access Management User Guide.

+ *

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ApplicationProtocol.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ApplicationProtocol.h new file mode 100644 index 00000000000..44eb86f516b --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ApplicationProtocol.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + enum class ApplicationProtocol + { + NOT_SET, + SECURE_MQTT, + MQTT_WSS, + HTTPS, + DEFAULT + }; + +namespace ApplicationProtocolMapper +{ +AWS_IOT_API ApplicationProtocol GetApplicationProtocolForName(const Aws::String& name); + +AWS_IOT_API Aws::String GetNameForApplicationProtocol(ApplicationProtocol value); +} // namespace ApplicationProtocolMapper +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AssociateSbomWithPackageVersionResult.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AssociateSbomWithPackageVersionResult.h index 5530dbaadec..e4f12e379e5 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AssociateSbomWithPackageVersionResult.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AssociateSbomWithPackageVersionResult.h @@ -71,8 +71,9 @@ namespace Model ///@{ /** - *

The status of the initial validation for the SBOM against the Software - * Package Data Exchange (SPDX) and CycloneDX industry standard format.

+ *

The status of the initial validation for the software bill of materials + * against the Software Package Data Exchange (SPDX) and CycloneDX industry + * standard formats.

*/ inline const SbomValidationStatus& GetSbomValidationStatus() const{ return m_sbomValidationStatus; } inline void SetSbomValidationStatus(const SbomValidationStatus& value) { m_sbomValidationStatus = value; } diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AuthenticationType.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AuthenticationType.h new file mode 100644 index 00000000000..76edc9a9052 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AuthenticationType.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + enum class AuthenticationType + { + NOT_SET, + CUSTOM_AUTH_X509, + CUSTOM_AUTH, + AWS_X509, + AWS_SIGV4, + DEFAULT + }; + +namespace AuthenticationTypeMapper +{ +AWS_IOT_API AuthenticationType GetAuthenticationTypeForName(const Aws::String& name); + +AWS_IOT_API Aws::String GetNameForAuthenticationType(AuthenticationType value); +} // namespace AuthenticationTypeMapper +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ClientCertificateConfig.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ClientCertificateConfig.h new file mode 100644 index 00000000000..0aa7b2ed6d9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ClientCertificateConfig.h @@ -0,0 +1,63 @@ +/** + * 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 IoT +{ +namespace Model +{ + + /** + *

An object that specifies the client certificate configuration for a + * domain.

See Also:

AWS + * API Reference

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

The ARN of the Lambda function that IoT invokes after mutual TLS + * authentication during the connection.

+ */ + inline const Aws::String& GetClientCertificateCallbackArn() const{ return m_clientCertificateCallbackArn; } + inline bool ClientCertificateCallbackArnHasBeenSet() const { return m_clientCertificateCallbackArnHasBeenSet; } + inline void SetClientCertificateCallbackArn(const Aws::String& value) { m_clientCertificateCallbackArnHasBeenSet = true; m_clientCertificateCallbackArn = value; } + inline void SetClientCertificateCallbackArn(Aws::String&& value) { m_clientCertificateCallbackArnHasBeenSet = true; m_clientCertificateCallbackArn = std::move(value); } + inline void SetClientCertificateCallbackArn(const char* value) { m_clientCertificateCallbackArnHasBeenSet = true; m_clientCertificateCallbackArn.assign(value); } + inline ClientCertificateConfig& WithClientCertificateCallbackArn(const Aws::String& value) { SetClientCertificateCallbackArn(value); return *this;} + inline ClientCertificateConfig& WithClientCertificateCallbackArn(Aws::String&& value) { SetClientCertificateCallbackArn(std::move(value)); return *this;} + inline ClientCertificateConfig& WithClientCertificateCallbackArn(const char* value) { SetClientCertificateCallbackArn(value); return *this;} + ///@} + private: + + Aws::String m_clientCertificateCallbackArn; + bool m_clientCertificateCallbackArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/CreateDomainConfigurationRequest.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/CreateDomainConfigurationRequest.h index 000b0f6912b..81b300fbba8 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/CreateDomainConfigurationRequest.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/CreateDomainConfigurationRequest.h @@ -12,6 +12,9 @@ #include #include #include +#include +#include +#include #include #include @@ -167,6 +170,67 @@ namespace Model inline CreateDomainConfigurationRequest& WithServerCertificateConfig(const ServerCertificateConfig& value) { SetServerCertificateConfig(value); return *this;} inline CreateDomainConfigurationRequest& WithServerCertificateConfig(ServerCertificateConfig&& value) { SetServerCertificateConfig(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

An enumerated string that specifies the authentication type.

  • + * CUSTOM_AUTH_X509 - Use custom authentication and authorization with + * additional details from the X.509 client certificate.

  • + * AWS_X509 - Use X.509 client certificates without custom + * authentication and authorization. For more information, see X.509 + * client certificates.

  • DEFAULT + * - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to + * specify authentication type. For more information, see Device + * communication protocols.

+ */ + inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } + inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; } + inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; } + inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); } + inline CreateDomainConfigurationRequest& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;} + inline CreateDomainConfigurationRequest& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

An enumerated string that specifies the application-layer protocol.

    + *
  • SECURE_MQTT - MQTT over TLS.

  • + * MQTT_WSS - MQTT over WebSocket.

  • + * HTTPS - HTTP over TLS.

  • + * DEFAULT - Use a combination of port and Application Layer Protocol + * Negotiation (ALPN) to specify application_layer protocol. For more information, + * see Device + * communication protocols.

+ */ + inline const ApplicationProtocol& GetApplicationProtocol() const{ return m_applicationProtocol; } + inline bool ApplicationProtocolHasBeenSet() const { return m_applicationProtocolHasBeenSet; } + inline void SetApplicationProtocol(const ApplicationProtocol& value) { m_applicationProtocolHasBeenSet = true; m_applicationProtocol = value; } + inline void SetApplicationProtocol(ApplicationProtocol&& value) { m_applicationProtocolHasBeenSet = true; m_applicationProtocol = std::move(value); } + inline CreateDomainConfigurationRequest& WithApplicationProtocol(const ApplicationProtocol& value) { SetApplicationProtocol(value); return *this;} + inline CreateDomainConfigurationRequest& WithApplicationProtocol(ApplicationProtocol&& value) { SetApplicationProtocol(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

An object that specifies the client certificate configuration for a domain.

+ */ + inline const ClientCertificateConfig& GetClientCertificateConfig() const{ return m_clientCertificateConfig; } + inline bool ClientCertificateConfigHasBeenSet() const { return m_clientCertificateConfigHasBeenSet; } + inline void SetClientCertificateConfig(const ClientCertificateConfig& value) { m_clientCertificateConfigHasBeenSet = true; m_clientCertificateConfig = value; } + inline void SetClientCertificateConfig(ClientCertificateConfig&& value) { m_clientCertificateConfigHasBeenSet = true; m_clientCertificateConfig = std::move(value); } + inline CreateDomainConfigurationRequest& WithClientCertificateConfig(const ClientCertificateConfig& value) { SetClientCertificateConfig(value); return *this;} + inline CreateDomainConfigurationRequest& WithClientCertificateConfig(ClientCertificateConfig&& value) { SetClientCertificateConfig(std::move(value)); return *this;} + ///@} private: Aws::String m_domainConfigurationName; @@ -195,6 +259,15 @@ namespace Model ServerCertificateConfig m_serverCertificateConfig; bool m_serverCertificateConfigHasBeenSet = false; + + AuthenticationType m_authenticationType; + bool m_authenticationTypeHasBeenSet = false; + + ApplicationProtocol m_applicationProtocol; + bool m_applicationProtocolHasBeenSet = false; + + ClientCertificateConfig m_clientCertificateConfig; + bool m_clientCertificateConfigHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/CreatePackageVersionRequest.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/CreatePackageVersionRequest.h index 868ead3ac48..3fa47f3bcce 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/CreatePackageVersionRequest.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/CreatePackageVersionRequest.h @@ -122,7 +122,7 @@ namespace Model ///@{ /** *

The inline job document associated with a software package version used for a - * quick job deployment via IoT Jobs.

+ * quick job deployment.

*/ inline const Aws::String& GetRecipe() const{ return m_recipe; } inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDomainConfigurationResult.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDomainConfigurationResult.h index dd8ccb099a1..1bd5bfbb15a 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDomainConfigurationResult.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDomainConfigurationResult.h @@ -14,6 +14,9 @@ #include #include #include +#include +#include +#include #include #include @@ -172,6 +175,64 @@ namespace Model inline DescribeDomainConfigurationResult& WithServerCertificateConfig(ServerCertificateConfig&& value) { SetServerCertificateConfig(std::move(value)); return *this;} ///@} + ///@{ + /** + *

An enumerated string that specifies the authentication type.

  • + * CUSTOM_AUTH_X509 - Use custom authentication and authorization with + * additional details from the X.509 client certificate.

  • + * AWS_X509 - Use X.509 client certificates without custom + * authentication and authorization. For more information, see X.509 + * client certificates.

  • DEFAULT + * - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to + * specify authentication type. For more information, see Device + * communication protocols.

+ */ + inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } + inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationType = value; } + inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationType = std::move(value); } + inline DescribeDomainConfigurationResult& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;} + inline DescribeDomainConfigurationResult& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

An enumerated string that specifies the application-layer protocol.

    + *
  • SECURE_MQTT - MQTT over TLS.

  • + * MQTT_WSS - MQTT over WebSocket.

  • + * HTTPS - HTTP over TLS.

  • + * DEFAULT - Use a combination of port and Application Layer Protocol + * Negotiation (ALPN) to specify application_layer protocol. For more information, + * see Device + * communication protocols.

+ */ + inline const ApplicationProtocol& GetApplicationProtocol() const{ return m_applicationProtocol; } + inline void SetApplicationProtocol(const ApplicationProtocol& value) { m_applicationProtocol = value; } + inline void SetApplicationProtocol(ApplicationProtocol&& value) { m_applicationProtocol = std::move(value); } + inline DescribeDomainConfigurationResult& WithApplicationProtocol(const ApplicationProtocol& value) { SetApplicationProtocol(value); return *this;} + inline DescribeDomainConfigurationResult& WithApplicationProtocol(ApplicationProtocol&& value) { SetApplicationProtocol(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

An object that specifies the client certificate configuration for a domain.

+ */ + inline const ClientCertificateConfig& GetClientCertificateConfig() const{ return m_clientCertificateConfig; } + inline void SetClientCertificateConfig(const ClientCertificateConfig& value) { m_clientCertificateConfig = value; } + inline void SetClientCertificateConfig(ClientCertificateConfig&& value) { m_clientCertificateConfig = std::move(value); } + inline DescribeDomainConfigurationResult& WithClientCertificateConfig(const ClientCertificateConfig& value) { SetClientCertificateConfig(value); return *this;} + inline DescribeDomainConfigurationResult& WithClientCertificateConfig(ClientCertificateConfig&& value) { SetClientCertificateConfig(std::move(value)); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -206,6 +267,12 @@ namespace Model ServerCertificateConfig m_serverCertificateConfig; + AuthenticationType m_authenticationType; + + ApplicationProtocol m_applicationProtocol; + + ClientCertificateConfig m_clientCertificateConfig; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/GetPackageVersionResult.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/GetPackageVersionResult.h index 52d903a93ce..d506cf0f95b 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/GetPackageVersionResult.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/GetPackageVersionResult.h @@ -194,7 +194,7 @@ namespace Model ///@{ /** *

The inline job document associated with a software package version used for a - * quick job deployment via IoT Jobs.

+ * quick job deployment.

*/ inline const Aws::String& GetRecipe() const{ return m_recipe; } inline void SetRecipe(const Aws::String& value) { m_recipe = value; } diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PackageVersionArtifact.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PackageVersionArtifact.h index f98aee38697..e46a2ba11cf 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PackageVersionArtifact.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PackageVersionArtifact.h @@ -24,7 +24,7 @@ namespace Model { /** - *

The Amazon S3 location for the artifacts associated with a software package + *

A specific package version artifact associated with a software package * version.

See Also:

AWS * API Reference

diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/Sbom.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/Sbom.h index 96817a1f667..882adf4e4c2 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/Sbom.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/Sbom.h @@ -24,8 +24,8 @@ namespace Model { /** - *

The Amazon S3 location for the software bill of materials associated with a - * software package version.

See Also:

A specific software bill of matrerials associated with a software package + * version.

See Also:

AWS API * Reference

*/ diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingDocument.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingDocument.h index fcdbf168ced..57642521b8f 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingDocument.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingDocument.h @@ -84,7 +84,7 @@ namespace Model ///@{ /** - *

Thing group names.

+ *

Thing group and billing group names.

*/ inline const Aws::Vector& GetThingGroupNames() const{ return m_thingGroupNames; } inline bool ThingGroupNamesHasBeenSet() const { return m_thingGroupNamesHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDomainConfigurationRequest.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDomainConfigurationRequest.h index 23741595072..1cb1f0a00b9 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDomainConfigurationRequest.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDomainConfigurationRequest.h @@ -11,6 +11,9 @@ #include #include #include +#include +#include +#include #include namespace Aws @@ -107,6 +110,67 @@ namespace Model inline UpdateDomainConfigurationRequest& WithServerCertificateConfig(const ServerCertificateConfig& value) { SetServerCertificateConfig(value); return *this;} inline UpdateDomainConfigurationRequest& WithServerCertificateConfig(ServerCertificateConfig&& value) { SetServerCertificateConfig(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

An enumerated string that specifies the authentication type.

  • + * CUSTOM_AUTH_X509 - Use custom authentication and authorization with + * additional details from the X.509 client certificate.

  • + * AWS_X509 - Use X.509 client certificates without custom + * authentication and authorization. For more information, see X.509 + * client certificates.

  • DEFAULT + * - Use a combination of port and Application Layer Protocol Negotiation + * (ALPN) to specify authentication type. For more information, see Device + * communication protocols.

+ */ + inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } + inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; } + inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; } + inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); } + inline UpdateDomainConfigurationRequest& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;} + inline UpdateDomainConfigurationRequest& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

An enumerated string that specifies the application-layer protocol.

    + *
  • SECURE_MQTT - MQTT over TLS.

  • + * MQTT_WSS - MQTT over WebSocket.

  • + * HTTPS - HTTP over TLS.

  • + * DEFAULT - Use a combination of port and Application Layer Protocol + * Negotiation (ALPN) to specify application_layer protocol. For more information, + * see Device + * communication protocols.

+ */ + inline const ApplicationProtocol& GetApplicationProtocol() const{ return m_applicationProtocol; } + inline bool ApplicationProtocolHasBeenSet() const { return m_applicationProtocolHasBeenSet; } + inline void SetApplicationProtocol(const ApplicationProtocol& value) { m_applicationProtocolHasBeenSet = true; m_applicationProtocol = value; } + inline void SetApplicationProtocol(ApplicationProtocol&& value) { m_applicationProtocolHasBeenSet = true; m_applicationProtocol = std::move(value); } + inline UpdateDomainConfigurationRequest& WithApplicationProtocol(const ApplicationProtocol& value) { SetApplicationProtocol(value); return *this;} + inline UpdateDomainConfigurationRequest& WithApplicationProtocol(ApplicationProtocol&& value) { SetApplicationProtocol(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

An object that specifies the client certificate configuration for a domain.

+ */ + inline const ClientCertificateConfig& GetClientCertificateConfig() const{ return m_clientCertificateConfig; } + inline bool ClientCertificateConfigHasBeenSet() const { return m_clientCertificateConfigHasBeenSet; } + inline void SetClientCertificateConfig(const ClientCertificateConfig& value) { m_clientCertificateConfigHasBeenSet = true; m_clientCertificateConfig = value; } + inline void SetClientCertificateConfig(ClientCertificateConfig&& value) { m_clientCertificateConfigHasBeenSet = true; m_clientCertificateConfig = std::move(value); } + inline UpdateDomainConfigurationRequest& WithClientCertificateConfig(const ClientCertificateConfig& value) { SetClientCertificateConfig(value); return *this;} + inline UpdateDomainConfigurationRequest& WithClientCertificateConfig(ClientCertificateConfig&& value) { SetClientCertificateConfig(std::move(value)); return *this;} + ///@} private: Aws::String m_domainConfigurationName; @@ -126,6 +190,15 @@ namespace Model ServerCertificateConfig m_serverCertificateConfig; bool m_serverCertificateConfigHasBeenSet = false; + + AuthenticationType m_authenticationType; + bool m_authenticationTypeHasBeenSet = false; + + ApplicationProtocol m_applicationProtocol; + bool m_applicationProtocolHasBeenSet = false; + + ClientCertificateConfig m_clientCertificateConfig; + bool m_clientCertificateConfigHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdatePackageVersionRequest.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdatePackageVersionRequest.h index 141feba3083..711620dca59 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdatePackageVersionRequest.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdatePackageVersionRequest.h @@ -137,7 +137,7 @@ namespace Model ///@{ /** *

The inline job document associated with a software package version used for a - * quick job deployment via IoT Jobs.

+ * quick job deployment.

*/ inline const Aws::String& GetRecipe() const{ return m_recipe; } inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ApplicationProtocol.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ApplicationProtocol.cpp new file mode 100644 index 00000000000..4e00308e49a --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/ApplicationProtocol.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoT + { + namespace Model + { + namespace ApplicationProtocolMapper + { + + static const int SECURE_MQTT_HASH = HashingUtils::HashString("SECURE_MQTT"); + static const int MQTT_WSS_HASH = HashingUtils::HashString("MQTT_WSS"); + static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); + static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); + + + ApplicationProtocol GetApplicationProtocolForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SECURE_MQTT_HASH) + { + return ApplicationProtocol::SECURE_MQTT; + } + else if (hashCode == MQTT_WSS_HASH) + { + return ApplicationProtocol::MQTT_WSS; + } + else if (hashCode == HTTPS_HASH) + { + return ApplicationProtocol::HTTPS; + } + else if (hashCode == DEFAULT_HASH) + { + return ApplicationProtocol::DEFAULT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ApplicationProtocol::NOT_SET; + } + + Aws::String GetNameForApplicationProtocol(ApplicationProtocol enumValue) + { + switch(enumValue) + { + case ApplicationProtocol::NOT_SET: + return {}; + case ApplicationProtocol::SECURE_MQTT: + return "SECURE_MQTT"; + case ApplicationProtocol::MQTT_WSS: + return "MQTT_WSS"; + case ApplicationProtocol::HTTPS: + return "HTTPS"; + case ApplicationProtocol::DEFAULT: + return "DEFAULT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ApplicationProtocolMapper + } // namespace Model + } // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuthenticationType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuthenticationType.cpp new file mode 100644 index 00000000000..c3a4b5f9d47 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuthenticationType.cpp @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoT + { + namespace Model + { + namespace AuthenticationTypeMapper + { + + static const int CUSTOM_AUTH_X509_HASH = HashingUtils::HashString("CUSTOM_AUTH_X509"); + static const int CUSTOM_AUTH_HASH = HashingUtils::HashString("CUSTOM_AUTH"); + static const int AWS_X509_HASH = HashingUtils::HashString("AWS_X509"); + static const int AWS_SIGV4_HASH = HashingUtils::HashString("AWS_SIGV4"); + static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); + + + AuthenticationType GetAuthenticationTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CUSTOM_AUTH_X509_HASH) + { + return AuthenticationType::CUSTOM_AUTH_X509; + } + else if (hashCode == CUSTOM_AUTH_HASH) + { + return AuthenticationType::CUSTOM_AUTH; + } + else if (hashCode == AWS_X509_HASH) + { + return AuthenticationType::AWS_X509; + } + else if (hashCode == AWS_SIGV4_HASH) + { + return AuthenticationType::AWS_SIGV4; + } + else if (hashCode == DEFAULT_HASH) + { + return AuthenticationType::DEFAULT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AuthenticationType::NOT_SET; + } + + Aws::String GetNameForAuthenticationType(AuthenticationType enumValue) + { + switch(enumValue) + { + case AuthenticationType::NOT_SET: + return {}; + case AuthenticationType::CUSTOM_AUTH_X509: + return "CUSTOM_AUTH_X509"; + case AuthenticationType::CUSTOM_AUTH: + return "CUSTOM_AUTH"; + case AuthenticationType::AWS_X509: + return "AWS_X509"; + case AuthenticationType::AWS_SIGV4: + return "AWS_SIGV4"; + case AuthenticationType::DEFAULT: + return "DEFAULT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AuthenticationTypeMapper + } // namespace Model + } // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ClientCertificateConfig.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ClientCertificateConfig.cpp new file mode 100644 index 00000000000..a0588bdd46b --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/ClientCertificateConfig.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +ClientCertificateConfig::ClientCertificateConfig() : + m_clientCertificateCallbackArnHasBeenSet(false) +{ +} + +ClientCertificateConfig::ClientCertificateConfig(JsonView jsonValue) + : ClientCertificateConfig() +{ + *this = jsonValue; +} + +ClientCertificateConfig& ClientCertificateConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("clientCertificateCallbackArn")) + { + m_clientCertificateCallbackArn = jsonValue.GetString("clientCertificateCallbackArn"); + + m_clientCertificateCallbackArnHasBeenSet = true; + } + + return *this; +} + +JsonValue ClientCertificateConfig::Jsonize() const +{ + JsonValue payload; + + if(m_clientCertificateCallbackArnHasBeenSet) + { + payload.WithString("clientCertificateCallbackArn", m_clientCertificateCallbackArn); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/source/model/CreateDomainConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-iot/source/model/CreateDomainConfigurationRequest.cpp index be9f9328311..6e84e30daaf 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/CreateDomainConfigurationRequest.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/CreateDomainConfigurationRequest.cpp @@ -22,7 +22,12 @@ CreateDomainConfigurationRequest::CreateDomainConfigurationRequest() : m_serviceTypeHasBeenSet(false), m_tagsHasBeenSet(false), m_tlsConfigHasBeenSet(false), - m_serverCertificateConfigHasBeenSet(false) + m_serverCertificateConfigHasBeenSet(false), + m_authenticationType(AuthenticationType::NOT_SET), + m_authenticationTypeHasBeenSet(false), + m_applicationProtocol(ApplicationProtocol::NOT_SET), + m_applicationProtocolHasBeenSet(false), + m_clientCertificateConfigHasBeenSet(false) { } @@ -87,6 +92,22 @@ Aws::String CreateDomainConfigurationRequest::SerializePayload() const } + if(m_authenticationTypeHasBeenSet) + { + payload.WithString("authenticationType", AuthenticationTypeMapper::GetNameForAuthenticationType(m_authenticationType)); + } + + if(m_applicationProtocolHasBeenSet) + { + payload.WithString("applicationProtocol", ApplicationProtocolMapper::GetNameForApplicationProtocol(m_applicationProtocol)); + } + + if(m_clientCertificateConfigHasBeenSet) + { + payload.WithObject("clientCertificateConfig", m_clientCertificateConfig.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DescribeDomainConfigurationResult.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DescribeDomainConfigurationResult.cpp index 83cb54df621..c24d6908762 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DescribeDomainConfigurationResult.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DescribeDomainConfigurationResult.cpp @@ -20,7 +20,9 @@ using namespace Aws; DescribeDomainConfigurationResult::DescribeDomainConfigurationResult() : m_domainConfigurationStatus(DomainConfigurationStatus::NOT_SET), m_serviceType(ServiceType::NOT_SET), - m_domainType(DomainType::NOT_SET) + m_domainType(DomainType::NOT_SET), + m_authenticationType(AuthenticationType::NOT_SET), + m_applicationProtocol(ApplicationProtocol::NOT_SET) { } @@ -102,6 +104,24 @@ DescribeDomainConfigurationResult& DescribeDomainConfigurationResult::operator = } + if(jsonValue.ValueExists("authenticationType")) + { + m_authenticationType = AuthenticationTypeMapper::GetAuthenticationTypeForName(jsonValue.GetString("authenticationType")); + + } + + if(jsonValue.ValueExists("applicationProtocol")) + { + m_applicationProtocol = ApplicationProtocolMapper::GetApplicationProtocolForName(jsonValue.GetString("applicationProtocol")); + + } + + if(jsonValue.ValueExists("clientCertificateConfig")) + { + m_clientCertificateConfig = jsonValue.GetObject("clientCertificateConfig"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-iot/source/model/UpdateDomainConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-iot/source/model/UpdateDomainConfigurationRequest.cpp index 69840c3d2b9..aaa48a69d37 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/UpdateDomainConfigurationRequest.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/UpdateDomainConfigurationRequest.cpp @@ -20,7 +20,12 @@ UpdateDomainConfigurationRequest::UpdateDomainConfigurationRequest() : m_removeAuthorizerConfig(false), m_removeAuthorizerConfigHasBeenSet(false), m_tlsConfigHasBeenSet(false), - m_serverCertificateConfigHasBeenSet(false) + m_serverCertificateConfigHasBeenSet(false), + m_authenticationType(AuthenticationType::NOT_SET), + m_authenticationTypeHasBeenSet(false), + m_applicationProtocol(ApplicationProtocol::NOT_SET), + m_applicationProtocolHasBeenSet(false), + m_clientCertificateConfigHasBeenSet(false) { } @@ -57,6 +62,22 @@ Aws::String UpdateDomainConfigurationRequest::SerializePayload() const } + if(m_authenticationTypeHasBeenSet) + { + payload.WithString("authenticationType", AuthenticationTypeMapper::GetNameForAuthenticationType(m_authenticationType)); + } + + if(m_applicationProtocolHasBeenSet) + { + payload.WithString("applicationProtocol", ApplicationProtocolMapper::GetNameForApplicationProtocol(m_applicationProtocol)); + } + + if(m_clientCertificateConfigHasBeenSet) + { + payload.WithObject("clientCertificateConfig", m_clientCertificateConfig.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/CMakeLists.txt b/generated/src/aws-cpp-sdk-marketplace-reporting/CMakeLists.txt new file mode 100644 index 00000000000..221c38f9c3b --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/CMakeLists.txt @@ -0,0 +1,76 @@ +add_project(aws-cpp-sdk-marketplace-reporting "C++ SDK for the AWS marketplace-reporting service" aws-cpp-sdk-core) + +file(GLOB AWS_MARKETPLACE-REPORTING_HEADERS + "include/aws/marketplace-reporting/*.h" +) + +file(GLOB AWS_MARKETPLACE-REPORTING_MODEL_HEADERS + "include/aws/marketplace-reporting/model/*.h" +) + +file(GLOB AWS_MARKETPLACE-REPORTING_SOURCE + "source/*.cpp" +) + +file(GLOB AWS_MARKETPLACE-REPORTING_MODEL_SOURCE + "source/model/*.cpp" +) + +file(GLOB MARKETPLACE-REPORTING_UNIFIED_HEADERS + ${AWS_MARKETPLACE-REPORTING_HEADERS} + ${AWS_MARKETPLACE-REPORTING_MODEL_HEADERS} +) + +file(GLOB MARKETPLACE-REPORTING_UNITY_SRC + ${AWS_MARKETPLACE-REPORTING_SOURCE} + ${AWS_MARKETPLACE-REPORTING_MODEL_SOURCE} +) + +if(ENABLE_UNITY_BUILD) + enable_unity_build("MARKETPLACE-REPORTING" MARKETPLACE-REPORTING_UNITY_SRC) +endif() + +file(GLOB MARKETPLACE-REPORTING_SRC + ${MARKETPLACE-REPORTING_UNIFIED_HEADERS} + ${MARKETPLACE-REPORTING_UNITY_SRC} +) + +if(WIN32) + #if we are compiling for visual studio, create a sane directory tree. + if(MSVC) + source_group("Header Files\\aws\\marketplace-reporting" FILES ${AWS_MARKETPLACE-REPORTING_HEADERS}) + source_group("Header Files\\aws\\marketplace-reporting\\model" FILES ${AWS_MARKETPLACE-REPORTING_MODEL_HEADERS}) + source_group("Source Files" FILES ${AWS_MARKETPLACE-REPORTING_SOURCE}) + source_group("Source Files\\model" FILES ${AWS_MARKETPLACE-REPORTING_MODEL_SOURCE}) + endif(MSVC) +endif() + +set(MARKETPLACE-REPORTING_INCLUDES + "${CMAKE_CURRENT_SOURCE_DIR}/include/" +) + +add_library(${PROJECT_NAME} ${MARKETPLACE-REPORTING_SRC}) +add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) + target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_MARKETPLACEREPORTING_EXPORTS") +endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $ + $) + +target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) + + +setup_install() + +install (FILES ${AWS_MARKETPLACE-REPORTING_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/marketplace-reporting) +install (FILES ${AWS_MARKETPLACE-REPORTING_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/marketplace-reporting/model) + +do_packaging() + + diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingClient.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingClient.h new file mode 100644 index 00000000000..d217bc9e188 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingClient.h @@ -0,0 +1,165 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MarketplaceReporting +{ + /** + *

The AWS Marketplace GetBuyerDashboard API enables you to get a + * procurement insights dashboard programmatically. The API gets the agreement and + * cost analysis dashboards with data for all of the Amazon Web Services accounts + * in your Amazon Web Services organization.

To use the API, you must + * complete the following prerequisites:

+ */ + class AWS_MARKETPLACEREPORTING_API MarketplaceReportingClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods + { + public: + typedef Aws::Client::AWSJsonClient BASECLASS; + static const char* GetServiceName(); + static const char* GetAllocationTag(); + + typedef MarketplaceReportingClientConfiguration ClientConfigurationType; + typedef MarketplaceReportingEndpointProvider EndpointProviderType; + + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + MarketplaceReportingClient(const Aws::MarketplaceReporting::MarketplaceReportingClientConfiguration& clientConfiguration = Aws::MarketplaceReporting::MarketplaceReportingClientConfiguration(), + std::shared_ptr endpointProvider = nullptr); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + MarketplaceReportingClient(const Aws::Auth::AWSCredentials& credentials, + std::shared_ptr endpointProvider = nullptr, + const Aws::MarketplaceReporting::MarketplaceReportingClientConfiguration& clientConfiguration = Aws::MarketplaceReporting::MarketplaceReportingClientConfiguration()); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + MarketplaceReportingClient(const std::shared_ptr& credentialsProvider, + std::shared_ptr endpointProvider = nullptr, + const Aws::MarketplaceReporting::MarketplaceReportingClientConfiguration& clientConfiguration = Aws::MarketplaceReporting::MarketplaceReportingClientConfiguration()); + + + /* Legacy constructors due deprecation */ + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + MarketplaceReportingClient(const Aws::Client::ClientConfiguration& clientConfiguration); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + MarketplaceReportingClient(const Aws::Auth::AWSCredentials& credentials, + const Aws::Client::ClientConfiguration& clientConfiguration); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + MarketplaceReportingClient(const std::shared_ptr& credentialsProvider, + const Aws::Client::ClientConfiguration& clientConfiguration); + + /* End of legacy constructors due deprecation */ + virtual ~MarketplaceReportingClient(); + + /** + *

Generates an embedding URL for an Amazon QuickSight dashboard for an + * anonymous user.

The following rules apply to a generated URL:

    + *
  • It contains a temporary bearer token, valid for 5 minutes after it is + * generated. Once redeemed within that period, it cannot be re-used again.

    + *
  • It has a session lifetime of one hour. The 5-minute validity + * period runs separately from the session lifetime.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::GetBuyerDashboardOutcome GetBuyerDashboard(const Model::GetBuyerDashboardRequest& request) const; + + /** + * A Callable wrapper for GetBuyerDashboard that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetBuyerDashboardOutcomeCallable GetBuyerDashboardCallable(const GetBuyerDashboardRequestT& request) const + { + return SubmitCallable(&MarketplaceReportingClient::GetBuyerDashboard, request); + } + + /** + * An Async wrapper for GetBuyerDashboard that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetBuyerDashboardAsync(const GetBuyerDashboardRequestT& request, const GetBuyerDashboardResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MarketplaceReportingClient::GetBuyerDashboard, request, handler, context); + } + + + void OverrideEndpoint(const Aws::String& endpoint); + std::shared_ptr& accessEndpointProvider(); + private: + friend class Aws::Client::ClientWithAsyncTemplateMethods; + void init(const MarketplaceReportingClientConfiguration& clientConfiguration); + + MarketplaceReportingClientConfiguration m_clientConfiguration; + std::shared_ptr m_endpointProvider; + }; + +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingEndpointProvider.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingEndpointProvider.h new file mode 100644 index 00000000000..bd4b794e3f2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingEndpointProvider.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +#include + + +namespace Aws +{ +namespace MarketplaceReporting +{ +namespace Endpoint +{ +using EndpointParameters = Aws::Endpoint::EndpointParameters; +using Aws::Endpoint::EndpointProviderBase; +using Aws::Endpoint::DefaultEndpointProvider; + +using MarketplaceReportingClientContextParameters = Aws::Endpoint::ClientContextParameters; + +using MarketplaceReportingClientConfiguration = Aws::Client::GenericClientConfiguration; +using MarketplaceReportingBuiltInParameters = Aws::Endpoint::BuiltInParameters; + +/** + * The type for the MarketplaceReporting Client Endpoint Provider. + * Inherit from this Base class / "Interface" should you want to provide a custom endpoint provider. + * The SDK must use service-specific type for each service per specification. + */ +using MarketplaceReportingEndpointProviderBase = + EndpointProviderBase; + +using MarketplaceReportingDefaultEpProviderBase = + DefaultEndpointProvider; + +/** + * Default endpoint provider used for this service + */ +class AWS_MARKETPLACEREPORTING_API MarketplaceReportingEndpointProvider : public MarketplaceReportingDefaultEpProviderBase +{ +public: + using MarketplaceReportingResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + + MarketplaceReportingEndpointProvider() + : MarketplaceReportingDefaultEpProviderBase(Aws::MarketplaceReporting::MarketplaceReportingEndpointRules::GetRulesBlob(), Aws::MarketplaceReporting::MarketplaceReportingEndpointRules::RulesBlobSize) + {} + + ~MarketplaceReportingEndpointProvider() + { + } +}; +} // namespace Endpoint +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingEndpointRules.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingEndpointRules.h new file mode 100644 index 00000000000..3b1f1bc13ae --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingEndpointRules.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MarketplaceReporting +{ +class MarketplaceReportingEndpointRules +{ +public: + static const size_t RulesBlobStrLen; + static const size_t RulesBlobSize; + + static const char* GetRulesBlob(); +}; +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingErrorMarshaller.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingErrorMarshaller.h new file mode 100644 index 00000000000..141de73f1f0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingErrorMarshaller.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include + +namespace Aws +{ +namespace Client +{ + +class AWS_MARKETPLACEREPORTING_API MarketplaceReportingErrorMarshaller : public Aws::Client::JsonErrorMarshaller +{ +public: + Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; +}; + +} // namespace Client +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingErrors.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingErrors.h new file mode 100644 index 00000000000..2d886490ef4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingErrors.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 + +namespace Aws +{ +namespace MarketplaceReporting +{ +enum class MarketplaceReportingErrors +{ + //From Core// + ////////////////////////////////////////////////////////////////////////////////////////// + INCOMPLETE_SIGNATURE = 0, + INTERNAL_FAILURE = 1, + INVALID_ACTION = 2, + INVALID_CLIENT_TOKEN_ID = 3, + INVALID_PARAMETER_COMBINATION = 4, + INVALID_QUERY_PARAMETER = 5, + INVALID_PARAMETER_VALUE = 6, + MISSING_ACTION = 7, // SDK should never allow + MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow + MISSING_PARAMETER = 9, // SDK should never allow + OPT_IN_REQUIRED = 10, + REQUEST_EXPIRED = 11, + SERVICE_UNAVAILABLE = 12, + THROTTLING = 13, + VALIDATION = 14, + ACCESS_DENIED = 15, + RESOURCE_NOT_FOUND = 16, + UNRECOGNIZED_CLIENT = 17, + MALFORMED_QUERY_STRING = 18, + SLOW_DOWN = 19, + REQUEST_TIME_TOO_SKEWED = 20, + INVALID_SIGNATURE = 21, + SIGNATURE_DOES_NOT_MATCH = 22, + INVALID_ACCESS_KEY_ID = 23, + REQUEST_TIMEOUT = 24, + NETWORK_CONNECTION = 99, + + UNKNOWN = 100, + /////////////////////////////////////////////////////////////////////////////////////////// + + BAD_REQUEST= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + INTERNAL_SERVER, + UNAUTHORIZED +}; + +class AWS_MARKETPLACEREPORTING_API MarketplaceReportingError : public Aws::Client::AWSError +{ +public: + MarketplaceReportingError() {} + MarketplaceReportingError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + MarketplaceReportingError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + MarketplaceReportingError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + MarketplaceReportingError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + + template + T GetModeledError(); +}; + +namespace MarketplaceReportingErrorMapper +{ + AWS_MARKETPLACEREPORTING_API Aws::Client::AWSError GetErrorForName(const char* errorName); +} + +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingRequest.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingRequest.h new file mode 100644 index 00000000000..cbb2da1b8b4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingRequest.h @@ -0,0 +1,46 @@ +/** + * 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 MarketplaceReporting +{ + class AWS_MARKETPLACEREPORTING_API MarketplaceReportingRequest : public Aws::AmazonSerializableWebServiceRequest + { + public: + using EndpointParameter = Aws::Endpoint::EndpointParameter; + using EndpointParameters = Aws::Endpoint::EndpointParameters; + + virtual ~MarketplaceReportingRequest () {} + + void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); } + + inline Aws::Http::HeaderValueCollection GetHeaders() const override + { + auto headers = GetRequestSpecificHeaders(); + + if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0)) + { + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::JSON_CONTENT_TYPE )); + } + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2018-05-10")); + return headers; + } + + protected: + virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } + + }; + + +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingServiceClientModel.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingServiceClientModel.h new file mode 100644 index 00000000000..7381c70e3f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingServiceClientModel.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +/* Generic header includes */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +/* End of generic header includes */ + +/* Service model headers required in MarketplaceReportingClient header */ +#include +/* End of service model headers required in MarketplaceReportingClient header */ + +namespace Aws +{ + namespace Http + { + class HttpClient; + class HttpClientFactory; + } // namespace Http + + namespace Utils + { + template< typename R, typename E> class Outcome; + + namespace Threading + { + class Executor; + } // namespace Threading + } // namespace Utils + + namespace Auth + { + class AWSCredentials; + class AWSCredentialsProvider; + } // namespace Auth + + namespace Client + { + class RetryStrategy; + } // namespace Client + + namespace MarketplaceReporting + { + using MarketplaceReportingClientConfiguration = Aws::Client::GenericClientConfiguration; + using MarketplaceReportingEndpointProviderBase = Aws::MarketplaceReporting::Endpoint::MarketplaceReportingEndpointProviderBase; + using MarketplaceReportingEndpointProvider = Aws::MarketplaceReporting::Endpoint::MarketplaceReportingEndpointProvider; + + namespace Model + { + /* Service model forward declarations required in MarketplaceReportingClient header */ + class GetBuyerDashboardRequest; + /* End of service model forward declarations required in MarketplaceReportingClient header */ + + /* Service model Outcome class definitions */ + typedef Aws::Utils::Outcome GetBuyerDashboardOutcome; + /* End of service model Outcome class definitions */ + + /* Service model Outcome callable definitions */ + typedef std::future GetBuyerDashboardOutcomeCallable; + /* End of service model Outcome callable definitions */ + } // namespace Model + + class MarketplaceReportingClient; + + /* Service model async handlers definitions */ + typedef std::function&) > GetBuyerDashboardResponseReceivedHandler; + /* End of service model async handlers definitions */ + } // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReporting_EXPORTS.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReporting_EXPORTS.h new file mode 100644 index 00000000000..3f20f97fac2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReporting_EXPORTS.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#ifdef _MSC_VER + //disable windows complaining about max template size. + #pragma warning (disable : 4503) +#endif // _MSC_VER + +#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) + #ifdef _MSC_VER + #pragma warning(disable : 4251) + #endif // _MSC_VER + + #ifdef USE_IMPORT_EXPORT + #ifdef AWS_MARKETPLACEREPORTING_EXPORTS + #define AWS_MARKETPLACEREPORTING_API __declspec(dllexport) + #else + #define AWS_MARKETPLACEREPORTING_API __declspec(dllimport) + #endif /* AWS_MARKETPLACEREPORTING_EXPORTS */ + #define AWS_MARKETPLACEREPORTING_EXTERN + #else + #define AWS_MARKETPLACEREPORTING_API + #define AWS_MARKETPLACEREPORTING_EXTERN extern + #endif // USE_IMPORT_EXPORT +#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) + #define AWS_MARKETPLACEREPORTING_API + #define AWS_MARKETPLACEREPORTING_EXTERN extern +#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/model/GetBuyerDashboardRequest.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/model/GetBuyerDashboardRequest.h new file mode 100644 index 00000000000..803fd24590d --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/model/GetBuyerDashboardRequest.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 +#include +#include + +namespace Aws +{ +namespace MarketplaceReporting +{ +namespace Model +{ + + /** + */ + class GetBuyerDashboardRequest : public MarketplaceReportingRequest + { + public: + AWS_MARKETPLACEREPORTING_API GetBuyerDashboardRequest(); + + // 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 "GetBuyerDashboard"; } + + AWS_MARKETPLACEREPORTING_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The ARN of the requested dashboard.

+ */ + inline const Aws::String& GetDashboardIdentifier() const{ return m_dashboardIdentifier; } + inline bool DashboardIdentifierHasBeenSet() const { return m_dashboardIdentifierHasBeenSet; } + inline void SetDashboardIdentifier(const Aws::String& value) { m_dashboardIdentifierHasBeenSet = true; m_dashboardIdentifier = value; } + inline void SetDashboardIdentifier(Aws::String&& value) { m_dashboardIdentifierHasBeenSet = true; m_dashboardIdentifier = std::move(value); } + inline void SetDashboardIdentifier(const char* value) { m_dashboardIdentifierHasBeenSet = true; m_dashboardIdentifier.assign(value); } + inline GetBuyerDashboardRequest& WithDashboardIdentifier(const Aws::String& value) { SetDashboardIdentifier(value); return *this;} + inline GetBuyerDashboardRequest& WithDashboardIdentifier(Aws::String&& value) { SetDashboardIdentifier(std::move(value)); return *this;} + inline GetBuyerDashboardRequest& WithDashboardIdentifier(const char* value) { SetDashboardIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

Fully qualified domains that you add to the allow list for access to the + * generated URL that is then embedded. You can list up to two domains or + * subdomains in each API call. To include all subdomains under a specific domain, + * use *. For example, https:// *.amazon.com includes all + * subdomains under https://aws.amazon.com.

+ */ + inline const Aws::Vector& GetEmbeddingDomains() const{ return m_embeddingDomains; } + inline bool EmbeddingDomainsHasBeenSet() const { return m_embeddingDomainsHasBeenSet; } + inline void SetEmbeddingDomains(const Aws::Vector& value) { m_embeddingDomainsHasBeenSet = true; m_embeddingDomains = value; } + inline void SetEmbeddingDomains(Aws::Vector&& value) { m_embeddingDomainsHasBeenSet = true; m_embeddingDomains = std::move(value); } + inline GetBuyerDashboardRequest& WithEmbeddingDomains(const Aws::Vector& value) { SetEmbeddingDomains(value); return *this;} + inline GetBuyerDashboardRequest& WithEmbeddingDomains(Aws::Vector&& value) { SetEmbeddingDomains(std::move(value)); return *this;} + inline GetBuyerDashboardRequest& AddEmbeddingDomains(const Aws::String& value) { m_embeddingDomainsHasBeenSet = true; m_embeddingDomains.push_back(value); return *this; } + inline GetBuyerDashboardRequest& AddEmbeddingDomains(Aws::String&& value) { m_embeddingDomainsHasBeenSet = true; m_embeddingDomains.push_back(std::move(value)); return *this; } + inline GetBuyerDashboardRequest& AddEmbeddingDomains(const char* value) { m_embeddingDomainsHasBeenSet = true; m_embeddingDomains.push_back(value); return *this; } + ///@} + private: + + Aws::String m_dashboardIdentifier; + bool m_dashboardIdentifierHasBeenSet = false; + + Aws::Vector m_embeddingDomains; + bool m_embeddingDomainsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/model/GetBuyerDashboardResult.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/model/GetBuyerDashboardResult.h new file mode 100644 index 00000000000..3677ed455df --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/model/GetBuyerDashboardResult.h @@ -0,0 +1,104 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MarketplaceReporting +{ +namespace Model +{ + class GetBuyerDashboardResult + { + public: + AWS_MARKETPLACEREPORTING_API GetBuyerDashboardResult(); + AWS_MARKETPLACEREPORTING_API GetBuyerDashboardResult(const Aws::AmazonWebServiceResult& result); + AWS_MARKETPLACEREPORTING_API GetBuyerDashboardResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The dashboard's embedding URL.

+ */ + inline const Aws::String& GetEmbedUrl() const{ return m_embedUrl; } + inline void SetEmbedUrl(const Aws::String& value) { m_embedUrl = value; } + inline void SetEmbedUrl(Aws::String&& value) { m_embedUrl = std::move(value); } + inline void SetEmbedUrl(const char* value) { m_embedUrl.assign(value); } + inline GetBuyerDashboardResult& WithEmbedUrl(const Aws::String& value) { SetEmbedUrl(value); return *this;} + inline GetBuyerDashboardResult& WithEmbedUrl(Aws::String&& value) { SetEmbedUrl(std::move(value)); return *this;} + inline GetBuyerDashboardResult& WithEmbedUrl(const char* value) { SetEmbedUrl(value); return *this;} + ///@} + + ///@{ + /** + *

The ARN of the returned dashboard.

+ */ + inline const Aws::String& GetDashboardIdentifier() const{ return m_dashboardIdentifier; } + inline void SetDashboardIdentifier(const Aws::String& value) { m_dashboardIdentifier = value; } + inline void SetDashboardIdentifier(Aws::String&& value) { m_dashboardIdentifier = std::move(value); } + inline void SetDashboardIdentifier(const char* value) { m_dashboardIdentifier.assign(value); } + inline GetBuyerDashboardResult& WithDashboardIdentifier(const Aws::String& value) { SetDashboardIdentifier(value); return *this;} + inline GetBuyerDashboardResult& WithDashboardIdentifier(Aws::String&& value) { SetDashboardIdentifier(std::move(value)); return *this;} + inline GetBuyerDashboardResult& WithDashboardIdentifier(const char* value) { SetDashboardIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

The fully qualified domains specified in the request. The domains enable + * access to the generated URL that is then embedded. You can list up to two + * domains or subdomains in each API call. To include all subdomains under a + * specific domain, use *. For example, + * https:// *.amazon.com includes all subdomains under + * https://aws.amazon.com.

+ */ + inline const Aws::Vector& GetEmbeddingDomains() const{ return m_embeddingDomains; } + inline void SetEmbeddingDomains(const Aws::Vector& value) { m_embeddingDomains = value; } + inline void SetEmbeddingDomains(Aws::Vector&& value) { m_embeddingDomains = std::move(value); } + inline GetBuyerDashboardResult& WithEmbeddingDomains(const Aws::Vector& value) { SetEmbeddingDomains(value); return *this;} + inline GetBuyerDashboardResult& WithEmbeddingDomains(Aws::Vector&& value) { SetEmbeddingDomains(std::move(value)); return *this;} + inline GetBuyerDashboardResult& AddEmbeddingDomains(const Aws::String& value) { m_embeddingDomains.push_back(value); return *this; } + inline GetBuyerDashboardResult& AddEmbeddingDomains(Aws::String&& value) { m_embeddingDomains.push_back(std::move(value)); return *this; } + inline GetBuyerDashboardResult& AddEmbeddingDomains(const char* value) { m_embeddingDomains.push_back(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 GetBuyerDashboardResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetBuyerDashboardResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetBuyerDashboardResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_embedUrl; + + Aws::String m_dashboardIdentifier; + + Aws::Vector m_embeddingDomains; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingClient.cpp b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingClient.cpp new file mode 100644 index 00000000000..8220d3753f6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingClient.cpp @@ -0,0 +1,194 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include + + +using namespace Aws; +using namespace Aws::Auth; +using namespace Aws::Client; +using namespace Aws::MarketplaceReporting; +using namespace Aws::MarketplaceReporting::Model; +using namespace Aws::Http; +using namespace Aws::Utils::Json; +using namespace smithy::components::tracing; +using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + +namespace Aws +{ + namespace MarketplaceReporting + { + const char SERVICE_NAME[] = "aws-marketplace"; + const char ALLOCATION_TAG[] = "MarketplaceReportingClient"; + } +} +const char* MarketplaceReportingClient::GetServiceName() {return SERVICE_NAME;} +const char* MarketplaceReportingClient::GetAllocationTag() {return ALLOCATION_TAG;} + +MarketplaceReportingClient::MarketplaceReportingClient(const MarketplaceReporting::MarketplaceReportingClientConfiguration& clientConfiguration, + std::shared_ptr endpointProvider) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +MarketplaceReportingClient::MarketplaceReportingClient(const AWSCredentials& credentials, + std::shared_ptr endpointProvider, + const MarketplaceReporting::MarketplaceReportingClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +MarketplaceReportingClient::MarketplaceReportingClient(const std::shared_ptr& credentialsProvider, + std::shared_ptr endpointProvider, + const MarketplaceReporting::MarketplaceReportingClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + credentialsProvider, + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + + /* Legacy constructors due deprecation */ + MarketplaceReportingClient::MarketplaceReportingClient(const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +MarketplaceReportingClient::MarketplaceReportingClient(const AWSCredentials& credentials, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +MarketplaceReportingClient::MarketplaceReportingClient(const std::shared_ptr& credentialsProvider, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + credentialsProvider, + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + + /* End of legacy constructors due deprecation */ +MarketplaceReportingClient::~MarketplaceReportingClient() +{ + ShutdownSdkClient(this, -1); +} + +std::shared_ptr& MarketplaceReportingClient::accessEndpointProvider() +{ + return m_endpointProvider; +} + +void MarketplaceReportingClient::init(const MarketplaceReporting::MarketplaceReportingClientConfiguration& config) +{ + AWSClient::SetServiceClientName("Marketplace Reporting"); + if (!m_clientConfiguration.executor) { + if (!m_clientConfiguration.configFactories.executorCreateFn()) { + AWS_LOGSTREAM_FATAL(ALLOCATION_TAG, "Failed to initialize client: config is missing Executor or executorCreateFn"); + m_isInitialized = false; + return; + } + m_clientConfiguration.executor = m_clientConfiguration.configFactories.executorCreateFn(); + } + AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); + m_endpointProvider->InitBuiltInParameters(config); +} + +void MarketplaceReportingClient::OverrideEndpoint(const Aws::String& endpoint) +{ + AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); + m_endpointProvider->OverrideEndpoint(endpoint); +} + +GetBuyerDashboardOutcome MarketplaceReportingClient::GetBuyerDashboard(const GetBuyerDashboardRequest& request) const +{ + AWS_OPERATION_GUARD(GetBuyerDashboard); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetBuyerDashboard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetBuyerDashboard, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetBuyerDashboard, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetBuyerDashboard", + {{ 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( + [&]()-> GetBuyerDashboardOutcome { + 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, GetBuyerDashboard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/getBuyerDashboard"); + return GetBuyerDashboardOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingEndpointProvider.cpp b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingEndpointProvider.cpp new file mode 100644 index 00000000000..4d47e93b6fe --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingEndpointProvider.cpp @@ -0,0 +1,16 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include + +namespace Aws +{ +namespace MarketplaceReporting +{ +namespace Endpoint +{ +} // namespace Endpoint +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingEndpointRules.cpp b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingEndpointRules.cpp new file mode 100644 index 00000000000..41394ca70dc --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingEndpointRules.cpp @@ -0,0 +1,178 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +namespace Aws +{ +namespace MarketplaceReporting +{ +const size_t MarketplaceReportingEndpointRules::RulesBlobStrLen = 3784; +const size_t MarketplaceReportingEndpointRules::RulesBlobSize = 3785; + +using RulesBlobT = Aws::Array; +static constexpr RulesBlobT RulesBlob = {{ +'{','"','v','e','r','s','i','o','n','"',':','"','1','.','0','"',',','"','p','a','r','a','m','e','t', +'e','r','s','"',':','{','"','R','e','g','i','o','n','"',':','{','"','b','u','i','l','t','I','n','"', +':','"','A','W','S',':',':','R','e','g','i','o','n','"',',','"','r','e','q','u','i','r','e','d','"', +':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"',':','"','T', +'h','e',' ','A','W','S',' ','r','e','g','i','o','n',' ','u','s','e','d',' ','t','o',' ','d','i','s', +'p','a','t','c','h',' ','t','h','e',' ','r','e','q','u','e','s','t','.','"',',','"','t','y','p','e', +'"',':','"','S','t','r','i','n','g','"','}',',','"','U','s','e','D','u','a','l','S','t','a','c','k', +'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','D','u','a', +'l','S','t','a','c','k','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"', +'d','e','f','a','u','l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a', +'t','i','o','n','"',':','"','W','h','e','n',' ','t','r','u','e',',',' ','u','s','e',' ','t','h','e', +' ','d','u','a','l','-','s','t','a','c','k',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', +'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', +'o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','d','u','a','l','-','s','t','a','c', +'k',',',' ','d','i','s','p','a','t','c','h','i','n','g',' ','t','h','e',' ','r','e','q','u','e','s', +'t',' ','M','A','Y',' ','r','e','t','u','r','n',' ','a','n',' ','e','r','r','o','r','.','"',',','"', +'t','y','p','e','"',':','"','B','o','o','l','e','a','n','"','}',',','"','U','s','e','F','I','P','S', +'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','F','I','P', +'S','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"','d','e','f','a','u', +'l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', +':','"','W','h','e','n',' ','t','r','u','e',',',' ','s','e','n','d',' ','t','h','i','s',' ','r','e', +'q','u','e','s','t',' ','t','o',' ','t','h','e',' ','F','I','P','S','-','c','o','m','p','l','i','a', +'n','t',' ','r','e','g','i','o','n','a','l',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', +'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', +'o','e','s',' ','n','o','t',' ','h','a','v','e',' ','a',' ','F','I','P','S',' ','c','o','m','p','l', +'i','a','n','t',' ','e','n','d','p','o','i','n','t',',',' ','d','i','s','p','a','t','c','h','i','n', +'g',' ','t','h','e',' ','r','e','q','u','e','s','t',' ','w','i','l','l',' ','r','e','t','u','r','n', +' ','a','n',' ','e','r','r','o','r','.','"',',','"','t','y','p','e','"',':','"','B','o','o','l','e', +'a','n','"','}',',','"','E','n','d','p','o','i','n','t','"',':','{','"','b','u','i','l','t','I','n', +'"',':','"','S','D','K',':',':','E','n','d','p','o','i','n','t','"',',','"','r','e','q','u','i','r', +'e','d','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', +':','"','O','v','e','r','r','i','d','e',' ','t','h','e',' ','e','n','d','p','o','i','n','t',' ','u', +'s','e','d',' ','t','o',' ','s','e','n','d',' ','t','h','i','s',' ','r','e','q','u','e','s','t','"', +',','"','t','y','p','e','"',':','"','S','t','r','i','n','g','"','}','}',',','"','r','u','l','e','s', +'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', +'i','s','S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','E','n', +'d','p','o','i','n','t','"','}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n', +'E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U', +'s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':', +'"','I','n','v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','F', +'I','P','S',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a', +'r','e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':', +'"','e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']', +',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +'{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r', +'g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k', +'"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l', +'i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','D','u','a','l','s','t','a', +'c','k',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r', +'e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':','"', +'e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', +'"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','{','"','r','e','f','"',':', +'"','E','n','d','p','o','i','n','t','"','}',',','"','p','r','o','p','e','r','t','i','e','s','"',':', +'{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"', +'e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"', +'}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i', +'t','i','o','n','s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d', +'i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','i','s','S','e','t','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']','}',']', +',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +'{','"','f','n','"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',','"','a','r', +'g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']',',','"','a', +'s','s','i','g','n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}', +']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':', +'[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t', +'r','u','e',']','}',',','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l', +'s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a', +'l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':', +'[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o', +'o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e', +',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[', +'{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}', +',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}',',','{','"','f','n','"', +':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[', +'t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g', +'v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u', +'l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']', +'}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n', +'s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o', +'n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':', +'"','h','t','t','p','s',':','/','/','r','e','p','o','r','t','i','n','g','-','m','a','r','k','e','t', +'p','l','a','c','e','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t', +'i','t','i','o','n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S', +'u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"', +'h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p', +'o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"', +'t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n', +'s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','F','I','P','S',' ','a','n','d',' ','D', +'u','a','l','S','t','a','c','k',' ','a','r','e',' ','e','n','a','b','l','e','d',',',' ','b','u','t', +' ','t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ', +'s','u','p','p','o','r','t',' ','o','n','e',' ','o','r',' ','b','o','t','h','"',',','"','t','y','p', +'e','"',':','"','e','r','r','o','r','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e', +'"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', +'b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"', +'r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"', +'r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"', +'f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v', +'"',':','[','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"', +':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t', +'"','}',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',',','t','r','u','e',']', +'}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"', +':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s', +'"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h', +'t','t','p','s',':','/','/','r','e','p','o','r','t','i','n','g','-','m','a','r','k','e','t','p','l', +'a','c','e','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t', +'i','o','n','R','e','s','u','l','t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p','r', +'o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}', +'}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t','y', +'p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e', +'"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o', +'r','"',':','"','F','I','P','S',' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t', +'h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u', +'p','p','o','r','t',' ','F','I','P','S','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r', +'"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d', +'i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q', +'u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e', +'D','u','a','l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e', +'s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':', +'"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t', +'r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v', +'"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l', +'t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']','}', +']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s', +'"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n', +'s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"', +'h','t','t','p','s',':','/','/','r','e','p','o','r','t','i','n','g','-','m','a','r','k','e','t','p', +'l','a','c','e','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R', +'e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','}', +'"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r', +'s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}', +']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e','"',':', +'"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', +'"','e','r','r','o','r','"',':','"','D','u','a','l','S','t','a','c','k',' ','i','s',' ','e','n','a', +'b','l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d', +'o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','D','u','a','l','S','t','a','c','k', +'"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']',',','"','t','y','p','e','"', +':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']', +',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p', +'s',':','/','/','r','e','p','o','r','t','i','n','g','-','m','a','r','k','e','t','p','l','a','c','e', +'.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l', +'t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s', +'"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"', +':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e', +'e','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p', +'e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':', +'[',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l','i','d',' ','C','o','n','f','i', +'g','u','r','a','t','i','o','n',':',' ','M','i','s','s','i','n','g',' ','R','e','g','i','o','n','"', +',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']',',','"','t','y','p','e','"',':', +'"','t','r','e','e','"','}',']','}','\0' +}}; + +const char* MarketplaceReportingEndpointRules::GetRulesBlob() +{ + return RulesBlob.data(); +} + +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingErrorMarshaller.cpp b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingErrorMarshaller.cpp new file mode 100644 index 00000000000..e18ee592c5f --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingErrorMarshaller.cpp @@ -0,0 +1,22 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::MarketplaceReporting; + +AWSError MarketplaceReportingErrorMarshaller::FindErrorByName(const char* errorName) const +{ + AWSError error = MarketplaceReportingErrorMapper::GetErrorForName(errorName); + if(error.GetErrorType() != CoreErrors::UNKNOWN) + { + return error; + } + + return AWSErrorMarshaller::FindErrorByName(errorName); +} \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingErrors.cpp b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingErrors.cpp new file mode 100644 index 00000000000..eeeabb33460 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingErrors.cpp @@ -0,0 +1,47 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::Utils; +using namespace Aws::MarketplaceReporting; + +namespace Aws +{ +namespace MarketplaceReporting +{ +namespace MarketplaceReportingErrorMapper +{ + +static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); +static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); + + +AWSError GetErrorForName(const char* errorName) +{ + int hashCode = HashingUtils::HashString(errorName); + + if (hashCode == INTERNAL_SERVER_HASH) + { + return AWSError(static_cast(MarketplaceReportingErrors::INTERNAL_SERVER), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == UNAUTHORIZED_HASH) + { + return AWSError(static_cast(MarketplaceReportingErrors::UNAUTHORIZED), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == BAD_REQUEST_HASH) + { + return AWSError(static_cast(MarketplaceReportingErrors::BAD_REQUEST), RetryableType::NOT_RETRYABLE); + } + return AWSError(CoreErrors::UNKNOWN, false); +} + +} // namespace MarketplaceReportingErrorMapper +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingRequest.cpp b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingRequest.cpp new file mode 100644 index 00000000000..eef82206e70 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingRequest.cpp @@ -0,0 +1,14 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + + +#include + +namespace Aws +{ +namespace MarketplaceReporting +{ +} // namespace MarketplaceReporting +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/source/model/GetBuyerDashboardRequest.cpp b/generated/src/aws-cpp-sdk-marketplace-reporting/source/model/GetBuyerDashboardRequest.cpp new file mode 100644 index 00000000000..689507e8f2b --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/source/model/GetBuyerDashboardRequest.cpp @@ -0,0 +1,47 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MarketplaceReporting::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetBuyerDashboardRequest::GetBuyerDashboardRequest() : + m_dashboardIdentifierHasBeenSet(false), + m_embeddingDomainsHasBeenSet(false) +{ +} + +Aws::String GetBuyerDashboardRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_dashboardIdentifierHasBeenSet) + { + payload.WithString("dashboardIdentifier", m_dashboardIdentifier); + + } + + if(m_embeddingDomainsHasBeenSet) + { + Aws::Utils::Array embeddingDomainsJsonList(m_embeddingDomains.size()); + for(unsigned embeddingDomainsIndex = 0; embeddingDomainsIndex < embeddingDomainsJsonList.GetLength(); ++embeddingDomainsIndex) + { + embeddingDomainsJsonList[embeddingDomainsIndex].AsString(m_embeddingDomains[embeddingDomainsIndex]); + } + payload.WithArray("embeddingDomains", std::move(embeddingDomainsJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/source/model/GetBuyerDashboardResult.cpp b/generated/src/aws-cpp-sdk-marketplace-reporting/source/model/GetBuyerDashboardResult.cpp new file mode 100644 index 00000000000..56a8c35bfe5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/source/model/GetBuyerDashboardResult.cpp @@ -0,0 +1,63 @@ +/** + * 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::MarketplaceReporting::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetBuyerDashboardResult::GetBuyerDashboardResult() +{ +} + +GetBuyerDashboardResult::GetBuyerDashboardResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetBuyerDashboardResult& GetBuyerDashboardResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("embedUrl")) + { + m_embedUrl = jsonValue.GetString("embedUrl"); + + } + + if(jsonValue.ValueExists("dashboardIdentifier")) + { + m_dashboardIdentifier = jsonValue.GetString("dashboardIdentifier"); + + } + + if(jsonValue.ValueExists("embeddingDomains")) + { + Aws::Utils::Array embeddingDomainsJsonList = jsonValue.GetArray("embeddingDomains"); + for(unsigned embeddingDomainsIndex = 0; embeddingDomainsIndex < embeddingDomainsJsonList.GetLength(); ++embeddingDomainsIndex) + { + m_embeddingDomains.push_back(embeddingDomainsJsonList[embeddingDomainsIndex].AsString()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateHlsManifestConfiguration.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateHlsManifestConfiguration.h index 70b1dc8058f..cf58cb83a4a 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateHlsManifestConfiguration.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateHlsManifestConfiguration.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -87,6 +88,16 @@ namespace Model inline CreateHlsManifestConfiguration& WithScteHls(ScteHls&& value) { SetScteHls(std::move(value)); return *this;} ///@} + ///@{ + + inline const StartTag& GetStartTag() const{ return m_startTag; } + inline bool StartTagHasBeenSet() const { return m_startTagHasBeenSet; } + inline void SetStartTag(const StartTag& value) { m_startTagHasBeenSet = true; m_startTag = value; } + inline void SetStartTag(StartTag&& value) { m_startTagHasBeenSet = true; m_startTag = std::move(value); } + inline CreateHlsManifestConfiguration& WithStartTag(const StartTag& value) { SetStartTag(value); return *this;} + inline CreateHlsManifestConfiguration& WithStartTag(StartTag&& value) { SetStartTag(std::move(value)); return *this;} + ///@} + ///@{ /** *

The total duration (in seconds) of the manifest's content.

@@ -133,6 +144,9 @@ namespace Model ScteHls m_scteHls; bool m_scteHlsHasBeenSet = false; + StartTag m_startTag; + bool m_startTagHasBeenSet = false; + int m_manifestWindowSeconds; bool m_manifestWindowSecondsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateLowLatencyHlsManifestConfiguration.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateLowLatencyHlsManifestConfiguration.h index 4fd1466192c..e6de463701b 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateLowLatencyHlsManifestConfiguration.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateLowLatencyHlsManifestConfiguration.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -87,6 +88,16 @@ namespace Model inline CreateLowLatencyHlsManifestConfiguration& WithScteHls(ScteHls&& value) { SetScteHls(std::move(value)); return *this;} ///@} + ///@{ + + inline const StartTag& GetStartTag() const{ return m_startTag; } + inline bool StartTagHasBeenSet() const { return m_startTagHasBeenSet; } + inline void SetStartTag(const StartTag& value) { m_startTagHasBeenSet = true; m_startTag = value; } + inline void SetStartTag(StartTag&& value) { m_startTagHasBeenSet = true; m_startTag = std::move(value); } + inline CreateLowLatencyHlsManifestConfiguration& WithStartTag(const StartTag& value) { SetStartTag(value); return *this;} + inline CreateLowLatencyHlsManifestConfiguration& WithStartTag(StartTag&& value) { SetStartTag(std::move(value)); return *this;} + ///@} + ///@{ /** *

The total duration (in seconds) of the manifest's content.

@@ -133,6 +144,9 @@ namespace Model ScteHls m_scteHls; bool m_scteHlsHasBeenSet = false; + StartTag m_startTag; + bool m_startTagHasBeenSet = false; + int m_manifestWindowSeconds; bool m_manifestWindowSecondsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/FilterConfiguration.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/FilterConfiguration.h index c24b92e7102..2d0710919ac 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/FilterConfiguration.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/FilterConfiguration.h @@ -96,6 +96,20 @@ namespace Model inline void SetTimeDelaySeconds(int value) { m_timeDelaySecondsHasBeenSet = true; m_timeDelaySeconds = value; } inline FilterConfiguration& WithTimeDelaySeconds(int value) { SetTimeDelaySeconds(value); return *this;} ///@} + + ///@{ + /** + *

Optionally specify the clip start time for all of your manifest egress + * requests. When you include clip start time, note that you cannot use clip start + * time query parameters for this manifest's endpoint URL.

+ */ + inline const Aws::Utils::DateTime& GetClipStartTime() const{ return m_clipStartTime; } + inline bool ClipStartTimeHasBeenSet() const { return m_clipStartTimeHasBeenSet; } + inline void SetClipStartTime(const Aws::Utils::DateTime& value) { m_clipStartTimeHasBeenSet = true; m_clipStartTime = value; } + inline void SetClipStartTime(Aws::Utils::DateTime&& value) { m_clipStartTimeHasBeenSet = true; m_clipStartTime = std::move(value); } + inline FilterConfiguration& WithClipStartTime(const Aws::Utils::DateTime& value) { SetClipStartTime(value); return *this;} + inline FilterConfiguration& WithClipStartTime(Aws::Utils::DateTime&& value) { SetClipStartTime(std::move(value)); return *this;} + ///@} private: Aws::String m_manifestFilter; @@ -109,6 +123,9 @@ namespace Model int m_timeDelaySeconds; bool m_timeDelaySecondsHasBeenSet = false; + + Aws::Utils::DateTime m_clipStartTime; + bool m_clipStartTimeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetHlsManifestConfiguration.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetHlsManifestConfiguration.h index a29c2c17590..79c3316b86c 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetHlsManifestConfiguration.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetHlsManifestConfiguration.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -136,6 +137,16 @@ namespace Model inline GetHlsManifestConfiguration& WithFilterConfiguration(const FilterConfiguration& value) { SetFilterConfiguration(value); return *this;} inline GetHlsManifestConfiguration& WithFilterConfiguration(FilterConfiguration&& value) { SetFilterConfiguration(std::move(value)); return *this;} ///@} + + ///@{ + + inline const StartTag& GetStartTag() const{ return m_startTag; } + inline bool StartTagHasBeenSet() const { return m_startTagHasBeenSet; } + inline void SetStartTag(const StartTag& value) { m_startTagHasBeenSet = true; m_startTag = value; } + inline void SetStartTag(StartTag&& value) { m_startTagHasBeenSet = true; m_startTag = std::move(value); } + inline GetHlsManifestConfiguration& WithStartTag(const StartTag& value) { SetStartTag(value); return *this;} + inline GetHlsManifestConfiguration& WithStartTag(StartTag&& value) { SetStartTag(std::move(value)); return *this;} + ///@} private: Aws::String m_manifestName; @@ -158,6 +169,9 @@ namespace Model FilterConfiguration m_filterConfiguration; bool m_filterConfigurationHasBeenSet = false; + + StartTag m_startTag; + bool m_startTagHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetLowLatencyHlsManifestConfiguration.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetLowLatencyHlsManifestConfiguration.h index bd53f4f5f62..39f2b271db4 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetLowLatencyHlsManifestConfiguration.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetLowLatencyHlsManifestConfiguration.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -136,6 +137,16 @@ namespace Model inline GetLowLatencyHlsManifestConfiguration& WithFilterConfiguration(const FilterConfiguration& value) { SetFilterConfiguration(value); return *this;} inline GetLowLatencyHlsManifestConfiguration& WithFilterConfiguration(FilterConfiguration&& value) { SetFilterConfiguration(std::move(value)); return *this;} ///@} + + ///@{ + + inline const StartTag& GetStartTag() const{ return m_startTag; } + inline bool StartTagHasBeenSet() const { return m_startTagHasBeenSet; } + inline void SetStartTag(const StartTag& value) { m_startTagHasBeenSet = true; m_startTag = value; } + inline void SetStartTag(StartTag&& value) { m_startTagHasBeenSet = true; m_startTag = std::move(value); } + inline GetLowLatencyHlsManifestConfiguration& WithStartTag(const StartTag& value) { SetStartTag(value); return *this;} + inline GetLowLatencyHlsManifestConfiguration& WithStartTag(StartTag&& value) { SetStartTag(std::move(value)); return *this;} + ///@} private: Aws::String m_manifestName; @@ -158,6 +169,9 @@ namespace Model FilterConfiguration m_filterConfiguration; bool m_filterConfigurationHasBeenSet = false; + + StartTag m_startTag; + bool m_startTagHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/StartTag.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/StartTag.h new file mode 100644 index 00000000000..c16ca567abd --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/StartTag.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace mediapackagev2 +{ +namespace Model +{ + + /** + *

To insert an EXT-X-START tag in your HLS playlist, specify a StartTag + * configuration object with a valid TimeOffset. When you do, you can also + * optionally specify whether to include a PRECISE value in the EXT-X-START + * tag.

See Also:

AWS + * API Reference

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

Specify the value for TIME-OFFSET within your EXT-X-START tag. Enter a signed + * floating point value which, if positive, must be less than the configured + * manifest duration minus three times the configured segment target duration. If + * negative, the absolute value must be larger than three times the configured + * segment target duration, and the absolute value must be smaller than the + * configured manifest duration.

+ */ + inline double GetTimeOffset() const{ return m_timeOffset; } + inline bool TimeOffsetHasBeenSet() const { return m_timeOffsetHasBeenSet; } + inline void SetTimeOffset(double value) { m_timeOffsetHasBeenSet = true; m_timeOffset = value; } + inline StartTag& WithTimeOffset(double value) { SetTimeOffset(value); return *this;} + ///@} + + ///@{ + /** + *

Specify the value for PRECISE within your EXT-X-START tag. Leave blank, or + * choose false, to use the default value NO. Choose yes to use the value YES.

+ */ + inline bool GetPrecise() const{ return m_precise; } + inline bool PreciseHasBeenSet() const { return m_preciseHasBeenSet; } + inline void SetPrecise(bool value) { m_preciseHasBeenSet = true; m_precise = value; } + inline StartTag& WithPrecise(bool value) { SetPrecise(value); return *this;} + ///@} + private: + + double m_timeOffset; + bool m_timeOffsetHasBeenSet = false; + + bool m_precise; + bool m_preciseHasBeenSet = false; + }; + +} // namespace Model +} // namespace mediapackagev2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/ValidationExceptionType.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/ValidationExceptionType.h index 1471fa606b5..98e4719432d 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/ValidationExceptionType.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/ValidationExceptionType.h @@ -62,7 +62,9 @@ namespace Model PERIOD_TRIGGERS_NONE_SPECIFIED_WITH_ADDITIONAL_VALUES, DRM_SIGNALING_MISMATCH_SEGMENT_ENCRYPTION_STATUS, ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION, - SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY + SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY, + CLIP_START_TIME_WITH_START_OR_END, + START_TAG_TIME_OFFSET_INVALID }; namespace ValidationExceptionTypeMapper diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateHlsManifestConfiguration.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateHlsManifestConfiguration.cpp index 0d13e16dce0..71f85bd9df7 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateHlsManifestConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateHlsManifestConfiguration.cpp @@ -22,6 +22,7 @@ CreateHlsManifestConfiguration::CreateHlsManifestConfiguration() : m_manifestNameHasBeenSet(false), m_childManifestNameHasBeenSet(false), m_scteHlsHasBeenSet(false), + m_startTagHasBeenSet(false), m_manifestWindowSeconds(0), m_manifestWindowSecondsHasBeenSet(false), m_programDateTimeIntervalSeconds(0), @@ -59,6 +60,13 @@ CreateHlsManifestConfiguration& CreateHlsManifestConfiguration::operator =(JsonV m_scteHlsHasBeenSet = true; } + if(jsonValue.ValueExists("StartTag")) + { + m_startTag = jsonValue.GetObject("StartTag"); + + m_startTagHasBeenSet = true; + } + if(jsonValue.ValueExists("ManifestWindowSeconds")) { m_manifestWindowSeconds = jsonValue.GetInteger("ManifestWindowSeconds"); @@ -105,6 +113,12 @@ JsonValue CreateHlsManifestConfiguration::Jsonize() const } + if(m_startTagHasBeenSet) + { + payload.WithObject("StartTag", m_startTag.Jsonize()); + + } + if(m_manifestWindowSecondsHasBeenSet) { payload.WithInteger("ManifestWindowSeconds", m_manifestWindowSeconds); diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateLowLatencyHlsManifestConfiguration.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateLowLatencyHlsManifestConfiguration.cpp index 45e771bb7a2..211bca1ca8d 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateLowLatencyHlsManifestConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateLowLatencyHlsManifestConfiguration.cpp @@ -22,6 +22,7 @@ CreateLowLatencyHlsManifestConfiguration::CreateLowLatencyHlsManifestConfigurati m_manifestNameHasBeenSet(false), m_childManifestNameHasBeenSet(false), m_scteHlsHasBeenSet(false), + m_startTagHasBeenSet(false), m_manifestWindowSeconds(0), m_manifestWindowSecondsHasBeenSet(false), m_programDateTimeIntervalSeconds(0), @@ -59,6 +60,13 @@ CreateLowLatencyHlsManifestConfiguration& CreateLowLatencyHlsManifestConfigurati m_scteHlsHasBeenSet = true; } + if(jsonValue.ValueExists("StartTag")) + { + m_startTag = jsonValue.GetObject("StartTag"); + + m_startTagHasBeenSet = true; + } + if(jsonValue.ValueExists("ManifestWindowSeconds")) { m_manifestWindowSeconds = jsonValue.GetInteger("ManifestWindowSeconds"); @@ -105,6 +113,12 @@ JsonValue CreateLowLatencyHlsManifestConfiguration::Jsonize() const } + if(m_startTagHasBeenSet) + { + payload.WithObject("StartTag", m_startTag.Jsonize()); + + } + if(m_manifestWindowSecondsHasBeenSet) { payload.WithInteger("ManifestWindowSeconds", m_manifestWindowSeconds); diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/FilterConfiguration.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/FilterConfiguration.cpp index fc53c3bd39e..9bfd2eca3ca 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/FilterConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/FilterConfiguration.cpp @@ -23,7 +23,8 @@ FilterConfiguration::FilterConfiguration() : m_startHasBeenSet(false), m_endHasBeenSet(false), m_timeDelaySeconds(0), - m_timeDelaySecondsHasBeenSet(false) + m_timeDelaySecondsHasBeenSet(false), + m_clipStartTimeHasBeenSet(false) { } @@ -63,6 +64,13 @@ FilterConfiguration& FilterConfiguration::operator =(JsonView jsonValue) m_timeDelaySecondsHasBeenSet = true; } + if(jsonValue.ValueExists("ClipStartTime")) + { + m_clipStartTime = jsonValue.GetDouble("ClipStartTime"); + + m_clipStartTimeHasBeenSet = true; + } + return *this; } @@ -92,6 +100,11 @@ JsonValue FilterConfiguration::Jsonize() const } + if(m_clipStartTimeHasBeenSet) + { + payload.WithDouble("ClipStartTime", m_clipStartTime.SecondsWithMSPrecision()); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetHlsManifestConfiguration.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetHlsManifestConfiguration.cpp index 906149f13b7..ae61b7cdb45 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetHlsManifestConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetHlsManifestConfiguration.cpp @@ -27,7 +27,8 @@ GetHlsManifestConfiguration::GetHlsManifestConfiguration() : m_programDateTimeIntervalSeconds(0), m_programDateTimeIntervalSecondsHasBeenSet(false), m_scteHlsHasBeenSet(false), - m_filterConfigurationHasBeenSet(false) + m_filterConfigurationHasBeenSet(false), + m_startTagHasBeenSet(false) { } @@ -88,6 +89,13 @@ GetHlsManifestConfiguration& GetHlsManifestConfiguration::operator =(JsonView js m_filterConfigurationHasBeenSet = true; } + if(jsonValue.ValueExists("StartTag")) + { + m_startTag = jsonValue.GetObject("StartTag"); + + m_startTagHasBeenSet = true; + } + return *this; } @@ -137,6 +145,12 @@ JsonValue GetHlsManifestConfiguration::Jsonize() const } + if(m_startTagHasBeenSet) + { + payload.WithObject("StartTag", m_startTag.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetLowLatencyHlsManifestConfiguration.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetLowLatencyHlsManifestConfiguration.cpp index 8e513842a07..15e0327bc0d 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetLowLatencyHlsManifestConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetLowLatencyHlsManifestConfiguration.cpp @@ -27,7 +27,8 @@ GetLowLatencyHlsManifestConfiguration::GetLowLatencyHlsManifestConfiguration() : m_programDateTimeIntervalSeconds(0), m_programDateTimeIntervalSecondsHasBeenSet(false), m_scteHlsHasBeenSet(false), - m_filterConfigurationHasBeenSet(false) + m_filterConfigurationHasBeenSet(false), + m_startTagHasBeenSet(false) { } @@ -88,6 +89,13 @@ GetLowLatencyHlsManifestConfiguration& GetLowLatencyHlsManifestConfiguration::op m_filterConfigurationHasBeenSet = true; } + if(jsonValue.ValueExists("StartTag")) + { + m_startTag = jsonValue.GetObject("StartTag"); + + m_startTagHasBeenSet = true; + } + return *this; } @@ -137,6 +145,12 @@ JsonValue GetLowLatencyHlsManifestConfiguration::Jsonize() const } + if(m_startTagHasBeenSet) + { + payload.WithObject("StartTag", m_startTag.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/StartTag.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/StartTag.cpp new file mode 100644 index 00000000000..0f33b4597ce --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/StartTag.cpp @@ -0,0 +1,75 @@ +/** + * 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 mediapackagev2 +{ +namespace Model +{ + +StartTag::StartTag() : + m_timeOffset(0.0), + m_timeOffsetHasBeenSet(false), + m_precise(false), + m_preciseHasBeenSet(false) +{ +} + +StartTag::StartTag(JsonView jsonValue) + : StartTag() +{ + *this = jsonValue; +} + +StartTag& StartTag::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("TimeOffset")) + { + m_timeOffset = jsonValue.GetDouble("TimeOffset"); + + m_timeOffsetHasBeenSet = true; + } + + if(jsonValue.ValueExists("Precise")) + { + m_precise = jsonValue.GetBool("Precise"); + + m_preciseHasBeenSet = true; + } + + return *this; +} + +JsonValue StartTag::Jsonize() const +{ + JsonValue payload; + + if(m_timeOffsetHasBeenSet) + { + payload.WithDouble("TimeOffset", m_timeOffset); + + } + + if(m_preciseHasBeenSet) + { + payload.WithBool("Precise", m_precise); + + } + + return payload; +} + +} // namespace Model +} // namespace mediapackagev2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp index 8f40cfe20b9..99ea92b3176 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp @@ -67,6 +67,8 @@ namespace Aws static const int DRM_SIGNALING_MISMATCH_SEGMENT_ENCRYPTION_STATUS_HASH = HashingUtils::HashString("DRM_SIGNALING_MISMATCH_SEGMENT_ENCRYPTION_STATUS"); static const int ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION_HASH = HashingUtils::HashString("ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION"); static const int SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY_HASH = HashingUtils::HashString("SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY"); + static const int CLIP_START_TIME_WITH_START_OR_END_HASH = HashingUtils::HashString("CLIP_START_TIME_WITH_START_OR_END"); + static const int START_TAG_TIME_OFFSET_INVALID_HASH = HashingUtils::HashString("START_TAG_TIME_OFFSET_INVALID"); ValidationExceptionType GetValidationExceptionTypeForName(const Aws::String& name) @@ -260,6 +262,14 @@ namespace Aws { return ValidationExceptionType::SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY; } + else if (hashCode == CLIP_START_TIME_WITH_START_OR_END_HASH) + { + return ValidationExceptionType::CLIP_START_TIME_WITH_START_OR_END; + } + else if (hashCode == START_TAG_TIME_OFFSET_INVALID_HASH) + { + return ValidationExceptionType::START_TAG_TIME_OFFSET_INVALID; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -370,6 +380,10 @@ namespace Aws return "ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION"; case ValidationExceptionType::SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY: return "SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY"; + case ValidationExceptionType::CLIP_START_TIME_WITH_START_OR_END: + return "CLIP_START_TIME_WITH_START_OR_END"; + case ValidationExceptionType::START_TAG_TIME_OFFSET_INVALID: + return "START_TAG_TIME_OFFSET_INVALID"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleCloudFormationOverridePropertyConfiguration.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleCloudFormationOverridePropertyConfiguration.h index ad94e508877..5ee2e69b77a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleCloudFormationOverridePropertyConfiguration.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleCloudFormationOverridePropertyConfiguration.h @@ -14,6 +14,7 @@ #include #include #include +#include #include namespace Aws @@ -163,6 +164,21 @@ namespace Model inline AssetBundleCloudFormationOverridePropertyConfiguration& AddDashboards(const AssetBundleExportJobDashboardOverrideProperties& value) { m_dashboardsHasBeenSet = true; m_dashboards.push_back(value); return *this; } inline AssetBundleCloudFormationOverridePropertyConfiguration& AddDashboards(AssetBundleExportJobDashboardOverrideProperties&& value) { m_dashboardsHasBeenSet = true; m_dashboards.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

An optional list of structures that controls how Folder + * resources are parameterized in the returned CloudFormation template.

+ */ + inline const Aws::Vector& GetFolders() const{ return m_folders; } + inline bool FoldersHasBeenSet() const { return m_foldersHasBeenSet; } + inline void SetFolders(const Aws::Vector& value) { m_foldersHasBeenSet = true; m_folders = value; } + inline void SetFolders(Aws::Vector&& value) { m_foldersHasBeenSet = true; m_folders = std::move(value); } + inline AssetBundleCloudFormationOverridePropertyConfiguration& WithFolders(const Aws::Vector& value) { SetFolders(value); return *this;} + inline AssetBundleCloudFormationOverridePropertyConfiguration& WithFolders(Aws::Vector&& value) { SetFolders(std::move(value)); return *this;} + inline AssetBundleCloudFormationOverridePropertyConfiguration& AddFolders(const AssetBundleExportJobFolderOverrideProperties& value) { m_foldersHasBeenSet = true; m_folders.push_back(value); return *this; } + inline AssetBundleCloudFormationOverridePropertyConfiguration& AddFolders(AssetBundleExportJobFolderOverrideProperties&& value) { m_foldersHasBeenSet = true; m_folders.push_back(std::move(value)); return *this; } + ///@} private: AssetBundleExportJobResourceIdOverrideConfiguration m_resourceIdOverrideConfiguration; @@ -188,6 +204,9 @@ namespace Model Aws::Vector m_dashboards; bool m_dashboardsHasBeenSet = false; + + Aws::Vector m_folders; + bool m_foldersHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleExportJobFolderOverrideProperties.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleExportJobFolderOverrideProperties.h new file mode 100644 index 00000000000..fc0162968e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleExportJobFolderOverrideProperties.h @@ -0,0 +1,83 @@ +/** + * 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 QuickSight +{ +namespace Model +{ + + /** + *

Controls how a specific Folder resource is parameterized in the + * returned CloudFormation template.

See Also:

AWS + * API Reference

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

The ARN of the specific Folder resource whose override + * properties are configured in this structure.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + inline AssetBundleExportJobFolderOverrideProperties& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline AssetBundleExportJobFolderOverrideProperties& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline AssetBundleExportJobFolderOverrideProperties& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *

A list of Folder resource properties to generate variables for + * in the returned CloudFormation template.

+ */ + inline const Aws::Vector& GetProperties() const{ return m_properties; } + inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } + inline void SetProperties(const Aws::Vector& value) { m_propertiesHasBeenSet = true; m_properties = value; } + inline void SetProperties(Aws::Vector&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } + inline AssetBundleExportJobFolderOverrideProperties& WithProperties(const Aws::Vector& value) { SetProperties(value); return *this;} + inline AssetBundleExportJobFolderOverrideProperties& WithProperties(Aws::Vector&& value) { SetProperties(std::move(value)); return *this;} + inline AssetBundleExportJobFolderOverrideProperties& AddProperties(const AssetBundleExportJobFolderPropertyToOverride& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; } + inline AssetBundleExportJobFolderOverrideProperties& AddProperties(AssetBundleExportJobFolderPropertyToOverride&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::Vector m_properties; + bool m_propertiesHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleExportJobFolderPropertyToOverride.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleExportJobFolderPropertyToOverride.h new file mode 100644 index 00000000000..d30db57f4da --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleExportJobFolderPropertyToOverride.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + enum class AssetBundleExportJobFolderPropertyToOverride + { + NOT_SET, + Name, + ParentFolderArn + }; + +namespace AssetBundleExportJobFolderPropertyToOverrideMapper +{ +AWS_QUICKSIGHT_API AssetBundleExportJobFolderPropertyToOverride GetAssetBundleExportJobFolderPropertyToOverrideForName(const Aws::String& name); + +AWS_QUICKSIGHT_API Aws::String GetNameForAssetBundleExportJobFolderPropertyToOverride(AssetBundleExportJobFolderPropertyToOverride value); +} // namespace AssetBundleExportJobFolderPropertyToOverrideMapper +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobFolderOverrideParameters.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobFolderOverrideParameters.h new file mode 100644 index 00000000000..8ab76349fc5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobFolderOverrideParameters.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 QuickSight +{ +namespace Model +{ + + /** + *

The override parameters for a single folder that is being + * imported.

See Also:

AWS + * API Reference

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

The ID of the folder that you want to apply overrides to.

+ */ + inline const Aws::String& GetFolderId() const{ return m_folderId; } + inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; } + inline void SetFolderId(const Aws::String& value) { m_folderIdHasBeenSet = true; m_folderId = value; } + inline void SetFolderId(Aws::String&& value) { m_folderIdHasBeenSet = true; m_folderId = std::move(value); } + inline void SetFolderId(const char* value) { m_folderIdHasBeenSet = true; m_folderId.assign(value); } + inline AssetBundleImportJobFolderOverrideParameters& WithFolderId(const Aws::String& value) { SetFolderId(value); return *this;} + inline AssetBundleImportJobFolderOverrideParameters& WithFolderId(Aws::String&& value) { SetFolderId(std::move(value)); return *this;} + inline AssetBundleImportJobFolderOverrideParameters& WithFolderId(const char* value) { SetFolderId(value); return *this;} + ///@} + + ///@{ + /** + *

A new name for the folder.

+ */ + 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 AssetBundleImportJobFolderOverrideParameters& WithName(const Aws::String& value) { SetName(value); return *this;} + inline AssetBundleImportJobFolderOverrideParameters& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline AssetBundleImportJobFolderOverrideParameters& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

A new parent folder arn. This change can only be applied if the import + * creates a brand new folder. Existing folders cannot be moved.

+ */ + inline const Aws::String& GetParentFolderArn() const{ return m_parentFolderArn; } + inline bool ParentFolderArnHasBeenSet() const { return m_parentFolderArnHasBeenSet; } + inline void SetParentFolderArn(const Aws::String& value) { m_parentFolderArnHasBeenSet = true; m_parentFolderArn = value; } + inline void SetParentFolderArn(Aws::String&& value) { m_parentFolderArnHasBeenSet = true; m_parentFolderArn = std::move(value); } + inline void SetParentFolderArn(const char* value) { m_parentFolderArnHasBeenSet = true; m_parentFolderArn.assign(value); } + inline AssetBundleImportJobFolderOverrideParameters& WithParentFolderArn(const Aws::String& value) { SetParentFolderArn(value); return *this;} + inline AssetBundleImportJobFolderOverrideParameters& WithParentFolderArn(Aws::String&& value) { SetParentFolderArn(std::move(value)); return *this;} + inline AssetBundleImportJobFolderOverrideParameters& WithParentFolderArn(const char* value) { SetParentFolderArn(value); return *this;} + ///@} + private: + + Aws::String m_folderId; + bool m_folderIdHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_parentFolderArn; + bool m_parentFolderArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobFolderOverridePermissions.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobFolderOverridePermissions.h new file mode 100644 index 00000000000..9eeb49733c4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobFolderOverridePermissions.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 +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QuickSight +{ +namespace Model +{ + + /** + *

An object that contains a list of permissions to be applied to a list of + * folder IDs.

See Also:

AWS + * API Reference

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

A list of folder IDs that you want to apply overrides to. You can use + * * to override all folders in this asset bundle.

+ */ + inline const Aws::Vector& GetFolderIds() const{ return m_folderIds; } + inline bool FolderIdsHasBeenSet() const { return m_folderIdsHasBeenSet; } + inline void SetFolderIds(const Aws::Vector& value) { m_folderIdsHasBeenSet = true; m_folderIds = value; } + inline void SetFolderIds(Aws::Vector&& value) { m_folderIdsHasBeenSet = true; m_folderIds = std::move(value); } + inline AssetBundleImportJobFolderOverridePermissions& WithFolderIds(const Aws::Vector& value) { SetFolderIds(value); return *this;} + inline AssetBundleImportJobFolderOverridePermissions& WithFolderIds(Aws::Vector&& value) { SetFolderIds(std::move(value)); return *this;} + inline AssetBundleImportJobFolderOverridePermissions& AddFolderIds(const Aws::String& value) { m_folderIdsHasBeenSet = true; m_folderIds.push_back(value); return *this; } + inline AssetBundleImportJobFolderOverridePermissions& AddFolderIds(Aws::String&& value) { m_folderIdsHasBeenSet = true; m_folderIds.push_back(std::move(value)); return *this; } + inline AssetBundleImportJobFolderOverridePermissions& AddFolderIds(const char* value) { m_folderIdsHasBeenSet = true; m_folderIds.push_back(value); return *this; } + ///@} + + ///@{ + + inline const AssetBundleResourcePermissions& GetPermissions() const{ return m_permissions; } + inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } + inline void SetPermissions(const AssetBundleResourcePermissions& value) { m_permissionsHasBeenSet = true; m_permissions = value; } + inline void SetPermissions(AssetBundleResourcePermissions&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); } + inline AssetBundleImportJobFolderOverridePermissions& WithPermissions(const AssetBundleResourcePermissions& value) { SetPermissions(value); return *this;} + inline AssetBundleImportJobFolderOverridePermissions& WithPermissions(AssetBundleResourcePermissions&& value) { SetPermissions(std::move(value)); return *this;} + ///@} + private: + + Aws::Vector m_folderIds; + bool m_folderIdsHasBeenSet = false; + + AssetBundleResourcePermissions m_permissions; + bool m_permissionsHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobFolderOverrideTags.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobFolderOverrideTags.h new file mode 100644 index 00000000000..ddeb86955e4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobFolderOverrideTags.h @@ -0,0 +1,83 @@ +/** + * 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 QuickSight +{ +namespace Model +{ + + /** + *

An object that contains a list of tags to be assigned to a list of folder + * IDs.

See Also:

AWS + * API Reference

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

A list of folder IDs that you want to apply overrides to. You can use + * * to override all folders in this asset bundle.

+ */ + inline const Aws::Vector& GetFolderIds() const{ return m_folderIds; } + inline bool FolderIdsHasBeenSet() const { return m_folderIdsHasBeenSet; } + inline void SetFolderIds(const Aws::Vector& value) { m_folderIdsHasBeenSet = true; m_folderIds = value; } + inline void SetFolderIds(Aws::Vector&& value) { m_folderIdsHasBeenSet = true; m_folderIds = std::move(value); } + inline AssetBundleImportJobFolderOverrideTags& WithFolderIds(const Aws::Vector& value) { SetFolderIds(value); return *this;} + inline AssetBundleImportJobFolderOverrideTags& WithFolderIds(Aws::Vector&& value) { SetFolderIds(std::move(value)); return *this;} + inline AssetBundleImportJobFolderOverrideTags& AddFolderIds(const Aws::String& value) { m_folderIdsHasBeenSet = true; m_folderIds.push_back(value); return *this; } + inline AssetBundleImportJobFolderOverrideTags& AddFolderIds(Aws::String&& value) { m_folderIdsHasBeenSet = true; m_folderIds.push_back(std::move(value)); return *this; } + inline AssetBundleImportJobFolderOverrideTags& AddFolderIds(const char* value) { m_folderIdsHasBeenSet = true; m_folderIds.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

A list of tags for the folders that you want to apply overrides to.

+ */ + 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 AssetBundleImportJobFolderOverrideTags& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + inline AssetBundleImportJobFolderOverrideTags& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + inline AssetBundleImportJobFolderOverrideTags& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + inline AssetBundleImportJobFolderOverrideTags& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_folderIds; + bool m_folderIdsHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverrideParameters.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverrideParameters.h index c4b3b9dc1a6..ac949d840a9 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverrideParameters.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverrideParameters.h @@ -14,6 +14,7 @@ #include #include #include +#include #include namespace Aws @@ -163,6 +164,21 @@ namespace Model inline AssetBundleImportJobOverrideParameters& AddDashboards(const AssetBundleImportJobDashboardOverrideParameters& value) { m_dashboardsHasBeenSet = true; m_dashboards.push_back(value); return *this; } inline AssetBundleImportJobOverrideParameters& AddDashboards(AssetBundleImportJobDashboardOverrideParameters&& value) { m_dashboardsHasBeenSet = true; m_dashboards.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

A list of overrides for any Folder resources that are present in + * the asset bundle that is imported.

+ */ + inline const Aws::Vector& GetFolders() const{ return m_folders; } + inline bool FoldersHasBeenSet() const { return m_foldersHasBeenSet; } + inline void SetFolders(const Aws::Vector& value) { m_foldersHasBeenSet = true; m_folders = value; } + inline void SetFolders(Aws::Vector&& value) { m_foldersHasBeenSet = true; m_folders = std::move(value); } + inline AssetBundleImportJobOverrideParameters& WithFolders(const Aws::Vector& value) { SetFolders(value); return *this;} + inline AssetBundleImportJobOverrideParameters& WithFolders(Aws::Vector&& value) { SetFolders(std::move(value)); return *this;} + inline AssetBundleImportJobOverrideParameters& AddFolders(const AssetBundleImportJobFolderOverrideParameters& value) { m_foldersHasBeenSet = true; m_folders.push_back(value); return *this; } + inline AssetBundleImportJobOverrideParameters& AddFolders(AssetBundleImportJobFolderOverrideParameters&& value) { m_foldersHasBeenSet = true; m_folders.push_back(std::move(value)); return *this; } + ///@} private: AssetBundleImportJobResourceIdOverrideConfiguration m_resourceIdOverrideConfiguration; @@ -188,6 +204,9 @@ namespace Model Aws::Vector m_dashboards; bool m_dashboardsHasBeenSet = false; + + Aws::Vector m_folders; + bool m_foldersHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverridePermissions.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverridePermissions.h index ee82196a9c1..365a3ed3186 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverridePermissions.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverridePermissions.h @@ -11,6 +11,7 @@ #include #include #include +#include #include namespace Aws @@ -118,6 +119,21 @@ namespace Model inline AssetBundleImportJobOverridePermissions& AddDashboards(const AssetBundleImportJobDashboardOverridePermissions& value) { m_dashboardsHasBeenSet = true; m_dashboards.push_back(value); return *this; } inline AssetBundleImportJobOverridePermissions& AddDashboards(AssetBundleImportJobDashboardOverridePermissions&& value) { m_dashboardsHasBeenSet = true; m_dashboards.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

A list of permissions for the folders that you want to apply overrides + * to.

+ */ + inline const Aws::Vector& GetFolders() const{ return m_folders; } + inline bool FoldersHasBeenSet() const { return m_foldersHasBeenSet; } + inline void SetFolders(const Aws::Vector& value) { m_foldersHasBeenSet = true; m_folders = value; } + inline void SetFolders(Aws::Vector&& value) { m_foldersHasBeenSet = true; m_folders = std::move(value); } + inline AssetBundleImportJobOverridePermissions& WithFolders(const Aws::Vector& value) { SetFolders(value); return *this;} + inline AssetBundleImportJobOverridePermissions& WithFolders(Aws::Vector&& value) { SetFolders(std::move(value)); return *this;} + inline AssetBundleImportJobOverridePermissions& AddFolders(const AssetBundleImportJobFolderOverridePermissions& value) { m_foldersHasBeenSet = true; m_folders.push_back(value); return *this; } + inline AssetBundleImportJobOverridePermissions& AddFolders(AssetBundleImportJobFolderOverridePermissions&& value) { m_foldersHasBeenSet = true; m_folders.push_back(std::move(value)); return *this; } + ///@} private: Aws::Vector m_dataSources; @@ -134,6 +150,9 @@ namespace Model Aws::Vector m_dashboards; bool m_dashboardsHasBeenSet = false; + + Aws::Vector m_folders; + bool m_foldersHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverrideTags.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverrideTags.h index aa91b566a9a..1adb4b24ff6 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverrideTags.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobOverrideTags.h @@ -12,6 +12,7 @@ #include #include #include +#include #include namespace Aws @@ -134,6 +135,21 @@ namespace Model inline AssetBundleImportJobOverrideTags& AddDashboards(const AssetBundleImportJobDashboardOverrideTags& value) { m_dashboardsHasBeenSet = true; m_dashboards.push_back(value); return *this; } inline AssetBundleImportJobOverrideTags& AddDashboards(AssetBundleImportJobDashboardOverrideTags&& value) { m_dashboardsHasBeenSet = true; m_dashboards.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

A list of tag overrides for any Folder resources that are + * present in the asset bundle that is imported.

+ */ + inline const Aws::Vector& GetFolders() const{ return m_folders; } + inline bool FoldersHasBeenSet() const { return m_foldersHasBeenSet; } + inline void SetFolders(const Aws::Vector& value) { m_foldersHasBeenSet = true; m_folders = value; } + inline void SetFolders(Aws::Vector&& value) { m_foldersHasBeenSet = true; m_folders = std::move(value); } + inline AssetBundleImportJobOverrideTags& WithFolders(const Aws::Vector& value) { SetFolders(value); return *this;} + inline AssetBundleImportJobOverrideTags& WithFolders(Aws::Vector&& value) { SetFolders(std::move(value)); return *this;} + inline AssetBundleImportJobOverrideTags& AddFolders(const AssetBundleImportJobFolderOverrideTags& value) { m_foldersHasBeenSet = true; m_folders.push_back(value); return *this; } + inline AssetBundleImportJobOverrideTags& AddFolders(AssetBundleImportJobFolderOverrideTags&& value) { m_foldersHasBeenSet = true; m_folders.push_back(std::move(value)); return *this; } + ///@} private: Aws::Vector m_vPCConnections; @@ -153,6 +169,9 @@ namespace Model Aws::Vector m_dashboards; bool m_dashboardsHasBeenSet = false; + + Aws::Vector m_folders; + bool m_foldersHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DescribeAssetBundleExportJobResult.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DescribeAssetBundleExportJobResult.h index 92e67f8bc9b..7283bbcbe31 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DescribeAssetBundleExportJobResult.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DescribeAssetBundleExportJobResult.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -254,6 +255,26 @@ namespace Model inline DescribeAssetBundleExportJobResult& AddWarnings(const AssetBundleExportJobWarning& value) { m_warnings.push_back(value); return *this; } inline DescribeAssetBundleExportJobResult& AddWarnings(AssetBundleExportJobWarning&& value) { m_warnings.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

The include folder memberships flag.

+ */ + inline bool GetIncludeFolderMemberships() const{ return m_includeFolderMemberships; } + inline void SetIncludeFolderMemberships(bool value) { m_includeFolderMemberships = value; } + inline DescribeAssetBundleExportJobResult& WithIncludeFolderMemberships(bool value) { SetIncludeFolderMemberships(value); return *this;} + ///@} + + ///@{ + /** + *

A setting that determines whether folder members are included.

+ */ + inline const IncludeFolderMembers& GetIncludeFolderMembers() const{ return m_includeFolderMembers; } + inline void SetIncludeFolderMembers(const IncludeFolderMembers& value) { m_includeFolderMembers = value; } + inline void SetIncludeFolderMembers(IncludeFolderMembers&& value) { m_includeFolderMembers = std::move(value); } + inline DescribeAssetBundleExportJobResult& WithIncludeFolderMembers(const IncludeFolderMembers& value) { SetIncludeFolderMembers(value); return *this;} + inline DescribeAssetBundleExportJobResult& WithIncludeFolderMembers(IncludeFolderMembers&& value) { SetIncludeFolderMembers(std::move(value)); return *this;} + ///@} private: AssetBundleExportJobStatus m_jobStatus; @@ -289,6 +310,10 @@ namespace Model AssetBundleExportJobValidationStrategy m_validationStrategy; Aws::Vector m_warnings; + + bool m_includeFolderMemberships; + + IncludeFolderMembers m_includeFolderMembers; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/IncludeFolderMembers.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/IncludeFolderMembers.h new file mode 100644 index 00000000000..54f85126a74 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/IncludeFolderMembers.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + enum class IncludeFolderMembers + { + NOT_SET, + RECURSE, + ONE_LEVEL, + NONE + }; + +namespace IncludeFolderMembersMapper +{ +AWS_QUICKSIGHT_API IncludeFolderMembers GetIncludeFolderMembersForName(const Aws::String& name); + +AWS_QUICKSIGHT_API Aws::String GetNameForIncludeFolderMembers(IncludeFolderMembers value); +} // namespace IncludeFolderMembersMapper +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartAssetBundleExportJobRequest.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartAssetBundleExportJobRequest.h index cc8b14c6121..960d9516f14 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartAssetBundleExportJobRequest.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartAssetBundleExportJobRequest.h @@ -11,6 +11,7 @@ #include #include #include +#include #include namespace Aws @@ -172,6 +173,31 @@ namespace Model inline StartAssetBundleExportJobRequest& WithValidationStrategy(const AssetBundleExportJobValidationStrategy& value) { SetValidationStrategy(value); return *this;} inline StartAssetBundleExportJobRequest& WithValidationStrategy(AssetBundleExportJobValidationStrategy&& value) { SetValidationStrategy(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

A Boolean that determines if the exported asset carries over information + * about the folders that the asset is a member of.

+ */ + inline bool GetIncludeFolderMemberships() const{ return m_includeFolderMemberships; } + inline bool IncludeFolderMembershipsHasBeenSet() const { return m_includeFolderMembershipsHasBeenSet; } + inline void SetIncludeFolderMemberships(bool value) { m_includeFolderMembershipsHasBeenSet = true; m_includeFolderMemberships = value; } + inline StartAssetBundleExportJobRequest& WithIncludeFolderMemberships(bool value) { SetIncludeFolderMemberships(value); return *this;} + ///@} + + ///@{ + /** + *

A setting that indicates whether you want to include folder assets. You can + * also use this setting to recusrsively include all subfolders of an exported + * folder.

+ */ + inline const IncludeFolderMembers& GetIncludeFolderMembers() const{ return m_includeFolderMembers; } + inline bool IncludeFolderMembersHasBeenSet() const { return m_includeFolderMembersHasBeenSet; } + inline void SetIncludeFolderMembers(const IncludeFolderMembers& value) { m_includeFolderMembersHasBeenSet = true; m_includeFolderMembers = value; } + inline void SetIncludeFolderMembers(IncludeFolderMembers&& value) { m_includeFolderMembersHasBeenSet = true; m_includeFolderMembers = std::move(value); } + inline StartAssetBundleExportJobRequest& WithIncludeFolderMembers(const IncludeFolderMembers& value) { SetIncludeFolderMembers(value); return *this;} + inline StartAssetBundleExportJobRequest& WithIncludeFolderMembers(IncludeFolderMembers&& value) { SetIncludeFolderMembers(std::move(value)); return *this;} + ///@} private: Aws::String m_awsAccountId; @@ -200,6 +226,12 @@ namespace Model AssetBundleExportJobValidationStrategy m_validationStrategy; bool m_validationStrategyHasBeenSet = false; + + bool m_includeFolderMemberships; + bool m_includeFolderMembershipsHasBeenSet = false; + + IncludeFolderMembers m_includeFolderMembers; + bool m_includeFolderMembersHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TopicConfigOptions.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TopicConfigOptions.h new file mode 100644 index 00000000000..51a341fde21 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TopicConfigOptions.h @@ -0,0 +1,55 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QuickSight +{ +namespace Model +{ + + /** + *

Configuration options for a Topic.

See Also:

AWS + * API Reference

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

Enables Amazon Q Business Insights for a Topic.

+ */ + inline bool GetQBusinessInsightsEnabled() const{ return m_qBusinessInsightsEnabled; } + inline bool QBusinessInsightsEnabledHasBeenSet() const { return m_qBusinessInsightsEnabledHasBeenSet; } + inline void SetQBusinessInsightsEnabled(bool value) { m_qBusinessInsightsEnabledHasBeenSet = true; m_qBusinessInsightsEnabled = value; } + inline TopicConfigOptions& WithQBusinessInsightsEnabled(bool value) { SetQBusinessInsightsEnabled(value); return *this;} + ///@} + private: + + bool m_qBusinessInsightsEnabled; + bool m_qBusinessInsightsEnabledHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TopicDetails.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TopicDetails.h index 660d45a23a3..e31e79dac8d 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TopicDetails.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TopicDetails.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -94,6 +95,18 @@ namespace Model inline TopicDetails& AddDataSets(const DatasetMetadata& value) { m_dataSetsHasBeenSet = true; m_dataSets.push_back(value); return *this; } inline TopicDetails& AddDataSets(DatasetMetadata&& value) { m_dataSetsHasBeenSet = true; m_dataSets.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

Configuration options for a Topic.

+ */ + inline const TopicConfigOptions& GetConfigOptions() const{ return m_configOptions; } + inline bool ConfigOptionsHasBeenSet() const { return m_configOptionsHasBeenSet; } + inline void SetConfigOptions(const TopicConfigOptions& value) { m_configOptionsHasBeenSet = true; m_configOptions = value; } + inline void SetConfigOptions(TopicConfigOptions&& value) { m_configOptionsHasBeenSet = true; m_configOptions = std::move(value); } + inline TopicDetails& WithConfigOptions(const TopicConfigOptions& value) { SetConfigOptions(value); return *this;} + inline TopicDetails& WithConfigOptions(TopicConfigOptions&& value) { SetConfigOptions(std::move(value)); return *this;} + ///@} private: Aws::String m_name; @@ -107,6 +120,9 @@ namespace Model Aws::Vector m_dataSets; bool m_dataSetsHasBeenSet = false; + + TopicConfigOptions m_configOptions; + bool m_configOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleCloudFormationOverridePropertyConfiguration.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleCloudFormationOverridePropertyConfiguration.cpp index bbb2f9e33be..5e0786f2a6a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleCloudFormationOverridePropertyConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleCloudFormationOverridePropertyConfiguration.cpp @@ -26,7 +26,8 @@ AssetBundleCloudFormationOverridePropertyConfiguration::AssetBundleCloudFormatio m_dataSetsHasBeenSet(false), m_themesHasBeenSet(false), m_analysesHasBeenSet(false), - m_dashboardsHasBeenSet(false) + m_dashboardsHasBeenSet(false), + m_foldersHasBeenSet(false) { } @@ -115,6 +116,16 @@ AssetBundleCloudFormationOverridePropertyConfiguration& AssetBundleCloudFormatio m_dashboardsHasBeenSet = true; } + if(jsonValue.ValueExists("Folders")) + { + Aws::Utils::Array foldersJsonList = jsonValue.GetArray("Folders"); + for(unsigned foldersIndex = 0; foldersIndex < foldersJsonList.GetLength(); ++foldersIndex) + { + m_folders.push_back(foldersJsonList[foldersIndex].AsObject()); + } + m_foldersHasBeenSet = true; + } + return *this; } @@ -205,6 +216,17 @@ JsonValue AssetBundleCloudFormationOverridePropertyConfiguration::Jsonize() cons } + if(m_foldersHasBeenSet) + { + Aws::Utils::Array foldersJsonList(m_folders.size()); + for(unsigned foldersIndex = 0; foldersIndex < foldersJsonList.GetLength(); ++foldersIndex) + { + foldersJsonList[foldersIndex].AsObject(m_folders[foldersIndex].Jsonize()); + } + payload.WithArray("Folders", std::move(foldersJsonList)); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobFolderOverrideProperties.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobFolderOverrideProperties.cpp new file mode 100644 index 00000000000..87709bfec19 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobFolderOverrideProperties.cpp @@ -0,0 +1,81 @@ +/** + * 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 QuickSight +{ +namespace Model +{ + +AssetBundleExportJobFolderOverrideProperties::AssetBundleExportJobFolderOverrideProperties() : + m_arnHasBeenSet(false), + m_propertiesHasBeenSet(false) +{ +} + +AssetBundleExportJobFolderOverrideProperties::AssetBundleExportJobFolderOverrideProperties(JsonView jsonValue) + : AssetBundleExportJobFolderOverrideProperties() +{ + *this = jsonValue; +} + +AssetBundleExportJobFolderOverrideProperties& AssetBundleExportJobFolderOverrideProperties::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("Properties")) + { + Aws::Utils::Array propertiesJsonList = jsonValue.GetArray("Properties"); + for(unsigned propertiesIndex = 0; propertiesIndex < propertiesJsonList.GetLength(); ++propertiesIndex) + { + m_properties.push_back(AssetBundleExportJobFolderPropertyToOverrideMapper::GetAssetBundleExportJobFolderPropertyToOverrideForName(propertiesJsonList[propertiesIndex].AsString())); + } + m_propertiesHasBeenSet = true; + } + + return *this; +} + +JsonValue AssetBundleExportJobFolderOverrideProperties::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_propertiesHasBeenSet) + { + Aws::Utils::Array propertiesJsonList(m_properties.size()); + for(unsigned propertiesIndex = 0; propertiesIndex < propertiesJsonList.GetLength(); ++propertiesIndex) + { + propertiesJsonList[propertiesIndex].AsString(AssetBundleExportJobFolderPropertyToOverrideMapper::GetNameForAssetBundleExportJobFolderPropertyToOverride(m_properties[propertiesIndex])); + } + payload.WithArray("Properties", std::move(propertiesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobFolderPropertyToOverride.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobFolderPropertyToOverride.cpp new file mode 100644 index 00000000000..aa4995448f1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobFolderPropertyToOverride.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QuickSight + { + namespace Model + { + namespace AssetBundleExportJobFolderPropertyToOverrideMapper + { + + static const int Name_HASH = HashingUtils::HashString("Name"); + static const int ParentFolderArn_HASH = HashingUtils::HashString("ParentFolderArn"); + + + AssetBundleExportJobFolderPropertyToOverride GetAssetBundleExportJobFolderPropertyToOverrideForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Name_HASH) + { + return AssetBundleExportJobFolderPropertyToOverride::Name; + } + else if (hashCode == ParentFolderArn_HASH) + { + return AssetBundleExportJobFolderPropertyToOverride::ParentFolderArn; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AssetBundleExportJobFolderPropertyToOverride::NOT_SET; + } + + Aws::String GetNameForAssetBundleExportJobFolderPropertyToOverride(AssetBundleExportJobFolderPropertyToOverride enumValue) + { + switch(enumValue) + { + case AssetBundleExportJobFolderPropertyToOverride::NOT_SET: + return {}; + case AssetBundleExportJobFolderPropertyToOverride::Name: + return "Name"; + case AssetBundleExportJobFolderPropertyToOverride::ParentFolderArn: + return "ParentFolderArn"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AssetBundleExportJobFolderPropertyToOverrideMapper + } // namespace Model + } // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobFolderOverrideParameters.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobFolderOverrideParameters.cpp new file mode 100644 index 00000000000..299ff611069 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobFolderOverrideParameters.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 QuickSight +{ +namespace Model +{ + +AssetBundleImportJobFolderOverrideParameters::AssetBundleImportJobFolderOverrideParameters() : + m_folderIdHasBeenSet(false), + m_nameHasBeenSet(false), + m_parentFolderArnHasBeenSet(false) +{ +} + +AssetBundleImportJobFolderOverrideParameters::AssetBundleImportJobFolderOverrideParameters(JsonView jsonValue) + : AssetBundleImportJobFolderOverrideParameters() +{ + *this = jsonValue; +} + +AssetBundleImportJobFolderOverrideParameters& AssetBundleImportJobFolderOverrideParameters::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("FolderId")) + { + m_folderId = jsonValue.GetString("FolderId"); + + m_folderIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("ParentFolderArn")) + { + m_parentFolderArn = jsonValue.GetString("ParentFolderArn"); + + m_parentFolderArnHasBeenSet = true; + } + + return *this; +} + +JsonValue AssetBundleImportJobFolderOverrideParameters::Jsonize() const +{ + JsonValue payload; + + if(m_folderIdHasBeenSet) + { + payload.WithString("FolderId", m_folderId); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_parentFolderArnHasBeenSet) + { + payload.WithString("ParentFolderArn", m_parentFolderArn); + + } + + return payload; +} + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobFolderOverridePermissions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobFolderOverridePermissions.cpp new file mode 100644 index 00000000000..538daa07487 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobFolderOverridePermissions.cpp @@ -0,0 +1,81 @@ +/** + * 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 QuickSight +{ +namespace Model +{ + +AssetBundleImportJobFolderOverridePermissions::AssetBundleImportJobFolderOverridePermissions() : + m_folderIdsHasBeenSet(false), + m_permissionsHasBeenSet(false) +{ +} + +AssetBundleImportJobFolderOverridePermissions::AssetBundleImportJobFolderOverridePermissions(JsonView jsonValue) + : AssetBundleImportJobFolderOverridePermissions() +{ + *this = jsonValue; +} + +AssetBundleImportJobFolderOverridePermissions& AssetBundleImportJobFolderOverridePermissions::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("FolderIds")) + { + Aws::Utils::Array folderIdsJsonList = jsonValue.GetArray("FolderIds"); + for(unsigned folderIdsIndex = 0; folderIdsIndex < folderIdsJsonList.GetLength(); ++folderIdsIndex) + { + m_folderIds.push_back(folderIdsJsonList[folderIdsIndex].AsString()); + } + m_folderIdsHasBeenSet = true; + } + + if(jsonValue.ValueExists("Permissions")) + { + m_permissions = jsonValue.GetObject("Permissions"); + + m_permissionsHasBeenSet = true; + } + + return *this; +} + +JsonValue AssetBundleImportJobFolderOverridePermissions::Jsonize() const +{ + JsonValue payload; + + if(m_folderIdsHasBeenSet) + { + Aws::Utils::Array folderIdsJsonList(m_folderIds.size()); + for(unsigned folderIdsIndex = 0; folderIdsIndex < folderIdsJsonList.GetLength(); ++folderIdsIndex) + { + folderIdsJsonList[folderIdsIndex].AsString(m_folderIds[folderIdsIndex]); + } + payload.WithArray("FolderIds", std::move(folderIdsJsonList)); + + } + + if(m_permissionsHasBeenSet) + { + payload.WithObject("Permissions", m_permissions.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobFolderOverrideTags.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobFolderOverrideTags.cpp new file mode 100644 index 00000000000..7d93efd4652 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobFolderOverrideTags.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + +AssetBundleImportJobFolderOverrideTags::AssetBundleImportJobFolderOverrideTags() : + m_folderIdsHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +AssetBundleImportJobFolderOverrideTags::AssetBundleImportJobFolderOverrideTags(JsonView jsonValue) + : AssetBundleImportJobFolderOverrideTags() +{ + *this = jsonValue; +} + +AssetBundleImportJobFolderOverrideTags& AssetBundleImportJobFolderOverrideTags::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("FolderIds")) + { + Aws::Utils::Array folderIdsJsonList = jsonValue.GetArray("FolderIds"); + for(unsigned folderIdsIndex = 0; folderIdsIndex < folderIdsJsonList.GetLength(); ++folderIdsIndex) + { + m_folderIds.push_back(folderIdsJsonList[folderIdsIndex].AsString()); + } + m_folderIdsHasBeenSet = 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 AssetBundleImportJobFolderOverrideTags::Jsonize() const +{ + JsonValue payload; + + if(m_folderIdsHasBeenSet) + { + Aws::Utils::Array folderIdsJsonList(m_folderIds.size()); + for(unsigned folderIdsIndex = 0; folderIdsIndex < folderIdsJsonList.GetLength(); ++folderIdsIndex) + { + folderIdsJsonList[folderIdsIndex].AsString(m_folderIds[folderIdsIndex]); + } + payload.WithArray("FolderIds", std::move(folderIdsJsonList)); + + } + + 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 QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverrideParameters.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverrideParameters.cpp index adba51ee1f6..3b6916f790a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverrideParameters.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverrideParameters.cpp @@ -26,7 +26,8 @@ AssetBundleImportJobOverrideParameters::AssetBundleImportJobOverrideParameters() m_dataSetsHasBeenSet(false), m_themesHasBeenSet(false), m_analysesHasBeenSet(false), - m_dashboardsHasBeenSet(false) + m_dashboardsHasBeenSet(false), + m_foldersHasBeenSet(false) { } @@ -115,6 +116,16 @@ AssetBundleImportJobOverrideParameters& AssetBundleImportJobOverrideParameters:: m_dashboardsHasBeenSet = true; } + if(jsonValue.ValueExists("Folders")) + { + Aws::Utils::Array foldersJsonList = jsonValue.GetArray("Folders"); + for(unsigned foldersIndex = 0; foldersIndex < foldersJsonList.GetLength(); ++foldersIndex) + { + m_folders.push_back(foldersJsonList[foldersIndex].AsObject()); + } + m_foldersHasBeenSet = true; + } + return *this; } @@ -205,6 +216,17 @@ JsonValue AssetBundleImportJobOverrideParameters::Jsonize() const } + if(m_foldersHasBeenSet) + { + Aws::Utils::Array foldersJsonList(m_folders.size()); + for(unsigned foldersIndex = 0; foldersIndex < foldersJsonList.GetLength(); ++foldersIndex) + { + foldersJsonList[foldersIndex].AsObject(m_folders[foldersIndex].Jsonize()); + } + payload.WithArray("Folders", std::move(foldersJsonList)); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverridePermissions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverridePermissions.cpp index 1b00a29799b..d843d57272a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverridePermissions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverridePermissions.cpp @@ -23,7 +23,8 @@ AssetBundleImportJobOverridePermissions::AssetBundleImportJobOverridePermissions m_dataSetsHasBeenSet(false), m_themesHasBeenSet(false), m_analysesHasBeenSet(false), - m_dashboardsHasBeenSet(false) + m_dashboardsHasBeenSet(false), + m_foldersHasBeenSet(false) { } @@ -85,6 +86,16 @@ AssetBundleImportJobOverridePermissions& AssetBundleImportJobOverridePermissions m_dashboardsHasBeenSet = true; } + if(jsonValue.ValueExists("Folders")) + { + Aws::Utils::Array foldersJsonList = jsonValue.GetArray("Folders"); + for(unsigned foldersIndex = 0; foldersIndex < foldersJsonList.GetLength(); ++foldersIndex) + { + m_folders.push_back(foldersJsonList[foldersIndex].AsObject()); + } + m_foldersHasBeenSet = true; + } + return *this; } @@ -147,6 +158,17 @@ JsonValue AssetBundleImportJobOverridePermissions::Jsonize() const } + if(m_foldersHasBeenSet) + { + Aws::Utils::Array foldersJsonList(m_folders.size()); + for(unsigned foldersIndex = 0; foldersIndex < foldersJsonList.GetLength(); ++foldersIndex) + { + foldersJsonList[foldersIndex].AsObject(m_folders[foldersIndex].Jsonize()); + } + payload.WithArray("Folders", std::move(foldersJsonList)); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverrideTags.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverrideTags.cpp index a5153557970..4c7c707ed1f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverrideTags.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobOverrideTags.cpp @@ -24,7 +24,8 @@ AssetBundleImportJobOverrideTags::AssetBundleImportJobOverrideTags() : m_dataSetsHasBeenSet(false), m_themesHasBeenSet(false), m_analysesHasBeenSet(false), - m_dashboardsHasBeenSet(false) + m_dashboardsHasBeenSet(false), + m_foldersHasBeenSet(false) { } @@ -96,6 +97,16 @@ AssetBundleImportJobOverrideTags& AssetBundleImportJobOverrideTags::operator =(J m_dashboardsHasBeenSet = true; } + if(jsonValue.ValueExists("Folders")) + { + Aws::Utils::Array foldersJsonList = jsonValue.GetArray("Folders"); + for(unsigned foldersIndex = 0; foldersIndex < foldersJsonList.GetLength(); ++foldersIndex) + { + m_folders.push_back(foldersJsonList[foldersIndex].AsObject()); + } + m_foldersHasBeenSet = true; + } + return *this; } @@ -169,6 +180,17 @@ JsonValue AssetBundleImportJobOverrideTags::Jsonize() const } + if(m_foldersHasBeenSet) + { + Aws::Utils::Array foldersJsonList(m_folders.size()); + for(unsigned foldersIndex = 0; foldersIndex < foldersJsonList.GetLength(); ++foldersIndex) + { + foldersJsonList[foldersIndex].AsObject(m_folders[foldersIndex].Jsonize()); + } + payload.WithArray("Folders", std::move(foldersJsonList)); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DescribeAssetBundleExportJobResult.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DescribeAssetBundleExportJobResult.cpp index 4c02265d7c8..652f653e4e2 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DescribeAssetBundleExportJobResult.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DescribeAssetBundleExportJobResult.cpp @@ -23,7 +23,9 @@ DescribeAssetBundleExportJobResult::DescribeAssetBundleExportJobResult() : m_exportFormat(AssetBundleExportFormat::NOT_SET), m_status(0), m_includePermissions(false), - m_includeTags(false) + m_includeTags(false), + m_includeFolderMemberships(false), + m_includeFolderMembers(IncludeFolderMembers::NOT_SET) { } @@ -135,6 +137,18 @@ DescribeAssetBundleExportJobResult& DescribeAssetBundleExportJobResult::operator } } + if(jsonValue.ValueExists("IncludeFolderMemberships")) + { + m_includeFolderMemberships = jsonValue.GetBool("IncludeFolderMemberships"); + + } + + if(jsonValue.ValueExists("IncludeFolderMembers")) + { + m_includeFolderMembers = IncludeFolderMembersMapper::GetIncludeFolderMembersForName(jsonValue.GetString("IncludeFolderMembers")); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/IncludeFolderMembers.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/IncludeFolderMembers.cpp new file mode 100644 index 00000000000..f96efb43903 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/IncludeFolderMembers.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QuickSight + { + namespace Model + { + namespace IncludeFolderMembersMapper + { + + static const int RECURSE_HASH = HashingUtils::HashString("RECURSE"); + static const int ONE_LEVEL_HASH = HashingUtils::HashString("ONE_LEVEL"); + static const int NONE_HASH = HashingUtils::HashString("NONE"); + + + IncludeFolderMembers GetIncludeFolderMembersForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == RECURSE_HASH) + { + return IncludeFolderMembers::RECURSE; + } + else if (hashCode == ONE_LEVEL_HASH) + { + return IncludeFolderMembers::ONE_LEVEL; + } + else if (hashCode == NONE_HASH) + { + return IncludeFolderMembers::NONE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IncludeFolderMembers::NOT_SET; + } + + Aws::String GetNameForIncludeFolderMembers(IncludeFolderMembers enumValue) + { + switch(enumValue) + { + case IncludeFolderMembers::NOT_SET: + return {}; + case IncludeFolderMembers::RECURSE: + return "RECURSE"; + case IncludeFolderMembers::ONE_LEVEL: + return "ONE_LEVEL"; + case IncludeFolderMembers::NONE: + return "NONE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IncludeFolderMembersMapper + } // namespace Model + } // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/StartAssetBundleExportJobRequest.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/StartAssetBundleExportJobRequest.cpp index 71af1481fa6..f778faed834 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/StartAssetBundleExportJobRequest.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/StartAssetBundleExportJobRequest.cpp @@ -25,7 +25,11 @@ StartAssetBundleExportJobRequest::StartAssetBundleExportJobRequest() : m_includePermissionsHasBeenSet(false), m_includeTags(false), m_includeTagsHasBeenSet(false), - m_validationStrategyHasBeenSet(false) + m_validationStrategyHasBeenSet(false), + m_includeFolderMemberships(false), + m_includeFolderMembershipsHasBeenSet(false), + m_includeFolderMembers(IncludeFolderMembers::NOT_SET), + m_includeFolderMembersHasBeenSet(false) { } @@ -85,6 +89,17 @@ Aws::String StartAssetBundleExportJobRequest::SerializePayload() const } + if(m_includeFolderMembershipsHasBeenSet) + { + payload.WithBool("IncludeFolderMemberships", m_includeFolderMemberships); + + } + + if(m_includeFolderMembersHasBeenSet) + { + payload.WithString("IncludeFolderMembers", IncludeFolderMembersMapper::GetNameForIncludeFolderMembers(m_includeFolderMembers)); + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicConfigOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicConfigOptions.cpp new file mode 100644 index 00000000000..39227b6b5fc --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicConfigOptions.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + +TopicConfigOptions::TopicConfigOptions() : + m_qBusinessInsightsEnabled(false), + m_qBusinessInsightsEnabledHasBeenSet(false) +{ +} + +TopicConfigOptions::TopicConfigOptions(JsonView jsonValue) + : TopicConfigOptions() +{ + *this = jsonValue; +} + +TopicConfigOptions& TopicConfigOptions::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("QBusinessInsightsEnabled")) + { + m_qBusinessInsightsEnabled = jsonValue.GetBool("QBusinessInsightsEnabled"); + + m_qBusinessInsightsEnabledHasBeenSet = true; + } + + return *this; +} + +JsonValue TopicConfigOptions::Jsonize() const +{ + JsonValue payload; + + if(m_qBusinessInsightsEnabledHasBeenSet) + { + payload.WithBool("QBusinessInsightsEnabled", m_qBusinessInsightsEnabled); + + } + + return payload; +} + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicDetails.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicDetails.cpp index e30b3610e4c..fd66a17999a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicDetails.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicDetails.cpp @@ -23,7 +23,8 @@ TopicDetails::TopicDetails() : m_descriptionHasBeenSet(false), m_userExperienceVersion(TopicUserExperienceVersion::NOT_SET), m_userExperienceVersionHasBeenSet(false), - m_dataSetsHasBeenSet(false) + m_dataSetsHasBeenSet(false), + m_configOptionsHasBeenSet(false) { } @@ -66,6 +67,13 @@ TopicDetails& TopicDetails::operator =(JsonView jsonValue) m_dataSetsHasBeenSet = true; } + if(jsonValue.ValueExists("ConfigOptions")) + { + m_configOptions = jsonValue.GetObject("ConfigOptions"); + + m_configOptionsHasBeenSet = true; + } + return *this; } @@ -101,6 +109,12 @@ JsonValue TopicDetails::Jsonize() const } + if(m_configOptionsHasBeenSet) + { + payload.WithObject("ConfigOptions", m_configOptions.Jsonize()); + + } + return payload; } diff --git a/generated/tests/marketplace-reporting-gen-tests/CMakeLists.txt b/generated/tests/marketplace-reporting-gen-tests/CMakeLists.txt new file mode 100644 index 00000000000..096d2edf682 --- /dev/null +++ b/generated/tests/marketplace-reporting-gen-tests/CMakeLists.txt @@ -0,0 +1,42 @@ +add_project(marketplace-reporting-gen-tests + "Tests for the AWS MARKETPLACE-REPORTING C++ SDK" + testing-resources + aws-cpp-sdk-marketplace-reporting + aws-cpp-sdk-core) + +file(GLOB AWS_MARKETPLACE-REPORTING_GENERATED_TEST_SRC + "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" +) + +if(MSVC AND BUILD_SHARED_LIBS) + add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) +endif() + +if (CMAKE_CROSSCOMPILING) + set(AUTORUN_UNIT_TESTS OFF) +endif() + +if (AUTORUN_UNIT_TESTS) + enable_testing() +endif() + +if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS) + add_library(${PROJECT_NAME} "${AWS_MARKETPLACE-REPORTING_GENERATED_TEST_SRC}") +else() + add_executable(${PROJECT_NAME} "${AWS_MARKETPLACE-REPORTING_GENERATED_TEST_SRC}") +endif() + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS}) + +if (AUTORUN_UNIT_TESTS) + ADD_CUSTOM_COMMAND( TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${AWS_AUTORUN_LD_LIBRARY_PATH}:$ENV{LD_LIBRARY_PATH} $ + ARGS "--gtest_brief=1") +endif() + +if(NOT CMAKE_CROSSCOMPILING) + SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) +endif() \ No newline at end of file diff --git a/generated/tests/marketplace-reporting-gen-tests/MarketplaceReportingEndpointProviderTests.cpp b/generated/tests/marketplace-reporting-gen-tests/MarketplaceReportingEndpointProviderTests.cpp new file mode 100644 index 00000000000..47d8d9ab04b --- /dev/null +++ b/generated/tests/marketplace-reporting-gen-tests/MarketplaceReportingEndpointProviderTests.cpp @@ -0,0 +1,428 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + + +static const char* ALLOCATION_TAG = "AWSMarketplaceReportingEndpointProviderTests"; +using MarketplaceReportingEndpointProvider = Aws::MarketplaceReporting::Endpoint::MarketplaceReportingEndpointProvider; +using EndpointParameters = Aws::Vector; +using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + +using EpParam = Aws::Endpoint::EndpointParameter; +using EpProp = Aws::Endpoint::EndpointParameter; // just a container to store test expectations +using ExpEpProps = Aws::UnorderedMap>>; +using ExpEpAuthScheme = Aws::Vector; +using ExpEpHeaders = Aws::UnorderedMap>; + +struct MarketplaceReportingEndpointProviderEndpointTestCase +{ + using OperationParamsFromTest = EndpointParameters; + + struct Expect + { + struct Endpoint + { + Aws::String url; + ExpEpAuthScheme authScheme; + ExpEpProps properties; + ExpEpHeaders headers; + } endpoint; + Aws::String error; + }; + struct OperationInput + { + Aws::String operationName; + OperationParamsFromTest operationParams; + OperationParamsFromTest builtinParams; + OperationParamsFromTest clientParams; + }; + + Aws::String documentation; + // Specification tells us it is Client Initialization parameters + // At the same time, specification tells us to test EndpointProvider not the client itself + // Hence params here will be set as a client params (just like a dedicated field above). + Aws::Vector params; + Aws::Vector tags; + Expect expect; + // Aws::Vector operationInput; +}; + +class MarketplaceReportingEndpointProviderTests : public ::testing::TestWithParam +{ +public: + static const size_t TEST_CASES_SZ; +protected: + static Aws::Vector getTestCase(); + static Aws::UniquePtrSafeDeleted> TEST_CASES; + static void SetUpTestSuite() + { + TEST_CASES = Aws::MakeUniqueSafeDeleted>(ALLOCATION_TAG, getTestCase()); + ASSERT_TRUE(TEST_CASES) << "Failed to allocate TEST_CASES table"; + assert(TEST_CASES->size() == TEST_CASES_SZ); + } + + static void TearDownTestSuite() + { + TEST_CASES.reset(); + } +}; + +Aws::UniquePtrSafeDeleted> MarketplaceReportingEndpointProviderTests::TEST_CASES; +const size_t MarketplaceReportingEndpointProviderTests::TEST_CASES_SZ = 25; + +Aws::Vector MarketplaceReportingEndpointProviderTests::getTestCase() { + + Aws::Vector test_cases = { + /*TEST CASE 0*/ + {"For region us-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace-fips.us-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 1*/ + {"For region us-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace-fips.us-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 2*/ + {"For region us-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace.us-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 3*/ + {"For region us-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace.us-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 4*/ + {"For region cn-north-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace-fips.cn-north-1.api.amazonwebservices.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 5*/ + {"For region cn-north-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace-fips.cn-north-1.amazonaws.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 6*/ + {"For region cn-north-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace.cn-north-1.api.amazonwebservices.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 7*/ + {"For region cn-north-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace.cn-north-1.amazonaws.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 8*/ + {"For region us-gov-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace-fips.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 9*/ + {"For region us-gov-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace-fips.us-gov-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 10*/ + {"For region us-gov-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 11*/ + {"For region us-gov-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace.us-gov-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 12*/ + {"For region us-iso-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect + }, + /*TEST CASE 13*/ + {"For region us-iso-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace-fips.us-iso-east-1.c2s.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 14*/ + {"For region us-iso-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect + }, + /*TEST CASE 15*/ + {"For region us-iso-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace.us-iso-east-1.c2s.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 16*/ + {"For region us-isob-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect + }, + /*TEST CASE 17*/ + {"For region us-isob-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace-fips.us-isob-east-1.sc2s.sgov.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 18*/ + {"For region us-isob-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect + }, + /*TEST CASE 19*/ + {"For region us-isob-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://reporting-marketplace.us-isob-east-1.sc2s.sgov.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 20*/ + {"For custom endpoint with region set and fips disabled and dualstack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://example.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 21*/ + {"For custom endpoint with region not set and fips disabled and dualstack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://example.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 22*/ + {"For custom endpoint with fips enabled and dualstack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: FIPS and custom endpoint are not supported"} // expect + }, + /*TEST CASE 23*/ + {"For custom endpoint with fips disabled and dualstack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Dualstack and custom endpoint are not supported"} // expect + }, + /*TEST CASE 24*/ + {"Missing region", // documentation + {}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Missing Region"} // expect + } + }; + return test_cases; +} + +Aws::String RulesToSdkSignerName(const Aws::String& rulesSignerName) +{ + Aws::String sdkSigner = "NullSigner"; + if (rulesSignerName == "sigv4") { + sdkSigner = "SignatureV4"; + } else if (rulesSignerName == "sigv4a") { + sdkSigner = "AsymmetricSignatureV4"; + } else if (rulesSignerName == "none") { + sdkSigner = "NullSigner"; + } else if (rulesSignerName == "bearer") { + sdkSigner = "Bearer"; + } else if (rulesSignerName == "s3Express") { + sdkSigner = "S3ExpressSigner"; + } else { + sdkSigner = rulesSignerName; + } + + return sdkSigner; +} + +void ValidateOutcome(const ResolveEndpointOutcome& outcome, const MarketplaceReportingEndpointProviderEndpointTestCase::Expect& expect) +{ + if(!expect.error.empty()) + { + ASSERT_FALSE(outcome.IsSuccess()) << "Expected failure with message:\n" << expect.error; + ASSERT_EQ(outcome.GetError().GetMessage(), expect.error); + } + else + { + AWS_ASSERT_SUCCESS(outcome); + ASSERT_EQ(outcome.GetResult().GetURL(), expect.endpoint.url); + const auto expAuthSchemesIt = expect.endpoint.properties.find("authSchemes"); + if (expAuthSchemesIt != expect.endpoint.properties.end()) + { + // in the list of AuthSchemes, select the one with a highest priority + const Aws::Vector priotityList = {"s3Express", "sigv4a", "sigv4", "bearer", "none", ""}; + const auto expectedAuthSchemePropsIt = std::find_first_of(expAuthSchemesIt->second.begin(), expAuthSchemesIt->second.end(), + priotityList.begin(), priotityList.end(), [](const Aws::Vector& props, const Aws::String& expName) + { + const auto& propNameIt = std::find_if(props.begin(), props.end(), [](const EpProp& prop) + { + return prop.GetName() == "name"; + }); + assert(propNameIt != props.end()); + return propNameIt->GetStrValueNoCheck() == expName; + }); + assert(expectedAuthSchemePropsIt != expAuthSchemesIt->second.end()); + + const auto& endpointResultAttrs = outcome.GetResult().GetAttributes(); + ASSERT_TRUE(endpointResultAttrs) << "Expected non-empty EndpointAttributes (authSchemes)"; + for (const auto& expProperty : *expectedAuthSchemePropsIt) + { + if (expProperty.GetName() == "name") { + ASSERT_TRUE(!endpointResultAttrs->authScheme.GetName().empty()); + ASSERT_EQ(RulesToSdkSignerName(expProperty.GetStrValueNoCheck()), endpointResultAttrs->authScheme.GetName()); + } else if (expProperty.GetName() == "signingName") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningName()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningName().value()); + } else if (expProperty.GetName() == "signingRegion") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegion()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegion().value()); + } else if (expProperty.GetName() == "signingRegionSet") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegionSet()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegionSet().value()); + } else if (expProperty.GetName() == "disableDoubleEncoding") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetDisableDoubleEncoding()); + ASSERT_EQ(expProperty.GetBoolValueNoCheck(), endpointResultAttrs->authScheme.GetDisableDoubleEncoding().value()); + } else { + FAIL() << "Unsupported Auth type property " << expProperty.GetName() << ". Need to update test."; + } + } + } + + EXPECT_EQ(expect.endpoint.headers.empty(), outcome.GetResult().GetHeaders().empty()); + for(const auto& expHeaderVec : expect.endpoint.headers) + { + const auto& retHeaderIt = outcome.GetResult().GetHeaders().find(expHeaderVec.first); + ASSERT_TRUE(retHeaderIt != outcome.GetResult().GetHeaders().end()); + + auto retHeaderVec = Aws::Utils::StringUtils::Split(retHeaderIt->second, ';'); + std::sort(retHeaderVec.begin(), retHeaderVec.end()); + + auto expHeaderVecSorted = expHeaderVec.second; + std::sort(expHeaderVecSorted.begin(), expHeaderVecSorted.end()); + + ASSERT_EQ(expHeaderVecSorted, retHeaderVec); + } + } +} + +TEST_P(MarketplaceReportingEndpointProviderTests, EndpointProviderTest) +{ + const size_t TEST_CASE_IDX = GetParam(); + ASSERT_LT(TEST_CASE_IDX, TEST_CASES->size()) << "Something is wrong with the test fixture itself."; + const MarketplaceReportingEndpointProviderEndpointTestCase& TEST_CASE = TEST_CASES->at(TEST_CASE_IDX); + SCOPED_TRACE(Aws::String("\nTEST CASE # ") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX) + ": " + TEST_CASE.documentation); + SCOPED_TRACE(Aws::String("\n--gtest_filter=EndpointTestsFromModel/MarketplaceReportingEndpointProviderTests.EndpointProviderTest/") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX)); + + std::shared_ptr endpointProvider = Aws::MakeShared(ALLOCATION_TAG); + ASSERT_TRUE(endpointProvider) << "Failed to allocate/initialize MarketplaceReportingEndpointProvider"; + + EndpointParameters endpointParameters; + for(const auto& param : TEST_CASE.params) + { + endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); + } + auto resolvedEndpointOutcome = endpointProvider->ResolveEndpoint(endpointParameters); + ValidateOutcome(resolvedEndpointOutcome, TEST_CASE.expect); + +#if 0 // temporarily disabled + for(const auto& operation : TEST_CASE.operationInput) + { + /* + * Most specific to least specific value locations: + staticContextParams + contextParam + clientContextParams + Built-In Bindings + Built-in binding default values + */ + const Aws::Vector> + operationInputParams = {std::cref(operation.builtinParams), std::cref(operation.clientParams), std::cref(operation.operationParams)}; + + for(const auto& paramSource : operationInputParams) + { + for(const auto& param : paramSource.get()) + { + endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); + } + } + auto resolvedEndpointOutcomePerOperation = endpointProvider->ResolveEndpoint(endpointParameters); + ValidateOutcome(resolvedEndpointOutcomePerOperation, TEST_CASE.expect); + } +#endif +} + +INSTANTIATE_TEST_SUITE_P(EndpointTestsFromModel, + MarketplaceReportingEndpointProviderTests, + ::testing::Range((size_t) 0u, MarketplaceReportingEndpointProviderTests::TEST_CASES_SZ)); diff --git a/generated/tests/marketplace-reporting-gen-tests/RunTests.cpp b/generated/tests/marketplace-reporting-gen-tests/RunTests.cpp new file mode 100644 index 00000000000..f2f10a7c789 --- /dev/null +++ b/generated/tests/marketplace-reporting-gen-tests/RunTests.cpp @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +int main(int argc, char** argv) +{ + Aws::SDKOptions options; + options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace; + + AWS_BEGIN_MEMORY_TEST_EX(options, 1024, 128); + Aws::Testing::InitPlatformTest(options); + Aws::Testing::ParseArgs(argc, argv); + + Aws::InitAPI(options); + ::testing::InitGoogleTest(&argc, argv); + int exitCode = RUN_ALL_TESTS(); + Aws::ShutdownAPI(options); + + AWS_END_MEMORY_TEST_EX; + Aws::Testing::ShutdownPlatformTest(options); + return exitCode; +} 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 36d8cb3b688..95bad96b93b 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.418" +#define AWS_SDK_VERSION_STRING "1.11.419" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 418 +#define AWS_SDK_VERSION_PATCH 419 diff --git a/tools/code-generation/api-descriptions/codepipeline-2015-07-09.normal.json b/tools/code-generation/api-descriptions/codepipeline-2015-07-09.normal.json index dc11ae93aa5..338af2e13f5 100644 --- a/tools/code-generation/api-descriptions/codepipeline-2015-07-09.normal.json +++ b/tools/code-generation/api-descriptions/codepipeline-2015-07-09.normal.json @@ -918,6 +918,10 @@ "shape":"ActionConfigurationMap", "documentation":"

The action's configuration. These are key-value pairs that specify input values for an action. For more information, see Action Structure Requirements in CodePipeline. For the list of configuration properties for the CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide. For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide.

The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows:

JSON:

\"Configuration\" : { Key : Value },

" }, + "commands":{ + "shape":"CommandList", + "documentation":"

The shell commands to run with your compute action in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild.

Using compute time for this action will incur separate charges in CodeBuild.

" + }, "outputArtifacts":{ "shape":"OutputArtifactList", "documentation":"

The name or ID of the result of the action declaration, such as a test or build artifact.

" @@ -926,6 +930,10 @@ "shape":"InputArtifactList", "documentation":"

The name or ID of the artifact consumed by the action, such as a test or build artifact.

" }, + "outputVariables":{ + "shape":"OutputVariableList", + "documentation":"

The list of variables that are to be exported from the compute action. This is specifically CodeBuild environment variables as used for that action.

" + }, "roleArn":{ "shape":"RoleArn", "documentation":"

The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the pipeline.

" @@ -1792,6 +1800,17 @@ "min":1 }, "Code":{"type":"string"}, + "Command":{ + "type":"string", + "max":1000, + "min":1 + }, + "CommandList":{ + "type":"list", + "member":{"shape":"Command"}, + "max":50, + "min":1 + }, "ConcurrentModificationException":{ "type":"structure", "members":{ @@ -2321,6 +2340,17 @@ "SystemUnavailable" ] }, + "FilePath":{ + "type":"string", + "max":128, + "min":1 + }, + "FilePathList":{ + "type":"list", + "member":{"shape":"FilePath"}, + "max":10, + "min":1 + }, "GetActionTypeInput":{ "type":"structure", "required":[ @@ -3301,6 +3331,10 @@ "name":{ "shape":"ArtifactName", "documentation":"

The name of the output of an artifact, such as \"My App\".

The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

Output artifact names must be unique within a pipeline.

" + }, + "files":{ + "shape":"FilePathList", + "documentation":"

The files that you want to associate with the output artifact that will be exported from the compute action.

" } }, "documentation":"

Represents information about the output of an action.

" @@ -3309,6 +3343,17 @@ "type":"list", "member":{"shape":"OutputArtifact"} }, + "OutputVariable":{ + "type":"string", + "max":128, + "min":1 + }, + "OutputVariableList":{ + "type":"list", + "member":{"shape":"OutputVariable"}, + "max":15, + "min":1 + }, "OutputVariablesKey":{ "type":"string", "pattern":"[A-Za-z0-9@\\-_]+" diff --git a/tools/code-generation/api-descriptions/connect-2017-08-08.normal.json b/tools/code-generation/api-descriptions/connect-2017-08-08.normal.json index 95264763856..f662bbd50e5 100644 --- a/tools/code-generation/api-descriptions/connect-2017-08-08.normal.json +++ b/tools/code-generation/api-descriptions/connect-2017-08-08.normal.json @@ -12155,7 +12155,7 @@ "GroupingsV2":{ "type":"list", "member":{"shape":"GroupingV2"}, - "max":3 + "max":4 }, "HierarchyGroup":{ "type":"structure", diff --git a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json index 431d883387a..e0389f29ada 100644 --- a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json +++ b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json @@ -5035,6 +5035,16 @@ "output":{"shape":"ModifyInstanceCapacityReservationAttributesResult"}, "documentation":"

Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity.

" }, + "ModifyInstanceCpuOptions":{ + "name":"ModifyInstanceCpuOptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyInstanceCpuOptionsRequest"}, + "output":{"shape":"ModifyInstanceCpuOptionsResult"}, + "documentation":"

By default, all vCPUs for the instance type are active when you launch an instance. When you configure the number of active vCPUs for the instance, it can help you save on licensing costs and optimize performance. The base cost of the instance remains unchanged.

The number of active vCPUs equals the number of threads per CPU core multiplied by the number of cores.

Some instance type options do not support this capability. For more information, see Supported CPU options in the Amazon EC2 User Guide.

" + }, "ModifyInstanceCreditSpecification":{ "name":"ModifyInstanceCreditSpecification", "http":{ @@ -11620,7 +11630,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" } } @@ -12873,7 +12883,7 @@ }, "Platform":{ "shape":"PlatformValues", - "documentation":"

The value is Windows for Windows instances. Otherwise, the value is blank.

", + "documentation":"

The value is windows for Windows instances in an EC2 Fleet. Otherwise, the value is blank.

", "locationName":"platform" } }, @@ -14321,7 +14331,7 @@ "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "GroupName":{ @@ -14769,7 +14779,7 @@ "members":{ "Bucket":{ "shape":"String", - "documentation":"

The name of the Amazon S3 bucket in which to store the Spot Instance data feed. For more information about bucket names, see Rules for bucket naming in the Amazon S3 Developer Guide.

", + "documentation":"

The name of the Amazon S3 bucket in which to store the Spot Instance data feed. For more information about bucket names, see Bucket naming rules in the Amazon S3 User Guide.

", "locationName":"bucket" }, "DryRun":{ @@ -15661,7 +15671,7 @@ }, "SecurityGroupReferencingSupport":{ "shape":"SecurityGroupReferencingSupportValue", - "documentation":"

Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management.

This option is disabled by default.

If you don't enable or disable SecurityGroupReferencingSupport in the request, the attachment will inherit the security group referencing support setting on the transit gateway.

For more information about security group referencing, see Security group referencing in the Amazon Web Services Transit Gateways Guide.

" + "documentation":"

This parameter is in preview and may not be available for your account.

Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.

If you don't enable or disable SecurityGroupReferencingSupport in the request, the attachment will inherit the security group referencing support setting on the transit gateway.

" }, "Ipv6Support":{ "shape":"Ipv6SupportValue", @@ -17823,7 +17833,7 @@ "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "GroupName":{ @@ -20490,7 +20500,7 @@ }, "Platform":{ "shape":"PlatformValues", - "documentation":"

The value is Windows for Windows instances. Otherwise, the value is blank.

", + "documentation":"

The value is windows for Windows instances in an EC2 Fleet. Otherwise, the value is blank.

", "locationName":"platform" } }, @@ -21062,7 +21072,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "InstanceId":{ @@ -21124,7 +21134,7 @@ "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" }, "Filters":{ "shape":"FilterList", @@ -21246,7 +21256,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "IncludeAllInstances":{ @@ -21289,7 +21299,7 @@ "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" }, "NextToken":{ "shape":"String", @@ -21429,7 +21439,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "MaxResults":{ @@ -22873,7 +22883,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "GroupNames":{ @@ -30911,7 +30921,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "Latest":{ @@ -30946,7 +30956,7 @@ "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" }, "InstanceId":{ "shape":"InstanceId", @@ -30979,7 +30989,7 @@ "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" }, "InstanceFamily":{ "shape":"UnlimitedSupportedInstanceFamily", @@ -31185,7 +31195,7 @@ "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" } } }, @@ -31311,7 +31321,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" } } }, @@ -31886,7 +31896,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" } } @@ -42600,7 +42610,7 @@ "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" }, "InstanceFamily":{ "shape":"UnlimitedSupportedInstanceFamily", @@ -42925,7 +42935,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "EbsOptimized":{ @@ -43020,13 +43030,59 @@ } } }, + "ModifyInstanceCpuOptionsRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "CoreCount", + "ThreadsPerCore" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

The ID of the instance to update.

" + }, + "CoreCount":{ + "shape":"Integer", + "documentation":"

The number of CPU cores to activate for the specified instance.

" + }, + "ThreadsPerCore":{ + "shape":"Integer", + "documentation":"

The number of threads to run for each CPU core.

" + }, + "DryRun":{ + "shape":"Boolean", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + } + } + }, + "ModifyInstanceCpuOptionsResult":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

The ID of the instance that was updated.

", + "locationName":"instanceId" + }, + "CoreCount":{ + "shape":"Integer", + "documentation":"

The number of CPU cores that are running for the specified instance after the update.

", + "locationName":"coreCount" + }, + "ThreadsPerCore":{ + "shape":"Integer", + "documentation":"

The number of threads that are running per CPU core for the specified instance after the update.

", + "locationName":"threadsPerCore" + } + } + }, "ModifyInstanceCreditSpecificationRequest":{ "type":"structure", "required":["InstanceCreditSpecifications"], "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" }, "ClientToken":{ "shape":"String", @@ -43064,7 +43120,7 @@ "members":{ "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" }, "InstanceId":{ "shape":"InstanceId", @@ -43181,7 +43237,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" } } }, @@ -44135,7 +44191,7 @@ }, "SecurityGroupReferencingSupport":{ "shape":"SecurityGroupReferencingSupportValue", - "documentation":"

Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management.

This option is disabled by default.

For more information about security group referencing, see Security group referencing in the Amazon Web Services Transit Gateways Guide.

" + "documentation":"

This parameter is in preview and may not be available for your account.

Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.

" }, "AutoAcceptSharedAttachments":{ "shape":"AutoAcceptSharedAttachmentsValue", @@ -44270,7 +44326,7 @@ }, "SecurityGroupReferencingSupport":{ "shape":"SecurityGroupReferencingSupportValue", - "documentation":"

Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management.

This option is disabled by default.

For more information about security group referencing, see Security group referencing in the Amazon Web Services Transit Gateways Guide.

" + "documentation":"

This parameter is in preview and may not be available for your account.

Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.

" }, "Ipv6Support":{ "shape":"Ipv6SupportValue", @@ -45326,7 +45382,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" } } @@ -49095,7 +49151,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" } } @@ -50098,7 +50154,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "EndTime":{ @@ -51236,7 +51292,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "InstanceId":{ @@ -52456,7 +52512,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "EbsOptimized":{ @@ -53664,7 +53720,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" } } }, @@ -55282,7 +55338,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" } } @@ -55481,7 +55537,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" }, "Force":{ @@ -56382,7 +56438,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" } } @@ -57703,7 +57759,7 @@ }, "SecurityGroupReferencingSupport":{ "shape":"SecurityGroupReferencingSupportValue", - "documentation":"

Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management.

This option is enabled by default.

For more information about security group referencing, see Security group referencing in the Amazon Web Services Transit Gateways Guide.

", + "documentation":"

This parameter is in preview and may not be available for your account.

Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.

", "locationName":"securityGroupReferencingSupport" }, "MulticastSupport":{ @@ -58103,7 +58159,7 @@ }, "SecurityGroupReferencingSupport":{ "shape":"SecurityGroupReferencingSupportValue", - "documentation":"

Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management.

This option is disabled by default.

For more information about security group referencing, see Security group referencing in the Amazon Web Services Transit Gateways Guide.

" + "documentation":"

This parameter is in preview and may not be available for your account.

Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.

" }, "MulticastSupport":{ "shape":"MulticastSupportValue", @@ -58560,7 +58616,7 @@ }, "SecurityGroupReferencingSupport":{ "shape":"SecurityGroupReferencingSupportValue", - "documentation":"

Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management.

This option is disabled by default.

For more information about security group referencing, see Security group referencing in the Amazon Web Services Transit Gateways Guide.

", + "documentation":"

This parameter is in preview and may not be available for your account.

Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.

", "locationName":"securityGroupReferencingSupport" }, "Ipv6Support":{ @@ -58919,7 +58975,7 @@ }, "DryRun":{ "shape":"Boolean", - "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "documentation":"

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "locationName":"dryRun" } } diff --git a/tools/code-generation/api-descriptions/iot-2015-05-28.normal.json b/tools/code-generation/api-descriptions/iot-2015-05-28.normal.json index 31bbd746466..a764a21728f 100644 --- a/tools/code-generation/api-descriptions/iot-2015-05-28.normal.json +++ b/tools/code-generation/api-descriptions/iot-2015-05-28.normal.json @@ -80,7 +80,7 @@ {"shape":"ServiceQuotaExceededException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

Associates a software bill of materials (SBOM) with a specific software package version.

Requires permission to access the AssociateSbomWithPackageVersion action.

", + "documentation":"

Associates the selected software bill of materials (SBOM) with a specific software package version.

Requires permission to access the AssociateSbomWithPackageVersion action.

", "idempotent":true }, "AssociateTargetsWithJob":{ @@ -358,7 +358,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} ], - "documentation":"

Creates a billing group.

Requires permission to access the CreateBillingGroup action.

" + "documentation":"

Creates a billing group. If this call is made multiple times using the same billing group name and configuration, the call will succeed. If this call is made with the same billing group name but different configuration a ResourceAlreadyExistsException is thrown.

Requires permission to access the CreateBillingGroup action.

" }, "CreateCertificateFromCsr":{ "name":"CreateCertificateFromCsr", @@ -731,7 +731,7 @@ {"shape":"ServiceUnavailableException"}, {"shape":"InternalFailureException"} ], - "documentation":"

Creates a role alias.

Requires permission to access the CreateRoleAlias action.

" + "documentation":"

Creates a role alias.

Requires permission to access the CreateRoleAlias action.

The value of credentialDurationSeconds must be less than or equal to the maximum session duration of the IAM role that the role alias references. For more information, see Modifying a role maximum session duration (Amazon Web Services API) from the Amazon Web Services Identity and Access Management User Guide.

" }, "CreateScheduledAudit":{ "name":"CreateScheduledAudit", @@ -837,7 +837,7 @@ {"shape":"InternalFailureException"}, {"shape":"ResourceAlreadyExistsException"} ], - "documentation":"

Creates a new thing type.

Requires permission to access the CreateThingType action.

" + "documentation":"

Creates a new thing type. If this call is made multiple times using the same thing type name and configuration, the call will succeed. If this call is made with the same thing type name but different configuration a ResourceAlreadyExistsException is thrown.

Requires permission to access the CreateThingType action.

" }, "CreateTopicRule":{ "name":"CreateTopicRule", @@ -2140,7 +2140,7 @@ {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

Disassociates a software bill of materials (SBOM) from a specific software package version.

Requires permission to access the DisassociateSbomWithPackageVersion action.

", + "documentation":"

Disassociates the selected software bill of materials (SBOM) from a specific software package version.

Requires permission to access the DisassociateSbomWithPackageVersion action.

", "idempotent":true }, "EnableTopicRule":{ @@ -4290,7 +4290,7 @@ {"shape":"ServiceUnavailableException"}, {"shape":"InternalFailureException"} ], - "documentation":"

Updates a role alias.

Requires permission to access the UpdateRoleAlias action.

" + "documentation":"

Updates a role alias.

Requires permission to access the UpdateRoleAlias action.

The value of credentialDurationSeconds must be less than or equal to the maximum session duration of the IAM role that the role alias references. For more information, see Modifying a role maximum session duration (Amazon Web Services API) from the Amazon Web Services Identity and Access Management User Guide.

" }, "UpdateScheduledAudit":{ "name":"UpdateScheduledAudit", @@ -4833,6 +4833,15 @@ }, "documentation":"

Contains information that allowed the authorization.

" }, + "ApplicationProtocol":{ + "type":"string", + "enum":[ + "SECURE_MQTT", + "MQTT_WSS", + "HTTPS", + "DEFAULT" + ] + }, "ApproximateSecondsBeforeTimedOut":{"type":"long"}, "AscendingOrder":{"type":"boolean"}, "AssetId":{"type":"string"}, @@ -4961,7 +4970,7 @@ "sbom":{"shape":"Sbom"}, "sbomValidationStatus":{ "shape":"SbomValidationStatus", - "documentation":"

The status of the initial validation for the SBOM against the Software Package Data Exchange (SPDX) and CycloneDX industry standard format.

" + "documentation":"

The status of the initial validation for the software bill of materials against the Software Package Data Exchange (SPDX) and CycloneDX industry standard formats.

" } } }, @@ -5566,6 +5575,16 @@ "type":"list", "member":{"shape":"AuthResult"} }, + "AuthenticationType":{ + "type":"string", + "enum":[ + "CUSTOM_AUTH_X509", + "CUSTOM_AUTH", + "AWS_X509", + "AWS_SIGV4", + "DEFAULT" + ] + }, "AuthorizerArn":{ "type":"string", "max":2048 @@ -6524,6 +6543,21 @@ "members":{ } }, + "ClientCertificateCallbackArn":{ + "type":"string", + "max":2048, + "pattern":"[\\s\\S]*" + }, + "ClientCertificateConfig":{ + "type":"structure", + "members":{ + "clientCertificateCallbackArn":{ + "shape":"ClientCertificateCallbackArn", + "documentation":"

The ARN of the Lambda function that IoT invokes after mutual TLS authentication during the connection.

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

An object that specifies the client certificate configuration for a domain.

" + }, "ClientId":{"type":"string"}, "ClientProperties":{ "type":"map", @@ -7123,6 +7157,18 @@ "serverCertificateConfig":{ "shape":"ServerCertificateConfig", "documentation":"

The server certificate configuration.

" + }, + "authenticationType":{ + "shape":"AuthenticationType", + "documentation":"

An enumerated string that specifies the authentication type.

  • CUSTOM_AUTH_X509 - Use custom authentication and authorization with additional details from the X.509 client certificate.

  • AWS_X509 - Use X.509 client certificates without custom authentication and authorization. For more information, see X.509 client certificates.

  • DEFAULT - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to specify authentication type. For more information, see Device communication protocols.

" + }, + "applicationProtocol":{ + "shape":"ApplicationProtocol", + "documentation":"

An enumerated string that specifies the application-layer protocol.

  • SECURE_MQTT - MQTT over TLS.

  • MQTT_WSS - MQTT over WebSocket.

  • HTTPS - HTTP over TLS.

  • DEFAULT - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to specify application_layer protocol. For more information, see Device communication protocols.

" + }, + "clientCertificateConfig":{ + "shape":"ClientCertificateConfig", + "documentation":"

An object that specifies the client certificate configuration for a domain.

" } } }, @@ -7672,7 +7718,7 @@ }, "recipe":{ "shape":"PackageVersionRecipe", - "documentation":"

The inline job document associated with a software package version used for a quick job deployment via IoT Jobs.

" + "documentation":"

The inline job document associated with a software package version used for a quick job deployment.

" }, "tags":{ "shape":"TagMap", @@ -9610,6 +9656,18 @@ "serverCertificateConfig":{ "shape":"ServerCertificateConfig", "documentation":"

The server certificate configuration.

" + }, + "authenticationType":{ + "shape":"AuthenticationType", + "documentation":"

An enumerated string that specifies the authentication type.

  • CUSTOM_AUTH_X509 - Use custom authentication and authorization with additional details from the X.509 client certificate.

  • AWS_X509 - Use X.509 client certificates without custom authentication and authorization. For more information, see X.509 client certificates.

  • DEFAULT - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to specify authentication type. For more information, see Device communication protocols.

" + }, + "applicationProtocol":{ + "shape":"ApplicationProtocol", + "documentation":"

An enumerated string that specifies the application-layer protocol.

  • SECURE_MQTT - MQTT over TLS.

  • MQTT_WSS - MQTT over WebSocket.

  • HTTPS - HTTP over TLS.

  • DEFAULT - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to specify application_layer protocol. For more information, see Device communication protocols.

" + }, + "clientCertificateConfig":{ + "shape":"ClientCertificateConfig", + "documentation":"

An object that specifies the client certificate configuration for a domain.

" } } }, @@ -11740,7 +11798,7 @@ }, "recipe":{ "shape":"PackageVersionRecipe", - "documentation":"

The inline job document associated with a software package version used for a quick job deployment via IoT Jobs.

" + "documentation":"

The inline job document associated with a software package version used for a quick job deployment.

" } } }, @@ -16458,7 +16516,7 @@ "members":{ "s3Location":{"shape":"S3Location"} }, - "documentation":"

The Amazon S3 location for the artifacts associated with a software package version.

" + "documentation":"

A specific package version artifact associated with a software package version.

" }, "PackageVersionErrorReason":{"type":"string"}, "PackageVersionRecipe":{ @@ -17671,7 +17729,7 @@ "members":{ "s3Location":{"shape":"S3Location"} }, - "documentation":"

The Amazon S3 location for the software bill of materials associated with a software package version.

" + "documentation":"

A specific software bill of matrerials associated with a software package version.

" }, "SbomValidationErrorCode":{ "type":"string", @@ -19018,7 +19076,7 @@ }, "thingGroupNames":{ "shape":"ThingGroupNameList", - "documentation":"

Thing group names.

" + "documentation":"

Thing group and billing group names.

" }, "attributes":{ "shape":"Attributes", @@ -20143,6 +20201,18 @@ "serverCertificateConfig":{ "shape":"ServerCertificateConfig", "documentation":"

The server certificate configuration.

" + }, + "authenticationType":{ + "shape":"AuthenticationType", + "documentation":"

An enumerated string that specifies the authentication type.

  • CUSTOM_AUTH_X509 - Use custom authentication and authorization with additional details from the X.509 client certificate.

  • AWS_X509 - Use X.509 client certificates without custom authentication and authorization. For more information, see X.509 client certificates.

  • DEFAULT - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to specify authentication type. For more information, see Device communication protocols.

" + }, + "applicationProtocol":{ + "shape":"ApplicationProtocol", + "documentation":"

An enumerated string that specifies the application-layer protocol.

  • SECURE_MQTT - MQTT over TLS.

  • MQTT_WSS - MQTT over WebSocket.

  • HTTPS - HTTP over TLS.

  • DEFAULT - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to specify application_layer protocol. For more information, see Device communication protocols.

" + }, + "clientCertificateConfig":{ + "shape":"ClientCertificateConfig", + "documentation":"

An object that specifies the client certificate configuration for a domain.

" } } }, @@ -20455,7 +20525,7 @@ }, "recipe":{ "shape":"PackageVersionRecipe", - "documentation":"

The inline job document associated with a software package version used for a quick job deployment via IoT Jobs.

" + "documentation":"

The inline job document associated with a software package version used for a quick job deployment.

" }, "clientToken":{ "shape":"ClientToken", diff --git a/tools/code-generation/api-descriptions/marketplace-reporting-2018-05-10.normal.json b/tools/code-generation/api-descriptions/marketplace-reporting-2018-05-10.normal.json new file mode 100644 index 00000000000..cbbd0a0a77c --- /dev/null +++ b/tools/code-generation/api-descriptions/marketplace-reporting-2018-05-10.normal.json @@ -0,0 +1,141 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-05-10", + "auth":["aws.auth#sigv4"], + "endpointPrefix":"reporting-marketplace", + "protocol":"rest-json", + "protocols":["rest-json"], + "serviceFullName":"AWS Marketplace Reporting Service", + "serviceId":"Marketplace Reporting", + "signatureVersion":"v4", + "signingName":"aws-marketplace", + "uid":"marketplace-reporting-2018-05-10" + }, + "operations":{ + "GetBuyerDashboard":{ + "name":"GetBuyerDashboard", + "http":{ + "method":"POST", + "requestUri":"/getBuyerDashboard", + "responseCode":200 + }, + "input":{"shape":"GetBuyerDashboardInput"}, + "output":{"shape":"GetBuyerDashboardOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"} + ], + "documentation":"

Generates an embedding URL for an Amazon QuickSight dashboard for an anonymous user.

The following rules apply to a generated URL:

  • It contains a temporary bearer token, valid for 5 minutes after it is generated. Once redeemed within that period, it cannot be re-used again.

  • It has a session lifetime of one hour. The 5-minute validity period runs separately from the session lifetime.

" + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "documentation":"

You do not have sufficient access to perform this action.

", + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "BadRequestException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "documentation":"

The request is malformed, or it contains an error such as an invalid parameter. Ensure the request has all required parameters.

", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "DashboardIdentifier":{ + "type":"string", + "max":1023, + "min":1, + "pattern":"arn:aws:aws-marketplace::[0-9]{12}:AWSMarketplace/ReportingData/(Agreement_V1/Dashboard/AgreementSummary_V1|BillingEvent_V1/Dashboard/CostAnalysis_V1)" + }, + "EmbeddingDomain":{ + "type":"string", + "max":2000, + "min":1, + "pattern":"(https://[a-zA-Z\\.\\*0-9\\-_]+[\\.]{1}[a-zA-Z]{1,}[a-zA-Z0-9&?/-_=]*[a-zA-Z\\*0-9/]+|http[s]*://localhost(:[0-9]{1,5})?)" + }, + "EmbeddingDomains":{ + "type":"list", + "member":{"shape":"EmbeddingDomain"}, + "max":2, + "min":1 + }, + "GetBuyerDashboardInput":{ + "type":"structure", + "required":[ + "dashboardIdentifier", + "embeddingDomains" + ], + "members":{ + "dashboardIdentifier":{ + "shape":"DashboardIdentifier", + "documentation":"

The ARN of the requested dashboard.

" + }, + "embeddingDomains":{ + "shape":"EmbeddingDomains", + "documentation":"

Fully qualified domains that you add to the allow list for access to the generated URL that is then embedded. You can list up to two domains or subdomains in each API call. To include all subdomains under a specific domain, use *. For example, https://*.amazon.com includes all subdomains under https://aws.amazon.com.

" + } + } + }, + "GetBuyerDashboardOutput":{ + "type":"structure", + "required":[ + "embedUrl", + "dashboardIdentifier", + "embeddingDomains" + ], + "members":{ + "embedUrl":{ + "shape":"String", + "documentation":"

The dashboard's embedding URL.

" + }, + "dashboardIdentifier":{ + "shape":"DashboardIdentifier", + "documentation":"

The ARN of the returned dashboard.

" + }, + "embeddingDomains":{ + "shape":"EmbeddingDomains", + "documentation":"

The fully qualified domains specified in the request. The domains enable access to the generated URL that is then embedded. You can list up to two domains or subdomains in each API call. To include all subdomains under a specific domain, use *. For example, https://*.amazon.com includes all subdomains under https://aws.amazon.com.

" + } + } + }, + "InternalServerException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "documentation":"

The operation failed due to a server error.

", + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "String":{"type":"string"}, + "UnauthorizedException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "documentation":"

You do not have permission to perform this action.

", + "error":{ + "httpStatusCode":401, + "senderFault":true + }, + "exception":true + } + }, + "documentation":"

The AWS Marketplace GetBuyerDashboard API enables you to get a procurement insights dashboard programmatically. The API gets the agreement and cost analysis dashboards with data for all of the Amazon Web Services accounts in your Amazon Web Services organization.

To use the API, you must complete the following prerequisites:

" +} diff --git a/tools/code-generation/api-descriptions/mediapackagev2-2022-12-25.normal.json b/tools/code-generation/api-descriptions/mediapackagev2-2022-12-25.normal.json index 09aab1a184d..bbd3984c729 100644 --- a/tools/code-generation/api-descriptions/mediapackagev2-2022-12-25.normal.json +++ b/tools/code-generation/api-descriptions/mediapackagev2-2022-12-25.normal.json @@ -850,6 +850,7 @@ "documentation":"

A short string that's appended to the endpoint URL. The child manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index, with an added suffix to distinguish it from the manifest name. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

" }, "ScteHls":{"shape":"ScteHls"}, + "StartTag":{"shape":"StartTag"}, "ManifestWindowSeconds":{ "shape":"CreateHlsManifestConfigurationManifestWindowSecondsInteger", "documentation":"

The total duration (in seconds) of the manifest's content.

" @@ -890,6 +891,7 @@ "documentation":"

A short string that's appended to the endpoint URL. The child manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index, with an added suffix to distinguish it from the manifest name. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

" }, "ScteHls":{"shape":"ScteHls"}, + "StartTag":{"shape":"StartTag"}, "ManifestWindowSeconds":{ "shape":"CreateLowLatencyHlsManifestConfigurationManifestWindowSecondsInteger", "documentation":"

The total duration (in seconds) of the manifest's content.

" @@ -1379,6 +1381,10 @@ "TimeDelaySeconds":{ "shape":"FilterConfigurationTimeDelaySecondsInteger", "documentation":"

Optionally specify the time delay for all of your manifest egress requests. Enter a value that is smaller than your endpoint's startover window. When you include time delay, note that you cannot use time delay query parameters for this manifest's endpoint URL.

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

Optionally specify the clip start time for all of your manifest egress requests. When you include clip start time, note that you cannot use clip start time query parameters for this manifest's endpoint URL.

" } }, "documentation":"

Filter configuration includes settings for manifest filtering, start and end times, and time delay that apply to all of your egress requests for this manifest.

" @@ -1394,6 +1400,10 @@ "max":1209600, "min":0 }, + "Float":{ + "type":"float", + "box":true + }, "ForceEndpointErrorConfiguration":{ "type":"structure", "members":{ @@ -1661,7 +1671,8 @@ "documentation":"

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval, EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest. The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player. ID3Timed metadata messages generate every 5 seconds whenever the content is ingested.

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

" }, "ScteHls":{"shape":"ScteHls"}, - "FilterConfiguration":{"shape":"FilterConfiguration"} + "FilterConfiguration":{"shape":"FilterConfiguration"}, + "StartTag":{"shape":"StartTag"} }, "documentation":"

Retrieve the HTTP live streaming (HLS) manifest configuration.

" }, @@ -1697,7 +1708,8 @@ "documentation":"

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval, EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest. The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player. ID3Timed metadata messages generate every 5 seconds whenever the content is ingested.

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

" }, "ScteHls":{"shape":"ScteHls"}, - "FilterConfiguration":{"shape":"FilterConfiguration"} + "FilterConfiguration":{"shape":"FilterConfiguration"}, + "StartTag":{"shape":"StartTag"} }, "documentation":"

Retrieve the low-latency HTTP live streaming (HLS) manifest configuration.

" }, @@ -2481,6 +2493,21 @@ "max":1024, "min":1 }, + "StartTag":{ + "type":"structure", + "required":["TimeOffset"], + "members":{ + "TimeOffset":{ + "shape":"Float", + "documentation":"

Specify the value for TIME-OFFSET within your EXT-X-START tag. Enter a signed floating point value which, if positive, must be less than the configured manifest duration minus three times the configured segment target duration. If negative, the absolute value must be larger than three times the configured segment target duration, and the absolute value must be smaller than the configured manifest duration.

" + }, + "Precise":{ + "shape":"Boolean", + "documentation":"

Specify the value for PRECISE within your EXT-X-START tag. Leave blank, or choose false, to use the default value NO. Choose yes to use the value YES.

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

To insert an EXT-X-START tag in your HLS playlist, specify a StartTag configuration object with a valid TimeOffset. When you do, you can also optionally specify whether to include a PRECISE value in the EXT-X-START tag.

" + }, "String":{"type":"string"}, "TagArn":{"type":"string"}, "TagKey":{"type":"string"}, @@ -2917,7 +2944,9 @@ "PERIOD_TRIGGERS_NONE_SPECIFIED_WITH_ADDITIONAL_VALUES", "DRM_SIGNALING_MISMATCH_SEGMENT_ENCRYPTION_STATUS", "ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION", - "SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY" + "SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY", + "CLIP_START_TIME_WITH_START_OR_END", + "START_TAG_TIME_OFFSET_INVALID" ] } }, diff --git a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json index ee1235c5321..682109539e9 100644 --- a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json +++ b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json @@ -4196,6 +4196,10 @@ "Dashboards":{ "shape":"AssetBundleExportJobDashboardOverridePropertiesList", "documentation":"

An optional list of structures that control how Dashboard resources are parameterized in the returned CloudFormation template.

" + }, + "Folders":{ + "shape":"AssetBundleExportJobFolderOverridePropertiesList", + "documentation":"

An optional list of structures that controls how Folder resources are parameterized in the returned CloudFormation template.

" } }, "documentation":"

An optional collection of CloudFormation property configurations that control how the export job is generated.

" @@ -4384,6 +4388,43 @@ "type":"list", "member":{"shape":"AssetBundleExportJobError"} }, + "AssetBundleExportJobFolderOverrideProperties":{ + "type":"structure", + "required":[ + "Arn", + "Properties" + ], + "members":{ + "Arn":{ + "shape":"Arn", + "documentation":"

The ARN of the specific Folder resource whose override properties are configured in this structure.

" + }, + "Properties":{ + "shape":"AssetBundleExportJobFolderPropertyToOverrideList", + "documentation":"

A list of Folder resource properties to generate variables for in the returned CloudFormation template.

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

Controls how a specific Folder resource is parameterized in the returned CloudFormation template.

" + }, + "AssetBundleExportJobFolderOverridePropertiesList":{ + "type":"list", + "member":{"shape":"AssetBundleExportJobFolderOverrideProperties"}, + "max":50, + "min":1 + }, + "AssetBundleExportJobFolderPropertyToOverride":{ + "type":"string", + "enum":[ + "Name", + "ParentFolderArn" + ] + }, + "AssetBundleExportJobFolderPropertyToOverrideList":{ + "type":"list", + "member":{"shape":"AssetBundleExportJobFolderPropertyToOverride"}, + "max":10, + "min":1 + }, "AssetBundleExportJobRefreshScheduleOverrideProperties":{ "type":"structure", "required":[ @@ -4931,6 +4972,73 @@ "type":"list", "member":{"shape":"AssetBundleImportJobError"} }, + "AssetBundleImportJobFolderOverrideParameters":{ + "type":"structure", + "required":["FolderId"], + "members":{ + "FolderId":{ + "shape":"ResourceId", + "documentation":"

The ID of the folder that you want to apply overrides to.

" + }, + "Name":{ + "shape":"ResourceName", + "documentation":"

A new name for the folder.

" + }, + "ParentFolderArn":{ + "shape":"Arn", + "documentation":"

A new parent folder arn. This change can only be applied if the import creates a brand new folder. Existing folders cannot be moved.

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

The override parameters for a single folder that is being imported.

" + }, + "AssetBundleImportJobFolderOverrideParametersList":{ + "type":"list", + "member":{"shape":"AssetBundleImportJobFolderOverrideParameters"}, + "max":50, + "min":1 + }, + "AssetBundleImportJobFolderOverridePermissions":{ + "type":"structure", + "required":["FolderIds"], + "members":{ + "FolderIds":{ + "shape":"AssetBundleRestrictiveResourceIdList", + "documentation":"

A list of folder IDs that you want to apply overrides to. You can use * to override all folders in this asset bundle.

" + }, + "Permissions":{"shape":"AssetBundleResourcePermissions"} + }, + "documentation":"

An object that contains a list of permissions to be applied to a list of folder IDs.

" + }, + "AssetBundleImportJobFolderOverridePermissionsList":{ + "type":"list", + "member":{"shape":"AssetBundleImportJobFolderOverridePermissions"}, + "max":2, + "min":1 + }, + "AssetBundleImportJobFolderOverrideTags":{ + "type":"structure", + "required":[ + "FolderIds", + "Tags" + ], + "members":{ + "FolderIds":{ + "shape":"AssetBundleRestrictiveResourceIdList", + "documentation":"

A list of folder IDs that you want to apply overrides to. You can use * to override all folders in this asset bundle.

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

A list of tags for the folders that you want to apply overrides to.

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

An object that contains a list of tags to be assigned to a list of folder IDs.

" + }, + "AssetBundleImportJobFolderOverrideTagsList":{ + "type":"list", + "member":{"shape":"AssetBundleImportJobFolderOverrideTags"}, + "max":5, + "min":1 + }, "AssetBundleImportJobOverrideParameters":{ "type":"structure", "members":{ @@ -4965,6 +5073,10 @@ "Dashboards":{ "shape":"AssetBundleImportJobDashboardOverrideParametersList", "documentation":"

A list of overrides for any Dashboard resources that are present in the asset bundle that is imported.

" + }, + "Folders":{ + "shape":"AssetBundleImportJobFolderOverrideParametersList", + "documentation":"

A list of overrides for any Folder resources that are present in the asset bundle that is imported.

" } }, "documentation":"

A list of overrides that modify the asset bundle resource configuration before the resource is imported.

" @@ -4991,6 +5103,10 @@ "Dashboards":{ "shape":"AssetBundleImportJobDashboardOverridePermissionsList", "documentation":"

A list of permissions overrides for any Dashboard resources that are present in the asset bundle that is imported.

" + }, + "Folders":{ + "shape":"AssetBundleImportJobFolderOverridePermissionsList", + "documentation":"

A list of permissions for the folders that you want to apply overrides to.

" } }, "documentation":"

A structure that contains the override permission configurations that modify the permissions for specified resources before the resource is imported.

" @@ -5021,6 +5137,10 @@ "Dashboards":{ "shape":"AssetBundleImportJobDashboardOverrideTagsList", "documentation":"

A list of tag overrides for any Dashboard resources that are present in the asset bundle that is imported.

" + }, + "Folders":{ + "shape":"AssetBundleImportJobFolderOverrideTagsList", + "documentation":"

A list of tag overrides for any Folder resources that are present in the asset bundle that is imported.

" } }, "documentation":"

A structure that contains the override tag configuration that modify the tags that are assigned to specified resources before the resource is imported.

" @@ -13441,6 +13561,14 @@ "Warnings":{ "shape":"AssetBundleExportJobWarningList", "documentation":"

An array of warning records that describe the analysis or dashboard that is exported. This array includes UI errors that can be skipped during the validation process.

This property only appears if StrictModeForAllResources in ValidationStrategy is set to FALSE.

" + }, + "IncludeFolderMemberships":{ + "shape":"Boolean", + "documentation":"

The include folder memberships flag.

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

A setting that determines whether folder members are included.

" } } }, @@ -18728,6 +18856,14 @@ "error":{"httpStatusCode":403}, "exception":true }, + "IncludeFolderMembers":{ + "type":"string", + "enum":[ + "RECURSE", + "ONE_LEVEL", + "NONE" + ] + }, "IncrementalRefresh":{ "type":"structure", "required":["LookbackWindow"], @@ -27818,6 +27954,14 @@ "ValidationStrategy":{ "shape":"AssetBundleExportJobValidationStrategy", "documentation":"

An optional parameter that determines which validation strategy to use for the export job. If StrictModeForAllResources is set to TRUE, strict validation for every error is enforced. If it is set to FALSE, validation is skipped for specific UI errors that are shown as warnings. The default value for StrictModeForAllResources is FALSE.

" + }, + "IncludeFolderMemberships":{ + "shape":"Boolean", + "documentation":"

A Boolean that determines if the exported asset carries over information about the folders that the asset is a member of.

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

A setting that indicates whether you want to include folder assets. You can also use this setting to recusrsively include all subfolders of an exported folder.

" } } }, @@ -30112,6 +30256,16 @@ "type":"list", "member":{"shape":"TopicColumn"} }, + "TopicConfigOptions":{ + "type":"structure", + "members":{ + "QBusinessInsightsEnabled":{ + "shape":"NullableBoolean", + "documentation":"

Enables Amazon Q Business Insights for a Topic.

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

Configuration options for a Topic.

" + }, "TopicConstantValue":{ "type":"structure", "members":{ @@ -30170,6 +30324,10 @@ "DataSets":{ "shape":"Datasets", "documentation":"

The data sets that the topic is associated with.

" + }, + "ConfigOptions":{ + "shape":"TopicConfigOptions", + "documentation":"

Configuration options for a Topic.

" } }, "documentation":"

A structure that describes the details of a topic, such as its name, description, and associated data sets.

" diff --git a/tools/code-generation/endpoints/marketplace-reporting-2018-05-10.endpoint-rule-set.json b/tools/code-generation/endpoints/marketplace-reporting-2018-05-10.endpoint-rule-set.json new file mode 100644 index 00000000000..5db279b2145 --- /dev/null +++ b/tools/code-generation/endpoints/marketplace-reporting-2018-05-10.endpoint-rule-set.json @@ -0,0 +1,350 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://reporting-marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://reporting-marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://reporting-marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://reporting-marketplace.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ], + "type": "tree" + } + ] +} \ No newline at end of file diff --git a/tools/code-generation/endpoints/marketplace-reporting-2018-05-10.endpoint-tests.json b/tools/code-generation/endpoints/marketplace-reporting-2018-05-10.endpoint-tests.json new file mode 100644 index 00000000000..4e7b724931a --- /dev/null +++ b/tools/code-generation/endpoints/marketplace-reporting-2018-05-10.endpoint-tests.json @@ -0,0 +1,314 @@ +{ + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://reporting-marketplace.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" +} \ No newline at end of file