From f8efa6a44259c444ac574070ffe5c4f794ff4671 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Wed, 20 Nov 2024 19:10:16 +0000 Subject: [PATCH] Added data protection settings with support for inline data redaction. This release supports Metadata Enforcement Rule feature for Create Subscription Request action. Enabling call caching feature that allows customers to reuse previously computed results from a set of completed tasks in a new workflow run. This release adds support for Provisioning Timestream Compute Units (TCUs), a new feature that allows provisioning dedicated compute resources for your queries, providing predictable and cost-effective query performance. Add Node 22.x (node22.x) support to AWS Lambda Added support for Rocky Linux 8 on Amazon WorkSpaces Personal. This release adds support for scale storage on the DB instance using a Blue/Green Deployment. This release adds support for configuring Load balancer Capacity Unit reservations This release adds support for exclusion tags for Recycle Bin, which allows you to identify resources that are to be excluded, or ignored, by a Region-level retention rule. This release adds action type "Delete" to the GetRecommendation, ListRecommendations and ListRecommendationSummaries APIs to support new EBS and ECS recommendations with action type "Delete". Add support to import data from commercially available discovery tools without file manipulation. This release enables AWS Compute Optimizer to analyze and generate optimization recommendations for Amazon Aurora database instances. It also enables Compute Optimizer to identify idle Amazon EC2 instances, Amazon EBS volumes, Amazon ECS services running on Fargate, and Amazon RDS databases. Releasing new Prompt Optimization to enhance your prompts for improved performance This release adds support for the Availability Zone rebalancing feature on Amazon ECS. With this release, customers can express their desire to launch instances only in an ODCR or ODCR group rather than OnDemand capacity. Customers can express their baseline instances' CPU-performance in attribute-based Instance Requirements configuration by referencing an instance family. With this release, customers can prioritize launching instances into ODCRs using targets from ASGs or Launch Templates. Customers can express their baseline instances' CPU-performance in attribute-based Instance Requirements configuration by referencing an instance family that meets their needs. Adds support for child enabled baselines which allow you to see the enabled baseline status for individual accounts. This release adds the ability to reconfigure concurrent job settings for existing queues and create queues with custom concurrent job settings. Add support for gRPC, VPC origins, and Anycast IP Lists. Allow LoggingConfig IncludeCookies to be set regardless of whether the LoggingConfig is enabled. MediaPackage v2 now supports the Media Quality Confidence Score (MQCS) published from MediaLive. Customers can control input switching based on the MQCS and publishing HTTP Headers for the MQCS via the API. --- VERSION | 2 +- .../aws/autoscaling/model/AutoScalingGroup.h | 16 + .../model/BaselinePerformanceFactorsRequest.h | 69 ++ .../model/CapacityReservationPreference.h | 33 + .../model/CapacityReservationSpecification.h | 92 ++ .../model/CapacityReservationTarget.h | 85 ++ .../model/CpuPerformanceFactorRequest.h | 69 ++ .../model/CreateAutoScalingGroupRequest.h | 16 + .../autoscaling/model/InstanceRequirements.h | 16 + .../model/PerformanceFactorReferenceRequest.h | 86 ++ .../model/UpdateAutoScalingGroupRequest.h | 16 + .../source/model/AutoScalingGroup.cpp | 22 +- .../BaselinePerformanceFactorsRequest.cpp | 74 ++ .../model/CapacityReservationPreference.cpp | 86 ++ .../CapacityReservationSpecification.cpp | 91 ++ .../model/CapacityReservationTarget.cpp | 114 +++ .../model/CpuPerformanceFactorRequest.cpp | 88 ++ .../model/CreateAutoScalingGroupRequest.cpp | 8 +- .../source/model/InstanceRequirements.cpp | 22 +- .../PerformanceFactorReferenceRequest.cpp | 70 ++ .../model/UpdateAutoScalingGroupRequest.cpp | 8 +- .../BedrockAgentRuntimeClient.h | 38 +- .../BedrockAgentRuntimeServiceClientModel.h | 4 + .../model/ActionGroupInvocationInput.h | 4 +- .../model/AnalyzePromptEvent.h | 62 ++ .../bedrock-agent-runtime/model/InputPrompt.h | 60 ++ .../model/OptimizePromptHandler.h | 86 ++ .../model/OptimizePromptInitialResponse.h | 38 + .../model/OptimizePromptRequest.h | 98 ++ .../model/OptimizedPrompt.h | 60 ++ .../model/OptimizedPromptEvent.h | 59 ++ .../model/OptimizedPromptStream.h | 180 ++++ .../bedrock-agent-runtime/model/TextPrompt.h | 62 ++ .../source/BedrockAgentRuntimeClient.cpp | 31 + .../source/model/AnalyzePromptEvent.cpp | 59 ++ .../source/model/InputPrompt.cpp | 59 ++ .../source/model/OptimizePromptHandler.cpp | 267 +++++ .../model/OptimizePromptInitialResponse.cpp | 52 + .../source/model/OptimizePromptRequest.cpp | 43 + .../source/model/OptimizedPrompt.cpp | 59 ++ .../source/model/OptimizedPromptEvent.cpp | 59 ++ .../source/model/TextPrompt.cpp | 59 ++ .../include/aws/cloudfront/CloudFrontClient.h | 280 +++++ .../include/aws/cloudfront/CloudFrontErrors.h | 1 + .../cloudfront/CloudFrontServiceClientModel.h | 56 + .../aws/cloudfront/model/AnycastIpList.h | 161 +++ .../model/AnycastIpListCollection.h | 144 +++ .../cloudfront/model/AnycastIpListSummary.h | 144 +++ .../aws/cloudfront/model/CacheBehavior.h | 16 + .../CreateAnycastIpList2020_05_31Request.h | 84 ++ .../CreateAnycastIpList2020_05_31Result.h | 83 ++ .../model/CreateVpcOrigin2020_05_31Request.h | 68 ++ .../model/CreateVpcOrigin2020_05_31Result.h | 96 ++ .../cloudfront/model/DefaultCacheBehavior.h | 16 + .../DeleteAnycastIpList2020_05_31Request.h | 76 ++ .../model/DeleteVpcOrigin2020_05_31Request.h | 75 ++ .../model/DeleteVpcOrigin2020_05_31Result.h | 81 ++ .../aws/cloudfront/model/DistributionConfig.h | 18 + .../cloudfront/model/DistributionSummary.h | 18 + .../model/GetAnycastIpList2020_05_31Request.h | 56 + .../model/GetAnycastIpList2020_05_31Result.h | 82 ++ .../model/GetVpcOrigin2020_05_31Request.h | 56 + .../model/GetVpcOrigin2020_05_31Result.h | 81 ++ .../include/aws/cloudfront/model/GrpcConfig.h | 65 ++ .../ListAnycastIpLists2020_05_31Request.h | 79 ++ .../ListAnycastIpLists2020_05_31Result.h | 66 ++ ...utionsByAnycastIpListId2020_05_31Request.h | 100 ++ ...butionsByAnycastIpListId2020_05_31Result.h | 64 ++ ...tributionsByVpcOriginId2020_05_31Request.h | 96 ++ ...stributionsByVpcOriginId2020_05_31Result.h | 64 ++ .../model/ListVpcOrigins2020_05_31Request.h | 79 ++ .../model/ListVpcOrigins2020_05_31Result.h | 66 ++ .../aws/cloudfront/model/LoggingConfig.h | 19 +- .../include/aws/cloudfront/model/Origin.h | 16 + .../cloudfront/model/StreamingLoggingConfig.h | 2 +- .../model/UpdateVpcOrigin2020_05_31Request.h | 91 ++ .../model/UpdateVpcOrigin2020_05_31Result.h | 81 ++ .../include/aws/cloudfront/model/VpcOrigin.h | 142 +++ .../aws/cloudfront/model/VpcOriginConfig.h | 61 ++ .../model/VpcOriginEndpointConfig.h | 136 +++ .../aws/cloudfront/model/VpcOriginList.h | 139 +++ .../aws/cloudfront/model/VpcOriginSummary.h | 160 +++ .../source/CloudFrontClient.cpp | 365 +++++++ .../source/CloudFrontErrors.cpp | 6 + .../source/model/AnycastIpList.cpp | 155 +++ .../source/model/AnycastIpListCollection.cpp | 148 +++ .../source/model/AnycastIpListSummary.cpp | 132 +++ .../source/model/CacheBehavior.cpp | 15 +- .../CreateAnycastIpList2020_05_31Request.cpp | 56 + .../CreateAnycastIpList2020_05_31Result.cpp | 52 + .../CreateVpcOrigin2020_05_31Request.cpp | 46 + .../model/CreateVpcOrigin2020_05_31Result.cpp | 58 ++ .../source/model/DefaultCacheBehavior.cpp | 15 +- .../DeleteAnycastIpList2020_05_31Request.cpp | 42 + .../DeleteVpcOrigin2020_05_31Request.cpp | 42 + .../model/DeleteVpcOrigin2020_05_31Result.cpp | 52 + .../source/model/DistributionConfig.cpp | 15 +- .../source/model/DistributionSummary.cpp | 15 +- .../GetAnycastIpList2020_05_31Request.cpp | 27 + .../GetAnycastIpList2020_05_31Result.cpp | 52 + .../model/GetVpcOrigin2020_05_31Request.cpp | 27 + .../model/GetVpcOrigin2020_05_31Result.cpp | 52 + .../source/model/GrpcConfig.cpp | 67 ++ .../ListAnycastIpLists2020_05_31Request.cpp | 50 + .../ListAnycastIpLists2020_05_31Result.cpp | 46 + ...ionsByAnycastIpListId2020_05_31Request.cpp | 50 + ...tionsByAnycastIpListId2020_05_31Result.cpp | 46 + ...ibutionsByVpcOriginId2020_05_31Request.cpp | 50 + ...ributionsByVpcOriginId2020_05_31Result.cpp | 46 + .../model/ListVpcOrigins2020_05_31Request.cpp | 49 + .../model/ListVpcOrigins2020_05_31Result.cpp | 46 + .../source/model/Origin.cpp | 13 + .../UpdateVpcOrigin2020_05_31Request.cpp | 54 + .../model/UpdateVpcOrigin2020_05_31Result.cpp | 52 + .../source/model/VpcOrigin.cpp | 129 +++ .../source/model/VpcOriginConfig.cpp | 64 ++ .../source/model/VpcOriginEndpointConfig.cpp | 136 +++ .../source/model/VpcOriginList.cpp | 148 +++ .../source/model/VpcOriginSummary.cpp | 142 +++ .../ComputeOptimizerClient.h | 63 ++ .../ComputeOptimizerServiceClientModel.h | 11 + .../aws/compute-optimizer/model/Dimension.h | 31 + .../model/ExportIdleRecommendationsRequest.h | 163 +++ .../model/ExportIdleRecommendationsResult.h | 81 ++ .../model/ExportableIdleField.h | 49 + .../model/ExportableRDSDBField.h | 13 +- .../model/GetIdleRecommendationsRequest.h | 149 +++ .../model/GetIdleRecommendationsResult.h | 100 ++ .../model/IdleEstimatedMonthlySavings.h | 73 ++ .../aws/compute-optimizer/model/IdleFinding.h | 31 + .../compute-optimizer/model/IdleMetricName.h | 38 + .../model/IdleRecommendation.h | 245 +++++ .../model/IdleRecommendationError.h | 112 ++ .../model/IdleRecommendationFilter.h | 93 ++ .../model/IdleRecommendationFilterName.h | 31 + .../model/IdleRecommendationResourceType.h | 34 + .../model/IdleSavingsOpportunity.h | 75 ++ .../IdleSavingsOpportunityAfterDiscounts.h | 78 ++ .../aws/compute-optimizer/model/IdleSummary.h | 73 ++ .../model/IdleUtilizationMetric.h | 101 ++ .../aws/compute-optimizer/model/Order.h | 31 + .../aws/compute-optimizer/model/OrderBy.h | 75 ++ .../model/RDSCurrentInstancePerformanceRisk.h | 33 + .../compute-optimizer/model/RDSDBMetricName.h | 10 +- .../model/RDSDBRecommendation.h | 46 + .../model/RDSInstanceFindingReasonCode.h | 7 +- .../model/RecommendationSummary.h | 44 + .../compute-optimizer/model/ResourceType.h | 3 +- .../model/VolumeConfiguration.h | 10 +- .../source/ComputeOptimizerClient.cpp | 54 + .../source/model/Dimension.cpp | 72 ++ .../ExportIdleRecommendationsRequest.cpp | 94 ++ .../model/ExportIdleRecommendationsResult.cpp | 54 + .../source/model/ExportableIdleField.cpp | 198 ++++ .../source/model/ExportableRDSDBField.cpp | 77 ++ .../model/GetIdleRecommendationsRequest.cpp | 94 ++ .../model/GetIdleRecommendationsResult.cpp | 66 ++ .../model/IdleEstimatedMonthlySavings.cpp | 74 ++ .../source/model/IdleFinding.cpp | 72 ++ .../source/model/IdleMetricName.cpp | 121 +++ .../source/model/IdleRecommendation.cpp | 229 +++++ .../source/model/IdleRecommendationError.cpp | 101 ++ .../source/model/IdleRecommendationFilter.cpp | 81 ++ .../model/IdleRecommendationFilterName.cpp | 72 ++ .../model/IdleRecommendationResourceType.cpp | 93 ++ .../source/model/IdleSavingsOpportunity.cpp | 74 ++ .../IdleSavingsOpportunityAfterDiscounts.cpp | 74 ++ .../source/model/IdleSummary.cpp | 74 ++ .../source/model/IdleUtilizationMetric.cpp | 88 ++ .../source/model/Order.cpp | 72 ++ .../source/model/OrderBy.cpp | 73 ++ .../RDSCurrentInstancePerformanceRisk.cpp | 86 ++ .../source/model/RDSDBMetricName.cpp | 56 + .../source/model/RDSDBRecommendation.cpp | 43 + .../model/RDSInstanceFindingReasonCode.cpp | 35 + .../source/model/RecommendationSummary.cpp | 50 + .../source/model/ResourceType.cpp | 7 + .../model/EnabledBaselineDetails.h | 20 + .../model/EnabledBaselineFilter.h | 19 + .../model/EnabledBaselineSummary.h | 18 + .../model/ListEnabledBaselinesRequest.h | 14 + .../source/model/EnabledBaselineDetails.cpp | 14 + .../source/model/EnabledBaselineFilter.cpp | 22 + .../source/model/EnabledBaselineSummary.cpp | 14 + .../model/ListEnabledBaselinesRequest.cpp | 8 + .../cost-optimization-hub/model/ActionType.h | 3 +- .../source/model/ActionType.cpp | 7 + .../include/aws/datazone/DataZoneClient.h | 160 +++ .../aws/datazone/DataZoneServiceClientModel.h | 25 + .../model/AcceptSubscriptionRequestResult.h | 33 +- .../aws/datazone/model/AssetTypesForRule.h | 79 ++ .../aws/datazone/model/CreateRuleRequest.h | 173 ++++ .../aws/datazone/model/CreateRuleResult.h | 210 ++++ .../model/CreateSubscriptionRequestRequest.h | 18 + .../model/CreateSubscriptionRequestResult.h | 33 +- .../aws/datazone/model/DeleteRuleRequest.h | 73 ++ .../aws/datazone/model/DeleteRuleResult.h | 52 + .../aws/datazone/model/DomainUnitTarget.h | 74 ++ .../aws/datazone/model/GetRuleRequest.h | 97 ++ .../aws/datazone/model/GetRuleResult.h | 253 +++++ .../GetSubscriptionRequestDetailsResult.h | 33 +- .../aws/datazone/model/ListRulesRequest.h | 229 +++++ .../aws/datazone/model/ListRulesResult.h | 89 ++ .../model/MetadataFormEnforcementDetail.h | 62 ++ .../datazone/model/MetadataFormReference.h | 78 ++ .../aws/datazone/model/MetadataFormSummary.h | 95 ++ .../aws/datazone/model/ProjectsForRule.h | 80 ++ .../model/RejectSubscriptionRequestResult.h | 33 +- .../include/aws/datazone/model/RuleAction.h | 30 + .../include/aws/datazone/model/RuleDetail.h | 59 ++ .../include/aws/datazone/model/RuleScope.h | 88 ++ .../datazone/model/RuleScopeSelectionMode.h | 31 + .../include/aws/datazone/model/RuleSummary.h | 208 ++++ .../include/aws/datazone/model/RuleTarget.h | 59 ++ .../aws/datazone/model/RuleTargetType.h | 30 + .../include/aws/datazone/model/RuleType.h | 30 + .../model/SubscriptionRequestSummary.h | 37 +- .../aws/datazone/model/UpdateRuleRequest.h | 152 +++ .../aws/datazone/model/UpdateRuleResult.h | 239 +++++ .../model/UpdateSubscriptionRequestResult.h | 33 +- .../source/DataZoneClient.cpp | 205 ++++ .../model/AcceptSubscriptionRequestResult.cpp | 15 + .../source/model/AssetTypesForRule.cpp | 81 ++ .../source/model/CreateRuleRequest.cpp | 79 ++ .../source/model/CreateRuleResult.cpp | 112 ++ .../CreateSubscriptionRequestRequest.cpp | 12 + .../model/CreateSubscriptionRequestResult.cpp | 15 + .../source/model/DeleteRuleRequest.cpp | 28 + .../source/model/DeleteRuleResult.cpp | 42 + .../source/model/DomainUnitTarget.cpp | 74 ++ .../source/model/GetRuleRequest.cpp | 43 + .../source/model/GetRuleResult.cpp | 130 +++ .../GetSubscriptionRequestDetailsResult.cpp | 15 + .../source/model/ListRulesRequest.cpp | 112 ++ .../source/model/ListRulesResult.cpp | 57 ++ .../model/MetadataFormEnforcementDetail.cpp | 67 ++ .../source/model/MetadataFormReference.cpp | 73 ++ .../source/model/MetadataFormSummary.cpp | 87 ++ .../source/model/ProjectsForRule.cpp | 81 ++ .../model/RejectSubscriptionRequestResult.cpp | 15 + .../source/model/RuleAction.cpp | 65 ++ .../source/model/RuleDetail.cpp | 59 ++ .../source/model/RuleScope.cpp | 88 ++ .../source/model/RuleScopeSelectionMode.cpp | 72 ++ .../source/model/RuleSummary.cpp | 184 ++++ .../source/model/RuleTarget.cpp | 59 ++ .../source/model/RuleTargetType.cpp | 65 ++ .../source/model/RuleType.cpp | 65 ++ .../model/SubscriptionRequestSummary.cpp | 36 + .../source/model/UpdateRuleRequest.cpp | 66 ++ .../source/model/UpdateRuleResult.cpp | 123 +++ .../model/UpdateSubscriptionRequestResult.cpp | 15 + .../model/CreateApplicationRequest.h | 21 +- .../discovery/model/CreateApplicationResult.h | 2 +- .../aws/discovery/model/FileClassification.h | 33 + .../aws/discovery/model/ImportStatus.h | 1 + .../include/aws/discovery/model/ImportTask.h | 16 + .../discovery/model/ImportTaskFilterName.h | 3 +- .../model/UpdateApplicationRequest.h | 17 + .../source/model/CreateApplicationRequest.cpp | 9 +- .../source/model/FileClassification.cpp | 86 ++ .../source/model/ImportStatus.cpp | 7 + .../source/model/ImportTask.cpp | 14 + .../source/model/ImportTaskFilterName.cpp | 7 + .../source/model/UpdateApplicationRequest.cpp | 9 +- .../include/aws/ec2/EC2Client.h | 5 +- .../ec2/model/BaselinePerformanceFactors.h | 69 ++ .../model/BaselinePerformanceFactorsRequest.h | 69 ++ .../ec2/model/CapacityReservationPreference.h | 1 + .../model/CapacityReservationSpecification.h | 35 +- .../include/aws/ec2/model/CpuManufacturer.h | 3 +- .../aws/ec2/model/CpuPerformanceFactor.h | 69 ++ .../ec2/model/CpuPerformanceFactorRequest.h | 69 ++ .../aws/ec2/model/InstanceRequirements.h | 23 + .../ec2/model/InstanceRequirementsRequest.h | 23 + .../ec2/model/PerformanceFactorReference.h | 90 ++ .../model/PerformanceFactorReferenceRequest.h | 90 ++ .../aws/ec2/model/RunInstancesRequest.h | 3 +- .../model/BaselinePerformanceFactors.cpp | 74 ++ .../BaselinePerformanceFactorsRequest.cpp | 74 ++ .../model/CapacityReservationPreference.cpp | 9 +- .../source/model/CpuManufacturer.cpp | 7 + .../source/model/CpuPerformanceFactor.cpp | 88 ++ .../model/CpuPerformanceFactorRequest.cpp | 88 ++ .../source/model/InstanceRequirements.cpp | 22 +- .../model/InstanceRequirementsRequest.cpp | 22 +- .../model/PerformanceFactorReference.cpp | 70 ++ .../PerformanceFactorReferenceRequest.cpp | 70 ++ .../include/aws/ecs/ECSClient.h | 2 +- .../ecs/model/AvailabilityZoneRebalancing.h | 31 + .../aws/ecs/model/CreateServiceRequest.h | 20 + .../aws/ecs/model/DeploymentController.h | 30 +- .../include/aws/ecs/model/Service.h | 20 + .../aws/ecs/model/UpdateServiceRequest.h | 20 + .../model/AvailabilityZoneRebalancing.cpp | 72 ++ .../source/model/CreateServiceRequest.cpp | 7 + .../aws-cpp-sdk-ecs/source/model/Service.cpp | 16 +- .../source/model/UpdateServiceRequest.cpp | 7 + .../ElasticLoadBalancingv2Client.h | 54 + .../ElasticLoadBalancingv2Errors.h | 5 + ...ElasticLoadBalancingv2ServiceClientModel.h | 10 + .../model/CapacityReservationStateEnum.h | 33 + .../model/CapacityReservationStatus.h | 79 ++ .../DescribeCapacityReservationRequest.h | 60 ++ .../model/DescribeCapacityReservationResult.h | 106 ++ .../model/MinimumLoadBalancerCapacity.h | 57 ++ .../model/ModifyCapacityReservationRequest.h | 89 ++ .../model/ModifyCapacityReservationResult.h | 106 ++ .../model/ZonalCapacityReservationState.h | 93 ++ .../source/ElasticLoadBalancingv2Client.cpp | 54 + .../source/ElasticLoadBalancingv2Errors.cpp | 25 + .../model/CapacityReservationStateEnum.cpp | 86 ++ .../model/CapacityReservationStatus.cpp | 87 ++ .../DescribeCapacityReservationRequest.cpp | 35 + .../DescribeCapacityReservationResult.cpp | 77 ++ .../model/MinimumLoadBalancerCapacity.cpp | 71 ++ .../ModifyCapacityReservationRequest.cpp | 48 + .../model/ModifyCapacityReservationResult.cpp | 77 ++ .../model/ZonalCapacityReservationState.cpp | 107 ++ .../include/aws/lambda/model/Runtime.h | 3 +- .../source/model/Runtime.cpp | 7 + .../mediaconvert/model/CreateQueueRequest.h | 17 + .../aws/mediaconvert/model/ListQueuesResult.h | 25 + .../include/aws/mediaconvert/model/Queue.h | 34 + .../aws/mediaconvert/model/ServiceOverride.h | 115 +++ .../mediaconvert/model/UpdateQueueRequest.h | 17 + .../source/model/CreateQueueRequest.cpp | 8 + .../source/model/ListQueuesResult.cpp | 17 +- .../source/model/Queue.cpp | 37 + .../source/model/ServiceOverride.cpp | 101 ++ .../source/model/UpdateQueueRequest.cpp | 8 + .../model/CreateChannelRequest.h | 36 + .../model/CreateChannelResult.h | 32 + .../model/CreateHlsManifestConfiguration.h | 5 +- ...CreateLowLatencyHlsManifestConfiguration.h | 5 +- .../mediapackagev2/model/GetChannelResult.h | 32 + .../model/GetHlsManifestConfiguration.h | 5 +- .../GetLowLatencyHlsManifestConfiguration.h | 5 +- .../model/InputSwitchConfiguration.h | 59 ++ .../model/OutputHeaderConfiguration.h | 58 ++ .../model/UpdateChannelRequest.h | 36 + .../model/UpdateChannelResult.h | 32 + .../model/ValidationExceptionType.h | 4 +- .../source/model/CreateChannelRequest.cpp | 14 + .../source/model/CreateChannelResult.cpp | 12 + .../source/model/GetChannelResult.cpp | 12 + .../source/model/InputSwitchConfiguration.cpp | 60 ++ .../model/OutputHeaderConfiguration.cpp | 60 ++ .../source/model/UpdateChannelRequest.cpp | 16 +- .../source/model/UpdateChannelResult.cpp | 12 + .../source/model/ValidationExceptionType.cpp | 14 + .../include/aws/omics/OmicsClient.h | 174 +++- .../aws/omics/OmicsServiceClientModel.h | 24 + .../include/aws/omics/model/CacheBehavior.h | 31 + .../aws/omics/model/CreateRunCacheRequest.h | 180 ++++ .../aws/omics/model/CreateRunCacheResult.h | 117 +++ .../aws/omics/model/DeleteRunCacheRequest.h | 56 + .../aws/omics/model/GetRunCacheRequest.h | 56 + .../aws/omics/model/GetRunCacheResult.h | 205 ++++ .../include/aws/omics/model/GetRunResult.h | 44 + .../aws/omics/model/GetRunTaskResult.h | 27 + .../aws/omics/model/ListRunCachesRequest.h | 76 ++ .../aws/omics/model/ListRunCachesResult.h | 85 ++ .../aws/omics/model/RunCacheListItem.h | 160 +++ .../include/aws/omics/model/RunCacheStatus.h | 32 + .../include/aws/omics/model/StartRunRequest.h | 50 +- .../include/aws/omics/model/StartRunResult.h | 2 +- .../include/aws/omics/model/TaskListItem.h | 31 + .../aws/omics/model/UpdateRunCacheRequest.h | 106 ++ .../aws-cpp-sdk-omics/source/OmicsClient.cpp | 168 +++ .../source/model/CacheBehavior.cpp | 72 ++ .../source/model/CreateRunCacheRequest.cpp | 83 ++ .../source/model/CreateRunCacheResult.cpp | 71 ++ .../source/model/DeleteRunCacheRequest.cpp | 27 + .../source/model/GetRunCacheRequest.cpp | 27 + .../source/model/GetRunCacheResult.cpp | 108 ++ .../source/model/GetRunResult.cpp | 19 + .../source/model/GetRunTaskResult.cpp | 13 + .../source/model/ListRunCachesRequest.cpp | 50 + .../source/model/ListRunCachesResult.cpp | 57 ++ .../source/model/RunCacheListItem.cpp | 142 +++ .../source/model/RunCacheStatus.cpp | 79 ++ .../source/model/StartRunRequest.cpp | 14 + .../source/model/TaskListItem.cpp | 29 + .../source/model/UpdateRunCacheRequest.cpp | 50 + .../include/aws/rbin/RecycleBinClient.h | 26 +- .../aws/rbin/model/CreateRuleRequest.h | 44 +- .../include/aws/rbin/model/CreateRuleResult.h | 43 +- .../include/aws/rbin/model/GetRuleResult.h | 43 +- .../include/aws/rbin/model/ListRulesRequest.h | 23 +- .../include/aws/rbin/model/LockRuleResult.h | 43 +- .../include/aws/rbin/model/ResourceTag.h | 5 +- .../include/aws/rbin/model/RuleSummary.h | 22 +- .../include/aws/rbin/model/UnlockRuleResult.h | 43 +- .../aws/rbin/model/UpdateRuleRequest.h | 44 +- .../include/aws/rbin/model/UpdateRuleResult.h | 43 +- .../source/model/CreateRuleRequest.cpp | 14 +- .../source/model/CreateRuleResult.cpp | 9 + .../source/model/GetRuleResult.cpp | 9 + .../source/model/ListRulesRequest.cpp | 14 +- .../source/model/LockRuleResult.cpp | 9 + .../source/model/UnlockRuleResult.cpp | 9 + .../source/model/UpdateRuleRequest.cpp | 14 +- .../source/model/UpdateRuleResult.cpp | 9 + .../include/aws/rds/RDSClient.h | 17 +- .../model/CreateBlueGreenDeploymentRequest.h | 68 ++ .../CreateBlueGreenDeploymentRequest.cpp | 29 +- .../timestream-query/TimestreamQueryClient.h | 14 +- ...AccountSettingsNotificationConfiguration.h | 78 ++ .../aws/timestream-query/model/ComputeMode.h | 31 + .../model/DescribeAccountSettingsResult.h | 24 +- .../aws/timestream-query/model/LastUpdate.h | 95 ++ .../timestream-query/model/LastUpdateStatus.h | 32 + .../model/NotificationConfiguration.h | 4 +- .../model/ProvisionedCapacityRequest.h | 75 ++ .../model/ProvisionedCapacityResponse.h | 93 ++ .../model/QueryComputeRequest.h | 79 ++ .../model/QueryComputeResponse.h | 79 ++ .../model/UpdateAccountSettingsRequest.h | 31 +- .../model/UpdateAccountSettingsResult.h | 14 + ...countSettingsNotificationConfiguration.cpp | 73 ++ .../source/model/ComputeMode.cpp | 72 ++ .../model/DescribeAccountSettingsResult.cpp | 6 + .../source/model/LastUpdate.cpp | 88 ++ .../source/model/LastUpdateStatus.cpp | 79 ++ .../model/ProvisionedCapacityRequest.cpp | 74 ++ .../model/ProvisionedCapacityResponse.cpp | 88 ++ .../source/model/QueryComputeRequest.cpp | 73 ++ .../source/model/QueryComputeResponse.cpp | 73 ++ .../model/UpdateAccountSettingsRequest.cpp | 9 +- .../model/UpdateAccountSettingsResult.cpp | 6 + .../aws/workspaces-web/WorkSpacesWebClient.h | 178 ++++ .../WorkSpacesWebServiceClientModel.h | 37 + .../AssociateDataProtectionSettingsRequest.h | 79 ++ .../AssociateDataProtectionSettingsResult.h | 82 ++ .../CreateDataProtectionSettingsRequest.h | 173 ++++ .../CreateDataProtectionSettingsResult.h | 67 ++ .../aws/workspaces-web/model/CustomPattern.h | 120 +++ .../model/DataProtectionSettings.h | 189 ++++ .../model/DataProtectionSettingsSummary.h | 111 ++ .../DeleteDataProtectionSettingsRequest.h | 56 + .../DeleteDataProtectionSettingsResult.h | 52 + ...isassociateDataProtectionSettingsRequest.h | 56 + ...DisassociateDataProtectionSettingsResult.h | 52 + .../model/GetDataProtectionSettingsRequest.h | 56 + .../model/GetDataProtectionSettingsResult.h | 66 ++ .../model/InlineRedactionConfiguration.h | 126 +++ .../model/InlineRedactionPattern.h | 157 +++ .../model/ListDataProtectionSettingsRequest.h | 76 ++ .../model/ListDataProtectionSettingsResult.h | 85 ++ .../include/aws/workspaces-web/model/Portal.h | 17 + .../aws/workspaces-web/model/PortalSummary.h | 17 + .../model/RedactionPlaceHolder.h | 80 ++ .../model/RedactionPlaceHolderType.h | 30 + .../UpdateDataProtectionSettingsRequest.h | 130 +++ .../UpdateDataProtectionSettingsResult.h | 66 ++ .../source/WorkSpacesWebClient.cpp | 233 +++++ ...AssociateDataProtectionSettingsRequest.cpp | 42 + .../AssociateDataProtectionSettingsResult.cpp | 54 + .../CreateDataProtectionSettingsRequest.cpp | 88 ++ .../CreateDataProtectionSettingsResult.cpp | 48 + .../source/model/CustomPattern.cpp | 101 ++ .../source/model/DataProtectionSettings.cpp | 172 ++++ .../model/DataProtectionSettingsSummary.cpp | 100 ++ .../DeleteDataProtectionSettingsRequest.cpp | 27 + .../DeleteDataProtectionSettingsResult.cpp | 42 + ...associateDataProtectionSettingsRequest.cpp | 27 + ...sassociateDataProtectionSettingsResult.cpp | 42 + .../GetDataProtectionSettingsRequest.cpp | 27 + .../model/GetDataProtectionSettingsResult.cpp | 48 + .../model/InlineRedactionConfiguration.cpp | 126 +++ .../source/model/InlineRedactionPattern.cpp | 146 +++ .../ListDataProtectionSettingsRequest.cpp | 50 + .../ListDataProtectionSettingsResult.cpp | 57 ++ .../source/model/Portal.cpp | 14 + .../source/model/PortalSummary.cpp | 14 + .../source/model/RedactionPlaceHolder.cpp | 73 ++ .../source/model/RedactionPlaceHolderType.cpp | 65 ++ .../UpdateDataProtectionSettingsRequest.cpp | 58 ++ .../UpdateDataProtectionSettingsResult.cpp | 48 + .../include/aws/workspaces/WorkSpacesClient.h | 10 +- .../AcceptAccountLinkInvitationRequest.h | 2 +- .../CreateAccountLinkInvitationRequest.h | 2 +- .../DeleteAccountLinkInvitationRequest.h | 2 +- .../model/ImportWorkspaceImageRequest.h | 17 +- .../workspaces/model/OperatingSystemName.h | 3 +- .../workspaces/model/WorkspaceProperties.h | 7 +- .../source/model/OperatingSystemName.cpp | 7 + .../include/aws/core/VersionConfig.h | 4 +- .../autoscaling-2011-01-01.normal.json | 100 ++ ...drock-agent-runtime-2023-07-26.normal.json | 159 ++- .../cloudfront-2020-05-31.normal.json | 962 +++++++++++++++++- .../compute-optimizer-2019-11-01.normal.json | 474 ++++++++- .../controltower-2018-05-10.normal.json | 26 + ...st-optimization-hub-2022-07-26.normal.json | 3 +- .../datazone-2018-05-10.normal.json | 860 +++++++++++++++- .../discovery-2015-11-01.normal.json | 43 +- .../ec2-2016-11-15.normal.json | 99 +- .../ecs-2014-11-13.normal.json | 25 +- ...sticloadbalancingv2-2015-12-01.normal.json | 231 ++++- .../lambda-2015-03-31.normal.json | 3 +- .../mediaconvert-2017-08-29.normal.json | 62 ++ .../mediapackagev2-2022-12-25.normal.json | 72 +- .../omics-2022-11-28.normal.json | 461 ++++++++- .../rbin-2021-06-15.normal.json | 76 +- .../rds-2014-10-31.normal.json | 19 +- .../timestream-query-2018-11-01.normal.json | 139 ++- .../workspaces-2015-04-08.normal.json | 19 +- .../workspaces-web-2020-07-08.normal.json | 582 +++++++++++ 509 files changed, 33925 insertions(+), 360 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/BaselinePerformanceFactorsRequest.h create mode 100644 generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationPreference.h create mode 100644 generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationSpecification.h create mode 100644 generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationTarget.h create mode 100644 generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CpuPerformanceFactorRequest.h create mode 100644 generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/PerformanceFactorReferenceRequest.h create mode 100644 generated/src/aws-cpp-sdk-autoscaling/source/model/BaselinePerformanceFactorsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationPreference.cpp create mode 100644 generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationSpecification.cpp create mode 100644 generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationTarget.cpp create mode 100644 generated/src/aws-cpp-sdk-autoscaling/source/model/CpuPerformanceFactorRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-autoscaling/source/model/PerformanceFactorReferenceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AnalyzePromptEvent.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InputPrompt.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptHandler.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptInitialResponse.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptRequest.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPrompt.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptEvent.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptStream.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TextPrompt.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/AnalyzePromptEvent.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InputPrompt.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptHandler.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptInitialResponse.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizedPrompt.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizedPromptEvent.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/TextPrompt.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpList.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpListCollection.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpListSummary.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateAnycastIpList2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateAnycastIpList2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateVpcOrigin2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateVpcOrigin2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteAnycastIpList2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteVpcOrigin2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteVpcOrigin2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetAnycastIpList2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetAnycastIpList2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetVpcOrigin2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetVpcOrigin2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GrpcConfig.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListAnycastIpLists2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListAnycastIpLists2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByAnycastIpListId2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByAnycastIpListId2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByVpcOriginId2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByVpcOriginId2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListVpcOrigins2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListVpcOrigins2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/UpdateVpcOrigin2020_05_31Request.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/UpdateVpcOrigin2020_05_31Result.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOrigin.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginConfig.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginEndpointConfig.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginList.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginSummary.h create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpList.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpListCollection.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpListSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/CreateAnycastIpList2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/CreateAnycastIpList2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/CreateVpcOrigin2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/CreateVpcOrigin2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteAnycastIpList2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteVpcOrigin2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteVpcOrigin2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/GetAnycastIpList2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/GetAnycastIpList2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/GetVpcOrigin2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/GetVpcOrigin2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/GrpcConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/ListAnycastIpLists2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/ListAnycastIpLists2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByAnycastIpListId2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByAnycastIpListId2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByVpcOriginId2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByVpcOriginId2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/ListVpcOrigins2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/ListVpcOrigins2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/UpdateVpcOrigin2020_05_31Request.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/UpdateVpcOrigin2020_05_31Result.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOrigin.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginEndpointConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginList.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/Dimension.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportIdleRecommendationsRequest.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportIdleRecommendationsResult.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportableIdleField.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/GetIdleRecommendationsRequest.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/GetIdleRecommendationsResult.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleEstimatedMonthlySavings.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleFinding.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleMetricName.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendation.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationError.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationFilter.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationFilterName.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationResourceType.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSavingsOpportunity.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSavingsOpportunityAfterDiscounts.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSummary.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleUtilizationMetric.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/Order.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/OrderBy.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSCurrentInstancePerformanceRisk.h create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/Dimension.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportIdleRecommendationsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportIdleRecommendationsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableIdleField.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/GetIdleRecommendationsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/GetIdleRecommendationsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleEstimatedMonthlySavings.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleFinding.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleMetricName.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendation.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationError.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationFilter.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationFilterName.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationResourceType.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSavingsOpportunity.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSavingsOpportunityAfterDiscounts.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleUtilizationMetric.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/Order.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/OrderBy.cpp create mode 100644 generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSCurrentInstancePerformanceRisk.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/AssetTypesForRule.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateRuleRequest.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateRuleResult.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DeleteRuleRequest.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DeleteRuleResult.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DomainUnitTarget.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetRuleRequest.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetRuleResult.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ListRulesRequest.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ListRulesResult.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormEnforcementDetail.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormReference.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormSummary.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ProjectsForRule.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleAction.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleDetail.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleScope.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleScopeSelectionMode.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleSummary.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleTarget.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleTargetType.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleType.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateRuleRequest.h create mode 100644 generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateRuleResult.h create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/AssetTypesForRule.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/CreateRuleRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/CreateRuleResult.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/DeleteRuleRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/DeleteRuleResult.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/DomainUnitTarget.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/GetRuleRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/GetRuleResult.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/ListRulesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/ListRulesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormEnforcementDetail.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormReference.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/ProjectsForRule.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/RuleAction.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/RuleDetail.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/RuleScope.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/RuleScopeSelectionMode.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/RuleSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/RuleTarget.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/RuleTargetType.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/RuleType.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/UpdateRuleRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-datazone/source/model/UpdateRuleResult.cpp create mode 100644 generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/FileClassification.h create mode 100644 generated/src/aws-cpp-sdk-discovery/source/model/FileClassification.cpp create mode 100644 generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/BaselinePerformanceFactors.h create mode 100644 generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/BaselinePerformanceFactorsRequest.h create mode 100644 generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuPerformanceFactor.h create mode 100644 generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuPerformanceFactorRequest.h create mode 100644 generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/PerformanceFactorReference.h create mode 100644 generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/PerformanceFactorReferenceRequest.h create mode 100644 generated/src/aws-cpp-sdk-ec2/source/model/BaselinePerformanceFactors.cpp create mode 100644 generated/src/aws-cpp-sdk-ec2/source/model/BaselinePerformanceFactorsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-ec2/source/model/CpuPerformanceFactor.cpp create mode 100644 generated/src/aws-cpp-sdk-ec2/source/model/CpuPerformanceFactorRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-ec2/source/model/PerformanceFactorReference.cpp create mode 100644 generated/src/aws-cpp-sdk-ec2/source/model/PerformanceFactorReferenceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/AvailabilityZoneRebalancing.h create mode 100644 generated/src/aws-cpp-sdk-ecs/source/model/AvailabilityZoneRebalancing.cpp create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CapacityReservationStateEnum.h create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CapacityReservationStatus.h create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/DescribeCapacityReservationRequest.h create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/DescribeCapacityReservationResult.h create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/MinimumLoadBalancerCapacity.h create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ModifyCapacityReservationRequest.h create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ModifyCapacityReservationResult.h create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ZonalCapacityReservationState.h create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/CapacityReservationStateEnum.cpp create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/CapacityReservationStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/DescribeCapacityReservationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/DescribeCapacityReservationResult.cpp create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/MinimumLoadBalancerCapacity.cpp create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ModifyCapacityReservationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ModifyCapacityReservationResult.cpp create mode 100644 generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ZonalCapacityReservationState.cpp create mode 100644 generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/ServiceOverride.h create mode 100644 generated/src/aws-cpp-sdk-mediaconvert/source/model/ServiceOverride.cpp create mode 100644 generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/InputSwitchConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/OutputHeaderConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-mediapackagev2/source/model/InputSwitchConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-mediapackagev2/source/model/OutputHeaderConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CacheBehavior.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CreateRunCacheRequest.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CreateRunCacheResult.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/DeleteRunCacheRequest.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunCacheRequest.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunCacheResult.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/ListRunCachesRequest.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/ListRunCachesResult.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/RunCacheListItem.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/RunCacheStatus.h create mode 100644 generated/src/aws-cpp-sdk-omics/include/aws/omics/model/UpdateRunCacheRequest.h create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/CacheBehavior.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/CreateRunCacheRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/CreateRunCacheResult.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/DeleteRunCacheRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/GetRunCacheRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/GetRunCacheResult.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/ListRunCachesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/ListRunCachesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/RunCacheListItem.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/RunCacheStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-omics/source/model/UpdateRunCacheRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/AccountSettingsNotificationConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ComputeMode.h create mode 100644 generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/LastUpdate.h create mode 100644 generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/LastUpdateStatus.h create mode 100644 generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ProvisionedCapacityRequest.h create mode 100644 generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ProvisionedCapacityResponse.h create mode 100644 generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/QueryComputeRequest.h create mode 100644 generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/QueryComputeResponse.h create mode 100644 generated/src/aws-cpp-sdk-timestream-query/source/model/AccountSettingsNotificationConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-timestream-query/source/model/ComputeMode.cpp create mode 100644 generated/src/aws-cpp-sdk-timestream-query/source/model/LastUpdate.cpp create mode 100644 generated/src/aws-cpp-sdk-timestream-query/source/model/LastUpdateStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-timestream-query/source/model/ProvisionedCapacityRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-timestream-query/source/model/ProvisionedCapacityResponse.cpp create mode 100644 generated/src/aws-cpp-sdk-timestream-query/source/model/QueryComputeRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-timestream-query/source/model/QueryComputeResponse.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/AssociateDataProtectionSettingsRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/AssociateDataProtectionSettingsResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreateDataProtectionSettingsRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreateDataProtectionSettingsResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CustomPattern.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DataProtectionSettings.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DataProtectionSettingsSummary.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DeleteDataProtectionSettingsRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DeleteDataProtectionSettingsResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DisassociateDataProtectionSettingsRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DisassociateDataProtectionSettingsResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetDataProtectionSettingsRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetDataProtectionSettingsResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/InlineRedactionConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/InlineRedactionPattern.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListDataProtectionSettingsRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListDataProtectionSettingsResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/RedactionPlaceHolder.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/RedactionPlaceHolderType.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdateDataProtectionSettingsRequest.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdateDataProtectionSettingsResult.h create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/AssociateDataProtectionSettingsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/AssociateDataProtectionSettingsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/CreateDataProtectionSettingsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/CreateDataProtectionSettingsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/CustomPattern.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/DataProtectionSettings.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/DataProtectionSettingsSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/DeleteDataProtectionSettingsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/DeleteDataProtectionSettingsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/DisassociateDataProtectionSettingsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/DisassociateDataProtectionSettingsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/GetDataProtectionSettingsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/GetDataProtectionSettingsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/InlineRedactionConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/InlineRedactionPattern.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/ListDataProtectionSettingsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/ListDataProtectionSettingsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/RedactionPlaceHolder.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/RedactionPlaceHolderType.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/UpdateDataProtectionSettingsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-workspaces-web/source/model/UpdateDataProtectionSettingsResult.cpp diff --git a/VERSION b/VERSION index 8b6be517197..f49eecfceab 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.451 \ No newline at end of file +1.11.452 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/AutoScalingGroup.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/AutoScalingGroup.h index 3fc17f23037..9498d5f5fef 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/AutoScalingGroup.h +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/AutoScalingGroup.h @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -525,6 +526,18 @@ namespace Model inline AutoScalingGroup& WithAvailabilityZoneImpairmentPolicy(const AvailabilityZoneImpairmentPolicy& value) { SetAvailabilityZoneImpairmentPolicy(value); return *this;} inline AutoScalingGroup& WithAvailabilityZoneImpairmentPolicy(AvailabilityZoneImpairmentPolicy&& value) { SetAvailabilityZoneImpairmentPolicy(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

The capacity reservation specification.

+ */ + inline const CapacityReservationSpecification& GetCapacityReservationSpecification() const{ return m_capacityReservationSpecification; } + inline bool CapacityReservationSpecificationHasBeenSet() const { return m_capacityReservationSpecificationHasBeenSet; } + inline void SetCapacityReservationSpecification(const CapacityReservationSpecification& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = value; } + inline void SetCapacityReservationSpecification(CapacityReservationSpecification&& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = std::move(value); } + inline AutoScalingGroup& WithCapacityReservationSpecification(const CapacityReservationSpecification& value) { SetCapacityReservationSpecification(value); return *this;} + inline AutoScalingGroup& WithCapacityReservationSpecification(CapacityReservationSpecification&& value) { SetCapacityReservationSpecification(std::move(value)); return *this;} + ///@} private: Aws::String m_autoScalingGroupName; @@ -637,6 +650,9 @@ namespace Model AvailabilityZoneImpairmentPolicy m_availabilityZoneImpairmentPolicy; bool m_availabilityZoneImpairmentPolicyHasBeenSet = false; + + CapacityReservationSpecification m_capacityReservationSpecification; + bool m_capacityReservationSpecificationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/BaselinePerformanceFactorsRequest.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/BaselinePerformanceFactorsRequest.h new file mode 100644 index 00000000000..0c4d68e496a --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/BaselinePerformanceFactorsRequest.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace AutoScaling +{ +namespace Model +{ + + /** + *

The baseline performance to consider, using an instance family as a baseline + * reference. The instance family establishes the lowest acceptable level of + * performance. Auto Scaling uses this baseline to guide instance type selection, + * but there is no guarantee that the selected instance types will always exceed + * the baseline for every application.

Currently, this parameter only + * supports CPU performance as a baseline performance factor. For example, + * specifying c6i uses the CPU performance of the c6i + * family as the baseline reference.

See Also:

AWS + * API Reference

+ */ + class BaselinePerformanceFactorsRequest + { + public: + AWS_AUTOSCALING_API BaselinePerformanceFactorsRequest(); + AWS_AUTOSCALING_API BaselinePerformanceFactorsRequest(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_AUTOSCALING_API BaselinePerformanceFactorsRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

The CPU performance to consider, using an instance family as the baseline + * reference.

+ */ + inline const CpuPerformanceFactorRequest& GetCpu() const{ return m_cpu; } + inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; } + inline void SetCpu(const CpuPerformanceFactorRequest& value) { m_cpuHasBeenSet = true; m_cpu = value; } + inline void SetCpu(CpuPerformanceFactorRequest&& value) { m_cpuHasBeenSet = true; m_cpu = std::move(value); } + inline BaselinePerformanceFactorsRequest& WithCpu(const CpuPerformanceFactorRequest& value) { SetCpu(value); return *this;} + inline BaselinePerformanceFactorsRequest& WithCpu(CpuPerformanceFactorRequest&& value) { SetCpu(std::move(value)); return *this;} + ///@} + private: + + CpuPerformanceFactorRequest m_cpu; + bool m_cpuHasBeenSet = false; + }; + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationPreference.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationPreference.h new file mode 100644 index 00000000000..097696bfba4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationPreference.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 AutoScaling +{ +namespace Model +{ + enum class CapacityReservationPreference + { + NOT_SET, + capacity_reservations_only, + capacity_reservations_first, + none, + default_ + }; + +namespace CapacityReservationPreferenceMapper +{ +AWS_AUTOSCALING_API CapacityReservationPreference GetCapacityReservationPreferenceForName(const Aws::String& name); + +AWS_AUTOSCALING_API Aws::String GetNameForCapacityReservationPreference(CapacityReservationPreference value); +} // namespace CapacityReservationPreferenceMapper +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationSpecification.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationSpecification.h new file mode 100644 index 00000000000..c193116d739 --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationSpecification.h @@ -0,0 +1,92 @@ +/** + * 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 Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace AutoScaling +{ +namespace Model +{ + + /** + *

Describes the Capacity Reservation preference and targeting options. If you + * specify open or none for + * CapacityReservationPreference, do not specify a + * CapacityReservationTarget.

See Also:

AWS + * API Reference

+ */ + class CapacityReservationSpecification + { + public: + AWS_AUTOSCALING_API CapacityReservationSpecification(); + AWS_AUTOSCALING_API CapacityReservationSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_AUTOSCALING_API CapacityReservationSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

The capacity reservation preference. The following options are available: + *

  • capacity-reservations-only - Auto Scaling will + * only launch instances into a Capacity Reservation or Capacity Reservation + * resource group. If capacity isn't available, instances will fail to launch.

    + *
  • capacity-reservations-first - Auto Scaling will try + * to launch instances into a Capacity Reservation or Capacity Reservation resource + * group first. If capacity isn't available, instances will run in On-Demand + * capacity.

  • none - Auto Scaling will not launch + * instances into a Capacity Reservation. Instances will run in On-Demand capacity. + *

  • default - Auto Scaling uses the Capacity + * Reservation preference from your launch template or an open Capacity + * Reservation.

+ */ + inline const CapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; } + inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; } + inline void SetCapacityReservationPreference(const CapacityReservationPreference& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = value; } + inline void SetCapacityReservationPreference(CapacityReservationPreference&& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = std::move(value); } + inline CapacityReservationSpecification& WithCapacityReservationPreference(const CapacityReservationPreference& value) { SetCapacityReservationPreference(value); return *this;} + inline CapacityReservationSpecification& WithCapacityReservationPreference(CapacityReservationPreference&& value) { SetCapacityReservationPreference(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Describes a target Capacity Reservation or Capacity Reservation resource + * group.

+ */ + inline const CapacityReservationTarget& GetCapacityReservationTarget() const{ return m_capacityReservationTarget; } + inline bool CapacityReservationTargetHasBeenSet() const { return m_capacityReservationTargetHasBeenSet; } + inline void SetCapacityReservationTarget(const CapacityReservationTarget& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = value; } + inline void SetCapacityReservationTarget(CapacityReservationTarget&& value) { m_capacityReservationTargetHasBeenSet = true; m_capacityReservationTarget = std::move(value); } + inline CapacityReservationSpecification& WithCapacityReservationTarget(const CapacityReservationTarget& value) { SetCapacityReservationTarget(value); return *this;} + inline CapacityReservationSpecification& WithCapacityReservationTarget(CapacityReservationTarget&& value) { SetCapacityReservationTarget(std::move(value)); return *this;} + ///@} + private: + + CapacityReservationPreference m_capacityReservationPreference; + bool m_capacityReservationPreferenceHasBeenSet = false; + + CapacityReservationTarget m_capacityReservationTarget; + bool m_capacityReservationTargetHasBeenSet = false; + }; + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationTarget.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationTarget.h new file mode 100644 index 00000000000..a5402a3fb24 --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CapacityReservationTarget.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace AutoScaling +{ +namespace Model +{ + + /** + *

The target for the Capacity Reservation. Specify Capacity Reservations IDs + * or Capacity Reservation resource group ARNs.

See Also:

AWS + * API Reference

+ */ + class CapacityReservationTarget + { + public: + AWS_AUTOSCALING_API CapacityReservationTarget(); + AWS_AUTOSCALING_API CapacityReservationTarget(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_AUTOSCALING_API CapacityReservationTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

The Capacity Reservation IDs to launch instances into.

+ */ + inline const Aws::Vector& GetCapacityReservationIds() const{ return m_capacityReservationIds; } + inline bool CapacityReservationIdsHasBeenSet() const { return m_capacityReservationIdsHasBeenSet; } + inline void SetCapacityReservationIds(const Aws::Vector& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds = value; } + inline void SetCapacityReservationIds(Aws::Vector&& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds = std::move(value); } + inline CapacityReservationTarget& WithCapacityReservationIds(const Aws::Vector& value) { SetCapacityReservationIds(value); return *this;} + inline CapacityReservationTarget& WithCapacityReservationIds(Aws::Vector&& value) { SetCapacityReservationIds(std::move(value)); return *this;} + inline CapacityReservationTarget& AddCapacityReservationIds(const Aws::String& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.push_back(value); return *this; } + inline CapacityReservationTarget& AddCapacityReservationIds(Aws::String&& value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.push_back(std::move(value)); return *this; } + inline CapacityReservationTarget& AddCapacityReservationIds(const char* value) { m_capacityReservationIdsHasBeenSet = true; m_capacityReservationIds.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

The resource group ARNs of the Capacity Reservation to launch instances + * into.

+ */ + inline const Aws::Vector& GetCapacityReservationResourceGroupArns() const{ return m_capacityReservationResourceGroupArns; } + inline bool CapacityReservationResourceGroupArnsHasBeenSet() const { return m_capacityReservationResourceGroupArnsHasBeenSet; } + inline void SetCapacityReservationResourceGroupArns(const Aws::Vector& value) { m_capacityReservationResourceGroupArnsHasBeenSet = true; m_capacityReservationResourceGroupArns = value; } + inline void SetCapacityReservationResourceGroupArns(Aws::Vector&& value) { m_capacityReservationResourceGroupArnsHasBeenSet = true; m_capacityReservationResourceGroupArns = std::move(value); } + inline CapacityReservationTarget& WithCapacityReservationResourceGroupArns(const Aws::Vector& value) { SetCapacityReservationResourceGroupArns(value); return *this;} + inline CapacityReservationTarget& WithCapacityReservationResourceGroupArns(Aws::Vector&& value) { SetCapacityReservationResourceGroupArns(std::move(value)); return *this;} + inline CapacityReservationTarget& AddCapacityReservationResourceGroupArns(const Aws::String& value) { m_capacityReservationResourceGroupArnsHasBeenSet = true; m_capacityReservationResourceGroupArns.push_back(value); return *this; } + inline CapacityReservationTarget& AddCapacityReservationResourceGroupArns(Aws::String&& value) { m_capacityReservationResourceGroupArnsHasBeenSet = true; m_capacityReservationResourceGroupArns.push_back(std::move(value)); return *this; } + inline CapacityReservationTarget& AddCapacityReservationResourceGroupArns(const char* value) { m_capacityReservationResourceGroupArnsHasBeenSet = true; m_capacityReservationResourceGroupArns.push_back(value); return *this; } + ///@} + private: + + Aws::Vector m_capacityReservationIds; + bool m_capacityReservationIdsHasBeenSet = false; + + Aws::Vector m_capacityReservationResourceGroupArns; + bool m_capacityReservationResourceGroupArnsHasBeenSet = false; + }; + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CpuPerformanceFactorRequest.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CpuPerformanceFactorRequest.h new file mode 100644 index 00000000000..e7396eac9cf --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CpuPerformanceFactorRequest.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace AutoScaling +{ +namespace Model +{ + + /** + *

The CPU performance to consider, using an instance family as the baseline + * reference.

See Also:

AWS + * API Reference

+ */ + class CpuPerformanceFactorRequest + { + public: + AWS_AUTOSCALING_API CpuPerformanceFactorRequest(); + AWS_AUTOSCALING_API CpuPerformanceFactorRequest(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_AUTOSCALING_API CpuPerformanceFactorRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

Specify an instance family to use as the baseline reference for CPU + * performance. All instance types that match your specified attributes will be + * compared against the CPU performance of the referenced instance family, + * regardless of CPU manufacturer or architecture differences.

+ *

Currently only one instance family can be specified in the list.

+ */ + inline const Aws::Vector& GetReferences() const{ return m_references; } + inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; } + inline void SetReferences(const Aws::Vector& value) { m_referencesHasBeenSet = true; m_references = value; } + inline void SetReferences(Aws::Vector&& value) { m_referencesHasBeenSet = true; m_references = std::move(value); } + inline CpuPerformanceFactorRequest& WithReferences(const Aws::Vector& value) { SetReferences(value); return *this;} + inline CpuPerformanceFactorRequest& WithReferences(Aws::Vector&& value) { SetReferences(std::move(value)); return *this;} + inline CpuPerformanceFactorRequest& AddReferences(const PerformanceFactorReferenceRequest& value) { m_referencesHasBeenSet = true; m_references.push_back(value); return *this; } + inline CpuPerformanceFactorRequest& AddReferences(PerformanceFactorReferenceRequest&& value) { m_referencesHasBeenSet = true; m_references.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_references; + bool m_referencesHasBeenSet = false; + }; + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CreateAutoScalingGroupRequest.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CreateAutoScalingGroupRequest.h index 9eaa9fefbcc..34b8686296f 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CreateAutoScalingGroupRequest.h +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CreateAutoScalingGroupRequest.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -586,6 +587,18 @@ namespace Model inline void SetSkipZonalShiftValidation(bool value) { m_skipZonalShiftValidationHasBeenSet = true; m_skipZonalShiftValidation = value; } inline CreateAutoScalingGroupRequest& WithSkipZonalShiftValidation(bool value) { SetSkipZonalShiftValidation(value); return *this;} ///@} + + ///@{ + /** + *

The capacity reservation specification for the Auto Scaling group.

+ */ + inline const CapacityReservationSpecification& GetCapacityReservationSpecification() const{ return m_capacityReservationSpecification; } + inline bool CapacityReservationSpecificationHasBeenSet() const { return m_capacityReservationSpecificationHasBeenSet; } + inline void SetCapacityReservationSpecification(const CapacityReservationSpecification& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = value; } + inline void SetCapacityReservationSpecification(CapacityReservationSpecification&& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = std::move(value); } + inline CreateAutoScalingGroupRequest& WithCapacityReservationSpecification(const CapacityReservationSpecification& value) { SetCapacityReservationSpecification(value); return *this;} + inline CreateAutoScalingGroupRequest& WithCapacityReservationSpecification(CapacityReservationSpecification&& value) { SetCapacityReservationSpecification(std::move(value)); return *this;} + ///@} private: Aws::String m_autoScalingGroupName; @@ -680,6 +693,9 @@ namespace Model bool m_skipZonalShiftValidation; bool m_skipZonalShiftValidationHasBeenSet = false; + + CapacityReservationSpecification m_capacityReservationSpecification; + bool m_capacityReservationSpecificationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/InstanceRequirements.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/InstanceRequirements.h index 5b746d898e6..a85e8c04dfc 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/InstanceRequirements.h +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/InstanceRequirements.h @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -518,6 +519,18 @@ namespace Model inline InstanceRequirements& AddAllowedInstanceTypes(Aws::String&& value) { m_allowedInstanceTypesHasBeenSet = true; m_allowedInstanceTypes.push_back(std::move(value)); return *this; } inline InstanceRequirements& AddAllowedInstanceTypes(const char* value) { m_allowedInstanceTypesHasBeenSet = true; m_allowedInstanceTypes.push_back(value); return *this; } ///@} + + ///@{ + /** + *

The baseline performance factors for the instance requirements.

+ */ + inline const BaselinePerformanceFactorsRequest& GetBaselinePerformanceFactors() const{ return m_baselinePerformanceFactors; } + inline bool BaselinePerformanceFactorsHasBeenSet() const { return m_baselinePerformanceFactorsHasBeenSet; } + inline void SetBaselinePerformanceFactors(const BaselinePerformanceFactorsRequest& value) { m_baselinePerformanceFactorsHasBeenSet = true; m_baselinePerformanceFactors = value; } + inline void SetBaselinePerformanceFactors(BaselinePerformanceFactorsRequest&& value) { m_baselinePerformanceFactorsHasBeenSet = true; m_baselinePerformanceFactors = std::move(value); } + inline InstanceRequirements& WithBaselinePerformanceFactors(const BaselinePerformanceFactorsRequest& value) { SetBaselinePerformanceFactors(value); return *this;} + inline InstanceRequirements& WithBaselinePerformanceFactors(BaselinePerformanceFactorsRequest&& value) { SetBaselinePerformanceFactors(std::move(value)); return *this;} + ///@} private: VCpuCountRequest m_vCpuCount; @@ -591,6 +604,9 @@ namespace Model Aws::Vector m_allowedInstanceTypes; bool m_allowedInstanceTypesHasBeenSet = false; + + BaselinePerformanceFactorsRequest m_baselinePerformanceFactors; + bool m_baselinePerformanceFactorsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/PerformanceFactorReferenceRequest.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/PerformanceFactorReferenceRequest.h new file mode 100644 index 00000000000..c30fefe19a7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/PerformanceFactorReferenceRequest.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace AutoScaling +{ +namespace Model +{ + + /** + *

Specify an instance family to use as the baseline reference for CPU + * performance. All instance types that All instance types that match your + * specified attributes will be compared against the CPU performance of the + * referenced instance family, regardless of CPU manufacturer or architecture + * differences.

Currently only one instance family can be specified + * in the list.

See Also:

AWS + * API Reference

+ */ + class PerformanceFactorReferenceRequest + { + public: + AWS_AUTOSCALING_API PerformanceFactorReferenceRequest(); + AWS_AUTOSCALING_API PerformanceFactorReferenceRequest(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_AUTOSCALING_API PerformanceFactorReferenceRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

The instance family to use as a baseline reference.

Make sure + * that you specify the correct value for the instance family. The instance family + * is everything before the period (.) in the instance type name. For example, in + * the instance c6i.large, the instance family is c6i, + * not c6. For more information, see Amazon + * EC2 instance type naming conventions in Amazon EC2 Instance + * Types.

The following instance types are not supported + * for performance protection.

  • c1

  • + *

    g3| g3s

  • hpc7g

  • + *

    m1| m2

  • mac1 | mac2 | mac2-m1ultra | + * mac2-m2 | mac2-m2pro

  • p3dn | p4d | p5 + *

  • t1

  • u-12tb1 | u-18tb1 + * | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | u7in-16tb | u7in-24tb | + * u7in-32tb

If you performance protection by specifying + * a supported instance family, the returned instance types will exclude the + * preceding unsupported instance families.

If you specify an unsupported + * instance family as a value for baseline performance, the API returns an empty + * response.

+ */ + inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; } + inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; } + inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; } + inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); } + inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); } + inline PerformanceFactorReferenceRequest& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;} + inline PerformanceFactorReferenceRequest& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;} + inline PerformanceFactorReferenceRequest& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;} + ///@} + private: + + Aws::String m_instanceFamily; + bool m_instanceFamilyHasBeenSet = false; + }; + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/UpdateAutoScalingGroupRequest.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/UpdateAutoScalingGroupRequest.h index 1573474e998..86781168c89 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/UpdateAutoScalingGroupRequest.h +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/UpdateAutoScalingGroupRequest.h @@ -13,6 +13,7 @@ #include #include #include +#include #include namespace Aws @@ -445,6 +446,18 @@ namespace Model inline void SetSkipZonalShiftValidation(bool value) { m_skipZonalShiftValidationHasBeenSet = true; m_skipZonalShiftValidation = value; } inline UpdateAutoScalingGroupRequest& WithSkipZonalShiftValidation(bool value) { SetSkipZonalShiftValidation(value); return *this;} ///@} + + ///@{ + /** + *

The capacity reservation specification for the Auto Scaling group.

+ */ + inline const CapacityReservationSpecification& GetCapacityReservationSpecification() const{ return m_capacityReservationSpecification; } + inline bool CapacityReservationSpecificationHasBeenSet() const { return m_capacityReservationSpecificationHasBeenSet; } + inline void SetCapacityReservationSpecification(const CapacityReservationSpecification& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = value; } + inline void SetCapacityReservationSpecification(CapacityReservationSpecification&& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = std::move(value); } + inline UpdateAutoScalingGroupRequest& WithCapacityReservationSpecification(const CapacityReservationSpecification& value) { SetCapacityReservationSpecification(value); return *this;} + inline UpdateAutoScalingGroupRequest& WithCapacityReservationSpecification(CapacityReservationSpecification&& value) { SetCapacityReservationSpecification(std::move(value)); return *this;} + ///@} private: Aws::String m_autoScalingGroupName; @@ -521,6 +534,9 @@ namespace Model bool m_skipZonalShiftValidation; bool m_skipZonalShiftValidationHasBeenSet = false; + + CapacityReservationSpecification m_capacityReservationSpecification; + bool m_capacityReservationSpecificationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/AutoScalingGroup.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/AutoScalingGroup.cpp index 93599496cd7..fadde1b9a1f 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/AutoScalingGroup.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/AutoScalingGroup.cpp @@ -68,7 +68,8 @@ AutoScalingGroup::AutoScalingGroup() : m_trafficSourcesHasBeenSet(false), m_instanceMaintenancePolicyHasBeenSet(false), m_availabilityZoneDistributionHasBeenSet(false), - m_availabilityZoneImpairmentPolicyHasBeenSet(false) + m_availabilityZoneImpairmentPolicyHasBeenSet(false), + m_capacityReservationSpecificationHasBeenSet(false) { } @@ -360,6 +361,12 @@ AutoScalingGroup& AutoScalingGroup::operator =(const XmlNode& xmlNode) m_availabilityZoneImpairmentPolicy = availabilityZoneImpairmentPolicyNode; m_availabilityZoneImpairmentPolicyHasBeenSet = true; } + XmlNode capacityReservationSpecificationNode = resultNode.FirstChild("CapacityReservationSpecification"); + if(!capacityReservationSpecificationNode.IsNull()) + { + m_capacityReservationSpecification = capacityReservationSpecificationNode; + m_capacityReservationSpecificationHasBeenSet = true; + } } return *this; @@ -610,6 +617,13 @@ void AutoScalingGroup::OutputToStream(Aws::OStream& oStream, const char* locatio m_availabilityZoneImpairmentPolicy.OutputToStream(oStream, availabilityZoneImpairmentPolicyLocationAndMemberSs.str().c_str()); } + if(m_capacityReservationSpecificationHasBeenSet) + { + Aws::StringStream capacityReservationSpecificationLocationAndMemberSs; + capacityReservationSpecificationLocationAndMemberSs << location << index << locationValue << ".CapacityReservationSpecification"; + m_capacityReservationSpecification.OutputToStream(oStream, capacityReservationSpecificationLocationAndMemberSs.str().c_str()); + } + } void AutoScalingGroup::OutputToStream(Aws::OStream& oStream, const char* location) const @@ -820,6 +834,12 @@ void AutoScalingGroup::OutputToStream(Aws::OStream& oStream, const char* locatio availabilityZoneImpairmentPolicyLocationAndMember += ".AvailabilityZoneImpairmentPolicy"; m_availabilityZoneImpairmentPolicy.OutputToStream(oStream, availabilityZoneImpairmentPolicyLocationAndMember.c_str()); } + if(m_capacityReservationSpecificationHasBeenSet) + { + Aws::String capacityReservationSpecificationLocationAndMember(location); + capacityReservationSpecificationLocationAndMember += ".CapacityReservationSpecification"; + m_capacityReservationSpecification.OutputToStream(oStream, capacityReservationSpecificationLocationAndMember.c_str()); + } } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/BaselinePerformanceFactorsRequest.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/BaselinePerformanceFactorsRequest.cpp new file mode 100644 index 00000000000..8a049e4442a --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/BaselinePerformanceFactorsRequest.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace AutoScaling +{ +namespace Model +{ + +BaselinePerformanceFactorsRequest::BaselinePerformanceFactorsRequest() : + m_cpuHasBeenSet(false) +{ +} + +BaselinePerformanceFactorsRequest::BaselinePerformanceFactorsRequest(const XmlNode& xmlNode) + : BaselinePerformanceFactorsRequest() +{ + *this = xmlNode; +} + +BaselinePerformanceFactorsRequest& BaselinePerformanceFactorsRequest::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode cpuNode = resultNode.FirstChild("Cpu"); + if(!cpuNode.IsNull()) + { + m_cpu = cpuNode; + m_cpuHasBeenSet = true; + } + } + + return *this; +} + +void BaselinePerformanceFactorsRequest::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_cpuHasBeenSet) + { + Aws::StringStream cpuLocationAndMemberSs; + cpuLocationAndMemberSs << location << index << locationValue << ".Cpu"; + m_cpu.OutputToStream(oStream, cpuLocationAndMemberSs.str().c_str()); + } + +} + +void BaselinePerformanceFactorsRequest::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_cpuHasBeenSet) + { + Aws::String cpuLocationAndMember(location); + cpuLocationAndMember += ".Cpu"; + m_cpu.OutputToStream(oStream, cpuLocationAndMember.c_str()); + } +} + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationPreference.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationPreference.cpp new file mode 100644 index 00000000000..c9b803e2243 --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationPreference.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 AutoScaling + { + namespace Model + { + namespace CapacityReservationPreferenceMapper + { + + static const int capacity_reservations_only_HASH = HashingUtils::HashString("capacity-reservations-only"); + static const int capacity_reservations_first_HASH = HashingUtils::HashString("capacity-reservations-first"); + static const int none_HASH = HashingUtils::HashString("none"); + static const int default__HASH = HashingUtils::HashString("default"); + + + CapacityReservationPreference GetCapacityReservationPreferenceForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == capacity_reservations_only_HASH) + { + return CapacityReservationPreference::capacity_reservations_only; + } + else if (hashCode == capacity_reservations_first_HASH) + { + return CapacityReservationPreference::capacity_reservations_first; + } + else if (hashCode == none_HASH) + { + return CapacityReservationPreference::none; + } + else if (hashCode == default__HASH) + { + return CapacityReservationPreference::default_; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CapacityReservationPreference::NOT_SET; + } + + Aws::String GetNameForCapacityReservationPreference(CapacityReservationPreference enumValue) + { + switch(enumValue) + { + case CapacityReservationPreference::NOT_SET: + return {}; + case CapacityReservationPreference::capacity_reservations_only: + return "capacity-reservations-only"; + case CapacityReservationPreference::capacity_reservations_first: + return "capacity-reservations-first"; + case CapacityReservationPreference::none: + return "none"; + case CapacityReservationPreference::default_: + return "default"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CapacityReservationPreferenceMapper + } // namespace Model + } // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationSpecification.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationSpecification.cpp new file mode 100644 index 00000000000..12a01c72873 --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationSpecification.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace AutoScaling +{ +namespace Model +{ + +CapacityReservationSpecification::CapacityReservationSpecification() : + m_capacityReservationPreference(CapacityReservationPreference::NOT_SET), + m_capacityReservationPreferenceHasBeenSet(false), + m_capacityReservationTargetHasBeenSet(false) +{ +} + +CapacityReservationSpecification::CapacityReservationSpecification(const XmlNode& xmlNode) + : CapacityReservationSpecification() +{ + *this = xmlNode; +} + +CapacityReservationSpecification& CapacityReservationSpecification::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode capacityReservationPreferenceNode = resultNode.FirstChild("CapacityReservationPreference"); + if(!capacityReservationPreferenceNode.IsNull()) + { + m_capacityReservationPreference = CapacityReservationPreferenceMapper::GetCapacityReservationPreferenceForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(capacityReservationPreferenceNode.GetText()).c_str()).c_str()); + m_capacityReservationPreferenceHasBeenSet = true; + } + XmlNode capacityReservationTargetNode = resultNode.FirstChild("CapacityReservationTarget"); + if(!capacityReservationTargetNode.IsNull()) + { + m_capacityReservationTarget = capacityReservationTargetNode; + m_capacityReservationTargetHasBeenSet = true; + } + } + + return *this; +} + +void CapacityReservationSpecification::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_capacityReservationPreferenceHasBeenSet) + { + oStream << location << index << locationValue << ".CapacityReservationPreference=" << CapacityReservationPreferenceMapper::GetNameForCapacityReservationPreference(m_capacityReservationPreference) << "&"; + } + + if(m_capacityReservationTargetHasBeenSet) + { + Aws::StringStream capacityReservationTargetLocationAndMemberSs; + capacityReservationTargetLocationAndMemberSs << location << index << locationValue << ".CapacityReservationTarget"; + m_capacityReservationTarget.OutputToStream(oStream, capacityReservationTargetLocationAndMemberSs.str().c_str()); + } + +} + +void CapacityReservationSpecification::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_capacityReservationPreferenceHasBeenSet) + { + oStream << location << ".CapacityReservationPreference=" << CapacityReservationPreferenceMapper::GetNameForCapacityReservationPreference(m_capacityReservationPreference) << "&"; + } + if(m_capacityReservationTargetHasBeenSet) + { + Aws::String capacityReservationTargetLocationAndMember(location); + capacityReservationTargetLocationAndMember += ".CapacityReservationTarget"; + m_capacityReservationTarget.OutputToStream(oStream, capacityReservationTargetLocationAndMember.c_str()); + } +} + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationTarget.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationTarget.cpp new file mode 100644 index 00000000000..29efac2961c --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/CapacityReservationTarget.cpp @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace AutoScaling +{ +namespace Model +{ + +CapacityReservationTarget::CapacityReservationTarget() : + m_capacityReservationIdsHasBeenSet(false), + m_capacityReservationResourceGroupArnsHasBeenSet(false) +{ +} + +CapacityReservationTarget::CapacityReservationTarget(const XmlNode& xmlNode) + : CapacityReservationTarget() +{ + *this = xmlNode; +} + +CapacityReservationTarget& CapacityReservationTarget::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode capacityReservationIdsNode = resultNode.FirstChild("CapacityReservationIds"); + if(!capacityReservationIdsNode.IsNull()) + { + XmlNode capacityReservationIdsMember = capacityReservationIdsNode.FirstChild("member"); + while(!capacityReservationIdsMember.IsNull()) + { + m_capacityReservationIds.push_back(capacityReservationIdsMember.GetText()); + capacityReservationIdsMember = capacityReservationIdsMember.NextNode("member"); + } + + m_capacityReservationIdsHasBeenSet = true; + } + XmlNode capacityReservationResourceGroupArnsNode = resultNode.FirstChild("CapacityReservationResourceGroupArns"); + if(!capacityReservationResourceGroupArnsNode.IsNull()) + { + XmlNode capacityReservationResourceGroupArnsMember = capacityReservationResourceGroupArnsNode.FirstChild("member"); + while(!capacityReservationResourceGroupArnsMember.IsNull()) + { + m_capacityReservationResourceGroupArns.push_back(capacityReservationResourceGroupArnsMember.GetText()); + capacityReservationResourceGroupArnsMember = capacityReservationResourceGroupArnsMember.NextNode("member"); + } + + m_capacityReservationResourceGroupArnsHasBeenSet = true; + } + } + + return *this; +} + +void CapacityReservationTarget::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_capacityReservationIdsHasBeenSet) + { + unsigned capacityReservationIdsIdx = 1; + for(auto& item : m_capacityReservationIds) + { + oStream << location << index << locationValue << ".CapacityReservationIds.member." << capacityReservationIdsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; + } + } + + if(m_capacityReservationResourceGroupArnsHasBeenSet) + { + unsigned capacityReservationResourceGroupArnsIdx = 1; + for(auto& item : m_capacityReservationResourceGroupArns) + { + oStream << location << index << locationValue << ".CapacityReservationResourceGroupArns.member." << capacityReservationResourceGroupArnsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; + } + } + +} + +void CapacityReservationTarget::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_capacityReservationIdsHasBeenSet) + { + unsigned capacityReservationIdsIdx = 1; + for(auto& item : m_capacityReservationIds) + { + oStream << location << ".CapacityReservationIds.member." << capacityReservationIdsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; + } + } + if(m_capacityReservationResourceGroupArnsHasBeenSet) + { + unsigned capacityReservationResourceGroupArnsIdx = 1; + for(auto& item : m_capacityReservationResourceGroupArns) + { + oStream << location << ".CapacityReservationResourceGroupArns.member." << capacityReservationResourceGroupArnsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; + } + } +} + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/CpuPerformanceFactorRequest.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/CpuPerformanceFactorRequest.cpp new file mode 100644 index 00000000000..51df8108ecc --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/CpuPerformanceFactorRequest.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace AutoScaling +{ +namespace Model +{ + +CpuPerformanceFactorRequest::CpuPerformanceFactorRequest() : + m_referencesHasBeenSet(false) +{ +} + +CpuPerformanceFactorRequest::CpuPerformanceFactorRequest(const XmlNode& xmlNode) + : CpuPerformanceFactorRequest() +{ + *this = xmlNode; +} + +CpuPerformanceFactorRequest& CpuPerformanceFactorRequest::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode referencesNode = resultNode.FirstChild("Reference"); + if(!referencesNode.IsNull()) + { + XmlNode referencesMember = referencesNode.FirstChild("item"); + while(!referencesMember.IsNull()) + { + m_references.push_back(referencesMember); + referencesMember = referencesMember.NextNode("item"); + } + + m_referencesHasBeenSet = true; + } + } + + return *this; +} + +void CpuPerformanceFactorRequest::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_referencesHasBeenSet) + { + unsigned referencesIdx = 1; + for(auto& item : m_references) + { + Aws::StringStream referencesSs; + referencesSs << location << index << locationValue << ".item." << referencesIdx++; + item.OutputToStream(oStream, referencesSs.str().c_str()); + } + } + +} + +void CpuPerformanceFactorRequest::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_referencesHasBeenSet) + { + unsigned referencesIdx = 1; + for(auto& item : m_references) + { + Aws::StringStream referencesSs; + referencesSs << location << ".Reference." << referencesIdx++; + item.OutputToStream(oStream, referencesSs.str().c_str()); + } + } +} + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/CreateAutoScalingGroupRequest.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/CreateAutoScalingGroupRequest.cpp index 7e0bbd74ead..cb04dcd298f 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/CreateAutoScalingGroupRequest.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/CreateAutoScalingGroupRequest.cpp @@ -51,7 +51,8 @@ CreateAutoScalingGroupRequest::CreateAutoScalingGroupRequest() : m_availabilityZoneDistributionHasBeenSet(false), m_availabilityZoneImpairmentPolicyHasBeenSet(false), m_skipZonalShiftValidation(false), - m_skipZonalShiftValidationHasBeenSet(false) + m_skipZonalShiftValidationHasBeenSet(false), + m_capacityReservationSpecificationHasBeenSet(false) { } @@ -302,6 +303,11 @@ Aws::String CreateAutoScalingGroupRequest::SerializePayload() const ss << "SkipZonalShiftValidation=" << std::boolalpha << m_skipZonalShiftValidation << "&"; } + if(m_capacityReservationSpecificationHasBeenSet) + { + m_capacityReservationSpecification.OutputToStream(ss, "CapacityReservationSpecification"); + } + ss << "Version=2011-01-01"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceRequirements.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceRequirements.cpp index c2c396c9b04..93b8585ce98 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceRequirements.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceRequirements.cpp @@ -51,7 +51,8 @@ InstanceRequirements::InstanceRequirements() : m_acceleratorNamesHasBeenSet(false), m_acceleratorTotalMemoryMiBHasBeenSet(false), m_networkBandwidthGbpsHasBeenSet(false), - m_allowedInstanceTypesHasBeenSet(false) + m_allowedInstanceTypesHasBeenSet(false), + m_baselinePerformanceFactorsHasBeenSet(false) { } @@ -259,6 +260,12 @@ InstanceRequirements& InstanceRequirements::operator =(const XmlNode& xmlNode) m_allowedInstanceTypesHasBeenSet = true; } + XmlNode baselinePerformanceFactorsNode = resultNode.FirstChild("BaselinePerformanceFactors"); + if(!baselinePerformanceFactorsNode.IsNull()) + { + m_baselinePerformanceFactors = baselinePerformanceFactorsNode; + m_baselinePerformanceFactorsHasBeenSet = true; + } } return *this; @@ -436,6 +443,13 @@ void InstanceRequirements::OutputToStream(Aws::OStream& oStream, const char* loc } } + if(m_baselinePerformanceFactorsHasBeenSet) + { + Aws::StringStream baselinePerformanceFactorsLocationAndMemberSs; + baselinePerformanceFactorsLocationAndMemberSs << location << index << locationValue << ".BaselinePerformanceFactors"; + m_baselinePerformanceFactors.OutputToStream(oStream, baselinePerformanceFactorsLocationAndMemberSs.str().c_str()); + } + } void InstanceRequirements::OutputToStream(Aws::OStream& oStream, const char* location) const @@ -586,6 +600,12 @@ void InstanceRequirements::OutputToStream(Aws::OStream& oStream, const char* loc oStream << location << ".AllowedInstanceTypes.member." << allowedInstanceTypesIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; } } + if(m_baselinePerformanceFactorsHasBeenSet) + { + Aws::String baselinePerformanceFactorsLocationAndMember(location); + baselinePerformanceFactorsLocationAndMember += ".BaselinePerformanceFactors"; + m_baselinePerformanceFactors.OutputToStream(oStream, baselinePerformanceFactorsLocationAndMember.c_str()); + } } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/PerformanceFactorReferenceRequest.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/PerformanceFactorReferenceRequest.cpp new file mode 100644 index 00000000000..29439ecd8ba --- /dev/null +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/PerformanceFactorReferenceRequest.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 + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace AutoScaling +{ +namespace Model +{ + +PerformanceFactorReferenceRequest::PerformanceFactorReferenceRequest() : + m_instanceFamilyHasBeenSet(false) +{ +} + +PerformanceFactorReferenceRequest::PerformanceFactorReferenceRequest(const XmlNode& xmlNode) + : PerformanceFactorReferenceRequest() +{ + *this = xmlNode; +} + +PerformanceFactorReferenceRequest& PerformanceFactorReferenceRequest::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode instanceFamilyNode = resultNode.FirstChild("InstanceFamily"); + if(!instanceFamilyNode.IsNull()) + { + m_instanceFamily = Aws::Utils::Xml::DecodeEscapedXmlText(instanceFamilyNode.GetText()); + m_instanceFamilyHasBeenSet = true; + } + } + + return *this; +} + +void PerformanceFactorReferenceRequest::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_instanceFamilyHasBeenSet) + { + oStream << location << index << locationValue << ".InstanceFamily=" << StringUtils::URLEncode(m_instanceFamily.c_str()) << "&"; + } + +} + +void PerformanceFactorReferenceRequest::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_instanceFamilyHasBeenSet) + { + oStream << location << ".InstanceFamily=" << StringUtils::URLEncode(m_instanceFamily.c_str()) << "&"; + } +} + +} // namespace Model +} // namespace AutoScaling +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/UpdateAutoScalingGroupRequest.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/UpdateAutoScalingGroupRequest.cpp index 40d901f2f98..2ceb25eb3b7 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/UpdateAutoScalingGroupRequest.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/UpdateAutoScalingGroupRequest.cpp @@ -45,7 +45,8 @@ UpdateAutoScalingGroupRequest::UpdateAutoScalingGroupRequest() : m_availabilityZoneDistributionHasBeenSet(false), m_availabilityZoneImpairmentPolicyHasBeenSet(false), m_skipZonalShiftValidation(false), - m_skipZonalShiftValidationHasBeenSet(false) + m_skipZonalShiftValidationHasBeenSet(false), + m_capacityReservationSpecificationHasBeenSet(false) { } @@ -204,6 +205,11 @@ Aws::String UpdateAutoScalingGroupRequest::SerializePayload() const ss << "SkipZonalShiftValidation=" << std::boolalpha << m_skipZonalShiftValidation << "&"; } + if(m_capacityReservationSpecificationHasBeenSet) + { + m_capacityReservationSpecification.OutputToStream(ss, "CapacityReservationSpecification"); + } + ss << "Version=2011-01-01"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h index 8e7e0babbca..0c8c850ba5a 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h @@ -182,9 +182,11 @@ namespace BedrockAgentRuntime * output of each node as a stream. If there's an error, the error is returned. For * more information, see Test - * a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

The - * CLI doesn't support streaming operations in Amazon Bedrock, including - * InvokeFlow.

See Also:

in the Amazon + * Bedrock User Guide.

The CLI doesn't support streaming + * operations in Amazon Bedrock, including InvokeFlow.

+ *

See Also:

AWS * API Reference

*/ @@ -208,6 +210,36 @@ namespace BedrockAgentRuntime return SubmitAsync(&BedrockAgentRuntimeClient::InvokeFlow, request, handler, context); } + /** + *

Optimizes a prompt for the task that you specify. For more information, see + * Optimize + * a prompt in the Amazon + * Bedrock User Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::OptimizePromptOutcome OptimizePrompt(Model::OptimizePromptRequest& request) const; + + /** + * A Callable wrapper for OptimizePrompt that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::OptimizePromptOutcomeCallable OptimizePromptCallable(OptimizePromptRequestT& request) const + { + return SubmitCallable(&BedrockAgentRuntimeClient::OptimizePrompt, request); + } + + /** + * An Async wrapper for OptimizePrompt that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void OptimizePromptAsync(OptimizePromptRequestT& request, const OptimizePromptResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&BedrockAgentRuntimeClient::OptimizePrompt, request, handler, context); + } + /** *

Queries a knowledge base and retrieves information from it.

See * Also:

GetAgentMemoryOutcome; typedef Aws::Utils::Outcome InvokeAgentOutcome; typedef Aws::Utils::Outcome InvokeFlowOutcome; + typedef Aws::Utils::Outcome OptimizePromptOutcome; typedef Aws::Utils::Outcome RetrieveOutcome; typedef Aws::Utils::Outcome RetrieveAndGenerateOutcome; /* End of service model Outcome class definitions */ @@ -85,6 +87,7 @@ namespace Aws typedef std::future GetAgentMemoryOutcomeCallable; typedef std::future InvokeAgentOutcomeCallable; typedef std::future InvokeFlowOutcomeCallable; + typedef std::future OptimizePromptOutcomeCallable; typedef std::future RetrieveOutcomeCallable; typedef std::future RetrieveAndGenerateOutcomeCallable; /* End of service model Outcome callable definitions */ @@ -97,6 +100,7 @@ namespace Aws typedef std::function&) > GetAgentMemoryResponseReceivedHandler; typedef std::function&) > InvokeAgentResponseReceivedHandler; typedef std::function&) > InvokeFlowResponseReceivedHandler; + typedef std::function&) > OptimizePromptResponseReceivedHandler; typedef std::function&) > RetrieveResponseReceivedHandler; typedef std::function&) > RetrieveAndGenerateResponseReceivedHandler; /* End of service model async handlers definitions */ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ActionGroupInvocationInput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ActionGroupInvocationInput.h index 4b08e32035d..d39574082ad 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ActionGroupInvocationInput.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ActionGroupInvocationInput.h @@ -31,7 +31,9 @@ namespace Model *

Contains information about the action group being invoked. For more * information about the possible structures, see the InvocationInput tab in OrchestrationTrace - * in the Amazon Bedrock User Guide.

See Also:

Amazon + * Bedrock User Guide.

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AnalyzePromptEvent.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AnalyzePromptEvent.h new file mode 100644 index 00000000000..2fd25edbec6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AnalyzePromptEvent.h @@ -0,0 +1,62 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

An event in which the prompt was analyzed in preparation for + * optimization.

See Also:

AWS + * API Reference

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

A message describing the analysis of the prompt.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline AnalyzePromptEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline AnalyzePromptEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline AnalyzePromptEvent& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InputPrompt.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InputPrompt.h new file mode 100644 index 00000000000..89d1ded4ffd --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InputPrompt.h @@ -0,0 +1,60 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

Contains information about the prompt to optimize.

See Also:

+ * AWS + * API Reference

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

Contains information about the text prompt to optimize.

+ */ + inline const TextPrompt& GetTextPrompt() const{ return m_textPrompt; } + inline bool TextPromptHasBeenSet() const { return m_textPromptHasBeenSet; } + inline void SetTextPrompt(const TextPrompt& value) { m_textPromptHasBeenSet = true; m_textPrompt = value; } + inline void SetTextPrompt(TextPrompt&& value) { m_textPromptHasBeenSet = true; m_textPrompt = std::move(value); } + inline InputPrompt& WithTextPrompt(const TextPrompt& value) { SetTextPrompt(value); return *this;} + inline InputPrompt& WithTextPrompt(TextPrompt&& value) { SetTextPrompt(std::move(value)); return *this;} + ///@} + private: + + TextPrompt m_textPrompt; + bool m_textPromptHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptHandler.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptHandler.h new file mode 100644 index 00000000000..3604299cb3a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptHandler.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +#include +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class OptimizePromptEventType + { + INITIAL_RESPONSE, + ANALYZEPROMPTEVENT, + OPTIMIZEDPROMPTEVENT, + UNKNOWN + }; + + class OptimizePromptHandler : public Aws::Utils::Event::EventStreamHandler + { + typedef std::function OptimizePromptInitialResponseCallback; + typedef std::function OptimizePromptInitialResponseCallbackEx; + typedef std::function AnalyzePromptEventCallback; + typedef std::function OptimizedPromptEventCallback; + typedef std::function& error)> ErrorCallback; + + public: + AWS_BEDROCKAGENTRUNTIME_API OptimizePromptHandler(); + AWS_BEDROCKAGENTRUNTIME_API OptimizePromptHandler& operator=(const OptimizePromptHandler&) = default; + + AWS_BEDROCKAGENTRUNTIME_API virtual void OnEvent() override; + + ///@{ + /** + * Sets an initial response callback. This callback gets called on the initial OptimizePrompt Operation response. + * This can be either "initial-response" decoded event frame or decoded HTTP headers received on connection. + * This callback may get called more than once (i.e. on connection headers received and then on the initial-response event received). + * @param callback + */ + inline void SetInitialResponseCallbackEx(const OptimizePromptInitialResponseCallbackEx& callback) { m_onInitialResponse = callback; } + /** + * Sets an initial response callback (a legacy one that does not distinguish whether response originates from headers or from the event). + */ + inline void SetInitialResponseCallback(const OptimizePromptInitialResponseCallback& noArgCallback) + { + m_onInitialResponse = [noArgCallback](const OptimizePromptInitialResponse& rs, const Utils::Event::InitialResponseType) { return noArgCallback(rs); }; + } + ///@} + inline void SetAnalyzePromptEventCallback(const AnalyzePromptEventCallback& callback) { m_onAnalyzePromptEvent = callback; } + inline void SetOptimizedPromptEventCallback(const OptimizedPromptEventCallback& callback) { m_onOptimizedPromptEvent = callback; } + inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } + + inline OptimizePromptInitialResponseCallbackEx& GetInitialResponseCallbackEx() { return m_onInitialResponse; } + + private: + AWS_BEDROCKAGENTRUNTIME_API void HandleEventInMessage(); + AWS_BEDROCKAGENTRUNTIME_API void HandleErrorInMessage(); + AWS_BEDROCKAGENTRUNTIME_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + + OptimizePromptInitialResponseCallbackEx m_onInitialResponse; + AnalyzePromptEventCallback m_onAnalyzePromptEvent; + OptimizedPromptEventCallback m_onOptimizedPromptEvent; + ErrorCallback m_onError; + }; + +namespace OptimizePromptEventMapper +{ + AWS_BEDROCKAGENTRUNTIME_API OptimizePromptEventType GetOptimizePromptEventTypeForName(const Aws::String& name); + + AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForOptimizePromptEventType(OptimizePromptEventType value); +} // namespace OptimizePromptEventMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptInitialResponse.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptInitialResponse.h new file mode 100644 index 00000000000..f9afdbae5b5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptInitialResponse.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + class OptimizePromptInitialResponse + { + public: + AWS_BEDROCKAGENTRUNTIME_API OptimizePromptInitialResponse(); + AWS_BEDROCKAGENTRUNTIME_API OptimizePromptInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCKAGENTRUNTIME_API OptimizePromptInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCKAGENTRUNTIME_API OptimizePromptInitialResponse(const Http::HeaderValueCollection& responseHeaders); + AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const; + + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptRequest.h new file mode 100644 index 00000000000..8ee371980ac --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizePromptRequest.h @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + */ + class OptimizePromptRequest : public BedrockAgentRuntimeRequest + { + public: + AWS_BEDROCKAGENTRUNTIME_API OptimizePromptRequest(); + + // 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 "OptimizePrompt"; } + + AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override; + + /** + * Underlying Event Stream Decoder. + */ + inline Aws::Utils::Event::EventStreamDecoder& GetEventStreamDecoder() { return m_decoder; } + + /** + * Underlying Event Stream Handler which is used to define callback functions. + */ + inline const OptimizePromptHandler& GetEventStreamHandler() const { return m_handler; } + + /** + * Underlying Event Stream Handler which is used to define callback functions. + */ + inline void SetEventStreamHandler(const OptimizePromptHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); } + + /** + * Underlying Event Stream Handler which is used to define callback functions. + */ + inline OptimizePromptRequest& WithEventStreamHandler(const OptimizePromptHandler& value) { SetEventStreamHandler(value); return *this; } + + + ///@{ + /** + *

Contains the prompt to optimize.

+ */ + inline const InputPrompt& GetInput() const{ return m_input; } + inline bool InputHasBeenSet() const { return m_inputHasBeenSet; } + inline void SetInput(const InputPrompt& value) { m_inputHasBeenSet = true; m_input = value; } + inline void SetInput(InputPrompt&& value) { m_inputHasBeenSet = true; m_input = std::move(value); } + inline OptimizePromptRequest& WithInput(const InputPrompt& value) { SetInput(value); return *this;} + inline OptimizePromptRequest& WithInput(InputPrompt&& value) { SetInput(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The unique identifier of the model that you want to optimize the prompt + * for.

+ */ + inline const Aws::String& GetTargetModelId() const{ return m_targetModelId; } + inline bool TargetModelIdHasBeenSet() const { return m_targetModelIdHasBeenSet; } + inline void SetTargetModelId(const Aws::String& value) { m_targetModelIdHasBeenSet = true; m_targetModelId = value; } + inline void SetTargetModelId(Aws::String&& value) { m_targetModelIdHasBeenSet = true; m_targetModelId = std::move(value); } + inline void SetTargetModelId(const char* value) { m_targetModelIdHasBeenSet = true; m_targetModelId.assign(value); } + inline OptimizePromptRequest& WithTargetModelId(const Aws::String& value) { SetTargetModelId(value); return *this;} + inline OptimizePromptRequest& WithTargetModelId(Aws::String&& value) { SetTargetModelId(std::move(value)); return *this;} + inline OptimizePromptRequest& WithTargetModelId(const char* value) { SetTargetModelId(value); return *this;} + ///@} + private: + + InputPrompt m_input; + bool m_inputHasBeenSet = false; + + Aws::String m_targetModelId; + bool m_targetModelIdHasBeenSet = false; + OptimizePromptHandler m_handler; + Aws::Utils::Event::EventStreamDecoder m_decoder; + + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPrompt.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPrompt.h new file mode 100644 index 00000000000..dc09c34045c --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPrompt.h @@ -0,0 +1,60 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

Contains information about the optimized prompt.

See Also:

+ * AWS + * API Reference

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

Contains information about the text in the prompt that was optimized.

+ */ + inline const TextPrompt& GetTextPrompt() const{ return m_textPrompt; } + inline bool TextPromptHasBeenSet() const { return m_textPromptHasBeenSet; } + inline void SetTextPrompt(const TextPrompt& value) { m_textPromptHasBeenSet = true; m_textPrompt = value; } + inline void SetTextPrompt(TextPrompt&& value) { m_textPromptHasBeenSet = true; m_textPrompt = std::move(value); } + inline OptimizedPrompt& WithTextPrompt(const TextPrompt& value) { SetTextPrompt(value); return *this;} + inline OptimizedPrompt& WithTextPrompt(TextPrompt&& value) { SetTextPrompt(std::move(value)); return *this;} + ///@} + private: + + TextPrompt m_textPrompt; + bool m_textPromptHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptEvent.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptEvent.h new file mode 100644 index 00000000000..8d604194677 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptEvent.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

An event in which the prompt was optimized.

See Also:

AWS + * API Reference

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

Contains information about the optimized prompt.

+ */ + inline const OptimizedPrompt& GetOptimizedPrompt() const{ return m_optimizedPrompt; } + inline bool OptimizedPromptHasBeenSet() const { return m_optimizedPromptHasBeenSet; } + inline void SetOptimizedPrompt(const OptimizedPrompt& value) { m_optimizedPromptHasBeenSet = true; m_optimizedPrompt = value; } + inline void SetOptimizedPrompt(OptimizedPrompt&& value) { m_optimizedPromptHasBeenSet = true; m_optimizedPrompt = std::move(value); } + inline OptimizedPromptEvent& WithOptimizedPrompt(const OptimizedPrompt& value) { SetOptimizedPrompt(value); return *this;} + inline OptimizedPromptEvent& WithOptimizedPrompt(OptimizedPrompt&& value) { SetOptimizedPrompt(std::move(value)); return *this;} + ///@} + private: + + OptimizedPrompt m_optimizedPrompt; + bool m_optimizedPromptHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptStream.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptStream.h new file mode 100644 index 00000000000..4441d0fac5e --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptStream.h @@ -0,0 +1,180 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The stream containing events in the prompt optimization + * process.

See Also:

AWS + * API Reference

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

The request is denied because of missing access permissions. Check your + * permissions and retry your request.

+ */ + inline const AccessDeniedException& GetAccessDeniedException() const{ return m_accessDeniedException; } + inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; } + inline void SetAccessDeniedException(const AccessDeniedException& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = value; } + inline void SetAccessDeniedException(AccessDeniedException&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::move(value); } + inline OptimizedPromptStream& WithAccessDeniedException(const AccessDeniedException& value) { SetAccessDeniedException(value); return *this;} + inline OptimizedPromptStream& WithAccessDeniedException(AccessDeniedException&& value) { SetAccessDeniedException(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

An event in which the prompt was analyzed in preparation for + * optimization.

+ */ + inline const AnalyzePromptEvent& GetAnalyzePromptEvent() const{ return m_analyzePromptEvent; } + inline bool AnalyzePromptEventHasBeenSet() const { return m_analyzePromptEventHasBeenSet; } + inline void SetAnalyzePromptEvent(const AnalyzePromptEvent& value) { m_analyzePromptEventHasBeenSet = true; m_analyzePromptEvent = value; } + inline void SetAnalyzePromptEvent(AnalyzePromptEvent&& value) { m_analyzePromptEventHasBeenSet = true; m_analyzePromptEvent = std::move(value); } + inline OptimizedPromptStream& WithAnalyzePromptEvent(const AnalyzePromptEvent& value) { SetAnalyzePromptEvent(value); return *this;} + inline OptimizedPromptStream& WithAnalyzePromptEvent(AnalyzePromptEvent&& value) { SetAnalyzePromptEvent(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

There was an issue with a dependency due to a server issue. Retry your + * request.

+ */ + inline const BadGatewayException& GetBadGatewayException() const{ return m_badGatewayException; } + inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; } + inline void SetBadGatewayException(const BadGatewayException& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = value; } + inline void SetBadGatewayException(BadGatewayException&& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = std::move(value); } + inline OptimizedPromptStream& WithBadGatewayException(const BadGatewayException& value) { SetBadGatewayException(value); return *this;} + inline OptimizedPromptStream& WithBadGatewayException(BadGatewayException&& value) { SetBadGatewayException(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

There was an issue with a dependency. Check the resource configurations and + * retry the request.

+ */ + inline const DependencyFailedException& GetDependencyFailedException() const{ return m_dependencyFailedException; } + inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; } + inline void SetDependencyFailedException(const DependencyFailedException& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = value; } + inline void SetDependencyFailedException(DependencyFailedException&& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = std::move(value); } + inline OptimizedPromptStream& WithDependencyFailedException(const DependencyFailedException& value) { SetDependencyFailedException(value); return *this;} + inline OptimizedPromptStream& WithDependencyFailedException(DependencyFailedException&& value) { SetDependencyFailedException(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

An internal server error occurred. Retry your request.

+ */ + inline const InternalServerException& GetInternalServerException() const{ return m_internalServerException; } + inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; } + inline void SetInternalServerException(const InternalServerException& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = value; } + inline void SetInternalServerException(InternalServerException&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::move(value); } + inline OptimizedPromptStream& WithInternalServerException(const InternalServerException& value) { SetInternalServerException(value); return *this;} + inline OptimizedPromptStream& WithInternalServerException(InternalServerException&& value) { SetInternalServerException(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

An event in which the prompt was optimized.

+ */ + inline const OptimizedPromptEvent& GetOptimizedPromptEvent() const{ return m_optimizedPromptEvent; } + inline bool OptimizedPromptEventHasBeenSet() const { return m_optimizedPromptEventHasBeenSet; } + inline void SetOptimizedPromptEvent(const OptimizedPromptEvent& value) { m_optimizedPromptEventHasBeenSet = true; m_optimizedPromptEvent = value; } + inline void SetOptimizedPromptEvent(OptimizedPromptEvent&& value) { m_optimizedPromptEventHasBeenSet = true; m_optimizedPromptEvent = std::move(value); } + inline OptimizedPromptStream& WithOptimizedPromptEvent(const OptimizedPromptEvent& value) { SetOptimizedPromptEvent(value); return *this;} + inline OptimizedPromptStream& WithOptimizedPromptEvent(OptimizedPromptEvent&& value) { SetOptimizedPromptEvent(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Your request was throttled because of service-wide limitations. Resubmit your + * request later or in a different region. You can also purchase Provisioned + * Throughput to increase the rate or number of tokens you can process.

+ */ + inline const ThrottlingException& GetThrottlingException() const{ return m_throttlingException; } + inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } + inline void SetThrottlingException(const ThrottlingException& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = value; } + inline void SetThrottlingException(ThrottlingException&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::move(value); } + inline OptimizedPromptStream& WithThrottlingException(const ThrottlingException& value) { SetThrottlingException(value); return *this;} + inline OptimizedPromptStream& WithThrottlingException(ThrottlingException&& value) { SetThrottlingException(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Input validation failed. Check your request parameters and retry the + * request.

+ */ + inline const ValidationException& GetValidationException() const{ return m_validationException; } + inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } + inline void SetValidationException(const ValidationException& value) { m_validationExceptionHasBeenSet = true; m_validationException = value; } + inline void SetValidationException(ValidationException&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::move(value); } + inline OptimizedPromptStream& WithValidationException(const ValidationException& value) { SetValidationException(value); return *this;} + inline OptimizedPromptStream& WithValidationException(ValidationException&& value) { SetValidationException(std::move(value)); return *this;} + ///@} + private: + + AccessDeniedException m_accessDeniedException; + bool m_accessDeniedExceptionHasBeenSet = false; + + AnalyzePromptEvent m_analyzePromptEvent; + bool m_analyzePromptEventHasBeenSet = false; + + BadGatewayException m_badGatewayException; + bool m_badGatewayExceptionHasBeenSet = false; + + DependencyFailedException m_dependencyFailedException; + bool m_dependencyFailedExceptionHasBeenSet = false; + + InternalServerException m_internalServerException; + bool m_internalServerExceptionHasBeenSet = false; + + OptimizedPromptEvent m_optimizedPromptEvent; + bool m_optimizedPromptEventHasBeenSet = false; + + ThrottlingException m_throttlingException; + bool m_throttlingExceptionHasBeenSet = false; + + ValidationException m_validationException; + bool m_validationExceptionHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TextPrompt.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TextPrompt.h new file mode 100644 index 00000000000..f62ee08b303 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TextPrompt.h @@ -0,0 +1,62 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

Contains information about the text prompt to optimize.

See + * Also:

AWS + * API Reference

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

The text in the text prompt to optimize.

+ */ + inline const Aws::String& GetText() const{ return m_text; } + inline bool TextHasBeenSet() const { return m_textHasBeenSet; } + inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } + inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } + inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } + inline TextPrompt& WithText(const Aws::String& value) { SetText(value); return *this;} + inline TextPrompt& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} + inline TextPrompt& WithText(const char* value) { SetText(value); return *this;} + ///@} + private: + + Aws::String m_text; + bool m_textHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/BedrockAgentRuntimeClient.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/BedrockAgentRuntimeClient.cpp index 63238b2f569..ff8c256b182 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/BedrockAgentRuntimeClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/BedrockAgentRuntimeClient.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -357,6 +358,36 @@ InvokeFlowOutcome BedrockAgentRuntimeClient::InvokeFlow(InvokeFlowRequest& reque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +OptimizePromptOutcome BedrockAgentRuntimeClient::OptimizePrompt(OptimizePromptRequest& request) const +{ + AWS_OPERATION_GUARD(OptimizePrompt); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, OptimizePrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, OptimizePrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, OptimizePrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".OptimizePrompt", + {{ 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( + [&]()-> OptimizePromptOutcome { + 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, OptimizePrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/optimize-prompt"); + request.SetResponseStreamFactory( + [&] { request.GetEventStreamDecoder().Reset(); return Aws::New(ALLOCATION_TAG, request.GetEventStreamDecoder()); } + ); + return OptimizePromptOutcome(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()}}); +} + RetrieveOutcome BedrockAgentRuntimeClient::Retrieve(const RetrieveRequest& request) const { AWS_OPERATION_GUARD(Retrieve); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/AnalyzePromptEvent.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/AnalyzePromptEvent.cpp new file mode 100644 index 00000000000..06ff5c780b9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/AnalyzePromptEvent.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 BedrockAgentRuntime +{ +namespace Model +{ + +AnalyzePromptEvent::AnalyzePromptEvent() : + m_messageHasBeenSet(false) +{ +} + +AnalyzePromptEvent::AnalyzePromptEvent(JsonView jsonValue) + : AnalyzePromptEvent() +{ + *this = jsonValue; +} + +AnalyzePromptEvent& AnalyzePromptEvent::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue AnalyzePromptEvent::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InputPrompt.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InputPrompt.cpp new file mode 100644 index 00000000000..98f79bcccf6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InputPrompt.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 BedrockAgentRuntime +{ +namespace Model +{ + +InputPrompt::InputPrompt() : + m_textPromptHasBeenSet(false) +{ +} + +InputPrompt::InputPrompt(JsonView jsonValue) + : InputPrompt() +{ + *this = jsonValue; +} + +InputPrompt& InputPrompt::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("textPrompt")) + { + m_textPrompt = jsonValue.GetObject("textPrompt"); + + m_textPromptHasBeenSet = true; + } + + return *this; +} + +JsonValue InputPrompt::Jsonize() const +{ + JsonValue payload; + + if(m_textPromptHasBeenSet) + { + payload.WithObject("textPrompt", m_textPrompt.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptHandler.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptHandler.cpp new file mode 100644 index 00000000000..38e64335d77 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptHandler.cpp @@ -0,0 +1,267 @@ +/** + * 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::BedrockAgentRuntime::Model; +using namespace Aws::Utils::Event; +using namespace Aws::Utils::Json; + +AWS_CORE_API extern const char MESSAGE_LOWER_CASE[]; +AWS_CORE_API extern const char MESSAGE_CAMEL_CASE[]; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + using namespace Aws::Client; + + static const char OPTIMIZEPROMPT_HANDLER_CLASS_TAG[] = "OptimizePromptHandler"; + + OptimizePromptHandler::OptimizePromptHandler() : EventStreamHandler() + { + m_onInitialResponse = [&](const OptimizePromptInitialResponse&, const Utils::Event::InitialResponseType eventType) + { + AWS_LOGSTREAM_TRACE(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, + "OptimizePrompt initial response received from " + << (eventType == Utils::Event::InitialResponseType::ON_EVENT ? "event" : "http headers")); + }; + + m_onAnalyzePromptEvent = [&](const AnalyzePromptEvent&) + { + AWS_LOGSTREAM_TRACE(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "AnalyzePromptEvent received."); + }; + + m_onOptimizedPromptEvent = [&](const OptimizedPromptEvent&) + { + AWS_LOGSTREAM_TRACE(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "OptimizedPromptEvent received."); + }; + + m_onError = [&](const AWSError& error) + { + AWS_LOGSTREAM_TRACE(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "BedrockAgentRuntime Errors received, " << error); + }; + } + + void OptimizePromptHandler::OnEvent() + { + // Handler internal error during event stream decoding. + if (!*this) + { + AWSError error = EventStreamErrorsMapper::GetAwsErrorForEventStreamError(GetInternalError()); + error.SetMessage(GetEventPayloadAsString()); + m_onError(AWSError(error)); + return; + } + + const auto& headers = GetEventHeaders(); + auto messageTypeHeaderIter = headers.find(MESSAGE_TYPE_HEADER); + if (messageTypeHeaderIter == headers.end()) + { + AWS_LOGSTREAM_WARN(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "Header: " << MESSAGE_TYPE_HEADER << " not found in the message."); + return; + } + + switch (Aws::Utils::Event::Message::GetMessageTypeForName(messageTypeHeaderIter->second.GetEventHeaderValueAsString())) + { + case Aws::Utils::Event::Message::MessageType::EVENT: + HandleEventInMessage(); + break; + case Aws::Utils::Event::Message::MessageType::REQUEST_LEVEL_ERROR: + case Aws::Utils::Event::Message::MessageType::REQUEST_LEVEL_EXCEPTION: + { + HandleErrorInMessage(); + break; + } + default: + AWS_LOGSTREAM_WARN(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, + "Unexpected message type: " << messageTypeHeaderIter->second.GetEventHeaderValueAsString()); + break; + } + } + + void OptimizePromptHandler::HandleEventInMessage() + { + const auto& headers = GetEventHeaders(); + auto eventTypeHeaderIter = headers.find(EVENT_TYPE_HEADER); + if (eventTypeHeaderIter == headers.end()) + { + AWS_LOGSTREAM_WARN(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "Header: " << EVENT_TYPE_HEADER << " not found in the message."); + return; + } + switch (OptimizePromptEventMapper::GetOptimizePromptEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) + { + + case OptimizePromptEventType::INITIAL_RESPONSE: + { + OptimizePromptInitialResponse event(GetEventHeadersAsHttpHeaders()); + m_onInitialResponse(event, Utils::Event::InitialResponseType::ON_EVENT); + break; + } + + case OptimizePromptEventType::ANALYZEPROMPTEVENT: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "Unable to generate a proper AnalyzePromptEvent object from the response in JSON format."); + break; + } + + m_onAnalyzePromptEvent(AnalyzePromptEvent{json.View()}); + break; + } + case OptimizePromptEventType::OPTIMIZEDPROMPTEVENT: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "Unable to generate a proper OptimizedPromptEvent object from the response in JSON format."); + break; + } + + m_onOptimizedPromptEvent(OptimizedPromptEvent{json.View()}); + break; + } + default: + AWS_LOGSTREAM_WARN(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, + "Unexpected event type: " << eventTypeHeaderIter->second.GetEventHeaderValueAsString()); + break; + } + } + + void OptimizePromptHandler::HandleErrorInMessage() + { + const auto& headers = GetEventHeaders(); + Aws::String errorCode; + Aws::String errorMessage; + auto errorHeaderIter = headers.find(ERROR_CODE_HEADER); + if (errorHeaderIter == headers.end()) + { + errorHeaderIter = headers.find(EXCEPTION_TYPE_HEADER); + if (errorHeaderIter == headers.end()) + { + AWS_LOGSTREAM_WARN(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, + "Error type was not found in the event message."); + return; + } + } + + errorCode = errorHeaderIter->second.GetEventHeaderValueAsString(); + errorHeaderIter = headers.find(ERROR_MESSAGE_HEADER); + if (errorHeaderIter == headers.end()) + { + errorHeaderIter = headers.find(EXCEPTION_TYPE_HEADER); + if (errorHeaderIter == headers.end()) + { + AWS_LOGSTREAM_ERROR(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, + "Error description was not found in the event message."); + return; + } + + JsonValue exceptionPayload(GetEventPayloadAsString()); + if (!exceptionPayload.WasParseSuccessful()) + { + AWS_LOGSTREAM_ERROR(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "Unable to generate a proper ValidationException object from the response in JSON format."); + auto contentTypeIter = headers.find(Aws::Utils::Event::CONTENT_TYPE_HEADER); + if (contentTypeIter != headers.end()) + { + AWS_LOGSTREAM_DEBUG(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "Error content-type: " << contentTypeIter->second.GetEventHeaderValueAsString()); + } + return; + } + + JsonView payloadView(exceptionPayload); + errorMessage = payloadView.ValueExists(MESSAGE_CAMEL_CASE) ? + payloadView.GetString(MESSAGE_CAMEL_CASE) : + payloadView.ValueExists(MESSAGE_LOWER_CASE) ? + payloadView.GetString(MESSAGE_LOWER_CASE) : ""; + + } + else + { + errorMessage = errorHeaderIter->second.GetEventHeaderValueAsString(); + } + MarshallError(errorCode, errorMessage); + } + + void OptimizePromptHandler::MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage) + { + BedrockAgentRuntimeErrorMarshaller errorMarshaller; + AWSError error; + + if (errorCode.empty()) + { + error = AWSError(CoreErrors::UNKNOWN, "", errorMessage, false); + } + else + { + error = errorMarshaller.FindErrorByName(errorCode.c_str()); + if (error.GetErrorType() != CoreErrors::UNKNOWN) + { + AWS_LOGSTREAM_WARN(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "Encountered AWSError '" << errorCode.c_str() << "': " << errorMessage.c_str()); + error.SetExceptionName(errorCode); + error.SetMessage(errorMessage); + } + else + { + AWS_LOGSTREAM_WARN(OPTIMIZEPROMPT_HANDLER_CLASS_TAG, "Encountered Unknown AWSError '" << errorCode.c_str() << "': " << errorMessage.c_str()); + error = AWSError(CoreErrors::UNKNOWN, errorCode, "Unable to parse ExceptionName: " + errorCode + " Message: " + errorMessage, false); + } + } + + m_onError(AWSError(error)); + } + +namespace OptimizePromptEventMapper +{ + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); + static const int ANALYZEPROMPTEVENT_HASH = Aws::Utils::HashingUtils::HashString("analyzePromptEvent"); + static const int OPTIMIZEDPROMPTEVENT_HASH = Aws::Utils::HashingUtils::HashString("optimizedPromptEvent"); + + OptimizePromptEventType GetOptimizePromptEventTypeForName(const Aws::String& name) + { + int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return OptimizePromptEventType::INITIAL_RESPONSE; + } + else if (hashCode == ANALYZEPROMPTEVENT_HASH) + { + return OptimizePromptEventType::ANALYZEPROMPTEVENT; + } + else if (hashCode == OPTIMIZEDPROMPTEVENT_HASH) + { + return OptimizePromptEventType::OPTIMIZEDPROMPTEVENT; + } + return OptimizePromptEventType::UNKNOWN; + } + + Aws::String GetNameForOptimizePromptEventType(OptimizePromptEventType value) + { + switch (value) + { + case OptimizePromptEventType::INITIAL_RESPONSE: + return "initial-response"; + case OptimizePromptEventType::ANALYZEPROMPTEVENT: + return "analyzePromptEvent"; + case OptimizePromptEventType::OPTIMIZEDPROMPTEVENT: + return "optimizedPromptEvent"; + default: + return "Unknown"; + } + } +} // namespace OptimizePromptEventMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptInitialResponse.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptInitialResponse.cpp new file mode 100644 index 00000000000..39e3f403342 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptInitialResponse.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +OptimizePromptInitialResponse::OptimizePromptInitialResponse() +{ +} + +OptimizePromptInitialResponse::OptimizePromptInitialResponse(JsonView jsonValue) +{ + *this = jsonValue; +} + +OptimizePromptInitialResponse& OptimizePromptInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +OptimizePromptInitialResponse::OptimizePromptInitialResponse(const Http::HeaderValueCollection& headers) : OptimizePromptInitialResponse() +{ + AWS_UNREFERENCED_PARAM(headers); +} + +JsonValue OptimizePromptInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptRequest.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptRequest.cpp new file mode 100644 index 00000000000..3bb0fbd2272 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizePromptRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::BedrockAgentRuntime::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +OptimizePromptRequest::OptimizePromptRequest() : + m_inputHasBeenSet(false), + m_targetModelIdHasBeenSet(false), + m_handler(), m_decoder(Aws::Utils::Event::EventStreamDecoder(&m_handler)) +{ +} + +Aws::String OptimizePromptRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_inputHasBeenSet) + { + payload.WithObject("input", m_input.Jsonize()); + + } + + if(m_targetModelIdHasBeenSet) + { + payload.WithString("targetModelId", m_targetModelId); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizedPrompt.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizedPrompt.cpp new file mode 100644 index 00000000000..bc81cbbbbb7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizedPrompt.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 BedrockAgentRuntime +{ +namespace Model +{ + +OptimizedPrompt::OptimizedPrompt() : + m_textPromptHasBeenSet(false) +{ +} + +OptimizedPrompt::OptimizedPrompt(JsonView jsonValue) + : OptimizedPrompt() +{ + *this = jsonValue; +} + +OptimizedPrompt& OptimizedPrompt::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("textPrompt")) + { + m_textPrompt = jsonValue.GetObject("textPrompt"); + + m_textPromptHasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizedPrompt::Jsonize() const +{ + JsonValue payload; + + if(m_textPromptHasBeenSet) + { + payload.WithObject("textPrompt", m_textPrompt.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizedPromptEvent.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizedPromptEvent.cpp new file mode 100644 index 00000000000..d52e9d3ba03 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/OptimizedPromptEvent.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 BedrockAgentRuntime +{ +namespace Model +{ + +OptimizedPromptEvent::OptimizedPromptEvent() : + m_optimizedPromptHasBeenSet(false) +{ +} + +OptimizedPromptEvent::OptimizedPromptEvent(JsonView jsonValue) + : OptimizedPromptEvent() +{ + *this = jsonValue; +} + +OptimizedPromptEvent& OptimizedPromptEvent::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("optimizedPrompt")) + { + m_optimizedPrompt = jsonValue.GetObject("optimizedPrompt"); + + m_optimizedPromptHasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizedPromptEvent::Jsonize() const +{ + JsonValue payload; + + if(m_optimizedPromptHasBeenSet) + { + payload.WithObject("optimizedPrompt", m_optimizedPrompt.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/TextPrompt.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/TextPrompt.cpp new file mode 100644 index 00000000000..e50dc8a8c0a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/TextPrompt.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 BedrockAgentRuntime +{ +namespace Model +{ + +TextPrompt::TextPrompt() : + m_textHasBeenSet(false) +{ +} + +TextPrompt::TextPrompt(JsonView jsonValue) + : TextPrompt() +{ + *this = jsonValue; +} + +TextPrompt& TextPrompt::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("text")) + { + m_text = jsonValue.GetString("text"); + + m_textHasBeenSet = true; + } + + return *this; +} + +JsonValue TextPrompt::Jsonize() const +{ + JsonValue payload; + + if(m_textHasBeenSet) + { + payload.WithString("text", m_text); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontClient.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontClient.h index 97d2bc07c33..9788c3d7939 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontClient.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontClient.h @@ -158,6 +158,31 @@ namespace CloudFront return SubmitAsync(&CloudFrontClient::CopyDistribution2020_05_31, request, handler, context); } + /** + *

Creates an Anycast static IP list.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateAnycastIpList2020_05_31Outcome CreateAnycastIpList2020_05_31(const Model::CreateAnycastIpList2020_05_31Request& request) const; + + /** + * A Callable wrapper for CreateAnycastIpList2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateAnycastIpList2020_05_31OutcomeCallable CreateAnycastIpList2020_05_31Callable(const CreateAnycastIpList2020_05_31RequestT& request) const + { + return SubmitCallable(&CloudFrontClient::CreateAnycastIpList2020_05_31, request); + } + + /** + * An Async wrapper for CreateAnycastIpList2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateAnycastIpList2020_05_31Async(const CreateAnycastIpList2020_05_31RequestT& request, const CreateAnycastIpList2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFrontClient::CreateAnycastIpList2020_05_31, request, handler, context); + } + /** *

Creates a cache policy.

After you create a cache policy, you can * attach it to one or more cache behaviors. When it's attached to a cache @@ -759,6 +784,56 @@ namespace CloudFront return SubmitAsync(&CloudFrontClient::CreateStreamingDistributionWithTags2020_05_31, request, handler, context); } + /** + *

Create an Amazon CloudFront VPC origin.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateVpcOrigin2020_05_31Outcome CreateVpcOrigin2020_05_31(const Model::CreateVpcOrigin2020_05_31Request& request) const; + + /** + * A Callable wrapper for CreateVpcOrigin2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateVpcOrigin2020_05_31OutcomeCallable CreateVpcOrigin2020_05_31Callable(const CreateVpcOrigin2020_05_31RequestT& request) const + { + return SubmitCallable(&CloudFrontClient::CreateVpcOrigin2020_05_31, request); + } + + /** + * An Async wrapper for CreateVpcOrigin2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateVpcOrigin2020_05_31Async(const CreateVpcOrigin2020_05_31RequestT& request, const CreateVpcOrigin2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFrontClient::CreateVpcOrigin2020_05_31, request, handler, context); + } + + /** + *

Deletes an Anycast static IP list.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteAnycastIpList2020_05_31Outcome DeleteAnycastIpList2020_05_31(const Model::DeleteAnycastIpList2020_05_31Request& request) const; + + /** + * A Callable wrapper for DeleteAnycastIpList2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteAnycastIpList2020_05_31OutcomeCallable DeleteAnycastIpList2020_05_31Callable(const DeleteAnycastIpList2020_05_31RequestT& request) const + { + return SubmitCallable(&CloudFrontClient::DeleteAnycastIpList2020_05_31, request); + } + + /** + * An Async wrapper for DeleteAnycastIpList2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteAnycastIpList2020_05_31Async(const DeleteAnycastIpList2020_05_31RequestT& request, const DeleteAnycastIpList2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFrontClient::DeleteAnycastIpList2020_05_31, request, handler, context); + } + /** *

Deletes a cache policy.

You cannot delete a cache policy if it's * attached to a cache behavior. First update your distributions to remove the @@ -1230,6 +1305,31 @@ namespace CloudFront return SubmitAsync(&CloudFrontClient::DeleteStreamingDistribution2020_05_31, request, handler, context); } + /** + *

Delete an Amazon CloudFront VPC origin.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteVpcOrigin2020_05_31Outcome DeleteVpcOrigin2020_05_31(const Model::DeleteVpcOrigin2020_05_31Request& request) const; + + /** + * A Callable wrapper for DeleteVpcOrigin2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteVpcOrigin2020_05_31OutcomeCallable DeleteVpcOrigin2020_05_31Callable(const DeleteVpcOrigin2020_05_31RequestT& request) const + { + return SubmitCallable(&CloudFrontClient::DeleteVpcOrigin2020_05_31, request); + } + + /** + * An Async wrapper for DeleteVpcOrigin2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteVpcOrigin2020_05_31Async(const DeleteVpcOrigin2020_05_31RequestT& request, const DeleteVpcOrigin2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFrontClient::DeleteVpcOrigin2020_05_31, request, handler, context); + } + /** *

Gets configuration information and metadata about a CloudFront function, but * not the function's code. To get a function's code, use @@ -1285,6 +1385,31 @@ namespace CloudFront return SubmitAsync(&CloudFrontClient::DescribeKeyValueStore2020_05_31, request, handler, context); } + /** + *

Gets an Anycast static IP list.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetAnycastIpList2020_05_31Outcome GetAnycastIpList2020_05_31(const Model::GetAnycastIpList2020_05_31Request& request) const; + + /** + * A Callable wrapper for GetAnycastIpList2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetAnycastIpList2020_05_31OutcomeCallable GetAnycastIpList2020_05_31Callable(const GetAnycastIpList2020_05_31RequestT& request) const + { + return SubmitCallable(&CloudFrontClient::GetAnycastIpList2020_05_31, request); + } + + /** + * An Async wrapper for GetAnycastIpList2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetAnycastIpList2020_05_31Async(const GetAnycastIpList2020_05_31RequestT& request, const GetAnycastIpList2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFrontClient::GetAnycastIpList2020_05_31, request, handler, context); + } + /** *

Gets a cache policy, including the following metadata:

  • The * policy's identifier.

  • The date and time when the policy was @@ -2057,6 +2182,57 @@ namespace CloudFront return SubmitAsync(&CloudFrontClient::GetStreamingDistributionConfig2020_05_31, request, handler, context); } + /** + *

    Get the details of an Amazon CloudFront VPC origin.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::GetVpcOrigin2020_05_31Outcome GetVpcOrigin2020_05_31(const Model::GetVpcOrigin2020_05_31Request& request) const; + + /** + * A Callable wrapper for GetVpcOrigin2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetVpcOrigin2020_05_31OutcomeCallable GetVpcOrigin2020_05_31Callable(const GetVpcOrigin2020_05_31RequestT& request) const + { + return SubmitCallable(&CloudFrontClient::GetVpcOrigin2020_05_31, request); + } + + /** + * An Async wrapper for GetVpcOrigin2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetVpcOrigin2020_05_31Async(const GetVpcOrigin2020_05_31RequestT& request, const GetVpcOrigin2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFrontClient::GetVpcOrigin2020_05_31, request, handler, context); + } + + /** + *

    Lists your Anycast static IP lists.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListAnycastIpLists2020_05_31Outcome ListAnycastIpLists2020_05_31(const Model::ListAnycastIpLists2020_05_31Request& request = {}) const; + + /** + * A Callable wrapper for ListAnycastIpLists2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListAnycastIpLists2020_05_31OutcomeCallable ListAnycastIpLists2020_05_31Callable(const ListAnycastIpLists2020_05_31RequestT& request = {}) const + { + return SubmitCallable(&CloudFrontClient::ListAnycastIpLists2020_05_31, request); + } + + /** + * An Async wrapper for ListAnycastIpLists2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListAnycastIpLists2020_05_31Async(const ListAnycastIpLists2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListAnycastIpLists2020_05_31RequestT& request = {}) const + { + return SubmitAsync(&CloudFrontClient::ListAnycastIpLists2020_05_31, request, handler, context); + } + /** *

    Gets a list of cache policies.

    You can optionally apply a filter to * return only the managed policies created by Amazon Web Services, or only the @@ -2223,6 +2399,32 @@ namespace CloudFront return SubmitAsync(&CloudFrontClient::ListDistributions2020_05_31, request, handler, context); } + /** + *

    Lists the distributions in your account that are associated with the + * specified AnycastIpListId.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListDistributionsByAnycastIpListId2020_05_31Outcome ListDistributionsByAnycastIpListId2020_05_31(const Model::ListDistributionsByAnycastIpListId2020_05_31Request& request) const; + + /** + * A Callable wrapper for ListDistributionsByAnycastIpListId2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListDistributionsByAnycastIpListId2020_05_31OutcomeCallable ListDistributionsByAnycastIpListId2020_05_31Callable(const ListDistributionsByAnycastIpListId2020_05_31RequestT& request) const + { + return SubmitCallable(&CloudFrontClient::ListDistributionsByAnycastIpListId2020_05_31, request); + } + + /** + * An Async wrapper for ListDistributionsByAnycastIpListId2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListDistributionsByAnycastIpListId2020_05_31Async(const ListDistributionsByAnycastIpListId2020_05_31RequestT& request, const ListDistributionsByAnycastIpListId2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFrontClient::ListDistributionsByAnycastIpListId2020_05_31, request, handler, context); + } + /** *

    Gets a list of distribution IDs for distributions that have a cache behavior * that's associated with the specified cache policy.

    You can optionally @@ -2386,6 +2588,32 @@ namespace CloudFront return SubmitAsync(&CloudFrontClient::ListDistributionsByResponseHeadersPolicyId2020_05_31, request, handler, context); } + /** + *

    List CloudFront distributions by their VPC origin ID.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::ListDistributionsByVpcOriginId2020_05_31Outcome ListDistributionsByVpcOriginId2020_05_31(const Model::ListDistributionsByVpcOriginId2020_05_31Request& request) const; + + /** + * A Callable wrapper for ListDistributionsByVpcOriginId2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListDistributionsByVpcOriginId2020_05_31OutcomeCallable ListDistributionsByVpcOriginId2020_05_31Callable(const ListDistributionsByVpcOriginId2020_05_31RequestT& request) const + { + return SubmitCallable(&CloudFrontClient::ListDistributionsByVpcOriginId2020_05_31, request); + } + + /** + * An Async wrapper for ListDistributionsByVpcOriginId2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListDistributionsByVpcOriginId2020_05_31Async(const ListDistributionsByVpcOriginId2020_05_31RequestT& request, const ListDistributionsByVpcOriginId2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFrontClient::ListDistributionsByVpcOriginId2020_05_31, request, handler, context); + } + /** *

    List the distributions that are associated with a specified WAF web * ACL.

    See Also:

    List the CloudFront VPC origins in your account.

    See Also:

    + *
    AWS + * API Reference

    + */ + virtual Model::ListVpcOrigins2020_05_31Outcome ListVpcOrigins2020_05_31(const Model::ListVpcOrigins2020_05_31Request& request = {}) const; + + /** + * A Callable wrapper for ListVpcOrigins2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListVpcOrigins2020_05_31OutcomeCallable ListVpcOrigins2020_05_31Callable(const ListVpcOrigins2020_05_31RequestT& request = {}) const + { + return SubmitCallable(&CloudFrontClient::ListVpcOrigins2020_05_31, request); + } + + /** + * An Async wrapper for ListVpcOrigins2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListVpcOrigins2020_05_31Async(const ListVpcOrigins2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListVpcOrigins2020_05_31RequestT& request = {}) const + { + return SubmitAsync(&CloudFrontClient::ListVpcOrigins2020_05_31, request, handler, context); + } + /** *

    Publishes a CloudFront function by copying the function code from the * DEVELOPMENT stage to LIVE. This automatically updates @@ -3411,6 +3665,32 @@ namespace CloudFront return SubmitAsync(&CloudFrontClient::UpdateStreamingDistribution2020_05_31, request, handler, context); } + /** + *

    Update an Amazon CloudFront VPC origin in your account.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateVpcOrigin2020_05_31Outcome UpdateVpcOrigin2020_05_31(const Model::UpdateVpcOrigin2020_05_31Request& request) const; + + /** + * A Callable wrapper for UpdateVpcOrigin2020_05_31 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateVpcOrigin2020_05_31OutcomeCallable UpdateVpcOrigin2020_05_31Callable(const UpdateVpcOrigin2020_05_31RequestT& request) const + { + return SubmitCallable(&CloudFrontClient::UpdateVpcOrigin2020_05_31, request); + } + + /** + * An Async wrapper for UpdateVpcOrigin2020_05_31 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateVpcOrigin2020_05_31Async(const UpdateVpcOrigin2020_05_31RequestT& request, const UpdateVpcOrigin2020_05_31ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFrontClient::UpdateVpcOrigin2020_05_31, request, handler, context); + } + void OverrideEndpoint(const Aws::String& endpoint); std::shared_ptr& accessEndpointProvider(); diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontErrors.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontErrors.h index 0bd898d5f78..6466d7d9c97 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontErrors.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontErrors.h @@ -52,6 +52,7 @@ enum class CloudFrontErrors CACHE_POLICY_IN_USE, CANNOT_CHANGE_IMMUTABLE_PUBLIC_KEY_FIELDS, CANNOT_DELETE_ENTITY_WHILE_IN_USE, + CANNOT_UPDATE_ENTITY_WHILE_IN_USE, CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_ALREADY_EXISTS, CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_IN_USE, CONTINUOUS_DEPLOYMENT_POLICY_ALREADY_EXISTS, diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontServiceClientModel.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontServiceClientModel.h index b47f2b5113d..4287145ca66 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontServiceClientModel.h @@ -19,6 +19,7 @@ /* Service model headers required in CloudFrontClient header */ #include +#include #include #include #include @@ -38,9 +39,12 @@ #include #include #include +#include #include +#include #include #include +#include #include #include #include @@ -69,16 +73,20 @@ #include #include #include +#include +#include #include #include #include #include #include +#include #include #include #include #include #include +#include #include #include #include @@ -93,6 +101,7 @@ #include #include #include +#include #include #include #include @@ -111,6 +120,7 @@ #include #include #include +#include #include #include #include @@ -119,6 +129,8 @@ #include #include #include +#include +#include #include #include #include @@ -173,6 +185,7 @@ namespace Aws /* Service model forward declarations required in CloudFrontClient header */ class AssociateAlias2020_05_31Request; class CopyDistribution2020_05_31Request; + class CreateAnycastIpList2020_05_31Request; class CreateCachePolicy2020_05_31Request; class CreateCloudFrontOriginAccessIdentity2020_05_31Request; class CreateContinuousDeploymentPolicy2020_05_31Request; @@ -192,6 +205,8 @@ namespace Aws class CreateResponseHeadersPolicy2020_05_31Request; class CreateStreamingDistribution2020_05_31Request; class CreateStreamingDistributionWithTags2020_05_31Request; + class CreateVpcOrigin2020_05_31Request; + class DeleteAnycastIpList2020_05_31Request; class DeleteCachePolicy2020_05_31Request; class DeleteCloudFrontOriginAccessIdentity2020_05_31Request; class DeleteContinuousDeploymentPolicy2020_05_31Request; @@ -208,8 +223,10 @@ namespace Aws class DeleteRealtimeLogConfig2020_05_31Request; class DeleteResponseHeadersPolicy2020_05_31Request; class DeleteStreamingDistribution2020_05_31Request; + class DeleteVpcOrigin2020_05_31Request; class DescribeFunction2020_05_31Request; class DescribeKeyValueStore2020_05_31Request; + class GetAnycastIpList2020_05_31Request; class GetCachePolicy2020_05_31Request; class GetCachePolicyConfig2020_05_31Request; class GetCloudFrontOriginAccessIdentity2020_05_31Request; @@ -238,16 +255,20 @@ namespace Aws class GetResponseHeadersPolicyConfig2020_05_31Request; class GetStreamingDistribution2020_05_31Request; class GetStreamingDistributionConfig2020_05_31Request; + class GetVpcOrigin2020_05_31Request; + class ListAnycastIpLists2020_05_31Request; class ListCachePolicies2020_05_31Request; class ListCloudFrontOriginAccessIdentities2020_05_31Request; class ListConflictingAliases2020_05_31Request; class ListContinuousDeploymentPolicies2020_05_31Request; class ListDistributions2020_05_31Request; + class ListDistributionsByAnycastIpListId2020_05_31Request; class ListDistributionsByCachePolicyId2020_05_31Request; class ListDistributionsByKeyGroup2020_05_31Request; class ListDistributionsByOriginRequestPolicyId2020_05_31Request; class ListDistributionsByRealtimeLogConfig2020_05_31Request; class ListDistributionsByResponseHeadersPolicyId2020_05_31Request; + class ListDistributionsByVpcOriginId2020_05_31Request; class ListDistributionsByWebACLId2020_05_31Request; class ListFieldLevelEncryptionConfigs2020_05_31Request; class ListFieldLevelEncryptionProfiles2020_05_31Request; @@ -262,6 +283,7 @@ namespace Aws class ListResponseHeadersPolicies2020_05_31Request; class ListStreamingDistributions2020_05_31Request; class ListTagsForResource2020_05_31Request; + class ListVpcOrigins2020_05_31Request; class PublishFunction2020_05_31Request; class TagResource2020_05_31Request; class TestFunction2020_05_31Request; @@ -282,11 +304,13 @@ namespace Aws class UpdateRealtimeLogConfig2020_05_31Request; class UpdateResponseHeadersPolicy2020_05_31Request; class UpdateStreamingDistribution2020_05_31Request; + class UpdateVpcOrigin2020_05_31Request; /* End of service model forward declarations required in CloudFrontClient header */ /* Service model Outcome class definitions */ typedef Aws::Utils::Outcome AssociateAlias2020_05_31Outcome; typedef Aws::Utils::Outcome CopyDistribution2020_05_31Outcome; + typedef Aws::Utils::Outcome CreateAnycastIpList2020_05_31Outcome; typedef Aws::Utils::Outcome CreateCachePolicy2020_05_31Outcome; typedef Aws::Utils::Outcome CreateCloudFrontOriginAccessIdentity2020_05_31Outcome; typedef Aws::Utils::Outcome CreateContinuousDeploymentPolicy2020_05_31Outcome; @@ -306,6 +330,8 @@ namespace Aws typedef Aws::Utils::Outcome CreateResponseHeadersPolicy2020_05_31Outcome; typedef Aws::Utils::Outcome CreateStreamingDistribution2020_05_31Outcome; typedef Aws::Utils::Outcome CreateStreamingDistributionWithTags2020_05_31Outcome; + typedef Aws::Utils::Outcome CreateVpcOrigin2020_05_31Outcome; + typedef Aws::Utils::Outcome DeleteAnycastIpList2020_05_31Outcome; typedef Aws::Utils::Outcome DeleteCachePolicy2020_05_31Outcome; typedef Aws::Utils::Outcome DeleteCloudFrontOriginAccessIdentity2020_05_31Outcome; typedef Aws::Utils::Outcome DeleteContinuousDeploymentPolicy2020_05_31Outcome; @@ -322,8 +348,10 @@ namespace Aws typedef Aws::Utils::Outcome DeleteRealtimeLogConfig2020_05_31Outcome; typedef Aws::Utils::Outcome DeleteResponseHeadersPolicy2020_05_31Outcome; typedef Aws::Utils::Outcome DeleteStreamingDistribution2020_05_31Outcome; + typedef Aws::Utils::Outcome DeleteVpcOrigin2020_05_31Outcome; typedef Aws::Utils::Outcome DescribeFunction2020_05_31Outcome; typedef Aws::Utils::Outcome DescribeKeyValueStore2020_05_31Outcome; + typedef Aws::Utils::Outcome GetAnycastIpList2020_05_31Outcome; typedef Aws::Utils::Outcome GetCachePolicy2020_05_31Outcome; typedef Aws::Utils::Outcome GetCachePolicyConfig2020_05_31Outcome; typedef Aws::Utils::Outcome GetCloudFrontOriginAccessIdentity2020_05_31Outcome; @@ -352,16 +380,20 @@ namespace Aws typedef Aws::Utils::Outcome GetResponseHeadersPolicyConfig2020_05_31Outcome; typedef Aws::Utils::Outcome GetStreamingDistribution2020_05_31Outcome; typedef Aws::Utils::Outcome GetStreamingDistributionConfig2020_05_31Outcome; + typedef Aws::Utils::Outcome GetVpcOrigin2020_05_31Outcome; + typedef Aws::Utils::Outcome ListAnycastIpLists2020_05_31Outcome; typedef Aws::Utils::Outcome ListCachePolicies2020_05_31Outcome; typedef Aws::Utils::Outcome ListCloudFrontOriginAccessIdentities2020_05_31Outcome; typedef Aws::Utils::Outcome ListConflictingAliases2020_05_31Outcome; typedef Aws::Utils::Outcome ListContinuousDeploymentPolicies2020_05_31Outcome; typedef Aws::Utils::Outcome ListDistributions2020_05_31Outcome; + typedef Aws::Utils::Outcome ListDistributionsByAnycastIpListId2020_05_31Outcome; typedef Aws::Utils::Outcome ListDistributionsByCachePolicyId2020_05_31Outcome; typedef Aws::Utils::Outcome ListDistributionsByKeyGroup2020_05_31Outcome; typedef Aws::Utils::Outcome ListDistributionsByOriginRequestPolicyId2020_05_31Outcome; typedef Aws::Utils::Outcome ListDistributionsByRealtimeLogConfig2020_05_31Outcome; typedef Aws::Utils::Outcome ListDistributionsByResponseHeadersPolicyId2020_05_31Outcome; + typedef Aws::Utils::Outcome ListDistributionsByVpcOriginId2020_05_31Outcome; typedef Aws::Utils::Outcome ListDistributionsByWebACLId2020_05_31Outcome; typedef Aws::Utils::Outcome ListFieldLevelEncryptionConfigs2020_05_31Outcome; typedef Aws::Utils::Outcome ListFieldLevelEncryptionProfiles2020_05_31Outcome; @@ -376,6 +408,7 @@ namespace Aws typedef Aws::Utils::Outcome ListResponseHeadersPolicies2020_05_31Outcome; typedef Aws::Utils::Outcome ListStreamingDistributions2020_05_31Outcome; typedef Aws::Utils::Outcome ListTagsForResource2020_05_31Outcome; + typedef Aws::Utils::Outcome ListVpcOrigins2020_05_31Outcome; typedef Aws::Utils::Outcome PublishFunction2020_05_31Outcome; typedef Aws::Utils::Outcome TagResource2020_05_31Outcome; typedef Aws::Utils::Outcome TestFunction2020_05_31Outcome; @@ -396,11 +429,13 @@ namespace Aws typedef Aws::Utils::Outcome UpdateRealtimeLogConfig2020_05_31Outcome; typedef Aws::Utils::Outcome UpdateResponseHeadersPolicy2020_05_31Outcome; typedef Aws::Utils::Outcome UpdateStreamingDistribution2020_05_31Outcome; + typedef Aws::Utils::Outcome UpdateVpcOrigin2020_05_31Outcome; /* End of service model Outcome class definitions */ /* Service model Outcome callable definitions */ typedef std::future AssociateAlias2020_05_31OutcomeCallable; typedef std::future CopyDistribution2020_05_31OutcomeCallable; + typedef std::future CreateAnycastIpList2020_05_31OutcomeCallable; typedef std::future CreateCachePolicy2020_05_31OutcomeCallable; typedef std::future CreateCloudFrontOriginAccessIdentity2020_05_31OutcomeCallable; typedef std::future CreateContinuousDeploymentPolicy2020_05_31OutcomeCallable; @@ -420,6 +455,8 @@ namespace Aws typedef std::future CreateResponseHeadersPolicy2020_05_31OutcomeCallable; typedef std::future CreateStreamingDistribution2020_05_31OutcomeCallable; typedef std::future CreateStreamingDistributionWithTags2020_05_31OutcomeCallable; + typedef std::future CreateVpcOrigin2020_05_31OutcomeCallable; + typedef std::future DeleteAnycastIpList2020_05_31OutcomeCallable; typedef std::future DeleteCachePolicy2020_05_31OutcomeCallable; typedef std::future DeleteCloudFrontOriginAccessIdentity2020_05_31OutcomeCallable; typedef std::future DeleteContinuousDeploymentPolicy2020_05_31OutcomeCallable; @@ -436,8 +473,10 @@ namespace Aws typedef std::future DeleteRealtimeLogConfig2020_05_31OutcomeCallable; typedef std::future DeleteResponseHeadersPolicy2020_05_31OutcomeCallable; typedef std::future DeleteStreamingDistribution2020_05_31OutcomeCallable; + typedef std::future DeleteVpcOrigin2020_05_31OutcomeCallable; typedef std::future DescribeFunction2020_05_31OutcomeCallable; typedef std::future DescribeKeyValueStore2020_05_31OutcomeCallable; + typedef std::future GetAnycastIpList2020_05_31OutcomeCallable; typedef std::future GetCachePolicy2020_05_31OutcomeCallable; typedef std::future GetCachePolicyConfig2020_05_31OutcomeCallable; typedef std::future GetCloudFrontOriginAccessIdentity2020_05_31OutcomeCallable; @@ -466,16 +505,20 @@ namespace Aws typedef std::future GetResponseHeadersPolicyConfig2020_05_31OutcomeCallable; typedef std::future GetStreamingDistribution2020_05_31OutcomeCallable; typedef std::future GetStreamingDistributionConfig2020_05_31OutcomeCallable; + typedef std::future GetVpcOrigin2020_05_31OutcomeCallable; + typedef std::future ListAnycastIpLists2020_05_31OutcomeCallable; typedef std::future ListCachePolicies2020_05_31OutcomeCallable; typedef std::future ListCloudFrontOriginAccessIdentities2020_05_31OutcomeCallable; typedef std::future ListConflictingAliases2020_05_31OutcomeCallable; typedef std::future ListContinuousDeploymentPolicies2020_05_31OutcomeCallable; typedef std::future ListDistributions2020_05_31OutcomeCallable; + typedef std::future ListDistributionsByAnycastIpListId2020_05_31OutcomeCallable; typedef std::future ListDistributionsByCachePolicyId2020_05_31OutcomeCallable; typedef std::future ListDistributionsByKeyGroup2020_05_31OutcomeCallable; typedef std::future ListDistributionsByOriginRequestPolicyId2020_05_31OutcomeCallable; typedef std::future ListDistributionsByRealtimeLogConfig2020_05_31OutcomeCallable; typedef std::future ListDistributionsByResponseHeadersPolicyId2020_05_31OutcomeCallable; + typedef std::future ListDistributionsByVpcOriginId2020_05_31OutcomeCallable; typedef std::future ListDistributionsByWebACLId2020_05_31OutcomeCallable; typedef std::future ListFieldLevelEncryptionConfigs2020_05_31OutcomeCallable; typedef std::future ListFieldLevelEncryptionProfiles2020_05_31OutcomeCallable; @@ -490,6 +533,7 @@ namespace Aws typedef std::future ListResponseHeadersPolicies2020_05_31OutcomeCallable; typedef std::future ListStreamingDistributions2020_05_31OutcomeCallable; typedef std::future ListTagsForResource2020_05_31OutcomeCallable; + typedef std::future ListVpcOrigins2020_05_31OutcomeCallable; typedef std::future PublishFunction2020_05_31OutcomeCallable; typedef std::future TagResource2020_05_31OutcomeCallable; typedef std::future TestFunction2020_05_31OutcomeCallable; @@ -510,6 +554,7 @@ namespace Aws typedef std::future UpdateRealtimeLogConfig2020_05_31OutcomeCallable; typedef std::future UpdateResponseHeadersPolicy2020_05_31OutcomeCallable; typedef std::future UpdateStreamingDistribution2020_05_31OutcomeCallable; + typedef std::future UpdateVpcOrigin2020_05_31OutcomeCallable; /* End of service model Outcome callable definitions */ } // namespace Model @@ -518,6 +563,7 @@ namespace Aws /* Service model async handlers definitions */ typedef std::function&) > AssociateAlias2020_05_31ResponseReceivedHandler; typedef std::function&) > CopyDistribution2020_05_31ResponseReceivedHandler; + typedef std::function&) > CreateAnycastIpList2020_05_31ResponseReceivedHandler; typedef std::function&) > CreateCachePolicy2020_05_31ResponseReceivedHandler; typedef std::function&) > CreateCloudFrontOriginAccessIdentity2020_05_31ResponseReceivedHandler; typedef std::function&) > CreateContinuousDeploymentPolicy2020_05_31ResponseReceivedHandler; @@ -537,6 +583,8 @@ namespace Aws typedef std::function&) > CreateResponseHeadersPolicy2020_05_31ResponseReceivedHandler; typedef std::function&) > CreateStreamingDistribution2020_05_31ResponseReceivedHandler; typedef std::function&) > CreateStreamingDistributionWithTags2020_05_31ResponseReceivedHandler; + typedef std::function&) > CreateVpcOrigin2020_05_31ResponseReceivedHandler; + typedef std::function&) > DeleteAnycastIpList2020_05_31ResponseReceivedHandler; typedef std::function&) > DeleteCachePolicy2020_05_31ResponseReceivedHandler; typedef std::function&) > DeleteCloudFrontOriginAccessIdentity2020_05_31ResponseReceivedHandler; typedef std::function&) > DeleteContinuousDeploymentPolicy2020_05_31ResponseReceivedHandler; @@ -553,8 +601,10 @@ namespace Aws typedef std::function&) > DeleteRealtimeLogConfig2020_05_31ResponseReceivedHandler; typedef std::function&) > DeleteResponseHeadersPolicy2020_05_31ResponseReceivedHandler; typedef std::function&) > DeleteStreamingDistribution2020_05_31ResponseReceivedHandler; + typedef std::function&) > DeleteVpcOrigin2020_05_31ResponseReceivedHandler; typedef std::function&) > DescribeFunction2020_05_31ResponseReceivedHandler; typedef std::function&) > DescribeKeyValueStore2020_05_31ResponseReceivedHandler; + typedef std::function&) > GetAnycastIpList2020_05_31ResponseReceivedHandler; typedef std::function&) > GetCachePolicy2020_05_31ResponseReceivedHandler; typedef std::function&) > GetCachePolicyConfig2020_05_31ResponseReceivedHandler; typedef std::function&) > GetCloudFrontOriginAccessIdentity2020_05_31ResponseReceivedHandler; @@ -583,16 +633,20 @@ namespace Aws typedef std::function&) > GetResponseHeadersPolicyConfig2020_05_31ResponseReceivedHandler; typedef std::function&) > GetStreamingDistribution2020_05_31ResponseReceivedHandler; typedef std::function&) > GetStreamingDistributionConfig2020_05_31ResponseReceivedHandler; + typedef std::function&) > GetVpcOrigin2020_05_31ResponseReceivedHandler; + typedef std::function&) > ListAnycastIpLists2020_05_31ResponseReceivedHandler; typedef std::function&) > ListCachePolicies2020_05_31ResponseReceivedHandler; typedef std::function&) > ListCloudFrontOriginAccessIdentities2020_05_31ResponseReceivedHandler; typedef std::function&) > ListConflictingAliases2020_05_31ResponseReceivedHandler; typedef std::function&) > ListContinuousDeploymentPolicies2020_05_31ResponseReceivedHandler; typedef std::function&) > ListDistributions2020_05_31ResponseReceivedHandler; + typedef std::function&) > ListDistributionsByAnycastIpListId2020_05_31ResponseReceivedHandler; typedef std::function&) > ListDistributionsByCachePolicyId2020_05_31ResponseReceivedHandler; typedef std::function&) > ListDistributionsByKeyGroup2020_05_31ResponseReceivedHandler; typedef std::function&) > ListDistributionsByOriginRequestPolicyId2020_05_31ResponseReceivedHandler; typedef std::function&) > ListDistributionsByRealtimeLogConfig2020_05_31ResponseReceivedHandler; typedef std::function&) > ListDistributionsByResponseHeadersPolicyId2020_05_31ResponseReceivedHandler; + typedef std::function&) > ListDistributionsByVpcOriginId2020_05_31ResponseReceivedHandler; typedef std::function&) > ListDistributionsByWebACLId2020_05_31ResponseReceivedHandler; typedef std::function&) > ListFieldLevelEncryptionConfigs2020_05_31ResponseReceivedHandler; typedef std::function&) > ListFieldLevelEncryptionProfiles2020_05_31ResponseReceivedHandler; @@ -607,6 +661,7 @@ namespace Aws typedef std::function&) > ListResponseHeadersPolicies2020_05_31ResponseReceivedHandler; typedef std::function&) > ListStreamingDistributions2020_05_31ResponseReceivedHandler; typedef std::function&) > ListTagsForResource2020_05_31ResponseReceivedHandler; + typedef std::function&) > ListVpcOrigins2020_05_31ResponseReceivedHandler; typedef std::function&) > PublishFunction2020_05_31ResponseReceivedHandler; typedef std::function&) > TagResource2020_05_31ResponseReceivedHandler; typedef std::function&) > TestFunction2020_05_31ResponseReceivedHandler; @@ -627,6 +682,7 @@ namespace Aws typedef std::function&) > UpdateRealtimeLogConfig2020_05_31ResponseReceivedHandler; typedef std::function&) > UpdateResponseHeadersPolicy2020_05_31ResponseReceivedHandler; typedef std::function&) > UpdateStreamingDistribution2020_05_31ResponseReceivedHandler; + typedef std::function&) > UpdateVpcOrigin2020_05_31ResponseReceivedHandler; /* End of service model async handlers definitions */ } // namespace CloudFront } // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpList.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpList.h new file mode 100644 index 00000000000..6278ce07038 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpList.h @@ -0,0 +1,161 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + + /** + *

    An Anycast static IP list.

    See Also:

    AWS + * API Reference

    + */ + class AnycastIpList + { + public: + AWS_CLOUDFRONT_API AnycastIpList(); + AWS_CLOUDFRONT_API AnycastIpList(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDFRONT_API AnycastIpList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + ///@{ + /** + *

    The ID of the Anycast static IP list.

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

    The name of the Anycast static IP list.

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

    The status of the Anycast static IP list. Valid values: + * Deployed, Deploying, or Failed.

    + */ + inline const Aws::String& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } + inline AnycastIpList& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} + inline AnycastIpList& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} + inline AnycastIpList& WithStatus(const char* value) { SetStatus(value); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the Anycast static IP list.

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

    The static IP addresses that are allocated to the Anycast static IP list.

    + */ + inline const Aws::Vector& GetAnycastIps() const{ return m_anycastIps; } + inline bool AnycastIpsHasBeenSet() const { return m_anycastIpsHasBeenSet; } + inline void SetAnycastIps(const Aws::Vector& value) { m_anycastIpsHasBeenSet = true; m_anycastIps = value; } + inline void SetAnycastIps(Aws::Vector&& value) { m_anycastIpsHasBeenSet = true; m_anycastIps = std::move(value); } + inline AnycastIpList& WithAnycastIps(const Aws::Vector& value) { SetAnycastIps(value); return *this;} + inline AnycastIpList& WithAnycastIps(Aws::Vector&& value) { SetAnycastIps(std::move(value)); return *this;} + inline AnycastIpList& AddAnycastIps(const Aws::String& value) { m_anycastIpsHasBeenSet = true; m_anycastIps.push_back(value); return *this; } + inline AnycastIpList& AddAnycastIps(Aws::String&& value) { m_anycastIpsHasBeenSet = true; m_anycastIps.push_back(std::move(value)); return *this; } + inline AnycastIpList& AddAnycastIps(const char* value) { m_anycastIpsHasBeenSet = true; m_anycastIps.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The number of IP addresses in the Anycast static IP list.

    + */ + inline int GetIpCount() const{ return m_ipCount; } + inline bool IpCountHasBeenSet() const { return m_ipCountHasBeenSet; } + inline void SetIpCount(int value) { m_ipCountHasBeenSet = true; m_ipCount = value; } + inline AnycastIpList& WithIpCount(int value) { SetIpCount(value); return *this;} + ///@} + + ///@{ + /** + *

    The last time the Anycast static IP list was modified.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } + inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } + inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } + inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } + inline AnycastIpList& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline AnycastIpList& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::Vector m_anycastIps; + bool m_anycastIpsHasBeenSet = false; + + int m_ipCount; + bool m_ipCountHasBeenSet = false; + + Aws::Utils::DateTime m_lastModifiedTime; + bool m_lastModifiedTimeHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpListCollection.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpListCollection.h new file mode 100644 index 00000000000..8d657f50ff3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpListCollection.h @@ -0,0 +1,144 @@ +/** + * 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 Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + + /** + *

    The Anycast static IP list collection.

    See Also:

    AWS + * API Reference

    + */ + class AnycastIpListCollection + { + public: + AWS_CLOUDFRONT_API AnycastIpListCollection(); + AWS_CLOUDFRONT_API AnycastIpListCollection(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDFRONT_API AnycastIpListCollection& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + ///@{ + /** + *

    Items in the Anycast static IP list collection. Each item is of the + * AnycastIpListSummary structure type.

    + */ + inline const Aws::Vector& GetItems() const{ return m_items; } + inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; } + inline void SetItems(const Aws::Vector& value) { m_itemsHasBeenSet = true; m_items = value; } + inline void SetItems(Aws::Vector&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); } + inline AnycastIpListCollection& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} + inline AnycastIpListCollection& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} + inline AnycastIpListCollection& AddItems(const AnycastIpListSummary& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } + inline AnycastIpListCollection& AddItems(AnycastIpListSummary&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    Use this field when paginating results to indicate where to begin in your + * list. The response includes items in the list that occur after the marker. To + * get the next page of the list, set this field's value to the value of + * NextMarker from the current page's response.

    + */ + inline const Aws::String& GetMarker() const{ return m_marker; } + inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } + inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } + inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } + inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } + inline AnycastIpListCollection& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} + inline AnycastIpListCollection& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} + inline AnycastIpListCollection& WithMarker(const char* value) { SetMarker(value); return *this;} + ///@} + + ///@{ + /** + *

    Indicates the next page of the Anycast static IP list collection. To get the + * next page of the list, use this value in the Marker field of your + * request.

    + */ + inline const Aws::String& GetNextMarker() const{ return m_nextMarker; } + inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; } + inline void SetNextMarker(const Aws::String& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = value; } + inline void SetNextMarker(Aws::String&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::move(value); } + inline void SetNextMarker(const char* value) { m_nextMarkerHasBeenSet = true; m_nextMarker.assign(value); } + inline AnycastIpListCollection& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;} + inline AnycastIpListCollection& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;} + inline AnycastIpListCollection& WithNextMarker(const char* value) { SetNextMarker(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of Anycast static IP list collections that you want + * returned in the response.

    + */ + inline int GetMaxItems() const{ return m_maxItems; } + inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } + inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } + inline AnycastIpListCollection& WithMaxItems(int value) { SetMaxItems(value); return *this;} + ///@} + + ///@{ + /** + *

    If there are more items in the list collection than are in this response, + * this value is true.

    + */ + inline bool GetIsTruncated() const{ return m_isTruncated; } + inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; } + inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; } + inline AnycastIpListCollection& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;} + ///@} + + ///@{ + /** + *

    The quantity of Anycast static IP lists in the collection.

    + */ + inline int GetQuantity() const{ return m_quantity; } + inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; } + inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; } + inline AnycastIpListCollection& WithQuantity(int value) { SetQuantity(value); return *this;} + ///@} + private: + + Aws::Vector m_items; + bool m_itemsHasBeenSet = false; + + Aws::String m_marker; + bool m_markerHasBeenSet = false; + + Aws::String m_nextMarker; + bool m_nextMarkerHasBeenSet = false; + + int m_maxItems; + bool m_maxItemsHasBeenSet = false; + + bool m_isTruncated; + bool m_isTruncatedHasBeenSet = false; + + int m_quantity; + bool m_quantityHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpListSummary.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpListSummary.h new file mode 100644 index 00000000000..f7fa0b8f99c --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/AnycastIpListSummary.h @@ -0,0 +1,144 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + + /** + *

    An abbreviated version of the AnycastIpList structure. Omits the + * allocated static IP addresses (AnycastIpList$AnycastIps).

    See + * Also:

    AWS + * API Reference

    + */ + class AnycastIpListSummary + { + public: + AWS_CLOUDFRONT_API AnycastIpListSummary(); + AWS_CLOUDFRONT_API AnycastIpListSummary(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDFRONT_API AnycastIpListSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + ///@{ + /** + *

    The ID of the Anycast static IP list.

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

    The name of the Anycast static IP list.

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

    The deployment status of the Anycast static IP list. Valid values: Deployed, + * Deploying, or Failed.

    + */ + inline const Aws::String& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } + inline AnycastIpListSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} + inline AnycastIpListSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} + inline AnycastIpListSummary& WithStatus(const char* value) { SetStatus(value); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the Anycast static IP list.

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

    The number of IP addresses in the Anycast static IP list.

    + */ + inline int GetIpCount() const{ return m_ipCount; } + inline bool IpCountHasBeenSet() const { return m_ipCountHasBeenSet; } + inline void SetIpCount(int value) { m_ipCountHasBeenSet = true; m_ipCount = value; } + inline AnycastIpListSummary& WithIpCount(int value) { SetIpCount(value); return *this;} + ///@} + + ///@{ + /** + *

    The last time the Anycast static IP list was modified.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } + inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } + inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } + inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } + inline AnycastIpListSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline AnycastIpListSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + int m_ipCount; + bool m_ipCountHasBeenSet = false; + + Aws::Utils::DateTime m_lastModifiedTime; + bool m_lastModifiedTimeHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CacheBehavior.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CacheBehavior.h index cab495d54e6..4f59a687b72 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CacheBehavior.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CacheBehavior.h @@ -12,6 +12,7 @@ #include #include #include +#include #include namespace Aws @@ -336,6 +337,18 @@ namespace Model inline CacheBehavior& WithResponseHeadersPolicyId(Aws::String&& value) { SetResponseHeadersPolicyId(std::move(value)); return *this;} inline CacheBehavior& WithResponseHeadersPolicyId(const char* value) { SetResponseHeadersPolicyId(value); return *this;} ///@} + + ///@{ + /** + *

    The gRPC configuration for your cache behavior.

    + */ + inline const GrpcConfig& GetGrpcConfig() const{ return m_grpcConfig; } + inline bool GrpcConfigHasBeenSet() const { return m_grpcConfigHasBeenSet; } + inline void SetGrpcConfig(const GrpcConfig& value) { m_grpcConfigHasBeenSet = true; m_grpcConfig = value; } + inline void SetGrpcConfig(GrpcConfig&& value) { m_grpcConfigHasBeenSet = true; m_grpcConfig = std::move(value); } + inline CacheBehavior& WithGrpcConfig(const GrpcConfig& value) { SetGrpcConfig(value); return *this;} + inline CacheBehavior& WithGrpcConfig(GrpcConfig&& value) { SetGrpcConfig(std::move(value)); return *this;} + ///@} private: Aws::String m_pathPattern; @@ -382,6 +395,9 @@ namespace Model Aws::String m_responseHeadersPolicyId; bool m_responseHeadersPolicyIdHasBeenSet = false; + + GrpcConfig m_grpcConfig; + bool m_grpcConfigHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateAnycastIpList2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateAnycastIpList2020_05_31Request.h new file mode 100644 index 00000000000..1a4952b10dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateAnycastIpList2020_05_31Request.h @@ -0,0 +1,84 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + + /** + */ + class CreateAnycastIpList2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API CreateAnycastIpList2020_05_31Request(); + + // 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 "CreateAnycastIpList"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    Name of the Anycast static IP list.

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

    The number of static IP addresses that are allocated to the Anycast static IP + * list.

    + */ + inline int GetIpCount() const{ return m_ipCount; } + inline bool IpCountHasBeenSet() const { return m_ipCountHasBeenSet; } + inline void SetIpCount(int value) { m_ipCountHasBeenSet = true; m_ipCount = value; } + inline CreateAnycastIpList2020_05_31Request& WithIpCount(int value) { SetIpCount(value); return *this;} + ///@} + + ///@{ + + inline const Tags& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Tags& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Tags&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateAnycastIpList2020_05_31Request& WithTags(const Tags& value) { SetTags(value); return *this;} + inline CreateAnycastIpList2020_05_31Request& WithTags(Tags&& value) { SetTags(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + int m_ipCount; + bool m_ipCountHasBeenSet = false; + + Tags m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateAnycastIpList2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateAnycastIpList2020_05_31Result.h new file mode 100644 index 00000000000..0ac9c5e76a1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateAnycastIpList2020_05_31Result.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 + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + class CreateAnycastIpList2020_05_31Result + { + public: + AWS_CLOUDFRONT_API CreateAnycastIpList2020_05_31Result(); + AWS_CLOUDFRONT_API CreateAnycastIpList2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API CreateAnycastIpList2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    A response structure that includes the version identifier (ETag) and the + * created AnycastIpList structure.

    + */ + inline const AnycastIpList& GetAnycastIpList() const{ return m_anycastIpList; } + inline void SetAnycastIpList(const AnycastIpList& value) { m_anycastIpList = value; } + inline void SetAnycastIpList(AnycastIpList&& value) { m_anycastIpList = std::move(value); } + inline CreateAnycastIpList2020_05_31Result& WithAnycastIpList(const AnycastIpList& value) { SetAnycastIpList(value); return *this;} + inline CreateAnycastIpList2020_05_31Result& WithAnycastIpList(AnycastIpList&& value) { SetAnycastIpList(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The version identifier for the current version of the Anycast static IP + * list.

    + */ + inline const Aws::String& GetETag() const{ return m_eTag; } + inline void SetETag(const Aws::String& value) { m_eTag = value; } + inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); } + inline void SetETag(const char* value) { m_eTag.assign(value); } + inline CreateAnycastIpList2020_05_31Result& WithETag(const Aws::String& value) { SetETag(value); return *this;} + inline CreateAnycastIpList2020_05_31Result& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} + inline CreateAnycastIpList2020_05_31Result& WithETag(const char* value) { SetETag(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 CreateAnycastIpList2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateAnycastIpList2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateAnycastIpList2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AnycastIpList m_anycastIpList; + + Aws::String m_eTag; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateVpcOrigin2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateVpcOrigin2020_05_31Request.h new file mode 100644 index 00000000000..b9ffe1b35ba --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateVpcOrigin2020_05_31Request.h @@ -0,0 +1,68 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + + /** + */ + class CreateVpcOrigin2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API CreateVpcOrigin2020_05_31Request(); + + // 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 "CreateVpcOrigin"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The VPC origin endpoint configuration.

    + */ + inline const VpcOriginEndpointConfig& GetVpcOriginEndpointConfig() const{ return m_vpcOriginEndpointConfig; } + inline bool VpcOriginEndpointConfigHasBeenSet() const { return m_vpcOriginEndpointConfigHasBeenSet; } + inline void SetVpcOriginEndpointConfig(const VpcOriginEndpointConfig& value) { m_vpcOriginEndpointConfigHasBeenSet = true; m_vpcOriginEndpointConfig = value; } + inline void SetVpcOriginEndpointConfig(VpcOriginEndpointConfig&& value) { m_vpcOriginEndpointConfigHasBeenSet = true; m_vpcOriginEndpointConfig = std::move(value); } + inline CreateVpcOrigin2020_05_31Request& WithVpcOriginEndpointConfig(const VpcOriginEndpointConfig& value) { SetVpcOriginEndpointConfig(value); return *this;} + inline CreateVpcOrigin2020_05_31Request& WithVpcOriginEndpointConfig(VpcOriginEndpointConfig&& value) { SetVpcOriginEndpointConfig(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Tags& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Tags& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Tags&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateVpcOrigin2020_05_31Request& WithTags(const Tags& value) { SetTags(value); return *this;} + inline CreateVpcOrigin2020_05_31Request& WithTags(Tags&& value) { SetTags(std::move(value)); return *this;} + ///@} + private: + + VpcOriginEndpointConfig m_vpcOriginEndpointConfig; + bool m_vpcOriginEndpointConfigHasBeenSet = false; + + Tags m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateVpcOrigin2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateVpcOrigin2020_05_31Result.h new file mode 100644 index 00000000000..65895bbaa00 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CreateVpcOrigin2020_05_31Result.h @@ -0,0 +1,96 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + class CreateVpcOrigin2020_05_31Result + { + public: + AWS_CLOUDFRONT_API CreateVpcOrigin2020_05_31Result(); + AWS_CLOUDFRONT_API CreateVpcOrigin2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API CreateVpcOrigin2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The VPC origin.

    + */ + inline const VpcOrigin& GetVpcOrigin() const{ return m_vpcOrigin; } + inline void SetVpcOrigin(const VpcOrigin& value) { m_vpcOrigin = value; } + inline void SetVpcOrigin(VpcOrigin&& value) { m_vpcOrigin = std::move(value); } + inline CreateVpcOrigin2020_05_31Result& WithVpcOrigin(const VpcOrigin& value) { SetVpcOrigin(value); return *this;} + inline CreateVpcOrigin2020_05_31Result& WithVpcOrigin(VpcOrigin&& value) { SetVpcOrigin(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin location.

    + */ + inline const Aws::String& GetLocation() const{ return m_location; } + inline void SetLocation(const Aws::String& value) { m_location = value; } + inline void SetLocation(Aws::String&& value) { m_location = std::move(value); } + inline void SetLocation(const char* value) { m_location.assign(value); } + inline CreateVpcOrigin2020_05_31Result& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} + inline CreateVpcOrigin2020_05_31Result& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} + inline CreateVpcOrigin2020_05_31Result& WithLocation(const char* value) { SetLocation(value); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin ETag.

    + */ + inline const Aws::String& GetETag() const{ return m_eTag; } + inline void SetETag(const Aws::String& value) { m_eTag = value; } + inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); } + inline void SetETag(const char* value) { m_eTag.assign(value); } + inline CreateVpcOrigin2020_05_31Result& WithETag(const Aws::String& value) { SetETag(value); return *this;} + inline CreateVpcOrigin2020_05_31Result& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} + inline CreateVpcOrigin2020_05_31Result& WithETag(const char* value) { SetETag(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 CreateVpcOrigin2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateVpcOrigin2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateVpcOrigin2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + VpcOrigin m_vpcOrigin; + + Aws::String m_location; + + Aws::String m_eTag; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DefaultCacheBehavior.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DefaultCacheBehavior.h index 82b0228e2c0..225da356ad6 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DefaultCacheBehavior.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DefaultCacheBehavior.h @@ -12,6 +12,7 @@ #include #include #include +#include #include namespace Aws @@ -290,6 +291,18 @@ namespace Model inline DefaultCacheBehavior& WithResponseHeadersPolicyId(Aws::String&& value) { SetResponseHeadersPolicyId(std::move(value)); return *this;} inline DefaultCacheBehavior& WithResponseHeadersPolicyId(const char* value) { SetResponseHeadersPolicyId(value); return *this;} ///@} + + ///@{ + /** + *

    The gRPC configuration for your cache behavior.

    + */ + inline const GrpcConfig& GetGrpcConfig() const{ return m_grpcConfig; } + inline bool GrpcConfigHasBeenSet() const { return m_grpcConfigHasBeenSet; } + inline void SetGrpcConfig(const GrpcConfig& value) { m_grpcConfigHasBeenSet = true; m_grpcConfig = value; } + inline void SetGrpcConfig(GrpcConfig&& value) { m_grpcConfigHasBeenSet = true; m_grpcConfig = std::move(value); } + inline DefaultCacheBehavior& WithGrpcConfig(const GrpcConfig& value) { SetGrpcConfig(value); return *this;} + inline DefaultCacheBehavior& WithGrpcConfig(GrpcConfig&& value) { SetGrpcConfig(std::move(value)); return *this;} + ///@} private: Aws::String m_targetOriginId; @@ -333,6 +346,9 @@ namespace Model Aws::String m_responseHeadersPolicyId; bool m_responseHeadersPolicyIdHasBeenSet = false; + + GrpcConfig m_grpcConfig; + bool m_grpcConfigHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteAnycastIpList2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteAnycastIpList2020_05_31Request.h new file mode 100644 index 00000000000..85e1ca083c3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteAnycastIpList2020_05_31Request.h @@ -0,0 +1,76 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + + /** + */ + class DeleteAnycastIpList2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API DeleteAnycastIpList2020_05_31Request(); + + // 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 "DeleteAnycastIpList"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The ID of the Anycast static IP list.

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

    The current version (ETag value) of the Anycast static IP list + * that you are deleting.

    + */ + inline const Aws::String& GetIfMatch() const{ return m_ifMatch; } + inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; } + inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; } + inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); } + inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); } + inline DeleteAnycastIpList2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;} + inline DeleteAnycastIpList2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;} + inline DeleteAnycastIpList2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_ifMatch; + bool m_ifMatchHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteVpcOrigin2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteVpcOrigin2020_05_31Request.h new file mode 100644 index 00000000000..6965dbd0a58 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteVpcOrigin2020_05_31Request.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + + /** + */ + class DeleteVpcOrigin2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API DeleteVpcOrigin2020_05_31Request(); + + // 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 "DeleteVpcOrigin"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The VPC origin ID.

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

    The VPC origin to delete, if a match occurs.

    + */ + inline const Aws::String& GetIfMatch() const{ return m_ifMatch; } + inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; } + inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; } + inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); } + inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); } + inline DeleteVpcOrigin2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;} + inline DeleteVpcOrigin2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;} + inline DeleteVpcOrigin2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_ifMatch; + bool m_ifMatchHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteVpcOrigin2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteVpcOrigin2020_05_31Result.h new file mode 100644 index 00000000000..e25bd080ca1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DeleteVpcOrigin2020_05_31Result.h @@ -0,0 +1,81 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + class DeleteVpcOrigin2020_05_31Result + { + public: + AWS_CLOUDFRONT_API DeleteVpcOrigin2020_05_31Result(); + AWS_CLOUDFRONT_API DeleteVpcOrigin2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API DeleteVpcOrigin2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The VPC origin.

    + */ + inline const VpcOrigin& GetVpcOrigin() const{ return m_vpcOrigin; } + inline void SetVpcOrigin(const VpcOrigin& value) { m_vpcOrigin = value; } + inline void SetVpcOrigin(VpcOrigin&& value) { m_vpcOrigin = std::move(value); } + inline DeleteVpcOrigin2020_05_31Result& WithVpcOrigin(const VpcOrigin& value) { SetVpcOrigin(value); return *this;} + inline DeleteVpcOrigin2020_05_31Result& WithVpcOrigin(VpcOrigin&& value) { SetVpcOrigin(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin ETag.

    + */ + inline const Aws::String& GetETag() const{ return m_eTag; } + inline void SetETag(const Aws::String& value) { m_eTag = value; } + inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); } + inline void SetETag(const char* value) { m_eTag.assign(value); } + inline DeleteVpcOrigin2020_05_31Result& WithETag(const Aws::String& value) { SetETag(value); return *this;} + inline DeleteVpcOrigin2020_05_31Result& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} + inline DeleteVpcOrigin2020_05_31Result& WithETag(const char* value) { SetETag(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 DeleteVpcOrigin2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteVpcOrigin2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteVpcOrigin2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + VpcOrigin m_vpcOrigin; + + Aws::String m_eTag; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DistributionConfig.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DistributionConfig.h index 4cc825d6dbd..832a77f67e0 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DistributionConfig.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DistributionConfig.h @@ -388,6 +388,21 @@ namespace Model inline void SetStaging(bool value) { m_stagingHasBeenSet = true; m_staging = value; } inline DistributionConfig& WithStaging(bool value) { SetStaging(value); return *this;} ///@} + + ///@{ + /** + *

    ID of the Anycast static IP list that is associated with the + * distribution.

    + */ + inline const Aws::String& GetAnycastIpListId() const{ return m_anycastIpListId; } + inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; } + inline void SetAnycastIpListId(const Aws::String& value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId = value; } + inline void SetAnycastIpListId(Aws::String&& value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId = std::move(value); } + inline void SetAnycastIpListId(const char* value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId.assign(value); } + inline DistributionConfig& WithAnycastIpListId(const Aws::String& value) { SetAnycastIpListId(value); return *this;} + inline DistributionConfig& WithAnycastIpListId(Aws::String&& value) { SetAnycastIpListId(std::move(value)); return *this;} + inline DistributionConfig& WithAnycastIpListId(const char* value) { SetAnycastIpListId(value); return *this;} + ///@} private: Aws::String m_callerReference; @@ -446,6 +461,9 @@ namespace Model bool m_staging; bool m_stagingHasBeenSet = false; + + Aws::String m_anycastIpListId; + bool m_anycastIpListIdHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DistributionSummary.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DistributionSummary.h index 798f90c68a9..f5d5a6272b2 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DistributionSummary.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/DistributionSummary.h @@ -340,6 +340,21 @@ namespace Model inline void SetStaging(bool value) { m_stagingHasBeenSet = true; m_staging = value; } inline DistributionSummary& WithStaging(bool value) { SetStaging(value); return *this;} ///@} + + ///@{ + /** + *

    ID of the Anycast static IP list that is associated with the + * distribution.

    + */ + inline const Aws::String& GetAnycastIpListId() const{ return m_anycastIpListId; } + inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; } + inline void SetAnycastIpListId(const Aws::String& value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId = value; } + inline void SetAnycastIpListId(Aws::String&& value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId = std::move(value); } + inline void SetAnycastIpListId(const char* value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId.assign(value); } + inline DistributionSummary& WithAnycastIpListId(const Aws::String& value) { SetAnycastIpListId(value); return *this;} + inline DistributionSummary& WithAnycastIpListId(Aws::String&& value) { SetAnycastIpListId(std::move(value)); return *this;} + inline DistributionSummary& WithAnycastIpListId(const char* value) { SetAnycastIpListId(value); return *this;} + ///@} private: Aws::String m_id; @@ -404,6 +419,9 @@ namespace Model bool m_staging; bool m_stagingHasBeenSet = false; + + Aws::String m_anycastIpListId; + bool m_anycastIpListIdHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetAnycastIpList2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetAnycastIpList2020_05_31Request.h new file mode 100644 index 00000000000..ae07b069fa8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetAnycastIpList2020_05_31Request.h @@ -0,0 +1,56 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + + /** + */ + class GetAnycastIpList2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API GetAnycastIpList2020_05_31Request(); + + // 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 "GetAnycastIpList"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The ID of the Anycast static IP list.

    + */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline GetAnycastIpList2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;} + inline GetAnycastIpList2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline GetAnycastIpList2020_05_31Request& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetAnycastIpList2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetAnycastIpList2020_05_31Result.h new file mode 100644 index 00000000000..33e8558fd12 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetAnycastIpList2020_05_31Result.h @@ -0,0 +1,82 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + class GetAnycastIpList2020_05_31Result + { + public: + AWS_CLOUDFRONT_API GetAnycastIpList2020_05_31Result(); + AWS_CLOUDFRONT_API GetAnycastIpList2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API GetAnycastIpList2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The Anycast static IP list details.

    + */ + inline const AnycastIpList& GetAnycastIpList() const{ return m_anycastIpList; } + inline void SetAnycastIpList(const AnycastIpList& value) { m_anycastIpList = value; } + inline void SetAnycastIpList(AnycastIpList&& value) { m_anycastIpList = std::move(value); } + inline GetAnycastIpList2020_05_31Result& WithAnycastIpList(const AnycastIpList& value) { SetAnycastIpList(value); return *this;} + inline GetAnycastIpList2020_05_31Result& WithAnycastIpList(AnycastIpList&& value) { SetAnycastIpList(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The version identifier for the current version of the Anycast static IP + * list.

    + */ + inline const Aws::String& GetETag() const{ return m_eTag; } + inline void SetETag(const Aws::String& value) { m_eTag = value; } + inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); } + inline void SetETag(const char* value) { m_eTag.assign(value); } + inline GetAnycastIpList2020_05_31Result& WithETag(const Aws::String& value) { SetETag(value); return *this;} + inline GetAnycastIpList2020_05_31Result& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} + inline GetAnycastIpList2020_05_31Result& WithETag(const char* value) { SetETag(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 GetAnycastIpList2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetAnycastIpList2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetAnycastIpList2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AnycastIpList m_anycastIpList; + + Aws::String m_eTag; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetVpcOrigin2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetVpcOrigin2020_05_31Request.h new file mode 100644 index 00000000000..ecc21d2729c --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetVpcOrigin2020_05_31Request.h @@ -0,0 +1,56 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + + /** + */ + class GetVpcOrigin2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API GetVpcOrigin2020_05_31Request(); + + // 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 "GetVpcOrigin"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The VPC origin ID.

    + */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline GetVpcOrigin2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;} + inline GetVpcOrigin2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline GetVpcOrigin2020_05_31Request& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetVpcOrigin2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetVpcOrigin2020_05_31Result.h new file mode 100644 index 00000000000..4d11246e541 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GetVpcOrigin2020_05_31Result.h @@ -0,0 +1,81 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + class GetVpcOrigin2020_05_31Result + { + public: + AWS_CLOUDFRONT_API GetVpcOrigin2020_05_31Result(); + AWS_CLOUDFRONT_API GetVpcOrigin2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API GetVpcOrigin2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The VPC origin.

    + */ + inline const VpcOrigin& GetVpcOrigin() const{ return m_vpcOrigin; } + inline void SetVpcOrigin(const VpcOrigin& value) { m_vpcOrigin = value; } + inline void SetVpcOrigin(VpcOrigin&& value) { m_vpcOrigin = std::move(value); } + inline GetVpcOrigin2020_05_31Result& WithVpcOrigin(const VpcOrigin& value) { SetVpcOrigin(value); return *this;} + inline GetVpcOrigin2020_05_31Result& WithVpcOrigin(VpcOrigin&& value) { SetVpcOrigin(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin ETag.

    + */ + inline const Aws::String& GetETag() const{ return m_eTag; } + inline void SetETag(const Aws::String& value) { m_eTag = value; } + inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); } + inline void SetETag(const char* value) { m_eTag.assign(value); } + inline GetVpcOrigin2020_05_31Result& WithETag(const Aws::String& value) { SetETag(value); return *this;} + inline GetVpcOrigin2020_05_31Result& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} + inline GetVpcOrigin2020_05_31Result& WithETag(const char* value) { SetETag(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 GetVpcOrigin2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetVpcOrigin2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetVpcOrigin2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + VpcOrigin m_vpcOrigin; + + Aws::String m_eTag; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GrpcConfig.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GrpcConfig.h new file mode 100644 index 00000000000..b715e95d414 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/GrpcConfig.h @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + + /** + *

    Amazon CloudFront supports gRPC, an open-source remote procedure call (RPC) + * framework built on HTTP/2. gRPC offers bi-directional streaming and binary + * protocol that buffers payloads, making it suitable for applications that require + * low latency communications.

    To enable your distribution to handle gRPC + * requests, you must include HTTP/2 as one of the supported HTTP + * versions and allow HTTP methods, including POST.

    + *

    For more information, see Using + * gRPC with CloudFront distributions in the Amazon CloudFront Developer + * Guide.

    See Also:

    AWS + * API Reference

    + */ + class GrpcConfig + { + public: + AWS_CLOUDFRONT_API GrpcConfig(); + AWS_CLOUDFRONT_API GrpcConfig(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDFRONT_API GrpcConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + ///@{ + /** + *

    Enables your CloudFront distribution to receive gRPC requests and to proxy + * them directly to your origins.

    + */ + inline bool GetEnabled() const{ return m_enabled; } + inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } + inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } + inline GrpcConfig& WithEnabled(bool value) { SetEnabled(value); return *this;} + ///@} + private: + + bool m_enabled; + bool m_enabledHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListAnycastIpLists2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListAnycastIpLists2020_05_31Request.h new file mode 100644 index 00000000000..81575040f59 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListAnycastIpLists2020_05_31Request.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 + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace CloudFront +{ +namespace Model +{ + + /** + */ + class ListAnycastIpLists2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API ListAnycastIpLists2020_05_31Request(); + + // 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 "ListAnycastIpLists"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + AWS_CLOUDFRONT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    Use this field when paginating results to indicate where to begin in your + * list. The response includes items in the list that occur after the marker. To + * get the next page of the list, set this field's value to the value of + * NextMarker from the current page's response.

    + */ + inline const Aws::String& GetMarker() const{ return m_marker; } + inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } + inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } + inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } + inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } + inline ListAnycastIpLists2020_05_31Request& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} + inline ListAnycastIpLists2020_05_31Request& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} + inline ListAnycastIpLists2020_05_31Request& WithMarker(const char* value) { SetMarker(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of Anycast static IP lists that you want returned in the + * response.

    + */ + inline int GetMaxItems() const{ return m_maxItems; } + inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } + inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } + inline ListAnycastIpLists2020_05_31Request& WithMaxItems(int value) { SetMaxItems(value); return *this;} + ///@} + private: + + Aws::String m_marker; + bool m_markerHasBeenSet = false; + + int m_maxItems; + bool m_maxItemsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListAnycastIpLists2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListAnycastIpLists2020_05_31Result.h new file mode 100644 index 00000000000..c2a3418d9d2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListAnycastIpLists2020_05_31Result.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + class ListAnycastIpLists2020_05_31Result + { + public: + AWS_CLOUDFRONT_API ListAnycastIpLists2020_05_31Result(); + AWS_CLOUDFRONT_API ListAnycastIpLists2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API ListAnycastIpLists2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    Root level tag for the AnycastIpLists parameters.

    + */ + inline const AnycastIpListCollection& GetAnycastIpLists() const{ return m_anycastIpLists; } + inline void SetAnycastIpLists(const AnycastIpListCollection& value) { m_anycastIpLists = value; } + inline void SetAnycastIpLists(AnycastIpListCollection&& value) { m_anycastIpLists = std::move(value); } + inline ListAnycastIpLists2020_05_31Result& WithAnycastIpLists(const AnycastIpListCollection& value) { SetAnycastIpLists(value); return *this;} + inline ListAnycastIpLists2020_05_31Result& WithAnycastIpLists(AnycastIpListCollection&& value) { SetAnycastIpLists(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListAnycastIpLists2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListAnycastIpLists2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListAnycastIpLists2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AnycastIpListCollection m_anycastIpLists; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByAnycastIpListId2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByAnycastIpListId2020_05_31Request.h new file mode 100644 index 00000000000..915a8a2ef7c --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByAnycastIpListId2020_05_31Request.h @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace CloudFront +{ +namespace Model +{ + + /** + */ + class ListDistributionsByAnycastIpListId2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API ListDistributionsByAnycastIpListId2020_05_31Request(); + + // 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 "ListDistributionsByAnycastIpListId"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + AWS_CLOUDFRONT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    Use this field when paginating results to indicate where to begin in your + * list. The response includes items in the list that occur after the marker. To + * get the next page of the list, set this field's value to the value of + * NextMarker from the current page's response.

    + */ + inline const Aws::String& GetMarker() const{ return m_marker; } + inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } + inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } + inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } + inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } + inline ListDistributionsByAnycastIpListId2020_05_31Request& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} + inline ListDistributionsByAnycastIpListId2020_05_31Request& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} + inline ListDistributionsByAnycastIpListId2020_05_31Request& WithMarker(const char* value) { SetMarker(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of distributions that you want returned in the + * response.

    + */ + inline const Aws::String& GetMaxItems() const{ return m_maxItems; } + inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } + inline void SetMaxItems(const Aws::String& value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } + inline void SetMaxItems(Aws::String&& value) { m_maxItemsHasBeenSet = true; m_maxItems = std::move(value); } + inline void SetMaxItems(const char* value) { m_maxItemsHasBeenSet = true; m_maxItems.assign(value); } + inline ListDistributionsByAnycastIpListId2020_05_31Request& WithMaxItems(const Aws::String& value) { SetMaxItems(value); return *this;} + inline ListDistributionsByAnycastIpListId2020_05_31Request& WithMaxItems(Aws::String&& value) { SetMaxItems(std::move(value)); return *this;} + inline ListDistributionsByAnycastIpListId2020_05_31Request& WithMaxItems(const char* value) { SetMaxItems(value); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the Anycast static IP list.

    + */ + inline const Aws::String& GetAnycastIpListId() const{ return m_anycastIpListId; } + inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; } + inline void SetAnycastIpListId(const Aws::String& value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId = value; } + inline void SetAnycastIpListId(Aws::String&& value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId = std::move(value); } + inline void SetAnycastIpListId(const char* value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId.assign(value); } + inline ListDistributionsByAnycastIpListId2020_05_31Request& WithAnycastIpListId(const Aws::String& value) { SetAnycastIpListId(value); return *this;} + inline ListDistributionsByAnycastIpListId2020_05_31Request& WithAnycastIpListId(Aws::String&& value) { SetAnycastIpListId(std::move(value)); return *this;} + inline ListDistributionsByAnycastIpListId2020_05_31Request& WithAnycastIpListId(const char* value) { SetAnycastIpListId(value); return *this;} + ///@} + private: + + Aws::String m_marker; + bool m_markerHasBeenSet = false; + + Aws::String m_maxItems; + bool m_maxItemsHasBeenSet = false; + + Aws::String m_anycastIpListId; + bool m_anycastIpListIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByAnycastIpListId2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByAnycastIpListId2020_05_31Result.h new file mode 100644 index 00000000000..78ec20984e2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByAnycastIpListId2020_05_31Result.h @@ -0,0 +1,64 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + class ListDistributionsByAnycastIpListId2020_05_31Result + { + public: + AWS_CLOUDFRONT_API ListDistributionsByAnycastIpListId2020_05_31Result(); + AWS_CLOUDFRONT_API ListDistributionsByAnycastIpListId2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API ListDistributionsByAnycastIpListId2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const DistributionList& GetDistributionList() const{ return m_distributionList; } + inline void SetDistributionList(const DistributionList& value) { m_distributionList = value; } + inline void SetDistributionList(DistributionList&& value) { m_distributionList = std::move(value); } + inline ListDistributionsByAnycastIpListId2020_05_31Result& WithDistributionList(const DistributionList& value) { SetDistributionList(value); return *this;} + inline ListDistributionsByAnycastIpListId2020_05_31Result& WithDistributionList(DistributionList&& value) { SetDistributionList(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListDistributionsByAnycastIpListId2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListDistributionsByAnycastIpListId2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListDistributionsByAnycastIpListId2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + DistributionList m_distributionList; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByVpcOriginId2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByVpcOriginId2020_05_31Request.h new file mode 100644 index 00000000000..2db68d61a3d --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByVpcOriginId2020_05_31Request.h @@ -0,0 +1,96 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace CloudFront +{ +namespace Model +{ + + /** + */ + class ListDistributionsByVpcOriginId2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API ListDistributionsByVpcOriginId2020_05_31Request(); + + // 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 "ListDistributionsByVpcOriginId"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + AWS_CLOUDFRONT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The marker associated with the VPC origin distributions list.

    + */ + inline const Aws::String& GetMarker() const{ return m_marker; } + inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } + inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } + inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } + inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } + inline ListDistributionsByVpcOriginId2020_05_31Request& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} + inline ListDistributionsByVpcOriginId2020_05_31Request& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} + inline ListDistributionsByVpcOriginId2020_05_31Request& WithMarker(const char* value) { SetMarker(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of items included in the list.

    + */ + inline const Aws::String& GetMaxItems() const{ return m_maxItems; } + inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } + inline void SetMaxItems(const Aws::String& value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } + inline void SetMaxItems(Aws::String&& value) { m_maxItemsHasBeenSet = true; m_maxItems = std::move(value); } + inline void SetMaxItems(const char* value) { m_maxItemsHasBeenSet = true; m_maxItems.assign(value); } + inline ListDistributionsByVpcOriginId2020_05_31Request& WithMaxItems(const Aws::String& value) { SetMaxItems(value); return *this;} + inline ListDistributionsByVpcOriginId2020_05_31Request& WithMaxItems(Aws::String&& value) { SetMaxItems(std::move(value)); return *this;} + inline ListDistributionsByVpcOriginId2020_05_31Request& WithMaxItems(const char* value) { SetMaxItems(value); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin ID.

    + */ + inline const Aws::String& GetVpcOriginId() const{ return m_vpcOriginId; } + inline bool VpcOriginIdHasBeenSet() const { return m_vpcOriginIdHasBeenSet; } + inline void SetVpcOriginId(const Aws::String& value) { m_vpcOriginIdHasBeenSet = true; m_vpcOriginId = value; } + inline void SetVpcOriginId(Aws::String&& value) { m_vpcOriginIdHasBeenSet = true; m_vpcOriginId = std::move(value); } + inline void SetVpcOriginId(const char* value) { m_vpcOriginIdHasBeenSet = true; m_vpcOriginId.assign(value); } + inline ListDistributionsByVpcOriginId2020_05_31Request& WithVpcOriginId(const Aws::String& value) { SetVpcOriginId(value); return *this;} + inline ListDistributionsByVpcOriginId2020_05_31Request& WithVpcOriginId(Aws::String&& value) { SetVpcOriginId(std::move(value)); return *this;} + inline ListDistributionsByVpcOriginId2020_05_31Request& WithVpcOriginId(const char* value) { SetVpcOriginId(value); return *this;} + ///@} + private: + + Aws::String m_marker; + bool m_markerHasBeenSet = false; + + Aws::String m_maxItems; + bool m_maxItemsHasBeenSet = false; + + Aws::String m_vpcOriginId; + bool m_vpcOriginIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByVpcOriginId2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByVpcOriginId2020_05_31Result.h new file mode 100644 index 00000000000..9af33e6dfa3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListDistributionsByVpcOriginId2020_05_31Result.h @@ -0,0 +1,64 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + class ListDistributionsByVpcOriginId2020_05_31Result + { + public: + AWS_CLOUDFRONT_API ListDistributionsByVpcOriginId2020_05_31Result(); + AWS_CLOUDFRONT_API ListDistributionsByVpcOriginId2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API ListDistributionsByVpcOriginId2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const DistributionIdList& GetDistributionIdList() const{ return m_distributionIdList; } + inline void SetDistributionIdList(const DistributionIdList& value) { m_distributionIdList = value; } + inline void SetDistributionIdList(DistributionIdList&& value) { m_distributionIdList = std::move(value); } + inline ListDistributionsByVpcOriginId2020_05_31Result& WithDistributionIdList(const DistributionIdList& value) { SetDistributionIdList(value); return *this;} + inline ListDistributionsByVpcOriginId2020_05_31Result& WithDistributionIdList(DistributionIdList&& value) { SetDistributionIdList(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListDistributionsByVpcOriginId2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListDistributionsByVpcOriginId2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListDistributionsByVpcOriginId2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + DistributionIdList m_distributionIdList; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListVpcOrigins2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListVpcOrigins2020_05_31Request.h new file mode 100644 index 00000000000..dad28b4cdb8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListVpcOrigins2020_05_31Request.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 + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace CloudFront +{ +namespace Model +{ + + /** + */ + class ListVpcOrigins2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API ListVpcOrigins2020_05_31Request(); + + // 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 "ListVpcOrigins"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + AWS_CLOUDFRONT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The marker associated with the VPC origins list.

    + */ + inline const Aws::String& GetMarker() const{ return m_marker; } + inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } + inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } + inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } + inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } + inline ListVpcOrigins2020_05_31Request& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} + inline ListVpcOrigins2020_05_31Request& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} + inline ListVpcOrigins2020_05_31Request& WithMarker(const char* value) { SetMarker(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of items included in the list.

    + */ + inline const Aws::String& GetMaxItems() const{ return m_maxItems; } + inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } + inline void SetMaxItems(const Aws::String& value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } + inline void SetMaxItems(Aws::String&& value) { m_maxItemsHasBeenSet = true; m_maxItems = std::move(value); } + inline void SetMaxItems(const char* value) { m_maxItemsHasBeenSet = true; m_maxItems.assign(value); } + inline ListVpcOrigins2020_05_31Request& WithMaxItems(const Aws::String& value) { SetMaxItems(value); return *this;} + inline ListVpcOrigins2020_05_31Request& WithMaxItems(Aws::String&& value) { SetMaxItems(std::move(value)); return *this;} + inline ListVpcOrigins2020_05_31Request& WithMaxItems(const char* value) { SetMaxItems(value); return *this;} + ///@} + private: + + Aws::String m_marker; + bool m_markerHasBeenSet = false; + + Aws::String m_maxItems; + bool m_maxItemsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListVpcOrigins2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListVpcOrigins2020_05_31Result.h new file mode 100644 index 00000000000..80702df3013 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ListVpcOrigins2020_05_31Result.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + class ListVpcOrigins2020_05_31Result + { + public: + AWS_CLOUDFRONT_API ListVpcOrigins2020_05_31Result(); + AWS_CLOUDFRONT_API ListVpcOrigins2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API ListVpcOrigins2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    List of VPC origins.

    + */ + inline const VpcOriginList& GetVpcOriginList() const{ return m_vpcOriginList; } + inline void SetVpcOriginList(const VpcOriginList& value) { m_vpcOriginList = value; } + inline void SetVpcOriginList(VpcOriginList&& value) { m_vpcOriginList = std::move(value); } + inline ListVpcOrigins2020_05_31Result& WithVpcOriginList(const VpcOriginList& value) { SetVpcOriginList(value); return *this;} + inline ListVpcOrigins2020_05_31Result& WithVpcOriginList(VpcOriginList&& value) { SetVpcOriginList(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListVpcOrigins2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListVpcOrigins2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListVpcOrigins2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + VpcOriginList m_vpcOriginList; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/LoggingConfig.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/LoggingConfig.h index 9fd9b01f0f2..bfa0e94fab5 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/LoggingConfig.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/LoggingConfig.h @@ -23,8 +23,17 @@ namespace Model { /** - *

    A complex type that controls whether access logs are written for the - * distribution.

    See Also:

    A complex type that specifies whether access logs are written for the + * distribution.

    If you already enabled standard logging (legacy) and + * you want to enable standard logging (v2) to send your access logs to Amazon S3, + * we recommend that you specify a different Amazon S3 bucket or use a + * separate path in the same bucket (for example, use a log prefix or + * partitioning). This helps you keep track of which log files are associated with + * which logging subscription and prevents log files from overwriting each other. + * For more information, see Standard + * logging (access logs) in the Amazon CloudFront Developer Guide.

    + *

    See Also:

    AWS * API Reference

    */ @@ -46,8 +55,8 @@ namespace Model * false for Enabled, and specify empty * Bucket and Prefix elements. If you specify * false for Enabled but you specify values for - * Bucket, prefix, and IncludeCookies, the - * values are automatically deleted.

    + * Bucket and prefix, the values are automatically + * deleted.

    */ inline bool GetEnabled() const{ return m_enabled; } inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } @@ -74,7 +83,7 @@ namespace Model ///@{ /** *

    The Amazon S3 bucket to store the access logs in, for example, - * myawslogbucket.s3.amazonaws.com.

    + * amzn-s3-demo-bucket.s3.amazonaws.com.

    */ inline const Aws::String& GetBucket() const{ return m_bucket; } inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/Origin.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/Origin.h index 4e8c348997e..a2b40866f39 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/Origin.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/Origin.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -150,6 +151,18 @@ namespace Model inline Origin& WithCustomOriginConfig(CustomOriginConfig&& value) { SetCustomOriginConfig(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    The VPC origin configuration.

    + */ + inline const VpcOriginConfig& GetVpcOriginConfig() const{ return m_vpcOriginConfig; } + inline bool VpcOriginConfigHasBeenSet() const { return m_vpcOriginConfigHasBeenSet; } + inline void SetVpcOriginConfig(const VpcOriginConfig& value) { m_vpcOriginConfigHasBeenSet = true; m_vpcOriginConfig = value; } + inline void SetVpcOriginConfig(VpcOriginConfig&& value) { m_vpcOriginConfigHasBeenSet = true; m_vpcOriginConfig = std::move(value); } + inline Origin& WithVpcOriginConfig(const VpcOriginConfig& value) { SetVpcOriginConfig(value); return *this;} + inline Origin& WithVpcOriginConfig(VpcOriginConfig&& value) { SetVpcOriginConfig(std::move(value)); return *this;} + ///@} + ///@{ /** *

    The number of times that CloudFront attempts to connect to the origin. The @@ -236,6 +249,9 @@ namespace Model CustomOriginConfig m_customOriginConfig; bool m_customOriginConfigHasBeenSet = false; + VpcOriginConfig m_vpcOriginConfig; + bool m_vpcOriginConfigHasBeenSet = false; + int m_connectionAttempts; bool m_connectionAttemptsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/StreamingLoggingConfig.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/StreamingLoggingConfig.h index 488549a7e36..6d8086fceb6 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/StreamingLoggingConfig.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/StreamingLoggingConfig.h @@ -58,7 +58,7 @@ namespace Model ///@{ /** *

    The Amazon S3 bucket to store the access logs in, for example, - * myawslogbucket.s3.amazonaws.com.

    + * amzn-s3-demo-bucket.s3.amazonaws.com.

    */ inline const Aws::String& GetBucket() const{ return m_bucket; } inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/UpdateVpcOrigin2020_05_31Request.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/UpdateVpcOrigin2020_05_31Request.h new file mode 100644 index 00000000000..ff851a39212 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/UpdateVpcOrigin2020_05_31Request.h @@ -0,0 +1,91 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + + /** + */ + class UpdateVpcOrigin2020_05_31Request : public CloudFrontRequest + { + public: + AWS_CLOUDFRONT_API UpdateVpcOrigin2020_05_31Request(); + + // 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 "UpdateVpcOrigin"; } + + AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; + + AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The VPC origin endpoint configuration.

    + */ + inline const VpcOriginEndpointConfig& GetVpcOriginEndpointConfig() const{ return m_vpcOriginEndpointConfig; } + inline bool VpcOriginEndpointConfigHasBeenSet() const { return m_vpcOriginEndpointConfigHasBeenSet; } + inline void SetVpcOriginEndpointConfig(const VpcOriginEndpointConfig& value) { m_vpcOriginEndpointConfigHasBeenSet = true; m_vpcOriginEndpointConfig = value; } + inline void SetVpcOriginEndpointConfig(VpcOriginEndpointConfig&& value) { m_vpcOriginEndpointConfigHasBeenSet = true; m_vpcOriginEndpointConfig = std::move(value); } + inline UpdateVpcOrigin2020_05_31Request& WithVpcOriginEndpointConfig(const VpcOriginEndpointConfig& value) { SetVpcOriginEndpointConfig(value); return *this;} + inline UpdateVpcOrigin2020_05_31Request& WithVpcOriginEndpointConfig(VpcOriginEndpointConfig&& value) { SetVpcOriginEndpointConfig(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin ID.

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

    The VPC origin to update, if a match occurs.

    + */ + inline const Aws::String& GetIfMatch() const{ return m_ifMatch; } + inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; } + inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; } + inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); } + inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); } + inline UpdateVpcOrigin2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;} + inline UpdateVpcOrigin2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;} + inline UpdateVpcOrigin2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;} + ///@} + private: + + VpcOriginEndpointConfig m_vpcOriginEndpointConfig; + bool m_vpcOriginEndpointConfigHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_ifMatch; + bool m_ifMatchHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/UpdateVpcOrigin2020_05_31Result.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/UpdateVpcOrigin2020_05_31Result.h new file mode 100644 index 00000000000..b919d90ee37 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/UpdateVpcOrigin2020_05_31Result.h @@ -0,0 +1,81 @@ +/** + * 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 CloudFront +{ +namespace Model +{ + class UpdateVpcOrigin2020_05_31Result + { + public: + AWS_CLOUDFRONT_API UpdateVpcOrigin2020_05_31Result(); + AWS_CLOUDFRONT_API UpdateVpcOrigin2020_05_31Result(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFRONT_API UpdateVpcOrigin2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The VPC origin.

    + */ + inline const VpcOrigin& GetVpcOrigin() const{ return m_vpcOrigin; } + inline void SetVpcOrigin(const VpcOrigin& value) { m_vpcOrigin = value; } + inline void SetVpcOrigin(VpcOrigin&& value) { m_vpcOrigin = std::move(value); } + inline UpdateVpcOrigin2020_05_31Result& WithVpcOrigin(const VpcOrigin& value) { SetVpcOrigin(value); return *this;} + inline UpdateVpcOrigin2020_05_31Result& WithVpcOrigin(VpcOrigin&& value) { SetVpcOrigin(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin ETag.

    + */ + inline const Aws::String& GetETag() const{ return m_eTag; } + inline void SetETag(const Aws::String& value) { m_eTag = value; } + inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); } + inline void SetETag(const char* value) { m_eTag.assign(value); } + inline UpdateVpcOrigin2020_05_31Result& WithETag(const Aws::String& value) { SetETag(value); return *this;} + inline UpdateVpcOrigin2020_05_31Result& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} + inline UpdateVpcOrigin2020_05_31Result& WithETag(const char* value) { SetETag(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 UpdateVpcOrigin2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateVpcOrigin2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateVpcOrigin2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + VpcOrigin m_vpcOrigin; + + Aws::String m_eTag; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOrigin.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOrigin.h new file mode 100644 index 00000000000..54acb39317c --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOrigin.h @@ -0,0 +1,142 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + + /** + *

    An Amazon CloudFront VPC origin.

    See Also:

    AWS + * API Reference

    + */ + class VpcOrigin + { + public: + AWS_CLOUDFRONT_API VpcOrigin(); + AWS_CLOUDFRONT_API VpcOrigin(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDFRONT_API VpcOrigin& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + ///@{ + /** + *

    The VPC origin ID.

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

    The VPC origin ARN.

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

    The VPC origin status.

    + */ + inline const Aws::String& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } + inline VpcOrigin& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} + inline VpcOrigin& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} + inline VpcOrigin& WithStatus(const char* value) { SetStatus(value); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin created time.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } + inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } + inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } + inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } + inline VpcOrigin& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} + inline VpcOrigin& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin last modified time.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } + inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } + inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } + inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } + inline VpcOrigin& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline VpcOrigin& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin endpoint configuration.

    + */ + inline const VpcOriginEndpointConfig& GetVpcOriginEndpointConfig() const{ return m_vpcOriginEndpointConfig; } + inline bool VpcOriginEndpointConfigHasBeenSet() const { return m_vpcOriginEndpointConfigHasBeenSet; } + inline void SetVpcOriginEndpointConfig(const VpcOriginEndpointConfig& value) { m_vpcOriginEndpointConfigHasBeenSet = true; m_vpcOriginEndpointConfig = value; } + inline void SetVpcOriginEndpointConfig(VpcOriginEndpointConfig&& value) { m_vpcOriginEndpointConfigHasBeenSet = true; m_vpcOriginEndpointConfig = std::move(value); } + inline VpcOrigin& WithVpcOriginEndpointConfig(const VpcOriginEndpointConfig& value) { SetVpcOriginEndpointConfig(value); return *this;} + inline VpcOrigin& WithVpcOriginEndpointConfig(VpcOriginEndpointConfig&& value) { SetVpcOriginEndpointConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::String m_status; + bool m_statusHasBeenSet = false; + + Aws::Utils::DateTime m_createdTime; + bool m_createdTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastModifiedTime; + bool m_lastModifiedTimeHasBeenSet = false; + + VpcOriginEndpointConfig m_vpcOriginEndpointConfig; + bool m_vpcOriginEndpointConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginConfig.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginConfig.h new file mode 100644 index 00000000000..4ac4328ed28 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginConfig.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 + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + + /** + *

    An Amazon CloudFront VPC origin configuration.

    See Also:

    AWS + * API Reference

    + */ + class VpcOriginConfig + { + public: + AWS_CLOUDFRONT_API VpcOriginConfig(); + AWS_CLOUDFRONT_API VpcOriginConfig(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDFRONT_API VpcOriginConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + ///@{ + /** + *

    The VPC origin ID.

    + */ + inline const Aws::String& GetVpcOriginId() const{ return m_vpcOriginId; } + inline bool VpcOriginIdHasBeenSet() const { return m_vpcOriginIdHasBeenSet; } + inline void SetVpcOriginId(const Aws::String& value) { m_vpcOriginIdHasBeenSet = true; m_vpcOriginId = value; } + inline void SetVpcOriginId(Aws::String&& value) { m_vpcOriginIdHasBeenSet = true; m_vpcOriginId = std::move(value); } + inline void SetVpcOriginId(const char* value) { m_vpcOriginIdHasBeenSet = true; m_vpcOriginId.assign(value); } + inline VpcOriginConfig& WithVpcOriginId(const Aws::String& value) { SetVpcOriginId(value); return *this;} + inline VpcOriginConfig& WithVpcOriginId(Aws::String&& value) { SetVpcOriginId(std::move(value)); return *this;} + inline VpcOriginConfig& WithVpcOriginId(const char* value) { SetVpcOriginId(value); return *this;} + ///@} + private: + + Aws::String m_vpcOriginId; + bool m_vpcOriginIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginEndpointConfig.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginEndpointConfig.h new file mode 100644 index 00000000000..b1bfc737764 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginEndpointConfig.h @@ -0,0 +1,136 @@ +/** + * 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 Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + + /** + *

    An Amazon CloudFront VPC origin endpoint configuration.

    See + * Also:

    AWS + * API Reference

    + */ + class VpcOriginEndpointConfig + { + public: + AWS_CLOUDFRONT_API VpcOriginEndpointConfig(); + AWS_CLOUDFRONT_API VpcOriginEndpointConfig(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDFRONT_API VpcOriginEndpointConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + ///@{ + /** + *

    The name of the CloudFront VPC origin endpoint configuration.

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

    The ARN of the CloudFront VPC origin endpoint configuration.

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

    The HTTP port for the CloudFront VPC origin endpoint configuration.

    + */ + inline int GetHTTPPort() const{ return m_hTTPPort; } + inline bool HTTPPortHasBeenSet() const { return m_hTTPPortHasBeenSet; } + inline void SetHTTPPort(int value) { m_hTTPPortHasBeenSet = true; m_hTTPPort = value; } + inline VpcOriginEndpointConfig& WithHTTPPort(int value) { SetHTTPPort(value); return *this;} + ///@} + + ///@{ + /** + *

    The HTTPS port of the CloudFront VPC origin endpoint configuration.

    + */ + inline int GetHTTPSPort() const{ return m_hTTPSPort; } + inline bool HTTPSPortHasBeenSet() const { return m_hTTPSPortHasBeenSet; } + inline void SetHTTPSPort(int value) { m_hTTPSPortHasBeenSet = true; m_hTTPSPort = value; } + inline VpcOriginEndpointConfig& WithHTTPSPort(int value) { SetHTTPSPort(value); return *this;} + ///@} + + ///@{ + /** + *

    The origin protocol policy for the CloudFront VPC origin endpoint + * configuration.

    + */ + inline const OriginProtocolPolicy& GetOriginProtocolPolicy() const{ return m_originProtocolPolicy; } + inline bool OriginProtocolPolicyHasBeenSet() const { return m_originProtocolPolicyHasBeenSet; } + inline void SetOriginProtocolPolicy(const OriginProtocolPolicy& value) { m_originProtocolPolicyHasBeenSet = true; m_originProtocolPolicy = value; } + inline void SetOriginProtocolPolicy(OriginProtocolPolicy&& value) { m_originProtocolPolicyHasBeenSet = true; m_originProtocolPolicy = std::move(value); } + inline VpcOriginEndpointConfig& WithOriginProtocolPolicy(const OriginProtocolPolicy& value) { SetOriginProtocolPolicy(value); return *this;} + inline VpcOriginEndpointConfig& WithOriginProtocolPolicy(OriginProtocolPolicy&& value) { SetOriginProtocolPolicy(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const OriginSslProtocols& GetOriginSslProtocols() const{ return m_originSslProtocols; } + inline bool OriginSslProtocolsHasBeenSet() const { return m_originSslProtocolsHasBeenSet; } + inline void SetOriginSslProtocols(const OriginSslProtocols& value) { m_originSslProtocolsHasBeenSet = true; m_originSslProtocols = value; } + inline void SetOriginSslProtocols(OriginSslProtocols&& value) { m_originSslProtocolsHasBeenSet = true; m_originSslProtocols = std::move(value); } + inline VpcOriginEndpointConfig& WithOriginSslProtocols(const OriginSslProtocols& value) { SetOriginSslProtocols(value); return *this;} + inline VpcOriginEndpointConfig& WithOriginSslProtocols(OriginSslProtocols&& value) { SetOriginSslProtocols(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + int m_hTTPPort; + bool m_hTTPPortHasBeenSet = false; + + int m_hTTPSPort; + bool m_hTTPSPortHasBeenSet = false; + + OriginProtocolPolicy m_originProtocolPolicy; + bool m_originProtocolPolicyHasBeenSet = false; + + OriginSslProtocols m_originSslProtocols; + bool m_originSslProtocolsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginList.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginList.h new file mode 100644 index 00000000000..689a18f019b --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginList.h @@ -0,0 +1,139 @@ +/** + * 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 Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + + /** + *

    A list of CloudFront VPC origins.

    See Also:

    AWS + * API Reference

    + */ + class VpcOriginList + { + public: + AWS_CLOUDFRONT_API VpcOriginList(); + AWS_CLOUDFRONT_API VpcOriginList(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDFRONT_API VpcOriginList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + ///@{ + /** + *

    The marker associated with the VPC origins list.

    + */ + inline const Aws::String& GetMarker() const{ return m_marker; } + inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } + inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } + inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } + inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } + inline VpcOriginList& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} + inline VpcOriginList& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} + inline VpcOriginList& WithMarker(const char* value) { SetMarker(value); return *this;} + ///@} + + ///@{ + /** + *

    The next marker associated with the VPC origins list.

    + */ + inline const Aws::String& GetNextMarker() const{ return m_nextMarker; } + inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; } + inline void SetNextMarker(const Aws::String& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = value; } + inline void SetNextMarker(Aws::String&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::move(value); } + inline void SetNextMarker(const char* value) { m_nextMarkerHasBeenSet = true; m_nextMarker.assign(value); } + inline VpcOriginList& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;} + inline VpcOriginList& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;} + inline VpcOriginList& WithNextMarker(const char* value) { SetNextMarker(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of items included in the list.

    + */ + inline int GetMaxItems() const{ return m_maxItems; } + inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } + inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } + inline VpcOriginList& WithMaxItems(int value) { SetMaxItems(value); return *this;} + ///@} + + ///@{ + /** + *

    A flag that indicates whether more VPC origins remain to be listed. If your + * results were truncated, you can make a follow-up pagination request using the + * Marker request parameter to retrieve more VPC origins in the + * list.

    + */ + inline bool GetIsTruncated() const{ return m_isTruncated; } + inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; } + inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; } + inline VpcOriginList& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;} + ///@} + + ///@{ + /** + *

    The number of VPC origins in the list.

    + */ + inline int GetQuantity() const{ return m_quantity; } + inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; } + inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; } + inline VpcOriginList& WithQuantity(int value) { SetQuantity(value); return *this;} + ///@} + + ///@{ + /** + *

    The items of the VPC origins list.

    + */ + inline const Aws::Vector& GetItems() const{ return m_items; } + inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; } + inline void SetItems(const Aws::Vector& value) { m_itemsHasBeenSet = true; m_items = value; } + inline void SetItems(Aws::Vector&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); } + inline VpcOriginList& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} + inline VpcOriginList& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} + inline VpcOriginList& AddItems(const VpcOriginSummary& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } + inline VpcOriginList& AddItems(VpcOriginSummary&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_marker; + bool m_markerHasBeenSet = false; + + Aws::String m_nextMarker; + bool m_nextMarkerHasBeenSet = false; + + int m_maxItems; + bool m_maxItemsHasBeenSet = false; + + bool m_isTruncated; + bool m_isTruncatedHasBeenSet = false; + + int m_quantity; + bool m_quantityHasBeenSet = false; + + Aws::Vector m_items; + bool m_itemsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginSummary.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginSummary.h new file mode 100644 index 00000000000..f7ea48e1c6d --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/VpcOriginSummary.h @@ -0,0 +1,160 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFront +{ +namespace Model +{ + + /** + *

    A summary of the CloudFront VPC origin.

    See Also:

    AWS + * API Reference

    + */ + class VpcOriginSummary + { + public: + AWS_CLOUDFRONT_API VpcOriginSummary(); + AWS_CLOUDFRONT_API VpcOriginSummary(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDFRONT_API VpcOriginSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + ///@{ + /** + *

    The VPC origin summary ID.

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

    The VPC origin summary name.

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

    The VPC origin summary status.

    + */ + inline const Aws::String& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } + inline VpcOriginSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} + inline VpcOriginSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} + inline VpcOriginSummary& WithStatus(const char* value) { SetStatus(value); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin summary created time.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } + inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } + inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } + inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } + inline VpcOriginSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} + inline VpcOriginSummary& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin summary last modified time.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } + inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } + inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } + inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } + inline VpcOriginSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline VpcOriginSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The VPC origin summary ARN.

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

    The VPC origin summary origin endpoint ARN.

    + */ + inline const Aws::String& GetOriginEndpointArn() const{ return m_originEndpointArn; } + inline bool OriginEndpointArnHasBeenSet() const { return m_originEndpointArnHasBeenSet; } + inline void SetOriginEndpointArn(const Aws::String& value) { m_originEndpointArnHasBeenSet = true; m_originEndpointArn = value; } + inline void SetOriginEndpointArn(Aws::String&& value) { m_originEndpointArnHasBeenSet = true; m_originEndpointArn = std::move(value); } + inline void SetOriginEndpointArn(const char* value) { m_originEndpointArnHasBeenSet = true; m_originEndpointArn.assign(value); } + inline VpcOriginSummary& WithOriginEndpointArn(const Aws::String& value) { SetOriginEndpointArn(value); return *this;} + inline VpcOriginSummary& WithOriginEndpointArn(Aws::String&& value) { SetOriginEndpointArn(std::move(value)); return *this;} + inline VpcOriginSummary& WithOriginEndpointArn(const char* value) { SetOriginEndpointArn(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_status; + bool m_statusHasBeenSet = false; + + Aws::Utils::DateTime m_createdTime; + bool m_createdTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastModifiedTime; + bool m_lastModifiedTimeHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::String m_originEndpointArn; + bool m_originEndpointArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp index 1fd027e7e1d..fd3ac59d226 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -42,6 +43,8 @@ #include #include #include +#include +#include #include #include #include @@ -58,8 +61,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -88,16 +93,20 @@ #include #include #include +#include +#include #include #include #include #include #include +#include #include #include #include #include #include +#include #include #include #include @@ -112,6 +121,7 @@ #include #include #include +#include #include #include #include @@ -132,6 +142,7 @@ #include #include #include +#include #include @@ -349,6 +360,33 @@ CopyDistribution2020_05_31Outcome CloudFrontClient::CopyDistribution2020_05_31(c {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateAnycastIpList2020_05_31Outcome CloudFrontClient::CreateAnycastIpList2020_05_31(const CreateAnycastIpList2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(CreateAnycastIpList2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAnycastIpList2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAnycastIpList2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateAnycastIpList2020_05_31, 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( + [&]()-> CreateAnycastIpList2020_05_31Outcome { + 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, CreateAnycastIpList2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/anycast-ip-list"); + return CreateAnycastIpList2020_05_31Outcome(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()}}); +} + CreateCachePolicy2020_05_31Outcome CloudFrontClient::CreateCachePolicy2020_05_31(const CreateCachePolicy2020_05_31Request& request) const { AWS_OPERATION_GUARD(CreateCachePolicy2020_05_31); @@ -882,6 +920,71 @@ CreateStreamingDistributionWithTags2020_05_31Outcome CloudFrontClient::CreateStr {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateVpcOrigin2020_05_31Outcome CloudFrontClient::CreateVpcOrigin2020_05_31(const CreateVpcOrigin2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(CreateVpcOrigin2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateVpcOrigin2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateVpcOrigin2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateVpcOrigin2020_05_31, 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( + [&]()-> CreateVpcOrigin2020_05_31Outcome { + 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, CreateVpcOrigin2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/vpc-origin"); + return CreateVpcOrigin2020_05_31Outcome(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()}}); +} + +DeleteAnycastIpList2020_05_31Outcome CloudFrontClient::DeleteAnycastIpList2020_05_31(const DeleteAnycastIpList2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(DeleteAnycastIpList2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAnycastIpList2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAnycastIpList2020_05_31", "Required field: Id, is not set"); + return DeleteAnycastIpList2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + if (!request.IfMatchHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAnycastIpList2020_05_31", "Required field: IfMatch, is not set"); + return DeleteAnycastIpList2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [IfMatch]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAnycastIpList2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteAnycastIpList2020_05_31, 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( + [&]()-> DeleteAnycastIpList2020_05_31Outcome { + 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, DeleteAnycastIpList2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/anycast-ip-list/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return DeleteAnycastIpList2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteCachePolicy2020_05_31Outcome CloudFrontClient::DeleteCachePolicy2020_05_31(const DeleteCachePolicy2020_05_31Request& request) const { AWS_OPERATION_GUARD(DeleteCachePolicy2020_05_31); @@ -1415,6 +1518,44 @@ DeleteStreamingDistribution2020_05_31Outcome CloudFrontClient::DeleteStreamingDi {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteVpcOrigin2020_05_31Outcome CloudFrontClient::DeleteVpcOrigin2020_05_31(const DeleteVpcOrigin2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(DeleteVpcOrigin2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVpcOrigin2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteVpcOrigin2020_05_31", "Required field: Id, is not set"); + return DeleteVpcOrigin2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + if (!request.IfMatchHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteVpcOrigin2020_05_31", "Required field: IfMatch, is not set"); + return DeleteVpcOrigin2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [IfMatch]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVpcOrigin2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteVpcOrigin2020_05_31, 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( + [&]()-> DeleteVpcOrigin2020_05_31Outcome { + 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, DeleteVpcOrigin2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/vpc-origin/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return DeleteVpcOrigin2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeFunction2020_05_31Outcome CloudFrontClient::DescribeFunction2020_05_31(const DescribeFunction2020_05_31Request& request) const { AWS_OPERATION_GUARD(DescribeFunction2020_05_31); @@ -1482,6 +1623,39 @@ DescribeKeyValueStore2020_05_31Outcome CloudFrontClient::DescribeKeyValueStore20 {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetAnycastIpList2020_05_31Outcome CloudFrontClient::GetAnycastIpList2020_05_31(const GetAnycastIpList2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(GetAnycastIpList2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAnycastIpList2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetAnycastIpList2020_05_31", "Required field: Id, is not set"); + return GetAnycastIpList2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAnycastIpList2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetAnycastIpList2020_05_31, 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( + [&]()-> GetAnycastIpList2020_05_31Outcome { + 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, GetAnycastIpList2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/anycast-ip-list/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return GetAnycastIpList2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetCachePolicy2020_05_31Outcome CloudFrontClient::GetCachePolicy2020_05_31(const GetCachePolicy2020_05_31Request& request) const { AWS_OPERATION_GUARD(GetCachePolicy2020_05_31); @@ -2420,6 +2594,66 @@ GetStreamingDistributionConfig2020_05_31Outcome CloudFrontClient::GetStreamingDi {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetVpcOrigin2020_05_31Outcome CloudFrontClient::GetVpcOrigin2020_05_31(const GetVpcOrigin2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(GetVpcOrigin2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetVpcOrigin2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetVpcOrigin2020_05_31", "Required field: Id, is not set"); + return GetVpcOrigin2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetVpcOrigin2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetVpcOrigin2020_05_31, 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( + [&]()-> GetVpcOrigin2020_05_31Outcome { + 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, GetVpcOrigin2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/vpc-origin/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return GetVpcOrigin2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListAnycastIpLists2020_05_31Outcome CloudFrontClient::ListAnycastIpLists2020_05_31(const ListAnycastIpLists2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(ListAnycastIpLists2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAnycastIpLists2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAnycastIpLists2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListAnycastIpLists2020_05_31, 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( + [&]()-> ListAnycastIpLists2020_05_31Outcome { + 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, ListAnycastIpLists2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/anycast-ip-list"); + return ListAnycastIpLists2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListCachePolicies2020_05_31Outcome CloudFrontClient::ListCachePolicies2020_05_31(const ListCachePolicies2020_05_31Request& request) const { AWS_OPERATION_GUARD(ListCachePolicies2020_05_31); @@ -2565,6 +2799,39 @@ ListDistributions2020_05_31Outcome CloudFrontClient::ListDistributions2020_05_31 {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListDistributionsByAnycastIpListId2020_05_31Outcome CloudFrontClient::ListDistributionsByAnycastIpListId2020_05_31(const ListDistributionsByAnycastIpListId2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(ListDistributionsByAnycastIpListId2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListDistributionsByAnycastIpListId2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AnycastIpListIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListDistributionsByAnycastIpListId2020_05_31", "Required field: AnycastIpListId, is not set"); + return ListDistributionsByAnycastIpListId2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AnycastIpListId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListDistributionsByAnycastIpListId2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListDistributionsByAnycastIpListId2020_05_31, 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( + [&]()-> ListDistributionsByAnycastIpListId2020_05_31Outcome { + 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, ListDistributionsByAnycastIpListId2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/distributionsByAnycastIpListId/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAnycastIpListId()); + return ListDistributionsByAnycastIpListId2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListDistributionsByCachePolicyId2020_05_31Outcome CloudFrontClient::ListDistributionsByCachePolicyId2020_05_31(const ListDistributionsByCachePolicyId2020_05_31Request& request) const { AWS_OPERATION_GUARD(ListDistributionsByCachePolicyId2020_05_31); @@ -2724,6 +2991,39 @@ ListDistributionsByResponseHeadersPolicyId2020_05_31Outcome CloudFrontClient::Li {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListDistributionsByVpcOriginId2020_05_31Outcome CloudFrontClient::ListDistributionsByVpcOriginId2020_05_31(const ListDistributionsByVpcOriginId2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(ListDistributionsByVpcOriginId2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListDistributionsByVpcOriginId2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.VpcOriginIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListDistributionsByVpcOriginId2020_05_31", "Required field: VpcOriginId, is not set"); + return ListDistributionsByVpcOriginId2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [VpcOriginId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListDistributionsByVpcOriginId2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListDistributionsByVpcOriginId2020_05_31, 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( + [&]()-> ListDistributionsByVpcOriginId2020_05_31Outcome { + 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, ListDistributionsByVpcOriginId2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/distributionsByVpcOriginId/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetVpcOriginId()); + return ListDistributionsByVpcOriginId2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListDistributionsByWebACLId2020_05_31Outcome CloudFrontClient::ListDistributionsByWebACLId2020_05_31(const ListDistributionsByWebACLId2020_05_31Request& request) const { AWS_OPERATION_GUARD(ListDistributionsByWebACLId2020_05_31); @@ -3120,6 +3420,33 @@ ListTagsForResource2020_05_31Outcome CloudFrontClient::ListTagsForResource2020_0 {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListVpcOrigins2020_05_31Outcome CloudFrontClient::ListVpcOrigins2020_05_31(const ListVpcOrigins2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(ListVpcOrigins2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListVpcOrigins2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListVpcOrigins2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListVpcOrigins2020_05_31, 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( + [&]()-> ListVpcOrigins2020_05_31Outcome { + 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, ListVpcOrigins2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/vpc-origin"); + return ListVpcOrigins2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + PublishFunction2020_05_31Outcome CloudFrontClient::PublishFunction2020_05_31(const PublishFunction2020_05_31Request& request) const { AWS_OPERATION_GUARD(PublishFunction2020_05_31); @@ -3808,3 +4135,41 @@ UpdateStreamingDistribution2020_05_31Outcome CloudFrontClient::UpdateStreamingDi {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateVpcOrigin2020_05_31Outcome CloudFrontClient::UpdateVpcOrigin2020_05_31(const UpdateVpcOrigin2020_05_31Request& request) const +{ + AWS_OPERATION_GUARD(UpdateVpcOrigin2020_05_31); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateVpcOrigin2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateVpcOrigin2020_05_31", "Required field: Id, is not set"); + return UpdateVpcOrigin2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + if (!request.IfMatchHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateVpcOrigin2020_05_31", "Required field: IfMatch, is not set"); + return UpdateVpcOrigin2020_05_31Outcome(Aws::Client::AWSError(CloudFrontErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [IfMatch]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateVpcOrigin2020_05_31, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateVpcOrigin2020_05_31, 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( + [&]()-> UpdateVpcOrigin2020_05_31Outcome { + 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, UpdateVpcOrigin2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/vpc-origin/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return UpdateVpcOrigin2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT)); + }, + 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-cloudfront/source/CloudFrontErrors.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp index cc00f467c7d..533c012ae23 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp @@ -162,6 +162,7 @@ static const int TOO_MANY_KEY_GROUPS_HASH = HashingUtils::HashString("TooManyKey static const int PUBLIC_KEY_ALREADY_EXISTS_HASH = HashingUtils::HashString("PublicKeyAlreadyExists"); static const int TOO_MANY_REMOVE_HEADERS_IN_RESPONSE_HEADERS_POLICY_HASH = HashingUtils::HashString("TooManyRemoveHeadersInResponseHeadersPolicy"); static const int REALTIME_LOG_CONFIG_IN_USE_HASH = HashingUtils::HashString("RealtimeLogConfigInUse"); +static const int CANNOT_UPDATE_ENTITY_WHILE_IN_USE_HASH = HashingUtils::HashString("CannotUpdateEntityWhileInUse"); static const int CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_IN_USE_HASH = HashingUtils::HashString("CloudFrontOriginAccessIdentityInUse"); static const int TOO_MANY_CUSTOM_HEADERS_IN_RESPONSE_HEADERS_POLICY_HASH = HashingUtils::HashString("TooManyCustomHeadersInResponseHeadersPolicy"); static const int ORIGIN_ACCESS_CONTROL_IN_USE_HASH = HashingUtils::HashString("OriginAccessControlInUse"); @@ -901,6 +902,11 @@ static bool GetErrorForNameHelper1(int hashCode, AWSError& error) error = AWSError(static_cast(CloudFrontErrors::REALTIME_LOG_CONFIG_IN_USE), RetryableType::NOT_RETRYABLE); return true; } + else if (hashCode == CANNOT_UPDATE_ENTITY_WHILE_IN_USE_HASH) + { + error = AWSError(static_cast(CloudFrontErrors::CANNOT_UPDATE_ENTITY_WHILE_IN_USE), RetryableType::NOT_RETRYABLE); + return true; + } else if (hashCode == CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_IN_USE_HASH) { error = AWSError(static_cast(CloudFrontErrors::CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_IN_USE), RetryableType::NOT_RETRYABLE); diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpList.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpList.cpp new file mode 100644 index 00000000000..d32ec8b5ff9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpList.cpp @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + +AnycastIpList::AnycastIpList() : + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_statusHasBeenSet(false), + m_arnHasBeenSet(false), + m_anycastIpsHasBeenSet(false), + m_ipCount(0), + m_ipCountHasBeenSet(false), + m_lastModifiedTimeHasBeenSet(false) +{ +} + +AnycastIpList::AnycastIpList(const XmlNode& xmlNode) + : AnycastIpList() +{ + *this = xmlNode; +} + +AnycastIpList& AnycastIpList::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode idNode = resultNode.FirstChild("Id"); + if(!idNode.IsNull()) + { + m_id = Aws::Utils::Xml::DecodeEscapedXmlText(idNode.GetText()); + m_idHasBeenSet = true; + } + XmlNode nameNode = resultNode.FirstChild("Name"); + if(!nameNode.IsNull()) + { + m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText()); + m_nameHasBeenSet = true; + } + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_status = Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()); + m_statusHasBeenSet = true; + } + XmlNode arnNode = resultNode.FirstChild("Arn"); + if(!arnNode.IsNull()) + { + m_arn = Aws::Utils::Xml::DecodeEscapedXmlText(arnNode.GetText()); + m_arnHasBeenSet = true; + } + XmlNode anycastIpsNode = resultNode.FirstChild("AnycastIps"); + if(!anycastIpsNode.IsNull()) + { + XmlNode anycastIpsMember = anycastIpsNode.FirstChild("AnycastIp"); + while(!anycastIpsMember.IsNull()) + { + m_anycastIps.push_back(anycastIpsMember.GetText()); + anycastIpsMember = anycastIpsMember.NextNode("AnycastIp"); + } + + m_anycastIpsHasBeenSet = true; + } + XmlNode ipCountNode = resultNode.FirstChild("IpCount"); + if(!ipCountNode.IsNull()) + { + m_ipCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(ipCountNode.GetText()).c_str()).c_str()); + m_ipCountHasBeenSet = true; + } + XmlNode lastModifiedTimeNode = resultNode.FirstChild("LastModifiedTime"); + if(!lastModifiedTimeNode.IsNull()) + { + m_lastModifiedTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(lastModifiedTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_lastModifiedTimeHasBeenSet = true; + } + } + + return *this; +} + +void AnycastIpList::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_idHasBeenSet) + { + XmlNode idNode = parentNode.CreateChildElement("Id"); + idNode.SetText(m_id); + } + + if(m_nameHasBeenSet) + { + XmlNode nameNode = parentNode.CreateChildElement("Name"); + nameNode.SetText(m_name); + } + + if(m_statusHasBeenSet) + { + XmlNode statusNode = parentNode.CreateChildElement("Status"); + statusNode.SetText(m_status); + } + + if(m_arnHasBeenSet) + { + XmlNode arnNode = parentNode.CreateChildElement("Arn"); + arnNode.SetText(m_arn); + } + + if(m_anycastIpsHasBeenSet) + { + XmlNode anycastIpsParentNode = parentNode.CreateChildElement("AnycastIps"); + for(const auto& item : m_anycastIps) + { + XmlNode anycastIpsNode = anycastIpsParentNode.CreateChildElement("AnycastIp"); + anycastIpsNode.SetText(item); + } + } + + if(m_ipCountHasBeenSet) + { + XmlNode ipCountNode = parentNode.CreateChildElement("IpCount"); + ss << m_ipCount; + ipCountNode.SetText(ss.str()); + ss.str(""); + } + + if(m_lastModifiedTimeHasBeenSet) + { + XmlNode lastModifiedTimeNode = parentNode.CreateChildElement("LastModifiedTime"); + lastModifiedTimeNode.SetText(m_lastModifiedTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + +} + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpListCollection.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpListCollection.cpp new file mode 100644 index 00000000000..7fa5741922e --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpListCollection.cpp @@ -0,0 +1,148 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + +AnycastIpListCollection::AnycastIpListCollection() : + m_itemsHasBeenSet(false), + m_markerHasBeenSet(false), + m_nextMarkerHasBeenSet(false), + m_maxItems(0), + m_maxItemsHasBeenSet(false), + m_isTruncated(false), + m_isTruncatedHasBeenSet(false), + m_quantity(0), + m_quantityHasBeenSet(false) +{ +} + +AnycastIpListCollection::AnycastIpListCollection(const XmlNode& xmlNode) + : AnycastIpListCollection() +{ + *this = xmlNode; +} + +AnycastIpListCollection& AnycastIpListCollection::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode itemsNode = resultNode.FirstChild("Items"); + if(!itemsNode.IsNull()) + { + XmlNode itemsMember = itemsNode.FirstChild("AnycastIpListSummary"); + while(!itemsMember.IsNull()) + { + m_items.push_back(itemsMember); + itemsMember = itemsMember.NextNode("AnycastIpListSummary"); + } + + m_itemsHasBeenSet = true; + } + XmlNode markerNode = resultNode.FirstChild("Marker"); + if(!markerNode.IsNull()) + { + m_marker = Aws::Utils::Xml::DecodeEscapedXmlText(markerNode.GetText()); + m_markerHasBeenSet = true; + } + XmlNode nextMarkerNode = resultNode.FirstChild("NextMarker"); + if(!nextMarkerNode.IsNull()) + { + m_nextMarker = Aws::Utils::Xml::DecodeEscapedXmlText(nextMarkerNode.GetText()); + m_nextMarkerHasBeenSet = true; + } + XmlNode maxItemsNode = resultNode.FirstChild("MaxItems"); + if(!maxItemsNode.IsNull()) + { + m_maxItems = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(maxItemsNode.GetText()).c_str()).c_str()); + m_maxItemsHasBeenSet = true; + } + XmlNode isTruncatedNode = resultNode.FirstChild("IsTruncated"); + if(!isTruncatedNode.IsNull()) + { + m_isTruncated = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(isTruncatedNode.GetText()).c_str()).c_str()); + m_isTruncatedHasBeenSet = true; + } + XmlNode quantityNode = resultNode.FirstChild("Quantity"); + if(!quantityNode.IsNull()) + { + m_quantity = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(quantityNode.GetText()).c_str()).c_str()); + m_quantityHasBeenSet = true; + } + } + + return *this; +} + +void AnycastIpListCollection::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_itemsHasBeenSet) + { + XmlNode itemsParentNode = parentNode.CreateChildElement("Items"); + for(const auto& item : m_items) + { + XmlNode itemsNode = itemsParentNode.CreateChildElement("AnycastIpListSummary"); + item.AddToNode(itemsNode); + } + } + + if(m_markerHasBeenSet) + { + XmlNode markerNode = parentNode.CreateChildElement("Marker"); + markerNode.SetText(m_marker); + } + + if(m_nextMarkerHasBeenSet) + { + XmlNode nextMarkerNode = parentNode.CreateChildElement("NextMarker"); + nextMarkerNode.SetText(m_nextMarker); + } + + if(m_maxItemsHasBeenSet) + { + XmlNode maxItemsNode = parentNode.CreateChildElement("MaxItems"); + ss << m_maxItems; + maxItemsNode.SetText(ss.str()); + ss.str(""); + } + + if(m_isTruncatedHasBeenSet) + { + XmlNode isTruncatedNode = parentNode.CreateChildElement("IsTruncated"); + ss << std::boolalpha << m_isTruncated; + isTruncatedNode.SetText(ss.str()); + ss.str(""); + } + + if(m_quantityHasBeenSet) + { + XmlNode quantityNode = parentNode.CreateChildElement("Quantity"); + ss << m_quantity; + quantityNode.SetText(ss.str()); + ss.str(""); + } + +} + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpListSummary.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpListSummary.cpp new file mode 100644 index 00000000000..54ce7a9896c --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/AnycastIpListSummary.cpp @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + +AnycastIpListSummary::AnycastIpListSummary() : + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_statusHasBeenSet(false), + m_arnHasBeenSet(false), + m_ipCount(0), + m_ipCountHasBeenSet(false), + m_lastModifiedTimeHasBeenSet(false) +{ +} + +AnycastIpListSummary::AnycastIpListSummary(const XmlNode& xmlNode) + : AnycastIpListSummary() +{ + *this = xmlNode; +} + +AnycastIpListSummary& AnycastIpListSummary::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode idNode = resultNode.FirstChild("Id"); + if(!idNode.IsNull()) + { + m_id = Aws::Utils::Xml::DecodeEscapedXmlText(idNode.GetText()); + m_idHasBeenSet = true; + } + XmlNode nameNode = resultNode.FirstChild("Name"); + if(!nameNode.IsNull()) + { + m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText()); + m_nameHasBeenSet = true; + } + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_status = Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()); + m_statusHasBeenSet = true; + } + XmlNode arnNode = resultNode.FirstChild("Arn"); + if(!arnNode.IsNull()) + { + m_arn = Aws::Utils::Xml::DecodeEscapedXmlText(arnNode.GetText()); + m_arnHasBeenSet = true; + } + XmlNode ipCountNode = resultNode.FirstChild("IpCount"); + if(!ipCountNode.IsNull()) + { + m_ipCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(ipCountNode.GetText()).c_str()).c_str()); + m_ipCountHasBeenSet = true; + } + XmlNode lastModifiedTimeNode = resultNode.FirstChild("LastModifiedTime"); + if(!lastModifiedTimeNode.IsNull()) + { + m_lastModifiedTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(lastModifiedTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_lastModifiedTimeHasBeenSet = true; + } + } + + return *this; +} + +void AnycastIpListSummary::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_idHasBeenSet) + { + XmlNode idNode = parentNode.CreateChildElement("Id"); + idNode.SetText(m_id); + } + + if(m_nameHasBeenSet) + { + XmlNode nameNode = parentNode.CreateChildElement("Name"); + nameNode.SetText(m_name); + } + + if(m_statusHasBeenSet) + { + XmlNode statusNode = parentNode.CreateChildElement("Status"); + statusNode.SetText(m_status); + } + + if(m_arnHasBeenSet) + { + XmlNode arnNode = parentNode.CreateChildElement("Arn"); + arnNode.SetText(m_arn); + } + + if(m_ipCountHasBeenSet) + { + XmlNode ipCountNode = parentNode.CreateChildElement("IpCount"); + ss << m_ipCount; + ipCountNode.SetText(ss.str()); + ss.str(""); + } + + if(m_lastModifiedTimeHasBeenSet) + { + XmlNode lastModifiedTimeNode = parentNode.CreateChildElement("LastModifiedTime"); + lastModifiedTimeNode.SetText(m_lastModifiedTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + +} + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/CacheBehavior.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/CacheBehavior.cpp index 0c5d639fbb8..1bd30eea4b9 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/CacheBehavior.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/CacheBehavior.cpp @@ -38,7 +38,8 @@ CacheBehavior::CacheBehavior() : m_realtimeLogConfigArnHasBeenSet(false), m_cachePolicyIdHasBeenSet(false), m_originRequestPolicyIdHasBeenSet(false), - m_responseHeadersPolicyIdHasBeenSet(false) + m_responseHeadersPolicyIdHasBeenSet(false), + m_grpcConfigHasBeenSet(false) { } @@ -144,6 +145,12 @@ CacheBehavior& CacheBehavior::operator =(const XmlNode& xmlNode) m_responseHeadersPolicyId = Aws::Utils::Xml::DecodeEscapedXmlText(responseHeadersPolicyIdNode.GetText()); m_responseHeadersPolicyIdHasBeenSet = true; } + XmlNode grpcConfigNode = resultNode.FirstChild("GrpcConfig"); + if(!grpcConfigNode.IsNull()) + { + m_grpcConfig = grpcConfigNode; + m_grpcConfigHasBeenSet = true; + } } return *this; @@ -246,6 +253,12 @@ void CacheBehavior::AddToNode(XmlNode& parentNode) const responseHeadersPolicyIdNode.SetText(m_responseHeadersPolicyId); } + if(m_grpcConfigHasBeenSet) + { + XmlNode grpcConfigNode = parentNode.CreateChildElement("GrpcConfig"); + m_grpcConfig.AddToNode(grpcConfigNode); + } + } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateAnycastIpList2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateAnycastIpList2020_05_31Request.cpp new file mode 100644 index 00000000000..e81f6e22205 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateAnycastIpList2020_05_31Request.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +CreateAnycastIpList2020_05_31Request::CreateAnycastIpList2020_05_31Request() : + m_nameHasBeenSet(false), + m_ipCount(0), + m_ipCountHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateAnycastIpList2020_05_31Request::SerializePayload() const +{ + XmlDocument payloadDoc = XmlDocument::CreateWithRootNode("CreateAnycastIpListRequest"); + + XmlNode parentNode = payloadDoc.GetRootElement(); + parentNode.SetAttributeValue("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + + Aws::StringStream ss; + if(m_nameHasBeenSet) + { + XmlNode nameNode = parentNode.CreateChildElement("Name"); + nameNode.SetText(m_name); + } + + if(m_ipCountHasBeenSet) + { + XmlNode ipCountNode = parentNode.CreateChildElement("IpCount"); + ss << m_ipCount; + ipCountNode.SetText(ss.str()); + ss.str(""); + } + + if(m_tagsHasBeenSet) + { + XmlNode tagsNode = parentNode.CreateChildElement("Tags"); + m_tags.AddToNode(tagsNode); + } + + return payloadDoc.ConvertToString(); +} + + diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateAnycastIpList2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateAnycastIpList2020_05_31Result.cpp new file mode 100644 index 00000000000..35bcb885a6f --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateAnycastIpList2020_05_31Result.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +CreateAnycastIpList2020_05_31Result::CreateAnycastIpList2020_05_31Result() +{ +} + +CreateAnycastIpList2020_05_31Result::CreateAnycastIpList2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateAnycastIpList2020_05_31Result& CreateAnycastIpList2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_anycastIpList = resultNode; + } + + const auto& headers = result.GetHeaderValueCollection(); + const auto& eTagIter = headers.find("etag"); + if(eTagIter != headers.end()) + { + m_eTag = eTagIter->second; + } + + 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-cloudfront/source/model/CreateVpcOrigin2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateVpcOrigin2020_05_31Request.cpp new file mode 100644 index 00000000000..1d003f80062 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateVpcOrigin2020_05_31Request.cpp @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +CreateVpcOrigin2020_05_31Request::CreateVpcOrigin2020_05_31Request() : + m_vpcOriginEndpointConfigHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateVpcOrigin2020_05_31Request::SerializePayload() const +{ + XmlDocument payloadDoc = XmlDocument::CreateWithRootNode("CreateVpcOriginRequest"); + + XmlNode parentNode = payloadDoc.GetRootElement(); + parentNode.SetAttributeValue("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + + Aws::StringStream ss; + if(m_vpcOriginEndpointConfigHasBeenSet) + { + XmlNode vpcOriginEndpointConfigNode = parentNode.CreateChildElement("VpcOriginEndpointConfig"); + m_vpcOriginEndpointConfig.AddToNode(vpcOriginEndpointConfigNode); + } + + if(m_tagsHasBeenSet) + { + XmlNode tagsNode = parentNode.CreateChildElement("Tags"); + m_tags.AddToNode(tagsNode); + } + + return payloadDoc.ConvertToString(); +} + + diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateVpcOrigin2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateVpcOrigin2020_05_31Result.cpp new file mode 100644 index 00000000000..0a310dd28ca --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/CreateVpcOrigin2020_05_31Result.cpp @@ -0,0 +1,58 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +CreateVpcOrigin2020_05_31Result::CreateVpcOrigin2020_05_31Result() +{ +} + +CreateVpcOrigin2020_05_31Result::CreateVpcOrigin2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateVpcOrigin2020_05_31Result& CreateVpcOrigin2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_vpcOrigin = resultNode; + } + + const auto& headers = result.GetHeaderValueCollection(); + const auto& locationIter = headers.find("location"); + if(locationIter != headers.end()) + { + m_location = locationIter->second; + } + + const auto& eTagIter = headers.find("etag"); + if(eTagIter != headers.end()) + { + m_eTag = eTagIter->second; + } + + 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-cloudfront/source/model/DefaultCacheBehavior.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/DefaultCacheBehavior.cpp index f71618cb107..726369a6435 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/DefaultCacheBehavior.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/DefaultCacheBehavior.cpp @@ -37,7 +37,8 @@ DefaultCacheBehavior::DefaultCacheBehavior() : m_realtimeLogConfigArnHasBeenSet(false), m_cachePolicyIdHasBeenSet(false), m_originRequestPolicyIdHasBeenSet(false), - m_responseHeadersPolicyIdHasBeenSet(false) + m_responseHeadersPolicyIdHasBeenSet(false), + m_grpcConfigHasBeenSet(false) { } @@ -137,6 +138,12 @@ DefaultCacheBehavior& DefaultCacheBehavior::operator =(const XmlNode& xmlNode) m_responseHeadersPolicyId = Aws::Utils::Xml::DecodeEscapedXmlText(responseHeadersPolicyIdNode.GetText()); m_responseHeadersPolicyIdHasBeenSet = true; } + XmlNode grpcConfigNode = resultNode.FirstChild("GrpcConfig"); + if(!grpcConfigNode.IsNull()) + { + m_grpcConfig = grpcConfigNode; + m_grpcConfigHasBeenSet = true; + } } return *this; @@ -233,6 +240,12 @@ void DefaultCacheBehavior::AddToNode(XmlNode& parentNode) const responseHeadersPolicyIdNode.SetText(m_responseHeadersPolicyId); } + if(m_grpcConfigHasBeenSet) + { + XmlNode grpcConfigNode = parentNode.CreateChildElement("GrpcConfig"); + m_grpcConfig.AddToNode(grpcConfigNode); + } + } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteAnycastIpList2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteAnycastIpList2020_05_31Request.cpp new file mode 100644 index 00000000000..bc97df452d4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteAnycastIpList2020_05_31Request.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +DeleteAnycastIpList2020_05_31Request::DeleteAnycastIpList2020_05_31Request() : + m_idHasBeenSet(false), + m_ifMatchHasBeenSet(false) +{ +} + +Aws::String DeleteAnycastIpList2020_05_31Request::SerializePayload() const +{ + return {}; +} + + +Aws::Http::HeaderValueCollection DeleteAnycastIpList2020_05_31Request::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_ifMatchHasBeenSet) + { + ss << m_ifMatch; + headers.emplace("if-match", ss.str()); + ss.str(""); + } + + return headers; +} diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteVpcOrigin2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteVpcOrigin2020_05_31Request.cpp new file mode 100644 index 00000000000..95770049d71 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteVpcOrigin2020_05_31Request.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +DeleteVpcOrigin2020_05_31Request::DeleteVpcOrigin2020_05_31Request() : + m_idHasBeenSet(false), + m_ifMatchHasBeenSet(false) +{ +} + +Aws::String DeleteVpcOrigin2020_05_31Request::SerializePayload() const +{ + return {}; +} + + +Aws::Http::HeaderValueCollection DeleteVpcOrigin2020_05_31Request::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_ifMatchHasBeenSet) + { + ss << m_ifMatch; + headers.emplace("if-match", ss.str()); + ss.str(""); + } + + return headers; +} diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteVpcOrigin2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteVpcOrigin2020_05_31Result.cpp new file mode 100644 index 00000000000..9c3c44a7161 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/DeleteVpcOrigin2020_05_31Result.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +DeleteVpcOrigin2020_05_31Result::DeleteVpcOrigin2020_05_31Result() +{ +} + +DeleteVpcOrigin2020_05_31Result::DeleteVpcOrigin2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteVpcOrigin2020_05_31Result& DeleteVpcOrigin2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_vpcOrigin = resultNode; + } + + const auto& headers = result.GetHeaderValueCollection(); + const auto& eTagIter = headers.find("etag"); + if(eTagIter != headers.end()) + { + m_eTag = eTagIter->second; + } + + 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-cloudfront/source/model/DistributionConfig.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/DistributionConfig.cpp index bd9e47de6a8..bf338c647df 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/DistributionConfig.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/DistributionConfig.cpp @@ -44,7 +44,8 @@ DistributionConfig::DistributionConfig() : m_isIPV6EnabledHasBeenSet(false), m_continuousDeploymentPolicyIdHasBeenSet(false), m_staging(false), - m_stagingHasBeenSet(false) + m_stagingHasBeenSet(false), + m_anycastIpListIdHasBeenSet(false) { } @@ -174,6 +175,12 @@ DistributionConfig& DistributionConfig::operator =(const XmlNode& xmlNode) m_staging = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(stagingNode.GetText()).c_str()).c_str()); m_stagingHasBeenSet = true; } + XmlNode anycastIpListIdNode = resultNode.FirstChild("AnycastIpListId"); + if(!anycastIpListIdNode.IsNull()) + { + m_anycastIpListId = Aws::Utils::Xml::DecodeEscapedXmlText(anycastIpListIdNode.GetText()); + m_anycastIpListIdHasBeenSet = true; + } } return *this; @@ -302,6 +309,12 @@ void DistributionConfig::AddToNode(XmlNode& parentNode) const ss.str(""); } + if(m_anycastIpListIdHasBeenSet) + { + XmlNode anycastIpListIdNode = parentNode.CreateChildElement("AnycastIpListId"); + anycastIpListIdNode.SetText(m_anycastIpListId); + } + } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/DistributionSummary.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/DistributionSummary.cpp index 44734528fc8..6a4ae64316e 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/DistributionSummary.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/DistributionSummary.cpp @@ -46,7 +46,8 @@ DistributionSummary::DistributionSummary() : m_isIPV6EnabledHasBeenSet(false), m_aliasICPRecordalsHasBeenSet(false), m_staging(false), - m_stagingHasBeenSet(false) + m_stagingHasBeenSet(false), + m_anycastIpListIdHasBeenSet(false) { } @@ -194,6 +195,12 @@ DistributionSummary& DistributionSummary::operator =(const XmlNode& xmlNode) m_staging = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(stagingNode.GetText()).c_str()).c_str()); m_stagingHasBeenSet = true; } + XmlNode anycastIpListIdNode = resultNode.FirstChild("AnycastIpListId"); + if(!anycastIpListIdNode.IsNull()) + { + m_anycastIpListId = Aws::Utils::Xml::DecodeEscapedXmlText(anycastIpListIdNode.GetText()); + m_anycastIpListIdHasBeenSet = true; + } } return *this; @@ -338,6 +345,12 @@ void DistributionSummary::AddToNode(XmlNode& parentNode) const ss.str(""); } + if(m_anycastIpListIdHasBeenSet) + { + XmlNode anycastIpListIdNode = parentNode.CreateChildElement("AnycastIpListId"); + anycastIpListIdNode.SetText(m_anycastIpListId); + } + } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/GetAnycastIpList2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/GetAnycastIpList2020_05_31Request.cpp new file mode 100644 index 00000000000..667e29759a4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/GetAnycastIpList2020_05_31Request.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +GetAnycastIpList2020_05_31Request::GetAnycastIpList2020_05_31Request() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetAnycastIpList2020_05_31Request::SerializePayload() const +{ + return {}; +} + + diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/GetAnycastIpList2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/GetAnycastIpList2020_05_31Result.cpp new file mode 100644 index 00000000000..e7bf89fb47d --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/GetAnycastIpList2020_05_31Result.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +GetAnycastIpList2020_05_31Result::GetAnycastIpList2020_05_31Result() +{ +} + +GetAnycastIpList2020_05_31Result::GetAnycastIpList2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetAnycastIpList2020_05_31Result& GetAnycastIpList2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_anycastIpList = resultNode; + } + + const auto& headers = result.GetHeaderValueCollection(); + const auto& eTagIter = headers.find("etag"); + if(eTagIter != headers.end()) + { + m_eTag = eTagIter->second; + } + + 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-cloudfront/source/model/GetVpcOrigin2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/GetVpcOrigin2020_05_31Request.cpp new file mode 100644 index 00000000000..1cc87a3ecb4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/GetVpcOrigin2020_05_31Request.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +GetVpcOrigin2020_05_31Request::GetVpcOrigin2020_05_31Request() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetVpcOrigin2020_05_31Request::SerializePayload() const +{ + return {}; +} + + diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/GetVpcOrigin2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/GetVpcOrigin2020_05_31Result.cpp new file mode 100644 index 00000000000..b1332727614 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/GetVpcOrigin2020_05_31Result.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +GetVpcOrigin2020_05_31Result::GetVpcOrigin2020_05_31Result() +{ +} + +GetVpcOrigin2020_05_31Result::GetVpcOrigin2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetVpcOrigin2020_05_31Result& GetVpcOrigin2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_vpcOrigin = resultNode; + } + + const auto& headers = result.GetHeaderValueCollection(); + const auto& eTagIter = headers.find("etag"); + if(eTagIter != headers.end()) + { + m_eTag = eTagIter->second; + } + + 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-cloudfront/source/model/GrpcConfig.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/GrpcConfig.cpp new file mode 100644 index 00000000000..10660755a44 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/GrpcConfig.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + +GrpcConfig::GrpcConfig() : + m_enabled(false), + m_enabledHasBeenSet(false) +{ +} + +GrpcConfig::GrpcConfig(const XmlNode& xmlNode) + : GrpcConfig() +{ + *this = xmlNode; +} + +GrpcConfig& GrpcConfig::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode enabledNode = resultNode.FirstChild("Enabled"); + if(!enabledNode.IsNull()) + { + m_enabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(enabledNode.GetText()).c_str()).c_str()); + m_enabledHasBeenSet = true; + } + } + + return *this; +} + +void GrpcConfig::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_enabledHasBeenSet) + { + XmlNode enabledNode = parentNode.CreateChildElement("Enabled"); + ss << std::boolalpha << m_enabled; + enabledNode.SetText(ss.str()); + ss.str(""); + } + +} + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ListAnycastIpLists2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListAnycastIpLists2020_05_31Request.cpp new file mode 100644 index 00000000000..df5593fc290 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListAnycastIpLists2020_05_31Request.cpp @@ -0,0 +1,50 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListAnycastIpLists2020_05_31Request::ListAnycastIpLists2020_05_31Request() : + m_markerHasBeenSet(false), + m_maxItems(0), + m_maxItemsHasBeenSet(false) +{ +} + +Aws::String ListAnycastIpLists2020_05_31Request::SerializePayload() const +{ + return {}; +} + +void ListAnycastIpLists2020_05_31Request::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_markerHasBeenSet) + { + ss << m_marker; + uri.AddQueryStringParameter("Marker", ss.str()); + ss.str(""); + } + + if(m_maxItemsHasBeenSet) + { + ss << m_maxItems; + uri.AddQueryStringParameter("MaxItems", ss.str()); + ss.str(""); + } + +} + diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ListAnycastIpLists2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListAnycastIpLists2020_05_31Result.cpp new file mode 100644 index 00000000000..593ff0c61e9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListAnycastIpLists2020_05_31Result.cpp @@ -0,0 +1,46 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +ListAnycastIpLists2020_05_31Result::ListAnycastIpLists2020_05_31Result() +{ +} + +ListAnycastIpLists2020_05_31Result::ListAnycastIpLists2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListAnycastIpLists2020_05_31Result& ListAnycastIpLists2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_anycastIpLists = resultNode; + } + + 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-cloudfront/source/model/ListDistributionsByAnycastIpListId2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByAnycastIpListId2020_05_31Request.cpp new file mode 100644 index 00000000000..9273143f78e --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByAnycastIpListId2020_05_31Request.cpp @@ -0,0 +1,50 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListDistributionsByAnycastIpListId2020_05_31Request::ListDistributionsByAnycastIpListId2020_05_31Request() : + m_markerHasBeenSet(false), + m_maxItemsHasBeenSet(false), + m_anycastIpListIdHasBeenSet(false) +{ +} + +Aws::String ListDistributionsByAnycastIpListId2020_05_31Request::SerializePayload() const +{ + return {}; +} + +void ListDistributionsByAnycastIpListId2020_05_31Request::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_markerHasBeenSet) + { + ss << m_marker; + uri.AddQueryStringParameter("Marker", ss.str()); + ss.str(""); + } + + if(m_maxItemsHasBeenSet) + { + ss << m_maxItems; + uri.AddQueryStringParameter("MaxItems", ss.str()); + ss.str(""); + } + +} + diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByAnycastIpListId2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByAnycastIpListId2020_05_31Result.cpp new file mode 100644 index 00000000000..d7c27fbb0d8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByAnycastIpListId2020_05_31Result.cpp @@ -0,0 +1,46 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +ListDistributionsByAnycastIpListId2020_05_31Result::ListDistributionsByAnycastIpListId2020_05_31Result() +{ +} + +ListDistributionsByAnycastIpListId2020_05_31Result::ListDistributionsByAnycastIpListId2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDistributionsByAnycastIpListId2020_05_31Result& ListDistributionsByAnycastIpListId2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_distributionList = resultNode; + } + + 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-cloudfront/source/model/ListDistributionsByVpcOriginId2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByVpcOriginId2020_05_31Request.cpp new file mode 100644 index 00000000000..2d3ade54b2e --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByVpcOriginId2020_05_31Request.cpp @@ -0,0 +1,50 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListDistributionsByVpcOriginId2020_05_31Request::ListDistributionsByVpcOriginId2020_05_31Request() : + m_markerHasBeenSet(false), + m_maxItemsHasBeenSet(false), + m_vpcOriginIdHasBeenSet(false) +{ +} + +Aws::String ListDistributionsByVpcOriginId2020_05_31Request::SerializePayload() const +{ + return {}; +} + +void ListDistributionsByVpcOriginId2020_05_31Request::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_markerHasBeenSet) + { + ss << m_marker; + uri.AddQueryStringParameter("Marker", ss.str()); + ss.str(""); + } + + if(m_maxItemsHasBeenSet) + { + ss << m_maxItems; + uri.AddQueryStringParameter("MaxItems", ss.str()); + ss.str(""); + } + +} + diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByVpcOriginId2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByVpcOriginId2020_05_31Result.cpp new file mode 100644 index 00000000000..197708ace9d --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListDistributionsByVpcOriginId2020_05_31Result.cpp @@ -0,0 +1,46 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +ListDistributionsByVpcOriginId2020_05_31Result::ListDistributionsByVpcOriginId2020_05_31Result() +{ +} + +ListDistributionsByVpcOriginId2020_05_31Result::ListDistributionsByVpcOriginId2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDistributionsByVpcOriginId2020_05_31Result& ListDistributionsByVpcOriginId2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_distributionIdList = resultNode; + } + + 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-cloudfront/source/model/ListVpcOrigins2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListVpcOrigins2020_05_31Request.cpp new file mode 100644 index 00000000000..d433dc7f675 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListVpcOrigins2020_05_31Request.cpp @@ -0,0 +1,49 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListVpcOrigins2020_05_31Request::ListVpcOrigins2020_05_31Request() : + m_markerHasBeenSet(false), + m_maxItemsHasBeenSet(false) +{ +} + +Aws::String ListVpcOrigins2020_05_31Request::SerializePayload() const +{ + return {}; +} + +void ListVpcOrigins2020_05_31Request::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_markerHasBeenSet) + { + ss << m_marker; + uri.AddQueryStringParameter("Marker", ss.str()); + ss.str(""); + } + + if(m_maxItemsHasBeenSet) + { + ss << m_maxItems; + uri.AddQueryStringParameter("MaxItems", ss.str()); + ss.str(""); + } + +} + diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ListVpcOrigins2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListVpcOrigins2020_05_31Result.cpp new file mode 100644 index 00000000000..1d1ca8f0bb9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ListVpcOrigins2020_05_31Result.cpp @@ -0,0 +1,46 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +ListVpcOrigins2020_05_31Result::ListVpcOrigins2020_05_31Result() +{ +} + +ListVpcOrigins2020_05_31Result::ListVpcOrigins2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListVpcOrigins2020_05_31Result& ListVpcOrigins2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_vpcOriginList = resultNode; + } + + 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-cloudfront/source/model/Origin.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/Origin.cpp index 910066d64d7..7a1d41de532 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/Origin.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/Origin.cpp @@ -27,6 +27,7 @@ Origin::Origin() : m_customHeadersHasBeenSet(false), m_s3OriginConfigHasBeenSet(false), m_customOriginConfigHasBeenSet(false), + m_vpcOriginConfigHasBeenSet(false), m_connectionAttempts(0), m_connectionAttemptsHasBeenSet(false), m_connectionTimeout(0), @@ -84,6 +85,12 @@ Origin& Origin::operator =(const XmlNode& xmlNode) m_customOriginConfig = customOriginConfigNode; m_customOriginConfigHasBeenSet = true; } + XmlNode vpcOriginConfigNode = resultNode.FirstChild("VpcOriginConfig"); + if(!vpcOriginConfigNode.IsNull()) + { + m_vpcOriginConfig = vpcOriginConfigNode; + m_vpcOriginConfigHasBeenSet = true; + } XmlNode connectionAttemptsNode = resultNode.FirstChild("ConnectionAttempts"); if(!connectionAttemptsNode.IsNull()) { @@ -152,6 +159,12 @@ void Origin::AddToNode(XmlNode& parentNode) const m_customOriginConfig.AddToNode(customOriginConfigNode); } + if(m_vpcOriginConfigHasBeenSet) + { + XmlNode vpcOriginConfigNode = parentNode.CreateChildElement("VpcOriginConfig"); + m_vpcOriginConfig.AddToNode(vpcOriginConfigNode); + } + if(m_connectionAttemptsHasBeenSet) { XmlNode connectionAttemptsNode = parentNode.CreateChildElement("ConnectionAttempts"); diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/UpdateVpcOrigin2020_05_31Request.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/UpdateVpcOrigin2020_05_31Request.cpp new file mode 100644 index 00000000000..ae911277643 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/UpdateVpcOrigin2020_05_31Request.cpp @@ -0,0 +1,54 @@ +/** + * 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::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +UpdateVpcOrigin2020_05_31Request::UpdateVpcOrigin2020_05_31Request() : + m_vpcOriginEndpointConfigHasBeenSet(false), + m_idHasBeenSet(false), + m_ifMatchHasBeenSet(false) +{ +} + +Aws::String UpdateVpcOrigin2020_05_31Request::SerializePayload() const +{ + XmlDocument payloadDoc = XmlDocument::CreateWithRootNode("VpcOriginEndpointConfig"); + + XmlNode parentNode = payloadDoc.GetRootElement(); + parentNode.SetAttributeValue("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + + m_vpcOriginEndpointConfig.AddToNode(parentNode); + if(parentNode.HasChildren()) + { + return payloadDoc.ConvertToString(); + } + + return {}; +} + + +Aws::Http::HeaderValueCollection UpdateVpcOrigin2020_05_31Request::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_ifMatchHasBeenSet) + { + ss << m_ifMatch; + headers.emplace("if-match", ss.str()); + ss.str(""); + } + + return headers; +} diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/UpdateVpcOrigin2020_05_31Result.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/UpdateVpcOrigin2020_05_31Result.cpp new file mode 100644 index 00000000000..fdc0460523b --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/UpdateVpcOrigin2020_05_31Result.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFront::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +UpdateVpcOrigin2020_05_31Result::UpdateVpcOrigin2020_05_31Result() +{ +} + +UpdateVpcOrigin2020_05_31Result::UpdateVpcOrigin2020_05_31Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateVpcOrigin2020_05_31Result& UpdateVpcOrigin2020_05_31Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + m_vpcOrigin = resultNode; + } + + const auto& headers = result.GetHeaderValueCollection(); + const auto& eTagIter = headers.find("etag"); + if(eTagIter != headers.end()) + { + m_eTag = eTagIter->second; + } + + 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-cloudfront/source/model/VpcOrigin.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOrigin.cpp new file mode 100644 index 00000000000..f0375755c67 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOrigin.cpp @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + +VpcOrigin::VpcOrigin() : + m_idHasBeenSet(false), + m_arnHasBeenSet(false), + m_statusHasBeenSet(false), + m_createdTimeHasBeenSet(false), + m_lastModifiedTimeHasBeenSet(false), + m_vpcOriginEndpointConfigHasBeenSet(false) +{ +} + +VpcOrigin::VpcOrigin(const XmlNode& xmlNode) + : VpcOrigin() +{ + *this = xmlNode; +} + +VpcOrigin& VpcOrigin::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode idNode = resultNode.FirstChild("Id"); + if(!idNode.IsNull()) + { + m_id = Aws::Utils::Xml::DecodeEscapedXmlText(idNode.GetText()); + m_idHasBeenSet = true; + } + XmlNode arnNode = resultNode.FirstChild("Arn"); + if(!arnNode.IsNull()) + { + m_arn = Aws::Utils::Xml::DecodeEscapedXmlText(arnNode.GetText()); + m_arnHasBeenSet = true; + } + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_status = Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()); + m_statusHasBeenSet = true; + } + XmlNode createdTimeNode = resultNode.FirstChild("CreatedTime"); + if(!createdTimeNode.IsNull()) + { + m_createdTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(createdTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_createdTimeHasBeenSet = true; + } + XmlNode lastModifiedTimeNode = resultNode.FirstChild("LastModifiedTime"); + if(!lastModifiedTimeNode.IsNull()) + { + m_lastModifiedTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(lastModifiedTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_lastModifiedTimeHasBeenSet = true; + } + XmlNode vpcOriginEndpointConfigNode = resultNode.FirstChild("VpcOriginEndpointConfig"); + if(!vpcOriginEndpointConfigNode.IsNull()) + { + m_vpcOriginEndpointConfig = vpcOriginEndpointConfigNode; + m_vpcOriginEndpointConfigHasBeenSet = true; + } + } + + return *this; +} + +void VpcOrigin::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_idHasBeenSet) + { + XmlNode idNode = parentNode.CreateChildElement("Id"); + idNode.SetText(m_id); + } + + if(m_arnHasBeenSet) + { + XmlNode arnNode = parentNode.CreateChildElement("Arn"); + arnNode.SetText(m_arn); + } + + if(m_statusHasBeenSet) + { + XmlNode statusNode = parentNode.CreateChildElement("Status"); + statusNode.SetText(m_status); + } + + if(m_createdTimeHasBeenSet) + { + XmlNode createdTimeNode = parentNode.CreateChildElement("CreatedTime"); + createdTimeNode.SetText(m_createdTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_lastModifiedTimeHasBeenSet) + { + XmlNode lastModifiedTimeNode = parentNode.CreateChildElement("LastModifiedTime"); + lastModifiedTimeNode.SetText(m_lastModifiedTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_vpcOriginEndpointConfigHasBeenSet) + { + XmlNode vpcOriginEndpointConfigNode = parentNode.CreateChildElement("VpcOriginEndpointConfig"); + m_vpcOriginEndpointConfig.AddToNode(vpcOriginEndpointConfigNode); + } + +} + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginConfig.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginConfig.cpp new file mode 100644 index 00000000000..e19181a5c88 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginConfig.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + +VpcOriginConfig::VpcOriginConfig() : + m_vpcOriginIdHasBeenSet(false) +{ +} + +VpcOriginConfig::VpcOriginConfig(const XmlNode& xmlNode) + : VpcOriginConfig() +{ + *this = xmlNode; +} + +VpcOriginConfig& VpcOriginConfig::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode vpcOriginIdNode = resultNode.FirstChild("VpcOriginId"); + if(!vpcOriginIdNode.IsNull()) + { + m_vpcOriginId = Aws::Utils::Xml::DecodeEscapedXmlText(vpcOriginIdNode.GetText()); + m_vpcOriginIdHasBeenSet = true; + } + } + + return *this; +} + +void VpcOriginConfig::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_vpcOriginIdHasBeenSet) + { + XmlNode vpcOriginIdNode = parentNode.CreateChildElement("VpcOriginId"); + vpcOriginIdNode.SetText(m_vpcOriginId); + } + +} + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginEndpointConfig.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginEndpointConfig.cpp new file mode 100644 index 00000000000..901bd112c59 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginEndpointConfig.cpp @@ -0,0 +1,136 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + +VpcOriginEndpointConfig::VpcOriginEndpointConfig() : + m_nameHasBeenSet(false), + m_arnHasBeenSet(false), + m_hTTPPort(0), + m_hTTPPortHasBeenSet(false), + m_hTTPSPort(0), + m_hTTPSPortHasBeenSet(false), + m_originProtocolPolicy(OriginProtocolPolicy::NOT_SET), + m_originProtocolPolicyHasBeenSet(false), + m_originSslProtocolsHasBeenSet(false) +{ +} + +VpcOriginEndpointConfig::VpcOriginEndpointConfig(const XmlNode& xmlNode) + : VpcOriginEndpointConfig() +{ + *this = xmlNode; +} + +VpcOriginEndpointConfig& VpcOriginEndpointConfig::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode nameNode = resultNode.FirstChild("Name"); + if(!nameNode.IsNull()) + { + m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText()); + m_nameHasBeenSet = true; + } + XmlNode arnNode = resultNode.FirstChild("Arn"); + if(!arnNode.IsNull()) + { + m_arn = Aws::Utils::Xml::DecodeEscapedXmlText(arnNode.GetText()); + m_arnHasBeenSet = true; + } + XmlNode hTTPPortNode = resultNode.FirstChild("HTTPPort"); + if(!hTTPPortNode.IsNull()) + { + m_hTTPPort = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(hTTPPortNode.GetText()).c_str()).c_str()); + m_hTTPPortHasBeenSet = true; + } + XmlNode hTTPSPortNode = resultNode.FirstChild("HTTPSPort"); + if(!hTTPSPortNode.IsNull()) + { + m_hTTPSPort = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(hTTPSPortNode.GetText()).c_str()).c_str()); + m_hTTPSPortHasBeenSet = true; + } + XmlNode originProtocolPolicyNode = resultNode.FirstChild("OriginProtocolPolicy"); + if(!originProtocolPolicyNode.IsNull()) + { + m_originProtocolPolicy = OriginProtocolPolicyMapper::GetOriginProtocolPolicyForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(originProtocolPolicyNode.GetText()).c_str()).c_str()); + m_originProtocolPolicyHasBeenSet = true; + } + XmlNode originSslProtocolsNode = resultNode.FirstChild("OriginSslProtocols"); + if(!originSslProtocolsNode.IsNull()) + { + m_originSslProtocols = originSslProtocolsNode; + m_originSslProtocolsHasBeenSet = true; + } + } + + return *this; +} + +void VpcOriginEndpointConfig::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_nameHasBeenSet) + { + XmlNode nameNode = parentNode.CreateChildElement("Name"); + nameNode.SetText(m_name); + } + + if(m_arnHasBeenSet) + { + XmlNode arnNode = parentNode.CreateChildElement("Arn"); + arnNode.SetText(m_arn); + } + + if(m_hTTPPortHasBeenSet) + { + XmlNode hTTPPortNode = parentNode.CreateChildElement("HTTPPort"); + ss << m_hTTPPort; + hTTPPortNode.SetText(ss.str()); + ss.str(""); + } + + if(m_hTTPSPortHasBeenSet) + { + XmlNode hTTPSPortNode = parentNode.CreateChildElement("HTTPSPort"); + ss << m_hTTPSPort; + hTTPSPortNode.SetText(ss.str()); + ss.str(""); + } + + if(m_originProtocolPolicyHasBeenSet) + { + XmlNode originProtocolPolicyNode = parentNode.CreateChildElement("OriginProtocolPolicy"); + originProtocolPolicyNode.SetText(OriginProtocolPolicyMapper::GetNameForOriginProtocolPolicy(m_originProtocolPolicy)); + } + + if(m_originSslProtocolsHasBeenSet) + { + XmlNode originSslProtocolsNode = parentNode.CreateChildElement("OriginSslProtocols"); + m_originSslProtocols.AddToNode(originSslProtocolsNode); + } + +} + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginList.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginList.cpp new file mode 100644 index 00000000000..9a10a782098 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginList.cpp @@ -0,0 +1,148 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + +VpcOriginList::VpcOriginList() : + m_markerHasBeenSet(false), + m_nextMarkerHasBeenSet(false), + m_maxItems(0), + m_maxItemsHasBeenSet(false), + m_isTruncated(false), + m_isTruncatedHasBeenSet(false), + m_quantity(0), + m_quantityHasBeenSet(false), + m_itemsHasBeenSet(false) +{ +} + +VpcOriginList::VpcOriginList(const XmlNode& xmlNode) + : VpcOriginList() +{ + *this = xmlNode; +} + +VpcOriginList& VpcOriginList::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode markerNode = resultNode.FirstChild("Marker"); + if(!markerNode.IsNull()) + { + m_marker = Aws::Utils::Xml::DecodeEscapedXmlText(markerNode.GetText()); + m_markerHasBeenSet = true; + } + XmlNode nextMarkerNode = resultNode.FirstChild("NextMarker"); + if(!nextMarkerNode.IsNull()) + { + m_nextMarker = Aws::Utils::Xml::DecodeEscapedXmlText(nextMarkerNode.GetText()); + m_nextMarkerHasBeenSet = true; + } + XmlNode maxItemsNode = resultNode.FirstChild("MaxItems"); + if(!maxItemsNode.IsNull()) + { + m_maxItems = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(maxItemsNode.GetText()).c_str()).c_str()); + m_maxItemsHasBeenSet = true; + } + XmlNode isTruncatedNode = resultNode.FirstChild("IsTruncated"); + if(!isTruncatedNode.IsNull()) + { + m_isTruncated = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(isTruncatedNode.GetText()).c_str()).c_str()); + m_isTruncatedHasBeenSet = true; + } + XmlNode quantityNode = resultNode.FirstChild("Quantity"); + if(!quantityNode.IsNull()) + { + m_quantity = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(quantityNode.GetText()).c_str()).c_str()); + m_quantityHasBeenSet = true; + } + XmlNode itemsNode = resultNode.FirstChild("Items"); + if(!itemsNode.IsNull()) + { + XmlNode itemsMember = itemsNode.FirstChild("VpcOriginSummary"); + while(!itemsMember.IsNull()) + { + m_items.push_back(itemsMember); + itemsMember = itemsMember.NextNode("VpcOriginSummary"); + } + + m_itemsHasBeenSet = true; + } + } + + return *this; +} + +void VpcOriginList::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_markerHasBeenSet) + { + XmlNode markerNode = parentNode.CreateChildElement("Marker"); + markerNode.SetText(m_marker); + } + + if(m_nextMarkerHasBeenSet) + { + XmlNode nextMarkerNode = parentNode.CreateChildElement("NextMarker"); + nextMarkerNode.SetText(m_nextMarker); + } + + if(m_maxItemsHasBeenSet) + { + XmlNode maxItemsNode = parentNode.CreateChildElement("MaxItems"); + ss << m_maxItems; + maxItemsNode.SetText(ss.str()); + ss.str(""); + } + + if(m_isTruncatedHasBeenSet) + { + XmlNode isTruncatedNode = parentNode.CreateChildElement("IsTruncated"); + ss << std::boolalpha << m_isTruncated; + isTruncatedNode.SetText(ss.str()); + ss.str(""); + } + + if(m_quantityHasBeenSet) + { + XmlNode quantityNode = parentNode.CreateChildElement("Quantity"); + ss << m_quantity; + quantityNode.SetText(ss.str()); + ss.str(""); + } + + if(m_itemsHasBeenSet) + { + XmlNode itemsParentNode = parentNode.CreateChildElement("Items"); + for(const auto& item : m_items) + { + XmlNode itemsNode = itemsParentNode.CreateChildElement("VpcOriginSummary"); + item.AddToNode(itemsNode); + } + } + +} + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginSummary.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginSummary.cpp new file mode 100644 index 00000000000..97032af39bd --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/VpcOriginSummary.cpp @@ -0,0 +1,142 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFront +{ +namespace Model +{ + +VpcOriginSummary::VpcOriginSummary() : + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_statusHasBeenSet(false), + m_createdTimeHasBeenSet(false), + m_lastModifiedTimeHasBeenSet(false), + m_arnHasBeenSet(false), + m_originEndpointArnHasBeenSet(false) +{ +} + +VpcOriginSummary::VpcOriginSummary(const XmlNode& xmlNode) + : VpcOriginSummary() +{ + *this = xmlNode; +} + +VpcOriginSummary& VpcOriginSummary::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode idNode = resultNode.FirstChild("Id"); + if(!idNode.IsNull()) + { + m_id = Aws::Utils::Xml::DecodeEscapedXmlText(idNode.GetText()); + m_idHasBeenSet = true; + } + XmlNode nameNode = resultNode.FirstChild("Name"); + if(!nameNode.IsNull()) + { + m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText()); + m_nameHasBeenSet = true; + } + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_status = Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()); + m_statusHasBeenSet = true; + } + XmlNode createdTimeNode = resultNode.FirstChild("CreatedTime"); + if(!createdTimeNode.IsNull()) + { + m_createdTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(createdTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_createdTimeHasBeenSet = true; + } + XmlNode lastModifiedTimeNode = resultNode.FirstChild("LastModifiedTime"); + if(!lastModifiedTimeNode.IsNull()) + { + m_lastModifiedTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(lastModifiedTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_lastModifiedTimeHasBeenSet = true; + } + XmlNode arnNode = resultNode.FirstChild("Arn"); + if(!arnNode.IsNull()) + { + m_arn = Aws::Utils::Xml::DecodeEscapedXmlText(arnNode.GetText()); + m_arnHasBeenSet = true; + } + XmlNode originEndpointArnNode = resultNode.FirstChild("OriginEndpointArn"); + if(!originEndpointArnNode.IsNull()) + { + m_originEndpointArn = Aws::Utils::Xml::DecodeEscapedXmlText(originEndpointArnNode.GetText()); + m_originEndpointArnHasBeenSet = true; + } + } + + return *this; +} + +void VpcOriginSummary::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_idHasBeenSet) + { + XmlNode idNode = parentNode.CreateChildElement("Id"); + idNode.SetText(m_id); + } + + if(m_nameHasBeenSet) + { + XmlNode nameNode = parentNode.CreateChildElement("Name"); + nameNode.SetText(m_name); + } + + if(m_statusHasBeenSet) + { + XmlNode statusNode = parentNode.CreateChildElement("Status"); + statusNode.SetText(m_status); + } + + if(m_createdTimeHasBeenSet) + { + XmlNode createdTimeNode = parentNode.CreateChildElement("CreatedTime"); + createdTimeNode.SetText(m_createdTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_lastModifiedTimeHasBeenSet) + { + XmlNode lastModifiedTimeNode = parentNode.CreateChildElement("LastModifiedTime"); + lastModifiedTimeNode.SetText(m_lastModifiedTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_arnHasBeenSet) + { + XmlNode arnNode = parentNode.CreateChildElement("Arn"); + arnNode.SetText(m_arn); + } + + if(m_originEndpointArnHasBeenSet) + { + XmlNode originEndpointArnNode = parentNode.CreateChildElement("OriginEndpointArn"); + originEndpointArnNode.SetText(m_originEndpointArn); + } + +} + +} // namespace Model +} // namespace CloudFront +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/ComputeOptimizerClient.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/ComputeOptimizerClient.h index ae588f0049a..b60c0de5417 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/ComputeOptimizerClient.h +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/ComputeOptimizerClient.h @@ -279,6 +279,39 @@ namespace ComputeOptimizer return SubmitAsync(&ComputeOptimizerClient::ExportECSServiceRecommendations, request, handler, context); } + /** + *

    Export optimization recommendations for your idle resources.

    + *

    Recommendations are exported in a comma-separated values (CSV) file, and its + * metadata in a JavaScript Object Notation (JSON) file, to an existing Amazon + * Simple Storage Service (Amazon S3) bucket that you specify. For more + * information, see Exporting + * Recommendations in the Compute Optimizer User Guide.

    You can + * have only one idle resource export job in progress per Amazon Web Services + * Region.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ExportIdleRecommendationsOutcome ExportIdleRecommendations(const Model::ExportIdleRecommendationsRequest& request) const; + + /** + * A Callable wrapper for ExportIdleRecommendations that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ExportIdleRecommendationsOutcomeCallable ExportIdleRecommendationsCallable(const ExportIdleRecommendationsRequestT& request) const + { + return SubmitCallable(&ComputeOptimizerClient::ExportIdleRecommendations, request); + } + + /** + * An Async wrapper for ExportIdleRecommendations that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ExportIdleRecommendationsAsync(const ExportIdleRecommendationsRequestT& request, const ExportIdleRecommendationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ComputeOptimizerClient::ExportIdleRecommendations, request, handler, context); + } + /** *

    Exports optimization recommendations for Lambda functions.

    *

    Recommendations are exported in a comma-separated values (.csv) file, and its @@ -647,6 +680,36 @@ namespace ComputeOptimizer return SubmitAsync(&ComputeOptimizerClient::GetEnrollmentStatusesForOrganization, request, handler, context); } + /** + *

    Returns idle resource recommendations. Compute Optimizer generates + * recommendations for idle resources that meet a specific set of requirements. For + * more information, see Resource + * requirements in the Compute Optimizer User Guide

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::GetIdleRecommendationsOutcome GetIdleRecommendations(const Model::GetIdleRecommendationsRequest& request = {}) const; + + /** + * A Callable wrapper for GetIdleRecommendations that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetIdleRecommendationsOutcomeCallable GetIdleRecommendationsCallable(const GetIdleRecommendationsRequestT& request = {}) const + { + return SubmitCallable(&ComputeOptimizerClient::GetIdleRecommendations, request); + } + + /** + * An Async wrapper for GetIdleRecommendations that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetIdleRecommendationsAsync(const GetIdleRecommendationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const GetIdleRecommendationsRequestT& request = {}) const + { + return SubmitAsync(&ComputeOptimizerClient::GetIdleRecommendations, request, handler, context); + } + /** *

    Returns Lambda function recommendations.

    Compute Optimizer generates * recommendations for functions that meet a specific set of requirements. For more diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/ComputeOptimizerServiceClientModel.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/ComputeOptimizerServiceClientModel.h index efdf1517114..305d31c86df 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/ComputeOptimizerServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/ComputeOptimizerServiceClientModel.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -36,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -50,6 +52,7 @@ #include #include #include +#include #include #include #include @@ -101,6 +104,7 @@ namespace Aws class ExportEBSVolumeRecommendationsRequest; class ExportEC2InstanceRecommendationsRequest; class ExportECSServiceRecommendationsRequest; + class ExportIdleRecommendationsRequest; class ExportLambdaFunctionRecommendationsRequest; class ExportLicenseRecommendationsRequest; class ExportRDSDatabaseRecommendationsRequest; @@ -113,6 +117,7 @@ namespace Aws class GetEffectiveRecommendationPreferencesRequest; class GetEnrollmentStatusRequest; class GetEnrollmentStatusesForOrganizationRequest; + class GetIdleRecommendationsRequest; class GetLambdaFunctionRecommendationsRequest; class GetLicenseRecommendationsRequest; class GetRDSDatabaseRecommendationProjectedMetricsRequest; @@ -130,6 +135,7 @@ namespace Aws typedef Aws::Utils::Outcome ExportEBSVolumeRecommendationsOutcome; typedef Aws::Utils::Outcome ExportEC2InstanceRecommendationsOutcome; typedef Aws::Utils::Outcome ExportECSServiceRecommendationsOutcome; + typedef Aws::Utils::Outcome ExportIdleRecommendationsOutcome; typedef Aws::Utils::Outcome ExportLambdaFunctionRecommendationsOutcome; typedef Aws::Utils::Outcome ExportLicenseRecommendationsOutcome; typedef Aws::Utils::Outcome ExportRDSDatabaseRecommendationsOutcome; @@ -142,6 +148,7 @@ namespace Aws typedef Aws::Utils::Outcome GetEffectiveRecommendationPreferencesOutcome; typedef Aws::Utils::Outcome GetEnrollmentStatusOutcome; typedef Aws::Utils::Outcome GetEnrollmentStatusesForOrganizationOutcome; + typedef Aws::Utils::Outcome GetIdleRecommendationsOutcome; typedef Aws::Utils::Outcome GetLambdaFunctionRecommendationsOutcome; typedef Aws::Utils::Outcome GetLicenseRecommendationsOutcome; typedef Aws::Utils::Outcome GetRDSDatabaseRecommendationProjectedMetricsOutcome; @@ -159,6 +166,7 @@ namespace Aws typedef std::future ExportEBSVolumeRecommendationsOutcomeCallable; typedef std::future ExportEC2InstanceRecommendationsOutcomeCallable; typedef std::future ExportECSServiceRecommendationsOutcomeCallable; + typedef std::future ExportIdleRecommendationsOutcomeCallable; typedef std::future ExportLambdaFunctionRecommendationsOutcomeCallable; typedef std::future ExportLicenseRecommendationsOutcomeCallable; typedef std::future ExportRDSDatabaseRecommendationsOutcomeCallable; @@ -171,6 +179,7 @@ namespace Aws typedef std::future GetEffectiveRecommendationPreferencesOutcomeCallable; typedef std::future GetEnrollmentStatusOutcomeCallable; typedef std::future GetEnrollmentStatusesForOrganizationOutcomeCallable; + typedef std::future GetIdleRecommendationsOutcomeCallable; typedef std::future GetLambdaFunctionRecommendationsOutcomeCallable; typedef std::future GetLicenseRecommendationsOutcomeCallable; typedef std::future GetRDSDatabaseRecommendationProjectedMetricsOutcomeCallable; @@ -191,6 +200,7 @@ namespace Aws typedef std::function&) > ExportEBSVolumeRecommendationsResponseReceivedHandler; typedef std::function&) > ExportEC2InstanceRecommendationsResponseReceivedHandler; typedef std::function&) > ExportECSServiceRecommendationsResponseReceivedHandler; + typedef std::function&) > ExportIdleRecommendationsResponseReceivedHandler; typedef std::function&) > ExportLambdaFunctionRecommendationsResponseReceivedHandler; typedef std::function&) > ExportLicenseRecommendationsResponseReceivedHandler; typedef std::function&) > ExportRDSDatabaseRecommendationsResponseReceivedHandler; @@ -203,6 +213,7 @@ namespace Aws typedef std::function&) > GetEffectiveRecommendationPreferencesResponseReceivedHandler; typedef std::function&) > GetEnrollmentStatusResponseReceivedHandler; typedef std::function&) > GetEnrollmentStatusesForOrganizationResponseReceivedHandler; + typedef std::function&) > GetIdleRecommendationsResponseReceivedHandler; typedef std::function&) > GetLambdaFunctionRecommendationsResponseReceivedHandler; typedef std::function&) > GetLicenseRecommendationsResponseReceivedHandler; typedef std::function&) > GetRDSDatabaseRecommendationProjectedMetricsResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/Dimension.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/Dimension.h new file mode 100644 index 00000000000..c212e74cb1c --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/Dimension.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 ComputeOptimizer +{ +namespace Model +{ + enum class Dimension + { + NOT_SET, + SavingsValue, + SavingsValueAfterDiscount + }; + +namespace DimensionMapper +{ +AWS_COMPUTEOPTIMIZER_API Dimension GetDimensionForName(const Aws::String& name); + +AWS_COMPUTEOPTIMIZER_API Aws::String GetNameForDimension(Dimension value); +} // namespace DimensionMapper +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportIdleRecommendationsRequest.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportIdleRecommendationsRequest.h new file mode 100644 index 00000000000..db18794dee0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportIdleRecommendationsRequest.h @@ -0,0 +1,163 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ComputeOptimizer +{ +namespace Model +{ + + /** + */ + class ExportIdleRecommendationsRequest : public ComputeOptimizerRequest + { + public: + AWS_COMPUTEOPTIMIZER_API ExportIdleRecommendationsRequest(); + + // 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 "ExportIdleRecommendations"; } + + AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override; + + AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The Amazon Web Services account IDs for the export idle resource + * recommendations.

    If your account is the management account or the + * delegated administrator of an organization, use this parameter to specify the + * member account you want to export recommendations to.

    This parameter + * can't be specified together with the include member accounts parameter. The + * parameters are mutually exclusive.

    If this parameter or the include + * member accounts parameter is omitted, the recommendations for member accounts + * aren't included in the export.

    You can specify multiple account IDs per + * request.

    + */ + inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } + inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; } + inline void SetAccountIds(const Aws::Vector& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; } + inline void SetAccountIds(Aws::Vector&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); } + inline ExportIdleRecommendationsRequest& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} + inline ExportIdleRecommendationsRequest& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} + inline ExportIdleRecommendationsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } + inline ExportIdleRecommendationsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; } + inline ExportIdleRecommendationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    An array of objects to specify a filter that exports a more specific set of + * idle resource recommendations.

    + */ + inline const Aws::Vector& GetFilters() const{ return m_filters; } + inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } + inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } + inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } + inline ExportIdleRecommendationsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} + inline ExportIdleRecommendationsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} + inline ExportIdleRecommendationsRequest& AddFilters(const IdleRecommendationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } + inline ExportIdleRecommendationsRequest& AddFilters(IdleRecommendationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The recommendations data to include in the export file. For more information + * about the fields that can be exported, see Exported + * files in the Compute Optimizer User Guide.

    + */ + inline const Aws::Vector& GetFieldsToExport() const{ return m_fieldsToExport; } + inline bool FieldsToExportHasBeenSet() const { return m_fieldsToExportHasBeenSet; } + inline void SetFieldsToExport(const Aws::Vector& value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport = value; } + inline void SetFieldsToExport(Aws::Vector&& value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport = std::move(value); } + inline ExportIdleRecommendationsRequest& WithFieldsToExport(const Aws::Vector& value) { SetFieldsToExport(value); return *this;} + inline ExportIdleRecommendationsRequest& WithFieldsToExport(Aws::Vector&& value) { SetFieldsToExport(std::move(value)); return *this;} + inline ExportIdleRecommendationsRequest& AddFieldsToExport(const ExportableIdleField& value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport.push_back(value); return *this; } + inline ExportIdleRecommendationsRequest& AddFieldsToExport(ExportableIdleField&& value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const S3DestinationConfig& GetS3DestinationConfig() const{ return m_s3DestinationConfig; } + inline bool S3DestinationConfigHasBeenSet() const { return m_s3DestinationConfigHasBeenSet; } + inline void SetS3DestinationConfig(const S3DestinationConfig& value) { m_s3DestinationConfigHasBeenSet = true; m_s3DestinationConfig = value; } + inline void SetS3DestinationConfig(S3DestinationConfig&& value) { m_s3DestinationConfigHasBeenSet = true; m_s3DestinationConfig = std::move(value); } + inline ExportIdleRecommendationsRequest& WithS3DestinationConfig(const S3DestinationConfig& value) { SetS3DestinationConfig(value); return *this;} + inline ExportIdleRecommendationsRequest& WithS3DestinationConfig(S3DestinationConfig&& value) { SetS3DestinationConfig(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The format of the export file. The CSV file is the only export file format + * currently supported.

    + */ + inline const FileFormat& GetFileFormat() const{ return m_fileFormat; } + inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; } + inline void SetFileFormat(const FileFormat& value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; } + inline void SetFileFormat(FileFormat&& value) { m_fileFormatHasBeenSet = true; m_fileFormat = std::move(value); } + inline ExportIdleRecommendationsRequest& WithFileFormat(const FileFormat& value) { SetFileFormat(value); return *this;} + inline ExportIdleRecommendationsRequest& WithFileFormat(FileFormat&& value) { SetFileFormat(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    If your account is the management account or the delegated administrator of + * an organization, this parameter indicates whether to include recommendations for + * resources in all member accounts of the organization.

    The member accounts + * must also be opted in to Compute Optimizer, and trusted access for Compute + * Optimizer must be enabled in the organization account. For more information, see + * Compute + * Optimizer and Amazon Web Services Organizations trusted access in the + * Compute Optimizer User Guide.

    If this parameter is omitted, + * recommendations for member accounts of the organization aren't included in the + * export file.

    If this parameter or the account ID parameter is omitted, + * recommendations for member accounts aren't included in the export.

    + */ + inline bool GetIncludeMemberAccounts() const{ return m_includeMemberAccounts; } + inline bool IncludeMemberAccountsHasBeenSet() const { return m_includeMemberAccountsHasBeenSet; } + inline void SetIncludeMemberAccounts(bool value) { m_includeMemberAccountsHasBeenSet = true; m_includeMemberAccounts = value; } + inline ExportIdleRecommendationsRequest& WithIncludeMemberAccounts(bool value) { SetIncludeMemberAccounts(value); return *this;} + ///@} + private: + + Aws::Vector m_accountIds; + bool m_accountIdsHasBeenSet = false; + + Aws::Vector m_filters; + bool m_filtersHasBeenSet = false; + + Aws::Vector m_fieldsToExport; + bool m_fieldsToExportHasBeenSet = false; + + S3DestinationConfig m_s3DestinationConfig; + bool m_s3DestinationConfigHasBeenSet = false; + + FileFormat m_fileFormat; + bool m_fileFormatHasBeenSet = false; + + bool m_includeMemberAccounts; + bool m_includeMemberAccountsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportIdleRecommendationsResult.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportIdleRecommendationsResult.h new file mode 100644 index 00000000000..d85fb8da4eb --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportIdleRecommendationsResult.h @@ -0,0 +1,81 @@ +/** + * 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 ComputeOptimizer +{ +namespace Model +{ + class ExportIdleRecommendationsResult + { + public: + AWS_COMPUTEOPTIMIZER_API ExportIdleRecommendationsResult(); + AWS_COMPUTEOPTIMIZER_API ExportIdleRecommendationsResult(const Aws::AmazonWebServiceResult& result); + AWS_COMPUTEOPTIMIZER_API ExportIdleRecommendationsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The identification number of the export job.

    To view the status of + * an export job, use the DescribeRecommendationExportJobs action and + * specify the job ID.

    + */ + inline const Aws::String& GetJobId() const{ return m_jobId; } + inline void SetJobId(const Aws::String& value) { m_jobId = value; } + inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); } + inline void SetJobId(const char* value) { m_jobId.assign(value); } + inline ExportIdleRecommendationsResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} + inline ExportIdleRecommendationsResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} + inline ExportIdleRecommendationsResult& WithJobId(const char* value) { SetJobId(value); return *this;} + ///@} + + ///@{ + + inline const S3Destination& GetS3Destination() const{ return m_s3Destination; } + inline void SetS3Destination(const S3Destination& value) { m_s3Destination = value; } + inline void SetS3Destination(S3Destination&& value) { m_s3Destination = std::move(value); } + inline ExportIdleRecommendationsResult& WithS3Destination(const S3Destination& value) { SetS3Destination(value); return *this;} + inline ExportIdleRecommendationsResult& WithS3Destination(S3Destination&& value) { SetS3Destination(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ExportIdleRecommendationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ExportIdleRecommendationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ExportIdleRecommendationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_jobId; + + S3Destination m_s3Destination; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportableIdleField.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportableIdleField.h new file mode 100644 index 00000000000..d9fa13fb880 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportableIdleField.h @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ComputeOptimizer +{ +namespace Model +{ + enum class ExportableIdleField + { + NOT_SET, + AccountId, + ResourceArn, + ResourceId, + ResourceType, + LastRefreshTimestamp, + LookbackPeriodInDays, + SavingsOpportunity, + SavingsOpportunityAfterDiscount, + UtilizationMetricsCpuMaximum, + UtilizationMetricsMemoryMaximum, + UtilizationMetricsNetworkOutBytesPerSecondMaximum, + UtilizationMetricsNetworkInBytesPerSecondMaximum, + UtilizationMetricsDatabaseConnectionsMaximum, + UtilizationMetricsEBSVolumeReadIOPSMaximum, + UtilizationMetricsEBSVolumeWriteIOPSMaximum, + UtilizationMetricsVolumeReadOpsPerSecondMaximum, + UtilizationMetricsVolumeWriteOpsPerSecondMaximum, + Finding, + FindingDescription, + Tags + }; + +namespace ExportableIdleFieldMapper +{ +AWS_COMPUTEOPTIMIZER_API ExportableIdleField GetExportableIdleFieldForName(const Aws::String& name); + +AWS_COMPUTEOPTIMIZER_API Aws::String GetNameForExportableIdleField(ExportableIdleField value); +} // namespace ExportableIdleFieldMapper +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportableRDSDBField.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportableRDSDBField.h index 8570cd3f918..0f2b3d6092f 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportableRDSDBField.h +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ExportableRDSDBField.h @@ -31,6 +31,7 @@ namespace Model CurrentInstanceOnDemandHourlyPrice, CurrentStorageOnDemandMonthlyPrice, LookbackPeriodInDays, + CurrentInstancePerformanceRisk, UtilizationMetricsCpuMaximum, UtilizationMetricsMemoryMaximum, UtilizationMetricsEBSVolumeStorageSpaceUtilizationMaximum, @@ -41,6 +42,14 @@ namespace Model UtilizationMetricsEBSVolumeReadThroughputMaximum, UtilizationMetricsEBSVolumeWriteThroughputMaximum, UtilizationMetricsDatabaseConnectionsMaximum, + UtilizationMetricsStorageNetworkReceiveThroughputMaximum, + UtilizationMetricsStorageNetworkTransmitThroughputMaximum, + UtilizationMetricsAuroraMemoryHealthStateMaximum, + UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum, + UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum, + UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum, + UtilizationMetricsReadIOPSEphemeralStorageMaximum, + UtilizationMetricsWriteIOPSEphemeralStorageMaximum, InstanceFinding, InstanceFindingReasonCodes, StorageFinding, @@ -74,7 +83,9 @@ namespace Model EffectiveRecommendationPreferencesLookBackPeriod, EffectiveRecommendationPreferencesSavingsEstimationMode, LastRefreshTimestamp, - Tags + Tags, + DBClusterIdentifier, + PromotionTier }; namespace ExportableRDSDBFieldMapper diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/GetIdleRecommendationsRequest.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/GetIdleRecommendationsRequest.h new file mode 100644 index 00000000000..e2ca3b73261 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/GetIdleRecommendationsRequest.h @@ -0,0 +1,149 @@ +/** + * 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 ComputeOptimizer +{ +namespace Model +{ + + /** + */ + class GetIdleRecommendationsRequest : public ComputeOptimizerRequest + { + public: + AWS_COMPUTEOPTIMIZER_API GetIdleRecommendationsRequest(); + + // 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 "GetIdleRecommendations"; } + + AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override; + + AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The ARN that identifies the idle resource.

    + */ + inline const Aws::Vector& GetResourceArns() const{ return m_resourceArns; } + inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; } + inline void SetResourceArns(const Aws::Vector& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; } + inline void SetResourceArns(Aws::Vector&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); } + inline GetIdleRecommendationsRequest& WithResourceArns(const Aws::Vector& value) { SetResourceArns(value); return *this;} + inline GetIdleRecommendationsRequest& WithResourceArns(Aws::Vector&& value) { SetResourceArns(std::move(value)); return *this;} + inline GetIdleRecommendationsRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; } + inline GetIdleRecommendationsRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; } + inline GetIdleRecommendationsRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The token to advance to the next page of idle resource recommendations.

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

    The maximum number of idle resource recommendations to return with a single + * request.

    To retrieve the remaining results, make another request with + * the returned nextToken value.

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

    An array of objects to specify a filter that returns a more specific list of + * idle resource recommendations.

    + */ + inline const Aws::Vector& GetFilters() const{ return m_filters; } + inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } + inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } + inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } + inline GetIdleRecommendationsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} + inline GetIdleRecommendationsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} + inline GetIdleRecommendationsRequest& AddFilters(const IdleRecommendationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } + inline GetIdleRecommendationsRequest& AddFilters(IdleRecommendationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    Return the idle resource recommendations to the specified Amazon Web Services + * account IDs.

    If your account is the management account or the delegated + * administrator of an organization, use this parameter to return the idle resource + * recommendations to specific member accounts.

    You can only specify one + * account ID per request.

    + */ + inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } + inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; } + inline void SetAccountIds(const Aws::Vector& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; } + inline void SetAccountIds(Aws::Vector&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); } + inline GetIdleRecommendationsRequest& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} + inline GetIdleRecommendationsRequest& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} + inline GetIdleRecommendationsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } + inline GetIdleRecommendationsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; } + inline GetIdleRecommendationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The order to sort the idle resource recommendations.

    + */ + inline const OrderBy& GetOrderBy() const{ return m_orderBy; } + inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; } + inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; } + inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); } + inline GetIdleRecommendationsRequest& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;} + inline GetIdleRecommendationsRequest& WithOrderBy(OrderBy&& value) { SetOrderBy(std::move(value)); return *this;} + ///@} + private: + + Aws::Vector m_resourceArns; + bool m_resourceArnsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::Vector m_filters; + bool m_filtersHasBeenSet = false; + + Aws::Vector m_accountIds; + bool m_accountIdsHasBeenSet = false; + + OrderBy m_orderBy; + bool m_orderByHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/GetIdleRecommendationsResult.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/GetIdleRecommendationsResult.h new file mode 100644 index 00000000000..2eb423d6cae --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/GetIdleRecommendationsResult.h @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ComputeOptimizer +{ +namespace Model +{ + class GetIdleRecommendationsResult + { + public: + AWS_COMPUTEOPTIMIZER_API GetIdleRecommendationsResult(); + AWS_COMPUTEOPTIMIZER_API GetIdleRecommendationsResult(const Aws::AmazonWebServiceResult& result); + AWS_COMPUTEOPTIMIZER_API GetIdleRecommendationsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The token to advance to the next page of idle resource recommendations.

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

    An array of objects that describe the idle resource recommendations.

    + */ + inline const Aws::Vector& GetIdleRecommendations() const{ return m_idleRecommendations; } + inline void SetIdleRecommendations(const Aws::Vector& value) { m_idleRecommendations = value; } + inline void SetIdleRecommendations(Aws::Vector&& value) { m_idleRecommendations = std::move(value); } + inline GetIdleRecommendationsResult& WithIdleRecommendations(const Aws::Vector& value) { SetIdleRecommendations(value); return *this;} + inline GetIdleRecommendationsResult& WithIdleRecommendations(Aws::Vector&& value) { SetIdleRecommendations(std::move(value)); return *this;} + inline GetIdleRecommendationsResult& AddIdleRecommendations(const IdleRecommendation& value) { m_idleRecommendations.push_back(value); return *this; } + inline GetIdleRecommendationsResult& AddIdleRecommendations(IdleRecommendation&& value) { m_idleRecommendations.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    An array of objects that describe errors of the request.

    + */ + inline const Aws::Vector& GetErrors() const{ return m_errors; } + inline void SetErrors(const Aws::Vector& value) { m_errors = value; } + inline void SetErrors(Aws::Vector&& value) { m_errors = std::move(value); } + inline GetIdleRecommendationsResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} + inline GetIdleRecommendationsResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} + inline GetIdleRecommendationsResult& AddErrors(const IdleRecommendationError& value) { m_errors.push_back(value); return *this; } + inline GetIdleRecommendationsResult& AddErrors(IdleRecommendationError&& value) { m_errors.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetIdleRecommendationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetIdleRecommendationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetIdleRecommendationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_nextToken; + + Aws::Vector m_idleRecommendations; + + Aws::Vector m_errors; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleEstimatedMonthlySavings.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleEstimatedMonthlySavings.h new file mode 100644 index 00000000000..cbf1b6906d0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleEstimatedMonthlySavings.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ComputeOptimizer +{ +namespace Model +{ + + /** + *

    Describes the estimated monthly savings possible for idle resources by + * adopting Compute Optimizer recommendations.

    See Also:

    AWS + * API Reference

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

    The currency of the estimated monthly savings.

    + */ + inline const Currency& GetCurrency() const{ return m_currency; } + inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; } + inline void SetCurrency(const Currency& value) { m_currencyHasBeenSet = true; m_currency = value; } + inline void SetCurrency(Currency&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); } + inline IdleEstimatedMonthlySavings& WithCurrency(const Currency& value) { SetCurrency(value); return *this;} + inline IdleEstimatedMonthlySavings& WithCurrency(Currency&& value) { SetCurrency(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The value of the estimated monthly savings for Idle resources.

    + */ + inline double GetValue() const{ return m_value; } + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } + inline IdleEstimatedMonthlySavings& WithValue(double value) { SetValue(value); return *this;} + ///@} + private: + + Currency m_currency; + bool m_currencyHasBeenSet = false; + + double m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleFinding.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleFinding.h new file mode 100644 index 00000000000..2826b0a8cc5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleFinding.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 ComputeOptimizer +{ +namespace Model +{ + enum class IdleFinding + { + NOT_SET, + Idle, + Unattached + }; + +namespace IdleFindingMapper +{ +AWS_COMPUTEOPTIMIZER_API IdleFinding GetIdleFindingForName(const Aws::String& name); + +AWS_COMPUTEOPTIMIZER_API Aws::String GetNameForIdleFinding(IdleFinding value); +} // namespace IdleFindingMapper +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleMetricName.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleMetricName.h new file mode 100644 index 00000000000..f3748f402b2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleMetricName.h @@ -0,0 +1,38 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ComputeOptimizer +{ +namespace Model +{ + enum class IdleMetricName + { + NOT_SET, + CPU, + Memory, + NetworkOutBytesPerSecond, + NetworkInBytesPerSecond, + DatabaseConnections, + EBSVolumeReadIOPS, + EBSVolumeWriteIOPS, + VolumeReadOpsPerSecond, + VolumeWriteOpsPerSecond + }; + +namespace IdleMetricNameMapper +{ +AWS_COMPUTEOPTIMIZER_API IdleMetricName GetIdleMetricNameForName(const Aws::String& name); + +AWS_COMPUTEOPTIMIZER_API Aws::String GetNameForIdleMetricName(IdleMetricName value); +} // namespace IdleMetricNameMapper +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendation.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendation.h new file mode 100644 index 00000000000..10b4f6c277e --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendation.h @@ -0,0 +1,245 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ComputeOptimizer +{ +namespace Model +{ + + /** + *

    Describes an Idle resource recommendation.

    See Also:

    AWS + * API Reference

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

    The ARN of the current idle resource.

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

    The unique identifier for the resource.

    + */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + inline IdleRecommendation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + inline IdleRecommendation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + inline IdleRecommendation& WithResourceId(const char* value) { SetResourceId(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of resource that is idle.

    + */ + inline const IdleRecommendationResourceType& GetResourceType() const{ return m_resourceType; } + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + inline void SetResourceType(const IdleRecommendationResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + inline void SetResourceType(IdleRecommendationResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + inline IdleRecommendation& WithResourceType(const IdleRecommendationResourceType& value) { SetResourceType(value); return *this;} + inline IdleRecommendation& WithResourceType(IdleRecommendationResourceType&& value) { SetResourceType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Web Services account ID of the idle resource.

    + */ + inline const Aws::String& GetAccountId() const{ return m_accountId; } + inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } + inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } + inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } + inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } + inline IdleRecommendation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} + inline IdleRecommendation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} + inline IdleRecommendation& WithAccountId(const char* value) { SetAccountId(value); return *this;} + ///@} + + ///@{ + /** + *

    The finding classification of an idle resource.

    + */ + inline const IdleFinding& GetFinding() const{ return m_finding; } + inline bool FindingHasBeenSet() const { return m_findingHasBeenSet; } + inline void SetFinding(const IdleFinding& value) { m_findingHasBeenSet = true; m_finding = value; } + inline void SetFinding(IdleFinding&& value) { m_findingHasBeenSet = true; m_finding = std::move(value); } + inline IdleRecommendation& WithFinding(const IdleFinding& value) { SetFinding(value); return *this;} + inline IdleRecommendation& WithFinding(IdleFinding&& value) { SetFinding(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    A summary of the findings for the resource.

    + */ + inline const Aws::String& GetFindingDescription() const{ return m_findingDescription; } + inline bool FindingDescriptionHasBeenSet() const { return m_findingDescriptionHasBeenSet; } + inline void SetFindingDescription(const Aws::String& value) { m_findingDescriptionHasBeenSet = true; m_findingDescription = value; } + inline void SetFindingDescription(Aws::String&& value) { m_findingDescriptionHasBeenSet = true; m_findingDescription = std::move(value); } + inline void SetFindingDescription(const char* value) { m_findingDescriptionHasBeenSet = true; m_findingDescription.assign(value); } + inline IdleRecommendation& WithFindingDescription(const Aws::String& value) { SetFindingDescription(value); return *this;} + inline IdleRecommendation& WithFindingDescription(Aws::String&& value) { SetFindingDescription(std::move(value)); return *this;} + inline IdleRecommendation& WithFindingDescription(const char* value) { SetFindingDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The savings opportunity for the idle resource.

    + */ + inline const IdleSavingsOpportunity& GetSavingsOpportunity() const{ return m_savingsOpportunity; } + inline bool SavingsOpportunityHasBeenSet() const { return m_savingsOpportunityHasBeenSet; } + inline void SetSavingsOpportunity(const IdleSavingsOpportunity& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = value; } + inline void SetSavingsOpportunity(IdleSavingsOpportunity&& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = std::move(value); } + inline IdleRecommendation& WithSavingsOpportunity(const IdleSavingsOpportunity& value) { SetSavingsOpportunity(value); return *this;} + inline IdleRecommendation& WithSavingsOpportunity(IdleSavingsOpportunity&& value) { SetSavingsOpportunity(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The savings opportunity for the idle resource after any applying + * discounts.

    + */ + inline const IdleSavingsOpportunityAfterDiscounts& GetSavingsOpportunityAfterDiscounts() const{ return m_savingsOpportunityAfterDiscounts; } + inline bool SavingsOpportunityAfterDiscountsHasBeenSet() const { return m_savingsOpportunityAfterDiscountsHasBeenSet; } + inline void SetSavingsOpportunityAfterDiscounts(const IdleSavingsOpportunityAfterDiscounts& value) { m_savingsOpportunityAfterDiscountsHasBeenSet = true; m_savingsOpportunityAfterDiscounts = value; } + inline void SetSavingsOpportunityAfterDiscounts(IdleSavingsOpportunityAfterDiscounts&& value) { m_savingsOpportunityAfterDiscountsHasBeenSet = true; m_savingsOpportunityAfterDiscounts = std::move(value); } + inline IdleRecommendation& WithSavingsOpportunityAfterDiscounts(const IdleSavingsOpportunityAfterDiscounts& value) { SetSavingsOpportunityAfterDiscounts(value); return *this;} + inline IdleRecommendation& WithSavingsOpportunityAfterDiscounts(IdleSavingsOpportunityAfterDiscounts&& value) { SetSavingsOpportunityAfterDiscounts(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    An array of objects that describe the utilization metrics of the idle + * resource.

    + */ + inline const Aws::Vector& GetUtilizationMetrics() const{ return m_utilizationMetrics; } + inline bool UtilizationMetricsHasBeenSet() const { return m_utilizationMetricsHasBeenSet; } + inline void SetUtilizationMetrics(const Aws::Vector& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics = value; } + inline void SetUtilizationMetrics(Aws::Vector&& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics = std::move(value); } + inline IdleRecommendation& WithUtilizationMetrics(const Aws::Vector& value) { SetUtilizationMetrics(value); return *this;} + inline IdleRecommendation& WithUtilizationMetrics(Aws::Vector&& value) { SetUtilizationMetrics(std::move(value)); return *this;} + inline IdleRecommendation& AddUtilizationMetrics(const IdleUtilizationMetric& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics.push_back(value); return *this; } + inline IdleRecommendation& AddUtilizationMetrics(IdleUtilizationMetric&& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The number of days the idle resource utilization metrics were analyzed.

    + */ + inline double GetLookBackPeriodInDays() const{ return m_lookBackPeriodInDays; } + inline bool LookBackPeriodInDaysHasBeenSet() const { return m_lookBackPeriodInDaysHasBeenSet; } + inline void SetLookBackPeriodInDays(double value) { m_lookBackPeriodInDaysHasBeenSet = true; m_lookBackPeriodInDays = value; } + inline IdleRecommendation& WithLookBackPeriodInDays(double value) { SetLookBackPeriodInDays(value); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp of when the idle resource recommendation was last + * generated.

    + */ + inline const Aws::Utils::DateTime& GetLastRefreshTimestamp() const{ return m_lastRefreshTimestamp; } + inline bool LastRefreshTimestampHasBeenSet() const { return m_lastRefreshTimestampHasBeenSet; } + inline void SetLastRefreshTimestamp(const Aws::Utils::DateTime& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = value; } + inline void SetLastRefreshTimestamp(Aws::Utils::DateTime&& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = std::move(value); } + inline IdleRecommendation& WithLastRefreshTimestamp(const Aws::Utils::DateTime& value) { SetLastRefreshTimestamp(value); return *this;} + inline IdleRecommendation& WithLastRefreshTimestamp(Aws::Utils::DateTime&& value) { SetLastRefreshTimestamp(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    A list of tags assigned to your idle resource recommendations.

    + */ + 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 IdleRecommendation& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + inline IdleRecommendation& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + inline IdleRecommendation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + inline IdleRecommendation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet = false; + + IdleRecommendationResourceType m_resourceType; + bool m_resourceTypeHasBeenSet = false; + + Aws::String m_accountId; + bool m_accountIdHasBeenSet = false; + + IdleFinding m_finding; + bool m_findingHasBeenSet = false; + + Aws::String m_findingDescription; + bool m_findingDescriptionHasBeenSet = false; + + IdleSavingsOpportunity m_savingsOpportunity; + bool m_savingsOpportunityHasBeenSet = false; + + IdleSavingsOpportunityAfterDiscounts m_savingsOpportunityAfterDiscounts; + bool m_savingsOpportunityAfterDiscountsHasBeenSet = false; + + Aws::Vector m_utilizationMetrics; + bool m_utilizationMetricsHasBeenSet = false; + + double m_lookBackPeriodInDays; + bool m_lookBackPeriodInDaysHasBeenSet = false; + + Aws::Utils::DateTime m_lastRefreshTimestamp; + bool m_lastRefreshTimestampHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationError.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationError.h new file mode 100644 index 00000000000..78a9a8dd8cc --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationError.h @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ComputeOptimizer +{ +namespace Model +{ + + /** + *

    Returns of list of resources that doesn't have idle + * recommendations.

    See Also:

    AWS + * API Reference

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

    The ID of the error.

    + */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } + inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } + inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } + inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } + inline IdleRecommendationError& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + inline IdleRecommendationError& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + inline IdleRecommendationError& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The error code.

    + */ + inline const Aws::String& GetCode() const{ return m_code; } + inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } + inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } + inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } + inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } + inline IdleRecommendationError& WithCode(const Aws::String& value) { SetCode(value); return *this;} + inline IdleRecommendationError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} + inline IdleRecommendationError& WithCode(const char* value) { SetCode(value); return *this;} + ///@} + + ///@{ + /** + *

    The error message.

    + */ + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline IdleRecommendationError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline IdleRecommendationError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline IdleRecommendationError& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of resource associated with the error.

    + */ + inline const IdleRecommendationResourceType& GetResourceType() const{ return m_resourceType; } + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + inline void SetResourceType(const IdleRecommendationResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + inline void SetResourceType(IdleRecommendationResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + inline IdleRecommendationError& WithResourceType(const IdleRecommendationResourceType& value) { SetResourceType(value); return *this;} + inline IdleRecommendationError& WithResourceType(IdleRecommendationResourceType&& value) { SetResourceType(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_identifier; + bool m_identifierHasBeenSet = false; + + Aws::String m_code; + bool m_codeHasBeenSet = false; + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + IdleRecommendationResourceType m_resourceType; + bool m_resourceTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationFilter.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationFilter.h new file mode 100644 index 00000000000..7f246c91e1a --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationFilter.h @@ -0,0 +1,93 @@ +/** + * 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 ComputeOptimizer +{ +namespace Model +{ + + /** + *

    Describes a filter that returns a more specific list of idle resource + * recommendations.

    See Also:

    AWS + * API Reference

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

    The name of the filter.

    Specify Finding to return + * recommendations with a specific finding classification.

    You can filter + * your idle resource recommendations by tag:key and + * tag-key tags.

    A tag:key is a key and value + * combination of a tag assigned to your idle resource recommendations. Use the tag + * key in the filter name and the tag value as the filter value. For example, to + * find all idle resource service recommendations that have a tag with the key of + * Owner and the value of TeamA, specify + * tag:Owner for the filter name and TeamA for the filter + * value.

    A tag-key is the key of a tag assigned to your idle + * resource recommendations. Use this filter to find all of your idle resource + * recommendations that have a tag with a specific key. This doesn’t consider the + * tag value. For example, you can find your idle resource service recommendations + * with a tag key value of Owner or without any tag keys assigned.

    + */ + inline const IdleRecommendationFilterName& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const IdleRecommendationFilterName& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(IdleRecommendationFilterName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline IdleRecommendationFilter& WithName(const IdleRecommendationFilterName& value) { SetName(value); return *this;} + inline IdleRecommendationFilter& WithName(IdleRecommendationFilterName&& value) { SetName(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The value of the filter.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + inline IdleRecommendationFilter& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + inline IdleRecommendationFilter& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + inline IdleRecommendationFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + inline IdleRecommendationFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + inline IdleRecommendationFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + ///@} + private: + + IdleRecommendationFilterName m_name; + bool m_nameHasBeenSet = false; + + Aws::Vector m_values; + bool m_valuesHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationFilterName.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationFilterName.h new file mode 100644 index 00000000000..a1583939735 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationFilterName.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 ComputeOptimizer +{ +namespace Model +{ + enum class IdleRecommendationFilterName + { + NOT_SET, + Finding, + ResourceType + }; + +namespace IdleRecommendationFilterNameMapper +{ +AWS_COMPUTEOPTIMIZER_API IdleRecommendationFilterName GetIdleRecommendationFilterNameForName(const Aws::String& name); + +AWS_COMPUTEOPTIMIZER_API Aws::String GetNameForIdleRecommendationFilterName(IdleRecommendationFilterName value); +} // namespace IdleRecommendationFilterNameMapper +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationResourceType.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationResourceType.h new file mode 100644 index 00000000000..9d70d8a1545 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleRecommendationResourceType.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 ComputeOptimizer +{ +namespace Model +{ + enum class IdleRecommendationResourceType + { + NOT_SET, + EC2Instance, + AutoScalingGroup, + EBSVolume, + ECSService, + RDSDBInstance + }; + +namespace IdleRecommendationResourceTypeMapper +{ +AWS_COMPUTEOPTIMIZER_API IdleRecommendationResourceType GetIdleRecommendationResourceTypeForName(const Aws::String& name); + +AWS_COMPUTEOPTIMIZER_API Aws::String GetNameForIdleRecommendationResourceType(IdleRecommendationResourceType value); +} // namespace IdleRecommendationResourceTypeMapper +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSavingsOpportunity.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSavingsOpportunity.h new file mode 100644 index 00000000000..64e3a423c1b --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSavingsOpportunity.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ComputeOptimizer +{ +namespace Model +{ + + /** + *

    Describes the savings opportunity for idle resource + * recommendations.

    See Also:

    AWS + * API Reference

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

    The estimated monthly savings possible as a percentage of monthly cost by + * adopting Compute Optimizer's idle resource recommendations.

    + */ + inline double GetSavingsOpportunityPercentage() const{ return m_savingsOpportunityPercentage; } + inline bool SavingsOpportunityPercentageHasBeenSet() const { return m_savingsOpportunityPercentageHasBeenSet; } + inline void SetSavingsOpportunityPercentage(double value) { m_savingsOpportunityPercentageHasBeenSet = true; m_savingsOpportunityPercentage = value; } + inline IdleSavingsOpportunity& WithSavingsOpportunityPercentage(double value) { SetSavingsOpportunityPercentage(value); return *this;} + ///@} + + ///@{ + /** + *

    The estimated monthly savings possible by adopting Compute Optimizer's idle + * resource recommendations.

    + */ + inline const IdleEstimatedMonthlySavings& GetEstimatedMonthlySavings() const{ return m_estimatedMonthlySavings; } + inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; } + inline void SetEstimatedMonthlySavings(const IdleEstimatedMonthlySavings& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = value; } + inline void SetEstimatedMonthlySavings(IdleEstimatedMonthlySavings&& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = std::move(value); } + inline IdleSavingsOpportunity& WithEstimatedMonthlySavings(const IdleEstimatedMonthlySavings& value) { SetEstimatedMonthlySavings(value); return *this;} + inline IdleSavingsOpportunity& WithEstimatedMonthlySavings(IdleEstimatedMonthlySavings&& value) { SetEstimatedMonthlySavings(std::move(value)); return *this;} + ///@} + private: + + double m_savingsOpportunityPercentage; + bool m_savingsOpportunityPercentageHasBeenSet = false; + + IdleEstimatedMonthlySavings m_estimatedMonthlySavings; + bool m_estimatedMonthlySavingsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSavingsOpportunityAfterDiscounts.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSavingsOpportunityAfterDiscounts.h new file mode 100644 index 00000000000..d675db99b13 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSavingsOpportunityAfterDiscounts.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ComputeOptimizer +{ +namespace Model +{ + + /** + *

    Describes the savings opportunity for idle resource recommendations after + * applying discounts.

    Savings opportunity represents the estimated monthly + * savings after applying discounts. You can achieve this by implementing a given + * Compute Optimizer recommendation.

    See Also:

    AWS + * API Reference

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

    The estimated monthly savings possible as a percentage of monthly cost by + * adopting Compute Optimizer's idle resource recommendations. This includes any + * applicable discounts.

    + */ + inline double GetSavingsOpportunityPercentage() const{ return m_savingsOpportunityPercentage; } + inline bool SavingsOpportunityPercentageHasBeenSet() const { return m_savingsOpportunityPercentageHasBeenSet; } + inline void SetSavingsOpportunityPercentage(double value) { m_savingsOpportunityPercentageHasBeenSet = true; m_savingsOpportunityPercentage = value; } + inline IdleSavingsOpportunityAfterDiscounts& WithSavingsOpportunityPercentage(double value) { SetSavingsOpportunityPercentage(value); return *this;} + ///@} + + ///@{ + /** + *

    The estimated monthly savings possible by adopting Compute Optimizer's idle + * resource recommendations. This includes any applicable discounts.

    + */ + inline const IdleEstimatedMonthlySavings& GetEstimatedMonthlySavings() const{ return m_estimatedMonthlySavings; } + inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; } + inline void SetEstimatedMonthlySavings(const IdleEstimatedMonthlySavings& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = value; } + inline void SetEstimatedMonthlySavings(IdleEstimatedMonthlySavings&& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = std::move(value); } + inline IdleSavingsOpportunityAfterDiscounts& WithEstimatedMonthlySavings(const IdleEstimatedMonthlySavings& value) { SetEstimatedMonthlySavings(value); return *this;} + inline IdleSavingsOpportunityAfterDiscounts& WithEstimatedMonthlySavings(IdleEstimatedMonthlySavings&& value) { SetEstimatedMonthlySavings(std::move(value)); return *this;} + ///@} + private: + + double m_savingsOpportunityPercentage; + bool m_savingsOpportunityPercentageHasBeenSet = false; + + IdleEstimatedMonthlySavings m_estimatedMonthlySavings; + bool m_estimatedMonthlySavingsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSummary.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSummary.h new file mode 100644 index 00000000000..ef85c45a53f --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleSummary.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ComputeOptimizer +{ +namespace Model +{ + + /** + *

    Describes the findings summary of the idle resources.

    See + * Also:

    AWS + * API Reference

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

    The name of the finding group for the idle resources.

    + */ + inline const IdleFinding& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const IdleFinding& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(IdleFinding&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline IdleSummary& WithName(const IdleFinding& value) { SetName(value); return *this;} + inline IdleSummary& WithName(IdleFinding&& value) { SetName(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The count of idle resources in the finding group.

    + */ + inline double GetValue() const{ return m_value; } + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } + inline IdleSummary& WithValue(double value) { SetValue(value); return *this;} + ///@} + private: + + IdleFinding m_name; + bool m_nameHasBeenSet = false; + + double m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleUtilizationMetric.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleUtilizationMetric.h new file mode 100644 index 00000000000..6d2bee7b296 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/IdleUtilizationMetric.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ComputeOptimizer +{ +namespace Model +{ + + /** + *

    Describes the utilization metric of an idle resource.

    See + * Also:

    AWS + * API Reference

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

    The name of the utilization metric.

    + */ + inline const IdleMetricName& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const IdleMetricName& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(IdleMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline IdleUtilizationMetric& WithName(const IdleMetricName& value) { SetName(value); return *this;} + inline IdleUtilizationMetric& WithName(IdleMetricName&& value) { SetName(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The statistic of the utilization metric.

    The Compute Optimizer API, + * Command Line Interface (CLI), and SDKs return utilization metrics using only the + * Maximum statistic, which is the highest value observed during the + * specified period.

    The Compute Optimizer console displays graphs for some + * utilization metrics using the Average statistic, which is the value + * of Sum / SampleCount during the specified period. For + * more information, see Viewing + * resource recommendations in the Compute Optimizer User Guide. You can + * also get averaged utilization metric data for your resources using Amazon + * CloudWatch. For more information, see the Amazon + * CloudWatch User Guide.

    + */ + inline const MetricStatistic& GetStatistic() const{ return m_statistic; } + inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } + inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; } + inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } + inline IdleUtilizationMetric& WithStatistic(const MetricStatistic& value) { SetStatistic(value); return *this;} + inline IdleUtilizationMetric& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The value of the utilization metric.

    + */ + inline double GetValue() const{ return m_value; } + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } + inline IdleUtilizationMetric& WithValue(double value) { SetValue(value); return *this;} + ///@} + private: + + IdleMetricName m_name; + bool m_nameHasBeenSet = false; + + MetricStatistic m_statistic; + bool m_statisticHasBeenSet = false; + + double m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/Order.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/Order.h new file mode 100644 index 00000000000..b474d0fd09d --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/Order.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 ComputeOptimizer +{ +namespace Model +{ + enum class Order + { + NOT_SET, + Asc, + Desc + }; + +namespace OrderMapper +{ +AWS_COMPUTEOPTIMIZER_API Order GetOrderForName(const Aws::String& name); + +AWS_COMPUTEOPTIMIZER_API Aws::String GetNameForOrder(Order value); +} // namespace OrderMapper +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/OrderBy.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/OrderBy.h new file mode 100644 index 00000000000..704617c2f3d --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/OrderBy.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ComputeOptimizer +{ +namespace Model +{ + + /** + *

    Describes how the recommendations are ordered.

    See Also:

    AWS + * API Reference

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

    The dimension values to sort the recommendations.

    + */ + inline const Dimension& GetDimension() const{ return m_dimension; } + inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; } + inline void SetDimension(const Dimension& value) { m_dimensionHasBeenSet = true; m_dimension = value; } + inline void SetDimension(Dimension&& value) { m_dimensionHasBeenSet = true; m_dimension = std::move(value); } + inline OrderBy& WithDimension(const Dimension& value) { SetDimension(value); return *this;} + inline OrderBy& WithDimension(Dimension&& value) { SetDimension(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The order to sort the recommendations.

    + */ + inline const Order& GetOrder() const{ return m_order; } + inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; } + inline void SetOrder(const Order& value) { m_orderHasBeenSet = true; m_order = value; } + inline void SetOrder(Order&& value) { m_orderHasBeenSet = true; m_order = std::move(value); } + inline OrderBy& WithOrder(const Order& value) { SetOrder(value); return *this;} + inline OrderBy& WithOrder(Order&& value) { SetOrder(std::move(value)); return *this;} + ///@} + private: + + Dimension m_dimension; + bool m_dimensionHasBeenSet = false; + + Order m_order; + bool m_orderHasBeenSet = false; + }; + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSCurrentInstancePerformanceRisk.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSCurrentInstancePerformanceRisk.h new file mode 100644 index 00000000000..5533135fcdf --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSCurrentInstancePerformanceRisk.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 ComputeOptimizer +{ +namespace Model +{ + enum class RDSCurrentInstancePerformanceRisk + { + NOT_SET, + VeryLow, + Low, + Medium, + High + }; + +namespace RDSCurrentInstancePerformanceRiskMapper +{ +AWS_COMPUTEOPTIMIZER_API RDSCurrentInstancePerformanceRisk GetRDSCurrentInstancePerformanceRiskForName(const Aws::String& name); + +AWS_COMPUTEOPTIMIZER_API Aws::String GetNameForRDSCurrentInstancePerformanceRisk(RDSCurrentInstancePerformanceRisk value); +} // namespace RDSCurrentInstancePerformanceRiskMapper +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSDBMetricName.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSDBMetricName.h index 0de03d38c6f..b4ff9b9b334 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSDBMetricName.h +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSDBMetricName.h @@ -25,7 +25,15 @@ namespace Model EBSVolumeWriteIOPS, EBSVolumeReadThroughput, EBSVolumeWriteThroughput, - DatabaseConnections + DatabaseConnections, + StorageNetworkReceiveThroughput, + StorageNetworkTransmitThroughput, + AuroraMemoryHealthState, + AuroraMemoryNumDeclinedSql, + AuroraMemoryNumKillConnTotal, + AuroraMemoryNumKillQueryTotal, + ReadIOPSEphemeralStorage, + WriteIOPSEphemeralStorage }; namespace RDSDBMetricNameMapper diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSDBRecommendation.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSDBRecommendation.h index 55099d4d229..6a24eeef097 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSDBRecommendation.h +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSDBRecommendation.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -108,6 +109,16 @@ namespace Model inline RDSDBRecommendation& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} ///@} + ///@{ + /** + *

    The promotion tier for the Aurora instance.

    + */ + inline int GetPromotionTier() const{ return m_promotionTier; } + inline bool PromotionTierHasBeenSet() const { return m_promotionTierHasBeenSet; } + inline void SetPromotionTier(int value) { m_promotionTierHasBeenSet = true; m_promotionTier = value; } + inline RDSDBRecommendation& WithPromotionTier(int value) { SetPromotionTier(value); return *this;} + ///@} + ///@{ /** *

    The DB instance class of the current RDS instance.

    @@ -134,6 +145,20 @@ namespace Model inline RDSDBRecommendation& WithCurrentStorageConfiguration(DBStorageConfiguration&& value) { SetCurrentStorageConfiguration(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    The identifier for DB cluster.

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

    This indicates if the RDS instance is idle or not.

    @@ -200,6 +225,18 @@ namespace Model inline RDSDBRecommendation& AddInstanceFindingReasonCodes(RDSInstanceFindingReasonCode&& value) { m_instanceFindingReasonCodesHasBeenSet = true; m_instanceFindingReasonCodes.push_back(std::move(value)); return *this; } ///@} + ///@{ + /** + *

    The performance risk for the current DB instance.

    + */ + inline const RDSCurrentInstancePerformanceRisk& GetCurrentInstancePerformanceRisk() const{ return m_currentInstancePerformanceRisk; } + inline bool CurrentInstancePerformanceRiskHasBeenSet() const { return m_currentInstancePerformanceRiskHasBeenSet; } + inline void SetCurrentInstancePerformanceRisk(const RDSCurrentInstancePerformanceRisk& value) { m_currentInstancePerformanceRiskHasBeenSet = true; m_currentInstancePerformanceRisk = value; } + inline void SetCurrentInstancePerformanceRisk(RDSCurrentInstancePerformanceRisk&& value) { m_currentInstancePerformanceRiskHasBeenSet = true; m_currentInstancePerformanceRisk = std::move(value); } + inline RDSDBRecommendation& WithCurrentInstancePerformanceRisk(const RDSCurrentInstancePerformanceRisk& value) { SetCurrentInstancePerformanceRisk(value); return *this;} + inline RDSDBRecommendation& WithCurrentInstancePerformanceRisk(RDSCurrentInstancePerformanceRisk&& value) { SetCurrentInstancePerformanceRisk(std::move(value)); return *this;} + ///@} + ///@{ /** *

    The reason for the finding classification of Amazon RDS storage.

    @@ -320,12 +357,18 @@ namespace Model Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; + int m_promotionTier; + bool m_promotionTierHasBeenSet = false; + Aws::String m_currentDBInstanceClass; bool m_currentDBInstanceClassHasBeenSet = false; DBStorageConfiguration m_currentStorageConfiguration; bool m_currentStorageConfigurationHasBeenSet = false; + Aws::String m_dbClusterIdentifier; + bool m_dbClusterIdentifierHasBeenSet = false; + Idle m_idle; bool m_idleHasBeenSet = false; @@ -338,6 +381,9 @@ namespace Model Aws::Vector m_instanceFindingReasonCodes; bool m_instanceFindingReasonCodesHasBeenSet = false; + RDSCurrentInstancePerformanceRisk m_currentInstancePerformanceRisk; + bool m_currentInstancePerformanceRiskHasBeenSet = false; + Aws::Vector m_storageFindingReasonCodes; bool m_storageFindingReasonCodesHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSInstanceFindingReasonCode.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSInstanceFindingReasonCode.h index 2f576d9829d..45e2ab17be4 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSInstanceFindingReasonCode.h +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RDSInstanceFindingReasonCode.h @@ -19,12 +19,17 @@ namespace Model CPUOverprovisioned, NetworkBandwidthOverprovisioned, EBSIOPSOverprovisioned, + EBSIOPSUnderprovisioned, EBSThroughputOverprovisioned, CPUUnderprovisioned, NetworkBandwidthUnderprovisioned, EBSThroughputUnderprovisioned, NewGenerationDBInstanceClassAvailable, - NewEngineVersionAvailable + NewEngineVersionAvailable, + DBClusterWriterUnderprovisioned, + MemoryUnderprovisioned, + InstanceStorageReadIOPSUnderprovisioned, + InstanceStorageWriteIOPSUnderprovisioned }; namespace RDSInstanceFindingReasonCodeMapper diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RecommendationSummary.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RecommendationSummary.h index 1ea8039ab5a..08b25a04904 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RecommendationSummary.h +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RecommendationSummary.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -57,6 +58,20 @@ namespace Model inline RecommendationSummary& AddSummaries(Summary&& value) { m_summariesHasBeenSet = true; m_summaries.push_back(std::move(value)); return *this; } ///@} + ///@{ + /** + *

    Describes the findings summary of the idle resources.

    + */ + inline const Aws::Vector& GetIdleSummaries() const{ return m_idleSummaries; } + inline bool IdleSummariesHasBeenSet() const { return m_idleSummariesHasBeenSet; } + inline void SetIdleSummaries(const Aws::Vector& value) { m_idleSummariesHasBeenSet = true; m_idleSummaries = value; } + inline void SetIdleSummaries(Aws::Vector&& value) { m_idleSummariesHasBeenSet = true; m_idleSummaries = std::move(value); } + inline RecommendationSummary& WithIdleSummaries(const Aws::Vector& value) { SetIdleSummaries(value); return *this;} + inline RecommendationSummary& WithIdleSummaries(Aws::Vector&& value) { SetIdleSummaries(std::move(value)); return *this;} + inline RecommendationSummary& AddIdleSummaries(const IdleSummary& value) { m_idleSummariesHasBeenSet = true; m_idleSummaries.push_back(value); return *this; } + inline RecommendationSummary& AddIdleSummaries(IdleSummary&& value) { m_idleSummariesHasBeenSet = true; m_idleSummaries.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    The resource type that the recommendation summary applies to.

    @@ -97,6 +112,26 @@ namespace Model inline RecommendationSummary& WithSavingsOpportunity(SavingsOpportunity&& value) { SetSavingsOpportunity(std::move(value)); return *this;} ///@} + ///@{ + + inline const SavingsOpportunity& GetIdleSavingsOpportunity() const{ return m_idleSavingsOpportunity; } + inline bool IdleSavingsOpportunityHasBeenSet() const { return m_idleSavingsOpportunityHasBeenSet; } + inline void SetIdleSavingsOpportunity(const SavingsOpportunity& value) { m_idleSavingsOpportunityHasBeenSet = true; m_idleSavingsOpportunity = value; } + inline void SetIdleSavingsOpportunity(SavingsOpportunity&& value) { m_idleSavingsOpportunityHasBeenSet = true; m_idleSavingsOpportunity = std::move(value); } + inline RecommendationSummary& WithIdleSavingsOpportunity(const SavingsOpportunity& value) { SetIdleSavingsOpportunity(value); return *this;} + inline RecommendationSummary& WithIdleSavingsOpportunity(SavingsOpportunity&& value) { SetIdleSavingsOpportunity(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const SavingsOpportunity& GetAggregatedSavingsOpportunity() const{ return m_aggregatedSavingsOpportunity; } + inline bool AggregatedSavingsOpportunityHasBeenSet() const { return m_aggregatedSavingsOpportunityHasBeenSet; } + inline void SetAggregatedSavingsOpportunity(const SavingsOpportunity& value) { m_aggregatedSavingsOpportunityHasBeenSet = true; m_aggregatedSavingsOpportunity = value; } + inline void SetAggregatedSavingsOpportunity(SavingsOpportunity&& value) { m_aggregatedSavingsOpportunityHasBeenSet = true; m_aggregatedSavingsOpportunity = std::move(value); } + inline RecommendationSummary& WithAggregatedSavingsOpportunity(const SavingsOpportunity& value) { SetAggregatedSavingsOpportunity(value); return *this;} + inline RecommendationSummary& WithAggregatedSavingsOpportunity(SavingsOpportunity&& value) { SetAggregatedSavingsOpportunity(std::move(value)); return *this;} + ///@} + ///@{ /** *

    An object that describes the performance risk ratings for a given resource @@ -131,6 +166,9 @@ namespace Model Aws::Vector

    m_summaries; bool m_summariesHasBeenSet = false; + Aws::Vector m_idleSummaries; + bool m_idleSummariesHasBeenSet = false; + RecommendationSourceType m_recommendationResourceType; bool m_recommendationResourceTypeHasBeenSet = false; @@ -140,6 +178,12 @@ namespace Model SavingsOpportunity m_savingsOpportunity; bool m_savingsOpportunityHasBeenSet = false; + SavingsOpportunity m_idleSavingsOpportunity; + bool m_idleSavingsOpportunityHasBeenSet = false; + + SavingsOpportunity m_aggregatedSavingsOpportunity; + bool m_aggregatedSavingsOpportunityHasBeenSet = false; + CurrentPerformanceRiskRatings m_currentPerformanceRiskRatings; bool m_currentPerformanceRiskRatingsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ResourceType.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ResourceType.h index 14aebe2e514..810804a1ea9 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ResourceType.h +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/ResourceType.h @@ -23,7 +23,8 @@ namespace Model NotApplicable, EcsService, License, - RdsDBInstance + RdsDBInstance, + Idle }; namespace ResourceTypeMapper diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/VolumeConfiguration.h b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/VolumeConfiguration.h index f9397d05257..68661799ac7 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/VolumeConfiguration.h +++ b/generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/VolumeConfiguration.h @@ -40,10 +40,12 @@ namespace Model ///@{ /** - *

    The volume type.

    This can be gp2 for General Purpose SSD, - * io1 or io2 for Provisioned IOPS SSD, st1 - * for Throughput Optimized HDD, sc1 for Cold HDD, or - * standard for Magnetic volumes.

    + *

    The volume type.

    The volume types can be the following:

    • + *

      General Purpose SSD gp2 and gp3

    • + *

      Provisioned IOPS SSD io1, io2, and io2 Block + * Express

    • Throughput Optimized HDD st1

      + *
    • Cold HDD sc1

    • Magnetic volumes + * standard

    */ inline const Aws::String& GetVolumeType() const{ return m_volumeType; } inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerClient.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerClient.cpp index fc41eea820c..a83d894c524 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerClient.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerClient.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -39,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -346,6 +348,32 @@ ExportECSServiceRecommendationsOutcome ComputeOptimizerClient::ExportECSServiceR {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ExportIdleRecommendationsOutcome ComputeOptimizerClient::ExportIdleRecommendations(const ExportIdleRecommendationsRequest& request) const +{ + AWS_OPERATION_GUARD(ExportIdleRecommendations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ExportIdleRecommendations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ExportIdleRecommendations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ExportIdleRecommendations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ExportIdleRecommendations", + {{ 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( + [&]()-> ExportIdleRecommendationsOutcome { + 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, ExportIdleRecommendations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ExportIdleRecommendationsOutcome(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()}}); +} + ExportLambdaFunctionRecommendationsOutcome ComputeOptimizerClient::ExportLambdaFunctionRecommendations(const ExportLambdaFunctionRecommendationsRequest& request) const { AWS_OPERATION_GUARD(ExportLambdaFunctionRecommendations); @@ -658,6 +686,32 @@ GetEnrollmentStatusesForOrganizationOutcome ComputeOptimizerClient::GetEnrollmen {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetIdleRecommendationsOutcome ComputeOptimizerClient::GetIdleRecommendations(const GetIdleRecommendationsRequest& request) const +{ + AWS_OPERATION_GUARD(GetIdleRecommendations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetIdleRecommendations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetIdleRecommendations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetIdleRecommendations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetIdleRecommendations", + {{ 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( + [&]()-> GetIdleRecommendationsOutcome { + 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, GetIdleRecommendations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetIdleRecommendationsOutcome(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()}}); +} + GetLambdaFunctionRecommendationsOutcome ComputeOptimizerClient::GetLambdaFunctionRecommendations(const GetLambdaFunctionRecommendationsRequest& request) const { AWS_OPERATION_GUARD(GetLambdaFunctionRecommendations); diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Dimension.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Dimension.cpp new file mode 100644 index 00000000000..dd2c5514b47 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Dimension.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 ComputeOptimizer + { + namespace Model + { + namespace DimensionMapper + { + + static const int SavingsValue_HASH = HashingUtils::HashString("SavingsValue"); + static const int SavingsValueAfterDiscount_HASH = HashingUtils::HashString("SavingsValueAfterDiscount"); + + + Dimension GetDimensionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SavingsValue_HASH) + { + return Dimension::SavingsValue; + } + else if (hashCode == SavingsValueAfterDiscount_HASH) + { + return Dimension::SavingsValueAfterDiscount; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return Dimension::NOT_SET; + } + + Aws::String GetNameForDimension(Dimension enumValue) + { + switch(enumValue) + { + case Dimension::NOT_SET: + return {}; + case Dimension::SavingsValue: + return "SavingsValue"; + case Dimension::SavingsValueAfterDiscount: + return "SavingsValueAfterDiscount"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DimensionMapper + } // namespace Model + } // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportIdleRecommendationsRequest.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportIdleRecommendationsRequest.cpp new file mode 100644 index 00000000000..c1e6e90d9e4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportIdleRecommendationsRequest.cpp @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ComputeOptimizer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ExportIdleRecommendationsRequest::ExportIdleRecommendationsRequest() : + m_accountIdsHasBeenSet(false), + m_filtersHasBeenSet(false), + m_fieldsToExportHasBeenSet(false), + m_s3DestinationConfigHasBeenSet(false), + m_fileFormat(FileFormat::NOT_SET), + m_fileFormatHasBeenSet(false), + m_includeMemberAccounts(false), + m_includeMemberAccountsHasBeenSet(false) +{ +} + +Aws::String ExportIdleRecommendationsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_accountIdsHasBeenSet) + { + Aws::Utils::Array accountIdsJsonList(m_accountIds.size()); + for(unsigned accountIdsIndex = 0; accountIdsIndex < accountIdsJsonList.GetLength(); ++accountIdsIndex) + { + accountIdsJsonList[accountIdsIndex].AsString(m_accountIds[accountIdsIndex]); + } + payload.WithArray("accountIds", std::move(accountIdsJsonList)); + + } + + if(m_filtersHasBeenSet) + { + Aws::Utils::Array filtersJsonList(m_filters.size()); + for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex) + { + filtersJsonList[filtersIndex].AsObject(m_filters[filtersIndex].Jsonize()); + } + payload.WithArray("filters", std::move(filtersJsonList)); + + } + + if(m_fieldsToExportHasBeenSet) + { + Aws::Utils::Array fieldsToExportJsonList(m_fieldsToExport.size()); + for(unsigned fieldsToExportIndex = 0; fieldsToExportIndex < fieldsToExportJsonList.GetLength(); ++fieldsToExportIndex) + { + fieldsToExportJsonList[fieldsToExportIndex].AsString(ExportableIdleFieldMapper::GetNameForExportableIdleField(m_fieldsToExport[fieldsToExportIndex])); + } + payload.WithArray("fieldsToExport", std::move(fieldsToExportJsonList)); + + } + + if(m_s3DestinationConfigHasBeenSet) + { + payload.WithObject("s3DestinationConfig", m_s3DestinationConfig.Jsonize()); + + } + + if(m_fileFormatHasBeenSet) + { + payload.WithString("fileFormat", FileFormatMapper::GetNameForFileFormat(m_fileFormat)); + } + + if(m_includeMemberAccountsHasBeenSet) + { + payload.WithBool("includeMemberAccounts", m_includeMemberAccounts); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ExportIdleRecommendationsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ComputeOptimizerService.ExportIdleRecommendations")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportIdleRecommendationsResult.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportIdleRecommendationsResult.cpp new file mode 100644 index 00000000000..90071477559 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportIdleRecommendationsResult.cpp @@ -0,0 +1,54 @@ +/** + * 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::ComputeOptimizer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ExportIdleRecommendationsResult::ExportIdleRecommendationsResult() +{ +} + +ExportIdleRecommendationsResult::ExportIdleRecommendationsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ExportIdleRecommendationsResult& ExportIdleRecommendationsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("jobId")) + { + m_jobId = jsonValue.GetString("jobId"); + + } + + if(jsonValue.ValueExists("s3Destination")) + { + m_s3Destination = jsonValue.GetObject("s3Destination"); + + } + + + 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-compute-optimizer/source/model/ExportableIdleField.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableIdleField.cpp new file mode 100644 index 00000000000..455ffb92711 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableIdleField.cpp @@ -0,0 +1,198 @@ +/** + * 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 ComputeOptimizer + { + namespace Model + { + namespace ExportableIdleFieldMapper + { + + static const int AccountId_HASH = HashingUtils::HashString("AccountId"); + static const int ResourceArn_HASH = HashingUtils::HashString("ResourceArn"); + static const int ResourceId_HASH = HashingUtils::HashString("ResourceId"); + static const int ResourceType_HASH = HashingUtils::HashString("ResourceType"); + static const int LastRefreshTimestamp_HASH = HashingUtils::HashString("LastRefreshTimestamp"); + static const int LookbackPeriodInDays_HASH = HashingUtils::HashString("LookbackPeriodInDays"); + static const int SavingsOpportunity_HASH = HashingUtils::HashString("SavingsOpportunity"); + static const int SavingsOpportunityAfterDiscount_HASH = HashingUtils::HashString("SavingsOpportunityAfterDiscount"); + static const int UtilizationMetricsCpuMaximum_HASH = HashingUtils::HashString("UtilizationMetricsCpuMaximum"); + static const int UtilizationMetricsMemoryMaximum_HASH = HashingUtils::HashString("UtilizationMetricsMemoryMaximum"); + static const int UtilizationMetricsNetworkOutBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkOutBytesPerSecondMaximum"); + static const int UtilizationMetricsNetworkInBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkInBytesPerSecondMaximum"); + static const int UtilizationMetricsDatabaseConnectionsMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDatabaseConnectionsMaximum"); + static const int UtilizationMetricsEBSVolumeReadIOPSMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEBSVolumeReadIOPSMaximum"); + static const int UtilizationMetricsEBSVolumeWriteIOPSMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEBSVolumeWriteIOPSMaximum"); + static const int UtilizationMetricsVolumeReadOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsVolumeReadOpsPerSecondMaximum"); + static const int UtilizationMetricsVolumeWriteOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsVolumeWriteOpsPerSecondMaximum"); + static const int Finding_HASH = HashingUtils::HashString("Finding"); + static const int FindingDescription_HASH = HashingUtils::HashString("FindingDescription"); + static const int Tags_HASH = HashingUtils::HashString("Tags"); + + + ExportableIdleField GetExportableIdleFieldForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == AccountId_HASH) + { + return ExportableIdleField::AccountId; + } + else if (hashCode == ResourceArn_HASH) + { + return ExportableIdleField::ResourceArn; + } + else if (hashCode == ResourceId_HASH) + { + return ExportableIdleField::ResourceId; + } + else if (hashCode == ResourceType_HASH) + { + return ExportableIdleField::ResourceType; + } + else if (hashCode == LastRefreshTimestamp_HASH) + { + return ExportableIdleField::LastRefreshTimestamp; + } + else if (hashCode == LookbackPeriodInDays_HASH) + { + return ExportableIdleField::LookbackPeriodInDays; + } + else if (hashCode == SavingsOpportunity_HASH) + { + return ExportableIdleField::SavingsOpportunity; + } + else if (hashCode == SavingsOpportunityAfterDiscount_HASH) + { + return ExportableIdleField::SavingsOpportunityAfterDiscount; + } + else if (hashCode == UtilizationMetricsCpuMaximum_HASH) + { + return ExportableIdleField::UtilizationMetricsCpuMaximum; + } + else if (hashCode == UtilizationMetricsMemoryMaximum_HASH) + { + return ExportableIdleField::UtilizationMetricsMemoryMaximum; + } + else if (hashCode == UtilizationMetricsNetworkOutBytesPerSecondMaximum_HASH) + { + return ExportableIdleField::UtilizationMetricsNetworkOutBytesPerSecondMaximum; + } + else if (hashCode == UtilizationMetricsNetworkInBytesPerSecondMaximum_HASH) + { + return ExportableIdleField::UtilizationMetricsNetworkInBytesPerSecondMaximum; + } + else if (hashCode == UtilizationMetricsDatabaseConnectionsMaximum_HASH) + { + return ExportableIdleField::UtilizationMetricsDatabaseConnectionsMaximum; + } + else if (hashCode == UtilizationMetricsEBSVolumeReadIOPSMaximum_HASH) + { + return ExportableIdleField::UtilizationMetricsEBSVolumeReadIOPSMaximum; + } + else if (hashCode == UtilizationMetricsEBSVolumeWriteIOPSMaximum_HASH) + { + return ExportableIdleField::UtilizationMetricsEBSVolumeWriteIOPSMaximum; + } + else if (hashCode == UtilizationMetricsVolumeReadOpsPerSecondMaximum_HASH) + { + return ExportableIdleField::UtilizationMetricsVolumeReadOpsPerSecondMaximum; + } + else if (hashCode == UtilizationMetricsVolumeWriteOpsPerSecondMaximum_HASH) + { + return ExportableIdleField::UtilizationMetricsVolumeWriteOpsPerSecondMaximum; + } + else if (hashCode == Finding_HASH) + { + return ExportableIdleField::Finding; + } + else if (hashCode == FindingDescription_HASH) + { + return ExportableIdleField::FindingDescription; + } + else if (hashCode == Tags_HASH) + { + return ExportableIdleField::Tags; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ExportableIdleField::NOT_SET; + } + + Aws::String GetNameForExportableIdleField(ExportableIdleField enumValue) + { + switch(enumValue) + { + case ExportableIdleField::NOT_SET: + return {}; + case ExportableIdleField::AccountId: + return "AccountId"; + case ExportableIdleField::ResourceArn: + return "ResourceArn"; + case ExportableIdleField::ResourceId: + return "ResourceId"; + case ExportableIdleField::ResourceType: + return "ResourceType"; + case ExportableIdleField::LastRefreshTimestamp: + return "LastRefreshTimestamp"; + case ExportableIdleField::LookbackPeriodInDays: + return "LookbackPeriodInDays"; + case ExportableIdleField::SavingsOpportunity: + return "SavingsOpportunity"; + case ExportableIdleField::SavingsOpportunityAfterDiscount: + return "SavingsOpportunityAfterDiscount"; + case ExportableIdleField::UtilizationMetricsCpuMaximum: + return "UtilizationMetricsCpuMaximum"; + case ExportableIdleField::UtilizationMetricsMemoryMaximum: + return "UtilizationMetricsMemoryMaximum"; + case ExportableIdleField::UtilizationMetricsNetworkOutBytesPerSecondMaximum: + return "UtilizationMetricsNetworkOutBytesPerSecondMaximum"; + case ExportableIdleField::UtilizationMetricsNetworkInBytesPerSecondMaximum: + return "UtilizationMetricsNetworkInBytesPerSecondMaximum"; + case ExportableIdleField::UtilizationMetricsDatabaseConnectionsMaximum: + return "UtilizationMetricsDatabaseConnectionsMaximum"; + case ExportableIdleField::UtilizationMetricsEBSVolumeReadIOPSMaximum: + return "UtilizationMetricsEBSVolumeReadIOPSMaximum"; + case ExportableIdleField::UtilizationMetricsEBSVolumeWriteIOPSMaximum: + return "UtilizationMetricsEBSVolumeWriteIOPSMaximum"; + case ExportableIdleField::UtilizationMetricsVolumeReadOpsPerSecondMaximum: + return "UtilizationMetricsVolumeReadOpsPerSecondMaximum"; + case ExportableIdleField::UtilizationMetricsVolumeWriteOpsPerSecondMaximum: + return "UtilizationMetricsVolumeWriteOpsPerSecondMaximum"; + case ExportableIdleField::Finding: + return "Finding"; + case ExportableIdleField::FindingDescription: + return "FindingDescription"; + case ExportableIdleField::Tags: + return "Tags"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ExportableIdleFieldMapper + } // namespace Model + } // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableRDSDBField.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableRDSDBField.cpp index f7699f191f2..3e18792d6d6 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableRDSDBField.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableRDSDBField.cpp @@ -35,6 +35,7 @@ namespace Aws static const int CurrentInstanceOnDemandHourlyPrice_HASH = HashingUtils::HashString("CurrentInstanceOnDemandHourlyPrice"); static const int CurrentStorageOnDemandMonthlyPrice_HASH = HashingUtils::HashString("CurrentStorageOnDemandMonthlyPrice"); static const int LookbackPeriodInDays_HASH = HashingUtils::HashString("LookbackPeriodInDays"); + static const int CurrentInstancePerformanceRisk_HASH = HashingUtils::HashString("CurrentInstancePerformanceRisk"); static const int UtilizationMetricsCpuMaximum_HASH = HashingUtils::HashString("UtilizationMetricsCpuMaximum"); static const int UtilizationMetricsMemoryMaximum_HASH = HashingUtils::HashString("UtilizationMetricsMemoryMaximum"); static const int UtilizationMetricsEBSVolumeStorageSpaceUtilizationMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEBSVolumeStorageSpaceUtilizationMaximum"); @@ -45,6 +46,14 @@ namespace Aws static const int UtilizationMetricsEBSVolumeReadThroughputMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEBSVolumeReadThroughputMaximum"); static const int UtilizationMetricsEBSVolumeWriteThroughputMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEBSVolumeWriteThroughputMaximum"); static const int UtilizationMetricsDatabaseConnectionsMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDatabaseConnectionsMaximum"); + static const int UtilizationMetricsStorageNetworkReceiveThroughputMaximum_HASH = HashingUtils::HashString("UtilizationMetricsStorageNetworkReceiveThroughputMaximum"); + static const int UtilizationMetricsStorageNetworkTransmitThroughputMaximum_HASH = HashingUtils::HashString("UtilizationMetricsStorageNetworkTransmitThroughputMaximum"); + static const int UtilizationMetricsAuroraMemoryHealthStateMaximum_HASH = HashingUtils::HashString("UtilizationMetricsAuroraMemoryHealthStateMaximum"); + static const int UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum_HASH = HashingUtils::HashString("UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum"); + static const int UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum_HASH = HashingUtils::HashString("UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum"); + static const int UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum_HASH = HashingUtils::HashString("UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum"); + static const int UtilizationMetricsReadIOPSEphemeralStorageMaximum_HASH = HashingUtils::HashString("UtilizationMetricsReadIOPSEphemeralStorageMaximum"); + static const int UtilizationMetricsWriteIOPSEphemeralStorageMaximum_HASH = HashingUtils::HashString("UtilizationMetricsWriteIOPSEphemeralStorageMaximum"); static const int InstanceFinding_HASH = HashingUtils::HashString("InstanceFinding"); static const int InstanceFindingReasonCodes_HASH = HashingUtils::HashString("InstanceFindingReasonCodes"); static const int StorageFinding_HASH = HashingUtils::HashString("StorageFinding"); @@ -79,6 +88,8 @@ namespace Aws static const int EffectiveRecommendationPreferencesSavingsEstimationMode_HASH = HashingUtils::HashString("EffectiveRecommendationPreferencesSavingsEstimationMode"); static const int LastRefreshTimestamp_HASH = HashingUtils::HashString("LastRefreshTimestamp"); static const int Tags_HASH = HashingUtils::HashString("Tags"); + static const int DBClusterIdentifier_HASH = HashingUtils::HashString("DBClusterIdentifier"); + static const int PromotionTier_HASH = HashingUtils::HashString("PromotionTier"); ExportableRDSDBField GetExportableRDSDBFieldForName(const Aws::String& name) @@ -144,6 +155,10 @@ namespace Aws { return ExportableRDSDBField::LookbackPeriodInDays; } + else if (hashCode == CurrentInstancePerformanceRisk_HASH) + { + return ExportableRDSDBField::CurrentInstancePerformanceRisk; + } else if (hashCode == UtilizationMetricsCpuMaximum_HASH) { return ExportableRDSDBField::UtilizationMetricsCpuMaximum; @@ -184,6 +199,38 @@ namespace Aws { return ExportableRDSDBField::UtilizationMetricsDatabaseConnectionsMaximum; } + else if (hashCode == UtilizationMetricsStorageNetworkReceiveThroughputMaximum_HASH) + { + return ExportableRDSDBField::UtilizationMetricsStorageNetworkReceiveThroughputMaximum; + } + else if (hashCode == UtilizationMetricsStorageNetworkTransmitThroughputMaximum_HASH) + { + return ExportableRDSDBField::UtilizationMetricsStorageNetworkTransmitThroughputMaximum; + } + else if (hashCode == UtilizationMetricsAuroraMemoryHealthStateMaximum_HASH) + { + return ExportableRDSDBField::UtilizationMetricsAuroraMemoryHealthStateMaximum; + } + else if (hashCode == UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum_HASH) + { + return ExportableRDSDBField::UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum; + } + else if (hashCode == UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum_HASH) + { + return ExportableRDSDBField::UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum; + } + else if (hashCode == UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum_HASH) + { + return ExportableRDSDBField::UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum; + } + else if (hashCode == UtilizationMetricsReadIOPSEphemeralStorageMaximum_HASH) + { + return ExportableRDSDBField::UtilizationMetricsReadIOPSEphemeralStorageMaximum; + } + else if (hashCode == UtilizationMetricsWriteIOPSEphemeralStorageMaximum_HASH) + { + return ExportableRDSDBField::UtilizationMetricsWriteIOPSEphemeralStorageMaximum; + } else if (hashCode == InstanceFinding_HASH) { return ExportableRDSDBField::InstanceFinding; @@ -320,6 +367,14 @@ namespace Aws { return ExportableRDSDBField::Tags; } + else if (hashCode == DBClusterIdentifier_HASH) + { + return ExportableRDSDBField::DBClusterIdentifier; + } + else if (hashCode == PromotionTier_HASH) + { + return ExportableRDSDBField::PromotionTier; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -366,6 +421,8 @@ namespace Aws return "CurrentStorageOnDemandMonthlyPrice"; case ExportableRDSDBField::LookbackPeriodInDays: return "LookbackPeriodInDays"; + case ExportableRDSDBField::CurrentInstancePerformanceRisk: + return "CurrentInstancePerformanceRisk"; case ExportableRDSDBField::UtilizationMetricsCpuMaximum: return "UtilizationMetricsCpuMaximum"; case ExportableRDSDBField::UtilizationMetricsMemoryMaximum: @@ -386,6 +443,22 @@ namespace Aws return "UtilizationMetricsEBSVolumeWriteThroughputMaximum"; case ExportableRDSDBField::UtilizationMetricsDatabaseConnectionsMaximum: return "UtilizationMetricsDatabaseConnectionsMaximum"; + case ExportableRDSDBField::UtilizationMetricsStorageNetworkReceiveThroughputMaximum: + return "UtilizationMetricsStorageNetworkReceiveThroughputMaximum"; + case ExportableRDSDBField::UtilizationMetricsStorageNetworkTransmitThroughputMaximum: + return "UtilizationMetricsStorageNetworkTransmitThroughputMaximum"; + case ExportableRDSDBField::UtilizationMetricsAuroraMemoryHealthStateMaximum: + return "UtilizationMetricsAuroraMemoryHealthStateMaximum"; + case ExportableRDSDBField::UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum: + return "UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum"; + case ExportableRDSDBField::UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum: + return "UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum"; + case ExportableRDSDBField::UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum: + return "UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum"; + case ExportableRDSDBField::UtilizationMetricsReadIOPSEphemeralStorageMaximum: + return "UtilizationMetricsReadIOPSEphemeralStorageMaximum"; + case ExportableRDSDBField::UtilizationMetricsWriteIOPSEphemeralStorageMaximum: + return "UtilizationMetricsWriteIOPSEphemeralStorageMaximum"; case ExportableRDSDBField::InstanceFinding: return "InstanceFinding"; case ExportableRDSDBField::InstanceFindingReasonCodes: @@ -454,6 +527,10 @@ namespace Aws return "LastRefreshTimestamp"; case ExportableRDSDBField::Tags: return "Tags"; + case ExportableRDSDBField::DBClusterIdentifier: + return "DBClusterIdentifier"; + case ExportableRDSDBField::PromotionTier: + return "PromotionTier"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/GetIdleRecommendationsRequest.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/GetIdleRecommendationsRequest.cpp new file mode 100644 index 00000000000..9538aa76e65 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/GetIdleRecommendationsRequest.cpp @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ComputeOptimizer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetIdleRecommendationsRequest::GetIdleRecommendationsRequest() : + m_resourceArnsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_filtersHasBeenSet(false), + m_accountIdsHasBeenSet(false), + m_orderByHasBeenSet(false) +{ +} + +Aws::String GetIdleRecommendationsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_resourceArnsHasBeenSet) + { + Aws::Utils::Array resourceArnsJsonList(m_resourceArns.size()); + for(unsigned resourceArnsIndex = 0; resourceArnsIndex < resourceArnsJsonList.GetLength(); ++resourceArnsIndex) + { + resourceArnsJsonList[resourceArnsIndex].AsString(m_resourceArns[resourceArnsIndex]); + } + payload.WithArray("resourceArns", std::move(resourceArnsJsonList)); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("nextToken", m_nextToken); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("maxResults", m_maxResults); + + } + + if(m_filtersHasBeenSet) + { + Aws::Utils::Array filtersJsonList(m_filters.size()); + for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex) + { + filtersJsonList[filtersIndex].AsObject(m_filters[filtersIndex].Jsonize()); + } + payload.WithArray("filters", std::move(filtersJsonList)); + + } + + if(m_accountIdsHasBeenSet) + { + Aws::Utils::Array accountIdsJsonList(m_accountIds.size()); + for(unsigned accountIdsIndex = 0; accountIdsIndex < accountIdsJsonList.GetLength(); ++accountIdsIndex) + { + accountIdsJsonList[accountIdsIndex].AsString(m_accountIds[accountIdsIndex]); + } + payload.WithArray("accountIds", std::move(accountIdsJsonList)); + + } + + if(m_orderByHasBeenSet) + { + payload.WithObject("orderBy", m_orderBy.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetIdleRecommendationsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ComputeOptimizerService.GetIdleRecommendations")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/GetIdleRecommendationsResult.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/GetIdleRecommendationsResult.cpp new file mode 100644 index 00000000000..bc3ebff67e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/GetIdleRecommendationsResult.cpp @@ -0,0 +1,66 @@ +/** + * 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::ComputeOptimizer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetIdleRecommendationsResult::GetIdleRecommendationsResult() +{ +} + +GetIdleRecommendationsResult::GetIdleRecommendationsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetIdleRecommendationsResult& GetIdleRecommendationsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + if(jsonValue.ValueExists("idleRecommendations")) + { + Aws::Utils::Array idleRecommendationsJsonList = jsonValue.GetArray("idleRecommendations"); + for(unsigned idleRecommendationsIndex = 0; idleRecommendationsIndex < idleRecommendationsJsonList.GetLength(); ++idleRecommendationsIndex) + { + m_idleRecommendations.push_back(idleRecommendationsJsonList[idleRecommendationsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("errors")) + { + Aws::Utils::Array errorsJsonList = jsonValue.GetArray("errors"); + for(unsigned errorsIndex = 0; errorsIndex < errorsJsonList.GetLength(); ++errorsIndex) + { + m_errors.push_back(errorsJsonList[errorsIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleEstimatedMonthlySavings.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleEstimatedMonthlySavings.cpp new file mode 100644 index 00000000000..fc528652716 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleEstimatedMonthlySavings.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ComputeOptimizer +{ +namespace Model +{ + +IdleEstimatedMonthlySavings::IdleEstimatedMonthlySavings() : + m_currency(Currency::NOT_SET), + m_currencyHasBeenSet(false), + m_value(0.0), + m_valueHasBeenSet(false) +{ +} + +IdleEstimatedMonthlySavings::IdleEstimatedMonthlySavings(JsonView jsonValue) + : IdleEstimatedMonthlySavings() +{ + *this = jsonValue; +} + +IdleEstimatedMonthlySavings& IdleEstimatedMonthlySavings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("currency")) + { + m_currency = CurrencyMapper::GetCurrencyForName(jsonValue.GetString("currency")); + + m_currencyHasBeenSet = true; + } + + if(jsonValue.ValueExists("value")) + { + m_value = jsonValue.GetDouble("value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue IdleEstimatedMonthlySavings::Jsonize() const +{ + JsonValue payload; + + if(m_currencyHasBeenSet) + { + payload.WithString("currency", CurrencyMapper::GetNameForCurrency(m_currency)); + } + + if(m_valueHasBeenSet) + { + payload.WithDouble("value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleFinding.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleFinding.cpp new file mode 100644 index 00000000000..5804f7c90df --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleFinding.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 ComputeOptimizer + { + namespace Model + { + namespace IdleFindingMapper + { + + static const int Idle_HASH = HashingUtils::HashString("Idle"); + static const int Unattached_HASH = HashingUtils::HashString("Unattached"); + + + IdleFinding GetIdleFindingForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Idle_HASH) + { + return IdleFinding::Idle; + } + else if (hashCode == Unattached_HASH) + { + return IdleFinding::Unattached; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IdleFinding::NOT_SET; + } + + Aws::String GetNameForIdleFinding(IdleFinding enumValue) + { + switch(enumValue) + { + case IdleFinding::NOT_SET: + return {}; + case IdleFinding::Idle: + return "Idle"; + case IdleFinding::Unattached: + return "Unattached"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IdleFindingMapper + } // namespace Model + } // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleMetricName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleMetricName.cpp new file mode 100644 index 00000000000..1b174930148 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleMetricName.cpp @@ -0,0 +1,121 @@ +/** + * 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 ComputeOptimizer + { + namespace Model + { + namespace IdleMetricNameMapper + { + + static const int CPU_HASH = HashingUtils::HashString("CPU"); + static const int Memory_HASH = HashingUtils::HashString("Memory"); + static const int NetworkOutBytesPerSecond_HASH = HashingUtils::HashString("NetworkOutBytesPerSecond"); + static const int NetworkInBytesPerSecond_HASH = HashingUtils::HashString("NetworkInBytesPerSecond"); + static const int DatabaseConnections_HASH = HashingUtils::HashString("DatabaseConnections"); + static const int EBSVolumeReadIOPS_HASH = HashingUtils::HashString("EBSVolumeReadIOPS"); + static const int EBSVolumeWriteIOPS_HASH = HashingUtils::HashString("EBSVolumeWriteIOPS"); + static const int VolumeReadOpsPerSecond_HASH = HashingUtils::HashString("VolumeReadOpsPerSecond"); + static const int VolumeWriteOpsPerSecond_HASH = HashingUtils::HashString("VolumeWriteOpsPerSecond"); + + + IdleMetricName GetIdleMetricNameForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CPU_HASH) + { + return IdleMetricName::CPU; + } + else if (hashCode == Memory_HASH) + { + return IdleMetricName::Memory; + } + else if (hashCode == NetworkOutBytesPerSecond_HASH) + { + return IdleMetricName::NetworkOutBytesPerSecond; + } + else if (hashCode == NetworkInBytesPerSecond_HASH) + { + return IdleMetricName::NetworkInBytesPerSecond; + } + else if (hashCode == DatabaseConnections_HASH) + { + return IdleMetricName::DatabaseConnections; + } + else if (hashCode == EBSVolumeReadIOPS_HASH) + { + return IdleMetricName::EBSVolumeReadIOPS; + } + else if (hashCode == EBSVolumeWriteIOPS_HASH) + { + return IdleMetricName::EBSVolumeWriteIOPS; + } + else if (hashCode == VolumeReadOpsPerSecond_HASH) + { + return IdleMetricName::VolumeReadOpsPerSecond; + } + else if (hashCode == VolumeWriteOpsPerSecond_HASH) + { + return IdleMetricName::VolumeWriteOpsPerSecond; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IdleMetricName::NOT_SET; + } + + Aws::String GetNameForIdleMetricName(IdleMetricName enumValue) + { + switch(enumValue) + { + case IdleMetricName::NOT_SET: + return {}; + case IdleMetricName::CPU: + return "CPU"; + case IdleMetricName::Memory: + return "Memory"; + case IdleMetricName::NetworkOutBytesPerSecond: + return "NetworkOutBytesPerSecond"; + case IdleMetricName::NetworkInBytesPerSecond: + return "NetworkInBytesPerSecond"; + case IdleMetricName::DatabaseConnections: + return "DatabaseConnections"; + case IdleMetricName::EBSVolumeReadIOPS: + return "EBSVolumeReadIOPS"; + case IdleMetricName::EBSVolumeWriteIOPS: + return "EBSVolumeWriteIOPS"; + case IdleMetricName::VolumeReadOpsPerSecond: + return "VolumeReadOpsPerSecond"; + case IdleMetricName::VolumeWriteOpsPerSecond: + return "VolumeWriteOpsPerSecond"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IdleMetricNameMapper + } // namespace Model + } // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendation.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendation.cpp new file mode 100644 index 00000000000..0aee2f133ef --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendation.cpp @@ -0,0 +1,229 @@ +/** + * 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 ComputeOptimizer +{ +namespace Model +{ + +IdleRecommendation::IdleRecommendation() : + m_resourceArnHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceType(IdleRecommendationResourceType::NOT_SET), + m_resourceTypeHasBeenSet(false), + m_accountIdHasBeenSet(false), + m_finding(IdleFinding::NOT_SET), + m_findingHasBeenSet(false), + m_findingDescriptionHasBeenSet(false), + m_savingsOpportunityHasBeenSet(false), + m_savingsOpportunityAfterDiscountsHasBeenSet(false), + m_utilizationMetricsHasBeenSet(false), + m_lookBackPeriodInDays(0.0), + m_lookBackPeriodInDaysHasBeenSet(false), + m_lastRefreshTimestampHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +IdleRecommendation::IdleRecommendation(JsonView jsonValue) + : IdleRecommendation() +{ + *this = jsonValue; +} + +IdleRecommendation& IdleRecommendation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("resourceArn")) + { + m_resourceArn = jsonValue.GetString("resourceArn"); + + m_resourceArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceId")) + { + m_resourceId = jsonValue.GetString("resourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceType")) + { + m_resourceType = IdleRecommendationResourceTypeMapper::GetIdleRecommendationResourceTypeForName(jsonValue.GetString("resourceType")); + + m_resourceTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("accountId")) + { + m_accountId = jsonValue.GetString("accountId"); + + m_accountIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("finding")) + { + m_finding = IdleFindingMapper::GetIdleFindingForName(jsonValue.GetString("finding")); + + m_findingHasBeenSet = true; + } + + if(jsonValue.ValueExists("findingDescription")) + { + m_findingDescription = jsonValue.GetString("findingDescription"); + + m_findingDescriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("savingsOpportunity")) + { + m_savingsOpportunity = jsonValue.GetObject("savingsOpportunity"); + + m_savingsOpportunityHasBeenSet = true; + } + + if(jsonValue.ValueExists("savingsOpportunityAfterDiscounts")) + { + m_savingsOpportunityAfterDiscounts = jsonValue.GetObject("savingsOpportunityAfterDiscounts"); + + m_savingsOpportunityAfterDiscountsHasBeenSet = true; + } + + if(jsonValue.ValueExists("utilizationMetrics")) + { + Aws::Utils::Array utilizationMetricsJsonList = jsonValue.GetArray("utilizationMetrics"); + for(unsigned utilizationMetricsIndex = 0; utilizationMetricsIndex < utilizationMetricsJsonList.GetLength(); ++utilizationMetricsIndex) + { + m_utilizationMetrics.push_back(utilizationMetricsJsonList[utilizationMetricsIndex].AsObject()); + } + m_utilizationMetricsHasBeenSet = true; + } + + if(jsonValue.ValueExists("lookBackPeriodInDays")) + { + m_lookBackPeriodInDays = jsonValue.GetDouble("lookBackPeriodInDays"); + + m_lookBackPeriodInDaysHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastRefreshTimestamp")) + { + m_lastRefreshTimestamp = jsonValue.GetDouble("lastRefreshTimestamp"); + + m_lastRefreshTimestampHasBeenSet = 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 IdleRecommendation::Jsonize() const +{ + JsonValue payload; + + if(m_resourceArnHasBeenSet) + { + payload.WithString("resourceArn", m_resourceArn); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("resourceId", m_resourceId); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("resourceType", IdleRecommendationResourceTypeMapper::GetNameForIdleRecommendationResourceType(m_resourceType)); + } + + if(m_accountIdHasBeenSet) + { + payload.WithString("accountId", m_accountId); + + } + + if(m_findingHasBeenSet) + { + payload.WithString("finding", IdleFindingMapper::GetNameForIdleFinding(m_finding)); + } + + if(m_findingDescriptionHasBeenSet) + { + payload.WithString("findingDescription", m_findingDescription); + + } + + if(m_savingsOpportunityHasBeenSet) + { + payload.WithObject("savingsOpportunity", m_savingsOpportunity.Jsonize()); + + } + + if(m_savingsOpportunityAfterDiscountsHasBeenSet) + { + payload.WithObject("savingsOpportunityAfterDiscounts", m_savingsOpportunityAfterDiscounts.Jsonize()); + + } + + if(m_utilizationMetricsHasBeenSet) + { + Aws::Utils::Array utilizationMetricsJsonList(m_utilizationMetrics.size()); + for(unsigned utilizationMetricsIndex = 0; utilizationMetricsIndex < utilizationMetricsJsonList.GetLength(); ++utilizationMetricsIndex) + { + utilizationMetricsJsonList[utilizationMetricsIndex].AsObject(m_utilizationMetrics[utilizationMetricsIndex].Jsonize()); + } + payload.WithArray("utilizationMetrics", std::move(utilizationMetricsJsonList)); + + } + + if(m_lookBackPeriodInDaysHasBeenSet) + { + payload.WithDouble("lookBackPeriodInDays", m_lookBackPeriodInDays); + + } + + if(m_lastRefreshTimestampHasBeenSet) + { + payload.WithDouble("lastRefreshTimestamp", m_lastRefreshTimestamp.SecondsWithMSPrecision()); + } + + 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 ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationError.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationError.cpp new file mode 100644 index 00000000000..19b2f1e5a3f --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationError.cpp @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ComputeOptimizer +{ +namespace Model +{ + +IdleRecommendationError::IdleRecommendationError() : + m_identifierHasBeenSet(false), + m_codeHasBeenSet(false), + m_messageHasBeenSet(false), + m_resourceType(IdleRecommendationResourceType::NOT_SET), + m_resourceTypeHasBeenSet(false) +{ +} + +IdleRecommendationError::IdleRecommendationError(JsonView jsonValue) + : IdleRecommendationError() +{ + *this = jsonValue; +} + +IdleRecommendationError& IdleRecommendationError::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("identifier")) + { + m_identifier = jsonValue.GetString("identifier"); + + m_identifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("code")) + { + m_code = jsonValue.GetString("code"); + + m_codeHasBeenSet = true; + } + + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceType")) + { + m_resourceType = IdleRecommendationResourceTypeMapper::GetIdleRecommendationResourceTypeForName(jsonValue.GetString("resourceType")); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue IdleRecommendationError::Jsonize() const +{ + JsonValue payload; + + if(m_identifierHasBeenSet) + { + payload.WithString("identifier", m_identifier); + + } + + if(m_codeHasBeenSet) + { + payload.WithString("code", m_code); + + } + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("resourceType", IdleRecommendationResourceTypeMapper::GetNameForIdleRecommendationResourceType(m_resourceType)); + } + + return payload; +} + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationFilter.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationFilter.cpp new file mode 100644 index 00000000000..dd96142c0f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationFilter.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 ComputeOptimizer +{ +namespace Model +{ + +IdleRecommendationFilter::IdleRecommendationFilter() : + m_name(IdleRecommendationFilterName::NOT_SET), + m_nameHasBeenSet(false), + m_valuesHasBeenSet(false) +{ +} + +IdleRecommendationFilter::IdleRecommendationFilter(JsonView jsonValue) + : IdleRecommendationFilter() +{ + *this = jsonValue; +} + +IdleRecommendationFilter& IdleRecommendationFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = IdleRecommendationFilterNameMapper::GetIdleRecommendationFilterNameForName(jsonValue.GetString("name")); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("values")) + { + Aws::Utils::Array valuesJsonList = jsonValue.GetArray("values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(valuesJsonList[valuesIndex].AsString()); + } + m_valuesHasBeenSet = true; + } + + return *this; +} + +JsonValue IdleRecommendationFilter::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", IdleRecommendationFilterNameMapper::GetNameForIdleRecommendationFilterName(m_name)); + } + + if(m_valuesHasBeenSet) + { + Aws::Utils::Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(m_values[valuesIndex]); + } + payload.WithArray("values", std::move(valuesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationFilterName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationFilterName.cpp new file mode 100644 index 00000000000..41990607f3d --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationFilterName.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 ComputeOptimizer + { + namespace Model + { + namespace IdleRecommendationFilterNameMapper + { + + static const int Finding_HASH = HashingUtils::HashString("Finding"); + static const int ResourceType_HASH = HashingUtils::HashString("ResourceType"); + + + IdleRecommendationFilterName GetIdleRecommendationFilterNameForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Finding_HASH) + { + return IdleRecommendationFilterName::Finding; + } + else if (hashCode == ResourceType_HASH) + { + return IdleRecommendationFilterName::ResourceType; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IdleRecommendationFilterName::NOT_SET; + } + + Aws::String GetNameForIdleRecommendationFilterName(IdleRecommendationFilterName enumValue) + { + switch(enumValue) + { + case IdleRecommendationFilterName::NOT_SET: + return {}; + case IdleRecommendationFilterName::Finding: + return "Finding"; + case IdleRecommendationFilterName::ResourceType: + return "ResourceType"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IdleRecommendationFilterNameMapper + } // namespace Model + } // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationResourceType.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationResourceType.cpp new file mode 100644 index 00000000000..9a4a7d44d23 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleRecommendationResourceType.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 ComputeOptimizer + { + namespace Model + { + namespace IdleRecommendationResourceTypeMapper + { + + static const int EC2Instance_HASH = HashingUtils::HashString("EC2Instance"); + static const int AutoScalingGroup_HASH = HashingUtils::HashString("AutoScalingGroup"); + static const int EBSVolume_HASH = HashingUtils::HashString("EBSVolume"); + static const int ECSService_HASH = HashingUtils::HashString("ECSService"); + static const int RDSDBInstance_HASH = HashingUtils::HashString("RDSDBInstance"); + + + IdleRecommendationResourceType GetIdleRecommendationResourceTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == EC2Instance_HASH) + { + return IdleRecommendationResourceType::EC2Instance; + } + else if (hashCode == AutoScalingGroup_HASH) + { + return IdleRecommendationResourceType::AutoScalingGroup; + } + else if (hashCode == EBSVolume_HASH) + { + return IdleRecommendationResourceType::EBSVolume; + } + else if (hashCode == ECSService_HASH) + { + return IdleRecommendationResourceType::ECSService; + } + else if (hashCode == RDSDBInstance_HASH) + { + return IdleRecommendationResourceType::RDSDBInstance; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IdleRecommendationResourceType::NOT_SET; + } + + Aws::String GetNameForIdleRecommendationResourceType(IdleRecommendationResourceType enumValue) + { + switch(enumValue) + { + case IdleRecommendationResourceType::NOT_SET: + return {}; + case IdleRecommendationResourceType::EC2Instance: + return "EC2Instance"; + case IdleRecommendationResourceType::AutoScalingGroup: + return "AutoScalingGroup"; + case IdleRecommendationResourceType::EBSVolume: + return "EBSVolume"; + case IdleRecommendationResourceType::ECSService: + return "ECSService"; + case IdleRecommendationResourceType::RDSDBInstance: + return "RDSDBInstance"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IdleRecommendationResourceTypeMapper + } // namespace Model + } // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSavingsOpportunity.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSavingsOpportunity.cpp new file mode 100644 index 00000000000..8dd189ac190 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSavingsOpportunity.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ComputeOptimizer +{ +namespace Model +{ + +IdleSavingsOpportunity::IdleSavingsOpportunity() : + m_savingsOpportunityPercentage(0.0), + m_savingsOpportunityPercentageHasBeenSet(false), + m_estimatedMonthlySavingsHasBeenSet(false) +{ +} + +IdleSavingsOpportunity::IdleSavingsOpportunity(JsonView jsonValue) + : IdleSavingsOpportunity() +{ + *this = jsonValue; +} + +IdleSavingsOpportunity& IdleSavingsOpportunity::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("savingsOpportunityPercentage")) + { + m_savingsOpportunityPercentage = jsonValue.GetDouble("savingsOpportunityPercentage"); + + m_savingsOpportunityPercentageHasBeenSet = true; + } + + if(jsonValue.ValueExists("estimatedMonthlySavings")) + { + m_estimatedMonthlySavings = jsonValue.GetObject("estimatedMonthlySavings"); + + m_estimatedMonthlySavingsHasBeenSet = true; + } + + return *this; +} + +JsonValue IdleSavingsOpportunity::Jsonize() const +{ + JsonValue payload; + + if(m_savingsOpportunityPercentageHasBeenSet) + { + payload.WithDouble("savingsOpportunityPercentage", m_savingsOpportunityPercentage); + + } + + if(m_estimatedMonthlySavingsHasBeenSet) + { + payload.WithObject("estimatedMonthlySavings", m_estimatedMonthlySavings.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSavingsOpportunityAfterDiscounts.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSavingsOpportunityAfterDiscounts.cpp new file mode 100644 index 00000000000..758a4e11a65 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSavingsOpportunityAfterDiscounts.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ComputeOptimizer +{ +namespace Model +{ + +IdleSavingsOpportunityAfterDiscounts::IdleSavingsOpportunityAfterDiscounts() : + m_savingsOpportunityPercentage(0.0), + m_savingsOpportunityPercentageHasBeenSet(false), + m_estimatedMonthlySavingsHasBeenSet(false) +{ +} + +IdleSavingsOpportunityAfterDiscounts::IdleSavingsOpportunityAfterDiscounts(JsonView jsonValue) + : IdleSavingsOpportunityAfterDiscounts() +{ + *this = jsonValue; +} + +IdleSavingsOpportunityAfterDiscounts& IdleSavingsOpportunityAfterDiscounts::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("savingsOpportunityPercentage")) + { + m_savingsOpportunityPercentage = jsonValue.GetDouble("savingsOpportunityPercentage"); + + m_savingsOpportunityPercentageHasBeenSet = true; + } + + if(jsonValue.ValueExists("estimatedMonthlySavings")) + { + m_estimatedMonthlySavings = jsonValue.GetObject("estimatedMonthlySavings"); + + m_estimatedMonthlySavingsHasBeenSet = true; + } + + return *this; +} + +JsonValue IdleSavingsOpportunityAfterDiscounts::Jsonize() const +{ + JsonValue payload; + + if(m_savingsOpportunityPercentageHasBeenSet) + { + payload.WithDouble("savingsOpportunityPercentage", m_savingsOpportunityPercentage); + + } + + if(m_estimatedMonthlySavingsHasBeenSet) + { + payload.WithObject("estimatedMonthlySavings", m_estimatedMonthlySavings.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSummary.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSummary.cpp new file mode 100644 index 00000000000..a17e1ab9eda --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleSummary.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ComputeOptimizer +{ +namespace Model +{ + +IdleSummary::IdleSummary() : + m_name(IdleFinding::NOT_SET), + m_nameHasBeenSet(false), + m_value(0.0), + m_valueHasBeenSet(false) +{ +} + +IdleSummary::IdleSummary(JsonView jsonValue) + : IdleSummary() +{ + *this = jsonValue; +} + +IdleSummary& IdleSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = IdleFindingMapper::GetIdleFindingForName(jsonValue.GetString("name")); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("value")) + { + m_value = jsonValue.GetDouble("value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue IdleSummary::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", IdleFindingMapper::GetNameForIdleFinding(m_name)); + } + + if(m_valueHasBeenSet) + { + payload.WithDouble("value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleUtilizationMetric.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleUtilizationMetric.cpp new file mode 100644 index 00000000000..54cce5dcdfa --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/IdleUtilizationMetric.cpp @@ -0,0 +1,88 @@ +/** + * 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 ComputeOptimizer +{ +namespace Model +{ + +IdleUtilizationMetric::IdleUtilizationMetric() : + m_name(IdleMetricName::NOT_SET), + m_nameHasBeenSet(false), + m_statistic(MetricStatistic::NOT_SET), + m_statisticHasBeenSet(false), + m_value(0.0), + m_valueHasBeenSet(false) +{ +} + +IdleUtilizationMetric::IdleUtilizationMetric(JsonView jsonValue) + : IdleUtilizationMetric() +{ + *this = jsonValue; +} + +IdleUtilizationMetric& IdleUtilizationMetric::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = IdleMetricNameMapper::GetIdleMetricNameForName(jsonValue.GetString("name")); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("statistic")) + { + m_statistic = MetricStatisticMapper::GetMetricStatisticForName(jsonValue.GetString("statistic")); + + m_statisticHasBeenSet = true; + } + + if(jsonValue.ValueExists("value")) + { + m_value = jsonValue.GetDouble("value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue IdleUtilizationMetric::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", IdleMetricNameMapper::GetNameForIdleMetricName(m_name)); + } + + if(m_statisticHasBeenSet) + { + payload.WithString("statistic", MetricStatisticMapper::GetNameForMetricStatistic(m_statistic)); + } + + if(m_valueHasBeenSet) + { + payload.WithDouble("value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Order.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Order.cpp new file mode 100644 index 00000000000..943b2e1452f --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Order.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 ComputeOptimizer + { + namespace Model + { + namespace OrderMapper + { + + static const int Asc_HASH = HashingUtils::HashString("Asc"); + static const int Desc_HASH = HashingUtils::HashString("Desc"); + + + Order GetOrderForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Asc_HASH) + { + return Order::Asc; + } + else if (hashCode == Desc_HASH) + { + return Order::Desc; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return Order::NOT_SET; + } + + Aws::String GetNameForOrder(Order enumValue) + { + switch(enumValue) + { + case Order::NOT_SET: + return {}; + case Order::Asc: + return "Asc"; + case Order::Desc: + return "Desc"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace OrderMapper + } // namespace Model + } // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/OrderBy.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/OrderBy.cpp new file mode 100644 index 00000000000..88c94f4354f --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/OrderBy.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ComputeOptimizer +{ +namespace Model +{ + +OrderBy::OrderBy() : + m_dimension(Dimension::NOT_SET), + m_dimensionHasBeenSet(false), + m_order(Order::NOT_SET), + m_orderHasBeenSet(false) +{ +} + +OrderBy::OrderBy(JsonView jsonValue) + : OrderBy() +{ + *this = jsonValue; +} + +OrderBy& OrderBy::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("dimension")) + { + m_dimension = DimensionMapper::GetDimensionForName(jsonValue.GetString("dimension")); + + m_dimensionHasBeenSet = true; + } + + if(jsonValue.ValueExists("order")) + { + m_order = OrderMapper::GetOrderForName(jsonValue.GetString("order")); + + m_orderHasBeenSet = true; + } + + return *this; +} + +JsonValue OrderBy::Jsonize() const +{ + JsonValue payload; + + if(m_dimensionHasBeenSet) + { + payload.WithString("dimension", DimensionMapper::GetNameForDimension(m_dimension)); + } + + if(m_orderHasBeenSet) + { + payload.WithString("order", OrderMapper::GetNameForOrder(m_order)); + } + + return payload; +} + +} // namespace Model +} // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSCurrentInstancePerformanceRisk.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSCurrentInstancePerformanceRisk.cpp new file mode 100644 index 00000000000..44b2d526432 --- /dev/null +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSCurrentInstancePerformanceRisk.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 ComputeOptimizer + { + namespace Model + { + namespace RDSCurrentInstancePerformanceRiskMapper + { + + static const int VeryLow_HASH = HashingUtils::HashString("VeryLow"); + static const int Low_HASH = HashingUtils::HashString("Low"); + static const int Medium_HASH = HashingUtils::HashString("Medium"); + static const int High_HASH = HashingUtils::HashString("High"); + + + RDSCurrentInstancePerformanceRisk GetRDSCurrentInstancePerformanceRiskForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == VeryLow_HASH) + { + return RDSCurrentInstancePerformanceRisk::VeryLow; + } + else if (hashCode == Low_HASH) + { + return RDSCurrentInstancePerformanceRisk::Low; + } + else if (hashCode == Medium_HASH) + { + return RDSCurrentInstancePerformanceRisk::Medium; + } + else if (hashCode == High_HASH) + { + return RDSCurrentInstancePerformanceRisk::High; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RDSCurrentInstancePerformanceRisk::NOT_SET; + } + + Aws::String GetNameForRDSCurrentInstancePerformanceRisk(RDSCurrentInstancePerformanceRisk enumValue) + { + switch(enumValue) + { + case RDSCurrentInstancePerformanceRisk::NOT_SET: + return {}; + case RDSCurrentInstancePerformanceRisk::VeryLow: + return "VeryLow"; + case RDSCurrentInstancePerformanceRisk::Low: + return "Low"; + case RDSCurrentInstancePerformanceRisk::Medium: + return "Medium"; + case RDSCurrentInstancePerformanceRisk::High: + return "High"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RDSCurrentInstancePerformanceRiskMapper + } // namespace Model + } // namespace ComputeOptimizer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSDBMetricName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSDBMetricName.cpp index e719fdf0ad8..4a6084b7574 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSDBMetricName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSDBMetricName.cpp @@ -30,6 +30,14 @@ namespace Aws static const int EBSVolumeReadThroughput_HASH = HashingUtils::HashString("EBSVolumeReadThroughput"); static const int EBSVolumeWriteThroughput_HASH = HashingUtils::HashString("EBSVolumeWriteThroughput"); static const int DatabaseConnections_HASH = HashingUtils::HashString("DatabaseConnections"); + static const int StorageNetworkReceiveThroughput_HASH = HashingUtils::HashString("StorageNetworkReceiveThroughput"); + static const int StorageNetworkTransmitThroughput_HASH = HashingUtils::HashString("StorageNetworkTransmitThroughput"); + static const int AuroraMemoryHealthState_HASH = HashingUtils::HashString("AuroraMemoryHealthState"); + static const int AuroraMemoryNumDeclinedSql_HASH = HashingUtils::HashString("AuroraMemoryNumDeclinedSql"); + static const int AuroraMemoryNumKillConnTotal_HASH = HashingUtils::HashString("AuroraMemoryNumKillConnTotal"); + static const int AuroraMemoryNumKillQueryTotal_HASH = HashingUtils::HashString("AuroraMemoryNumKillQueryTotal"); + static const int ReadIOPSEphemeralStorage_HASH = HashingUtils::HashString("ReadIOPSEphemeralStorage"); + static const int WriteIOPSEphemeralStorage_HASH = HashingUtils::HashString("WriteIOPSEphemeralStorage"); RDSDBMetricName GetRDSDBMetricNameForName(const Aws::String& name) @@ -75,6 +83,38 @@ namespace Aws { return RDSDBMetricName::DatabaseConnections; } + else if (hashCode == StorageNetworkReceiveThroughput_HASH) + { + return RDSDBMetricName::StorageNetworkReceiveThroughput; + } + else if (hashCode == StorageNetworkTransmitThroughput_HASH) + { + return RDSDBMetricName::StorageNetworkTransmitThroughput; + } + else if (hashCode == AuroraMemoryHealthState_HASH) + { + return RDSDBMetricName::AuroraMemoryHealthState; + } + else if (hashCode == AuroraMemoryNumDeclinedSql_HASH) + { + return RDSDBMetricName::AuroraMemoryNumDeclinedSql; + } + else if (hashCode == AuroraMemoryNumKillConnTotal_HASH) + { + return RDSDBMetricName::AuroraMemoryNumKillConnTotal; + } + else if (hashCode == AuroraMemoryNumKillQueryTotal_HASH) + { + return RDSDBMetricName::AuroraMemoryNumKillQueryTotal; + } + else if (hashCode == ReadIOPSEphemeralStorage_HASH) + { + return RDSDBMetricName::ReadIOPSEphemeralStorage; + } + else if (hashCode == WriteIOPSEphemeralStorage_HASH) + { + return RDSDBMetricName::WriteIOPSEphemeralStorage; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -111,6 +151,22 @@ namespace Aws return "EBSVolumeWriteThroughput"; case RDSDBMetricName::DatabaseConnections: return "DatabaseConnections"; + case RDSDBMetricName::StorageNetworkReceiveThroughput: + return "StorageNetworkReceiveThroughput"; + case RDSDBMetricName::StorageNetworkTransmitThroughput: + return "StorageNetworkTransmitThroughput"; + case RDSDBMetricName::AuroraMemoryHealthState: + return "AuroraMemoryHealthState"; + case RDSDBMetricName::AuroraMemoryNumDeclinedSql: + return "AuroraMemoryNumDeclinedSql"; + case RDSDBMetricName::AuroraMemoryNumKillConnTotal: + return "AuroraMemoryNumKillConnTotal"; + case RDSDBMetricName::AuroraMemoryNumKillQueryTotal: + return "AuroraMemoryNumKillQueryTotal"; + case RDSDBMetricName::ReadIOPSEphemeralStorage: + return "ReadIOPSEphemeralStorage"; + case RDSDBMetricName::WriteIOPSEphemeralStorage: + return "WriteIOPSEphemeralStorage"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSDBRecommendation.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSDBRecommendation.cpp index 0482d68e6c9..d7f4cb3cf90 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSDBRecommendation.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSDBRecommendation.cpp @@ -23,8 +23,11 @@ RDSDBRecommendation::RDSDBRecommendation() : m_accountIdHasBeenSet(false), m_engineHasBeenSet(false), m_engineVersionHasBeenSet(false), + m_promotionTier(0), + m_promotionTierHasBeenSet(false), m_currentDBInstanceClassHasBeenSet(false), m_currentStorageConfigurationHasBeenSet(false), + m_dbClusterIdentifierHasBeenSet(false), m_idle(Idle::NOT_SET), m_idleHasBeenSet(false), m_instanceFinding(RDSInstanceFinding::NOT_SET), @@ -32,6 +35,8 @@ RDSDBRecommendation::RDSDBRecommendation() : m_storageFinding(RDSStorageFinding::NOT_SET), m_storageFindingHasBeenSet(false), m_instanceFindingReasonCodesHasBeenSet(false), + m_currentInstancePerformanceRisk(RDSCurrentInstancePerformanceRisk::NOT_SET), + m_currentInstancePerformanceRiskHasBeenSet(false), m_storageFindingReasonCodesHasBeenSet(false), m_instanceRecommendationOptionsHasBeenSet(false), m_storageRecommendationOptionsHasBeenSet(false), @@ -80,6 +85,13 @@ RDSDBRecommendation& RDSDBRecommendation::operator =(JsonView jsonValue) m_engineVersionHasBeenSet = true; } + if(jsonValue.ValueExists("promotionTier")) + { + m_promotionTier = jsonValue.GetInteger("promotionTier"); + + m_promotionTierHasBeenSet = true; + } + if(jsonValue.ValueExists("currentDBInstanceClass")) { m_currentDBInstanceClass = jsonValue.GetString("currentDBInstanceClass"); @@ -94,6 +106,13 @@ RDSDBRecommendation& RDSDBRecommendation::operator =(JsonView jsonValue) m_currentStorageConfigurationHasBeenSet = true; } + if(jsonValue.ValueExists("dbClusterIdentifier")) + { + m_dbClusterIdentifier = jsonValue.GetString("dbClusterIdentifier"); + + m_dbClusterIdentifierHasBeenSet = true; + } + if(jsonValue.ValueExists("idle")) { m_idle = IdleMapper::GetIdleForName(jsonValue.GetString("idle")); @@ -125,6 +144,13 @@ RDSDBRecommendation& RDSDBRecommendation::operator =(JsonView jsonValue) m_instanceFindingReasonCodesHasBeenSet = true; } + if(jsonValue.ValueExists("currentInstancePerformanceRisk")) + { + m_currentInstancePerformanceRisk = RDSCurrentInstancePerformanceRiskMapper::GetRDSCurrentInstancePerformanceRiskForName(jsonValue.GetString("currentInstancePerformanceRisk")); + + m_currentInstancePerformanceRiskHasBeenSet = true; + } + if(jsonValue.ValueExists("storageFindingReasonCodes")) { Aws::Utils::Array storageFindingReasonCodesJsonList = jsonValue.GetArray("storageFindingReasonCodes"); @@ -227,6 +253,12 @@ JsonValue RDSDBRecommendation::Jsonize() const } + if(m_promotionTierHasBeenSet) + { + payload.WithInteger("promotionTier", m_promotionTier); + + } + if(m_currentDBInstanceClassHasBeenSet) { payload.WithString("currentDBInstanceClass", m_currentDBInstanceClass); @@ -239,6 +271,12 @@ JsonValue RDSDBRecommendation::Jsonize() const } + if(m_dbClusterIdentifierHasBeenSet) + { + payload.WithString("dbClusterIdentifier", m_dbClusterIdentifier); + + } + if(m_idleHasBeenSet) { payload.WithString("idle", IdleMapper::GetNameForIdle(m_idle)); @@ -265,6 +303,11 @@ JsonValue RDSDBRecommendation::Jsonize() const } + if(m_currentInstancePerformanceRiskHasBeenSet) + { + payload.WithString("currentInstancePerformanceRisk", RDSCurrentInstancePerformanceRiskMapper::GetNameForRDSCurrentInstancePerformanceRisk(m_currentInstancePerformanceRisk)); + } + if(m_storageFindingReasonCodesHasBeenSet) { Aws::Utils::Array storageFindingReasonCodesJsonList(m_storageFindingReasonCodes.size()); diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSInstanceFindingReasonCode.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSInstanceFindingReasonCode.cpp index c7909d66ec2..bd696aebac1 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSInstanceFindingReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RDSInstanceFindingReasonCode.cpp @@ -23,12 +23,17 @@ namespace Aws static const int CPUOverprovisioned_HASH = HashingUtils::HashString("CPUOverprovisioned"); static const int NetworkBandwidthOverprovisioned_HASH = HashingUtils::HashString("NetworkBandwidthOverprovisioned"); static const int EBSIOPSOverprovisioned_HASH = HashingUtils::HashString("EBSIOPSOverprovisioned"); + static const int EBSIOPSUnderprovisioned_HASH = HashingUtils::HashString("EBSIOPSUnderprovisioned"); static const int EBSThroughputOverprovisioned_HASH = HashingUtils::HashString("EBSThroughputOverprovisioned"); static const int CPUUnderprovisioned_HASH = HashingUtils::HashString("CPUUnderprovisioned"); static const int NetworkBandwidthUnderprovisioned_HASH = HashingUtils::HashString("NetworkBandwidthUnderprovisioned"); static const int EBSThroughputUnderprovisioned_HASH = HashingUtils::HashString("EBSThroughputUnderprovisioned"); static const int NewGenerationDBInstanceClassAvailable_HASH = HashingUtils::HashString("NewGenerationDBInstanceClassAvailable"); static const int NewEngineVersionAvailable_HASH = HashingUtils::HashString("NewEngineVersionAvailable"); + static const int DBClusterWriterUnderprovisioned_HASH = HashingUtils::HashString("DBClusterWriterUnderprovisioned"); + static const int MemoryUnderprovisioned_HASH = HashingUtils::HashString("MemoryUnderprovisioned"); + static const int InstanceStorageReadIOPSUnderprovisioned_HASH = HashingUtils::HashString("InstanceStorageReadIOPSUnderprovisioned"); + static const int InstanceStorageWriteIOPSUnderprovisioned_HASH = HashingUtils::HashString("InstanceStorageWriteIOPSUnderprovisioned"); RDSInstanceFindingReasonCode GetRDSInstanceFindingReasonCodeForName(const Aws::String& name) @@ -46,6 +51,10 @@ namespace Aws { return RDSInstanceFindingReasonCode::EBSIOPSOverprovisioned; } + else if (hashCode == EBSIOPSUnderprovisioned_HASH) + { + return RDSInstanceFindingReasonCode::EBSIOPSUnderprovisioned; + } else if (hashCode == EBSThroughputOverprovisioned_HASH) { return RDSInstanceFindingReasonCode::EBSThroughputOverprovisioned; @@ -70,6 +79,22 @@ namespace Aws { return RDSInstanceFindingReasonCode::NewEngineVersionAvailable; } + else if (hashCode == DBClusterWriterUnderprovisioned_HASH) + { + return RDSInstanceFindingReasonCode::DBClusterWriterUnderprovisioned; + } + else if (hashCode == MemoryUnderprovisioned_HASH) + { + return RDSInstanceFindingReasonCode::MemoryUnderprovisioned; + } + else if (hashCode == InstanceStorageReadIOPSUnderprovisioned_HASH) + { + return RDSInstanceFindingReasonCode::InstanceStorageReadIOPSUnderprovisioned; + } + else if (hashCode == InstanceStorageWriteIOPSUnderprovisioned_HASH) + { + return RDSInstanceFindingReasonCode::InstanceStorageWriteIOPSUnderprovisioned; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -92,6 +117,8 @@ namespace Aws return "NetworkBandwidthOverprovisioned"; case RDSInstanceFindingReasonCode::EBSIOPSOverprovisioned: return "EBSIOPSOverprovisioned"; + case RDSInstanceFindingReasonCode::EBSIOPSUnderprovisioned: + return "EBSIOPSUnderprovisioned"; case RDSInstanceFindingReasonCode::EBSThroughputOverprovisioned: return "EBSThroughputOverprovisioned"; case RDSInstanceFindingReasonCode::CPUUnderprovisioned: @@ -104,6 +131,14 @@ namespace Aws return "NewGenerationDBInstanceClassAvailable"; case RDSInstanceFindingReasonCode::NewEngineVersionAvailable: return "NewEngineVersionAvailable"; + case RDSInstanceFindingReasonCode::DBClusterWriterUnderprovisioned: + return "DBClusterWriterUnderprovisioned"; + case RDSInstanceFindingReasonCode::MemoryUnderprovisioned: + return "MemoryUnderprovisioned"; + case RDSInstanceFindingReasonCode::InstanceStorageReadIOPSUnderprovisioned: + return "InstanceStorageReadIOPSUnderprovisioned"; + case RDSInstanceFindingReasonCode::InstanceStorageWriteIOPSUnderprovisioned: + return "InstanceStorageWriteIOPSUnderprovisioned"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationSummary.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationSummary.cpp index afb81b2412b..8bf5cdd95c7 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationSummary.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationSummary.cpp @@ -20,10 +20,13 @@ namespace Model RecommendationSummary::RecommendationSummary() : m_summariesHasBeenSet(false), + m_idleSummariesHasBeenSet(false), m_recommendationResourceType(RecommendationSourceType::NOT_SET), m_recommendationResourceTypeHasBeenSet(false), m_accountIdHasBeenSet(false), m_savingsOpportunityHasBeenSet(false), + m_idleSavingsOpportunityHasBeenSet(false), + m_aggregatedSavingsOpportunityHasBeenSet(false), m_currentPerformanceRiskRatingsHasBeenSet(false), m_inferredWorkloadSavingsHasBeenSet(false) { @@ -47,6 +50,16 @@ RecommendationSummary& RecommendationSummary::operator =(JsonView jsonValue) m_summariesHasBeenSet = true; } + if(jsonValue.ValueExists("idleSummaries")) + { + Aws::Utils::Array idleSummariesJsonList = jsonValue.GetArray("idleSummaries"); + for(unsigned idleSummariesIndex = 0; idleSummariesIndex < idleSummariesJsonList.GetLength(); ++idleSummariesIndex) + { + m_idleSummaries.push_back(idleSummariesJsonList[idleSummariesIndex].AsObject()); + } + m_idleSummariesHasBeenSet = true; + } + if(jsonValue.ValueExists("recommendationResourceType")) { m_recommendationResourceType = RecommendationSourceTypeMapper::GetRecommendationSourceTypeForName(jsonValue.GetString("recommendationResourceType")); @@ -68,6 +81,20 @@ RecommendationSummary& RecommendationSummary::operator =(JsonView jsonValue) m_savingsOpportunityHasBeenSet = true; } + if(jsonValue.ValueExists("idleSavingsOpportunity")) + { + m_idleSavingsOpportunity = jsonValue.GetObject("idleSavingsOpportunity"); + + m_idleSavingsOpportunityHasBeenSet = true; + } + + if(jsonValue.ValueExists("aggregatedSavingsOpportunity")) + { + m_aggregatedSavingsOpportunity = jsonValue.GetObject("aggregatedSavingsOpportunity"); + + m_aggregatedSavingsOpportunityHasBeenSet = true; + } + if(jsonValue.ValueExists("currentPerformanceRiskRatings")) { m_currentPerformanceRiskRatings = jsonValue.GetObject("currentPerformanceRiskRatings"); @@ -103,6 +130,17 @@ JsonValue RecommendationSummary::Jsonize() const } + if(m_idleSummariesHasBeenSet) + { + Aws::Utils::Array idleSummariesJsonList(m_idleSummaries.size()); + for(unsigned idleSummariesIndex = 0; idleSummariesIndex < idleSummariesJsonList.GetLength(); ++idleSummariesIndex) + { + idleSummariesJsonList[idleSummariesIndex].AsObject(m_idleSummaries[idleSummariesIndex].Jsonize()); + } + payload.WithArray("idleSummaries", std::move(idleSummariesJsonList)); + + } + if(m_recommendationResourceTypeHasBeenSet) { payload.WithString("recommendationResourceType", RecommendationSourceTypeMapper::GetNameForRecommendationSourceType(m_recommendationResourceType)); @@ -120,6 +158,18 @@ JsonValue RecommendationSummary::Jsonize() const } + if(m_idleSavingsOpportunityHasBeenSet) + { + payload.WithObject("idleSavingsOpportunity", m_idleSavingsOpportunity.Jsonize()); + + } + + if(m_aggregatedSavingsOpportunityHasBeenSet) + { + payload.WithObject("aggregatedSavingsOpportunity", m_aggregatedSavingsOpportunity.Jsonize()); + + } + if(m_currentPerformanceRiskRatingsHasBeenSet) { payload.WithObject("currentPerformanceRiskRatings", m_currentPerformanceRiskRatings.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ResourceType.cpp index e3ebc9e5242..ad71d13f95a 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ResourceType.cpp @@ -28,6 +28,7 @@ namespace Aws static const int EcsService_HASH = HashingUtils::HashString("EcsService"); static const int License_HASH = HashingUtils::HashString("License"); static const int RdsDBInstance_HASH = HashingUtils::HashString("RdsDBInstance"); + static const int Idle_HASH = HashingUtils::HashString("Idle"); ResourceType GetResourceTypeForName(const Aws::String& name) @@ -65,6 +66,10 @@ namespace Aws { return ResourceType::RdsDBInstance; } + else if (hashCode == Idle_HASH) + { + return ResourceType::Idle; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -97,6 +102,8 @@ namespace Aws return "License"; case ResourceType::RdsDBInstance: return "RdsDBInstance"; + case ResourceType::Idle: + return "Idle"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineDetails.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineDetails.h index 7128f7afbcd..3f2a73f83d1 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineDetails.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineDetails.h @@ -99,6 +99,23 @@ namespace Model inline EnabledBaselineDetails& AddParameters(EnabledBaselineParameterSummary&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } ///@} + ///@{ + /** + *

    An ARN that represents the parent EnabledBaseline at the + * Organizational Unit (OU) level, from which the child + * EnabledBaseline inherits its configuration. The value is returned + * by GetEnabledBaseline.

    + */ + inline const Aws::String& GetParentIdentifier() const{ return m_parentIdentifier; } + inline bool ParentIdentifierHasBeenSet() const { return m_parentIdentifierHasBeenSet; } + inline void SetParentIdentifier(const Aws::String& value) { m_parentIdentifierHasBeenSet = true; m_parentIdentifier = value; } + inline void SetParentIdentifier(Aws::String&& value) { m_parentIdentifierHasBeenSet = true; m_parentIdentifier = std::move(value); } + inline void SetParentIdentifier(const char* value) { m_parentIdentifierHasBeenSet = true; m_parentIdentifier.assign(value); } + inline EnabledBaselineDetails& WithParentIdentifier(const Aws::String& value) { SetParentIdentifier(value); return *this;} + inline EnabledBaselineDetails& WithParentIdentifier(Aws::String&& value) { SetParentIdentifier(std::move(value)); return *this;} + inline EnabledBaselineDetails& WithParentIdentifier(const char* value) { SetParentIdentifier(value); return *this;} + ///@} + ///@{ inline const EnablementStatusSummary& GetStatusSummary() const{ return m_statusSummary; } @@ -136,6 +153,9 @@ namespace Model Aws::Vector m_parameters; bool m_parametersHasBeenSet = false; + Aws::String m_parentIdentifier; + bool m_parentIdentifierHasBeenSet = false; + EnablementStatusSummary m_statusSummary; bool m_statusSummaryHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineFilter.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineFilter.h index e6503917d0a..ed1e9876c45 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineFilter.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineFilter.h @@ -56,6 +56,22 @@ namespace Model inline EnabledBaselineFilter& AddBaselineIdentifiers(const char* value) { m_baselineIdentifiersHasBeenSet = true; m_baselineIdentifiers.push_back(value); return *this; } ///@} + ///@{ + /** + *

    An optional filter that sets up a list of parentIdentifiers to + * filter the results of the ListEnabledBaseline output.

    + */ + inline const Aws::Vector& GetParentIdentifiers() const{ return m_parentIdentifiers; } + inline bool ParentIdentifiersHasBeenSet() const { return m_parentIdentifiersHasBeenSet; } + inline void SetParentIdentifiers(const Aws::Vector& value) { m_parentIdentifiersHasBeenSet = true; m_parentIdentifiers = value; } + inline void SetParentIdentifiers(Aws::Vector&& value) { m_parentIdentifiersHasBeenSet = true; m_parentIdentifiers = std::move(value); } + inline EnabledBaselineFilter& WithParentIdentifiers(const Aws::Vector& value) { SetParentIdentifiers(value); return *this;} + inline EnabledBaselineFilter& WithParentIdentifiers(Aws::Vector&& value) { SetParentIdentifiers(std::move(value)); return *this;} + inline EnabledBaselineFilter& AddParentIdentifiers(const Aws::String& value) { m_parentIdentifiersHasBeenSet = true; m_parentIdentifiers.push_back(value); return *this; } + inline EnabledBaselineFilter& AddParentIdentifiers(Aws::String&& value) { m_parentIdentifiersHasBeenSet = true; m_parentIdentifiers.push_back(std::move(value)); return *this; } + inline EnabledBaselineFilter& AddParentIdentifiers(const char* value) { m_parentIdentifiersHasBeenSet = true; m_parentIdentifiers.push_back(value); return *this; } + ///@} + ///@{ /** *

    Identifiers for the targets of the Baseline filter @@ -76,6 +92,9 @@ namespace Model Aws::Vector m_baselineIdentifiers; bool m_baselineIdentifiersHasBeenSet = false; + Aws::Vector m_parentIdentifiers; + bool m_parentIdentifiersHasBeenSet = false; + Aws::Vector m_targetIdentifiers; bool m_targetIdentifiersHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineSummary.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineSummary.h index ef3b68be9c3..249ab046a0d 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineSummary.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledBaselineSummary.h @@ -82,6 +82,21 @@ namespace Model inline EnabledBaselineSummary& WithBaselineVersion(const char* value) { SetBaselineVersion(value); return *this;} ///@} + ///@{ + /** + *

    An ARN that represents an object returned by + * ListEnabledBaseline, to describe an enabled baseline.

    + */ + inline const Aws::String& GetParentIdentifier() const{ return m_parentIdentifier; } + inline bool ParentIdentifierHasBeenSet() const { return m_parentIdentifierHasBeenSet; } + inline void SetParentIdentifier(const Aws::String& value) { m_parentIdentifierHasBeenSet = true; m_parentIdentifier = value; } + inline void SetParentIdentifier(Aws::String&& value) { m_parentIdentifierHasBeenSet = true; m_parentIdentifier = std::move(value); } + inline void SetParentIdentifier(const char* value) { m_parentIdentifierHasBeenSet = true; m_parentIdentifier.assign(value); } + inline EnabledBaselineSummary& WithParentIdentifier(const Aws::String& value) { SetParentIdentifier(value); return *this;} + inline EnabledBaselineSummary& WithParentIdentifier(Aws::String&& value) { SetParentIdentifier(std::move(value)); return *this;} + inline EnabledBaselineSummary& WithParentIdentifier(const char* value) { SetParentIdentifier(value); return *this;} + ///@} + ///@{ inline const EnablementStatusSummary& GetStatusSummary() const{ return m_statusSummary; } @@ -116,6 +131,9 @@ namespace Model Aws::String m_baselineVersion; bool m_baselineVersionHasBeenSet = false; + Aws::String m_parentIdentifier; + bool m_parentIdentifierHasBeenSet = false; + EnablementStatusSummary m_statusSummary; bool m_statusSummaryHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListEnabledBaselinesRequest.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListEnabledBaselinesRequest.h index 3ba4bd6981c..12f2427544f 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListEnabledBaselinesRequest.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListEnabledBaselinesRequest.h @@ -47,6 +47,17 @@ namespace Model inline ListEnabledBaselinesRequest& WithFilter(EnabledBaselineFilter&& value) { SetFilter(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    A value that can be set to include the child enabled baselines in responses. + * The default value is false.

    + */ + inline bool GetIncludeChildren() const{ return m_includeChildren; } + inline bool IncludeChildrenHasBeenSet() const { return m_includeChildrenHasBeenSet; } + inline void SetIncludeChildren(bool value) { m_includeChildrenHasBeenSet = true; m_includeChildren = value; } + inline ListEnabledBaselinesRequest& WithIncludeChildren(bool value) { SetIncludeChildren(value); return *this;} + ///@} + ///@{ /** *

    The maximum number of results to be shown.

    @@ -75,6 +86,9 @@ namespace Model EnabledBaselineFilter m_filter; bool m_filterHasBeenSet = false; + bool m_includeChildren; + bool m_includeChildrenHasBeenSet = false; + int m_maxResults; bool m_maxResultsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineDetails.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineDetails.cpp index de4e22d60de..c3e12c70b18 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineDetails.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineDetails.cpp @@ -23,6 +23,7 @@ EnabledBaselineDetails::EnabledBaselineDetails() : m_baselineIdentifierHasBeenSet(false), m_baselineVersionHasBeenSet(false), m_parametersHasBeenSet(false), + m_parentIdentifierHasBeenSet(false), m_statusSummaryHasBeenSet(false), m_targetIdentifierHasBeenSet(false) { @@ -67,6 +68,13 @@ EnabledBaselineDetails& EnabledBaselineDetails::operator =(JsonView jsonValue) m_parametersHasBeenSet = true; } + if(jsonValue.ValueExists("parentIdentifier")) + { + m_parentIdentifier = jsonValue.GetString("parentIdentifier"); + + m_parentIdentifierHasBeenSet = true; + } + if(jsonValue.ValueExists("statusSummary")) { m_statusSummary = jsonValue.GetObject("statusSummary"); @@ -117,6 +125,12 @@ JsonValue EnabledBaselineDetails::Jsonize() const } + if(m_parentIdentifierHasBeenSet) + { + payload.WithString("parentIdentifier", m_parentIdentifier); + + } + if(m_statusSummaryHasBeenSet) { payload.WithObject("statusSummary", m_statusSummary.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineFilter.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineFilter.cpp index 004e495c684..7420f8a1e6b 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineFilter.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineFilter.cpp @@ -20,6 +20,7 @@ namespace Model EnabledBaselineFilter::EnabledBaselineFilter() : m_baselineIdentifiersHasBeenSet(false), + m_parentIdentifiersHasBeenSet(false), m_targetIdentifiersHasBeenSet(false) { } @@ -42,6 +43,16 @@ EnabledBaselineFilter& EnabledBaselineFilter::operator =(JsonView jsonValue) m_baselineIdentifiersHasBeenSet = true; } + if(jsonValue.ValueExists("parentIdentifiers")) + { + Aws::Utils::Array parentIdentifiersJsonList = jsonValue.GetArray("parentIdentifiers"); + for(unsigned parentIdentifiersIndex = 0; parentIdentifiersIndex < parentIdentifiersJsonList.GetLength(); ++parentIdentifiersIndex) + { + m_parentIdentifiers.push_back(parentIdentifiersJsonList[parentIdentifiersIndex].AsString()); + } + m_parentIdentifiersHasBeenSet = true; + } + if(jsonValue.ValueExists("targetIdentifiers")) { Aws::Utils::Array targetIdentifiersJsonList = jsonValue.GetArray("targetIdentifiers"); @@ -70,6 +81,17 @@ JsonValue EnabledBaselineFilter::Jsonize() const } + if(m_parentIdentifiersHasBeenSet) + { + Aws::Utils::Array parentIdentifiersJsonList(m_parentIdentifiers.size()); + for(unsigned parentIdentifiersIndex = 0; parentIdentifiersIndex < parentIdentifiersJsonList.GetLength(); ++parentIdentifiersIndex) + { + parentIdentifiersJsonList[parentIdentifiersIndex].AsString(m_parentIdentifiers[parentIdentifiersIndex]); + } + payload.WithArray("parentIdentifiers", std::move(parentIdentifiersJsonList)); + + } + if(m_targetIdentifiersHasBeenSet) { Aws::Utils::Array targetIdentifiersJsonList(m_targetIdentifiers.size()); diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineSummary.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineSummary.cpp index 2f6cf588c79..49227be3ec3 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineSummary.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/EnabledBaselineSummary.cpp @@ -22,6 +22,7 @@ EnabledBaselineSummary::EnabledBaselineSummary() : m_arnHasBeenSet(false), m_baselineIdentifierHasBeenSet(false), m_baselineVersionHasBeenSet(false), + m_parentIdentifierHasBeenSet(false), m_statusSummaryHasBeenSet(false), m_targetIdentifierHasBeenSet(false) { @@ -56,6 +57,13 @@ EnabledBaselineSummary& EnabledBaselineSummary::operator =(JsonView jsonValue) m_baselineVersionHasBeenSet = true; } + if(jsonValue.ValueExists("parentIdentifier")) + { + m_parentIdentifier = jsonValue.GetString("parentIdentifier"); + + m_parentIdentifierHasBeenSet = true; + } + if(jsonValue.ValueExists("statusSummary")) { m_statusSummary = jsonValue.GetObject("statusSummary"); @@ -95,6 +103,12 @@ JsonValue EnabledBaselineSummary::Jsonize() const } + if(m_parentIdentifierHasBeenSet) + { + payload.WithString("parentIdentifier", m_parentIdentifier); + + } + if(m_statusSummaryHasBeenSet) { payload.WithObject("statusSummary", m_statusSummary.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/ListEnabledBaselinesRequest.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/ListEnabledBaselinesRequest.cpp index ab6ff0e11b6..731ffec9d11 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/ListEnabledBaselinesRequest.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/ListEnabledBaselinesRequest.cpp @@ -14,6 +14,8 @@ using namespace Aws::Utils; ListEnabledBaselinesRequest::ListEnabledBaselinesRequest() : m_filterHasBeenSet(false), + m_includeChildren(false), + m_includeChildrenHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false) @@ -30,6 +32,12 @@ Aws::String ListEnabledBaselinesRequest::SerializePayload() const } + if(m_includeChildrenHasBeenSet) + { + payload.WithBool("includeChildren", m_includeChildren); + + } + if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); diff --git a/generated/src/aws-cpp-sdk-cost-optimization-hub/include/aws/cost-optimization-hub/model/ActionType.h b/generated/src/aws-cpp-sdk-cost-optimization-hub/include/aws/cost-optimization-hub/model/ActionType.h index 44d510fa656..7f015c785bf 100644 --- a/generated/src/aws-cpp-sdk-cost-optimization-hub/include/aws/cost-optimization-hub/model/ActionType.h +++ b/generated/src/aws-cpp-sdk-cost-optimization-hub/include/aws/cost-optimization-hub/model/ActionType.h @@ -21,7 +21,8 @@ namespace Model Upgrade, PurchaseSavingsPlans, PurchaseReservedInstances, - MigrateToGraviton + MigrateToGraviton, + Delete }; namespace ActionTypeMapper diff --git a/generated/src/aws-cpp-sdk-cost-optimization-hub/source/model/ActionType.cpp b/generated/src/aws-cpp-sdk-cost-optimization-hub/source/model/ActionType.cpp index 992e17649bb..5a0cc35ee51 100644 --- a/generated/src/aws-cpp-sdk-cost-optimization-hub/source/model/ActionType.cpp +++ b/generated/src/aws-cpp-sdk-cost-optimization-hub/source/model/ActionType.cpp @@ -26,6 +26,7 @@ namespace Aws static const int PurchaseSavingsPlans_HASH = HashingUtils::HashString("PurchaseSavingsPlans"); static const int PurchaseReservedInstances_HASH = HashingUtils::HashString("PurchaseReservedInstances"); static const int MigrateToGraviton_HASH = HashingUtils::HashString("MigrateToGraviton"); + static const int Delete_HASH = HashingUtils::HashString("Delete"); ActionType GetActionTypeForName(const Aws::String& name) @@ -55,6 +56,10 @@ namespace Aws { return ActionType::MigrateToGraviton; } + else if (hashCode == Delete_HASH) + { + return ActionType::Delete; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -83,6 +88,8 @@ namespace Aws return "PurchaseReservedInstances"; case ActionType::MigrateToGraviton: return "MigrateToGraviton"; + case ActionType::Delete: + return "Delete"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/DataZoneClient.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/DataZoneClient.h index abaa8483e62..a8adb9b09d3 100644 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/DataZoneClient.h +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/DataZoneClient.h @@ -741,6 +741,38 @@ namespace DataZone return SubmitAsync(&DataZoneClient::CreateProjectMembership, request, handler, context); } + /** + *

    Creates a rule in Amazon DataZone. A rule is a formal agreement that enforces + * specific requirements across user workflows (e.g., publishing assets to the + * catalog, requesting subscriptions, creating projects) within the Amazon DataZone + * data portal. These rules help maintain consistency, ensure compliance, and + * uphold governance standards in data management processes. For instance, a + * metadata enforcement rule can specify the required information for creating a + * subscription request or publishing a data asset to the catalog, ensuring + * alignment with organizational standards.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateRuleOutcome CreateRule(const Model::CreateRuleRequest& request) const; + + /** + * A Callable wrapper for CreateRule that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateRuleOutcomeCallable CreateRuleCallable(const CreateRuleRequestT& request) const + { + return SubmitCallable(&DataZoneClient::CreateRule, request); + } + + /** + * An Async wrapper for CreateRule that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateRuleAsync(const CreateRuleRequestT& request, const CreateRuleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataZoneClient::CreateRule, request, handler, context); + } + /** *

    Creates a subsscription grant in Amazon DataZone.

    See Also:

    * Deletes a rule in Amazon DataZone. A rule is a formal agreement that enforces + * specific requirements across user workflows (e.g., publishing assets to the + * catalog, requesting subscriptions, creating projects) within the Amazon DataZone + * data portal. These rules help maintain consistency, ensure compliance, and + * uphold governance standards in data management processes. For instance, a + * metadata enforcement rule can specify the required information for creating a + * subscription request or publishing a data asset to the catalog, ensuring + * alignment with organizational standards.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteRuleOutcome DeleteRule(const Model::DeleteRuleRequest& request) const; + + /** + * A Callable wrapper for DeleteRule that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteRuleOutcomeCallable DeleteRuleCallable(const DeleteRuleRequestT& request) const + { + return SubmitCallable(&DataZoneClient::DeleteRule, request); + } + + /** + * An Async wrapper for DeleteRule that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteRuleAsync(const DeleteRuleRequestT& request, const DeleteRuleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataZoneClient::DeleteRule, request, handler, context); + } + /** *

    Deletes and subscription grant in Amazon DataZone.

    See Also:

    * Gets the details of a rule in Amazon DataZone. A rule is a formal agreement + * that enforces specific requirements across user workflows (e.g., publishing + * assets to the catalog, requesting subscriptions, creating projects) within the + * Amazon DataZone data portal. These rules help maintain consistency, ensure + * compliance, and uphold governance standards in data management processes. For + * instance, a metadata enforcement rule can specify the required information for + * creating a subscription request or publishing a data asset to the catalog, + * ensuring alignment with organizational standards.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetRuleOutcome GetRule(const Model::GetRuleRequest& request) const; + + /** + * A Callable wrapper for GetRule that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetRuleOutcomeCallable GetRuleCallable(const GetRuleRequestT& request) const + { + return SubmitCallable(&DataZoneClient::GetRule, request); + } + + /** + * An Async wrapper for GetRule that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetRuleAsync(const GetRuleRequestT& request, const GetRuleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataZoneClient::GetRule, request, handler, context); + } + /** *

    Gets a subscription in Amazon DataZone.

    See Also:

    AWS @@ -2644,6 +2740,38 @@ namespace DataZone return SubmitAsync(&DataZoneClient::ListProjects, request, handler, context); } + /** + *

    Lists existing rules. In Amazon DataZone, a rule is a formal agreement that + * enforces specific requirements across user workflows (e.g., publishing assets to + * the catalog, requesting subscriptions, creating projects) within the Amazon + * DataZone data portal. These rules help maintain consistency, ensure compliance, + * and uphold governance standards in data management processes. For instance, a + * metadata enforcement rule can specify the required information for creating a + * subscription request or publishing a data asset to the catalog, ensuring + * alignment with organizational standards.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListRulesOutcome ListRules(const Model::ListRulesRequest& request) const; + + /** + * A Callable wrapper for ListRules that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListRulesOutcomeCallable ListRulesCallable(const ListRulesRequestT& request) const + { + return SubmitCallable(&DataZoneClient::ListRules, request); + } + + /** + * An Async wrapper for ListRules that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListRulesAsync(const ListRulesRequestT& request, const ListRulesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataZoneClient::ListRules, request, handler, context); + } + /** *

    Lists subscription grants.

    See Also:

    AWS @@ -3508,6 +3636,38 @@ namespace DataZone return SubmitAsync(&DataZoneClient::UpdateProject, request, handler, context); } + /** + *

    Updates a rule. In Amazon DataZone, a rule is a formal agreement that + * enforces specific requirements across user workflows (e.g., publishing assets to + * the catalog, requesting subscriptions, creating projects) within the Amazon + * DataZone data portal. These rules help maintain consistency, ensure compliance, + * and uphold governance standards in data management processes. For instance, a + * metadata enforcement rule can specify the required information for creating a + * subscription request or publishing a data asset to the catalog, ensuring + * alignment with organizational standards.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateRuleOutcome UpdateRule(const Model::UpdateRuleRequest& request) const; + + /** + * A Callable wrapper for UpdateRule that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateRuleOutcomeCallable UpdateRuleCallable(const UpdateRuleRequestT& request) const + { + return SubmitCallable(&DataZoneClient::UpdateRule, request); + } + + /** + * An Async wrapper for UpdateRule that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateRuleAsync(const UpdateRuleRequestT& request, const UpdateRuleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataZoneClient::UpdateRule, request, handler, context); + } + /** *

    Updates the status of the specified subscription grant status in Amazon * DataZone.

    See Also:

    #include #include +#include #include #include #include @@ -61,6 +62,7 @@ #include #include #include +#include #include #include #include @@ -87,6 +89,7 @@ #include #include #include +#include #include #include #include @@ -113,6 +116,7 @@ #include #include #include +#include #include #include #include @@ -147,6 +151,7 @@ #include #include #include +#include #include #include #include @@ -219,6 +224,7 @@ namespace Aws class CreateListingChangeSetRequest; class CreateProjectRequest; class CreateProjectMembershipRequest; + class CreateRuleRequest; class CreateSubscriptionGrantRequest; class CreateSubscriptionRequestRequest; class CreateSubscriptionTargetRequest; @@ -240,6 +246,7 @@ namespace Aws class DeleteListingRequest; class DeleteProjectRequest; class DeleteProjectMembershipRequest; + class DeleteRuleRequest; class DeleteSubscriptionGrantRequest; class DeleteSubscriptionRequestRequest; class DeleteSubscriptionTargetRequest; @@ -268,6 +275,7 @@ namespace Aws class GetListingRequest; class GetMetadataGenerationRunRequest; class GetProjectRequest; + class GetRuleRequest; class GetSubscriptionRequest; class GetSubscriptionGrantRequest; class GetSubscriptionRequestDetailsRequest; @@ -294,6 +302,7 @@ namespace Aws class ListPolicyGrantsRequest; class ListProjectMembershipsRequest; class ListProjectsRequest; + class ListRulesRequest; class ListSubscriptionGrantsRequest; class ListSubscriptionRequestsRequest; class ListSubscriptionTargetsRequest; @@ -328,6 +337,7 @@ namespace Aws class UpdateGlossaryTermRequest; class UpdateGroupProfileRequest; class UpdateProjectRequest; + class UpdateRuleRequest; class UpdateSubscriptionGrantStatusRequest; class UpdateSubscriptionRequestRequest; class UpdateSubscriptionTargetRequest; @@ -361,6 +371,7 @@ namespace Aws typedef Aws::Utils::Outcome CreateListingChangeSetOutcome; typedef Aws::Utils::Outcome CreateProjectOutcome; typedef Aws::Utils::Outcome CreateProjectMembershipOutcome; + typedef Aws::Utils::Outcome CreateRuleOutcome; typedef Aws::Utils::Outcome CreateSubscriptionGrantOutcome; typedef Aws::Utils::Outcome CreateSubscriptionRequestOutcome; typedef Aws::Utils::Outcome CreateSubscriptionTargetOutcome; @@ -382,6 +393,7 @@ namespace Aws typedef Aws::Utils::Outcome DeleteListingOutcome; typedef Aws::Utils::Outcome DeleteProjectOutcome; typedef Aws::Utils::Outcome DeleteProjectMembershipOutcome; + typedef Aws::Utils::Outcome DeleteRuleOutcome; typedef Aws::Utils::Outcome DeleteSubscriptionGrantOutcome; typedef Aws::Utils::Outcome DeleteSubscriptionRequestOutcome; typedef Aws::Utils::Outcome DeleteSubscriptionTargetOutcome; @@ -410,6 +422,7 @@ namespace Aws typedef Aws::Utils::Outcome GetListingOutcome; typedef Aws::Utils::Outcome GetMetadataGenerationRunOutcome; typedef Aws::Utils::Outcome GetProjectOutcome; + typedef Aws::Utils::Outcome GetRuleOutcome; typedef Aws::Utils::Outcome GetSubscriptionOutcome; typedef Aws::Utils::Outcome GetSubscriptionGrantOutcome; typedef Aws::Utils::Outcome GetSubscriptionRequestDetailsOutcome; @@ -436,6 +449,7 @@ namespace Aws typedef Aws::Utils::Outcome ListPolicyGrantsOutcome; typedef Aws::Utils::Outcome ListProjectMembershipsOutcome; typedef Aws::Utils::Outcome ListProjectsOutcome; + typedef Aws::Utils::Outcome ListRulesOutcome; typedef Aws::Utils::Outcome ListSubscriptionGrantsOutcome; typedef Aws::Utils::Outcome ListSubscriptionRequestsOutcome; typedef Aws::Utils::Outcome ListSubscriptionTargetsOutcome; @@ -470,6 +484,7 @@ namespace Aws typedef Aws::Utils::Outcome UpdateGlossaryTermOutcome; typedef Aws::Utils::Outcome UpdateGroupProfileOutcome; typedef Aws::Utils::Outcome UpdateProjectOutcome; + typedef Aws::Utils::Outcome UpdateRuleOutcome; typedef Aws::Utils::Outcome UpdateSubscriptionGrantStatusOutcome; typedef Aws::Utils::Outcome UpdateSubscriptionRequestOutcome; typedef Aws::Utils::Outcome UpdateSubscriptionTargetOutcome; @@ -503,6 +518,7 @@ namespace Aws typedef std::future CreateListingChangeSetOutcomeCallable; typedef std::future CreateProjectOutcomeCallable; typedef std::future CreateProjectMembershipOutcomeCallable; + typedef std::future CreateRuleOutcomeCallable; typedef std::future CreateSubscriptionGrantOutcomeCallable; typedef std::future CreateSubscriptionRequestOutcomeCallable; typedef std::future CreateSubscriptionTargetOutcomeCallable; @@ -524,6 +540,7 @@ namespace Aws typedef std::future DeleteListingOutcomeCallable; typedef std::future DeleteProjectOutcomeCallable; typedef std::future DeleteProjectMembershipOutcomeCallable; + typedef std::future DeleteRuleOutcomeCallable; typedef std::future DeleteSubscriptionGrantOutcomeCallable; typedef std::future DeleteSubscriptionRequestOutcomeCallable; typedef std::future DeleteSubscriptionTargetOutcomeCallable; @@ -552,6 +569,7 @@ namespace Aws typedef std::future GetListingOutcomeCallable; typedef std::future GetMetadataGenerationRunOutcomeCallable; typedef std::future GetProjectOutcomeCallable; + typedef std::future GetRuleOutcomeCallable; typedef std::future GetSubscriptionOutcomeCallable; typedef std::future GetSubscriptionGrantOutcomeCallable; typedef std::future GetSubscriptionRequestDetailsOutcomeCallable; @@ -578,6 +596,7 @@ namespace Aws typedef std::future ListPolicyGrantsOutcomeCallable; typedef std::future ListProjectMembershipsOutcomeCallable; typedef std::future ListProjectsOutcomeCallable; + typedef std::future ListRulesOutcomeCallable; typedef std::future ListSubscriptionGrantsOutcomeCallable; typedef std::future ListSubscriptionRequestsOutcomeCallable; typedef std::future ListSubscriptionTargetsOutcomeCallable; @@ -612,6 +631,7 @@ namespace Aws typedef std::future UpdateGlossaryTermOutcomeCallable; typedef std::future UpdateGroupProfileOutcomeCallable; typedef std::future UpdateProjectOutcomeCallable; + typedef std::future UpdateRuleOutcomeCallable; typedef std::future UpdateSubscriptionGrantStatusOutcomeCallable; typedef std::future UpdateSubscriptionRequestOutcomeCallable; typedef std::future UpdateSubscriptionTargetOutcomeCallable; @@ -648,6 +668,7 @@ namespace Aws typedef std::function&) > CreateListingChangeSetResponseReceivedHandler; typedef std::function&) > CreateProjectResponseReceivedHandler; typedef std::function&) > CreateProjectMembershipResponseReceivedHandler; + typedef std::function&) > CreateRuleResponseReceivedHandler; typedef std::function&) > CreateSubscriptionGrantResponseReceivedHandler; typedef std::function&) > CreateSubscriptionRequestResponseReceivedHandler; typedef std::function&) > CreateSubscriptionTargetResponseReceivedHandler; @@ -669,6 +690,7 @@ namespace Aws typedef std::function&) > DeleteListingResponseReceivedHandler; typedef std::function&) > DeleteProjectResponseReceivedHandler; typedef std::function&) > DeleteProjectMembershipResponseReceivedHandler; + typedef std::function&) > DeleteRuleResponseReceivedHandler; typedef std::function&) > DeleteSubscriptionGrantResponseReceivedHandler; typedef std::function&) > DeleteSubscriptionRequestResponseReceivedHandler; typedef std::function&) > DeleteSubscriptionTargetResponseReceivedHandler; @@ -697,6 +719,7 @@ namespace Aws typedef std::function&) > GetListingResponseReceivedHandler; typedef std::function&) > GetMetadataGenerationRunResponseReceivedHandler; typedef std::function&) > GetProjectResponseReceivedHandler; + typedef std::function&) > GetRuleResponseReceivedHandler; typedef std::function&) > GetSubscriptionResponseReceivedHandler; typedef std::function&) > GetSubscriptionGrantResponseReceivedHandler; typedef std::function&) > GetSubscriptionRequestDetailsResponseReceivedHandler; @@ -723,6 +746,7 @@ namespace Aws typedef std::function&) > ListPolicyGrantsResponseReceivedHandler; typedef std::function&) > ListProjectMembershipsResponseReceivedHandler; typedef std::function&) > ListProjectsResponseReceivedHandler; + typedef std::function&) > ListRulesResponseReceivedHandler; typedef std::function&) > ListSubscriptionGrantsResponseReceivedHandler; typedef std::function&) > ListSubscriptionRequestsResponseReceivedHandler; typedef std::function&) > ListSubscriptionTargetsResponseReceivedHandler; @@ -757,6 +781,7 @@ namespace Aws typedef std::function&) > UpdateGlossaryTermResponseReceivedHandler; typedef std::function&) > UpdateGroupProfileResponseReceivedHandler; typedef std::function&) > UpdateProjectResponseReceivedHandler; + typedef std::function&) > UpdateRuleResponseReceivedHandler; typedef std::function&) > UpdateSubscriptionGrantStatusResponseReceivedHandler; typedef std::function&) > UpdateSubscriptionRequestResponseReceivedHandler; typedef std::function&) > UpdateSubscriptionTargetResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/AcceptSubscriptionRequestResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/AcceptSubscriptionRequestResult.h index 632b99d0b95..5f6405fad76 100644 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/AcceptSubscriptionRequestResult.h +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/AcceptSubscriptionRequestResult.h @@ -7,8 +7,9 @@ #include #include #include -#include #include +#include +#include #include #include #include @@ -89,6 +90,19 @@ namespace Model inline AcceptSubscriptionRequestResult& WithDomainId(const char* value) { SetDomainId(value); return *this;} ///@} + ///@{ + /** + *

    The ID of the existing subscription.

    + */ + inline const Aws::String& GetExistingSubscriptionId() const{ return m_existingSubscriptionId; } + inline void SetExistingSubscriptionId(const Aws::String& value) { m_existingSubscriptionId = value; } + inline void SetExistingSubscriptionId(Aws::String&& value) { m_existingSubscriptionId = std::move(value); } + inline void SetExistingSubscriptionId(const char* value) { m_existingSubscriptionId.assign(value); } + inline AcceptSubscriptionRequestResult& WithExistingSubscriptionId(const Aws::String& value) { SetExistingSubscriptionId(value); return *this;} + inline AcceptSubscriptionRequestResult& WithExistingSubscriptionId(Aws::String&& value) { SetExistingSubscriptionId(std::move(value)); return *this;} + inline AcceptSubscriptionRequestResult& WithExistingSubscriptionId(const char* value) { SetExistingSubscriptionId(value); return *this;} + ///@} + ///@{ /** *

    The identifier of the subscription request.

    @@ -102,6 +116,19 @@ namespace Model inline AcceptSubscriptionRequestResult& WithId(const char* value) { SetId(value); return *this;} ///@} + ///@{ + /** + *

    The metadata form in the subscription request.

    + */ + inline const Aws::Vector& GetMetadataForms() const{ return m_metadataForms; } + inline void SetMetadataForms(const Aws::Vector& value) { m_metadataForms = value; } + inline void SetMetadataForms(Aws::Vector&& value) { m_metadataForms = std::move(value); } + inline AcceptSubscriptionRequestResult& WithMetadataForms(const Aws::Vector& value) { SetMetadataForms(value); return *this;} + inline AcceptSubscriptionRequestResult& WithMetadataForms(Aws::Vector&& value) { SetMetadataForms(std::move(value)); return *this;} + inline AcceptSubscriptionRequestResult& AddMetadataForms(const FormOutput& value) { m_metadataForms.push_back(value); return *this; } + inline AcceptSubscriptionRequestResult& AddMetadataForms(FormOutput&& value) { m_metadataForms.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    Specifies the reason for requesting a subscription to the asset.

    @@ -211,8 +238,12 @@ namespace Model Aws::String m_domainId; + Aws::String m_existingSubscriptionId; + Aws::String m_id; + Aws::Vector m_metadataForms; + Aws::String m_requestReason; Aws::String m_reviewerId; diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/AssetTypesForRule.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/AssetTypesForRule.h new file mode 100644 index 00000000000..7267c7a07d9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/AssetTypesForRule.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 DataZone +{ +namespace Model +{ + + /** + *

    The asset type for the rule details.

    See Also:

    AWS + * API Reference

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

    The selection mode for the rule.

    + */ + inline const RuleScopeSelectionMode& GetSelectionMode() const{ return m_selectionMode; } + inline bool SelectionModeHasBeenSet() const { return m_selectionModeHasBeenSet; } + inline void SetSelectionMode(const RuleScopeSelectionMode& value) { m_selectionModeHasBeenSet = true; m_selectionMode = value; } + inline void SetSelectionMode(RuleScopeSelectionMode&& value) { m_selectionModeHasBeenSet = true; m_selectionMode = std::move(value); } + inline AssetTypesForRule& WithSelectionMode(const RuleScopeSelectionMode& value) { SetSelectionMode(value); return *this;} + inline AssetTypesForRule& WithSelectionMode(RuleScopeSelectionMode&& value) { SetSelectionMode(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The specific asset types that are included in the rule.

    + */ + inline const Aws::Vector& GetSpecificAssetTypes() const{ return m_specificAssetTypes; } + inline bool SpecificAssetTypesHasBeenSet() const { return m_specificAssetTypesHasBeenSet; } + inline void SetSpecificAssetTypes(const Aws::Vector& value) { m_specificAssetTypesHasBeenSet = true; m_specificAssetTypes = value; } + inline void SetSpecificAssetTypes(Aws::Vector&& value) { m_specificAssetTypesHasBeenSet = true; m_specificAssetTypes = std::move(value); } + inline AssetTypesForRule& WithSpecificAssetTypes(const Aws::Vector& value) { SetSpecificAssetTypes(value); return *this;} + inline AssetTypesForRule& WithSpecificAssetTypes(Aws::Vector&& value) { SetSpecificAssetTypes(std::move(value)); return *this;} + inline AssetTypesForRule& AddSpecificAssetTypes(const Aws::String& value) { m_specificAssetTypesHasBeenSet = true; m_specificAssetTypes.push_back(value); return *this; } + inline AssetTypesForRule& AddSpecificAssetTypes(Aws::String&& value) { m_specificAssetTypesHasBeenSet = true; m_specificAssetTypes.push_back(std::move(value)); return *this; } + inline AssetTypesForRule& AddSpecificAssetTypes(const char* value) { m_specificAssetTypesHasBeenSet = true; m_specificAssetTypes.push_back(value); return *this; } + ///@} + private: + + RuleScopeSelectionMode m_selectionMode; + bool m_selectionModeHasBeenSet = false; + + Aws::Vector m_specificAssetTypes; + bool m_specificAssetTypesHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateRuleRequest.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateRuleRequest.h new file mode 100644 index 00000000000..94abb708c86 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateRuleRequest.h @@ -0,0 +1,173 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace DataZone +{ +namespace Model +{ + + /** + */ + class CreateRuleRequest : public DataZoneRequest + { + public: + AWS_DATAZONE_API CreateRuleRequest(); + + // 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 "CreateRule"; } + + AWS_DATAZONE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The action of the rule.

    + */ + inline const RuleAction& GetAction() const{ return m_action; } + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; } + inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + inline CreateRuleRequest& WithAction(const RuleAction& value) { SetAction(value); return *this;} + inline CreateRuleRequest& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    A unique, case-sensitive identifier that is provided to ensure the + * idempotency of the request.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline CreateRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline CreateRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline CreateRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the rule.

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

    The detail of the rule.

    + */ + inline const RuleDetail& GetDetail() const{ return m_detail; } + inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; } + inline void SetDetail(const RuleDetail& value) { m_detailHasBeenSet = true; m_detail = value; } + inline void SetDetail(RuleDetail&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); } + inline CreateRuleRequest& WithDetail(const RuleDetail& value) { SetDetail(value); return *this;} + inline CreateRuleRequest& WithDetail(RuleDetail&& value) { SetDetail(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the domain where the rule is created.

    + */ + inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; } + inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; } + inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; } + inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); } + inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); } + inline CreateRuleRequest& WithDomainIdentifier(const Aws::String& value) { SetDomainIdentifier(value); return *this;} + inline CreateRuleRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;} + inline CreateRuleRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the rule.

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

    The scope of the rule.

    + */ + inline const RuleScope& GetScope() const{ return m_scope; } + inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } + inline void SetScope(const RuleScope& value) { m_scopeHasBeenSet = true; m_scope = value; } + inline void SetScope(RuleScope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } + inline CreateRuleRequest& WithScope(const RuleScope& value) { SetScope(value); return *this;} + inline CreateRuleRequest& WithScope(RuleScope&& value) { SetScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The target of the rule.

    + */ + inline const RuleTarget& GetTarget() const{ return m_target; } + inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } + inline void SetTarget(const RuleTarget& value) { m_targetHasBeenSet = true; m_target = value; } + inline void SetTarget(RuleTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } + inline CreateRuleRequest& WithTarget(const RuleTarget& value) { SetTarget(value); return *this;} + inline CreateRuleRequest& WithTarget(RuleTarget&& value) { SetTarget(std::move(value)); return *this;} + ///@} + private: + + RuleAction m_action; + bool m_actionHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + RuleDetail m_detail; + bool m_detailHasBeenSet = false; + + Aws::String m_domainIdentifier; + bool m_domainIdentifierHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + RuleScope m_scope; + bool m_scopeHasBeenSet = false; + + RuleTarget m_target; + bool m_targetHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateRuleResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateRuleResult.h new file mode 100644 index 00000000000..adf02606f4b --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateRuleResult.h @@ -0,0 +1,210 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + class CreateRuleResult + { + public: + AWS_DATAZONE_API CreateRuleResult(); + AWS_DATAZONE_API CreateRuleResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAZONE_API CreateRuleResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The action of the rule.

    + */ + inline const RuleAction& GetAction() const{ return m_action; } + inline void SetAction(const RuleAction& value) { m_action = value; } + inline void SetAction(RuleAction&& value) { m_action = std::move(value); } + inline CreateRuleResult& WithAction(const RuleAction& value) { SetAction(value); return *this;} + inline CreateRuleResult& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp at which the rule is created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline CreateRuleResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline CreateRuleResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The user who creates the rule.

    + */ + inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } + inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; } + inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); } + inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); } + inline CreateRuleResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} + inline CreateRuleResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} + inline CreateRuleResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the rule.

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

    The detail of the rule.

    + */ + inline const RuleDetail& GetDetail() const{ return m_detail; } + inline void SetDetail(const RuleDetail& value) { m_detail = value; } + inline void SetDetail(RuleDetail&& value) { m_detail = std::move(value); } + inline CreateRuleResult& WithDetail(const RuleDetail& value) { SetDetail(value); return *this;} + inline CreateRuleResult& WithDetail(RuleDetail&& value) { SetDetail(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the rule.

    + */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + inline void SetIdentifier(const Aws::String& value) { m_identifier = value; } + inline void SetIdentifier(Aws::String&& value) { m_identifier = std::move(value); } + inline void SetIdentifier(const char* value) { m_identifier.assign(value); } + inline CreateRuleResult& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + inline CreateRuleResult& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + inline CreateRuleResult& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the rule.

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

    The type of the rule.

    + */ + inline const RuleType& GetRuleType() const{ return m_ruleType; } + inline void SetRuleType(const RuleType& value) { m_ruleType = value; } + inline void SetRuleType(RuleType&& value) { m_ruleType = std::move(value); } + inline CreateRuleResult& WithRuleType(const RuleType& value) { SetRuleType(value); return *this;} + inline CreateRuleResult& WithRuleType(RuleType&& value) { SetRuleType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The scope of the rule.

    + */ + inline const RuleScope& GetScope() const{ return m_scope; } + inline void SetScope(const RuleScope& value) { m_scope = value; } + inline void SetScope(RuleScope&& value) { m_scope = std::move(value); } + inline CreateRuleResult& WithScope(const RuleScope& value) { SetScope(value); return *this;} + inline CreateRuleResult& WithScope(RuleScope&& value) { SetScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The target of the rule.

    + */ + inline const RuleTarget& GetTarget() const{ return m_target; } + inline void SetTarget(const RuleTarget& value) { m_target = value; } + inline void SetTarget(RuleTarget&& value) { m_target = std::move(value); } + inline CreateRuleResult& WithTarget(const RuleTarget& value) { SetTarget(value); return *this;} + inline CreateRuleResult& WithTarget(RuleTarget&& value) { SetTarget(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The target type of the rule.

    + */ + inline const RuleTargetType& GetTargetType() const{ return m_targetType; } + inline void SetTargetType(const RuleTargetType& value) { m_targetType = value; } + inline void SetTargetType(RuleTargetType&& value) { m_targetType = std::move(value); } + inline CreateRuleResult& WithTargetType(const RuleTargetType& value) { SetTargetType(value); return *this;} + inline CreateRuleResult& WithTargetType(RuleTargetType&& value) { SetTargetType(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline CreateRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + RuleAction m_action; + + Aws::Utils::DateTime m_createdAt; + + Aws::String m_createdBy; + + Aws::String m_description; + + RuleDetail m_detail; + + Aws::String m_identifier; + + Aws::String m_name; + + RuleType m_ruleType; + + RuleScope m_scope; + + RuleTarget m_target; + + RuleTargetType m_targetType; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateSubscriptionRequestRequest.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateSubscriptionRequestRequest.h index 0a4cb3adb9d..b7608718cc8 100644 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateSubscriptionRequestRequest.h +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateSubscriptionRequestRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -66,6 +67,20 @@ namespace Model inline CreateSubscriptionRequestRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;} ///@} + ///@{ + /** + *

    The metadata form included in the subscription request.

    + */ + inline const Aws::Vector& GetMetadataForms() const{ return m_metadataForms; } + inline bool MetadataFormsHasBeenSet() const { return m_metadataFormsHasBeenSet; } + inline void SetMetadataForms(const Aws::Vector& value) { m_metadataFormsHasBeenSet = true; m_metadataForms = value; } + inline void SetMetadataForms(Aws::Vector&& value) { m_metadataFormsHasBeenSet = true; m_metadataForms = std::move(value); } + inline CreateSubscriptionRequestRequest& WithMetadataForms(const Aws::Vector& value) { SetMetadataForms(value); return *this;} + inline CreateSubscriptionRequestRequest& WithMetadataForms(Aws::Vector&& value) { SetMetadataForms(std::move(value)); return *this;} + inline CreateSubscriptionRequestRequest& AddMetadataForms(const FormInput& value) { m_metadataFormsHasBeenSet = true; m_metadataForms.push_back(value); return *this; } + inline CreateSubscriptionRequestRequest& AddMetadataForms(FormInput&& value) { m_metadataFormsHasBeenSet = true; m_metadataForms.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    The reason for the subscription request.

    @@ -116,6 +131,9 @@ namespace Model Aws::String m_domainIdentifier; bool m_domainIdentifierHasBeenSet = false; + Aws::Vector m_metadataForms; + bool m_metadataFormsHasBeenSet = false; + Aws::String m_requestReason; bool m_requestReasonHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateSubscriptionRequestResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateSubscriptionRequestResult.h index 01269ab46be..8ccb5bcc39c 100644 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateSubscriptionRequestResult.h +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/CreateSubscriptionRequestResult.h @@ -7,8 +7,9 @@ #include #include #include -#include #include +#include +#include #include #include #include @@ -88,6 +89,19 @@ namespace Model inline CreateSubscriptionRequestResult& WithDomainId(const char* value) { SetDomainId(value); return *this;} ///@} + ///@{ + /** + *

    The ID of the existing subscription.

    + */ + inline const Aws::String& GetExistingSubscriptionId() const{ return m_existingSubscriptionId; } + inline void SetExistingSubscriptionId(const Aws::String& value) { m_existingSubscriptionId = value; } + inline void SetExistingSubscriptionId(Aws::String&& value) { m_existingSubscriptionId = std::move(value); } + inline void SetExistingSubscriptionId(const char* value) { m_existingSubscriptionId.assign(value); } + inline CreateSubscriptionRequestResult& WithExistingSubscriptionId(const Aws::String& value) { SetExistingSubscriptionId(value); return *this;} + inline CreateSubscriptionRequestResult& WithExistingSubscriptionId(Aws::String&& value) { SetExistingSubscriptionId(std::move(value)); return *this;} + inline CreateSubscriptionRequestResult& WithExistingSubscriptionId(const char* value) { SetExistingSubscriptionId(value); return *this;} + ///@} + ///@{ /** *

    The ID of the subscription request.

    @@ -101,6 +115,19 @@ namespace Model inline CreateSubscriptionRequestResult& WithId(const char* value) { SetId(value); return *this;} ///@} + ///@{ + /** + *

    The metadata form included in the subscription request.

    + */ + inline const Aws::Vector& GetMetadataForms() const{ return m_metadataForms; } + inline void SetMetadataForms(const Aws::Vector& value) { m_metadataForms = value; } + inline void SetMetadataForms(Aws::Vector&& value) { m_metadataForms = std::move(value); } + inline CreateSubscriptionRequestResult& WithMetadataForms(const Aws::Vector& value) { SetMetadataForms(value); return *this;} + inline CreateSubscriptionRequestResult& WithMetadataForms(Aws::Vector&& value) { SetMetadataForms(std::move(value)); return *this;} + inline CreateSubscriptionRequestResult& AddMetadataForms(const FormOutput& value) { m_metadataForms.push_back(value); return *this; } + inline CreateSubscriptionRequestResult& AddMetadataForms(FormOutput&& value) { m_metadataForms.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    The reason for the subscription request.

    @@ -208,8 +235,12 @@ namespace Model Aws::String m_domainId; + Aws::String m_existingSubscriptionId; + Aws::String m_id; + Aws::Vector m_metadataForms; + Aws::String m_requestReason; Aws::String m_reviewerId; diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DeleteRuleRequest.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DeleteRuleRequest.h new file mode 100644 index 00000000000..7602ae21d2d --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DeleteRuleRequest.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace DataZone +{ +namespace Model +{ + + /** + */ + class DeleteRuleRequest : public DataZoneRequest + { + public: + AWS_DATAZONE_API DeleteRuleRequest(); + + // 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 "DeleteRule"; } + + AWS_DATAZONE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The ID of the domain that where the rule is to be deleted.

    + */ + inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; } + inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; } + inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; } + inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); } + inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); } + inline DeleteRuleRequest& WithDomainIdentifier(const Aws::String& value) { SetDomainIdentifier(value); return *this;} + inline DeleteRuleRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;} + inline DeleteRuleRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the rule that is to be deleted.

    + */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } + inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } + inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } + inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } + inline DeleteRuleRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + inline DeleteRuleRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + inline DeleteRuleRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + ///@} + private: + + Aws::String m_domainIdentifier; + bool m_domainIdentifierHasBeenSet = false; + + Aws::String m_identifier; + bool m_identifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DeleteRuleResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DeleteRuleResult.h new file mode 100644 index 00000000000..9746e7e9c99 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DeleteRuleResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + class DeleteRuleResult + { + public: + AWS_DATAZONE_API DeleteRuleResult(); + AWS_DATAZONE_API DeleteRuleResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAZONE_API DeleteRuleResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DeleteRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DomainUnitTarget.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DomainUnitTarget.h new file mode 100644 index 00000000000..1ee325a3060 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DomainUnitTarget.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 Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + + /** + *

    The target for the domain unit.

    See Also:

    AWS + * API Reference

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

    The ID of the domain unit.

    + */ + inline const Aws::String& GetDomainUnitId() const{ return m_domainUnitId; } + inline bool DomainUnitIdHasBeenSet() const { return m_domainUnitIdHasBeenSet; } + inline void SetDomainUnitId(const Aws::String& value) { m_domainUnitIdHasBeenSet = true; m_domainUnitId = value; } + inline void SetDomainUnitId(Aws::String&& value) { m_domainUnitIdHasBeenSet = true; m_domainUnitId = std::move(value); } + inline void SetDomainUnitId(const char* value) { m_domainUnitIdHasBeenSet = true; m_domainUnitId.assign(value); } + inline DomainUnitTarget& WithDomainUnitId(const Aws::String& value) { SetDomainUnitId(value); return *this;} + inline DomainUnitTarget& WithDomainUnitId(Aws::String&& value) { SetDomainUnitId(std::move(value)); return *this;} + inline DomainUnitTarget& WithDomainUnitId(const char* value) { SetDomainUnitId(value); return *this;} + ///@} + + ///@{ + /** + *

    Specifies whether to apply a rule to the child domain units.

    + */ + inline bool GetIncludeChildDomainUnits() const{ return m_includeChildDomainUnits; } + inline bool IncludeChildDomainUnitsHasBeenSet() const { return m_includeChildDomainUnitsHasBeenSet; } + inline void SetIncludeChildDomainUnits(bool value) { m_includeChildDomainUnitsHasBeenSet = true; m_includeChildDomainUnits = value; } + inline DomainUnitTarget& WithIncludeChildDomainUnits(bool value) { SetIncludeChildDomainUnits(value); return *this;} + ///@} + private: + + Aws::String m_domainUnitId; + bool m_domainUnitIdHasBeenSet = false; + + bool m_includeChildDomainUnits; + bool m_includeChildDomainUnitsHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetRuleRequest.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetRuleRequest.h new file mode 100644 index 00000000000..28d90f1caf0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetRuleRequest.h @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace DataZone +{ +namespace Model +{ + + /** + */ + class GetRuleRequest : public DataZoneRequest + { + public: + AWS_DATAZONE_API GetRuleRequest(); + + // 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 "GetRule"; } + + AWS_DATAZONE_API Aws::String SerializePayload() const override; + + AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The ID of the domain where the GetRule action is to be + * invoked.

    + */ + inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; } + inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; } + inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; } + inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); } + inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); } + inline GetRuleRequest& WithDomainIdentifier(const Aws::String& value) { SetDomainIdentifier(value); return *this;} + inline GetRuleRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;} + inline GetRuleRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the rule.

    + */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } + inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } + inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } + inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } + inline GetRuleRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + inline GetRuleRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + inline GetRuleRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The revision of the rule.

    + */ + inline const Aws::String& GetRevision() const{ return m_revision; } + inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; } + inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; } + inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); } + inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); } + inline GetRuleRequest& WithRevision(const Aws::String& value) { SetRevision(value); return *this;} + inline GetRuleRequest& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;} + inline GetRuleRequest& WithRevision(const char* value) { SetRevision(value); return *this;} + ///@} + private: + + Aws::String m_domainIdentifier; + bool m_domainIdentifierHasBeenSet = false; + + Aws::String m_identifier; + bool m_identifierHasBeenSet = false; + + Aws::String m_revision; + bool m_revisionHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetRuleResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetRuleResult.h new file mode 100644 index 00000000000..3f518601f94 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetRuleResult.h @@ -0,0 +1,253 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + class GetRuleResult + { + public: + AWS_DATAZONE_API GetRuleResult(); + AWS_DATAZONE_API GetRuleResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAZONE_API GetRuleResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The action of the rule.

    + */ + inline const RuleAction& GetAction() const{ return m_action; } + inline void SetAction(const RuleAction& value) { m_action = value; } + inline void SetAction(RuleAction&& value) { m_action = std::move(value); } + inline GetRuleResult& WithAction(const RuleAction& value) { SetAction(value); return *this;} + inline GetRuleResult& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp at which the rule was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline GetRuleResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline GetRuleResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The user who created the rule.

    + */ + inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } + inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; } + inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); } + inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); } + inline GetRuleResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} + inline GetRuleResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} + inline GetRuleResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the rule.

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

    The detail of the rule.

    + */ + inline const RuleDetail& GetDetail() const{ return m_detail; } + inline void SetDetail(const RuleDetail& value) { m_detail = value; } + inline void SetDetail(RuleDetail&& value) { m_detail = std::move(value); } + inline GetRuleResult& WithDetail(const RuleDetail& value) { SetDetail(value); return *this;} + inline GetRuleResult& WithDetail(RuleDetail&& value) { SetDetail(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the rule.

    + */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + inline void SetIdentifier(const Aws::String& value) { m_identifier = value; } + inline void SetIdentifier(Aws::String&& value) { m_identifier = std::move(value); } + inline void SetIdentifier(const char* value) { m_identifier.assign(value); } + inline GetRuleResult& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + inline GetRuleResult& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + inline GetRuleResult& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp at which the rule was last updated.

    + */ + inline const Aws::String& GetLastUpdatedBy() const{ return m_lastUpdatedBy; } + inline void SetLastUpdatedBy(const Aws::String& value) { m_lastUpdatedBy = value; } + inline void SetLastUpdatedBy(Aws::String&& value) { m_lastUpdatedBy = std::move(value); } + inline void SetLastUpdatedBy(const char* value) { m_lastUpdatedBy.assign(value); } + inline GetRuleResult& WithLastUpdatedBy(const Aws::String& value) { SetLastUpdatedBy(value); return *this;} + inline GetRuleResult& WithLastUpdatedBy(Aws::String&& value) { SetLastUpdatedBy(std::move(value)); return *this;} + inline GetRuleResult& WithLastUpdatedBy(const char* value) { SetLastUpdatedBy(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the rule.

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

    The revision of the rule.

    + */ + inline const Aws::String& GetRevision() const{ return m_revision; } + inline void SetRevision(const Aws::String& value) { m_revision = value; } + inline void SetRevision(Aws::String&& value) { m_revision = std::move(value); } + inline void SetRevision(const char* value) { m_revision.assign(value); } + inline GetRuleResult& WithRevision(const Aws::String& value) { SetRevision(value); return *this;} + inline GetRuleResult& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;} + inline GetRuleResult& WithRevision(const char* value) { SetRevision(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of the rule.

    + */ + inline const RuleType& GetRuleType() const{ return m_ruleType; } + inline void SetRuleType(const RuleType& value) { m_ruleType = value; } + inline void SetRuleType(RuleType&& value) { m_ruleType = std::move(value); } + inline GetRuleResult& WithRuleType(const RuleType& value) { SetRuleType(value); return *this;} + inline GetRuleResult& WithRuleType(RuleType&& value) { SetRuleType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The scope of the rule.

    + */ + inline const RuleScope& GetScope() const{ return m_scope; } + inline void SetScope(const RuleScope& value) { m_scope = value; } + inline void SetScope(RuleScope&& value) { m_scope = std::move(value); } + inline GetRuleResult& WithScope(const RuleScope& value) { SetScope(value); return *this;} + inline GetRuleResult& WithScope(RuleScope&& value) { SetScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The target of the rule.

    + */ + inline const RuleTarget& GetTarget() const{ return m_target; } + inline void SetTarget(const RuleTarget& value) { m_target = value; } + inline void SetTarget(RuleTarget&& value) { m_target = std::move(value); } + inline GetRuleResult& WithTarget(const RuleTarget& value) { SetTarget(value); return *this;} + inline GetRuleResult& WithTarget(RuleTarget&& value) { SetTarget(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The target type of the rule.

    + */ + inline const RuleTargetType& GetTargetType() const{ return m_targetType; } + inline void SetTargetType(const RuleTargetType& value) { m_targetType = value; } + inline void SetTargetType(RuleTargetType&& value) { m_targetType = std::move(value); } + inline GetRuleResult& WithTargetType(const RuleTargetType& value) { SetTargetType(value); return *this;} + inline GetRuleResult& WithTargetType(RuleTargetType&& value) { SetTargetType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp at which the rule was last updated.

    + */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline GetRuleResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline GetRuleResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + RuleAction m_action; + + Aws::Utils::DateTime m_createdAt; + + Aws::String m_createdBy; + + Aws::String m_description; + + RuleDetail m_detail; + + Aws::String m_identifier; + + Aws::String m_lastUpdatedBy; + + Aws::String m_name; + + Aws::String m_revision; + + RuleType m_ruleType; + + RuleScope m_scope; + + RuleTarget m_target; + + RuleTargetType m_targetType; + + Aws::Utils::DateTime m_updatedAt; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetSubscriptionRequestDetailsResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetSubscriptionRequestDetailsResult.h index 9e45664b1ce..670c58ecbcc 100644 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetSubscriptionRequestDetailsResult.h +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/GetSubscriptionRequestDetailsResult.h @@ -7,8 +7,9 @@ #include #include #include -#include #include +#include +#include #include #include #include @@ -87,6 +88,19 @@ namespace Model inline GetSubscriptionRequestDetailsResult& WithDomainId(const char* value) { SetDomainId(value); return *this;} ///@} + ///@{ + /** + *

    The ID of the existing subscription.

    + */ + inline const Aws::String& GetExistingSubscriptionId() const{ return m_existingSubscriptionId; } + inline void SetExistingSubscriptionId(const Aws::String& value) { m_existingSubscriptionId = value; } + inline void SetExistingSubscriptionId(Aws::String&& value) { m_existingSubscriptionId = std::move(value); } + inline void SetExistingSubscriptionId(const char* value) { m_existingSubscriptionId.assign(value); } + inline GetSubscriptionRequestDetailsResult& WithExistingSubscriptionId(const Aws::String& value) { SetExistingSubscriptionId(value); return *this;} + inline GetSubscriptionRequestDetailsResult& WithExistingSubscriptionId(Aws::String&& value) { SetExistingSubscriptionId(std::move(value)); return *this;} + inline GetSubscriptionRequestDetailsResult& WithExistingSubscriptionId(const char* value) { SetExistingSubscriptionId(value); return *this;} + ///@} + ///@{ /** *

    The identifier of the subscription request.

    @@ -100,6 +114,19 @@ namespace Model inline GetSubscriptionRequestDetailsResult& WithId(const char* value) { SetId(value); return *this;} ///@} + ///@{ + /** + *

    The metadata forms included in the subscription request.

    + */ + inline const Aws::Vector& GetMetadataForms() const{ return m_metadataForms; } + inline void SetMetadataForms(const Aws::Vector& value) { m_metadataForms = value; } + inline void SetMetadataForms(Aws::Vector&& value) { m_metadataForms = std::move(value); } + inline GetSubscriptionRequestDetailsResult& WithMetadataForms(const Aws::Vector& value) { SetMetadataForms(value); return *this;} + inline GetSubscriptionRequestDetailsResult& WithMetadataForms(Aws::Vector&& value) { SetMetadataForms(std::move(value)); return *this;} + inline GetSubscriptionRequestDetailsResult& AddMetadataForms(const FormOutput& value) { m_metadataForms.push_back(value); return *this; } + inline GetSubscriptionRequestDetailsResult& AddMetadataForms(FormOutput&& value) { m_metadataForms.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    The reason for the subscription request.

    @@ -208,8 +235,12 @@ namespace Model Aws::String m_domainId; + Aws::String m_existingSubscriptionId; + Aws::String m_id; + Aws::Vector m_metadataForms; + Aws::String m_requestReason; Aws::String m_reviewerId; diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ListRulesRequest.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ListRulesRequest.h new file mode 100644 index 00000000000..6e02a27b3ca --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ListRulesRequest.h @@ -0,0 +1,229 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace DataZone +{ +namespace Model +{ + + /** + */ + class ListRulesRequest : public DataZoneRequest + { + public: + AWS_DATAZONE_API ListRulesRequest(); + + // 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 "ListRules"; } + + AWS_DATAZONE_API Aws::String SerializePayload() const override; + + AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The action of the rule.

    + */ + inline const RuleAction& GetAction() const{ return m_action; } + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; } + inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + inline ListRulesRequest& WithAction(const RuleAction& value) { SetAction(value); return *this;} + inline ListRulesRequest& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The asset types of the rule.

    + */ + inline const Aws::Vector& GetAssetTypes() const{ return m_assetTypes; } + inline bool AssetTypesHasBeenSet() const { return m_assetTypesHasBeenSet; } + inline void SetAssetTypes(const Aws::Vector& value) { m_assetTypesHasBeenSet = true; m_assetTypes = value; } + inline void SetAssetTypes(Aws::Vector&& value) { m_assetTypesHasBeenSet = true; m_assetTypes = std::move(value); } + inline ListRulesRequest& WithAssetTypes(const Aws::Vector& value) { SetAssetTypes(value); return *this;} + inline ListRulesRequest& WithAssetTypes(Aws::Vector&& value) { SetAssetTypes(std::move(value)); return *this;} + inline ListRulesRequest& AddAssetTypes(const Aws::String& value) { m_assetTypesHasBeenSet = true; m_assetTypes.push_back(value); return *this; } + inline ListRulesRequest& AddAssetTypes(Aws::String&& value) { m_assetTypesHasBeenSet = true; m_assetTypes.push_back(std::move(value)); return *this; } + inline ListRulesRequest& AddAssetTypes(const char* value) { m_assetTypesHasBeenSet = true; m_assetTypes.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The data product of the rule.

    + */ + inline bool GetDataProduct() const{ return m_dataProduct; } + inline bool DataProductHasBeenSet() const { return m_dataProductHasBeenSet; } + inline void SetDataProduct(bool value) { m_dataProductHasBeenSet = true; m_dataProduct = value; } + inline ListRulesRequest& WithDataProduct(bool value) { SetDataProduct(value); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the domain in which the rules are to be listed.

    + */ + inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; } + inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; } + inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; } + inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); } + inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); } + inline ListRulesRequest& WithDomainIdentifier(const Aws::String& value) { SetDomainIdentifier(value); return *this;} + inline ListRulesRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;} + inline ListRulesRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    Specifies whether to include cascading rules in the results.

    + */ + inline bool GetIncludeCascaded() const{ return m_includeCascaded; } + inline bool IncludeCascadedHasBeenSet() const { return m_includeCascadedHasBeenSet; } + inline void SetIncludeCascaded(bool value) { m_includeCascadedHasBeenSet = true; m_includeCascaded = value; } + inline ListRulesRequest& WithIncludeCascaded(bool value) { SetIncludeCascaded(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of rules to return in a single call to + * ListRules. When the number of rules to be listed is greater than + * the value of MaxResults, the response contains a + * NextToken value that you can use in a subsequent call to + * ListRules to list the next set of rules.

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

    When the number of rules is greater than the default value for the + * MaxResults parameter, or if you explicitly specify a value for + * MaxResults that is less than the number of rules, the response + * includes a pagination token named NextToken. You can specify this + * NextToken value in a subsequent call to ListRules to + * list the next set of rules.

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

    The IDs of projects in which rules are to be listed.

    + */ + inline const Aws::Vector& GetProjectIds() const{ return m_projectIds; } + inline bool ProjectIdsHasBeenSet() const { return m_projectIdsHasBeenSet; } + inline void SetProjectIds(const Aws::Vector& value) { m_projectIdsHasBeenSet = true; m_projectIds = value; } + inline void SetProjectIds(Aws::Vector&& value) { m_projectIdsHasBeenSet = true; m_projectIds = std::move(value); } + inline ListRulesRequest& WithProjectIds(const Aws::Vector& value) { SetProjectIds(value); return *this;} + inline ListRulesRequest& WithProjectIds(Aws::Vector&& value) { SetProjectIds(std::move(value)); return *this;} + inline ListRulesRequest& AddProjectIds(const Aws::String& value) { m_projectIdsHasBeenSet = true; m_projectIds.push_back(value); return *this; } + inline ListRulesRequest& AddProjectIds(Aws::String&& value) { m_projectIdsHasBeenSet = true; m_projectIds.push_back(std::move(value)); return *this; } + inline ListRulesRequest& AddProjectIds(const char* value) { m_projectIdsHasBeenSet = true; m_projectIds.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The type of the rule.

    + */ + inline const RuleType& GetRuleType() const{ return m_ruleType; } + inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; } + inline void SetRuleType(const RuleType& value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; } + inline void SetRuleType(RuleType&& value) { m_ruleTypeHasBeenSet = true; m_ruleType = std::move(value); } + inline ListRulesRequest& WithRuleType(const RuleType& value) { SetRuleType(value); return *this;} + inline ListRulesRequest& WithRuleType(RuleType&& value) { SetRuleType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The target ID of the rule.

    + */ + inline const Aws::String& GetTargetIdentifier() const{ return m_targetIdentifier; } + inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; } + inline void SetTargetIdentifier(const Aws::String& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = value; } + inline void SetTargetIdentifier(Aws::String&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::move(value); } + inline void SetTargetIdentifier(const char* value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier.assign(value); } + inline ListRulesRequest& WithTargetIdentifier(const Aws::String& value) { SetTargetIdentifier(value); return *this;} + inline ListRulesRequest& WithTargetIdentifier(Aws::String&& value) { SetTargetIdentifier(std::move(value)); return *this;} + inline ListRulesRequest& WithTargetIdentifier(const char* value) { SetTargetIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The target type of the rule.

    + */ + inline const RuleTargetType& GetTargetType() const{ return m_targetType; } + inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; } + inline void SetTargetType(const RuleTargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; } + inline void SetTargetType(RuleTargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); } + inline ListRulesRequest& WithTargetType(const RuleTargetType& value) { SetTargetType(value); return *this;} + inline ListRulesRequest& WithTargetType(RuleTargetType&& value) { SetTargetType(std::move(value)); return *this;} + ///@} + private: + + RuleAction m_action; + bool m_actionHasBeenSet = false; + + Aws::Vector m_assetTypes; + bool m_assetTypesHasBeenSet = false; + + bool m_dataProduct; + bool m_dataProductHasBeenSet = false; + + Aws::String m_domainIdentifier; + bool m_domainIdentifierHasBeenSet = false; + + bool m_includeCascaded; + bool m_includeCascadedHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + Aws::Vector m_projectIds; + bool m_projectIdsHasBeenSet = false; + + RuleType m_ruleType; + bool m_ruleTypeHasBeenSet = false; + + Aws::String m_targetIdentifier; + bool m_targetIdentifierHasBeenSet = false; + + RuleTargetType m_targetType; + bool m_targetTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ListRulesResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ListRulesResult.h new file mode 100644 index 00000000000..60c7ee809e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ListRulesResult.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + class ListRulesResult + { + public: + AWS_DATAZONE_API ListRulesResult(); + AWS_DATAZONE_API ListRulesResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAZONE_API ListRulesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The results of the ListRules action.

    + */ + inline const Aws::Vector& GetItems() const{ return m_items; } + inline void SetItems(const Aws::Vector& value) { m_items = value; } + inline void SetItems(Aws::Vector&& value) { m_items = std::move(value); } + inline ListRulesResult& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} + inline ListRulesResult& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} + inline ListRulesResult& AddItems(const RuleSummary& value) { m_items.push_back(value); return *this; } + inline ListRulesResult& AddItems(RuleSummary&& value) { m_items.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    When the number of rules is greater than the default value for the + * MaxResults parameter, or if you explicitly specify a value for + * MaxResults that is less than the number of rules, the response + * includes a pagination token named NextToken. You can specify this + * NextToken value in a subsequent call to ListRules to + * list the next set of rules.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListRulesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListRulesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListRulesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListRulesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListRulesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListRulesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_items; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormEnforcementDetail.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormEnforcementDetail.h new file mode 100644 index 00000000000..8bcfa5128ff --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormEnforcementDetail.h @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + + /** + *

    The enforcement details of a metadata form.

    See Also:

    AWS + * API Reference

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

    The required metadata forms.

    + */ + inline const Aws::Vector& GetRequiredMetadataForms() const{ return m_requiredMetadataForms; } + inline bool RequiredMetadataFormsHasBeenSet() const { return m_requiredMetadataFormsHasBeenSet; } + inline void SetRequiredMetadataForms(const Aws::Vector& value) { m_requiredMetadataFormsHasBeenSet = true; m_requiredMetadataForms = value; } + inline void SetRequiredMetadataForms(Aws::Vector&& value) { m_requiredMetadataFormsHasBeenSet = true; m_requiredMetadataForms = std::move(value); } + inline MetadataFormEnforcementDetail& WithRequiredMetadataForms(const Aws::Vector& value) { SetRequiredMetadataForms(value); return *this;} + inline MetadataFormEnforcementDetail& WithRequiredMetadataForms(Aws::Vector&& value) { SetRequiredMetadataForms(std::move(value)); return *this;} + inline MetadataFormEnforcementDetail& AddRequiredMetadataForms(const MetadataFormReference& value) { m_requiredMetadataFormsHasBeenSet = true; m_requiredMetadataForms.push_back(value); return *this; } + inline MetadataFormEnforcementDetail& AddRequiredMetadataForms(MetadataFormReference&& value) { m_requiredMetadataFormsHasBeenSet = true; m_requiredMetadataForms.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_requiredMetadataForms; + bool m_requiredMetadataFormsHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormReference.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormReference.h new file mode 100644 index 00000000000..0f053ee003d --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormReference.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + + /** + *

    The reference of a metadata form.

    See Also:

    AWS + * API Reference

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

    The type ID of the metadata form reference.

    + */ + inline const Aws::String& GetTypeIdentifier() const{ return m_typeIdentifier; } + inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; } + inline void SetTypeIdentifier(const Aws::String& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = value; } + inline void SetTypeIdentifier(Aws::String&& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = std::move(value); } + inline void SetTypeIdentifier(const char* value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier.assign(value); } + inline MetadataFormReference& WithTypeIdentifier(const Aws::String& value) { SetTypeIdentifier(value); return *this;} + inline MetadataFormReference& WithTypeIdentifier(Aws::String&& value) { SetTypeIdentifier(std::move(value)); return *this;} + inline MetadataFormReference& WithTypeIdentifier(const char* value) { SetTypeIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The type revision of the metadata form reference.

    + */ + inline const Aws::String& GetTypeRevision() const{ return m_typeRevision; } + inline bool TypeRevisionHasBeenSet() const { return m_typeRevisionHasBeenSet; } + inline void SetTypeRevision(const Aws::String& value) { m_typeRevisionHasBeenSet = true; m_typeRevision = value; } + inline void SetTypeRevision(Aws::String&& value) { m_typeRevisionHasBeenSet = true; m_typeRevision = std::move(value); } + inline void SetTypeRevision(const char* value) { m_typeRevisionHasBeenSet = true; m_typeRevision.assign(value); } + inline MetadataFormReference& WithTypeRevision(const Aws::String& value) { SetTypeRevision(value); return *this;} + inline MetadataFormReference& WithTypeRevision(Aws::String&& value) { SetTypeRevision(std::move(value)); return *this;} + inline MetadataFormReference& WithTypeRevision(const char* value) { SetTypeRevision(value); return *this;} + ///@} + private: + + Aws::String m_typeIdentifier; + bool m_typeIdentifierHasBeenSet = false; + + Aws::String m_typeRevision; + bool m_typeRevisionHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormSummary.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormSummary.h new file mode 100644 index 00000000000..387e14b18ae --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/MetadataFormSummary.h @@ -0,0 +1,95 @@ +/** + * 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 DataZone +{ +namespace Model +{ + + /** + *

    The summary of the metadata form.

    See Also:

    AWS + * API Reference

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

    The form name of the metadata form.

    + */ + inline const Aws::String& GetFormName() const{ return m_formName; } + inline bool FormNameHasBeenSet() const { return m_formNameHasBeenSet; } + inline void SetFormName(const Aws::String& value) { m_formNameHasBeenSet = true; m_formName = value; } + inline void SetFormName(Aws::String&& value) { m_formNameHasBeenSet = true; m_formName = std::move(value); } + inline void SetFormName(const char* value) { m_formNameHasBeenSet = true; m_formName.assign(value); } + inline MetadataFormSummary& WithFormName(const Aws::String& value) { SetFormName(value); return *this;} + inline MetadataFormSummary& WithFormName(Aws::String&& value) { SetFormName(std::move(value)); return *this;} + inline MetadataFormSummary& WithFormName(const char* value) { SetFormName(value); return *this;} + ///@} + + ///@{ + /** + *

    The type name of the metadata form.

    + */ + inline const Aws::String& GetTypeName() const{ return m_typeName; } + inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; } + inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; } + inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); } + inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); } + inline MetadataFormSummary& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;} + inline MetadataFormSummary& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;} + inline MetadataFormSummary& WithTypeName(const char* value) { SetTypeName(value); return *this;} + ///@} + + ///@{ + /** + *

    The type revision of the metadata form.

    + */ + inline const Aws::String& GetTypeRevision() const{ return m_typeRevision; } + inline bool TypeRevisionHasBeenSet() const { return m_typeRevisionHasBeenSet; } + inline void SetTypeRevision(const Aws::String& value) { m_typeRevisionHasBeenSet = true; m_typeRevision = value; } + inline void SetTypeRevision(Aws::String&& value) { m_typeRevisionHasBeenSet = true; m_typeRevision = std::move(value); } + inline void SetTypeRevision(const char* value) { m_typeRevisionHasBeenSet = true; m_typeRevision.assign(value); } + inline MetadataFormSummary& WithTypeRevision(const Aws::String& value) { SetTypeRevision(value); return *this;} + inline MetadataFormSummary& WithTypeRevision(Aws::String&& value) { SetTypeRevision(std::move(value)); return *this;} + inline MetadataFormSummary& WithTypeRevision(const char* value) { SetTypeRevision(value); return *this;} + ///@} + private: + + Aws::String m_formName; + bool m_formNameHasBeenSet = false; + + Aws::String m_typeName; + bool m_typeNameHasBeenSet = false; + + Aws::String m_typeRevision; + bool m_typeRevisionHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ProjectsForRule.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ProjectsForRule.h new file mode 100644 index 00000000000..37466745172 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/ProjectsForRule.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + + /** + *

    Specifies projects in which the rule is created.

    See Also:

    + * AWS + * API Reference

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

    The selection mode of the rule.

    + */ + inline const RuleScopeSelectionMode& GetSelectionMode() const{ return m_selectionMode; } + inline bool SelectionModeHasBeenSet() const { return m_selectionModeHasBeenSet; } + inline void SetSelectionMode(const RuleScopeSelectionMode& value) { m_selectionModeHasBeenSet = true; m_selectionMode = value; } + inline void SetSelectionMode(RuleScopeSelectionMode&& value) { m_selectionModeHasBeenSet = true; m_selectionMode = std::move(value); } + inline ProjectsForRule& WithSelectionMode(const RuleScopeSelectionMode& value) { SetSelectionMode(value); return *this;} + inline ProjectsForRule& WithSelectionMode(RuleScopeSelectionMode&& value) { SetSelectionMode(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The specific projects in which the rule is created.

    + */ + inline const Aws::Vector& GetSpecificProjects() const{ return m_specificProjects; } + inline bool SpecificProjectsHasBeenSet() const { return m_specificProjectsHasBeenSet; } + inline void SetSpecificProjects(const Aws::Vector& value) { m_specificProjectsHasBeenSet = true; m_specificProjects = value; } + inline void SetSpecificProjects(Aws::Vector&& value) { m_specificProjectsHasBeenSet = true; m_specificProjects = std::move(value); } + inline ProjectsForRule& WithSpecificProjects(const Aws::Vector& value) { SetSpecificProjects(value); return *this;} + inline ProjectsForRule& WithSpecificProjects(Aws::Vector&& value) { SetSpecificProjects(std::move(value)); return *this;} + inline ProjectsForRule& AddSpecificProjects(const Aws::String& value) { m_specificProjectsHasBeenSet = true; m_specificProjects.push_back(value); return *this; } + inline ProjectsForRule& AddSpecificProjects(Aws::String&& value) { m_specificProjectsHasBeenSet = true; m_specificProjects.push_back(std::move(value)); return *this; } + inline ProjectsForRule& AddSpecificProjects(const char* value) { m_specificProjectsHasBeenSet = true; m_specificProjects.push_back(value); return *this; } + ///@} + private: + + RuleScopeSelectionMode m_selectionMode; + bool m_selectionModeHasBeenSet = false; + + Aws::Vector m_specificProjects; + bool m_specificProjectsHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RejectSubscriptionRequestResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RejectSubscriptionRequestResult.h index 56273b1006d..fb8b870fb52 100644 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RejectSubscriptionRequestResult.h +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RejectSubscriptionRequestResult.h @@ -7,8 +7,9 @@ #include #include #include -#include #include +#include +#include #include #include #include @@ -88,6 +89,19 @@ namespace Model inline RejectSubscriptionRequestResult& WithDomainId(const char* value) { SetDomainId(value); return *this;} ///@} + ///@{ + /** + *

    The ID of the existing subscription.

    + */ + inline const Aws::String& GetExistingSubscriptionId() const{ return m_existingSubscriptionId; } + inline void SetExistingSubscriptionId(const Aws::String& value) { m_existingSubscriptionId = value; } + inline void SetExistingSubscriptionId(Aws::String&& value) { m_existingSubscriptionId = std::move(value); } + inline void SetExistingSubscriptionId(const char* value) { m_existingSubscriptionId.assign(value); } + inline RejectSubscriptionRequestResult& WithExistingSubscriptionId(const Aws::String& value) { SetExistingSubscriptionId(value); return *this;} + inline RejectSubscriptionRequestResult& WithExistingSubscriptionId(Aws::String&& value) { SetExistingSubscriptionId(std::move(value)); return *this;} + inline RejectSubscriptionRequestResult& WithExistingSubscriptionId(const char* value) { SetExistingSubscriptionId(value); return *this;} + ///@} + ///@{ /** *

    The identifier of the subscription request that was rejected.

    @@ -101,6 +115,19 @@ namespace Model inline RejectSubscriptionRequestResult& WithId(const char* value) { SetId(value); return *this;} ///@} + ///@{ + /** + *

    Metadata forms included in the subscription request.

    + */ + inline const Aws::Vector& GetMetadataForms() const{ return m_metadataForms; } + inline void SetMetadataForms(const Aws::Vector& value) { m_metadataForms = value; } + inline void SetMetadataForms(Aws::Vector&& value) { m_metadataForms = std::move(value); } + inline RejectSubscriptionRequestResult& WithMetadataForms(const Aws::Vector& value) { SetMetadataForms(value); return *this;} + inline RejectSubscriptionRequestResult& WithMetadataForms(Aws::Vector&& value) { SetMetadataForms(std::move(value)); return *this;} + inline RejectSubscriptionRequestResult& AddMetadataForms(const FormOutput& value) { m_metadataForms.push_back(value); return *this; } + inline RejectSubscriptionRequestResult& AddMetadataForms(FormOutput&& value) { m_metadataForms.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    The reason for the subscription request.

    @@ -208,8 +235,12 @@ namespace Model Aws::String m_domainId; + Aws::String m_existingSubscriptionId; + Aws::String m_id; + Aws::Vector m_metadataForms; + Aws::String m_requestReason; Aws::String m_reviewerId; diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleAction.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleAction.h new file mode 100644 index 00000000000..8b49e572c90 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleAction.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace DataZone +{ +namespace Model +{ + enum class RuleAction + { + NOT_SET, + CREATE_SUBSCRIPTION_REQUEST + }; + +namespace RuleActionMapper +{ +AWS_DATAZONE_API RuleAction GetRuleActionForName(const Aws::String& name); + +AWS_DATAZONE_API Aws::String GetNameForRuleAction(RuleAction value); +} // namespace RuleActionMapper +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleDetail.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleDetail.h new file mode 100644 index 00000000000..ef78281efba --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleDetail.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + + /** + *

    The details of a rule.

    See Also:

    AWS + * API Reference

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

    The enforcement detail of the metadata form.

    + */ + inline const MetadataFormEnforcementDetail& GetMetadataFormEnforcementDetail() const{ return m_metadataFormEnforcementDetail; } + inline bool MetadataFormEnforcementDetailHasBeenSet() const { return m_metadataFormEnforcementDetailHasBeenSet; } + inline void SetMetadataFormEnforcementDetail(const MetadataFormEnforcementDetail& value) { m_metadataFormEnforcementDetailHasBeenSet = true; m_metadataFormEnforcementDetail = value; } + inline void SetMetadataFormEnforcementDetail(MetadataFormEnforcementDetail&& value) { m_metadataFormEnforcementDetailHasBeenSet = true; m_metadataFormEnforcementDetail = std::move(value); } + inline RuleDetail& WithMetadataFormEnforcementDetail(const MetadataFormEnforcementDetail& value) { SetMetadataFormEnforcementDetail(value); return *this;} + inline RuleDetail& WithMetadataFormEnforcementDetail(MetadataFormEnforcementDetail&& value) { SetMetadataFormEnforcementDetail(std::move(value)); return *this;} + ///@} + private: + + MetadataFormEnforcementDetail m_metadataFormEnforcementDetail; + bool m_metadataFormEnforcementDetailHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleScope.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleScope.h new file mode 100644 index 00000000000..59b7113d057 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleScope.h @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + + /** + *

    The scope of a rule.

    See Also:

    AWS + * API Reference

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

    The asset type included in the rule scope.

    + */ + inline const AssetTypesForRule& GetAssetType() const{ return m_assetType; } + inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; } + inline void SetAssetType(const AssetTypesForRule& value) { m_assetTypeHasBeenSet = true; m_assetType = value; } + inline void SetAssetType(AssetTypesForRule&& value) { m_assetTypeHasBeenSet = true; m_assetType = std::move(value); } + inline RuleScope& WithAssetType(const AssetTypesForRule& value) { SetAssetType(value); return *this;} + inline RuleScope& WithAssetType(AssetTypesForRule&& value) { SetAssetType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The data product included in the rule scope.

    + */ + inline bool GetDataProduct() const{ return m_dataProduct; } + inline bool DataProductHasBeenSet() const { return m_dataProductHasBeenSet; } + inline void SetDataProduct(bool value) { m_dataProductHasBeenSet = true; m_dataProduct = value; } + inline RuleScope& WithDataProduct(bool value) { SetDataProduct(value); return *this;} + ///@} + + ///@{ + /** + *

    The project included in the rule scope.

    + */ + inline const ProjectsForRule& GetProject() const{ return m_project; } + inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; } + inline void SetProject(const ProjectsForRule& value) { m_projectHasBeenSet = true; m_project = value; } + inline void SetProject(ProjectsForRule&& value) { m_projectHasBeenSet = true; m_project = std::move(value); } + inline RuleScope& WithProject(const ProjectsForRule& value) { SetProject(value); return *this;} + inline RuleScope& WithProject(ProjectsForRule&& value) { SetProject(std::move(value)); return *this;} + ///@} + private: + + AssetTypesForRule m_assetType; + bool m_assetTypeHasBeenSet = false; + + bool m_dataProduct; + bool m_dataProductHasBeenSet = false; + + ProjectsForRule m_project; + bool m_projectHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleScopeSelectionMode.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleScopeSelectionMode.h new file mode 100644 index 00000000000..fc5e8400918 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleScopeSelectionMode.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 DataZone +{ +namespace Model +{ + enum class RuleScopeSelectionMode + { + NOT_SET, + ALL, + SPECIFIC + }; + +namespace RuleScopeSelectionModeMapper +{ +AWS_DATAZONE_API RuleScopeSelectionMode GetRuleScopeSelectionModeForName(const Aws::String& name); + +AWS_DATAZONE_API Aws::String GetNameForRuleScopeSelectionMode(RuleScopeSelectionMode value); +} // namespace RuleScopeSelectionModeMapper +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleSummary.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleSummary.h new file mode 100644 index 00000000000..3c3fbebc09a --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleSummary.h @@ -0,0 +1,208 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + + /** + *

    The summary of the rule.

    See Also:

    AWS + * API Reference

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

    The action of the rule.

    + */ + inline const RuleAction& GetAction() const{ return m_action; } + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; } + inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + inline RuleSummary& WithAction(const RuleAction& value) { SetAction(value); return *this;} + inline RuleSummary& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the rule.

    + */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } + inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } + inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } + inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } + inline RuleSummary& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + inline RuleSummary& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + inline RuleSummary& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp at which the rule was last updated.

    + */ + inline const Aws::String& GetLastUpdatedBy() const{ return m_lastUpdatedBy; } + inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; } + inline void SetLastUpdatedBy(const Aws::String& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = value; } + inline void SetLastUpdatedBy(Aws::String&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::move(value); } + inline void SetLastUpdatedBy(const char* value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy.assign(value); } + inline RuleSummary& WithLastUpdatedBy(const Aws::String& value) { SetLastUpdatedBy(value); return *this;} + inline RuleSummary& WithLastUpdatedBy(Aws::String&& value) { SetLastUpdatedBy(std::move(value)); return *this;} + inline RuleSummary& WithLastUpdatedBy(const char* value) { SetLastUpdatedBy(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the rule.

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

    The revision of the rule.

    + */ + inline const Aws::String& GetRevision() const{ return m_revision; } + inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; } + inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; } + inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); } + inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); } + inline RuleSummary& WithRevision(const Aws::String& value) { SetRevision(value); return *this;} + inline RuleSummary& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;} + inline RuleSummary& WithRevision(const char* value) { SetRevision(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of the rule.

    + */ + inline const RuleType& GetRuleType() const{ return m_ruleType; } + inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; } + inline void SetRuleType(const RuleType& value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; } + inline void SetRuleType(RuleType&& value) { m_ruleTypeHasBeenSet = true; m_ruleType = std::move(value); } + inline RuleSummary& WithRuleType(const RuleType& value) { SetRuleType(value); return *this;} + inline RuleSummary& WithRuleType(RuleType&& value) { SetRuleType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The scope of the rule.

    + */ + inline const RuleScope& GetScope() const{ return m_scope; } + inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } + inline void SetScope(const RuleScope& value) { m_scopeHasBeenSet = true; m_scope = value; } + inline void SetScope(RuleScope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } + inline RuleSummary& WithScope(const RuleScope& value) { SetScope(value); return *this;} + inline RuleSummary& WithScope(RuleScope&& value) { SetScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The target of the rule.

    + */ + inline const RuleTarget& GetTarget() const{ return m_target; } + inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } + inline void SetTarget(const RuleTarget& value) { m_targetHasBeenSet = true; m_target = value; } + inline void SetTarget(RuleTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } + inline RuleSummary& WithTarget(const RuleTarget& value) { SetTarget(value); return *this;} + inline RuleSummary& WithTarget(RuleTarget&& value) { SetTarget(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The target type of the rule.

    + */ + inline const RuleTargetType& GetTargetType() const{ return m_targetType; } + inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; } + inline void SetTargetType(const RuleTargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; } + inline void SetTargetType(RuleTargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); } + inline RuleSummary& WithTargetType(const RuleTargetType& value) { SetTargetType(value); return *this;} + inline RuleSummary& WithTargetType(RuleTargetType&& value) { SetTargetType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp at which the rule was last updated.

    + */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } + inline RuleSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline RuleSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + private: + + RuleAction m_action; + bool m_actionHasBeenSet = false; + + Aws::String m_identifier; + bool m_identifierHasBeenSet = false; + + Aws::String m_lastUpdatedBy; + bool m_lastUpdatedByHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_revision; + bool m_revisionHasBeenSet = false; + + RuleType m_ruleType; + bool m_ruleTypeHasBeenSet = false; + + RuleScope m_scope; + bool m_scopeHasBeenSet = false; + + RuleTarget m_target; + bool m_targetHasBeenSet = false; + + RuleTargetType m_targetType; + bool m_targetTypeHasBeenSet = false; + + Aws::Utils::DateTime m_updatedAt; + bool m_updatedAtHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleTarget.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleTarget.h new file mode 100644 index 00000000000..23eb042fced --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleTarget.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + + /** + *

    The target of the rule.

    See Also:

    AWS + * API Reference

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

    The ID of the domain unit.

    + */ + inline const DomainUnitTarget& GetDomainUnitTarget() const{ return m_domainUnitTarget; } + inline bool DomainUnitTargetHasBeenSet() const { return m_domainUnitTargetHasBeenSet; } + inline void SetDomainUnitTarget(const DomainUnitTarget& value) { m_domainUnitTargetHasBeenSet = true; m_domainUnitTarget = value; } + inline void SetDomainUnitTarget(DomainUnitTarget&& value) { m_domainUnitTargetHasBeenSet = true; m_domainUnitTarget = std::move(value); } + inline RuleTarget& WithDomainUnitTarget(const DomainUnitTarget& value) { SetDomainUnitTarget(value); return *this;} + inline RuleTarget& WithDomainUnitTarget(DomainUnitTarget&& value) { SetDomainUnitTarget(std::move(value)); return *this;} + ///@} + private: + + DomainUnitTarget m_domainUnitTarget; + bool m_domainUnitTargetHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleTargetType.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleTargetType.h new file mode 100644 index 00000000000..5f9899b8c3b --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleTargetType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace DataZone +{ +namespace Model +{ + enum class RuleTargetType + { + NOT_SET, + DOMAIN_UNIT + }; + +namespace RuleTargetTypeMapper +{ +AWS_DATAZONE_API RuleTargetType GetRuleTargetTypeForName(const Aws::String& name); + +AWS_DATAZONE_API Aws::String GetNameForRuleTargetType(RuleTargetType value); +} // namespace RuleTargetTypeMapper +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleType.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleType.h new file mode 100644 index 00000000000..23c96afdb72 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/RuleType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace DataZone +{ +namespace Model +{ + enum class RuleType + { + NOT_SET, + METADATA_FORM_ENFORCEMENT + }; + +namespace RuleTypeMapper +{ +AWS_DATAZONE_API RuleType GetRuleTypeForName(const Aws::String& name); + +AWS_DATAZONE_API Aws::String GetNameForRuleType(RuleType value); +} // namespace RuleTypeMapper +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/SubscriptionRequestSummary.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/SubscriptionRequestSummary.h index def07e8fd73..c2ab1c115d9 100644 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/SubscriptionRequestSummary.h +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/SubscriptionRequestSummary.h @@ -7,8 +7,9 @@ #include #include #include -#include #include +#include +#include #include #include #include @@ -97,6 +98,20 @@ namespace Model inline SubscriptionRequestSummary& WithDomainId(const char* value) { SetDomainId(value); return *this;} ///@} + ///@{ + /** + *

    The ID of the existing subscription.

    + */ + inline const Aws::String& GetExistingSubscriptionId() const{ return m_existingSubscriptionId; } + inline bool ExistingSubscriptionIdHasBeenSet() const { return m_existingSubscriptionIdHasBeenSet; } + inline void SetExistingSubscriptionId(const Aws::String& value) { m_existingSubscriptionIdHasBeenSet = true; m_existingSubscriptionId = value; } + inline void SetExistingSubscriptionId(Aws::String&& value) { m_existingSubscriptionIdHasBeenSet = true; m_existingSubscriptionId = std::move(value); } + inline void SetExistingSubscriptionId(const char* value) { m_existingSubscriptionIdHasBeenSet = true; m_existingSubscriptionId.assign(value); } + inline SubscriptionRequestSummary& WithExistingSubscriptionId(const Aws::String& value) { SetExistingSubscriptionId(value); return *this;} + inline SubscriptionRequestSummary& WithExistingSubscriptionId(Aws::String&& value) { SetExistingSubscriptionId(std::move(value)); return *this;} + inline SubscriptionRequestSummary& WithExistingSubscriptionId(const char* value) { SetExistingSubscriptionId(value); return *this;} + ///@} + ///@{ /** *

    The identifier of the subscription request.

    @@ -111,6 +126,20 @@ namespace Model inline SubscriptionRequestSummary& WithId(const char* value) { SetId(value); return *this;} ///@} + ///@{ + /** + *

    The summary of the metadata forms.

    + */ + inline const Aws::Vector& GetMetadataFormsSummary() const{ return m_metadataFormsSummary; } + inline bool MetadataFormsSummaryHasBeenSet() const { return m_metadataFormsSummaryHasBeenSet; } + inline void SetMetadataFormsSummary(const Aws::Vector& value) { m_metadataFormsSummaryHasBeenSet = true; m_metadataFormsSummary = value; } + inline void SetMetadataFormsSummary(Aws::Vector&& value) { m_metadataFormsSummaryHasBeenSet = true; m_metadataFormsSummary = std::move(value); } + inline SubscriptionRequestSummary& WithMetadataFormsSummary(const Aws::Vector& value) { SetMetadataFormsSummary(value); return *this;} + inline SubscriptionRequestSummary& WithMetadataFormsSummary(Aws::Vector&& value) { SetMetadataFormsSummary(std::move(value)); return *this;} + inline SubscriptionRequestSummary& AddMetadataFormsSummary(const MetadataFormSummary& value) { m_metadataFormsSummaryHasBeenSet = true; m_metadataFormsSummary.push_back(value); return *this; } + inline SubscriptionRequestSummary& AddMetadataFormsSummary(MetadataFormSummary&& value) { m_metadataFormsSummaryHasBeenSet = true; m_metadataFormsSummary.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    The reason for the subscription request.

    @@ -219,9 +248,15 @@ namespace Model Aws::String m_domainId; bool m_domainIdHasBeenSet = false; + Aws::String m_existingSubscriptionId; + bool m_existingSubscriptionIdHasBeenSet = false; + Aws::String m_id; bool m_idHasBeenSet = false; + Aws::Vector m_metadataFormsSummary; + bool m_metadataFormsSummaryHasBeenSet = false; + Aws::String m_requestReason; bool m_requestReasonHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateRuleRequest.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateRuleRequest.h new file mode 100644 index 00000000000..5ebdc5b5cf3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateRuleRequest.h @@ -0,0 +1,152 @@ +/** + * 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 DataZone +{ +namespace Model +{ + + /** + */ + class UpdateRuleRequest : public DataZoneRequest + { + public: + AWS_DATAZONE_API UpdateRuleRequest(); + + // 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 "UpdateRule"; } + + AWS_DATAZONE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The description of the rule.

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

    The detail of the rule.

    + */ + inline const RuleDetail& GetDetail() const{ return m_detail; } + inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; } + inline void SetDetail(const RuleDetail& value) { m_detailHasBeenSet = true; m_detail = value; } + inline void SetDetail(RuleDetail&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); } + inline UpdateRuleRequest& WithDetail(const RuleDetail& value) { SetDetail(value); return *this;} + inline UpdateRuleRequest& WithDetail(RuleDetail&& value) { SetDetail(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the domain in which a rule is to be updated.

    + */ + inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; } + inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; } + inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; } + inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); } + inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); } + inline UpdateRuleRequest& WithDomainIdentifier(const Aws::String& value) { SetDomainIdentifier(value); return *this;} + inline UpdateRuleRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;} + inline UpdateRuleRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the rule that is to be updated

    + */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } + inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } + inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } + inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } + inline UpdateRuleRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + inline UpdateRuleRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + inline UpdateRuleRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    Specifies whether to update this rule in the child domain units.

    + */ + inline bool GetIncludeChildDomainUnits() const{ return m_includeChildDomainUnits; } + inline bool IncludeChildDomainUnitsHasBeenSet() const { return m_includeChildDomainUnitsHasBeenSet; } + inline void SetIncludeChildDomainUnits(bool value) { m_includeChildDomainUnitsHasBeenSet = true; m_includeChildDomainUnits = value; } + inline UpdateRuleRequest& WithIncludeChildDomainUnits(bool value) { SetIncludeChildDomainUnits(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the rule.

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

    The scrope of the rule.

    + */ + inline const RuleScope& GetScope() const{ return m_scope; } + inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } + inline void SetScope(const RuleScope& value) { m_scopeHasBeenSet = true; m_scope = value; } + inline void SetScope(RuleScope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } + inline UpdateRuleRequest& WithScope(const RuleScope& value) { SetScope(value); return *this;} + inline UpdateRuleRequest& WithScope(RuleScope&& value) { SetScope(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + RuleDetail m_detail; + bool m_detailHasBeenSet = false; + + Aws::String m_domainIdentifier; + bool m_domainIdentifierHasBeenSet = false; + + Aws::String m_identifier; + bool m_identifierHasBeenSet = false; + + bool m_includeChildDomainUnits; + bool m_includeChildDomainUnitsHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + RuleScope m_scope; + bool m_scopeHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateRuleResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateRuleResult.h new file mode 100644 index 00000000000..b17f9a7d01a --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateRuleResult.h @@ -0,0 +1,239 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace DataZone +{ +namespace Model +{ + class UpdateRuleResult + { + public: + AWS_DATAZONE_API UpdateRuleResult(); + AWS_DATAZONE_API UpdateRuleResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAZONE_API UpdateRuleResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The action of the rule.

    + */ + inline const RuleAction& GetAction() const{ return m_action; } + inline void SetAction(const RuleAction& value) { m_action = value; } + inline void SetAction(RuleAction&& value) { m_action = std::move(value); } + inline UpdateRuleResult& WithAction(const RuleAction& value) { SetAction(value); return *this;} + inline UpdateRuleResult& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp at which the rule was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline UpdateRuleResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline UpdateRuleResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The user who created the rule.

    + */ + inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } + inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; } + inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); } + inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); } + inline UpdateRuleResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} + inline UpdateRuleResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} + inline UpdateRuleResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the rule.

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

    The detail of the rule.

    + */ + inline const RuleDetail& GetDetail() const{ return m_detail; } + inline void SetDetail(const RuleDetail& value) { m_detail = value; } + inline void SetDetail(RuleDetail&& value) { m_detail = std::move(value); } + inline UpdateRuleResult& WithDetail(const RuleDetail& value) { SetDetail(value); return *this;} + inline UpdateRuleResult& WithDetail(RuleDetail&& value) { SetDetail(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The ID of the rule.

    + */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + inline void SetIdentifier(const Aws::String& value) { m_identifier = value; } + inline void SetIdentifier(Aws::String&& value) { m_identifier = std::move(value); } + inline void SetIdentifier(const char* value) { m_identifier.assign(value); } + inline UpdateRuleResult& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + inline UpdateRuleResult& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + inline UpdateRuleResult& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp at which the rule was last updated.

    + */ + inline const Aws::String& GetLastUpdatedBy() const{ return m_lastUpdatedBy; } + inline void SetLastUpdatedBy(const Aws::String& value) { m_lastUpdatedBy = value; } + inline void SetLastUpdatedBy(Aws::String&& value) { m_lastUpdatedBy = std::move(value); } + inline void SetLastUpdatedBy(const char* value) { m_lastUpdatedBy.assign(value); } + inline UpdateRuleResult& WithLastUpdatedBy(const Aws::String& value) { SetLastUpdatedBy(value); return *this;} + inline UpdateRuleResult& WithLastUpdatedBy(Aws::String&& value) { SetLastUpdatedBy(std::move(value)); return *this;} + inline UpdateRuleResult& WithLastUpdatedBy(const char* value) { SetLastUpdatedBy(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the rule.

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

    The revision of the rule.

    + */ + inline const Aws::String& GetRevision() const{ return m_revision; } + inline void SetRevision(const Aws::String& value) { m_revision = value; } + inline void SetRevision(Aws::String&& value) { m_revision = std::move(value); } + inline void SetRevision(const char* value) { m_revision.assign(value); } + inline UpdateRuleResult& WithRevision(const Aws::String& value) { SetRevision(value); return *this;} + inline UpdateRuleResult& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;} + inline UpdateRuleResult& WithRevision(const char* value) { SetRevision(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of the rule.

    + */ + inline const RuleType& GetRuleType() const{ return m_ruleType; } + inline void SetRuleType(const RuleType& value) { m_ruleType = value; } + inline void SetRuleType(RuleType&& value) { m_ruleType = std::move(value); } + inline UpdateRuleResult& WithRuleType(const RuleType& value) { SetRuleType(value); return *this;} + inline UpdateRuleResult& WithRuleType(RuleType&& value) { SetRuleType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The scope of the rule.

    + */ + inline const RuleScope& GetScope() const{ return m_scope; } + inline void SetScope(const RuleScope& value) { m_scope = value; } + inline void SetScope(RuleScope&& value) { m_scope = std::move(value); } + inline UpdateRuleResult& WithScope(const RuleScope& value) { SetScope(value); return *this;} + inline UpdateRuleResult& WithScope(RuleScope&& value) { SetScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The target of the rule.

    + */ + inline const RuleTarget& GetTarget() const{ return m_target; } + inline void SetTarget(const RuleTarget& value) { m_target = value; } + inline void SetTarget(RuleTarget&& value) { m_target = std::move(value); } + inline UpdateRuleResult& WithTarget(const RuleTarget& value) { SetTarget(value); return *this;} + inline UpdateRuleResult& WithTarget(RuleTarget&& value) { SetTarget(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The timestamp at which the rule was last updated.

    + */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline UpdateRuleResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline UpdateRuleResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + RuleAction m_action; + + Aws::Utils::DateTime m_createdAt; + + Aws::String m_createdBy; + + Aws::String m_description; + + RuleDetail m_detail; + + Aws::String m_identifier; + + Aws::String m_lastUpdatedBy; + + Aws::String m_name; + + Aws::String m_revision; + + RuleType m_ruleType; + + RuleScope m_scope; + + RuleTarget m_target; + + Aws::Utils::DateTime m_updatedAt; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateSubscriptionRequestResult.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateSubscriptionRequestResult.h index 0cde0541b44..1542c11f077 100644 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateSubscriptionRequestResult.h +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/UpdateSubscriptionRequestResult.h @@ -7,8 +7,9 @@ #include #include #include -#include #include +#include +#include #include #include #include @@ -89,6 +90,19 @@ namespace Model inline UpdateSubscriptionRequestResult& WithDomainId(const char* value) { SetDomainId(value); return *this;} ///@} + ///@{ + /** + *

    The ID of the existing subscription.

    + */ + inline const Aws::String& GetExistingSubscriptionId() const{ return m_existingSubscriptionId; } + inline void SetExistingSubscriptionId(const Aws::String& value) { m_existingSubscriptionId = value; } + inline void SetExistingSubscriptionId(Aws::String&& value) { m_existingSubscriptionId = std::move(value); } + inline void SetExistingSubscriptionId(const char* value) { m_existingSubscriptionId.assign(value); } + inline UpdateSubscriptionRequestResult& WithExistingSubscriptionId(const Aws::String& value) { SetExistingSubscriptionId(value); return *this;} + inline UpdateSubscriptionRequestResult& WithExistingSubscriptionId(Aws::String&& value) { SetExistingSubscriptionId(std::move(value)); return *this;} + inline UpdateSubscriptionRequestResult& WithExistingSubscriptionId(const char* value) { SetExistingSubscriptionId(value); return *this;} + ///@} + ///@{ /** *

    The identifier of the subscription request that is to be updated.

    @@ -102,6 +116,19 @@ namespace Model inline UpdateSubscriptionRequestResult& WithId(const char* value) { SetId(value); return *this;} ///@} + ///@{ + /** + *

    Metadata forms included in the subscription request.

    + */ + inline const Aws::Vector& GetMetadataForms() const{ return m_metadataForms; } + inline void SetMetadataForms(const Aws::Vector& value) { m_metadataForms = value; } + inline void SetMetadataForms(Aws::Vector&& value) { m_metadataForms = std::move(value); } + inline UpdateSubscriptionRequestResult& WithMetadataForms(const Aws::Vector& value) { SetMetadataForms(value); return *this;} + inline UpdateSubscriptionRequestResult& WithMetadataForms(Aws::Vector&& value) { SetMetadataForms(std::move(value)); return *this;} + inline UpdateSubscriptionRequestResult& AddMetadataForms(const FormOutput& value) { m_metadataForms.push_back(value); return *this; } + inline UpdateSubscriptionRequestResult& AddMetadataForms(FormOutput&& value) { m_metadataForms.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    The reason for the UpdateSubscriptionRequest action.

    @@ -210,8 +237,12 @@ namespace Model Aws::String m_domainId; + Aws::String m_existingSubscriptionId; + Aws::String m_id; + Aws::Vector m_metadataForms; + Aws::String m_requestReason; Aws::String m_reviewerId; diff --git a/generated/src/aws-cpp-sdk-datazone/source/DataZoneClient.cpp b/generated/src/aws-cpp-sdk-datazone/source/DataZoneClient.cpp index 51cbdbb4e76..d2e0ce2353c 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/DataZoneClient.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/DataZoneClient.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -68,6 +69,7 @@ #include #include #include +#include #include #include #include @@ -96,6 +98,7 @@ #include #include #include +#include #include #include #include @@ -122,6 +125,7 @@ #include #include #include +#include #include #include #include @@ -156,6 +160,7 @@ #include #include #include +#include #include #include #include @@ -1282,6 +1287,40 @@ CreateProjectMembershipOutcome DataZoneClient::CreateProjectMembership(const Cre {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateRuleOutcome DataZoneClient::CreateRule(const CreateRuleRequest& request) const +{ + AWS_OPERATION_GUARD(CreateRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DomainIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateRule", "Required field: DomainIdentifier, is not set"); + return CreateRuleOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DomainIdentifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateRule", + {{ 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( + [&]()-> CreateRuleOutcome { + 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, CreateRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/domains/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDomainIdentifier()); + endpointResolutionOutcome.GetResult().AddPathSegments("/rules"); + return CreateRuleOutcome(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()}}); +} + CreateSubscriptionGrantOutcome DataZoneClient::CreateSubscriptionGrant(const CreateSubscriptionGrantRequest& request) const { AWS_OPERATION_GUARD(CreateSubscriptionGrant); @@ -2113,6 +2152,46 @@ DeleteProjectMembershipOutcome DataZoneClient::DeleteProjectMembership(const Del {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteRuleOutcome DataZoneClient::DeleteRule(const DeleteRuleRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DomainIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteRule", "Required field: DomainIdentifier, is not set"); + return DeleteRuleOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DomainIdentifier]", false)); + } + if (!request.IdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteRule", "Required field: Identifier, is not set"); + return DeleteRuleOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Identifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRule", + {{ 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( + [&]()-> DeleteRuleOutcome { + 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, DeleteRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/domains/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDomainIdentifier()); + endpointResolutionOutcome.GetResult().AddPathSegments("/rules/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetIdentifier()); + return DeleteRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteSubscriptionGrantOutcome DataZoneClient::DeleteSubscriptionGrant(const DeleteSubscriptionGrantRequest& request) const { AWS_OPERATION_GUARD(DeleteSubscriptionGrant); @@ -3261,6 +3340,46 @@ GetProjectOutcome DataZoneClient::GetProject(const GetProjectRequest& request) c {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetRuleOutcome DataZoneClient::GetRule(const GetRuleRequest& request) const +{ + AWS_OPERATION_GUARD(GetRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DomainIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetRule", "Required field: DomainIdentifier, is not set"); + return GetRuleOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DomainIdentifier]", false)); + } + if (!request.IdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetRule", "Required field: Identifier, is not set"); + return GetRuleOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Identifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetRule", + {{ 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( + [&]()-> GetRuleOutcome { + 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, GetRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/domains/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDomainIdentifier()); + endpointResolutionOutcome.GetResult().AddPathSegments("/rules/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetIdentifier()); + return GetRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetSubscriptionOutcome DataZoneClient::GetSubscription(const GetSubscriptionRequest& request) const { AWS_OPERATION_GUARD(GetSubscription); @@ -4306,6 +4425,52 @@ ListProjectsOutcome DataZoneClient::ListProjects(const ListProjectsRequest& requ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListRulesOutcome DataZoneClient::ListRules(const ListRulesRequest& request) const +{ + AWS_OPERATION_GUARD(ListRules); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListRules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DomainIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListRules", "Required field: DomainIdentifier, is not set"); + return ListRulesOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DomainIdentifier]", false)); + } + if (!request.TargetIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListRules", "Required field: TargetIdentifier, is not set"); + return ListRulesOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TargetIdentifier]", false)); + } + if (!request.TargetTypeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListRules", "Required field: TargetType, is not set"); + return ListRulesOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TargetType]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListRules, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListRules, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListRules", + {{ 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( + [&]()-> ListRulesOutcome { + 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, ListRules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/domains/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDomainIdentifier()); + endpointResolutionOutcome.GetResult().AddPathSegments("/list-rules/"); + endpointResolutionOutcome.GetResult().AddPathSegment(RuleTargetTypeMapper::GetNameForRuleTargetType(request.GetTargetType())); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTargetIdentifier()); + return ListRulesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListSubscriptionGrantsOutcome DataZoneClient::ListSubscriptionGrants(const ListSubscriptionGrantsRequest& request) const { AWS_OPERATION_GUARD(ListSubscriptionGrants); @@ -5635,6 +5800,46 @@ UpdateProjectOutcome DataZoneClient::UpdateProject(const UpdateProjectRequest& r {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateRuleOutcome DataZoneClient::UpdateRule(const UpdateRuleRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DomainIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateRule", "Required field: DomainIdentifier, is not set"); + return UpdateRuleOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DomainIdentifier]", false)); + } + if (!request.IdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateRule", "Required field: Identifier, is not set"); + return UpdateRuleOutcome(Aws::Client::AWSError(DataZoneErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Identifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateRule", + {{ 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( + [&]()-> UpdateRuleOutcome { + 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, UpdateRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/domains/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDomainIdentifier()); + endpointResolutionOutcome.GetResult().AddPathSegments("/rules/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetIdentifier()); + return UpdateRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateSubscriptionGrantStatusOutcome DataZoneClient::UpdateSubscriptionGrantStatus(const UpdateSubscriptionGrantStatusRequest& request) const { AWS_OPERATION_GUARD(UpdateSubscriptionGrantStatus); diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/AcceptSubscriptionRequestResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/AcceptSubscriptionRequestResult.cpp index c9805064e03..39b97fcda28 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/AcceptSubscriptionRequestResult.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/AcceptSubscriptionRequestResult.cpp @@ -55,12 +55,27 @@ AcceptSubscriptionRequestResult& AcceptSubscriptionRequestResult::operator =(con } + if(jsonValue.ValueExists("existingSubscriptionId")) + { + m_existingSubscriptionId = jsonValue.GetString("existingSubscriptionId"); + + } + if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); } + if(jsonValue.ValueExists("metadataForms")) + { + Aws::Utils::Array metadataFormsJsonList = jsonValue.GetArray("metadataForms"); + for(unsigned metadataFormsIndex = 0; metadataFormsIndex < metadataFormsJsonList.GetLength(); ++metadataFormsIndex) + { + m_metadataForms.push_back(metadataFormsJsonList[metadataFormsIndex].AsObject()); + } + } + if(jsonValue.ValueExists("requestReason")) { m_requestReason = jsonValue.GetString("requestReason"); diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/AssetTypesForRule.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/AssetTypesForRule.cpp new file mode 100644 index 00000000000..bc7f49f40c9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/AssetTypesForRule.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 DataZone +{ +namespace Model +{ + +AssetTypesForRule::AssetTypesForRule() : + m_selectionMode(RuleScopeSelectionMode::NOT_SET), + m_selectionModeHasBeenSet(false), + m_specificAssetTypesHasBeenSet(false) +{ +} + +AssetTypesForRule::AssetTypesForRule(JsonView jsonValue) + : AssetTypesForRule() +{ + *this = jsonValue; +} + +AssetTypesForRule& AssetTypesForRule::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("selectionMode")) + { + m_selectionMode = RuleScopeSelectionModeMapper::GetRuleScopeSelectionModeForName(jsonValue.GetString("selectionMode")); + + m_selectionModeHasBeenSet = true; + } + + if(jsonValue.ValueExists("specificAssetTypes")) + { + Aws::Utils::Array specificAssetTypesJsonList = jsonValue.GetArray("specificAssetTypes"); + for(unsigned specificAssetTypesIndex = 0; specificAssetTypesIndex < specificAssetTypesJsonList.GetLength(); ++specificAssetTypesIndex) + { + m_specificAssetTypes.push_back(specificAssetTypesJsonList[specificAssetTypesIndex].AsString()); + } + m_specificAssetTypesHasBeenSet = true; + } + + return *this; +} + +JsonValue AssetTypesForRule::Jsonize() const +{ + JsonValue payload; + + if(m_selectionModeHasBeenSet) + { + payload.WithString("selectionMode", RuleScopeSelectionModeMapper::GetNameForRuleScopeSelectionMode(m_selectionMode)); + } + + if(m_specificAssetTypesHasBeenSet) + { + Aws::Utils::Array specificAssetTypesJsonList(m_specificAssetTypes.size()); + for(unsigned specificAssetTypesIndex = 0; specificAssetTypesIndex < specificAssetTypesJsonList.GetLength(); ++specificAssetTypesIndex) + { + specificAssetTypesJsonList[specificAssetTypesIndex].AsString(m_specificAssetTypes[specificAssetTypesIndex]); + } + payload.WithArray("specificAssetTypes", std::move(specificAssetTypesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/CreateRuleRequest.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/CreateRuleRequest.cpp new file mode 100644 index 00000000000..986b86505b4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/CreateRuleRequest.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateRuleRequest::CreateRuleRequest() : + m_action(RuleAction::NOT_SET), + m_actionHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_descriptionHasBeenSet(false), + m_detailHasBeenSet(false), + m_domainIdentifierHasBeenSet(false), + m_nameHasBeenSet(false), + m_scopeHasBeenSet(false), + m_targetHasBeenSet(false) +{ +} + +Aws::String CreateRuleRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("action", RuleActionMapper::GetNameForRuleAction(m_action)); + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_detailHasBeenSet) + { + payload.WithObject("detail", m_detail.Jsonize()); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_scopeHasBeenSet) + { + payload.WithObject("scope", m_scope.Jsonize()); + + } + + if(m_targetHasBeenSet) + { + payload.WithObject("target", m_target.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/CreateRuleResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/CreateRuleResult.cpp new file mode 100644 index 00000000000..36eda8ccd32 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/CreateRuleResult.cpp @@ -0,0 +1,112 @@ +/** + * 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::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateRuleResult::CreateRuleResult() : + m_action(RuleAction::NOT_SET), + m_ruleType(RuleType::NOT_SET), + m_targetType(RuleTargetType::NOT_SET) +{ +} + +CreateRuleResult::CreateRuleResult(const Aws::AmazonWebServiceResult& result) + : CreateRuleResult() +{ + *this = result; +} + +CreateRuleResult& CreateRuleResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("action")) + { + m_action = RuleActionMapper::GetRuleActionForName(jsonValue.GetString("action")); + + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + } + + if(jsonValue.ValueExists("createdBy")) + { + m_createdBy = jsonValue.GetString("createdBy"); + + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + } + + if(jsonValue.ValueExists("detail")) + { + m_detail = jsonValue.GetObject("detail"); + + } + + if(jsonValue.ValueExists("identifier")) + { + m_identifier = jsonValue.GetString("identifier"); + + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + } + + if(jsonValue.ValueExists("ruleType")) + { + m_ruleType = RuleTypeMapper::GetRuleTypeForName(jsonValue.GetString("ruleType")); + + } + + if(jsonValue.ValueExists("scope")) + { + m_scope = jsonValue.GetObject("scope"); + + } + + if(jsonValue.ValueExists("target")) + { + m_target = jsonValue.GetObject("target"); + + } + + if(jsonValue.ValueExists("targetType")) + { + m_targetType = RuleTargetTypeMapper::GetRuleTargetTypeForName(jsonValue.GetString("targetType")); + + } + + + 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-datazone/source/model/CreateSubscriptionRequestRequest.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/CreateSubscriptionRequestRequest.cpp index 56d4d562df4..c076febf033 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/CreateSubscriptionRequestRequest.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/CreateSubscriptionRequestRequest.cpp @@ -16,6 +16,7 @@ CreateSubscriptionRequestRequest::CreateSubscriptionRequestRequest() : m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_domainIdentifierHasBeenSet(false), + m_metadataFormsHasBeenSet(false), m_requestReasonHasBeenSet(false), m_subscribedListingsHasBeenSet(false), m_subscribedPrincipalsHasBeenSet(false) @@ -32,6 +33,17 @@ Aws::String CreateSubscriptionRequestRequest::SerializePayload() const } + if(m_metadataFormsHasBeenSet) + { + Aws::Utils::Array metadataFormsJsonList(m_metadataForms.size()); + for(unsigned metadataFormsIndex = 0; metadataFormsIndex < metadataFormsJsonList.GetLength(); ++metadataFormsIndex) + { + metadataFormsJsonList[metadataFormsIndex].AsObject(m_metadataForms[metadataFormsIndex].Jsonize()); + } + payload.WithArray("metadataForms", std::move(metadataFormsJsonList)); + + } + if(m_requestReasonHasBeenSet) { payload.WithString("requestReason", m_requestReason); diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/CreateSubscriptionRequestResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/CreateSubscriptionRequestResult.cpp index 86db3941843..32ece7b1166 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/CreateSubscriptionRequestResult.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/CreateSubscriptionRequestResult.cpp @@ -55,12 +55,27 @@ CreateSubscriptionRequestResult& CreateSubscriptionRequestResult::operator =(con } + if(jsonValue.ValueExists("existingSubscriptionId")) + { + m_existingSubscriptionId = jsonValue.GetString("existingSubscriptionId"); + + } + if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); } + if(jsonValue.ValueExists("metadataForms")) + { + Aws::Utils::Array metadataFormsJsonList = jsonValue.GetArray("metadataForms"); + for(unsigned metadataFormsIndex = 0; metadataFormsIndex < metadataFormsJsonList.GetLength(); ++metadataFormsIndex) + { + m_metadataForms.push_back(metadataFormsJsonList[metadataFormsIndex].AsObject()); + } + } + if(jsonValue.ValueExists("requestReason")) { m_requestReason = jsonValue.GetString("requestReason"); diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DeleteRuleRequest.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DeleteRuleRequest.cpp new file mode 100644 index 00000000000..42318572a5d --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DeleteRuleRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteRuleRequest::DeleteRuleRequest() : + m_domainIdentifierHasBeenSet(false), + m_identifierHasBeenSet(false) +{ +} + +Aws::String DeleteRuleRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DeleteRuleResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DeleteRuleResult.cpp new file mode 100644 index 00000000000..be519b3d1a9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DeleteRuleResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteRuleResult::DeleteRuleResult() +{ +} + +DeleteRuleResult::DeleteRuleResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteRuleResult& DeleteRuleResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DomainUnitTarget.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DomainUnitTarget.cpp new file mode 100644 index 00000000000..5696d814175 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DomainUnitTarget.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace DataZone +{ +namespace Model +{ + +DomainUnitTarget::DomainUnitTarget() : + m_domainUnitIdHasBeenSet(false), + m_includeChildDomainUnits(false), + m_includeChildDomainUnitsHasBeenSet(false) +{ +} + +DomainUnitTarget::DomainUnitTarget(JsonView jsonValue) + : DomainUnitTarget() +{ + *this = jsonValue; +} + +DomainUnitTarget& DomainUnitTarget::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("domainUnitId")) + { + m_domainUnitId = jsonValue.GetString("domainUnitId"); + + m_domainUnitIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("includeChildDomainUnits")) + { + m_includeChildDomainUnits = jsonValue.GetBool("includeChildDomainUnits"); + + m_includeChildDomainUnitsHasBeenSet = true; + } + + return *this; +} + +JsonValue DomainUnitTarget::Jsonize() const +{ + JsonValue payload; + + if(m_domainUnitIdHasBeenSet) + { + payload.WithString("domainUnitId", m_domainUnitId); + + } + + if(m_includeChildDomainUnitsHasBeenSet) + { + payload.WithBool("includeChildDomainUnits", m_includeChildDomainUnits); + + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/GetRuleRequest.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/GetRuleRequest.cpp new file mode 100644 index 00000000000..fd0825c8923 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/GetRuleRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetRuleRequest::GetRuleRequest() : + m_domainIdentifierHasBeenSet(false), + m_identifierHasBeenSet(false), + m_revisionHasBeenSet(false) +{ +} + +Aws::String GetRuleRequest::SerializePayload() const +{ + return {}; +} + +void GetRuleRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_revisionHasBeenSet) + { + ss << m_revision; + uri.AddQueryStringParameter("revision", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/GetRuleResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/GetRuleResult.cpp new file mode 100644 index 00000000000..a4fe60ca38c --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/GetRuleResult.cpp @@ -0,0 +1,130 @@ +/** + * 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::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetRuleResult::GetRuleResult() : + m_action(RuleAction::NOT_SET), + m_ruleType(RuleType::NOT_SET), + m_targetType(RuleTargetType::NOT_SET) +{ +} + +GetRuleResult::GetRuleResult(const Aws::AmazonWebServiceResult& result) + : GetRuleResult() +{ + *this = result; +} + +GetRuleResult& GetRuleResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("action")) + { + m_action = RuleActionMapper::GetRuleActionForName(jsonValue.GetString("action")); + + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + } + + if(jsonValue.ValueExists("createdBy")) + { + m_createdBy = jsonValue.GetString("createdBy"); + + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + } + + if(jsonValue.ValueExists("detail")) + { + m_detail = jsonValue.GetObject("detail"); + + } + + if(jsonValue.ValueExists("identifier")) + { + m_identifier = jsonValue.GetString("identifier"); + + } + + if(jsonValue.ValueExists("lastUpdatedBy")) + { + m_lastUpdatedBy = jsonValue.GetString("lastUpdatedBy"); + + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + } + + if(jsonValue.ValueExists("revision")) + { + m_revision = jsonValue.GetString("revision"); + + } + + if(jsonValue.ValueExists("ruleType")) + { + m_ruleType = RuleTypeMapper::GetRuleTypeForName(jsonValue.GetString("ruleType")); + + } + + if(jsonValue.ValueExists("scope")) + { + m_scope = jsonValue.GetObject("scope"); + + } + + if(jsonValue.ValueExists("target")) + { + m_target = jsonValue.GetObject("target"); + + } + + if(jsonValue.ValueExists("targetType")) + { + m_targetType = RuleTargetTypeMapper::GetRuleTargetTypeForName(jsonValue.GetString("targetType")); + + } + + if(jsonValue.ValueExists("updatedAt")) + { + m_updatedAt = jsonValue.GetDouble("updatedAt"); + + } + + + 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-datazone/source/model/GetSubscriptionRequestDetailsResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/GetSubscriptionRequestDetailsResult.cpp index 66b301885c9..1a1fcc63713 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/GetSubscriptionRequestDetailsResult.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/GetSubscriptionRequestDetailsResult.cpp @@ -55,12 +55,27 @@ GetSubscriptionRequestDetailsResult& GetSubscriptionRequestDetailsResult::operat } + if(jsonValue.ValueExists("existingSubscriptionId")) + { + m_existingSubscriptionId = jsonValue.GetString("existingSubscriptionId"); + + } + if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); } + if(jsonValue.ValueExists("metadataForms")) + { + Aws::Utils::Array metadataFormsJsonList = jsonValue.GetArray("metadataForms"); + for(unsigned metadataFormsIndex = 0; metadataFormsIndex < metadataFormsJsonList.GetLength(); ++metadataFormsIndex) + { + m_metadataForms.push_back(metadataFormsJsonList[metadataFormsIndex].AsObject()); + } + } + if(jsonValue.ValueExists("requestReason")) { m_requestReason = jsonValue.GetString("requestReason"); diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/ListRulesRequest.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/ListRulesRequest.cpp new file mode 100644 index 00000000000..d9aab110f69 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/ListRulesRequest.cpp @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListRulesRequest::ListRulesRequest() : + m_action(RuleAction::NOT_SET), + m_actionHasBeenSet(false), + m_assetTypesHasBeenSet(false), + m_dataProduct(false), + m_dataProductHasBeenSet(false), + m_domainIdentifierHasBeenSet(false), + m_includeCascaded(false), + m_includeCascadedHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_projectIdsHasBeenSet(false), + m_ruleType(RuleType::NOT_SET), + m_ruleTypeHasBeenSet(false), + m_targetIdentifierHasBeenSet(false), + m_targetType(RuleTargetType::NOT_SET), + m_targetTypeHasBeenSet(false) +{ +} + +Aws::String ListRulesRequest::SerializePayload() const +{ + return {}; +} + +void ListRulesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_actionHasBeenSet) + { + ss << RuleActionMapper::GetNameForRuleAction(m_action); + uri.AddQueryStringParameter("ruleAction", ss.str()); + ss.str(""); + } + + if(m_assetTypesHasBeenSet) + { + for(const auto& item : m_assetTypes) + { + ss << item; + uri.AddQueryStringParameter("assetTypes", ss.str()); + ss.str(""); + } + } + + if(m_dataProductHasBeenSet) + { + ss << m_dataProduct; + uri.AddQueryStringParameter("dataProduct", ss.str()); + ss.str(""); + } + + if(m_includeCascadedHasBeenSet) + { + ss << m_includeCascaded; + uri.AddQueryStringParameter("includeCascaded", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_projectIdsHasBeenSet) + { + for(const auto& item : m_projectIds) + { + ss << item; + uri.AddQueryStringParameter("projectIds", ss.str()); + ss.str(""); + } + } + + if(m_ruleTypeHasBeenSet) + { + ss << RuleTypeMapper::GetNameForRuleType(m_ruleType); + uri.AddQueryStringParameter("ruleType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/ListRulesResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/ListRulesResult.cpp new file mode 100644 index 00000000000..361d1059dda --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/ListRulesResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListRulesResult::ListRulesResult() +{ +} + +ListRulesResult::ListRulesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListRulesResult& ListRulesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("items")) + { + Aws::Utils::Array itemsJsonList = jsonValue.GetArray("items"); + for(unsigned itemsIndex = 0; itemsIndex < itemsJsonList.GetLength(); ++itemsIndex) + { + m_items.push_back(itemsJsonList[itemsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormEnforcementDetail.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormEnforcementDetail.cpp new file mode 100644 index 00000000000..09bf4254318 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormEnforcementDetail.cpp @@ -0,0 +1,67 @@ +/** + * 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 DataZone +{ +namespace Model +{ + +MetadataFormEnforcementDetail::MetadataFormEnforcementDetail() : + m_requiredMetadataFormsHasBeenSet(false) +{ +} + +MetadataFormEnforcementDetail::MetadataFormEnforcementDetail(JsonView jsonValue) + : MetadataFormEnforcementDetail() +{ + *this = jsonValue; +} + +MetadataFormEnforcementDetail& MetadataFormEnforcementDetail::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("requiredMetadataForms")) + { + Aws::Utils::Array requiredMetadataFormsJsonList = jsonValue.GetArray("requiredMetadataForms"); + for(unsigned requiredMetadataFormsIndex = 0; requiredMetadataFormsIndex < requiredMetadataFormsJsonList.GetLength(); ++requiredMetadataFormsIndex) + { + m_requiredMetadataForms.push_back(requiredMetadataFormsJsonList[requiredMetadataFormsIndex].AsObject()); + } + m_requiredMetadataFormsHasBeenSet = true; + } + + return *this; +} + +JsonValue MetadataFormEnforcementDetail::Jsonize() const +{ + JsonValue payload; + + if(m_requiredMetadataFormsHasBeenSet) + { + Aws::Utils::Array requiredMetadataFormsJsonList(m_requiredMetadataForms.size()); + for(unsigned requiredMetadataFormsIndex = 0; requiredMetadataFormsIndex < requiredMetadataFormsJsonList.GetLength(); ++requiredMetadataFormsIndex) + { + requiredMetadataFormsJsonList[requiredMetadataFormsIndex].AsObject(m_requiredMetadataForms[requiredMetadataFormsIndex].Jsonize()); + } + payload.WithArray("requiredMetadataForms", std::move(requiredMetadataFormsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormReference.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormReference.cpp new file mode 100644 index 00000000000..2a0bebf2b7d --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormReference.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace DataZone +{ +namespace Model +{ + +MetadataFormReference::MetadataFormReference() : + m_typeIdentifierHasBeenSet(false), + m_typeRevisionHasBeenSet(false) +{ +} + +MetadataFormReference::MetadataFormReference(JsonView jsonValue) + : MetadataFormReference() +{ + *this = jsonValue; +} + +MetadataFormReference& MetadataFormReference::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("typeIdentifier")) + { + m_typeIdentifier = jsonValue.GetString("typeIdentifier"); + + m_typeIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("typeRevision")) + { + m_typeRevision = jsonValue.GetString("typeRevision"); + + m_typeRevisionHasBeenSet = true; + } + + return *this; +} + +JsonValue MetadataFormReference::Jsonize() const +{ + JsonValue payload; + + if(m_typeIdentifierHasBeenSet) + { + payload.WithString("typeIdentifier", m_typeIdentifier); + + } + + if(m_typeRevisionHasBeenSet) + { + payload.WithString("typeRevision", m_typeRevision); + + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormSummary.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormSummary.cpp new file mode 100644 index 00000000000..44fce53fa01 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/MetadataFormSummary.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 DataZone +{ +namespace Model +{ + +MetadataFormSummary::MetadataFormSummary() : + m_formNameHasBeenSet(false), + m_typeNameHasBeenSet(false), + m_typeRevisionHasBeenSet(false) +{ +} + +MetadataFormSummary::MetadataFormSummary(JsonView jsonValue) + : MetadataFormSummary() +{ + *this = jsonValue; +} + +MetadataFormSummary& MetadataFormSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("formName")) + { + m_formName = jsonValue.GetString("formName"); + + m_formNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("typeName")) + { + m_typeName = jsonValue.GetString("typeName"); + + m_typeNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("typeRevision")) + { + m_typeRevision = jsonValue.GetString("typeRevision"); + + m_typeRevisionHasBeenSet = true; + } + + return *this; +} + +JsonValue MetadataFormSummary::Jsonize() const +{ + JsonValue payload; + + if(m_formNameHasBeenSet) + { + payload.WithString("formName", m_formName); + + } + + if(m_typeNameHasBeenSet) + { + payload.WithString("typeName", m_typeName); + + } + + if(m_typeRevisionHasBeenSet) + { + payload.WithString("typeRevision", m_typeRevision); + + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/ProjectsForRule.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/ProjectsForRule.cpp new file mode 100644 index 00000000000..1a1378c55f6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/ProjectsForRule.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 DataZone +{ +namespace Model +{ + +ProjectsForRule::ProjectsForRule() : + m_selectionMode(RuleScopeSelectionMode::NOT_SET), + m_selectionModeHasBeenSet(false), + m_specificProjectsHasBeenSet(false) +{ +} + +ProjectsForRule::ProjectsForRule(JsonView jsonValue) + : ProjectsForRule() +{ + *this = jsonValue; +} + +ProjectsForRule& ProjectsForRule::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("selectionMode")) + { + m_selectionMode = RuleScopeSelectionModeMapper::GetRuleScopeSelectionModeForName(jsonValue.GetString("selectionMode")); + + m_selectionModeHasBeenSet = true; + } + + if(jsonValue.ValueExists("specificProjects")) + { + Aws::Utils::Array specificProjectsJsonList = jsonValue.GetArray("specificProjects"); + for(unsigned specificProjectsIndex = 0; specificProjectsIndex < specificProjectsJsonList.GetLength(); ++specificProjectsIndex) + { + m_specificProjects.push_back(specificProjectsJsonList[specificProjectsIndex].AsString()); + } + m_specificProjectsHasBeenSet = true; + } + + return *this; +} + +JsonValue ProjectsForRule::Jsonize() const +{ + JsonValue payload; + + if(m_selectionModeHasBeenSet) + { + payload.WithString("selectionMode", RuleScopeSelectionModeMapper::GetNameForRuleScopeSelectionMode(m_selectionMode)); + } + + if(m_specificProjectsHasBeenSet) + { + Aws::Utils::Array specificProjectsJsonList(m_specificProjects.size()); + for(unsigned specificProjectsIndex = 0; specificProjectsIndex < specificProjectsJsonList.GetLength(); ++specificProjectsIndex) + { + specificProjectsJsonList[specificProjectsIndex].AsString(m_specificProjects[specificProjectsIndex]); + } + payload.WithArray("specificProjects", std::move(specificProjectsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RejectSubscriptionRequestResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RejectSubscriptionRequestResult.cpp index 98296e9fb17..82b491ab5ce 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/RejectSubscriptionRequestResult.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RejectSubscriptionRequestResult.cpp @@ -55,12 +55,27 @@ RejectSubscriptionRequestResult& RejectSubscriptionRequestResult::operator =(con } + if(jsonValue.ValueExists("existingSubscriptionId")) + { + m_existingSubscriptionId = jsonValue.GetString("existingSubscriptionId"); + + } + if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); } + if(jsonValue.ValueExists("metadataForms")) + { + Aws::Utils::Array metadataFormsJsonList = jsonValue.GetArray("metadataForms"); + for(unsigned metadataFormsIndex = 0; metadataFormsIndex < metadataFormsJsonList.GetLength(); ++metadataFormsIndex) + { + m_metadataForms.push_back(metadataFormsJsonList[metadataFormsIndex].AsObject()); + } + } + if(jsonValue.ValueExists("requestReason")) { m_requestReason = jsonValue.GetString("requestReason"); diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RuleAction.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RuleAction.cpp new file mode 100644 index 00000000000..7d7647ad8dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RuleAction.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace DataZone + { + namespace Model + { + namespace RuleActionMapper + { + + static const int CREATE_SUBSCRIPTION_REQUEST_HASH = HashingUtils::HashString("CREATE_SUBSCRIPTION_REQUEST"); + + + RuleAction GetRuleActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CREATE_SUBSCRIPTION_REQUEST_HASH) + { + return RuleAction::CREATE_SUBSCRIPTION_REQUEST; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleAction::NOT_SET; + } + + Aws::String GetNameForRuleAction(RuleAction enumValue) + { + switch(enumValue) + { + case RuleAction::NOT_SET: + return {}; + case RuleAction::CREATE_SUBSCRIPTION_REQUEST: + return "CREATE_SUBSCRIPTION_REQUEST"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleActionMapper + } // namespace Model + } // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RuleDetail.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RuleDetail.cpp new file mode 100644 index 00000000000..dfb8b915922 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RuleDetail.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 DataZone +{ +namespace Model +{ + +RuleDetail::RuleDetail() : + m_metadataFormEnforcementDetailHasBeenSet(false) +{ +} + +RuleDetail::RuleDetail(JsonView jsonValue) + : RuleDetail() +{ + *this = jsonValue; +} + +RuleDetail& RuleDetail::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("metadataFormEnforcementDetail")) + { + m_metadataFormEnforcementDetail = jsonValue.GetObject("metadataFormEnforcementDetail"); + + m_metadataFormEnforcementDetailHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleDetail::Jsonize() const +{ + JsonValue payload; + + if(m_metadataFormEnforcementDetailHasBeenSet) + { + payload.WithObject("metadataFormEnforcementDetail", m_metadataFormEnforcementDetail.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RuleScope.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RuleScope.cpp new file mode 100644 index 00000000000..99eb35ac1b2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RuleScope.cpp @@ -0,0 +1,88 @@ +/** + * 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 DataZone +{ +namespace Model +{ + +RuleScope::RuleScope() : + m_assetTypeHasBeenSet(false), + m_dataProduct(false), + m_dataProductHasBeenSet(false), + m_projectHasBeenSet(false) +{ +} + +RuleScope::RuleScope(JsonView jsonValue) + : RuleScope() +{ + *this = jsonValue; +} + +RuleScope& RuleScope::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("assetType")) + { + m_assetType = jsonValue.GetObject("assetType"); + + m_assetTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("dataProduct")) + { + m_dataProduct = jsonValue.GetBool("dataProduct"); + + m_dataProductHasBeenSet = true; + } + + if(jsonValue.ValueExists("project")) + { + m_project = jsonValue.GetObject("project"); + + m_projectHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleScope::Jsonize() const +{ + JsonValue payload; + + if(m_assetTypeHasBeenSet) + { + payload.WithObject("assetType", m_assetType.Jsonize()); + + } + + if(m_dataProductHasBeenSet) + { + payload.WithBool("dataProduct", m_dataProduct); + + } + + if(m_projectHasBeenSet) + { + payload.WithObject("project", m_project.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RuleScopeSelectionMode.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RuleScopeSelectionMode.cpp new file mode 100644 index 00000000000..20bcb1a1724 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RuleScopeSelectionMode.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 DataZone + { + namespace Model + { + namespace RuleScopeSelectionModeMapper + { + + static const int ALL_HASH = HashingUtils::HashString("ALL"); + static const int SPECIFIC_HASH = HashingUtils::HashString("SPECIFIC"); + + + RuleScopeSelectionMode GetRuleScopeSelectionModeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ALL_HASH) + { + return RuleScopeSelectionMode::ALL; + } + else if (hashCode == SPECIFIC_HASH) + { + return RuleScopeSelectionMode::SPECIFIC; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleScopeSelectionMode::NOT_SET; + } + + Aws::String GetNameForRuleScopeSelectionMode(RuleScopeSelectionMode enumValue) + { + switch(enumValue) + { + case RuleScopeSelectionMode::NOT_SET: + return {}; + case RuleScopeSelectionMode::ALL: + return "ALL"; + case RuleScopeSelectionMode::SPECIFIC: + return "SPECIFIC"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleScopeSelectionModeMapper + } // namespace Model + } // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RuleSummary.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RuleSummary.cpp new file mode 100644 index 00000000000..6613feeb397 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RuleSummary.cpp @@ -0,0 +1,184 @@ +/** + * 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 DataZone +{ +namespace Model +{ + +RuleSummary::RuleSummary() : + m_action(RuleAction::NOT_SET), + m_actionHasBeenSet(false), + m_identifierHasBeenSet(false), + m_lastUpdatedByHasBeenSet(false), + m_nameHasBeenSet(false), + m_revisionHasBeenSet(false), + m_ruleType(RuleType::NOT_SET), + m_ruleTypeHasBeenSet(false), + m_scopeHasBeenSet(false), + m_targetHasBeenSet(false), + m_targetType(RuleTargetType::NOT_SET), + m_targetTypeHasBeenSet(false), + m_updatedAtHasBeenSet(false) +{ +} + +RuleSummary::RuleSummary(JsonView jsonValue) + : RuleSummary() +{ + *this = jsonValue; +} + +RuleSummary& RuleSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("action")) + { + m_action = RuleActionMapper::GetRuleActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("identifier")) + { + m_identifier = jsonValue.GetString("identifier"); + + m_identifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastUpdatedBy")) + { + m_lastUpdatedBy = jsonValue.GetString("lastUpdatedBy"); + + m_lastUpdatedByHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("revision")) + { + m_revision = jsonValue.GetString("revision"); + + m_revisionHasBeenSet = true; + } + + if(jsonValue.ValueExists("ruleType")) + { + m_ruleType = RuleTypeMapper::GetRuleTypeForName(jsonValue.GetString("ruleType")); + + m_ruleTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("scope")) + { + m_scope = jsonValue.GetObject("scope"); + + m_scopeHasBeenSet = true; + } + + if(jsonValue.ValueExists("target")) + { + m_target = jsonValue.GetObject("target"); + + m_targetHasBeenSet = true; + } + + if(jsonValue.ValueExists("targetType")) + { + m_targetType = RuleTargetTypeMapper::GetRuleTargetTypeForName(jsonValue.GetString("targetType")); + + m_targetTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("updatedAt")) + { + m_updatedAt = jsonValue.GetDouble("updatedAt"); + + m_updatedAtHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleSummary::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("action", RuleActionMapper::GetNameForRuleAction(m_action)); + } + + if(m_identifierHasBeenSet) + { + payload.WithString("identifier", m_identifier); + + } + + if(m_lastUpdatedByHasBeenSet) + { + payload.WithString("lastUpdatedBy", m_lastUpdatedBy); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_revisionHasBeenSet) + { + payload.WithString("revision", m_revision); + + } + + if(m_ruleTypeHasBeenSet) + { + payload.WithString("ruleType", RuleTypeMapper::GetNameForRuleType(m_ruleType)); + } + + if(m_scopeHasBeenSet) + { + payload.WithObject("scope", m_scope.Jsonize()); + + } + + if(m_targetHasBeenSet) + { + payload.WithObject("target", m_target.Jsonize()); + + } + + if(m_targetTypeHasBeenSet) + { + payload.WithString("targetType", RuleTargetTypeMapper::GetNameForRuleTargetType(m_targetType)); + } + + if(m_updatedAtHasBeenSet) + { + payload.WithDouble("updatedAt", m_updatedAt.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RuleTarget.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RuleTarget.cpp new file mode 100644 index 00000000000..5254879b607 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RuleTarget.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 DataZone +{ +namespace Model +{ + +RuleTarget::RuleTarget() : + m_domainUnitTargetHasBeenSet(false) +{ +} + +RuleTarget::RuleTarget(JsonView jsonValue) + : RuleTarget() +{ + *this = jsonValue; +} + +RuleTarget& RuleTarget::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("domainUnitTarget")) + { + m_domainUnitTarget = jsonValue.GetObject("domainUnitTarget"); + + m_domainUnitTargetHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleTarget::Jsonize() const +{ + JsonValue payload; + + if(m_domainUnitTargetHasBeenSet) + { + payload.WithObject("domainUnitTarget", m_domainUnitTarget.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RuleTargetType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RuleTargetType.cpp new file mode 100644 index 00000000000..f4f38b76650 --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RuleTargetType.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace DataZone + { + namespace Model + { + namespace RuleTargetTypeMapper + { + + static const int DOMAIN_UNIT_HASH = HashingUtils::HashString("DOMAIN_UNIT"); + + + RuleTargetType GetRuleTargetTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == DOMAIN_UNIT_HASH) + { + return RuleTargetType::DOMAIN_UNIT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleTargetType::NOT_SET; + } + + Aws::String GetNameForRuleTargetType(RuleTargetType enumValue) + { + switch(enumValue) + { + case RuleTargetType::NOT_SET: + return {}; + case RuleTargetType::DOMAIN_UNIT: + return "DOMAIN_UNIT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleTargetTypeMapper + } // namespace Model + } // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RuleType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RuleType.cpp new file mode 100644 index 00000000000..64924fa4dbe --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RuleType.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace DataZone + { + namespace Model + { + namespace RuleTypeMapper + { + + static const int METADATA_FORM_ENFORCEMENT_HASH = HashingUtils::HashString("METADATA_FORM_ENFORCEMENT"); + + + RuleType GetRuleTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == METADATA_FORM_ENFORCEMENT_HASH) + { + return RuleType::METADATA_FORM_ENFORCEMENT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleType::NOT_SET; + } + + Aws::String GetNameForRuleType(RuleType enumValue) + { + switch(enumValue) + { + case RuleType::NOT_SET: + return {}; + case RuleType::METADATA_FORM_ENFORCEMENT: + return "METADATA_FORM_ENFORCEMENT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleTypeMapper + } // namespace Model + } // namespace DataZone +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionRequestSummary.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionRequestSummary.cpp index 14818a75955..dd8098b8575 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionRequestSummary.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionRequestSummary.cpp @@ -23,7 +23,9 @@ SubscriptionRequestSummary::SubscriptionRequestSummary() : m_createdByHasBeenSet(false), m_decisionCommentHasBeenSet(false), m_domainIdHasBeenSet(false), + m_existingSubscriptionIdHasBeenSet(false), m_idHasBeenSet(false), + m_metadataFormsSummaryHasBeenSet(false), m_requestReasonHasBeenSet(false), m_reviewerIdHasBeenSet(false), m_status(SubscriptionRequestStatus::NOT_SET), @@ -71,6 +73,13 @@ SubscriptionRequestSummary& SubscriptionRequestSummary::operator =(JsonView json m_domainIdHasBeenSet = true; } + if(jsonValue.ValueExists("existingSubscriptionId")) + { + m_existingSubscriptionId = jsonValue.GetString("existingSubscriptionId"); + + m_existingSubscriptionIdHasBeenSet = true; + } + if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); @@ -78,6 +87,16 @@ SubscriptionRequestSummary& SubscriptionRequestSummary::operator =(JsonView json m_idHasBeenSet = true; } + if(jsonValue.ValueExists("metadataFormsSummary")) + { + Aws::Utils::Array metadataFormsSummaryJsonList = jsonValue.GetArray("metadataFormsSummary"); + for(unsigned metadataFormsSummaryIndex = 0; metadataFormsSummaryIndex < metadataFormsSummaryJsonList.GetLength(); ++metadataFormsSummaryIndex) + { + m_metadataFormsSummary.push_back(metadataFormsSummaryJsonList[metadataFormsSummaryIndex].AsObject()); + } + m_metadataFormsSummaryHasBeenSet = true; + } + if(jsonValue.ValueExists("requestReason")) { m_requestReason = jsonValue.GetString("requestReason"); @@ -163,12 +182,29 @@ JsonValue SubscriptionRequestSummary::Jsonize() const } + if(m_existingSubscriptionIdHasBeenSet) + { + payload.WithString("existingSubscriptionId", m_existingSubscriptionId); + + } + if(m_idHasBeenSet) { payload.WithString("id", m_id); } + if(m_metadataFormsSummaryHasBeenSet) + { + Aws::Utils::Array metadataFormsSummaryJsonList(m_metadataFormsSummary.size()); + for(unsigned metadataFormsSummaryIndex = 0; metadataFormsSummaryIndex < metadataFormsSummaryJsonList.GetLength(); ++metadataFormsSummaryIndex) + { + metadataFormsSummaryJsonList[metadataFormsSummaryIndex].AsObject(m_metadataFormsSummary[metadataFormsSummaryIndex].Jsonize()); + } + payload.WithArray("metadataFormsSummary", std::move(metadataFormsSummaryJsonList)); + + } + if(m_requestReasonHasBeenSet) { payload.WithString("requestReason", m_requestReason); diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/UpdateRuleRequest.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/UpdateRuleRequest.cpp new file mode 100644 index 00000000000..6e6a1e95c9f --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/UpdateRuleRequest.cpp @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateRuleRequest::UpdateRuleRequest() : + m_descriptionHasBeenSet(false), + m_detailHasBeenSet(false), + m_domainIdentifierHasBeenSet(false), + m_identifierHasBeenSet(false), + m_includeChildDomainUnits(false), + m_includeChildDomainUnitsHasBeenSet(false), + m_nameHasBeenSet(false), + m_scopeHasBeenSet(false) +{ +} + +Aws::String UpdateRuleRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_detailHasBeenSet) + { + payload.WithObject("detail", m_detail.Jsonize()); + + } + + if(m_includeChildDomainUnitsHasBeenSet) + { + payload.WithBool("includeChildDomainUnits", m_includeChildDomainUnits); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_scopeHasBeenSet) + { + payload.WithObject("scope", m_scope.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/UpdateRuleResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/UpdateRuleResult.cpp new file mode 100644 index 00000000000..21278bd8baf --- /dev/null +++ b/generated/src/aws-cpp-sdk-datazone/source/model/UpdateRuleResult.cpp @@ -0,0 +1,123 @@ +/** + * 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::DataZone::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateRuleResult::UpdateRuleResult() : + m_action(RuleAction::NOT_SET), + m_ruleType(RuleType::NOT_SET) +{ +} + +UpdateRuleResult::UpdateRuleResult(const Aws::AmazonWebServiceResult& result) + : UpdateRuleResult() +{ + *this = result; +} + +UpdateRuleResult& UpdateRuleResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("action")) + { + m_action = RuleActionMapper::GetRuleActionForName(jsonValue.GetString("action")); + + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + } + + if(jsonValue.ValueExists("createdBy")) + { + m_createdBy = jsonValue.GetString("createdBy"); + + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + } + + if(jsonValue.ValueExists("detail")) + { + m_detail = jsonValue.GetObject("detail"); + + } + + if(jsonValue.ValueExists("identifier")) + { + m_identifier = jsonValue.GetString("identifier"); + + } + + if(jsonValue.ValueExists("lastUpdatedBy")) + { + m_lastUpdatedBy = jsonValue.GetString("lastUpdatedBy"); + + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + } + + if(jsonValue.ValueExists("revision")) + { + m_revision = jsonValue.GetString("revision"); + + } + + if(jsonValue.ValueExists("ruleType")) + { + m_ruleType = RuleTypeMapper::GetRuleTypeForName(jsonValue.GetString("ruleType")); + + } + + if(jsonValue.ValueExists("scope")) + { + m_scope = jsonValue.GetObject("scope"); + + } + + if(jsonValue.ValueExists("target")) + { + m_target = jsonValue.GetObject("target"); + + } + + if(jsonValue.ValueExists("updatedAt")) + { + m_updatedAt = jsonValue.GetDouble("updatedAt"); + + } + + + 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-datazone/source/model/UpdateSubscriptionRequestResult.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/UpdateSubscriptionRequestResult.cpp index f2cde74fbef..f4632ddeb54 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/UpdateSubscriptionRequestResult.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/UpdateSubscriptionRequestResult.cpp @@ -55,12 +55,27 @@ UpdateSubscriptionRequestResult& UpdateSubscriptionRequestResult::operator =(con } + if(jsonValue.ValueExists("existingSubscriptionId")) + { + m_existingSubscriptionId = jsonValue.GetString("existingSubscriptionId"); + + } + if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); } + if(jsonValue.ValueExists("metadataForms")) + { + Aws::Utils::Array metadataFormsJsonList = jsonValue.GetArray("metadataForms"); + for(unsigned metadataFormsIndex = 0; metadataFormsIndex < metadataFormsJsonList.GetLength(); ++metadataFormsIndex) + { + m_metadataForms.push_back(metadataFormsJsonList[metadataFormsIndex].AsObject()); + } + } + if(jsonValue.ValueExists("requestReason")) { m_requestReason = jsonValue.GetString("requestReason"); diff --git a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/CreateApplicationRequest.h b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/CreateApplicationRequest.h index 62cd685e6c4..cbac42145b3 100644 --- a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/CreateApplicationRequest.h +++ b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/CreateApplicationRequest.h @@ -36,7 +36,7 @@ namespace Model ///@{ /** - *

    Name of the application to be created.

    + *

    The name of the application to be created.

    */ inline const Aws::String& GetName() const{ return m_name; } inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } @@ -50,7 +50,7 @@ namespace Model ///@{ /** - *

    Description of the application to be created.

    + *

    The description of the application to be created.

    */ inline const Aws::String& GetDescription() const{ return m_description; } inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } @@ -61,6 +61,20 @@ namespace Model inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} ///@} + + ///@{ + /** + *

    The name of the migration wave of the application to be created.

    + */ + inline const Aws::String& GetWave() const{ return m_wave; } + inline bool WaveHasBeenSet() const { return m_waveHasBeenSet; } + inline void SetWave(const Aws::String& value) { m_waveHasBeenSet = true; m_wave = value; } + inline void SetWave(Aws::String&& value) { m_waveHasBeenSet = true; m_wave = std::move(value); } + inline void SetWave(const char* value) { m_waveHasBeenSet = true; m_wave.assign(value); } + inline CreateApplicationRequest& WithWave(const Aws::String& value) { SetWave(value); return *this;} + inline CreateApplicationRequest& WithWave(Aws::String&& value) { SetWave(std::move(value)); return *this;} + inline CreateApplicationRequest& WithWave(const char* value) { SetWave(value); return *this;} + ///@} private: Aws::String m_name; @@ -68,6 +82,9 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + + Aws::String m_wave; + bool m_waveHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/CreateApplicationResult.h b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/CreateApplicationResult.h index a6ca58c27b2..3c97ea267f0 100644 --- a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/CreateApplicationResult.h +++ b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/CreateApplicationResult.h @@ -34,7 +34,7 @@ namespace Model ///@{ /** - *

    Configuration ID of an application to be created.

    + *

    The configuration ID of an application to be created.

    */ inline const Aws::String& GetConfigurationId() const{ return m_configurationId; } inline void SetConfigurationId(const Aws::String& value) { m_configurationId = value; } diff --git a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/FileClassification.h b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/FileClassification.h new file mode 100644 index 00000000000..24815a43640 --- /dev/null +++ b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/FileClassification.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 ApplicationDiscoveryService +{ +namespace Model +{ + enum class FileClassification + { + NOT_SET, + MODELIZEIT_EXPORT, + RVTOOLS_EXPORT, + VMWARE_NSX_EXPORT, + IMPORT_TEMPLATE + }; + +namespace FileClassificationMapper +{ +AWS_APPLICATIONDISCOVERYSERVICE_API FileClassification GetFileClassificationForName(const Aws::String& name); + +AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String GetNameForFileClassification(FileClassification value); +} // namespace FileClassificationMapper +} // namespace Model +} // namespace ApplicationDiscoveryService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportStatus.h b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportStatus.h index 061664cfd08..244e1162164 100644 --- a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportStatus.h +++ b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportStatus.h @@ -22,6 +22,7 @@ namespace Model IMPORT_FAILED, IMPORT_FAILED_SERVER_LIMIT_EXCEEDED, IMPORT_FAILED_RECORD_LIMIT_EXCEEDED, + IMPORT_FAILED_UNSUPPORTED_FILE_TYPE, DELETE_IN_PROGRESS, DELETE_COMPLETE, DELETE_FAILED, diff --git a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportTask.h b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportTask.h index daf895cdb47..cd63a797621 100644 --- a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportTask.h +++ b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportTask.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -158,6 +159,18 @@ namespace Model inline ImportTask& WithImportDeletedTime(Aws::Utils::DateTime&& value) { SetImportDeletedTime(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    The type of file detected by the import task.

    + */ + inline const FileClassification& GetFileClassification() const{ return m_fileClassification; } + inline bool FileClassificationHasBeenSet() const { return m_fileClassificationHasBeenSet; } + inline void SetFileClassification(const FileClassification& value) { m_fileClassificationHasBeenSet = true; m_fileClassification = value; } + inline void SetFileClassification(FileClassification&& value) { m_fileClassificationHasBeenSet = true; m_fileClassification = std::move(value); } + inline ImportTask& WithFileClassification(const FileClassification& value) { SetFileClassification(value); return *this;} + inline ImportTask& WithFileClassification(FileClassification&& value) { SetFileClassification(std::move(value)); return *this;} + ///@} + ///@{ /** *

    The total number of server records in the import file that were successfully @@ -250,6 +263,9 @@ namespace Model Aws::Utils::DateTime m_importDeletedTime; bool m_importDeletedTimeHasBeenSet = false; + FileClassification m_fileClassification; + bool m_fileClassificationHasBeenSet = false; + int m_serverImportSuccess; bool m_serverImportSuccessHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportTaskFilterName.h b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportTaskFilterName.h index 09a4425039f..aba1ad83861 100644 --- a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportTaskFilterName.h +++ b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/ImportTaskFilterName.h @@ -18,7 +18,8 @@ namespace Model NOT_SET, IMPORT_TASK_ID, STATUS, - NAME + NAME, + FILE_CLASSIFICATION }; namespace ImportTaskFilterNameMapper diff --git a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/UpdateApplicationRequest.h b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/UpdateApplicationRequest.h index f7963b6d5d1..12dff673f7d 100644 --- a/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/UpdateApplicationRequest.h +++ b/generated/src/aws-cpp-sdk-discovery/include/aws/discovery/model/UpdateApplicationRequest.h @@ -75,6 +75,20 @@ namespace Model inline UpdateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} inline UpdateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} ///@} + + ///@{ + /** + *

    The new migration wave of the application that you want to update.

    + */ + inline const Aws::String& GetWave() const{ return m_wave; } + inline bool WaveHasBeenSet() const { return m_waveHasBeenSet; } + inline void SetWave(const Aws::String& value) { m_waveHasBeenSet = true; m_wave = value; } + inline void SetWave(Aws::String&& value) { m_waveHasBeenSet = true; m_wave = std::move(value); } + inline void SetWave(const char* value) { m_waveHasBeenSet = true; m_wave.assign(value); } + inline UpdateApplicationRequest& WithWave(const Aws::String& value) { SetWave(value); return *this;} + inline UpdateApplicationRequest& WithWave(Aws::String&& value) { SetWave(std::move(value)); return *this;} + inline UpdateApplicationRequest& WithWave(const char* value) { SetWave(value); return *this;} + ///@} private: Aws::String m_configurationId; @@ -85,6 +99,9 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + + Aws::String m_wave; + bool m_waveHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/CreateApplicationRequest.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/CreateApplicationRequest.cpp index 9cc6c43d504..a1940021588 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/CreateApplicationRequest.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/CreateApplicationRequest.cpp @@ -14,7 +14,8 @@ using namespace Aws::Utils; CreateApplicationRequest::CreateApplicationRequest() : m_nameHasBeenSet(false), - m_descriptionHasBeenSet(false) + m_descriptionHasBeenSet(false), + m_waveHasBeenSet(false) { } @@ -34,6 +35,12 @@ Aws::String CreateApplicationRequest::SerializePayload() const } + if(m_waveHasBeenSet) + { + payload.WithString("wave", m_wave); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/FileClassification.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/FileClassification.cpp new file mode 100644 index 00000000000..0d8cb37f13d --- /dev/null +++ b/generated/src/aws-cpp-sdk-discovery/source/model/FileClassification.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 ApplicationDiscoveryService + { + namespace Model + { + namespace FileClassificationMapper + { + + static const int MODELIZEIT_EXPORT_HASH = HashingUtils::HashString("MODELIZEIT_EXPORT"); + static const int RVTOOLS_EXPORT_HASH = HashingUtils::HashString("RVTOOLS_EXPORT"); + static const int VMWARE_NSX_EXPORT_HASH = HashingUtils::HashString("VMWARE_NSX_EXPORT"); + static const int IMPORT_TEMPLATE_HASH = HashingUtils::HashString("IMPORT_TEMPLATE"); + + + FileClassification GetFileClassificationForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == MODELIZEIT_EXPORT_HASH) + { + return FileClassification::MODELIZEIT_EXPORT; + } + else if (hashCode == RVTOOLS_EXPORT_HASH) + { + return FileClassification::RVTOOLS_EXPORT; + } + else if (hashCode == VMWARE_NSX_EXPORT_HASH) + { + return FileClassification::VMWARE_NSX_EXPORT; + } + else if (hashCode == IMPORT_TEMPLATE_HASH) + { + return FileClassification::IMPORT_TEMPLATE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return FileClassification::NOT_SET; + } + + Aws::String GetNameForFileClassification(FileClassification enumValue) + { + switch(enumValue) + { + case FileClassification::NOT_SET: + return {}; + case FileClassification::MODELIZEIT_EXPORT: + return "MODELIZEIT_EXPORT"; + case FileClassification::RVTOOLS_EXPORT: + return "RVTOOLS_EXPORT"; + case FileClassification::VMWARE_NSX_EXPORT: + return "VMWARE_NSX_EXPORT"; + case FileClassification::IMPORT_TEMPLATE: + return "IMPORT_TEMPLATE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace FileClassificationMapper + } // namespace Model + } // namespace ApplicationDiscoveryService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/ImportStatus.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/ImportStatus.cpp index 993e8701af8..01a4870667f 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/ImportStatus.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/ImportStatus.cpp @@ -26,6 +26,7 @@ namespace Aws static const int IMPORT_FAILED_HASH = HashingUtils::HashString("IMPORT_FAILED"); static const int IMPORT_FAILED_SERVER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("IMPORT_FAILED_SERVER_LIMIT_EXCEEDED"); static const int IMPORT_FAILED_RECORD_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("IMPORT_FAILED_RECORD_LIMIT_EXCEEDED"); + static const int IMPORT_FAILED_UNSUPPORTED_FILE_TYPE_HASH = HashingUtils::HashString("IMPORT_FAILED_UNSUPPORTED_FILE_TYPE"); static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); static const int DELETE_COMPLETE_HASH = HashingUtils::HashString("DELETE_COMPLETE"); static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); @@ -60,6 +61,10 @@ namespace Aws { return ImportStatus::IMPORT_FAILED_RECORD_LIMIT_EXCEEDED; } + else if (hashCode == IMPORT_FAILED_UNSUPPORTED_FILE_TYPE_HASH) + { + return ImportStatus::IMPORT_FAILED_UNSUPPORTED_FILE_TYPE; + } else if (hashCode == DELETE_IN_PROGRESS_HASH) { return ImportStatus::DELETE_IN_PROGRESS; @@ -108,6 +113,8 @@ namespace Aws return "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED"; case ImportStatus::IMPORT_FAILED_RECORD_LIMIT_EXCEEDED: return "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED"; + case ImportStatus::IMPORT_FAILED_UNSUPPORTED_FILE_TYPE: + return "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE"; case ImportStatus::DELETE_IN_PROGRESS: return "DELETE_IN_PROGRESS"; case ImportStatus::DELETE_COMPLETE: diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/ImportTask.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/ImportTask.cpp index 0f1f028cc07..1fbd6d1297e 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/ImportTask.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/ImportTask.cpp @@ -28,6 +28,8 @@ ImportTask::ImportTask() : m_importRequestTimeHasBeenSet(false), m_importCompletionTimeHasBeenSet(false), m_importDeletedTimeHasBeenSet(false), + m_fileClassification(FileClassification::NOT_SET), + m_fileClassificationHasBeenSet(false), m_serverImportSuccess(0), m_serverImportSuccessHasBeenSet(false), m_serverImportFailure(0), @@ -104,6 +106,13 @@ ImportTask& ImportTask::operator =(JsonView jsonValue) m_importDeletedTimeHasBeenSet = true; } + if(jsonValue.ValueExists("fileClassification")) + { + m_fileClassification = FileClassificationMapper::GetFileClassificationForName(jsonValue.GetString("fileClassification")); + + m_fileClassificationHasBeenSet = true; + } + if(jsonValue.ValueExists("serverImportSuccess")) { m_serverImportSuccess = jsonValue.GetInteger("serverImportSuccess"); @@ -190,6 +199,11 @@ JsonValue ImportTask::Jsonize() const payload.WithDouble("importDeletedTime", m_importDeletedTime.SecondsWithMSPrecision()); } + if(m_fileClassificationHasBeenSet) + { + payload.WithString("fileClassification", FileClassificationMapper::GetNameForFileClassification(m_fileClassification)); + } + if(m_serverImportSuccessHasBeenSet) { payload.WithInteger("serverImportSuccess", m_serverImportSuccess); diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/ImportTaskFilterName.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/ImportTaskFilterName.cpp index 870c42ce586..49b02dfa3fc 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/ImportTaskFilterName.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/ImportTaskFilterName.cpp @@ -23,6 +23,7 @@ namespace Aws static const int IMPORT_TASK_ID_HASH = HashingUtils::HashString("IMPORT_TASK_ID"); static const int STATUS_HASH = HashingUtils::HashString("STATUS"); static const int NAME_HASH = HashingUtils::HashString("NAME"); + static const int FILE_CLASSIFICATION_HASH = HashingUtils::HashString("FILE_CLASSIFICATION"); ImportTaskFilterName GetImportTaskFilterNameForName(const Aws::String& name) @@ -40,6 +41,10 @@ namespace Aws { return ImportTaskFilterName::NAME; } + else if (hashCode == FILE_CLASSIFICATION_HASH) + { + return ImportTaskFilterName::FILE_CLASSIFICATION; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -62,6 +67,8 @@ namespace Aws return "STATUS"; case ImportTaskFilterName::NAME: return "NAME"; + case ImportTaskFilterName::FILE_CLASSIFICATION: + return "FILE_CLASSIFICATION"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/UpdateApplicationRequest.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/UpdateApplicationRequest.cpp index 88294cff9d4..b1913c3cd04 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/UpdateApplicationRequest.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/UpdateApplicationRequest.cpp @@ -15,7 +15,8 @@ using namespace Aws::Utils; UpdateApplicationRequest::UpdateApplicationRequest() : m_configurationIdHasBeenSet(false), m_nameHasBeenSet(false), - m_descriptionHasBeenSet(false) + m_descriptionHasBeenSet(false), + m_waveHasBeenSet(false) { } @@ -41,6 +42,12 @@ Aws::String UpdateApplicationRequest::SerializePayload() const } + if(m_waveHasBeenSet) + { + payload.WithString("wave", m_wave); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h index 4fb98e02e42..8da0e9de057 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 @@ -15714,8 +15714,9 @@ namespace EC2 /** *

    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.

    See Also:

    open Capacity Reservation with matching attributes, run in + * On-Demand Instance capacity, or only run in a Capacity + * Reservation.

    See Also:

    AWS * API Reference

    */ diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/BaselinePerformanceFactors.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/BaselinePerformanceFactors.h new file mode 100644 index 00000000000..828e1bea0b7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/BaselinePerformanceFactors.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + + /** + *

    The baseline performance to consider, using an instance family as a baseline + * reference. The instance family establishes the lowest acceptable level of + * performance. Amazon EC2 uses this baseline to guide instance type selection, but + * there is no guarantee that the selected instance types will always exceed the + * baseline for every application.

    Currently, this parameter only supports + * CPU performance as a baseline performance factor. For example, specifying + * c6i would use the CPU performance of the c6i family as + * the baseline reference.

    See Also:

    AWS + * API Reference

    + */ + class BaselinePerformanceFactors + { + public: + AWS_EC2_API BaselinePerformanceFactors(); + AWS_EC2_API BaselinePerformanceFactors(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_EC2_API BaselinePerformanceFactors& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    The CPU performance to consider, using an instance family as the baseline + * reference.

    + */ + inline const CpuPerformanceFactor& GetCpu() const{ return m_cpu; } + inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; } + inline void SetCpu(const CpuPerformanceFactor& value) { m_cpuHasBeenSet = true; m_cpu = value; } + inline void SetCpu(CpuPerformanceFactor&& value) { m_cpuHasBeenSet = true; m_cpu = std::move(value); } + inline BaselinePerformanceFactors& WithCpu(const CpuPerformanceFactor& value) { SetCpu(value); return *this;} + inline BaselinePerformanceFactors& WithCpu(CpuPerformanceFactor&& value) { SetCpu(std::move(value)); return *this;} + ///@} + private: + + CpuPerformanceFactor m_cpu; + bool m_cpuHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/BaselinePerformanceFactorsRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/BaselinePerformanceFactorsRequest.h new file mode 100644 index 00000000000..cbda6c8121d --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/BaselinePerformanceFactorsRequest.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + + /** + *

    The baseline performance to consider, using an instance family as a baseline + * reference. The instance family establishes the lowest acceptable level of + * performance. Amazon EC2 uses this baseline to guide instance type selection, but + * there is no guarantee that the selected instance types will always exceed the + * baseline for every application.

    Currently, this parameter only supports + * CPU performance as a baseline performance factor. For example, specifying + * c6i would use the CPU performance of the c6i family as + * the baseline reference.

    See Also:

    AWS + * API Reference

    + */ + class BaselinePerformanceFactorsRequest + { + public: + AWS_EC2_API BaselinePerformanceFactorsRequest(); + AWS_EC2_API BaselinePerformanceFactorsRequest(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_EC2_API BaselinePerformanceFactorsRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    The CPU performance to consider, using an instance family as the baseline + * reference.

    + */ + inline const CpuPerformanceFactorRequest& GetCpu() const{ return m_cpu; } + inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; } + inline void SetCpu(const CpuPerformanceFactorRequest& value) { m_cpuHasBeenSet = true; m_cpu = value; } + inline void SetCpu(CpuPerformanceFactorRequest&& value) { m_cpuHasBeenSet = true; m_cpu = std::move(value); } + inline BaselinePerformanceFactorsRequest& WithCpu(const CpuPerformanceFactorRequest& value) { SetCpu(value); return *this;} + inline BaselinePerformanceFactorsRequest& WithCpu(CpuPerformanceFactorRequest&& value) { SetCpu(std::move(value)); return *this;} + ///@} + private: + + CpuPerformanceFactorRequest m_cpu; + bool m_cpuHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CapacityReservationPreference.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CapacityReservationPreference.h index 29882721dd5..2d4b4427889 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CapacityReservationPreference.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CapacityReservationPreference.h @@ -16,6 +16,7 @@ namespace Model enum class CapacityReservationPreference { NOT_SET, + capacity_reservations_only, open, none }; diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CapacityReservationSpecification.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CapacityReservationSpecification.h index f13370bb016..b9c63d9201b 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CapacityReservationSpecification.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CapacityReservationSpecification.h @@ -25,16 +25,17 @@ namespace Model { /** - *

    Describes an instance's Capacity Reservation targeting option. You can - * specify only one parameter at a time. If you specify - * CapacityReservationPreference and - * CapacityReservationTarget, the request fails.

    Use the - * CapacityReservationPreference parameter to configure the instance - * to run as an On-Demand Instance or to run in any open Capacity - * Reservation that has matching attributes (instance type, platform, Availability - * Zone). Use the CapacityReservationTarget parameter to explicitly - * target a specific Capacity Reservation or a Capacity Reservation - * group.

    See Also:

    Describes an instance's Capacity Reservation targeting option.

    Use + * the CapacityReservationPreference parameter to configure the + * instance to run as an On-Demand Instance, to run in any open + * Capacity Reservation that has matching attributes, or to run only in a Capacity + * Reservation or Capacity Reservation group. Use the + * CapacityReservationTarget parameter to explicitly target a specific + * Capacity Reservation or a Capacity Reservation group.

    You can only + * specify CapacityReservationPreference and + * CapacityReservationTarget if the + * CapacityReservationPreference is + * capacity-reservations-only.

    See Also:

    AWS * API Reference

    */ @@ -52,11 +53,15 @@ namespace Model ///@{ /** *

    Indicates the instance's Capacity Reservation preferences. Possible - * preferences include:

    • open - The instance can run - * in any open Capacity Reservation that has matching attributes - * (instance type, platform, Availability Zone).

    • - * none - The instance avoids running in a Capacity Reservation even - * if one is available. The instance runs as an On-Demand Instance.

    + * preferences include:

    • capacity-reservations-only - + * The instance will only run in a Capacity Reservation or Capacity Reservation + * group. If capacity isn't available, the instance will fail to launch.

    • + *
    • open - The instance can run in any open + * Capacity Reservation that has matching attributes (instance type, platform, + * Availability Zone, and tenancy). If capacity isn't available, the instance runs + * as an On-Demand Instance.

    • none - The instance + * doesn't run in a Capacity Reservation even if one is available. The instance + * runs as an On-Demand Instance.

    */ inline const CapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; } inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuManufacturer.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuManufacturer.h index 8adfffb4366..70bf9e5443b 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuManufacturer.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuManufacturer.h @@ -18,7 +18,8 @@ namespace Model NOT_SET, intel, amd, - amazon_web_services + amazon_web_services, + apple }; namespace CpuManufacturerMapper diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuPerformanceFactor.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuPerformanceFactor.h new file mode 100644 index 00000000000..c32faea7447 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuPerformanceFactor.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + + /** + *

    The CPU performance to consider, using an instance family as the baseline + * reference.

    See Also:

    AWS + * API Reference

    + */ + class CpuPerformanceFactor + { + public: + AWS_EC2_API CpuPerformanceFactor(); + AWS_EC2_API CpuPerformanceFactor(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_EC2_API CpuPerformanceFactor& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    Specify an instance family to use as the baseline reference for CPU + * performance. All instance types that match your specified attributes will be + * compared against the CPU performance of the referenced instance family, + * regardless of CPU manufacturer or architecture differences.

    + *

    Currently, only one instance family can be specified in the list.

    + */ + inline const Aws::Vector& GetReferences() const{ return m_references; } + inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; } + inline void SetReferences(const Aws::Vector& value) { m_referencesHasBeenSet = true; m_references = value; } + inline void SetReferences(Aws::Vector&& value) { m_referencesHasBeenSet = true; m_references = std::move(value); } + inline CpuPerformanceFactor& WithReferences(const Aws::Vector& value) { SetReferences(value); return *this;} + inline CpuPerformanceFactor& WithReferences(Aws::Vector&& value) { SetReferences(std::move(value)); return *this;} + inline CpuPerformanceFactor& AddReferences(const PerformanceFactorReference& value) { m_referencesHasBeenSet = true; m_references.push_back(value); return *this; } + inline CpuPerformanceFactor& AddReferences(PerformanceFactorReference&& value) { m_referencesHasBeenSet = true; m_references.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_references; + bool m_referencesHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuPerformanceFactorRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuPerformanceFactorRequest.h new file mode 100644 index 00000000000..0933e9f04af --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CpuPerformanceFactorRequest.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + + /** + *

    The CPU performance to consider, using an instance family as the baseline + * reference.

    See Also:

    AWS + * API Reference

    + */ + class CpuPerformanceFactorRequest + { + public: + AWS_EC2_API CpuPerformanceFactorRequest(); + AWS_EC2_API CpuPerformanceFactorRequest(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_EC2_API CpuPerformanceFactorRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    Specify an instance family to use as the baseline reference for CPU + * performance. All instance types that match your specified attributes will be + * compared against the CPU performance of the referenced instance family, + * regardless of CPU manufacturer or architecture differences.

    + *

    Currently, only one instance family can be specified in the list.

    + */ + inline const Aws::Vector& GetReferences() const{ return m_references; } + inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; } + inline void SetReferences(const Aws::Vector& value) { m_referencesHasBeenSet = true; m_references = value; } + inline void SetReferences(Aws::Vector&& value) { m_referencesHasBeenSet = true; m_references = std::move(value); } + inline CpuPerformanceFactorRequest& WithReferences(const Aws::Vector& value) { SetReferences(value); return *this;} + inline CpuPerformanceFactorRequest& WithReferences(Aws::Vector&& value) { SetReferences(std::move(value)); return *this;} + inline CpuPerformanceFactorRequest& AddReferences(const PerformanceFactorReferenceRequest& value) { m_referencesHasBeenSet = true; m_references.push_back(value); return *this; } + inline CpuPerformanceFactorRequest& AddReferences(PerformanceFactorReferenceRequest&& value) { m_referencesHasBeenSet = true; m_references.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_references; + bool m_referencesHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceRequirements.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceRequirements.h index 5565e76d0c4..0a14c6cef69 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceRequirements.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceRequirements.h @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -543,6 +544,25 @@ namespace Model inline void SetMaxSpotPriceAsPercentageOfOptimalOnDemandPrice(int value) { m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet = true; m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice = value; } inline InstanceRequirements& WithMaxSpotPriceAsPercentageOfOptimalOnDemandPrice(int value) { SetMaxSpotPriceAsPercentageOfOptimalOnDemandPrice(value); return *this;} ///@} + + ///@{ + /** + *

    The baseline performance to consider, using an instance family as a baseline + * reference. The instance family establishes the lowest acceptable level of + * performance. Amazon EC2 uses this baseline to guide instance type selection, but + * there is no guarantee that the selected instance types will always exceed the + * baseline for every application. Currently, this parameter only supports CPU + * performance as a baseline performance factor. For more information, see Performance + * protection in the Amazon EC2 User Guide.

    + */ + inline const BaselinePerformanceFactors& GetBaselinePerformanceFactors() const{ return m_baselinePerformanceFactors; } + inline bool BaselinePerformanceFactorsHasBeenSet() const { return m_baselinePerformanceFactorsHasBeenSet; } + inline void SetBaselinePerformanceFactors(const BaselinePerformanceFactors& value) { m_baselinePerformanceFactorsHasBeenSet = true; m_baselinePerformanceFactors = value; } + inline void SetBaselinePerformanceFactors(BaselinePerformanceFactors&& value) { m_baselinePerformanceFactorsHasBeenSet = true; m_baselinePerformanceFactors = std::move(value); } + inline InstanceRequirements& WithBaselinePerformanceFactors(const BaselinePerformanceFactors& value) { SetBaselinePerformanceFactors(value); return *this;} + inline InstanceRequirements& WithBaselinePerformanceFactors(BaselinePerformanceFactors&& value) { SetBaselinePerformanceFactors(std::move(value)); return *this;} + ///@} private: VCpuCountRange m_vCpuCount; @@ -616,6 +636,9 @@ namespace Model int m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice; bool m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet = false; + + BaselinePerformanceFactors m_baselinePerformanceFactors; + bool m_baselinePerformanceFactorsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceRequirementsRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceRequirementsRequest.h index 5af81201315..518a3d57240 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceRequirementsRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceRequirementsRequest.h @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -545,6 +546,25 @@ namespace Model inline void SetMaxSpotPriceAsPercentageOfOptimalOnDemandPrice(int value) { m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet = true; m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice = value; } inline InstanceRequirementsRequest& WithMaxSpotPriceAsPercentageOfOptimalOnDemandPrice(int value) { SetMaxSpotPriceAsPercentageOfOptimalOnDemandPrice(value); return *this;} ///@} + + ///@{ + /** + *

    The baseline performance to consider, using an instance family as a baseline + * reference. The instance family establishes the lowest acceptable level of + * performance. Amazon EC2 uses this baseline to guide instance type selection, but + * there is no guarantee that the selected instance types will always exceed the + * baseline for every application. Currently, this parameter only supports CPU + * performance as a baseline performance factor. For more information, see Performance + * protection in the Amazon EC2 User Guide.

    + */ + inline const BaselinePerformanceFactorsRequest& GetBaselinePerformanceFactors() const{ return m_baselinePerformanceFactors; } + inline bool BaselinePerformanceFactorsHasBeenSet() const { return m_baselinePerformanceFactorsHasBeenSet; } + inline void SetBaselinePerformanceFactors(const BaselinePerformanceFactorsRequest& value) { m_baselinePerformanceFactorsHasBeenSet = true; m_baselinePerformanceFactors = value; } + inline void SetBaselinePerformanceFactors(BaselinePerformanceFactorsRequest&& value) { m_baselinePerformanceFactorsHasBeenSet = true; m_baselinePerformanceFactors = std::move(value); } + inline InstanceRequirementsRequest& WithBaselinePerformanceFactors(const BaselinePerformanceFactorsRequest& value) { SetBaselinePerformanceFactors(value); return *this;} + inline InstanceRequirementsRequest& WithBaselinePerformanceFactors(BaselinePerformanceFactorsRequest&& value) { SetBaselinePerformanceFactors(std::move(value)); return *this;} + ///@} private: VCpuCountRangeRequest m_vCpuCount; @@ -618,6 +638,9 @@ namespace Model int m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice; bool m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet = false; + + BaselinePerformanceFactorsRequest m_baselinePerformanceFactors; + bool m_baselinePerformanceFactorsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/PerformanceFactorReference.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/PerformanceFactorReference.h new file mode 100644 index 00000000000..b1496880692 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/PerformanceFactorReference.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 +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + + /** + *

    Specify an instance family to use as the baseline reference for CPU + * performance. All instance types that match your specified attributes will be + * compared against the CPU performance of the referenced instance family, + * regardless of CPU manufacturer or architecture.

    Currently, only + * one instance family can be specified in the list.

    See + * Also:

    AWS + * API Reference

    + */ + class PerformanceFactorReference + { + public: + AWS_EC2_API PerformanceFactorReference(); + AWS_EC2_API PerformanceFactorReference(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_EC2_API PerformanceFactorReference& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    The instance family to use as a baseline reference.

    Ensure that + * you specify the correct value for the instance family. The instance family is + * everything before the period (.) in the instance type name. For + * example, in the instance type c6i.large, the instance family is + * c6i, not c6. For more information, see Amazon + * EC2 instance type naming conventions in Amazon EC2 Instance + * Types.

    The following instance families are not + * supported for performance protection:

    • c1

      + *
    • g3 | g3s

    • + * hpc7g

    • m1 | m2

      + *
    • mac1 | mac2 | mac2-m1ultra + * | mac2-m2 | mac2-m2pro

    • + * p3dn | p4d | p5

    • + * t1

    • u-12tb1 | u-18tb1 + * | u-24tb1 | u-3tb1 | u-6tb1 | + * u-9tb1 | u7i-12tb | u7in-16tb | + * u7in-24tb | u7in-32tb

    If you + * enable performance protection by specifying a supported instance family, the + * returned instance types will exclude the above unsupported instance + * families.

    If you specify an unsupported instance family as a value for + * baseline performance, the API returns an empty response for and an exception for + * , , , and .

    + */ + inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; } + inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; } + inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; } + inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); } + inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); } + inline PerformanceFactorReference& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;} + inline PerformanceFactorReference& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;} + inline PerformanceFactorReference& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;} + ///@} + private: + + Aws::String m_instanceFamily; + bool m_instanceFamilyHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/PerformanceFactorReferenceRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/PerformanceFactorReferenceRequest.h new file mode 100644 index 00000000000..c55a8d3255b --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/PerformanceFactorReferenceRequest.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 +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + + /** + *

    Specify an instance family to use as the baseline reference for CPU + * performance. All instance types that match your specified attributes will be + * compared against the CPU performance of the referenced instance family, + * regardless of CPU manufacturer or architecture.

    Currently, only + * one instance family can be specified in the list.

    See + * Also:

    AWS + * API Reference

    + */ + class PerformanceFactorReferenceRequest + { + public: + AWS_EC2_API PerformanceFactorReferenceRequest(); + AWS_EC2_API PerformanceFactorReferenceRequest(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_EC2_API PerformanceFactorReferenceRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    The instance family to use as a baseline reference.

    Ensure that + * you specify the correct value for the instance family. The instance family is + * everything before the period (.) in the instance type name. For + * example, in the instance type c6i.large, the instance family is + * c6i, not c6. For more information, see Amazon + * EC2 instance type naming conventions in Amazon EC2 Instance + * Types.

    The following instance families are not + * supported for performance protection:

    • c1

      + *
    • g3 | g3s

    • + * hpc7g

    • m1 | m2

      + *
    • mac1 | mac2 | mac2-m1ultra + * | mac2-m2 | mac2-m2pro

    • + * p3dn | p4d | p5

    • + * t1

    • u-12tb1 | u-18tb1 + * | u-24tb1 | u-3tb1 | u-6tb1 | + * u-9tb1 | u7i-12tb | u7in-16tb | + * u7in-24tb | u7in-32tb

    If you + * enable performance protection by specifying a supported instance family, the + * returned instance types will exclude the above unsupported instance + * families.

    If you specify an unsupported instance family as a value for + * baseline performance, the API returns an empty response for and an exception for + * , , , and .

    + */ + inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; } + inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; } + inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; } + inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); } + inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); } + inline PerformanceFactorReferenceRequest& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;} + inline PerformanceFactorReferenceRequest& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;} + inline PerformanceFactorReferenceRequest& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;} + ///@} + private: + + Aws::String m_instanceFamily; + bool m_instanceFamilyHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws 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 d0d7648734f..6fb214ab476 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 @@ -442,7 +442,8 @@ namespace Model *

    Information about the Capacity Reservation targeting option. If you do not * specify this parameter, the instance's Capacity Reservation preference defaults * to open, which enables it to run in any open Capacity Reservation - * that has matching attributes (instance type, platform, Availability Zone).

    + * that has matching attributes (instance type, platform, Availability Zone, and + * tenancy).

    */ inline const CapacityReservationSpecification& GetCapacityReservationSpecification() const{ return m_capacityReservationSpecification; } inline bool CapacityReservationSpecificationHasBeenSet() const { return m_capacityReservationSpecificationHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/BaselinePerformanceFactors.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/BaselinePerformanceFactors.cpp new file mode 100644 index 00000000000..6fbe4d6ecb1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/BaselinePerformanceFactors.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + +BaselinePerformanceFactors::BaselinePerformanceFactors() : + m_cpuHasBeenSet(false) +{ +} + +BaselinePerformanceFactors::BaselinePerformanceFactors(const XmlNode& xmlNode) + : BaselinePerformanceFactors() +{ + *this = xmlNode; +} + +BaselinePerformanceFactors& BaselinePerformanceFactors::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode cpuNode = resultNode.FirstChild("cpu"); + if(!cpuNode.IsNull()) + { + m_cpu = cpuNode; + m_cpuHasBeenSet = true; + } + } + + return *this; +} + +void BaselinePerformanceFactors::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_cpuHasBeenSet) + { + Aws::StringStream cpuLocationAndMemberSs; + cpuLocationAndMemberSs << location << index << locationValue << ".Cpu"; + m_cpu.OutputToStream(oStream, cpuLocationAndMemberSs.str().c_str()); + } + +} + +void BaselinePerformanceFactors::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_cpuHasBeenSet) + { + Aws::String cpuLocationAndMember(location); + cpuLocationAndMember += ".Cpu"; + m_cpu.OutputToStream(oStream, cpuLocationAndMember.c_str()); + } +} + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/BaselinePerformanceFactorsRequest.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/BaselinePerformanceFactorsRequest.cpp new file mode 100644 index 00000000000..b81951ee15a --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/BaselinePerformanceFactorsRequest.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + +BaselinePerformanceFactorsRequest::BaselinePerformanceFactorsRequest() : + m_cpuHasBeenSet(false) +{ +} + +BaselinePerformanceFactorsRequest::BaselinePerformanceFactorsRequest(const XmlNode& xmlNode) + : BaselinePerformanceFactorsRequest() +{ + *this = xmlNode; +} + +BaselinePerformanceFactorsRequest& BaselinePerformanceFactorsRequest::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode cpuNode = resultNode.FirstChild("Cpu"); + if(!cpuNode.IsNull()) + { + m_cpu = cpuNode; + m_cpuHasBeenSet = true; + } + } + + return *this; +} + +void BaselinePerformanceFactorsRequest::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_cpuHasBeenSet) + { + Aws::StringStream cpuLocationAndMemberSs; + cpuLocationAndMemberSs << location << index << locationValue << ".Cpu"; + m_cpu.OutputToStream(oStream, cpuLocationAndMemberSs.str().c_str()); + } + +} + +void BaselinePerformanceFactorsRequest::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_cpuHasBeenSet) + { + Aws::String cpuLocationAndMember(location); + cpuLocationAndMember += ".Cpu"; + m_cpu.OutputToStream(oStream, cpuLocationAndMember.c_str()); + } +} + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationPreference.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationPreference.cpp index 98875a77e41..0bf66fb3852 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationPreference.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationPreference.cpp @@ -20,6 +20,7 @@ namespace Aws namespace CapacityReservationPreferenceMapper { + static const int capacity_reservations_only_HASH = HashingUtils::HashString("capacity-reservations-only"); static const int open_HASH = HashingUtils::HashString("open"); static const int none_HASH = HashingUtils::HashString("none"); @@ -27,7 +28,11 @@ namespace Aws CapacityReservationPreference GetCapacityReservationPreferenceForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); - if (hashCode == open_HASH) + if (hashCode == capacity_reservations_only_HASH) + { + return CapacityReservationPreference::capacity_reservations_only; + } + else if (hashCode == open_HASH) { return CapacityReservationPreference::open; } @@ -51,6 +56,8 @@ namespace Aws { case CapacityReservationPreference::NOT_SET: return {}; + case CapacityReservationPreference::capacity_reservations_only: + return "capacity-reservations-only"; case CapacityReservationPreference::open: return "open"; case CapacityReservationPreference::none: diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CpuManufacturer.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CpuManufacturer.cpp index 813344fe0ce..5d41d82e89c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CpuManufacturer.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CpuManufacturer.cpp @@ -23,6 +23,7 @@ namespace Aws static const int intel_HASH = HashingUtils::HashString("intel"); static const int amd_HASH = HashingUtils::HashString("amd"); static const int amazon_web_services_HASH = HashingUtils::HashString("amazon-web-services"); + static const int apple_HASH = HashingUtils::HashString("apple"); CpuManufacturer GetCpuManufacturerForName(const Aws::String& name) @@ -40,6 +41,10 @@ namespace Aws { return CpuManufacturer::amazon_web_services; } + else if (hashCode == apple_HASH) + { + return CpuManufacturer::apple; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -62,6 +67,8 @@ namespace Aws return "amd"; case CpuManufacturer::amazon_web_services: return "amazon-web-services"; + case CpuManufacturer::apple: + return "apple"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CpuPerformanceFactor.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CpuPerformanceFactor.cpp new file mode 100644 index 00000000000..8bd05bf57db --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CpuPerformanceFactor.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + +CpuPerformanceFactor::CpuPerformanceFactor() : + m_referencesHasBeenSet(false) +{ +} + +CpuPerformanceFactor::CpuPerformanceFactor(const XmlNode& xmlNode) + : CpuPerformanceFactor() +{ + *this = xmlNode; +} + +CpuPerformanceFactor& CpuPerformanceFactor::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode referencesNode = resultNode.FirstChild("referenceSet"); + if(!referencesNode.IsNull()) + { + XmlNode referencesMember = referencesNode.FirstChild("item"); + while(!referencesMember.IsNull()) + { + m_references.push_back(referencesMember); + referencesMember = referencesMember.NextNode("item"); + } + + m_referencesHasBeenSet = true; + } + } + + return *this; +} + +void CpuPerformanceFactor::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_referencesHasBeenSet) + { + unsigned referencesIdx = 1; + for(auto& item : m_references) + { + Aws::StringStream referencesSs; + referencesSs << location << index << locationValue << ".ReferenceSet." << referencesIdx++; + item.OutputToStream(oStream, referencesSs.str().c_str()); + } + } + +} + +void CpuPerformanceFactor::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_referencesHasBeenSet) + { + unsigned referencesIdx = 1; + for(auto& item : m_references) + { + Aws::StringStream referencesSs; + referencesSs << location << ".ReferenceSet." << referencesIdx++; + item.OutputToStream(oStream, referencesSs.str().c_str()); + } + } +} + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CpuPerformanceFactorRequest.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CpuPerformanceFactorRequest.cpp new file mode 100644 index 00000000000..c6a47d9da2f --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CpuPerformanceFactorRequest.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + +CpuPerformanceFactorRequest::CpuPerformanceFactorRequest() : + m_referencesHasBeenSet(false) +{ +} + +CpuPerformanceFactorRequest::CpuPerformanceFactorRequest(const XmlNode& xmlNode) + : CpuPerformanceFactorRequest() +{ + *this = xmlNode; +} + +CpuPerformanceFactorRequest& CpuPerformanceFactorRequest::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode referencesNode = resultNode.FirstChild("Reference"); + if(!referencesNode.IsNull()) + { + XmlNode referencesMember = referencesNode.FirstChild("item"); + while(!referencesMember.IsNull()) + { + m_references.push_back(referencesMember); + referencesMember = referencesMember.NextNode("item"); + } + + m_referencesHasBeenSet = true; + } + } + + return *this; +} + +void CpuPerformanceFactorRequest::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_referencesHasBeenSet) + { + unsigned referencesIdx = 1; + for(auto& item : m_references) + { + Aws::StringStream referencesSs; + referencesSs << location << index << locationValue << ".Reference." << referencesIdx++; + item.OutputToStream(oStream, referencesSs.str().c_str()); + } + } + +} + +void CpuPerformanceFactorRequest::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_referencesHasBeenSet) + { + unsigned referencesIdx = 1; + for(auto& item : m_references) + { + Aws::StringStream referencesSs; + referencesSs << location << ".Reference." << referencesIdx++; + item.OutputToStream(oStream, referencesSs.str().c_str()); + } + } +} + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceRequirements.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceRequirements.cpp index d71f13747d9..5fa4ab6480f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceRequirements.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceRequirements.cpp @@ -51,7 +51,8 @@ InstanceRequirements::InstanceRequirements() : m_networkBandwidthGbpsHasBeenSet(false), m_allowedInstanceTypesHasBeenSet(false), m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice(0), - m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet(false) + m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet(false), + m_baselinePerformanceFactorsHasBeenSet(false) { } @@ -259,6 +260,12 @@ InstanceRequirements& InstanceRequirements::operator =(const XmlNode& xmlNode) m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(maxSpotPriceAsPercentageOfOptimalOnDemandPriceNode.GetText()).c_str()).c_str()); m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet = true; } + XmlNode baselinePerformanceFactorsNode = resultNode.FirstChild("baselinePerformanceFactors"); + if(!baselinePerformanceFactorsNode.IsNull()) + { + m_baselinePerformanceFactors = baselinePerformanceFactorsNode; + m_baselinePerformanceFactorsHasBeenSet = true; + } } return *this; @@ -436,6 +443,13 @@ void InstanceRequirements::OutputToStream(Aws::OStream& oStream, const char* loc oStream << location << index << locationValue << ".MaxSpotPriceAsPercentageOfOptimalOnDemandPrice=" << m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice << "&"; } + if(m_baselinePerformanceFactorsHasBeenSet) + { + Aws::StringStream baselinePerformanceFactorsLocationAndMemberSs; + baselinePerformanceFactorsLocationAndMemberSs << location << index << locationValue << ".BaselinePerformanceFactors"; + m_baselinePerformanceFactors.OutputToStream(oStream, baselinePerformanceFactorsLocationAndMemberSs.str().c_str()); + } + } void InstanceRequirements::OutputToStream(Aws::OStream& oStream, const char* location) const @@ -586,6 +600,12 @@ void InstanceRequirements::OutputToStream(Aws::OStream& oStream, const char* loc { oStream << location << ".MaxSpotPriceAsPercentageOfOptimalOnDemandPrice=" << m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice << "&"; } + if(m_baselinePerformanceFactorsHasBeenSet) + { + Aws::String baselinePerformanceFactorsLocationAndMember(location); + baselinePerformanceFactorsLocationAndMember += ".BaselinePerformanceFactors"; + m_baselinePerformanceFactors.OutputToStream(oStream, baselinePerformanceFactorsLocationAndMember.c_str()); + } } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceRequirementsRequest.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceRequirementsRequest.cpp index 2c79eca2081..660a3e2dc0f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceRequirementsRequest.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceRequirementsRequest.cpp @@ -51,7 +51,8 @@ InstanceRequirementsRequest::InstanceRequirementsRequest() : m_networkBandwidthGbpsHasBeenSet(false), m_allowedInstanceTypesHasBeenSet(false), m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice(0), - m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet(false) + m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet(false), + m_baselinePerformanceFactorsHasBeenSet(false) { } @@ -259,6 +260,12 @@ InstanceRequirementsRequest& InstanceRequirementsRequest::operator =(const XmlNo m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(maxSpotPriceAsPercentageOfOptimalOnDemandPriceNode.GetText()).c_str()).c_str()); m_maxSpotPriceAsPercentageOfOptimalOnDemandPriceHasBeenSet = true; } + XmlNode baselinePerformanceFactorsNode = resultNode.FirstChild("BaselinePerformanceFactors"); + if(!baselinePerformanceFactorsNode.IsNull()) + { + m_baselinePerformanceFactors = baselinePerformanceFactorsNode; + m_baselinePerformanceFactorsHasBeenSet = true; + } } return *this; @@ -436,6 +443,13 @@ void InstanceRequirementsRequest::OutputToStream(Aws::OStream& oStream, const ch oStream << location << index << locationValue << ".MaxSpotPriceAsPercentageOfOptimalOnDemandPrice=" << m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice << "&"; } + if(m_baselinePerformanceFactorsHasBeenSet) + { + Aws::StringStream baselinePerformanceFactorsLocationAndMemberSs; + baselinePerformanceFactorsLocationAndMemberSs << location << index << locationValue << ".BaselinePerformanceFactors"; + m_baselinePerformanceFactors.OutputToStream(oStream, baselinePerformanceFactorsLocationAndMemberSs.str().c_str()); + } + } void InstanceRequirementsRequest::OutputToStream(Aws::OStream& oStream, const char* location) const @@ -586,6 +600,12 @@ void InstanceRequirementsRequest::OutputToStream(Aws::OStream& oStream, const ch { oStream << location << ".MaxSpotPriceAsPercentageOfOptimalOnDemandPrice=" << m_maxSpotPriceAsPercentageOfOptimalOnDemandPrice << "&"; } + if(m_baselinePerformanceFactorsHasBeenSet) + { + Aws::String baselinePerformanceFactorsLocationAndMember(location); + baselinePerformanceFactorsLocationAndMember += ".BaselinePerformanceFactors"; + m_baselinePerformanceFactors.OutputToStream(oStream, baselinePerformanceFactorsLocationAndMember.c_str()); + } } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PerformanceFactorReference.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PerformanceFactorReference.cpp new file mode 100644 index 00000000000..1042008fc52 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PerformanceFactorReference.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 + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + +PerformanceFactorReference::PerformanceFactorReference() : + m_instanceFamilyHasBeenSet(false) +{ +} + +PerformanceFactorReference::PerformanceFactorReference(const XmlNode& xmlNode) + : PerformanceFactorReference() +{ + *this = xmlNode; +} + +PerformanceFactorReference& PerformanceFactorReference::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode instanceFamilyNode = resultNode.FirstChild("instanceFamily"); + if(!instanceFamilyNode.IsNull()) + { + m_instanceFamily = Aws::Utils::Xml::DecodeEscapedXmlText(instanceFamilyNode.GetText()); + m_instanceFamilyHasBeenSet = true; + } + } + + return *this; +} + +void PerformanceFactorReference::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_instanceFamilyHasBeenSet) + { + oStream << location << index << locationValue << ".InstanceFamily=" << StringUtils::URLEncode(m_instanceFamily.c_str()) << "&"; + } + +} + +void PerformanceFactorReference::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_instanceFamilyHasBeenSet) + { + oStream << location << ".InstanceFamily=" << StringUtils::URLEncode(m_instanceFamily.c_str()) << "&"; + } +} + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PerformanceFactorReferenceRequest.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PerformanceFactorReferenceRequest.cpp new file mode 100644 index 00000000000..6cae6e7d0f8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PerformanceFactorReferenceRequest.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 + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + +PerformanceFactorReferenceRequest::PerformanceFactorReferenceRequest() : + m_instanceFamilyHasBeenSet(false) +{ +} + +PerformanceFactorReferenceRequest::PerformanceFactorReferenceRequest(const XmlNode& xmlNode) + : PerformanceFactorReferenceRequest() +{ + *this = xmlNode; +} + +PerformanceFactorReferenceRequest& PerformanceFactorReferenceRequest::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode instanceFamilyNode = resultNode.FirstChild("InstanceFamily"); + if(!instanceFamilyNode.IsNull()) + { + m_instanceFamily = Aws::Utils::Xml::DecodeEscapedXmlText(instanceFamilyNode.GetText()); + m_instanceFamilyHasBeenSet = true; + } + } + + return *this; +} + +void PerformanceFactorReferenceRequest::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_instanceFamilyHasBeenSet) + { + oStream << location << index << locationValue << ".InstanceFamily=" << StringUtils::URLEncode(m_instanceFamily.c_str()) << "&"; + } + +} + +void PerformanceFactorReferenceRequest::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_instanceFamilyHasBeenSet) + { + oStream << location << ".InstanceFamily=" << StringUtils::URLEncode(m_instanceFamily.c_str()) << "&"; + } +} + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h index 4505c2bb75d..0a9e0cdd2ce 100644 --- a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h +++ b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h @@ -387,7 +387,7 @@ namespace ECS * remaining capacity providers. Only capacity providers that aren't associated * with a cluster can be deleted. To remove a capacity provider from a cluster, you * can either use PutCapacityProviderProviders + * href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders * or delete the cluster.

    See Also:

    AWS * API Reference

    diff --git a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/AvailabilityZoneRebalancing.h b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/AvailabilityZoneRebalancing.h new file mode 100644 index 00000000000..5cadb4e4d49 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/AvailabilityZoneRebalancing.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 ECS +{ +namespace Model +{ + enum class AvailabilityZoneRebalancing + { + NOT_SET, + ENABLED, + DISABLED + }; + +namespace AvailabilityZoneRebalancingMapper +{ +AWS_ECS_API AvailabilityZoneRebalancing GetAvailabilityZoneRebalancingForName(const Aws::String& name); + +AWS_ECS_API Aws::String GetNameForAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value); +} // namespace AvailabilityZoneRebalancingMapper +} // namespace Model +} // namespace ECS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/CreateServiceRequest.h b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/CreateServiceRequest.h index bdf15d3c4af..e00d889a691 100644 --- a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/CreateServiceRequest.h +++ b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/CreateServiceRequest.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -105,6 +106,22 @@ namespace Model inline CreateServiceRequest& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;} ///@} + ///@{ + /** + *

    Indicates whether to use Availability Zone rebalancing for the service.

    + *

    For more information, see Balancing + * an Amazon ECS service across Availability Zones in the Amazon Elastic + * Container Service Developer Guide.

    + */ + inline const AvailabilityZoneRebalancing& GetAvailabilityZoneRebalancing() const{ return m_availabilityZoneRebalancing; } + inline bool AvailabilityZoneRebalancingHasBeenSet() const { return m_availabilityZoneRebalancingHasBeenSet; } + inline void SetAvailabilityZoneRebalancing(const AvailabilityZoneRebalancing& value) { m_availabilityZoneRebalancingHasBeenSet = true; m_availabilityZoneRebalancing = value; } + inline void SetAvailabilityZoneRebalancing(AvailabilityZoneRebalancing&& value) { m_availabilityZoneRebalancingHasBeenSet = true; m_availabilityZoneRebalancing = std::move(value); } + inline CreateServiceRequest& WithAvailabilityZoneRebalancing(const AvailabilityZoneRebalancing& value) { SetAvailabilityZoneRebalancing(value); return *this;} + inline CreateServiceRequest& WithAvailabilityZoneRebalancing(AvailabilityZoneRebalancing&& value) { SetAvailabilityZoneRebalancing(std::move(value)); return *this;} + ///@} + ///@{ /** *

    A load balancer object representing the load balancers to use with your @@ -572,6 +589,9 @@ namespace Model Aws::String m_taskDefinition; bool m_taskDefinitionHasBeenSet = false; + AvailabilityZoneRebalancing m_availabilityZoneRebalancing; + bool m_availabilityZoneRebalancingHasBeenSet = false; + Aws::Vector m_loadBalancers; bool m_loadBalancersHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/DeploymentController.h b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/DeploymentController.h index 7a68536c23f..d5944252ed6 100644 --- a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/DeploymentController.h +++ b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/DeploymentController.h @@ -24,11 +24,8 @@ namespace Model { /** - *

    The deployment controller to use for the service. For more information, see + *

    The deployment controller to use for the service.

    See Also:

    * Amazon - * ECS deployment types in the Amazon Elastic Container Service Developer - * Guide.

    See Also:

    AWS * API Reference

    */ @@ -51,13 +48,24 @@ namespace Model * controlled by adjusting the minimum and maximum number of healthy tasks allowed * during a service deployment, as specified in the DeploymentConfiguration.

    - *
    CODE_DEPLOY

    The blue/green (CODE_DEPLOY) - * deployment type uses the blue/green deployment model powered by CodeDeploy, - * which allows you to verify a new deployment of a service before sending - * production traffic to it.

    EXTERNAL

    The external - * (EXTERNAL) deployment type enables you to use any third-party - * deployment controller for full control over the deployment process for an Amazon - * ECS service.

    + *

    For more information about rolling deployments, see Deploy + * Amazon ECS services by replacing tasks in the Amazon Elastic Container + * Service Developer Guide.

    CODE_DEPLOY

    The + * blue/green (CODE_DEPLOY) deployment type uses the blue/green + * deployment model powered by CodeDeploy, which allows you to verify a new + * deployment of a service before sending production traffic to it.

    For more + * information about blue/green deployments, see Validate + * the state of an Amazon ECS service before deployment in the Amazon + * Elastic Container Service Developer Guide.

    EXTERNAL
    + *

    The external (EXTERNAL) deployment type enables you to use any + * third-party deployment controller for full control over the deployment process + * for an Amazon ECS service.

    For more information about external + * deployments, see Deploy + * Amazon ECS services using a third-party controller in the Amazon Elastic + * Container Service Developer Guide.

    */ inline const DeploymentControllerType& GetType() const{ return m_type; } inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/Service.h b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/Service.h index 6c2ae42db88..4242b369698 100644 --- a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/Service.h +++ b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/Service.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -531,6 +532,22 @@ namespace Model inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; } inline Service& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;} ///@} + + ///@{ + /** + *

    Indicates whether to use Availability Zone rebalancing for the service.

    + *

    For more information, see Balancing + * an Amazon ECS service across Availability Zones in the Amazon Elastic + * Container Service Developer Guide.

    + */ + inline const AvailabilityZoneRebalancing& GetAvailabilityZoneRebalancing() const{ return m_availabilityZoneRebalancing; } + inline bool AvailabilityZoneRebalancingHasBeenSet() const { return m_availabilityZoneRebalancingHasBeenSet; } + inline void SetAvailabilityZoneRebalancing(const AvailabilityZoneRebalancing& value) { m_availabilityZoneRebalancingHasBeenSet = true; m_availabilityZoneRebalancing = value; } + inline void SetAvailabilityZoneRebalancing(AvailabilityZoneRebalancing&& value) { m_availabilityZoneRebalancingHasBeenSet = true; m_availabilityZoneRebalancing = std::move(value); } + inline Service& WithAvailabilityZoneRebalancing(const AvailabilityZoneRebalancing& value) { SetAvailabilityZoneRebalancing(value); return *this;} + inline Service& WithAvailabilityZoneRebalancing(AvailabilityZoneRebalancing&& value) { SetAvailabilityZoneRebalancing(std::move(value)); return *this;} + ///@} private: Aws::String m_serviceArn; @@ -625,6 +642,9 @@ namespace Model bool m_enableExecuteCommand; bool m_enableExecuteCommandHasBeenSet = false; + + AvailabilityZoneRebalancing m_availabilityZoneRebalancing; + bool m_availabilityZoneRebalancingHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/UpdateServiceRequest.h b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/UpdateServiceRequest.h index ef31f429c4c..6ceeec95ad3 100644 --- a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/UpdateServiceRequest.h +++ b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/UpdateServiceRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -156,6 +157,22 @@ namespace Model inline UpdateServiceRequest& WithDeploymentConfiguration(DeploymentConfiguration&& value) { SetDeploymentConfiguration(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    Indicates whether to use Availability Zone rebalancing for the service.

    + *

    For more information, see Balancing + * an Amazon ECS service across Availability Zones in the Amazon Elastic + * Container Service Developer Guide.

    + */ + inline const AvailabilityZoneRebalancing& GetAvailabilityZoneRebalancing() const{ return m_availabilityZoneRebalancing; } + inline bool AvailabilityZoneRebalancingHasBeenSet() const { return m_availabilityZoneRebalancingHasBeenSet; } + inline void SetAvailabilityZoneRebalancing(const AvailabilityZoneRebalancing& value) { m_availabilityZoneRebalancingHasBeenSet = true; m_availabilityZoneRebalancing = value; } + inline void SetAvailabilityZoneRebalancing(AvailabilityZoneRebalancing&& value) { m_availabilityZoneRebalancingHasBeenSet = true; m_availabilityZoneRebalancing = std::move(value); } + inline UpdateServiceRequest& WithAvailabilityZoneRebalancing(const AvailabilityZoneRebalancing& value) { SetAvailabilityZoneRebalancing(value); return *this;} + inline UpdateServiceRequest& WithAvailabilityZoneRebalancing(AvailabilityZoneRebalancing&& value) { SetAvailabilityZoneRebalancing(std::move(value)); return *this;} + ///@} + ///@{ /** *

    An object representing the network configuration for the service.

    @@ -441,6 +458,9 @@ namespace Model DeploymentConfiguration m_deploymentConfiguration; bool m_deploymentConfigurationHasBeenSet = false; + AvailabilityZoneRebalancing m_availabilityZoneRebalancing; + bool m_availabilityZoneRebalancingHasBeenSet = false; + NetworkConfiguration m_networkConfiguration; bool m_networkConfigurationHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/AvailabilityZoneRebalancing.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/AvailabilityZoneRebalancing.cpp new file mode 100644 index 00000000000..433699c22ca --- /dev/null +++ b/generated/src/aws-cpp-sdk-ecs/source/model/AvailabilityZoneRebalancing.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 ECS + { + namespace Model + { + namespace AvailabilityZoneRebalancingMapper + { + + static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + + + AvailabilityZoneRebalancing GetAvailabilityZoneRebalancingForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ENABLED_HASH) + { + return AvailabilityZoneRebalancing::ENABLED; + } + else if (hashCode == DISABLED_HASH) + { + return AvailabilityZoneRebalancing::DISABLED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AvailabilityZoneRebalancing::NOT_SET; + } + + Aws::String GetNameForAvailabilityZoneRebalancing(AvailabilityZoneRebalancing enumValue) + { + switch(enumValue) + { + case AvailabilityZoneRebalancing::NOT_SET: + return {}; + case AvailabilityZoneRebalancing::ENABLED: + return "ENABLED"; + case AvailabilityZoneRebalancing::DISABLED: + return "DISABLED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AvailabilityZoneRebalancingMapper + } // namespace Model + } // namespace ECS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/CreateServiceRequest.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/CreateServiceRequest.cpp index 1bd68a03729..75cc9aee6a8 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/CreateServiceRequest.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/CreateServiceRequest.cpp @@ -16,6 +16,8 @@ CreateServiceRequest::CreateServiceRequest() : m_clusterHasBeenSet(false), m_serviceNameHasBeenSet(false), m_taskDefinitionHasBeenSet(false), + m_availabilityZoneRebalancing(AvailabilityZoneRebalancing::NOT_SET), + m_availabilityZoneRebalancingHasBeenSet(false), m_loadBalancersHasBeenSet(false), m_serviceRegistriesHasBeenSet(false), m_desiredCount(0), @@ -70,6 +72,11 @@ Aws::String CreateServiceRequest::SerializePayload() const } + if(m_availabilityZoneRebalancingHasBeenSet) + { + payload.WithString("availabilityZoneRebalancing", AvailabilityZoneRebalancingMapper::GetNameForAvailabilityZoneRebalancing(m_availabilityZoneRebalancing)); + } + if(m_loadBalancersHasBeenSet) { Aws::Utils::Array loadBalancersJsonList(m_loadBalancers.size()); diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/Service.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/Service.cpp index b0f1fe66942..a53ca7197f5 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/Service.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/Service.cpp @@ -58,7 +58,9 @@ Service::Service() : m_propagateTags(PropagateTags::NOT_SET), m_propagateTagsHasBeenSet(false), m_enableExecuteCommand(false), - m_enableExecuteCommandHasBeenSet(false) + m_enableExecuteCommandHasBeenSet(false), + m_availabilityZoneRebalancing(AvailabilityZoneRebalancing::NOT_SET), + m_availabilityZoneRebalancingHasBeenSet(false) { } @@ -314,6 +316,13 @@ Service& Service::operator =(JsonView jsonValue) m_enableExecuteCommandHasBeenSet = true; } + if(jsonValue.ValueExists("availabilityZoneRebalancing")) + { + m_availabilityZoneRebalancing = AvailabilityZoneRebalancingMapper::GetAvailabilityZoneRebalancingForName(jsonValue.GetString("availabilityZoneRebalancing")); + + m_availabilityZoneRebalancingHasBeenSet = true; + } + return *this; } @@ -548,6 +557,11 @@ JsonValue Service::Jsonize() const } + if(m_availabilityZoneRebalancingHasBeenSet) + { + payload.WithString("availabilityZoneRebalancing", AvailabilityZoneRebalancingMapper::GetNameForAvailabilityZoneRebalancing(m_availabilityZoneRebalancing)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/UpdateServiceRequest.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/UpdateServiceRequest.cpp index f7a17a9a10d..c8fec2d76d7 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/UpdateServiceRequest.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/UpdateServiceRequest.cpp @@ -20,6 +20,8 @@ UpdateServiceRequest::UpdateServiceRequest() : m_taskDefinitionHasBeenSet(false), m_capacityProviderStrategyHasBeenSet(false), m_deploymentConfigurationHasBeenSet(false), + m_availabilityZoneRebalancing(AvailabilityZoneRebalancing::NOT_SET), + m_availabilityZoneRebalancingHasBeenSet(false), m_networkConfigurationHasBeenSet(false), m_placementConstraintsHasBeenSet(false), m_placementStrategyHasBeenSet(false), @@ -87,6 +89,11 @@ Aws::String UpdateServiceRequest::SerializePayload() const } + if(m_availabilityZoneRebalancingHasBeenSet) + { + payload.WithString("availabilityZoneRebalancing", AvailabilityZoneRebalancingMapper::GetNameForAvailabilityZoneRebalancing(m_availabilityZoneRebalancing)); + } + if(m_networkConfigurationHasBeenSet) { payload.WithObject("networkConfiguration", m_networkConfiguration.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2Client.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2Client.h index cbd4473f825..f80cb4cc989 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2Client.h +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2Client.h @@ -596,6 +596,32 @@ namespace ElasticLoadBalancingv2 return SubmitAsync(&ElasticLoadBalancingv2Client::DescribeAccountLimits, request, handler, context); } + /** + *

    Describes the capacity reservation status for the specified load + * balancer.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DescribeCapacityReservationOutcome DescribeCapacityReservation(const Model::DescribeCapacityReservationRequest& request) const; + + /** + * A Callable wrapper for DescribeCapacityReservation that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DescribeCapacityReservationOutcomeCallable DescribeCapacityReservationCallable(const DescribeCapacityReservationRequestT& request) const + { + return SubmitCallable(&ElasticLoadBalancingv2Client::DescribeCapacityReservation, request); + } + + /** + * An Async wrapper for DescribeCapacityReservation that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DescribeCapacityReservationAsync(const DescribeCapacityReservationRequestT& request, const DescribeCapacityReservationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ElasticLoadBalancingv2Client::DescribeCapacityReservation, request, handler, context); + } + /** *

    Describes the attributes for the specified listener.

    See Also:

    * Modifies the capacity reservation of the specified load balancer.

    When + * modifying capacity reservation, you must include at least one + * MinimumLoadBalancerCapacity or + * ResetCapacityReservation.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ModifyCapacityReservationOutcome ModifyCapacityReservation(const Model::ModifyCapacityReservationRequest& request) const; + + /** + * A Callable wrapper for ModifyCapacityReservation that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ModifyCapacityReservationOutcomeCallable ModifyCapacityReservationCallable(const ModifyCapacityReservationRequestT& request) const + { + return SubmitCallable(&ElasticLoadBalancingv2Client::ModifyCapacityReservation, request); + } + + /** + * An Async wrapper for ModifyCapacityReservation that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ModifyCapacityReservationAsync(const ModifyCapacityReservationRequestT& request, const ModifyCapacityReservationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ElasticLoadBalancingv2Client::ModifyCapacityReservation, request, handler, context); + } + /** *

    Replaces the specified properties of the specified listener. Any properties * that you do not specify remain unchanged.

    Changing the protocol from diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2Errors.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2Errors.h index 8930c99d463..24f0c8db50a 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2Errors.h +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2Errors.h @@ -50,6 +50,9 @@ enum class ElasticLoadBalancingv2Errors ALLOCATION_ID_NOT_FOUND= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, AVAILABILITY_ZONE_NOT_SUPPORTED, A_L_P_N_POLICY_NOT_SUPPORTED, + CAPACITY_DECREASE_REQUESTS_LIMIT_EXCEEDED, + CAPACITY_RESERVATION_PENDING, + CAPACITY_UNITS_LIMIT_EXCEEDED, CA_CERTIFICATES_BUNDLE_NOT_FOUND, CERTIFICATE_NOT_FOUND, DELETE_ASSOCIATION_SAME_ACCOUNT, @@ -60,6 +63,7 @@ enum class ElasticLoadBalancingv2Errors DUPLICATE_TRUST_STORE_NAME, HEALTH_UNAVAILABLE, INCOMPATIBLE_PROTOCOLS, + INSUFFICIENT_CAPACITY, INVALID_CA_CERTIFICATES_BUNDLE, INVALID_CONFIGURATION_REQUEST, INVALID_LOAD_BALANCER_ACTION, @@ -72,6 +76,7 @@ enum class ElasticLoadBalancingv2Errors LOAD_BALANCER_NOT_FOUND, OPERATION_NOT_PERMITTED, PRIORITY_IN_USE, + PRIOR_REQUEST_NOT_COMPLETE, RESOURCE_IN_USE, REVOCATION_CONTENT_NOT_FOUND, REVOCATION_ID_NOT_FOUND, diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2ServiceClientModel.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2ServiceClientModel.h index a2bb995fbf2..ad6b17d94d8 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2ServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/ElasticLoadBalancingv2ServiceClientModel.h @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -51,6 +52,7 @@ #include #include #include +#include #include #include #include @@ -129,6 +131,7 @@ namespace Aws class DeleteTrustStoreRequest; class DeregisterTargetsRequest; class DescribeAccountLimitsRequest; + class DescribeCapacityReservationRequest; class DescribeListenerAttributesRequest; class DescribeListenerCertificatesRequest; class DescribeListenersRequest; @@ -146,6 +149,7 @@ namespace Aws class GetResourcePolicyRequest; class GetTrustStoreCaCertificatesBundleRequest; class GetTrustStoreRevocationContentRequest; + class ModifyCapacityReservationRequest; class ModifyListenerRequest; class ModifyListenerAttributesRequest; class ModifyLoadBalancerAttributesRequest; @@ -180,6 +184,7 @@ namespace Aws typedef Aws::Utils::Outcome DeleteTrustStoreOutcome; typedef Aws::Utils::Outcome DeregisterTargetsOutcome; typedef Aws::Utils::Outcome DescribeAccountLimitsOutcome; + typedef Aws::Utils::Outcome DescribeCapacityReservationOutcome; typedef Aws::Utils::Outcome DescribeListenerAttributesOutcome; typedef Aws::Utils::Outcome DescribeListenerCertificatesOutcome; typedef Aws::Utils::Outcome DescribeListenersOutcome; @@ -197,6 +202,7 @@ namespace Aws typedef Aws::Utils::Outcome GetResourcePolicyOutcome; typedef Aws::Utils::Outcome GetTrustStoreCaCertificatesBundleOutcome; typedef Aws::Utils::Outcome GetTrustStoreRevocationContentOutcome; + typedef Aws::Utils::Outcome ModifyCapacityReservationOutcome; typedef Aws::Utils::Outcome ModifyListenerOutcome; typedef Aws::Utils::Outcome ModifyListenerAttributesOutcome; typedef Aws::Utils::Outcome ModifyLoadBalancerAttributesOutcome; @@ -231,6 +237,7 @@ namespace Aws typedef std::future DeleteTrustStoreOutcomeCallable; typedef std::future DeregisterTargetsOutcomeCallable; typedef std::future DescribeAccountLimitsOutcomeCallable; + typedef std::future DescribeCapacityReservationOutcomeCallable; typedef std::future DescribeListenerAttributesOutcomeCallable; typedef std::future DescribeListenerCertificatesOutcomeCallable; typedef std::future DescribeListenersOutcomeCallable; @@ -248,6 +255,7 @@ namespace Aws typedef std::future GetResourcePolicyOutcomeCallable; typedef std::future GetTrustStoreCaCertificatesBundleOutcomeCallable; typedef std::future GetTrustStoreRevocationContentOutcomeCallable; + typedef std::future ModifyCapacityReservationOutcomeCallable; typedef std::future ModifyListenerOutcomeCallable; typedef std::future ModifyListenerAttributesOutcomeCallable; typedef std::future ModifyLoadBalancerAttributesOutcomeCallable; @@ -285,6 +293,7 @@ namespace Aws typedef std::function&) > DeleteTrustStoreResponseReceivedHandler; typedef std::function&) > DeregisterTargetsResponseReceivedHandler; typedef std::function&) > DescribeAccountLimitsResponseReceivedHandler; + typedef std::function&) > DescribeCapacityReservationResponseReceivedHandler; typedef std::function&) > DescribeListenerAttributesResponseReceivedHandler; typedef std::function&) > DescribeListenerCertificatesResponseReceivedHandler; typedef std::function&) > DescribeListenersResponseReceivedHandler; @@ -302,6 +311,7 @@ namespace Aws typedef std::function&) > GetResourcePolicyResponseReceivedHandler; typedef std::function&) > GetTrustStoreCaCertificatesBundleResponseReceivedHandler; typedef std::function&) > GetTrustStoreRevocationContentResponseReceivedHandler; + typedef std::function&) > ModifyCapacityReservationResponseReceivedHandler; typedef std::function&) > ModifyListenerResponseReceivedHandler; typedef std::function&) > ModifyListenerAttributesResponseReceivedHandler; typedef std::function&) > ModifyLoadBalancerAttributesResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CapacityReservationStateEnum.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CapacityReservationStateEnum.h new file mode 100644 index 00000000000..e87168d784e --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CapacityReservationStateEnum.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 ElasticLoadBalancingv2 +{ +namespace Model +{ + enum class CapacityReservationStateEnum + { + NOT_SET, + provisioned, + pending, + rebalancing, + failed + }; + +namespace CapacityReservationStateEnumMapper +{ +AWS_ELASTICLOADBALANCINGV2_API CapacityReservationStateEnum GetCapacityReservationStateEnumForName(const Aws::String& name); + +AWS_ELASTICLOADBALANCINGV2_API Aws::String GetNameForCapacityReservationStateEnum(CapacityReservationStateEnum value); +} // namespace CapacityReservationStateEnumMapper +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CapacityReservationStatus.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CapacityReservationStatus.h new file mode 100644 index 00000000000..2e1f1ef6612 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CapacityReservationStatus.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 Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace ElasticLoadBalancingv2 +{ +namespace Model +{ + + /** + *

    The status of a capacity reservation.

    See Also:

    AWS + * API Reference

    + */ + class CapacityReservationStatus + { + public: + AWS_ELASTICLOADBALANCINGV2_API CapacityReservationStatus(); + AWS_ELASTICLOADBALANCINGV2_API CapacityReservationStatus(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_ELASTICLOADBALANCINGV2_API CapacityReservationStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    The status code.

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

    The reason code for the status.

    + */ + inline const Aws::String& GetReason() const{ return m_reason; } + inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } + inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } + inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } + inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } + inline CapacityReservationStatus& WithReason(const Aws::String& value) { SetReason(value); return *this;} + inline CapacityReservationStatus& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} + inline CapacityReservationStatus& WithReason(const char* value) { SetReason(value); return *this;} + ///@} + private: + + CapacityReservationStateEnum m_code; + bool m_codeHasBeenSet = false; + + Aws::String m_reason; + bool m_reasonHasBeenSet = false; + }; + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/DescribeCapacityReservationRequest.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/DescribeCapacityReservationRequest.h new file mode 100644 index 00000000000..b2fd44c0c34 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/DescribeCapacityReservationRequest.h @@ -0,0 +1,60 @@ +/** + * 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 ElasticLoadBalancingv2 +{ +namespace Model +{ + + /** + */ + class DescribeCapacityReservationRequest : public ElasticLoadBalancingv2Request + { + public: + AWS_ELASTICLOADBALANCINGV2_API DescribeCapacityReservationRequest(); + + // 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 "DescribeCapacityReservation"; } + + AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override; + + protected: + AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the load balancer.

    + */ + inline const Aws::String& GetLoadBalancerArn() const{ return m_loadBalancerArn; } + inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; } + inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; } + inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::move(value); } + inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); } + inline DescribeCapacityReservationRequest& WithLoadBalancerArn(const Aws::String& value) { SetLoadBalancerArn(value); return *this;} + inline DescribeCapacityReservationRequest& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(std::move(value)); return *this;} + inline DescribeCapacityReservationRequest& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;} + ///@} + private: + + Aws::String m_loadBalancerArn; + bool m_loadBalancerArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/DescribeCapacityReservationResult.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/DescribeCapacityReservationResult.h new file mode 100644 index 00000000000..8787e792283 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/DescribeCapacityReservationResult.h @@ -0,0 +1,106 @@ +/** + * 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 +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace ElasticLoadBalancingv2 +{ +namespace Model +{ + class DescribeCapacityReservationResult + { + public: + AWS_ELASTICLOADBALANCINGV2_API DescribeCapacityReservationResult(); + AWS_ELASTICLOADBALANCINGV2_API DescribeCapacityReservationResult(const Aws::AmazonWebServiceResult& result); + AWS_ELASTICLOADBALANCINGV2_API DescribeCapacityReservationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The last time the capacity reservation was modified.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } + inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } + inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } + inline DescribeCapacityReservationResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline DescribeCapacityReservationResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The amount of daily capacity decreases remaining.

    + */ + inline int GetDecreaseRequestsRemaining() const{ return m_decreaseRequestsRemaining; } + inline void SetDecreaseRequestsRemaining(int value) { m_decreaseRequestsRemaining = value; } + inline DescribeCapacityReservationResult& WithDecreaseRequestsRemaining(int value) { SetDecreaseRequestsRemaining(value); return *this;} + ///@} + + ///@{ + /** + *

    The requested minimum capacity reservation for the load balancer

    + */ + inline const MinimumLoadBalancerCapacity& GetMinimumLoadBalancerCapacity() const{ return m_minimumLoadBalancerCapacity; } + inline void SetMinimumLoadBalancerCapacity(const MinimumLoadBalancerCapacity& value) { m_minimumLoadBalancerCapacity = value; } + inline void SetMinimumLoadBalancerCapacity(MinimumLoadBalancerCapacity&& value) { m_minimumLoadBalancerCapacity = std::move(value); } + inline DescribeCapacityReservationResult& WithMinimumLoadBalancerCapacity(const MinimumLoadBalancerCapacity& value) { SetMinimumLoadBalancerCapacity(value); return *this;} + inline DescribeCapacityReservationResult& WithMinimumLoadBalancerCapacity(MinimumLoadBalancerCapacity&& value) { SetMinimumLoadBalancerCapacity(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The state of the capacity reservation.

    + */ + inline const Aws::Vector& GetCapacityReservationState() const{ return m_capacityReservationState; } + inline void SetCapacityReservationState(const Aws::Vector& value) { m_capacityReservationState = value; } + inline void SetCapacityReservationState(Aws::Vector&& value) { m_capacityReservationState = std::move(value); } + inline DescribeCapacityReservationResult& WithCapacityReservationState(const Aws::Vector& value) { SetCapacityReservationState(value); return *this;} + inline DescribeCapacityReservationResult& WithCapacityReservationState(Aws::Vector&& value) { SetCapacityReservationState(std::move(value)); return *this;} + inline DescribeCapacityReservationResult& AddCapacityReservationState(const ZonalCapacityReservationState& value) { m_capacityReservationState.push_back(value); return *this; } + inline DescribeCapacityReservationResult& AddCapacityReservationState(ZonalCapacityReservationState&& value) { m_capacityReservationState.push_back(std::move(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 DescribeCapacityReservationResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + inline DescribeCapacityReservationResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + ///@} + private: + + Aws::Utils::DateTime m_lastModifiedTime; + + int m_decreaseRequestsRemaining; + + MinimumLoadBalancerCapacity m_minimumLoadBalancerCapacity; + + Aws::Vector m_capacityReservationState; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/MinimumLoadBalancerCapacity.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/MinimumLoadBalancerCapacity.h new file mode 100644 index 00000000000..1148e2e5c76 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/MinimumLoadBalancerCapacity.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace ElasticLoadBalancingv2 +{ +namespace Model +{ + + /** + *

    The minimum capacity for a load balancer.

    See Also:

    AWS + * API Reference

    + */ + class MinimumLoadBalancerCapacity + { + public: + AWS_ELASTICLOADBALANCINGV2_API MinimumLoadBalancerCapacity(); + AWS_ELASTICLOADBALANCINGV2_API MinimumLoadBalancerCapacity(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_ELASTICLOADBALANCINGV2_API MinimumLoadBalancerCapacity& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    The number of capacity units.

    + */ + inline int GetCapacityUnits() const{ return m_capacityUnits; } + inline bool CapacityUnitsHasBeenSet() const { return m_capacityUnitsHasBeenSet; } + inline void SetCapacityUnits(int value) { m_capacityUnitsHasBeenSet = true; m_capacityUnits = value; } + inline MinimumLoadBalancerCapacity& WithCapacityUnits(int value) { SetCapacityUnits(value); return *this;} + ///@} + private: + + int m_capacityUnits; + bool m_capacityUnitsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ModifyCapacityReservationRequest.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ModifyCapacityReservationRequest.h new file mode 100644 index 00000000000..8dffba3f3fe --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ModifyCapacityReservationRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ElasticLoadBalancingv2 +{ +namespace Model +{ + + /** + */ + class ModifyCapacityReservationRequest : public ElasticLoadBalancingv2Request + { + public: + AWS_ELASTICLOADBALANCINGV2_API ModifyCapacityReservationRequest(); + + // 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 "ModifyCapacityReservation"; } + + AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override; + + protected: + AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the load balancer.

    + */ + inline const Aws::String& GetLoadBalancerArn() const{ return m_loadBalancerArn; } + inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; } + inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; } + inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::move(value); } + inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); } + inline ModifyCapacityReservationRequest& WithLoadBalancerArn(const Aws::String& value) { SetLoadBalancerArn(value); return *this;} + inline ModifyCapacityReservationRequest& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(std::move(value)); return *this;} + inline ModifyCapacityReservationRequest& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The minimum load balancer capacity reserved.

    + */ + inline const MinimumLoadBalancerCapacity& GetMinimumLoadBalancerCapacity() const{ return m_minimumLoadBalancerCapacity; } + inline bool MinimumLoadBalancerCapacityHasBeenSet() const { return m_minimumLoadBalancerCapacityHasBeenSet; } + inline void SetMinimumLoadBalancerCapacity(const MinimumLoadBalancerCapacity& value) { m_minimumLoadBalancerCapacityHasBeenSet = true; m_minimumLoadBalancerCapacity = value; } + inline void SetMinimumLoadBalancerCapacity(MinimumLoadBalancerCapacity&& value) { m_minimumLoadBalancerCapacityHasBeenSet = true; m_minimumLoadBalancerCapacity = std::move(value); } + inline ModifyCapacityReservationRequest& WithMinimumLoadBalancerCapacity(const MinimumLoadBalancerCapacity& value) { SetMinimumLoadBalancerCapacity(value); return *this;} + inline ModifyCapacityReservationRequest& WithMinimumLoadBalancerCapacity(MinimumLoadBalancerCapacity&& value) { SetMinimumLoadBalancerCapacity(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Resets the capacity reservation.

    + */ + inline bool GetResetCapacityReservation() const{ return m_resetCapacityReservation; } + inline bool ResetCapacityReservationHasBeenSet() const { return m_resetCapacityReservationHasBeenSet; } + inline void SetResetCapacityReservation(bool value) { m_resetCapacityReservationHasBeenSet = true; m_resetCapacityReservation = value; } + inline ModifyCapacityReservationRequest& WithResetCapacityReservation(bool value) { SetResetCapacityReservation(value); return *this;} + ///@} + private: + + Aws::String m_loadBalancerArn; + bool m_loadBalancerArnHasBeenSet = false; + + MinimumLoadBalancerCapacity m_minimumLoadBalancerCapacity; + bool m_minimumLoadBalancerCapacityHasBeenSet = false; + + bool m_resetCapacityReservation; + bool m_resetCapacityReservationHasBeenSet = false; + }; + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ModifyCapacityReservationResult.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ModifyCapacityReservationResult.h new file mode 100644 index 00000000000..5cab86e4174 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ModifyCapacityReservationResult.h @@ -0,0 +1,106 @@ +/** + * 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 +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace ElasticLoadBalancingv2 +{ +namespace Model +{ + class ModifyCapacityReservationResult + { + public: + AWS_ELASTICLOADBALANCINGV2_API ModifyCapacityReservationResult(); + AWS_ELASTICLOADBALANCINGV2_API ModifyCapacityReservationResult(const Aws::AmazonWebServiceResult& result); + AWS_ELASTICLOADBALANCINGV2_API ModifyCapacityReservationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The last time the capacity reservation was modified.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } + inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } + inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } + inline ModifyCapacityReservationResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline ModifyCapacityReservationResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The amount of daily capacity decreases remaining.

    + */ + inline int GetDecreaseRequestsRemaining() const{ return m_decreaseRequestsRemaining; } + inline void SetDecreaseRequestsRemaining(int value) { m_decreaseRequestsRemaining = value; } + inline ModifyCapacityReservationResult& WithDecreaseRequestsRemaining(int value) { SetDecreaseRequestsRemaining(value); return *this;} + ///@} + + ///@{ + /** + *

    The requested minimum capacity reservation for the load balancer

    + */ + inline const MinimumLoadBalancerCapacity& GetMinimumLoadBalancerCapacity() const{ return m_minimumLoadBalancerCapacity; } + inline void SetMinimumLoadBalancerCapacity(const MinimumLoadBalancerCapacity& value) { m_minimumLoadBalancerCapacity = value; } + inline void SetMinimumLoadBalancerCapacity(MinimumLoadBalancerCapacity&& value) { m_minimumLoadBalancerCapacity = std::move(value); } + inline ModifyCapacityReservationResult& WithMinimumLoadBalancerCapacity(const MinimumLoadBalancerCapacity& value) { SetMinimumLoadBalancerCapacity(value); return *this;} + inline ModifyCapacityReservationResult& WithMinimumLoadBalancerCapacity(MinimumLoadBalancerCapacity&& value) { SetMinimumLoadBalancerCapacity(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The state of the capacity reservation.

    + */ + inline const Aws::Vector& GetCapacityReservationState() const{ return m_capacityReservationState; } + inline void SetCapacityReservationState(const Aws::Vector& value) { m_capacityReservationState = value; } + inline void SetCapacityReservationState(Aws::Vector&& value) { m_capacityReservationState = std::move(value); } + inline ModifyCapacityReservationResult& WithCapacityReservationState(const Aws::Vector& value) { SetCapacityReservationState(value); return *this;} + inline ModifyCapacityReservationResult& WithCapacityReservationState(Aws::Vector&& value) { SetCapacityReservationState(std::move(value)); return *this;} + inline ModifyCapacityReservationResult& AddCapacityReservationState(const ZonalCapacityReservationState& value) { m_capacityReservationState.push_back(value); return *this; } + inline ModifyCapacityReservationResult& AddCapacityReservationState(ZonalCapacityReservationState&& value) { m_capacityReservationState.push_back(std::move(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 ModifyCapacityReservationResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + inline ModifyCapacityReservationResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + ///@} + private: + + Aws::Utils::DateTime m_lastModifiedTime; + + int m_decreaseRequestsRemaining; + + MinimumLoadBalancerCapacity m_minimumLoadBalancerCapacity; + + Aws::Vector m_capacityReservationState; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ZonalCapacityReservationState.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ZonalCapacityReservationState.h new file mode 100644 index 00000000000..cdde3e73dcc --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/ZonalCapacityReservationState.h @@ -0,0 +1,93 @@ +/** + * 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 Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace ElasticLoadBalancingv2 +{ +namespace Model +{ + + /** + *

    The capacity reservation status for each availability zone.

    See + * Also:

    AWS + * API Reference

    + */ + class ZonalCapacityReservationState + { + public: + AWS_ELASTICLOADBALANCINGV2_API ZonalCapacityReservationState(); + AWS_ELASTICLOADBALANCINGV2_API ZonalCapacityReservationState(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_ELASTICLOADBALANCINGV2_API ZonalCapacityReservationState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    The state of the capacity reservation.

    + */ + inline const CapacityReservationStatus& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const CapacityReservationStatus& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(CapacityReservationStatus&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline ZonalCapacityReservationState& WithState(const CapacityReservationStatus& value) { SetState(value); return *this;} + inline ZonalCapacityReservationState& WithState(CapacityReservationStatus&& value) { SetState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Information about the availability zone.

    + */ + inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } + inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } + inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } + inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } + inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } + inline ZonalCapacityReservationState& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} + inline ZonalCapacityReservationState& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} + inline ZonalCapacityReservationState& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} + ///@} + + ///@{ + /** + *

    The number of effective capacity units.

    + */ + inline double GetEffectiveCapacityUnits() const{ return m_effectiveCapacityUnits; } + inline bool EffectiveCapacityUnitsHasBeenSet() const { return m_effectiveCapacityUnitsHasBeenSet; } + inline void SetEffectiveCapacityUnits(double value) { m_effectiveCapacityUnitsHasBeenSet = true; m_effectiveCapacityUnits = value; } + inline ZonalCapacityReservationState& WithEffectiveCapacityUnits(double value) { SetEffectiveCapacityUnits(value); return *this;} + ///@} + private: + + CapacityReservationStatus m_state; + bool m_stateHasBeenSet = false; + + Aws::String m_availabilityZone; + bool m_availabilityZoneHasBeenSet = false; + + double m_effectiveCapacityUnits; + bool m_effectiveCapacityUnitsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Client.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Client.cpp index 00074db71b2..cc85e5f710d 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Client.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Client.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -54,6 +55,7 @@ #include #include #include +#include #include #include #include @@ -651,6 +653,32 @@ DescribeAccountLimitsOutcome ElasticLoadBalancingv2Client::DescribeAccountLimits {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeCapacityReservationOutcome ElasticLoadBalancingv2Client::DescribeCapacityReservation(const DescribeCapacityReservationRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeCapacityReservation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeCapacityReservation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeCapacityReservation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeCapacityReservation, 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( + [&]()-> DescribeCapacityReservationOutcome { + 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, DescribeCapacityReservation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeCapacityReservationOutcome(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()}}); +} + DescribeListenerAttributesOutcome ElasticLoadBalancingv2Client::DescribeListenerAttributes(const DescribeListenerAttributesRequest& request) const { AWS_OPERATION_GUARD(DescribeListenerAttributes); @@ -1093,6 +1121,32 @@ GetTrustStoreRevocationContentOutcome ElasticLoadBalancingv2Client::GetTrustStor {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ModifyCapacityReservationOutcome ElasticLoadBalancingv2Client::ModifyCapacityReservation(const ModifyCapacityReservationRequest& request) const +{ + AWS_OPERATION_GUARD(ModifyCapacityReservation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyCapacityReservation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyCapacityReservation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ModifyCapacityReservation, 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( + [&]()-> ModifyCapacityReservationOutcome { + 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, ModifyCapacityReservation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyCapacityReservationOutcome(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()}}); +} + ModifyListenerOutcome ElasticLoadBalancingv2Client::ModifyListener(const ModifyListenerRequest& request) const { AWS_OPERATION_GUARD(ModifyListener); diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Errors.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Errors.cpp index d8b5c2b4c5d..1a23fe30be5 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Errors.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Errors.cpp @@ -19,6 +19,7 @@ namespace ElasticLoadBalancingv2ErrorMapper { static const int AVAILABILITY_ZONE_NOT_SUPPORTED_HASH = HashingUtils::HashString("AvailabilityZoneNotSupported"); +static const int INSUFFICIENT_CAPACITY_HASH = HashingUtils::HashString("InsufficientCapacity"); static const int INVALID_SCHEME_HASH = HashingUtils::HashString("InvalidScheme"); static const int INCOMPATIBLE_PROTOCOLS_HASH = HashingUtils::HashString("IncompatibleProtocols"); static const int DUPLICATE_LISTENER_HASH = HashingUtils::HashString("DuplicateListener"); @@ -43,7 +44,9 @@ static const int TRUST_STORE_IN_USE_HASH = HashingUtils::HashString("TrustStoreI static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTags"); static const int SUBNET_NOT_FOUND_HASH = HashingUtils::HashString("SubnetNotFound"); static const int CERTIFICATE_NOT_FOUND_HASH = HashingUtils::HashString("CertificateNotFound"); +static const int PRIOR_REQUEST_NOT_COMPLETE_HASH = HashingUtils::HashString("PriorRequestNotComplete"); static const int TOO_MANY_TARGETS_HASH = HashingUtils::HashString("TooManyTargets"); +static const int CAPACITY_DECREASE_REQUESTS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CapacityDecreaseRequestLimitExceeded"); static const int CA_CERTIFICATES_BUNDLE_NOT_FOUND_HASH = HashingUtils::HashString("CaCertificatesBundleNotFound"); static const int TOO_MANY_RULES_HASH = HashingUtils::HashString("TooManyRules"); static const int LISTENER_NOT_FOUND_HASH = HashingUtils::HashString("ListenerNotFound"); @@ -54,6 +57,8 @@ static const int REVOCATION_CONTENT_NOT_FOUND_HASH = HashingUtils::HashString("R static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUse"); static const int TRUST_STORE_ASSOCIATION_NOT_FOUND_HASH = HashingUtils::HashString("AssociationNotFound"); static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OperationNotPermitted"); +static const int CAPACITY_RESERVATION_PENDING_HASH = HashingUtils::HashString("CapacityReservationPending"); +static const int CAPACITY_UNITS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CapacityUnitsLimitExceeded"); static const int TOO_MANY_TARGET_GROUPS_HASH = HashingUtils::HashString("TooManyTargetGroups"); static const int INVALID_CA_CERTIFICATES_BUNDLE_HASH = HashingUtils::HashString("InvalidCaCertificatesBundle"); static const int TOO_MANY_TRUST_STORE_REVOCATION_ENTRIES_HASH = HashingUtils::HashString("TooManyTrustStoreRevocationEntries"); @@ -78,6 +83,10 @@ AWSError GetErrorForName(const char* errorName) { return AWSError(static_cast(ElasticLoadBalancingv2Errors::AVAILABILITY_ZONE_NOT_SUPPORTED), RetryableType::NOT_RETRYABLE); } + else if (hashCode == INSUFFICIENT_CAPACITY_HASH) + { + return AWSError(static_cast(ElasticLoadBalancingv2Errors::INSUFFICIENT_CAPACITY), RetryableType::RETRYABLE); + } else if (hashCode == INVALID_SCHEME_HASH) { return AWSError(static_cast(ElasticLoadBalancingv2Errors::INVALID_SCHEME), RetryableType::NOT_RETRYABLE); @@ -174,10 +183,18 @@ AWSError GetErrorForName(const char* errorName) { return AWSError(static_cast(ElasticLoadBalancingv2Errors::CERTIFICATE_NOT_FOUND), RetryableType::NOT_RETRYABLE); } + else if (hashCode == PRIOR_REQUEST_NOT_COMPLETE_HASH) + { + return AWSError(static_cast(ElasticLoadBalancingv2Errors::PRIOR_REQUEST_NOT_COMPLETE), RetryableType::NOT_RETRYABLE); + } else if (hashCode == TOO_MANY_TARGETS_HASH) { return AWSError(static_cast(ElasticLoadBalancingv2Errors::TOO_MANY_TARGETS), RetryableType::NOT_RETRYABLE); } + else if (hashCode == CAPACITY_DECREASE_REQUESTS_LIMIT_EXCEEDED_HASH) + { + return AWSError(static_cast(ElasticLoadBalancingv2Errors::CAPACITY_DECREASE_REQUESTS_LIMIT_EXCEEDED), RetryableType::NOT_RETRYABLE); + } else if (hashCode == CA_CERTIFICATES_BUNDLE_NOT_FOUND_HASH) { return AWSError(static_cast(ElasticLoadBalancingv2Errors::CA_CERTIFICATES_BUNDLE_NOT_FOUND), RetryableType::NOT_RETRYABLE); @@ -218,6 +235,14 @@ AWSError GetErrorForName(const char* errorName) { return AWSError(static_cast(ElasticLoadBalancingv2Errors::OPERATION_NOT_PERMITTED), RetryableType::NOT_RETRYABLE); } + else if (hashCode == CAPACITY_RESERVATION_PENDING_HASH) + { + return AWSError(static_cast(ElasticLoadBalancingv2Errors::CAPACITY_RESERVATION_PENDING), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == CAPACITY_UNITS_LIMIT_EXCEEDED_HASH) + { + return AWSError(static_cast(ElasticLoadBalancingv2Errors::CAPACITY_UNITS_LIMIT_EXCEEDED), RetryableType::NOT_RETRYABLE); + } else if (hashCode == TOO_MANY_TARGET_GROUPS_HASH) { return AWSError(static_cast(ElasticLoadBalancingv2Errors::TOO_MANY_TARGET_GROUPS), RetryableType::NOT_RETRYABLE); diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/CapacityReservationStateEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/CapacityReservationStateEnum.cpp new file mode 100644 index 00000000000..ed7b6bff045 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/CapacityReservationStateEnum.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 ElasticLoadBalancingv2 + { + namespace Model + { + namespace CapacityReservationStateEnumMapper + { + + static const int provisioned_HASH = HashingUtils::HashString("provisioned"); + static const int pending_HASH = HashingUtils::HashString("pending"); + static const int rebalancing_HASH = HashingUtils::HashString("rebalancing"); + static const int failed_HASH = HashingUtils::HashString("failed"); + + + CapacityReservationStateEnum GetCapacityReservationStateEnumForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == provisioned_HASH) + { + return CapacityReservationStateEnum::provisioned; + } + else if (hashCode == pending_HASH) + { + return CapacityReservationStateEnum::pending; + } + else if (hashCode == rebalancing_HASH) + { + return CapacityReservationStateEnum::rebalancing; + } + else if (hashCode == failed_HASH) + { + return CapacityReservationStateEnum::failed; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CapacityReservationStateEnum::NOT_SET; + } + + Aws::String GetNameForCapacityReservationStateEnum(CapacityReservationStateEnum enumValue) + { + switch(enumValue) + { + case CapacityReservationStateEnum::NOT_SET: + return {}; + case CapacityReservationStateEnum::provisioned: + return "provisioned"; + case CapacityReservationStateEnum::pending: + return "pending"; + case CapacityReservationStateEnum::rebalancing: + return "rebalancing"; + case CapacityReservationStateEnum::failed: + return "failed"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CapacityReservationStateEnumMapper + } // namespace Model + } // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/CapacityReservationStatus.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/CapacityReservationStatus.cpp new file mode 100644 index 00000000000..0a695dbb3c6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/CapacityReservationStatus.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ElasticLoadBalancingv2 +{ +namespace Model +{ + +CapacityReservationStatus::CapacityReservationStatus() : + m_code(CapacityReservationStateEnum::NOT_SET), + m_codeHasBeenSet(false), + m_reasonHasBeenSet(false) +{ +} + +CapacityReservationStatus::CapacityReservationStatus(const XmlNode& xmlNode) + : CapacityReservationStatus() +{ + *this = xmlNode; +} + +CapacityReservationStatus& CapacityReservationStatus::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode codeNode = resultNode.FirstChild("Code"); + if(!codeNode.IsNull()) + { + m_code = CapacityReservationStateEnumMapper::GetCapacityReservationStateEnumForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(codeNode.GetText()).c_str()).c_str()); + m_codeHasBeenSet = true; + } + XmlNode reasonNode = resultNode.FirstChild("Reason"); + if(!reasonNode.IsNull()) + { + m_reason = Aws::Utils::Xml::DecodeEscapedXmlText(reasonNode.GetText()); + m_reasonHasBeenSet = true; + } + } + + return *this; +} + +void CapacityReservationStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_codeHasBeenSet) + { + oStream << location << index << locationValue << ".Code=" << CapacityReservationStateEnumMapper::GetNameForCapacityReservationStateEnum(m_code) << "&"; + } + + if(m_reasonHasBeenSet) + { + oStream << location << index << locationValue << ".Reason=" << StringUtils::URLEncode(m_reason.c_str()) << "&"; + } + +} + +void CapacityReservationStatus::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_codeHasBeenSet) + { + oStream << location << ".Code=" << CapacityReservationStateEnumMapper::GetNameForCapacityReservationStateEnum(m_code) << "&"; + } + if(m_reasonHasBeenSet) + { + oStream << location << ".Reason=" << StringUtils::URLEncode(m_reason.c_str()) << "&"; + } +} + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/DescribeCapacityReservationRequest.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/DescribeCapacityReservationRequest.cpp new file mode 100644 index 00000000000..ac77a381949 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/DescribeCapacityReservationRequest.cpp @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::ElasticLoadBalancingv2::Model; +using namespace Aws::Utils; + +DescribeCapacityReservationRequest::DescribeCapacityReservationRequest() : + m_loadBalancerArnHasBeenSet(false) +{ +} + +Aws::String DescribeCapacityReservationRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=DescribeCapacityReservation&"; + if(m_loadBalancerArnHasBeenSet) + { + ss << "LoadBalancerArn=" << StringUtils::URLEncode(m_loadBalancerArn.c_str()) << "&"; + } + + ss << "Version=2015-12-01"; + return ss.str(); +} + + +void DescribeCapacityReservationRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/DescribeCapacityReservationResult.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/DescribeCapacityReservationResult.cpp new file mode 100644 index 00000000000..6dd734a1da7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/DescribeCapacityReservationResult.cpp @@ -0,0 +1,77 @@ +/** + * 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::ElasticLoadBalancingv2::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +DescribeCapacityReservationResult::DescribeCapacityReservationResult() : + m_decreaseRequestsRemaining(0) +{ +} + +DescribeCapacityReservationResult::DescribeCapacityReservationResult(const Aws::AmazonWebServiceResult& result) + : DescribeCapacityReservationResult() +{ + *this = result; +} + +DescribeCapacityReservationResult& DescribeCapacityReservationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeCapacityReservationResult")) + { + resultNode = rootNode.FirstChild("DescribeCapacityReservationResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode lastModifiedTimeNode = resultNode.FirstChild("LastModifiedTime"); + if(!lastModifiedTimeNode.IsNull()) + { + m_lastModifiedTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(lastModifiedTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + } + XmlNode decreaseRequestsRemainingNode = resultNode.FirstChild("DecreaseRequestsRemaining"); + if(!decreaseRequestsRemainingNode.IsNull()) + { + m_decreaseRequestsRemaining = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(decreaseRequestsRemainingNode.GetText()).c_str()).c_str()); + } + XmlNode minimumLoadBalancerCapacityNode = resultNode.FirstChild("MinimumLoadBalancerCapacity"); + if(!minimumLoadBalancerCapacityNode.IsNull()) + { + m_minimumLoadBalancerCapacity = minimumLoadBalancerCapacityNode; + } + XmlNode capacityReservationStateNode = resultNode.FirstChild("CapacityReservationState"); + if(!capacityReservationStateNode.IsNull()) + { + XmlNode capacityReservationStateMember = capacityReservationStateNode.FirstChild("member"); + while(!capacityReservationStateMember.IsNull()) + { + m_capacityReservationState.push_back(capacityReservationStateMember); + capacityReservationStateMember = capacityReservationStateMember.NextNode("member"); + } + + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::ElasticLoadBalancingv2::Model::DescribeCapacityReservationResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/MinimumLoadBalancerCapacity.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/MinimumLoadBalancerCapacity.cpp new file mode 100644 index 00000000000..609a2f0cdcb --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/MinimumLoadBalancerCapacity.cpp @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ElasticLoadBalancingv2 +{ +namespace Model +{ + +MinimumLoadBalancerCapacity::MinimumLoadBalancerCapacity() : + m_capacityUnits(0), + m_capacityUnitsHasBeenSet(false) +{ +} + +MinimumLoadBalancerCapacity::MinimumLoadBalancerCapacity(const XmlNode& xmlNode) + : MinimumLoadBalancerCapacity() +{ + *this = xmlNode; +} + +MinimumLoadBalancerCapacity& MinimumLoadBalancerCapacity::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode capacityUnitsNode = resultNode.FirstChild("CapacityUnits"); + if(!capacityUnitsNode.IsNull()) + { + m_capacityUnits = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(capacityUnitsNode.GetText()).c_str()).c_str()); + m_capacityUnitsHasBeenSet = true; + } + } + + return *this; +} + +void MinimumLoadBalancerCapacity::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_capacityUnitsHasBeenSet) + { + oStream << location << index << locationValue << ".CapacityUnits=" << m_capacityUnits << "&"; + } + +} + +void MinimumLoadBalancerCapacity::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_capacityUnitsHasBeenSet) + { + oStream << location << ".CapacityUnits=" << m_capacityUnits << "&"; + } +} + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ModifyCapacityReservationRequest.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ModifyCapacityReservationRequest.cpp new file mode 100644 index 00000000000..9930a4d0f72 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ModifyCapacityReservationRequest.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::ElasticLoadBalancingv2::Model; +using namespace Aws::Utils; + +ModifyCapacityReservationRequest::ModifyCapacityReservationRequest() : + m_loadBalancerArnHasBeenSet(false), + m_minimumLoadBalancerCapacityHasBeenSet(false), + m_resetCapacityReservation(false), + m_resetCapacityReservationHasBeenSet(false) +{ +} + +Aws::String ModifyCapacityReservationRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=ModifyCapacityReservation&"; + if(m_loadBalancerArnHasBeenSet) + { + ss << "LoadBalancerArn=" << StringUtils::URLEncode(m_loadBalancerArn.c_str()) << "&"; + } + + if(m_minimumLoadBalancerCapacityHasBeenSet) + { + m_minimumLoadBalancerCapacity.OutputToStream(ss, "MinimumLoadBalancerCapacity"); + } + + if(m_resetCapacityReservationHasBeenSet) + { + ss << "ResetCapacityReservation=" << std::boolalpha << m_resetCapacityReservation << "&"; + } + + ss << "Version=2015-12-01"; + return ss.str(); +} + + +void ModifyCapacityReservationRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ModifyCapacityReservationResult.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ModifyCapacityReservationResult.cpp new file mode 100644 index 00000000000..88ee864aa52 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ModifyCapacityReservationResult.cpp @@ -0,0 +1,77 @@ +/** + * 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::ElasticLoadBalancingv2::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +ModifyCapacityReservationResult::ModifyCapacityReservationResult() : + m_decreaseRequestsRemaining(0) +{ +} + +ModifyCapacityReservationResult::ModifyCapacityReservationResult(const Aws::AmazonWebServiceResult& result) + : ModifyCapacityReservationResult() +{ + *this = result; +} + +ModifyCapacityReservationResult& ModifyCapacityReservationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "ModifyCapacityReservationResult")) + { + resultNode = rootNode.FirstChild("ModifyCapacityReservationResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode lastModifiedTimeNode = resultNode.FirstChild("LastModifiedTime"); + if(!lastModifiedTimeNode.IsNull()) + { + m_lastModifiedTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(lastModifiedTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + } + XmlNode decreaseRequestsRemainingNode = resultNode.FirstChild("DecreaseRequestsRemaining"); + if(!decreaseRequestsRemainingNode.IsNull()) + { + m_decreaseRequestsRemaining = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(decreaseRequestsRemainingNode.GetText()).c_str()).c_str()); + } + XmlNode minimumLoadBalancerCapacityNode = resultNode.FirstChild("MinimumLoadBalancerCapacity"); + if(!minimumLoadBalancerCapacityNode.IsNull()) + { + m_minimumLoadBalancerCapacity = minimumLoadBalancerCapacityNode; + } + XmlNode capacityReservationStateNode = resultNode.FirstChild("CapacityReservationState"); + if(!capacityReservationStateNode.IsNull()) + { + XmlNode capacityReservationStateMember = capacityReservationStateNode.FirstChild("member"); + while(!capacityReservationStateMember.IsNull()) + { + m_capacityReservationState.push_back(capacityReservationStateMember); + capacityReservationStateMember = capacityReservationStateMember.NextNode("member"); + } + + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::ElasticLoadBalancingv2::Model::ModifyCapacityReservationResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ZonalCapacityReservationState.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ZonalCapacityReservationState.cpp new file mode 100644 index 00000000000..5d89b598786 --- /dev/null +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ZonalCapacityReservationState.cpp @@ -0,0 +1,107 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ElasticLoadBalancingv2 +{ +namespace Model +{ + +ZonalCapacityReservationState::ZonalCapacityReservationState() : + m_stateHasBeenSet(false), + m_availabilityZoneHasBeenSet(false), + m_effectiveCapacityUnits(0.0), + m_effectiveCapacityUnitsHasBeenSet(false) +{ +} + +ZonalCapacityReservationState::ZonalCapacityReservationState(const XmlNode& xmlNode) + : ZonalCapacityReservationState() +{ + *this = xmlNode; +} + +ZonalCapacityReservationState& ZonalCapacityReservationState::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode stateNode = resultNode.FirstChild("State"); + if(!stateNode.IsNull()) + { + m_state = stateNode; + m_stateHasBeenSet = true; + } + XmlNode availabilityZoneNode = resultNode.FirstChild("AvailabilityZone"); + if(!availabilityZoneNode.IsNull()) + { + m_availabilityZone = Aws::Utils::Xml::DecodeEscapedXmlText(availabilityZoneNode.GetText()); + m_availabilityZoneHasBeenSet = true; + } + XmlNode effectiveCapacityUnitsNode = resultNode.FirstChild("EffectiveCapacityUnits"); + if(!effectiveCapacityUnitsNode.IsNull()) + { + m_effectiveCapacityUnits = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(effectiveCapacityUnitsNode.GetText()).c_str()).c_str()); + m_effectiveCapacityUnitsHasBeenSet = true; + } + } + + return *this; +} + +void ZonalCapacityReservationState::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_stateHasBeenSet) + { + Aws::StringStream stateLocationAndMemberSs; + stateLocationAndMemberSs << location << index << locationValue << ".State"; + m_state.OutputToStream(oStream, stateLocationAndMemberSs.str().c_str()); + } + + if(m_availabilityZoneHasBeenSet) + { + oStream << location << index << locationValue << ".AvailabilityZone=" << StringUtils::URLEncode(m_availabilityZone.c_str()) << "&"; + } + + if(m_effectiveCapacityUnitsHasBeenSet) + { + oStream << location << index << locationValue << ".EffectiveCapacityUnits=" << StringUtils::URLEncode(m_effectiveCapacityUnits) << "&"; + } + +} + +void ZonalCapacityReservationState::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_stateHasBeenSet) + { + Aws::String stateLocationAndMember(location); + stateLocationAndMember += ".State"; + m_state.OutputToStream(oStream, stateLocationAndMember.c_str()); + } + if(m_availabilityZoneHasBeenSet) + { + oStream << location << ".AvailabilityZone=" << StringUtils::URLEncode(m_availabilityZone.c_str()) << "&"; + } + if(m_effectiveCapacityUnitsHasBeenSet) + { + oStream << location << ".EffectiveCapacityUnits=" << StringUtils::URLEncode(m_effectiveCapacityUnits) << "&"; + } +} + +} // namespace Model +} // namespace ElasticLoadBalancingv2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/Runtime.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/Runtime.h index e8ebe9088d2..6ae501e5b68 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/Runtime.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/Runtime.h @@ -54,7 +54,8 @@ namespace Model provided_al2023, python3_12, java21, - python3_13 + python3_13, + nodejs22_x }; namespace RuntimeMapper diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp index 72606c60c8e..979aa0247bc 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp @@ -59,6 +59,7 @@ namespace Aws static const int python3_12_HASH = HashingUtils::HashString("python3.12"); static const int java21_HASH = HashingUtils::HashString("java21"); static const int python3_13_HASH = HashingUtils::HashString("python3.13"); + static const int nodejs22_x_HASH = HashingUtils::HashString("nodejs22.x"); Runtime GetRuntimeForName(const Aws::String& name) @@ -220,6 +221,10 @@ namespace Aws { return Runtime::python3_13; } + else if (hashCode == nodejs22_x_HASH) + { + return Runtime::nodejs22_x; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -314,6 +319,8 @@ namespace Aws return "java21"; case Runtime::python3_13: return "python3.13"; + case Runtime::nodejs22_x: + return "nodejs22.x"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/CreateQueueRequest.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/CreateQueueRequest.h index f6195589372..fd8ecc2504f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/CreateQueueRequest.h +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/CreateQueueRequest.h @@ -36,6 +36,20 @@ namespace Model AWS_MEDIACONVERT_API Aws::String SerializePayload() const override; + ///@{ + /** + * Specify the maximum number of jobs your queue can process concurrently. For + * on-demand queues, the value you enter is constrained by your service quotas for + * Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per + * account. For reserved queues, specify the number of jobs you can process + * concurrently in your reservation plan instead. + */ + inline int GetConcurrentJobs() const{ return m_concurrentJobs; } + inline bool ConcurrentJobsHasBeenSet() const { return m_concurrentJobsHasBeenSet; } + inline void SetConcurrentJobs(int value) { m_concurrentJobsHasBeenSet = true; m_concurrentJobs = value; } + inline CreateQueueRequest& WithConcurrentJobs(int value) { SetConcurrentJobs(value); return *this;} + ///@} + ///@{ /** * Optional. A description of the queue that you are creating. @@ -127,6 +141,9 @@ namespace Model ///@} private: + int m_concurrentJobs; + bool m_concurrentJobsHasBeenSet = false; + Aws::String m_description; bool m_descriptionHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/ListQueuesResult.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/ListQueuesResult.h index a7612913a03..e37e84c1e7c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/ListQueuesResult.h +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/ListQueuesResult.h @@ -60,6 +60,27 @@ namespace Model inline ListQueuesResult& AddQueues(Queue&& value) { m_queues.push_back(std::move(value)); return *this; } ///@} + ///@{ + /** + * The maximum number of jobs that MediaConvert can process at one time, across all + * of your on-demand queues in the current AWS Region. + */ + inline int GetTotalConcurrentJobs() const{ return m_totalConcurrentJobs; } + inline void SetTotalConcurrentJobs(int value) { m_totalConcurrentJobs = value; } + inline ListQueuesResult& WithTotalConcurrentJobs(int value) { SetTotalConcurrentJobs(value); return *this;} + ///@} + + ///@{ + /** + * The remaining number of concurrent jobs that are not associated with a queue and + * are available to allocate to a queue. You can allocate these jobs when you + * create or update a queue. + */ + inline int GetUnallocatedConcurrentJobs() const{ return m_unallocatedConcurrentJobs; } + inline void SetUnallocatedConcurrentJobs(int value) { m_unallocatedConcurrentJobs = value; } + inline ListQueuesResult& WithUnallocatedConcurrentJobs(int value) { SetUnallocatedConcurrentJobs(value); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -76,6 +97,10 @@ namespace Model Aws::Vector m_queues; + int m_totalConcurrentJobs; + + int m_unallocatedConcurrentJobs; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/Queue.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/Queue.h index 218754b08af..77a616b9c66 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/Queue.h +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/Queue.h @@ -9,8 +9,10 @@ #include #include #include +#include #include #include +#include #include namespace Aws @@ -61,6 +63,16 @@ namespace Model inline Queue& WithArn(const char* value) { SetArn(value); return *this;} ///@} + ///@{ + /** + * The maximum number of jobs your queue can process concurrently. + */ + inline int GetConcurrentJobs() const{ return m_concurrentJobs; } + inline bool ConcurrentJobsHasBeenSet() const { return m_concurrentJobsHasBeenSet; } + inline void SetConcurrentJobs(int value) { m_concurrentJobsHasBeenSet = true; m_concurrentJobs = value; } + inline Queue& WithConcurrentJobs(int value) { SetConcurrentJobs(value); return *this;} + ///@} + ///@{ /** * The timestamp in epoch seconds for when you created the queue. @@ -152,6 +164,22 @@ namespace Model inline Queue& WithReservationPlan(ReservationPlan&& value) { SetReservationPlan(std::move(value)); return *this;} ///@} + ///@{ + /** + * A list of any service overrides applied by MediaConvert to the settings that you + * have configured. If you see any overrides, we recommend that you contact AWS + * Support. + */ + inline const Aws::Vector& GetServiceOverrides() const{ return m_serviceOverrides; } + inline bool ServiceOverridesHasBeenSet() const { return m_serviceOverridesHasBeenSet; } + inline void SetServiceOverrides(const Aws::Vector& value) { m_serviceOverridesHasBeenSet = true; m_serviceOverrides = value; } + inline void SetServiceOverrides(Aws::Vector&& value) { m_serviceOverridesHasBeenSet = true; m_serviceOverrides = std::move(value); } + inline Queue& WithServiceOverrides(const Aws::Vector& value) { SetServiceOverrides(value); return *this;} + inline Queue& WithServiceOverrides(Aws::Vector&& value) { SetServiceOverrides(std::move(value)); return *this;} + inline Queue& AddServiceOverrides(const ServiceOverride& value) { m_serviceOverridesHasBeenSet = true; m_serviceOverrides.push_back(value); return *this; } + inline Queue& AddServiceOverrides(ServiceOverride&& value) { m_serviceOverridesHasBeenSet = true; m_serviceOverrides.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** * Queues can be ACTIVE or PAUSED. If you pause a queue, the service won't begin @@ -194,6 +222,9 @@ namespace Model Aws::String m_arn; bool m_arnHasBeenSet = false; + int m_concurrentJobs; + bool m_concurrentJobsHasBeenSet = false; + Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; @@ -215,6 +246,9 @@ namespace Model ReservationPlan m_reservationPlan; bool m_reservationPlanHasBeenSet = false; + Aws::Vector m_serviceOverrides; + bool m_serviceOverridesHasBeenSet = false; + QueueStatus m_status; bool m_statusHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/ServiceOverride.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/ServiceOverride.h new file mode 100644 index 00000000000..11961dfef1f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/ServiceOverride.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MediaConvert +{ +namespace Model +{ + + /** + * A service override applied by MediaConvert to the settings that you have + * configured. If you see any overrides, we recommend that you contact AWS + * Support.

    See Also:

    AWS + * API Reference

    + */ + class ServiceOverride + { + public: + AWS_MEDIACONVERT_API ServiceOverride(); + AWS_MEDIACONVERT_API ServiceOverride(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIACONVERT_API ServiceOverride& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + * Details about the service override that MediaConvert has applied. + */ + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline ServiceOverride& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline ServiceOverride& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline ServiceOverride& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + /** + * The name of the setting that MediaConvert has applied an override to. + */ + 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 ServiceOverride& WithName(const Aws::String& value) { SetName(value); return *this;} + inline ServiceOverride& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline ServiceOverride& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + * The current value of the service override that MediaConvert has applied. + */ + inline const Aws::String& GetOverrideValue() const{ return m_overrideValue; } + inline bool OverrideValueHasBeenSet() const { return m_overrideValueHasBeenSet; } + inline void SetOverrideValue(const Aws::String& value) { m_overrideValueHasBeenSet = true; m_overrideValue = value; } + inline void SetOverrideValue(Aws::String&& value) { m_overrideValueHasBeenSet = true; m_overrideValue = std::move(value); } + inline void SetOverrideValue(const char* value) { m_overrideValueHasBeenSet = true; m_overrideValue.assign(value); } + inline ServiceOverride& WithOverrideValue(const Aws::String& value) { SetOverrideValue(value); return *this;} + inline ServiceOverride& WithOverrideValue(Aws::String&& value) { SetOverrideValue(std::move(value)); return *this;} + inline ServiceOverride& WithOverrideValue(const char* value) { SetOverrideValue(value); return *this;} + ///@} + + ///@{ + /** + * The value of the setting that you configured, prior to any overrides that + * MediaConvert has applied. + */ + inline const Aws::String& GetValue() const{ return m_value; } + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } + inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } + inline ServiceOverride& WithValue(const Aws::String& value) { SetValue(value); return *this;} + inline ServiceOverride& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} + inline ServiceOverride& WithValue(const char* value) { SetValue(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_overrideValue; + bool m_overrideValueHasBeenSet = false; + + Aws::String m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace MediaConvert +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/UpdateQueueRequest.h b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/UpdateQueueRequest.h index d3316291c86..b68e2bee088 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/UpdateQueueRequest.h +++ b/generated/src/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/UpdateQueueRequest.h @@ -34,6 +34,20 @@ namespace Model AWS_MEDIACONVERT_API Aws::String SerializePayload() const override; + ///@{ + /** + * Specify the maximum number of jobs your queue can process concurrently. For + * on-demand queues, the value you enter is constrained by your service quotas for + * Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per + * account. For reserved queues, update your reservation plan instead in order to + * increase your yearly commitment. + */ + inline int GetConcurrentJobs() const{ return m_concurrentJobs; } + inline bool ConcurrentJobsHasBeenSet() const { return m_concurrentJobsHasBeenSet; } + inline void SetConcurrentJobs(int value) { m_concurrentJobsHasBeenSet = true; m_concurrentJobs = value; } + inline UpdateQueueRequest& WithConcurrentJobs(int value) { SetConcurrentJobs(value); return *this;} + ///@} + ///@{ /** * The new description for the queue, if you are changing it. @@ -93,6 +107,9 @@ namespace Model ///@} private: + int m_concurrentJobs; + bool m_concurrentJobsHasBeenSet = false; + Aws::String m_description; bool m_descriptionHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CreateQueueRequest.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CreateQueueRequest.cpp index faef693c9f1..6e98d555370 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CreateQueueRequest.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CreateQueueRequest.cpp @@ -13,6 +13,8 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateQueueRequest::CreateQueueRequest() : + m_concurrentJobs(0), + m_concurrentJobsHasBeenSet(false), m_descriptionHasBeenSet(false), m_nameHasBeenSet(false), m_pricingPlan(PricingPlan::NOT_SET), @@ -28,6 +30,12 @@ Aws::String CreateQueueRequest::SerializePayload() const { JsonValue payload; + if(m_concurrentJobsHasBeenSet) + { + payload.WithInteger("concurrentJobs", m_concurrentJobs); + + } + if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ListQueuesResult.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ListQueuesResult.cpp index ac65759277b..e3997b6aafe 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ListQueuesResult.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ListQueuesResult.cpp @@ -17,11 +17,14 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; -ListQueuesResult::ListQueuesResult() +ListQueuesResult::ListQueuesResult() : + m_totalConcurrentJobs(0), + m_unallocatedConcurrentJobs(0) { } ListQueuesResult::ListQueuesResult(const Aws::AmazonWebServiceResult& result) + : ListQueuesResult() { *this = result; } @@ -44,6 +47,18 @@ ListQueuesResult& ListQueuesResult::operator =(const Aws::AmazonWebServiceResult } } + if(jsonValue.ValueExists("totalConcurrentJobs")) + { + m_totalConcurrentJobs = jsonValue.GetInteger("totalConcurrentJobs"); + + } + + if(jsonValue.ValueExists("unallocatedConcurrentJobs")) + { + m_unallocatedConcurrentJobs = jsonValue.GetInteger("unallocatedConcurrentJobs"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Queue.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Queue.cpp index 888c4e2eb13..9a970271fa0 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Queue.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Queue.cpp @@ -20,6 +20,8 @@ namespace Model Queue::Queue() : m_arnHasBeenSet(false), + m_concurrentJobs(0), + m_concurrentJobsHasBeenSet(false), m_createdAtHasBeenSet(false), m_descriptionHasBeenSet(false), m_lastUpdatedHasBeenSet(false), @@ -29,6 +31,7 @@ Queue::Queue() : m_progressingJobsCount(0), m_progressingJobsCountHasBeenSet(false), m_reservationPlanHasBeenSet(false), + m_serviceOverridesHasBeenSet(false), m_status(QueueStatus::NOT_SET), m_statusHasBeenSet(false), m_submittedJobsCount(0), @@ -53,6 +56,13 @@ Queue& Queue::operator =(JsonView jsonValue) m_arnHasBeenSet = true; } + if(jsonValue.ValueExists("concurrentJobs")) + { + m_concurrentJobs = jsonValue.GetInteger("concurrentJobs"); + + m_concurrentJobsHasBeenSet = true; + } + if(jsonValue.ValueExists("createdAt")) { m_createdAt = jsonValue.GetDouble("createdAt"); @@ -102,6 +112,16 @@ Queue& Queue::operator =(JsonView jsonValue) m_reservationPlanHasBeenSet = true; } + if(jsonValue.ValueExists("serviceOverrides")) + { + Aws::Utils::Array serviceOverridesJsonList = jsonValue.GetArray("serviceOverrides"); + for(unsigned serviceOverridesIndex = 0; serviceOverridesIndex < serviceOverridesJsonList.GetLength(); ++serviceOverridesIndex) + { + m_serviceOverrides.push_back(serviceOverridesJsonList[serviceOverridesIndex].AsObject()); + } + m_serviceOverridesHasBeenSet = true; + } + if(jsonValue.ValueExists("status")) { m_status = QueueStatusMapper::GetQueueStatusForName(jsonValue.GetString("status")); @@ -136,6 +156,12 @@ JsonValue Queue::Jsonize() const } + if(m_concurrentJobsHasBeenSet) + { + payload.WithInteger("concurrentJobs", m_concurrentJobs); + + } + if(m_createdAtHasBeenSet) { payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); @@ -175,6 +201,17 @@ JsonValue Queue::Jsonize() const } + if(m_serviceOverridesHasBeenSet) + { + Aws::Utils::Array serviceOverridesJsonList(m_serviceOverrides.size()); + for(unsigned serviceOverridesIndex = 0; serviceOverridesIndex < serviceOverridesJsonList.GetLength(); ++serviceOverridesIndex) + { + serviceOverridesJsonList[serviceOverridesIndex].AsObject(m_serviceOverrides[serviceOverridesIndex].Jsonize()); + } + payload.WithArray("serviceOverrides", std::move(serviceOverridesJsonList)); + + } + if(m_statusHasBeenSet) { payload.WithString("status", QueueStatusMapper::GetNameForQueueStatus(m_status)); diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ServiceOverride.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ServiceOverride.cpp new file mode 100644 index 00000000000..f6db3643cff --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ServiceOverride.cpp @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MediaConvert +{ +namespace Model +{ + +ServiceOverride::ServiceOverride() : + m_messageHasBeenSet(false), + m_nameHasBeenSet(false), + m_overrideValueHasBeenSet(false), + m_valueHasBeenSet(false) +{ +} + +ServiceOverride::ServiceOverride(JsonView jsonValue) + : ServiceOverride() +{ + *this = jsonValue; +} + +ServiceOverride& ServiceOverride::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("overrideValue")) + { + m_overrideValue = jsonValue.GetString("overrideValue"); + + m_overrideValueHasBeenSet = true; + } + + if(jsonValue.ValueExists("value")) + { + m_value = jsonValue.GetString("value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue ServiceOverride::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_overrideValueHasBeenSet) + { + payload.WithString("overrideValue", m_overrideValue); + + } + + if(m_valueHasBeenSet) + { + payload.WithString("value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace MediaConvert +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/UpdateQueueRequest.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/UpdateQueueRequest.cpp index 72366663c8a..b76d766fb07 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/UpdateQueueRequest.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/UpdateQueueRequest.cpp @@ -13,6 +13,8 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateQueueRequest::UpdateQueueRequest() : + m_concurrentJobs(0), + m_concurrentJobsHasBeenSet(false), m_descriptionHasBeenSet(false), m_nameHasBeenSet(false), m_reservationPlanSettingsHasBeenSet(false), @@ -25,6 +27,12 @@ Aws::String UpdateQueueRequest::SerializePayload() const { JsonValue payload; + if(m_concurrentJobsHasBeenSet) + { + payload.WithInteger("concurrentJobs", m_concurrentJobs); + + } + if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateChannelRequest.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateChannelRequest.h index c43648a7d88..22c28fe2bfd 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateChannelRequest.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateChannelRequest.h @@ -8,6 +8,8 @@ #include #include #include +#include +#include #include #include #include @@ -116,6 +118,34 @@ namespace Model inline CreateChannelRequest& WithDescription(const char* value) { SetDescription(value); return *this;} ///@} + ///@{ + /** + *

    The configuration for input switching based on the media quality confidence + * score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + * only when InputType is CMAF.

    + */ + inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const{ return m_inputSwitchConfiguration; } + inline bool InputSwitchConfigurationHasBeenSet() const { return m_inputSwitchConfigurationHasBeenSet; } + inline void SetInputSwitchConfiguration(const InputSwitchConfiguration& value) { m_inputSwitchConfigurationHasBeenSet = true; m_inputSwitchConfiguration = value; } + inline void SetInputSwitchConfiguration(InputSwitchConfiguration&& value) { m_inputSwitchConfigurationHasBeenSet = true; m_inputSwitchConfiguration = std::move(value); } + inline CreateChannelRequest& WithInputSwitchConfiguration(const InputSwitchConfiguration& value) { SetInputSwitchConfiguration(value); return *this;} + inline CreateChannelRequest& WithInputSwitchConfiguration(InputSwitchConfiguration&& value) { SetInputSwitchConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The settings for what common media server data (CMSD) headers AWS Elemental + * MediaPackage includes in responses to the CDN. This setting is valid only when + * InputType is CMAF.

    + */ + inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const{ return m_outputHeaderConfiguration; } + inline bool OutputHeaderConfigurationHasBeenSet() const { return m_outputHeaderConfigurationHasBeenSet; } + inline void SetOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { m_outputHeaderConfigurationHasBeenSet = true; m_outputHeaderConfiguration = value; } + inline void SetOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { m_outputHeaderConfigurationHasBeenSet = true; m_outputHeaderConfiguration = std::move(value); } + inline CreateChannelRequest& WithOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { SetOutputHeaderConfiguration(value); return *this;} + inline CreateChannelRequest& WithOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { SetOutputHeaderConfiguration(std::move(value)); return *this;} + ///@} + ///@{ /** *

    A comma-separated list of tag key:value pairs that you define. For @@ -153,6 +183,12 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + InputSwitchConfiguration m_inputSwitchConfiguration; + bool m_inputSwitchConfigurationHasBeenSet = false; + + OutputHeaderConfiguration m_outputHeaderConfiguration; + bool m_outputHeaderConfigurationHasBeenSet = false; + Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateChannelResult.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateChannelResult.h index fbabab555dd..42cd0621676 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateChannelResult.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/CreateChannelResult.h @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include #include @@ -175,6 +177,32 @@ namespace Model inline CreateChannelResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } ///@} + ///@{ + /** + *

    The configuration for input switching based on the media quality confidence + * score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + * only when InputType is CMAF.

    + */ + inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const{ return m_inputSwitchConfiguration; } + inline void SetInputSwitchConfiguration(const InputSwitchConfiguration& value) { m_inputSwitchConfiguration = value; } + inline void SetInputSwitchConfiguration(InputSwitchConfiguration&& value) { m_inputSwitchConfiguration = std::move(value); } + inline CreateChannelResult& WithInputSwitchConfiguration(const InputSwitchConfiguration& value) { SetInputSwitchConfiguration(value); return *this;} + inline CreateChannelResult& WithInputSwitchConfiguration(InputSwitchConfiguration&& value) { SetInputSwitchConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The settings for what common media server data (CMSD) headers AWS Elemental + * MediaPackage includes in responses to the CDN. This setting is valid only when + * InputType is CMAF.

    + */ + inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const{ return m_outputHeaderConfiguration; } + inline void SetOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { m_outputHeaderConfiguration = value; } + inline void SetOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { m_outputHeaderConfiguration = std::move(value); } + inline CreateChannelResult& WithOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { SetOutputHeaderConfiguration(value); return *this;} + inline CreateChannelResult& WithOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { SetOutputHeaderConfiguration(std::move(value)); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -207,6 +235,10 @@ namespace Model Aws::Map m_tags; + InputSwitchConfiguration m_inputSwitchConfiguration; + + OutputHeaderConfiguration m_outputHeaderConfiguration; + Aws::String m_requestId; }; 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 cf58cb83a4a..073aa9a6ad9 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 @@ -113,9 +113,8 @@ namespace Model *

    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 + * that viewers can seek to a specific time in the playback timeline on the + * player.

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

    */ inline int GetProgramDateTimeIntervalSeconds() const{ return m_programDateTimeIntervalSeconds; } 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 e6de463701b..7346b703063 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 @@ -113,9 +113,8 @@ namespace Model *

    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 + * that viewers can seek to a specific time in the playback timeline on the + * player.

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

    */ inline int GetProgramDateTimeIntervalSeconds() const{ return m_programDateTimeIntervalSeconds; } diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetChannelResult.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetChannelResult.h index 559b1b6c58a..833b0838229 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetChannelResult.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/GetChannelResult.h @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include #include @@ -175,6 +177,32 @@ namespace Model inline GetChannelResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } ///@} + ///@{ + /** + *

    The configuration for input switching based on the media quality confidence + * score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + * only when InputType is CMAF.

    + */ + inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const{ return m_inputSwitchConfiguration; } + inline void SetInputSwitchConfiguration(const InputSwitchConfiguration& value) { m_inputSwitchConfiguration = value; } + inline void SetInputSwitchConfiguration(InputSwitchConfiguration&& value) { m_inputSwitchConfiguration = std::move(value); } + inline GetChannelResult& WithInputSwitchConfiguration(const InputSwitchConfiguration& value) { SetInputSwitchConfiguration(value); return *this;} + inline GetChannelResult& WithInputSwitchConfiguration(InputSwitchConfiguration&& value) { SetInputSwitchConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The settings for what common media server data (CMSD) headers AWS Elemental + * MediaPackage includes in responses to the CDN. This setting is valid only when + * InputType is CMAF.

    + */ + inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const{ return m_outputHeaderConfiguration; } + inline void SetOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { m_outputHeaderConfiguration = value; } + inline void SetOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { m_outputHeaderConfiguration = std::move(value); } + inline GetChannelResult& WithOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { SetOutputHeaderConfiguration(value); return *this;} + inline GetChannelResult& WithOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { SetOutputHeaderConfiguration(std::move(value)); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -207,6 +235,10 @@ namespace Model Aws::Map m_tags; + InputSwitchConfiguration m_inputSwitchConfiguration; + + OutputHeaderConfiguration m_outputHeaderConfiguration; + Aws::String m_requestId; }; 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 79c3316b86c..0d793368610 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 @@ -107,9 +107,8 @@ namespace Model *

    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 + * that viewers can seek to a specific time in the playback timeline on the + * player.

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

    */ inline int GetProgramDateTimeIntervalSeconds() const{ return m_programDateTimeIntervalSeconds; } 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 39f2b271db4..f58bb574a81 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 @@ -107,9 +107,8 @@ namespace Model *

    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 + * that viewers can seek to a specific time in the playback timeline on the + * player.

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

    */ inline int GetProgramDateTimeIntervalSeconds() const{ return m_programDateTimeIntervalSeconds; } diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/InputSwitchConfiguration.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/InputSwitchConfiguration.h new file mode 100644 index 00000000000..f43f1424374 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/InputSwitchConfiguration.h @@ -0,0 +1,59 @@ +/** + * 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 +{ + + /** + *

    The configuration for input switching based on the media quality confidence + * score (MQCS) as provided from AWS Elemental MediaLive.

    See Also:

    + * AWS + * API Reference

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

    When true, AWS Elemental MediaPackage performs input switching based on the + * MQCS. Default is true. This setting is valid only when InputType is + * CMAF.

    + */ + inline bool GetMQCSInputSwitching() const{ return m_mQCSInputSwitching; } + inline bool MQCSInputSwitchingHasBeenSet() const { return m_mQCSInputSwitchingHasBeenSet; } + inline void SetMQCSInputSwitching(bool value) { m_mQCSInputSwitchingHasBeenSet = true; m_mQCSInputSwitching = value; } + inline InputSwitchConfiguration& WithMQCSInputSwitching(bool value) { SetMQCSInputSwitching(value); return *this;} + ///@} + private: + + bool m_mQCSInputSwitching; + bool m_mQCSInputSwitchingHasBeenSet = false; + }; + +} // namespace Model +} // namespace mediapackagev2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/OutputHeaderConfiguration.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/OutputHeaderConfiguration.h new file mode 100644 index 00000000000..3a44a487f9d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/OutputHeaderConfiguration.h @@ -0,0 +1,58 @@ +/** + * 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 +{ + + /** + *

    The settings for what common media server data (CMSD) headers AWS Elemental + * MediaPackage includes in responses to the CDN.

    See Also:

    AWS + * API Reference

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

    When true, AWS Elemental MediaPackage includes the MQCS in responses to the + * CDN. This setting is valid only when InputType is + * CMAF.

    + */ + inline bool GetPublishMQCS() const{ return m_publishMQCS; } + inline bool PublishMQCSHasBeenSet() const { return m_publishMQCSHasBeenSet; } + inline void SetPublishMQCS(bool value) { m_publishMQCSHasBeenSet = true; m_publishMQCS = value; } + inline OutputHeaderConfiguration& WithPublishMQCS(bool value) { SetPublishMQCS(value); return *this;} + ///@} + private: + + bool m_publishMQCS; + bool m_publishMQCSHasBeenSet = false; + }; + +} // namespace Model +} // namespace mediapackagev2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/UpdateChannelRequest.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/UpdateChannelRequest.h index c302ba1878d..613ed97e19f 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/UpdateChannelRequest.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/UpdateChannelRequest.h @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include namespace Aws @@ -96,6 +98,34 @@ namespace Model inline UpdateChannelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} inline UpdateChannelRequest& WithDescription(const char* value) { SetDescription(value); return *this;} ///@} + + ///@{ + /** + *

    The configuration for input switching based on the media quality confidence + * score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + * only when InputType is CMAF.

    + */ + inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const{ return m_inputSwitchConfiguration; } + inline bool InputSwitchConfigurationHasBeenSet() const { return m_inputSwitchConfigurationHasBeenSet; } + inline void SetInputSwitchConfiguration(const InputSwitchConfiguration& value) { m_inputSwitchConfigurationHasBeenSet = true; m_inputSwitchConfiguration = value; } + inline void SetInputSwitchConfiguration(InputSwitchConfiguration&& value) { m_inputSwitchConfigurationHasBeenSet = true; m_inputSwitchConfiguration = std::move(value); } + inline UpdateChannelRequest& WithInputSwitchConfiguration(const InputSwitchConfiguration& value) { SetInputSwitchConfiguration(value); return *this;} + inline UpdateChannelRequest& WithInputSwitchConfiguration(InputSwitchConfiguration&& value) { SetInputSwitchConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The settings for what common media server data (CMSD) headers AWS Elemental + * MediaPackage includes in responses to the CDN. This setting is valid only when + * InputType is CMAF.

    + */ + inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const{ return m_outputHeaderConfiguration; } + inline bool OutputHeaderConfigurationHasBeenSet() const { return m_outputHeaderConfigurationHasBeenSet; } + inline void SetOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { m_outputHeaderConfigurationHasBeenSet = true; m_outputHeaderConfiguration = value; } + inline void SetOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { m_outputHeaderConfigurationHasBeenSet = true; m_outputHeaderConfiguration = std::move(value); } + inline UpdateChannelRequest& WithOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { SetOutputHeaderConfiguration(value); return *this;} + inline UpdateChannelRequest& WithOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { SetOutputHeaderConfiguration(std::move(value)); return *this;} + ///@} private: Aws::String m_channelGroupName; @@ -109,6 +139,12 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + + InputSwitchConfiguration m_inputSwitchConfiguration; + bool m_inputSwitchConfigurationHasBeenSet = false; + + OutputHeaderConfiguration m_outputHeaderConfiguration; + bool m_outputHeaderConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/UpdateChannelResult.h b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/UpdateChannelResult.h index 985c53dfb60..f7a3e6ba9d7 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/UpdateChannelResult.h +++ b/generated/src/aws-cpp-sdk-mediapackagev2/include/aws/mediapackagev2/model/UpdateChannelResult.h @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include #include @@ -175,6 +177,32 @@ namespace Model inline UpdateChannelResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } ///@} + ///@{ + /** + *

    The configuration for input switching based on the media quality confidence + * score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + * only when InputType is CMAF.

    + */ + inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const{ return m_inputSwitchConfiguration; } + inline void SetInputSwitchConfiguration(const InputSwitchConfiguration& value) { m_inputSwitchConfiguration = value; } + inline void SetInputSwitchConfiguration(InputSwitchConfiguration&& value) { m_inputSwitchConfiguration = std::move(value); } + inline UpdateChannelResult& WithInputSwitchConfiguration(const InputSwitchConfiguration& value) { SetInputSwitchConfiguration(value); return *this;} + inline UpdateChannelResult& WithInputSwitchConfiguration(InputSwitchConfiguration&& value) { SetInputSwitchConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The settings for what common media server data (CMSD) headers AWS Elemental + * MediaPackage includes in responses to the CDN. This setting is valid only when + * InputType is CMAF.

    + */ + inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const{ return m_outputHeaderConfiguration; } + inline void SetOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { m_outputHeaderConfiguration = value; } + inline void SetOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { m_outputHeaderConfiguration = std::move(value); } + inline UpdateChannelResult& WithOutputHeaderConfiguration(const OutputHeaderConfiguration& value) { SetOutputHeaderConfiguration(value); return *this;} + inline UpdateChannelResult& WithOutputHeaderConfiguration(OutputHeaderConfiguration&& value) { SetOutputHeaderConfiguration(std::move(value)); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -207,6 +235,10 @@ namespace Model Aws::Map m_tags; + InputSwitchConfiguration m_inputSwitchConfiguration; + + OutputHeaderConfiguration m_outputHeaderConfiguration; + Aws::String m_requestId; }; 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 106ceaae443..6ccc5a593ab 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 @@ -72,7 +72,9 @@ namespace Model HARVEST_JOB_UNABLE_TO_WRITE_TO_S3_DESTINATION, HARVEST_JOB_CUSTOMER_ENDPOINT_READ_ACCESS_DENIED, CLIP_START_TIME_WITH_START_OR_END, - START_TAG_TIME_OFFSET_INVALID + START_TAG_TIME_OFFSET_INVALID, + ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING, + ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION }; namespace ValidationExceptionTypeMapper diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateChannelRequest.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateChannelRequest.cpp index e54a114cdd6..d17426af8b6 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateChannelRequest.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateChannelRequest.cpp @@ -21,6 +21,8 @@ CreateChannelRequest::CreateChannelRequest() : m_inputType(InputType::NOT_SET), m_inputTypeHasBeenSet(false), m_descriptionHasBeenSet(false), + m_inputSwitchConfigurationHasBeenSet(false), + m_outputHeaderConfigurationHasBeenSet(false), m_tagsHasBeenSet(false) { } @@ -46,6 +48,18 @@ Aws::String CreateChannelRequest::SerializePayload() const } + if(m_inputSwitchConfigurationHasBeenSet) + { + payload.WithObject("InputSwitchConfiguration", m_inputSwitchConfiguration.Jsonize()); + + } + + if(m_outputHeaderConfigurationHasBeenSet) + { + payload.WithObject("OutputHeaderConfiguration", m_outputHeaderConfiguration.Jsonize()); + + } + if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateChannelResult.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateChannelResult.cpp index dbb97cefddb..c414db537e3 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateChannelResult.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CreateChannelResult.cpp @@ -97,6 +97,18 @@ CreateChannelResult& CreateChannelResult::operator =(const Aws::AmazonWebService } } + if(jsonValue.ValueExists("InputSwitchConfiguration")) + { + m_inputSwitchConfiguration = jsonValue.GetObject("InputSwitchConfiguration"); + + } + + if(jsonValue.ValueExists("OutputHeaderConfiguration")) + { + m_outputHeaderConfiguration = jsonValue.GetObject("OutputHeaderConfiguration"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetChannelResult.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetChannelResult.cpp index ad8bed5c342..3c465af0b54 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetChannelResult.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/GetChannelResult.cpp @@ -97,6 +97,18 @@ GetChannelResult& GetChannelResult::operator =(const Aws::AmazonWebServiceResult } } + if(jsonValue.ValueExists("InputSwitchConfiguration")) + { + m_inputSwitchConfiguration = jsonValue.GetObject("InputSwitchConfiguration"); + + } + + if(jsonValue.ValueExists("OutputHeaderConfiguration")) + { + m_outputHeaderConfiguration = jsonValue.GetObject("OutputHeaderConfiguration"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/InputSwitchConfiguration.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/InputSwitchConfiguration.cpp new file mode 100644 index 00000000000..941467f454a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/InputSwitchConfiguration.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 mediapackagev2 +{ +namespace Model +{ + +InputSwitchConfiguration::InputSwitchConfiguration() : + m_mQCSInputSwitching(false), + m_mQCSInputSwitchingHasBeenSet(false) +{ +} + +InputSwitchConfiguration::InputSwitchConfiguration(JsonView jsonValue) + : InputSwitchConfiguration() +{ + *this = jsonValue; +} + +InputSwitchConfiguration& InputSwitchConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("MQCSInputSwitching")) + { + m_mQCSInputSwitching = jsonValue.GetBool("MQCSInputSwitching"); + + m_mQCSInputSwitchingHasBeenSet = true; + } + + return *this; +} + +JsonValue InputSwitchConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_mQCSInputSwitchingHasBeenSet) + { + payload.WithBool("MQCSInputSwitching", m_mQCSInputSwitching); + + } + + return payload; +} + +} // namespace Model +} // namespace mediapackagev2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/OutputHeaderConfiguration.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/OutputHeaderConfiguration.cpp new file mode 100644 index 00000000000..398cc35cc94 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/OutputHeaderConfiguration.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 mediapackagev2 +{ +namespace Model +{ + +OutputHeaderConfiguration::OutputHeaderConfiguration() : + m_publishMQCS(false), + m_publishMQCSHasBeenSet(false) +{ +} + +OutputHeaderConfiguration::OutputHeaderConfiguration(JsonView jsonValue) + : OutputHeaderConfiguration() +{ + *this = jsonValue; +} + +OutputHeaderConfiguration& OutputHeaderConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("PublishMQCS")) + { + m_publishMQCS = jsonValue.GetBool("PublishMQCS"); + + m_publishMQCSHasBeenSet = true; + } + + return *this; +} + +JsonValue OutputHeaderConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_publishMQCSHasBeenSet) + { + payload.WithBool("PublishMQCS", m_publishMQCS); + + } + + return payload; +} + +} // namespace Model +} // namespace mediapackagev2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/UpdateChannelRequest.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/UpdateChannelRequest.cpp index a1c92759e48..ef5e311afb4 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/UpdateChannelRequest.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/UpdateChannelRequest.cpp @@ -17,7 +17,9 @@ UpdateChannelRequest::UpdateChannelRequest() : m_channelGroupNameHasBeenSet(false), m_channelNameHasBeenSet(false), m_eTagHasBeenSet(false), - m_descriptionHasBeenSet(false) + m_descriptionHasBeenSet(false), + m_inputSwitchConfigurationHasBeenSet(false), + m_outputHeaderConfigurationHasBeenSet(false) { } @@ -31,6 +33,18 @@ Aws::String UpdateChannelRequest::SerializePayload() const } + if(m_inputSwitchConfigurationHasBeenSet) + { + payload.WithObject("InputSwitchConfiguration", m_inputSwitchConfiguration.Jsonize()); + + } + + if(m_outputHeaderConfigurationHasBeenSet) + { + payload.WithObject("OutputHeaderConfiguration", m_outputHeaderConfiguration.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/UpdateChannelResult.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/UpdateChannelResult.cpp index 4c8471f9a63..8d98175f4e9 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/UpdateChannelResult.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/UpdateChannelResult.cpp @@ -97,6 +97,18 @@ UpdateChannelResult& UpdateChannelResult::operator =(const Aws::AmazonWebService } } + if(jsonValue.ValueExists("InputSwitchConfiguration")) + { + m_inputSwitchConfiguration = jsonValue.GetObject("InputSwitchConfiguration"); + + } + + if(jsonValue.ValueExists("OutputHeaderConfiguration")) + { + m_outputHeaderConfiguration = jsonValue.GetObject("OutputHeaderConfiguration"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); 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 b66df16b5b5..78b719ff110 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp @@ -77,6 +77,8 @@ namespace Aws static const int HARVEST_JOB_CUSTOMER_ENDPOINT_READ_ACCESS_DENIED_HASH = HashingUtils::HashString("HARVEST_JOB_CUSTOMER_ENDPOINT_READ_ACCESS_DENIED"); 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"); + static const int ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING_HASH = HashingUtils::HashString("ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING"); + static const int ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION_HASH = HashingUtils::HashString("ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION"); ValidationExceptionType GetValidationExceptionTypeForName(const Aws::String& name) @@ -310,6 +312,14 @@ namespace Aws { return ValidationExceptionType::START_TAG_TIME_OFFSET_INVALID; } + else if (hashCode == ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING_HASH) + { + return ValidationExceptionType::ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING; + } + else if (hashCode == ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION_HASH) + { + return ValidationExceptionType::ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -440,6 +450,10 @@ namespace Aws return "CLIP_START_TIME_WITH_START_OR_END"; case ValidationExceptionType::START_TAG_TIME_OFFSET_INVALID: return "START_TAG_TIME_OFFSET_INVALID"; + case ValidationExceptionType::ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING: + return "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING"; + case ValidationExceptionType::ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION: + return "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/OmicsClient.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/OmicsClient.h index c730e8794dd..e3edd17d781 100644 --- a/generated/src/aws-cpp-sdk-omics/include/aws/omics/OmicsClient.h +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/OmicsClient.h @@ -354,6 +354,37 @@ namespace Omics return SubmitAsync(&OmicsClient::CreateReferenceStore, request, handler, context); } + /** + *

    You can create a run cache to save the task outputs from completed tasks in a + * run for a private workflow. Subsequent runs use the task outputs from the cache, + * rather than computing the task outputs again. You specify an Amazon S3 location + * where HealthOmics saves the cached data. This data must be immediately + * accessible (not in an archived state).

    For more information, see Creating + * a run cache in the AWS HealthOmics User Guide.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateRunCacheOutcome CreateRunCache(const Model::CreateRunCacheRequest& request) const; + + /** + * A Callable wrapper for CreateRunCache that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateRunCacheOutcomeCallable CreateRunCacheCallable(const CreateRunCacheRequestT& request) const + { + return SubmitCallable(&OmicsClient::CreateRunCache, request); + } + + /** + * An Async wrapper for CreateRunCache that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateRunCacheAsync(const CreateRunCacheRequestT& request, const CreateRunCacheResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&OmicsClient::CreateRunCache, request, handler, context); + } + /** *

    You can optionally create a run group to limit the compute resources for the * runs that you add to the group.

    See Also:

    Delete a run cache. This action removes the cache metadata stored in the + * service account, but doesn't delete the data in Amazon S3. You can access the + * cache data in Amazon S3, for inspection or to troubleshoot issues. You can + * remove old cache data using standard S3 Delete operations.

    + *

    For more information, see Deleting + * a run cache in the AWS HealthOmics User Guide.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteRunCacheOutcome DeleteRunCache(const Model::DeleteRunCacheRequest& request) const; + + /** + * A Callable wrapper for DeleteRunCache that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteRunCacheOutcomeCallable DeleteRunCacheCallable(const DeleteRunCacheRequestT& request) const + { + return SubmitCallable(&OmicsClient::DeleteRunCache, request); + } + + /** + * An Async wrapper for DeleteRunCache that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteRunCacheAsync(const DeleteRunCacheRequestT& request, const DeleteRunCacheResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&OmicsClient::DeleteRunCache, request, handler, context); + } + /** *

    Deletes a workflow run group.

    See Also:

    AWS @@ -1044,7 +1106,12 @@ namespace Omics /** *

    Gets information about a workflow run.

    If a workflow is shared with - * you, you cannot export information about the run.

    See Also:

    HealthOmics stores a + * fixed number of runs that are available to the console and API. If GetRun + * doesn't return the requested run, you can find run logs for all runs in the + * CloudWatch logs. For more information about viewing the run logs, see CloudWatch + * logs in the AWS HealthOmics User Guide.

    See Also:

    AWS API * Reference

    */ @@ -1068,6 +1135,35 @@ namespace Omics return SubmitAsync(&OmicsClient::GetRun, request, handler, context); } + /** + *

    Retrieve the details for the specified run cache.

    For more + * information, see Call + * caching for HealthOmics runs in the AWS HealthOmics User + * Guide.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetRunCacheOutcome GetRunCache(const Model::GetRunCacheRequest& request) const; + + /** + * A Callable wrapper for GetRunCache that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetRunCacheOutcomeCallable GetRunCacheCallable(const GetRunCacheRequestT& request) const + { + return SubmitCallable(&OmicsClient::GetRunCache, request); + } + + /** + * An Async wrapper for GetRunCache that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetRunCacheAsync(const GetRunCacheRequestT& request, const GetRunCacheResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&OmicsClient::GetRunCache, request, handler, context); + } + /** *

    Gets information about a workflow run group.

    See Also:

    AWS @@ -1548,6 +1644,31 @@ namespace Omics return SubmitAsync(&OmicsClient::ListReferences, request, handler, context); } + /** + *

    Retrieves a list of your run caches.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListRunCachesOutcome ListRunCaches(const Model::ListRunCachesRequest& request = {}) const; + + /** + * A Callable wrapper for ListRunCaches that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListRunCachesOutcomeCallable ListRunCachesCallable(const ListRunCachesRequestT& request = {}) const + { + return SubmitCallable(&OmicsClient::ListRunCaches, request); + } + + /** + * An Async wrapper for ListRunCaches that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListRunCachesAsync(const ListRunCachesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListRunCachesRequestT& request = {}) const + { + return SubmitAsync(&OmicsClient::ListRunCaches, request, handler, context); + } + /** *

    Retrieves a list of run groups.

    See Also:

    AWS @@ -1599,7 +1720,12 @@ namespace Omics } /** - *

    Retrieves a list of runs.

    See Also:

    Retrieves a list of runs.

    HealthOmics stores a fixed number of runs + * that are available to the console and API. If the ListRuns response doesn't + * include specific runs that you expected, you can find run logs for all runs in + * the CloudWatch logs. For more information about viewing the run logs, see CloudWatch + * logs in the AWS HealthOmics User Guide.

    See Also:

    AWS API * Reference

    */ @@ -1903,15 +2029,16 @@ namespace Omics /** *

    Starts a workflow run. To duplicate a run, specify the run's ID and a role * ARN. The remaining parameters are copied from the previous run.

    StartRun - * will not support re-run for a workflow that is shared with you.

    The total - * number of runs in your account is subject to a quota per Region. To avoid - * needing to delete runs manually, you can set the retention mode to - * REMOVE. Runs with this setting are deleted automatically when the - * run quoata is exceeded.

    By default, the run uses STATIC storage. For - * STATIC storage, set the storageCapacity field. You can set the - * storage type to DYNAMIC. You do not set storageCapacity, because - * HealthOmics dynamically scales the storage up or down as required. For more - * information about static and dynamic storage, see + *

    HealthOmics stores a fixed number of runs that are available to the console + * and API. By default, HealthOmics doesn't any remove any runs. If HealthOmics + * reaches the maximum number of runs, you must manually remove runs. To have older + * runs removed automatically, set the retention mode to REMOVE.

    + *

    By default, the run uses STATIC storage. For STATIC storage, set the + * storageCapacity field. You can set the storage type to DYNAMIC. You + * do not set storageCapacity, because HealthOmics dynamically scales + * the storage up or down as required. For more information about static and + * dynamic storage, see Running * workflows in the AWS HealthOmics User Guide.

    See Also:

    * AWS @@ -2063,6 +2190,31 @@ namespace Omics return SubmitAsync(&OmicsClient::UpdateAnnotationStoreVersion, request, handler, context); } + /** + *

    Update a run cache.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateRunCacheOutcome UpdateRunCache(const Model::UpdateRunCacheRequest& request) const; + + /** + * A Callable wrapper for UpdateRunCache that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateRunCacheOutcomeCallable UpdateRunCacheCallable(const UpdateRunCacheRequestT& request) const + { + return SubmitCallable(&OmicsClient::UpdateRunCache, request); + } + + /** + * An Async wrapper for UpdateRunCache that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateRunCacheAsync(const UpdateRunCacheRequestT& request, const UpdateRunCacheResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&OmicsClient::UpdateRunCache, request, handler, context); + } + /** *

    Updates a run group.

    See Also:

    AWS diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/OmicsServiceClientModel.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/OmicsServiceClientModel.h index 3f3a40f8f17..a4af7936694 100644 --- a/generated/src/aws-cpp-sdk-omics/include/aws/omics/OmicsServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/OmicsServiceClientModel.h @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -53,6 +54,7 @@ #include #include #include +#include #include #include #include @@ -72,6 +74,7 @@ #include #include #include +#include #include #include #include @@ -102,6 +105,7 @@ #include #include #include +#include #include #include /* End of service model headers required in OmicsClient header */ @@ -155,6 +159,7 @@ namespace Aws class CreateAnnotationStoreVersionRequest; class CreateMultipartReadSetUploadRequest; class CreateReferenceStoreRequest; + class CreateRunCacheRequest; class CreateRunGroupRequest; class CreateSequenceStoreRequest; class CreateShareRequest; @@ -165,6 +170,7 @@ namespace Aws class DeleteReferenceRequest; class DeleteReferenceStoreRequest; class DeleteRunRequest; + class DeleteRunCacheRequest; class DeleteRunGroupRequest; class DeleteSequenceStoreRequest; class DeleteShareRequest; @@ -183,6 +189,7 @@ namespace Aws class GetReferenceMetadataRequest; class GetReferenceStoreRequest; class GetRunRequest; + class GetRunCacheRequest; class GetRunGroupRequest; class GetRunTaskRequest; class GetSequenceStoreRequest; @@ -202,6 +209,7 @@ namespace Aws class ListReferenceImportJobsRequest; class ListReferenceStoresRequest; class ListReferencesRequest; + class ListRunCachesRequest; class ListRunGroupsRequest; class ListRunTasksRequest; class ListRunsRequest; @@ -222,6 +230,7 @@ namespace Aws class UntagResourceRequest; class UpdateAnnotationStoreRequest; class UpdateAnnotationStoreVersionRequest; + class UpdateRunCacheRequest; class UpdateRunGroupRequest; class UpdateVariantStoreRequest; class UpdateWorkflowRequest; @@ -240,6 +249,7 @@ namespace Aws typedef Aws::Utils::Outcome CreateAnnotationStoreVersionOutcome; typedef Aws::Utils::Outcome CreateMultipartReadSetUploadOutcome; typedef Aws::Utils::Outcome CreateReferenceStoreOutcome; + typedef Aws::Utils::Outcome CreateRunCacheOutcome; typedef Aws::Utils::Outcome CreateRunGroupOutcome; typedef Aws::Utils::Outcome CreateSequenceStoreOutcome; typedef Aws::Utils::Outcome CreateShareOutcome; @@ -250,6 +260,7 @@ namespace Aws typedef Aws::Utils::Outcome DeleteReferenceOutcome; typedef Aws::Utils::Outcome DeleteReferenceStoreOutcome; typedef Aws::Utils::Outcome DeleteRunOutcome; + typedef Aws::Utils::Outcome DeleteRunCacheOutcome; typedef Aws::Utils::Outcome DeleteRunGroupOutcome; typedef Aws::Utils::Outcome DeleteSequenceStoreOutcome; typedef Aws::Utils::Outcome DeleteShareOutcome; @@ -268,6 +279,7 @@ namespace Aws typedef Aws::Utils::Outcome GetReferenceMetadataOutcome; typedef Aws::Utils::Outcome GetReferenceStoreOutcome; typedef Aws::Utils::Outcome GetRunOutcome; + typedef Aws::Utils::Outcome GetRunCacheOutcome; typedef Aws::Utils::Outcome GetRunGroupOutcome; typedef Aws::Utils::Outcome GetRunTaskOutcome; typedef Aws::Utils::Outcome GetSequenceStoreOutcome; @@ -287,6 +299,7 @@ namespace Aws typedef Aws::Utils::Outcome ListReferenceImportJobsOutcome; typedef Aws::Utils::Outcome ListReferenceStoresOutcome; typedef Aws::Utils::Outcome ListReferencesOutcome; + typedef Aws::Utils::Outcome ListRunCachesOutcome; typedef Aws::Utils::Outcome ListRunGroupsOutcome; typedef Aws::Utils::Outcome ListRunTasksOutcome; typedef Aws::Utils::Outcome ListRunsOutcome; @@ -307,6 +320,7 @@ namespace Aws typedef Aws::Utils::Outcome UntagResourceOutcome; typedef Aws::Utils::Outcome UpdateAnnotationStoreOutcome; typedef Aws::Utils::Outcome UpdateAnnotationStoreVersionOutcome; + typedef Aws::Utils::Outcome UpdateRunCacheOutcome; typedef Aws::Utils::Outcome UpdateRunGroupOutcome; typedef Aws::Utils::Outcome UpdateVariantStoreOutcome; typedef Aws::Utils::Outcome UpdateWorkflowOutcome; @@ -325,6 +339,7 @@ namespace Aws typedef std::future CreateAnnotationStoreVersionOutcomeCallable; typedef std::future CreateMultipartReadSetUploadOutcomeCallable; typedef std::future CreateReferenceStoreOutcomeCallable; + typedef std::future CreateRunCacheOutcomeCallable; typedef std::future CreateRunGroupOutcomeCallable; typedef std::future CreateSequenceStoreOutcomeCallable; typedef std::future CreateShareOutcomeCallable; @@ -335,6 +350,7 @@ namespace Aws typedef std::future DeleteReferenceOutcomeCallable; typedef std::future DeleteReferenceStoreOutcomeCallable; typedef std::future DeleteRunOutcomeCallable; + typedef std::future DeleteRunCacheOutcomeCallable; typedef std::future DeleteRunGroupOutcomeCallable; typedef std::future DeleteSequenceStoreOutcomeCallable; typedef std::future DeleteShareOutcomeCallable; @@ -353,6 +369,7 @@ namespace Aws typedef std::future GetReferenceMetadataOutcomeCallable; typedef std::future GetReferenceStoreOutcomeCallable; typedef std::future GetRunOutcomeCallable; + typedef std::future GetRunCacheOutcomeCallable; typedef std::future GetRunGroupOutcomeCallable; typedef std::future GetRunTaskOutcomeCallable; typedef std::future GetSequenceStoreOutcomeCallable; @@ -372,6 +389,7 @@ namespace Aws typedef std::future ListReferenceImportJobsOutcomeCallable; typedef std::future ListReferenceStoresOutcomeCallable; typedef std::future ListReferencesOutcomeCallable; + typedef std::future ListRunCachesOutcomeCallable; typedef std::future ListRunGroupsOutcomeCallable; typedef std::future ListRunTasksOutcomeCallable; typedef std::future ListRunsOutcomeCallable; @@ -392,6 +410,7 @@ namespace Aws typedef std::future UntagResourceOutcomeCallable; typedef std::future UpdateAnnotationStoreOutcomeCallable; typedef std::future UpdateAnnotationStoreVersionOutcomeCallable; + typedef std::future UpdateRunCacheOutcomeCallable; typedef std::future UpdateRunGroupOutcomeCallable; typedef std::future UpdateVariantStoreOutcomeCallable; typedef std::future UpdateWorkflowOutcomeCallable; @@ -413,6 +432,7 @@ namespace Aws typedef std::function&) > CreateAnnotationStoreVersionResponseReceivedHandler; typedef std::function&) > CreateMultipartReadSetUploadResponseReceivedHandler; typedef std::function&) > CreateReferenceStoreResponseReceivedHandler; + typedef std::function&) > CreateRunCacheResponseReceivedHandler; typedef std::function&) > CreateRunGroupResponseReceivedHandler; typedef std::function&) > CreateSequenceStoreResponseReceivedHandler; typedef std::function&) > CreateShareResponseReceivedHandler; @@ -423,6 +443,7 @@ namespace Aws typedef std::function&) > DeleteReferenceResponseReceivedHandler; typedef std::function&) > DeleteReferenceStoreResponseReceivedHandler; typedef std::function&) > DeleteRunResponseReceivedHandler; + typedef std::function&) > DeleteRunCacheResponseReceivedHandler; typedef std::function&) > DeleteRunGroupResponseReceivedHandler; typedef std::function&) > DeleteSequenceStoreResponseReceivedHandler; typedef std::function&) > DeleteShareResponseReceivedHandler; @@ -441,6 +462,7 @@ namespace Aws typedef std::function&) > GetReferenceMetadataResponseReceivedHandler; typedef std::function&) > GetReferenceStoreResponseReceivedHandler; typedef std::function&) > GetRunResponseReceivedHandler; + typedef std::function&) > GetRunCacheResponseReceivedHandler; typedef std::function&) > GetRunGroupResponseReceivedHandler; typedef std::function&) > GetRunTaskResponseReceivedHandler; typedef std::function&) > GetSequenceStoreResponseReceivedHandler; @@ -460,6 +482,7 @@ namespace Aws typedef std::function&) > ListReferenceImportJobsResponseReceivedHandler; typedef std::function&) > ListReferenceStoresResponseReceivedHandler; typedef std::function&) > ListReferencesResponseReceivedHandler; + typedef std::function&) > ListRunCachesResponseReceivedHandler; typedef std::function&) > ListRunGroupsResponseReceivedHandler; typedef std::function&) > ListRunTasksResponseReceivedHandler; typedef std::function&) > ListRunsResponseReceivedHandler; @@ -480,6 +503,7 @@ namespace Aws typedef std::function&) > UntagResourceResponseReceivedHandler; typedef std::function&) > UpdateAnnotationStoreResponseReceivedHandler; typedef std::function&) > UpdateAnnotationStoreVersionResponseReceivedHandler; + typedef std::function&) > UpdateRunCacheResponseReceivedHandler; typedef std::function&) > UpdateRunGroupResponseReceivedHandler; typedef std::function&) > UpdateVariantStoreResponseReceivedHandler; typedef std::function&) > UpdateWorkflowResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CacheBehavior.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CacheBehavior.h new file mode 100644 index 00000000000..c61ad21cbcb --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CacheBehavior.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 Omics +{ +namespace Model +{ + enum class CacheBehavior + { + NOT_SET, + CACHE_ON_FAILURE, + CACHE_ALWAYS + }; + +namespace CacheBehaviorMapper +{ +AWS_OMICS_API CacheBehavior GetCacheBehaviorForName(const Aws::String& name); + +AWS_OMICS_API Aws::String GetNameForCacheBehavior(CacheBehavior value); +} // namespace CacheBehaviorMapper +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CreateRunCacheRequest.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CreateRunCacheRequest.h new file mode 100644 index 00000000000..b3d2b8e8ad5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CreateRunCacheRequest.h @@ -0,0 +1,180 @@ +/** + * 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 Omics +{ +namespace Model +{ + + /** + */ + class CreateRunCacheRequest : public OmicsRequest + { + public: + AWS_OMICS_API CreateRunCacheRequest(); + + // 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 "CreateRunCache"; } + + AWS_OMICS_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    Default cache behavior for runs that use this cache. Supported values + * are:

    CACHE_ON_FAILURE: Caches task outputs from completed + * tasks for runs that fail. This setting is useful if you're debugging a workflow + * that fails after several tasks completed successfully. The subsequent run uses + * the cache outputs for previously-completed tasks if the task definition, inputs, + * and container in ECR are identical to the prior run.

    + * CACHE_ALWAYS: Caches task outputs from completed tasks for all + * runs. This setting is useful in development mode, but do not use it in a + * production setting.

    If you don't specify a value, the default behavior is + * CACHE_ON_FAILURE. When you start a run that uses this cache, you can override + * the default cache behavior.

    For more information, see Run + * cache behavior in the AWS HealthOmics User Guide.

    + */ + inline const CacheBehavior& GetCacheBehavior() const{ return m_cacheBehavior; } + inline bool CacheBehaviorHasBeenSet() const { return m_cacheBehaviorHasBeenSet; } + inline void SetCacheBehavior(const CacheBehavior& value) { m_cacheBehaviorHasBeenSet = true; m_cacheBehavior = value; } + inline void SetCacheBehavior(CacheBehavior&& value) { m_cacheBehaviorHasBeenSet = true; m_cacheBehavior = std::move(value); } + inline CreateRunCacheRequest& WithCacheBehavior(const CacheBehavior& value) { SetCacheBehavior(value); return *this;} + inline CreateRunCacheRequest& WithCacheBehavior(CacheBehavior&& value) { SetCacheBehavior(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Specify the S3 location for storing the cached task outputs. This data must + * be immediately accessible (not in an archived state).

    + */ + inline const Aws::String& GetCacheS3Location() const{ return m_cacheS3Location; } + inline bool CacheS3LocationHasBeenSet() const { return m_cacheS3LocationHasBeenSet; } + inline void SetCacheS3Location(const Aws::String& value) { m_cacheS3LocationHasBeenSet = true; m_cacheS3Location = value; } + inline void SetCacheS3Location(Aws::String&& value) { m_cacheS3LocationHasBeenSet = true; m_cacheS3Location = std::move(value); } + inline void SetCacheS3Location(const char* value) { m_cacheS3LocationHasBeenSet = true; m_cacheS3Location.assign(value); } + inline CreateRunCacheRequest& WithCacheS3Location(const Aws::String& value) { SetCacheS3Location(value); return *this;} + inline CreateRunCacheRequest& WithCacheS3Location(Aws::String&& value) { SetCacheS3Location(std::move(value)); return *this;} + inline CreateRunCacheRequest& WithCacheS3Location(const char* value) { SetCacheS3Location(value); return *this;} + ///@} + + ///@{ + /** + *

    Enter a description of the run cache.

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

    Enter a user-friendly name for the run cache.

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

    A unique request token, to ensure idempotency. If you don't specify a token, + * HealthOmics automatically generates a universally unique identifier (UUID) for + * the request.

    + */ + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } + inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } + inline CreateRunCacheRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateRunCacheRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateRunCacheRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + + ///@{ + /** + *

    Specify one or more tags to associate with this run cache.

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

    The AWS account ID of the expected owner of the S3 bucket for the run cache. + * If not provided, your account ID is set as the owner of the bucket.

    + */ + inline const Aws::String& GetCacheBucketOwnerId() const{ return m_cacheBucketOwnerId; } + inline bool CacheBucketOwnerIdHasBeenSet() const { return m_cacheBucketOwnerIdHasBeenSet; } + inline void SetCacheBucketOwnerId(const Aws::String& value) { m_cacheBucketOwnerIdHasBeenSet = true; m_cacheBucketOwnerId = value; } + inline void SetCacheBucketOwnerId(Aws::String&& value) { m_cacheBucketOwnerIdHasBeenSet = true; m_cacheBucketOwnerId = std::move(value); } + inline void SetCacheBucketOwnerId(const char* value) { m_cacheBucketOwnerIdHasBeenSet = true; m_cacheBucketOwnerId.assign(value); } + inline CreateRunCacheRequest& WithCacheBucketOwnerId(const Aws::String& value) { SetCacheBucketOwnerId(value); return *this;} + inline CreateRunCacheRequest& WithCacheBucketOwnerId(Aws::String&& value) { SetCacheBucketOwnerId(std::move(value)); return *this;} + inline CreateRunCacheRequest& WithCacheBucketOwnerId(const char* value) { SetCacheBucketOwnerId(value); return *this;} + ///@} + private: + + CacheBehavior m_cacheBehavior; + bool m_cacheBehaviorHasBeenSet = false; + + Aws::String m_cacheS3Location; + bool m_cacheS3LocationHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_requestId; + bool m_requestIdHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + + Aws::String m_cacheBucketOwnerId; + bool m_cacheBucketOwnerIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CreateRunCacheResult.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CreateRunCacheResult.h new file mode 100644 index 00000000000..4ef60cffc1c --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/CreateRunCacheResult.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Omics +{ +namespace Model +{ + class CreateRunCacheResult + { + public: + AWS_OMICS_API CreateRunCacheResult(); + AWS_OMICS_API CreateRunCacheResult(const Aws::AmazonWebServiceResult& result); + AWS_OMICS_API CreateRunCacheResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    Unique resource identifier for the run cache.

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

    Identifier for the run cache.

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

    Run cache status.

    + */ + inline const RunCacheStatus& GetStatus() const{ return m_status; } + inline void SetStatus(const RunCacheStatus& value) { m_status = value; } + inline void SetStatus(RunCacheStatus&& value) { m_status = std::move(value); } + inline CreateRunCacheResult& WithStatus(const RunCacheStatus& value) { SetStatus(value); return *this;} + inline CreateRunCacheResult& WithStatus(RunCacheStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The tags associated with this run cache.

    + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline void SetTags(const Aws::Map& value) { m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + inline CreateRunCacheResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateRunCacheResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateRunCacheResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + inline CreateRunCacheResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + inline CreateRunCacheResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline CreateRunCacheResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateRunCacheResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline CreateRunCacheResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + inline CreateRunCacheResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline CreateRunCacheResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateRunCacheResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateRunCacheResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_arn; + + Aws::String m_id; + + RunCacheStatus m_status; + + Aws::Map m_tags; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/DeleteRunCacheRequest.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/DeleteRunCacheRequest.h new file mode 100644 index 00000000000..f989f205b5b --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/DeleteRunCacheRequest.h @@ -0,0 +1,56 @@ +/** + * 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 Omics +{ +namespace Model +{ + + /** + */ + class DeleteRunCacheRequest : public OmicsRequest + { + public: + AWS_OMICS_API DeleteRunCacheRequest(); + + // 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 "DeleteRunCache"; } + + AWS_OMICS_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    Run cache identifier for the cache you want to delete.

    + */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline DeleteRunCacheRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline DeleteRunCacheRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline DeleteRunCacheRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunCacheRequest.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunCacheRequest.h new file mode 100644 index 00000000000..8b201df318d --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunCacheRequest.h @@ -0,0 +1,56 @@ +/** + * 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 Omics +{ +namespace Model +{ + + /** + */ + class GetRunCacheRequest : public OmicsRequest + { + public: + AWS_OMICS_API GetRunCacheRequest(); + + // 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 "GetRunCache"; } + + AWS_OMICS_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the run cache to retrieve.

    + */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline GetRunCacheRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline GetRunCacheRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline GetRunCacheRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunCacheResult.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunCacheResult.h new file mode 100644 index 00000000000..e57ede1e839 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunCacheResult.h @@ -0,0 +1,205 @@ +/** + * 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 +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Omics +{ +namespace Model +{ + class GetRunCacheResult + { + public: + AWS_OMICS_API GetRunCacheResult(); + AWS_OMICS_API GetRunCacheResult(const Aws::AmazonWebServiceResult& result); + AWS_OMICS_API GetRunCacheResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    Unique resource identifier for the run cache.

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

    The default cache behavior for runs using this cache.

    + */ + inline const CacheBehavior& GetCacheBehavior() const{ return m_cacheBehavior; } + inline void SetCacheBehavior(const CacheBehavior& value) { m_cacheBehavior = value; } + inline void SetCacheBehavior(CacheBehavior&& value) { m_cacheBehavior = std::move(value); } + inline GetRunCacheResult& WithCacheBehavior(const CacheBehavior& value) { SetCacheBehavior(value); return *this;} + inline GetRunCacheResult& WithCacheBehavior(CacheBehavior&& value) { SetCacheBehavior(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the bucket owner.

    + */ + inline const Aws::String& GetCacheBucketOwnerId() const{ return m_cacheBucketOwnerId; } + inline void SetCacheBucketOwnerId(const Aws::String& value) { m_cacheBucketOwnerId = value; } + inline void SetCacheBucketOwnerId(Aws::String&& value) { m_cacheBucketOwnerId = std::move(value); } + inline void SetCacheBucketOwnerId(const char* value) { m_cacheBucketOwnerId.assign(value); } + inline GetRunCacheResult& WithCacheBucketOwnerId(const Aws::String& value) { SetCacheBucketOwnerId(value); return *this;} + inline GetRunCacheResult& WithCacheBucketOwnerId(Aws::String&& value) { SetCacheBucketOwnerId(std::move(value)); return *this;} + inline GetRunCacheResult& WithCacheBucketOwnerId(const char* value) { SetCacheBucketOwnerId(value); return *this;} + ///@} + + ///@{ + /** + *

    The S3 URI where the cache data is stored.

    + */ + inline const Aws::String& GetCacheS3Uri() const{ return m_cacheS3Uri; } + inline void SetCacheS3Uri(const Aws::String& value) { m_cacheS3Uri = value; } + inline void SetCacheS3Uri(Aws::String&& value) { m_cacheS3Uri = std::move(value); } + inline void SetCacheS3Uri(const char* value) { m_cacheS3Uri.assign(value); } + inline GetRunCacheResult& WithCacheS3Uri(const Aws::String& value) { SetCacheS3Uri(value); return *this;} + inline GetRunCacheResult& WithCacheS3Uri(Aws::String&& value) { SetCacheS3Uri(std::move(value)); return *this;} + inline GetRunCacheResult& WithCacheS3Uri(const char* value) { SetCacheS3Uri(value); return *this;} + ///@} + + ///@{ + /** + *

    Creation time of the run cache (an ISO 8601 formatted string).

    + */ + inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } + inline GetRunCacheResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + inline GetRunCacheResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The run cache description.

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

    The run cache ID.

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

    The run cache name.

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

    The run cache status.

    + */ + inline const RunCacheStatus& GetStatus() const{ return m_status; } + inline void SetStatus(const RunCacheStatus& value) { m_status = value; } + inline void SetStatus(RunCacheStatus&& value) { m_status = std::move(value); } + inline GetRunCacheResult& WithStatus(const RunCacheStatus& value) { SetStatus(value); return *this;} + inline GetRunCacheResult& WithStatus(RunCacheStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The tags associated with the run cache.

    + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline void SetTags(const Aws::Map& value) { m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + inline GetRunCacheResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline GetRunCacheResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline GetRunCacheResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + inline GetRunCacheResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + inline GetRunCacheResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline GetRunCacheResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline GetRunCacheResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline GetRunCacheResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + inline GetRunCacheResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetRunCacheResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetRunCacheResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetRunCacheResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_arn; + + CacheBehavior m_cacheBehavior; + + Aws::String m_cacheBucketOwnerId; + + Aws::String m_cacheS3Uri; + + Aws::Utils::DateTime m_creationTime; + + Aws::String m_description; + + Aws::String m_id; + + Aws::String m_name; + + RunCacheStatus m_status; + + Aws::Map m_tags; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunResult.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunResult.h index 5dfea4a0b4d..a803cbc35e5 100644 --- a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunResult.h +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunResult.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include #include @@ -68,6 +69,43 @@ namespace Model inline GetRunResult& WithId(const char* value) { SetId(value); return *this;} ///@} + ///@{ + /** + *

    The run cache associated with the run.

    + */ + inline const Aws::String& GetCacheId() const{ return m_cacheId; } + inline void SetCacheId(const Aws::String& value) { m_cacheId = value; } + inline void SetCacheId(Aws::String&& value) { m_cacheId = std::move(value); } + inline void SetCacheId(const char* value) { m_cacheId.assign(value); } + inline GetRunResult& WithCacheId(const Aws::String& value) { SetCacheId(value); return *this;} + inline GetRunResult& WithCacheId(Aws::String&& value) { SetCacheId(std::move(value)); return *this;} + inline GetRunResult& WithCacheId(const char* value) { SetCacheId(value); return *this;} + ///@} + + ///@{ + /** + *

    The run cache behavior for the run.

    + */ + inline const CacheBehavior& GetCacheBehavior() const{ return m_cacheBehavior; } + inline void SetCacheBehavior(const CacheBehavior& value) { m_cacheBehavior = value; } + inline void SetCacheBehavior(CacheBehavior&& value) { m_cacheBehavior = std::move(value); } + inline GetRunResult& WithCacheBehavior(const CacheBehavior& value) { SetCacheBehavior(value); return *this;} + inline GetRunResult& WithCacheBehavior(CacheBehavior&& value) { SetCacheBehavior(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The workflow engine version.

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

    The run's status.

    @@ -443,6 +481,12 @@ namespace Model Aws::String m_id; + Aws::String m_cacheId; + + CacheBehavior m_cacheBehavior; + + Aws::String m_engineVersion; + RunStatus m_status; Aws::String m_workflowId; diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunTaskResult.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunTaskResult.h index d3f7d08b4d7..142f859eb85 100644 --- a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunTaskResult.h +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/GetRunTaskResult.h @@ -80,6 +80,29 @@ namespace Model inline GetRunTaskResult& WithCpus(int value) { SetCpus(value); return *this;} ///@} + ///@{ + /** + *

    Set to true if AWS HealthOmics found a matching entry in the run cache for + * this task.

    + */ + inline bool GetCacheHit() const{ return m_cacheHit; } + inline void SetCacheHit(bool value) { m_cacheHit = value; } + inline GetRunTaskResult& WithCacheHit(bool value) { SetCacheHit(value); return *this;} + ///@} + + ///@{ + /** + *

    The S3 URI of the cache location.

    + */ + inline const Aws::String& GetCacheS3Uri() const{ return m_cacheS3Uri; } + inline void SetCacheS3Uri(const Aws::String& value) { m_cacheS3Uri = value; } + inline void SetCacheS3Uri(Aws::String&& value) { m_cacheS3Uri = std::move(value); } + inline void SetCacheS3Uri(const char* value) { m_cacheS3Uri.assign(value); } + inline GetRunTaskResult& WithCacheS3Uri(const Aws::String& value) { SetCacheS3Uri(value); return *this;} + inline GetRunTaskResult& WithCacheS3Uri(Aws::String&& value) { SetCacheS3Uri(std::move(value)); return *this;} + inline GetRunTaskResult& WithCacheS3Uri(const char* value) { SetCacheS3Uri(value); return *this;} + ///@} + ///@{ /** *

    The task's memory use in gigabytes.

    @@ -203,6 +226,10 @@ namespace Model int m_cpus; + bool m_cacheHit; + + Aws::String m_cacheS3Uri; + int m_memory; Aws::Utils::DateTime m_creationTime; diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/ListRunCachesRequest.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/ListRunCachesRequest.h new file mode 100644 index 00000000000..049a14a5033 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/ListRunCachesRequest.h @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace Omics +{ +namespace Model +{ + + /** + */ + class ListRunCachesRequest : public OmicsRequest + { + public: + AWS_OMICS_API ListRunCachesRequest(); + + // 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 "ListRunCaches"; } + + AWS_OMICS_API Aws::String SerializePayload() const override; + + AWS_OMICS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The maximum number of results to return.

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

    Optional pagination token returned from a prior call to the + * ListRunCaches API operation.

    + */ + inline const Aws::String& GetStartingToken() const{ return m_startingToken; } + inline bool StartingTokenHasBeenSet() const { return m_startingTokenHasBeenSet; } + inline void SetStartingToken(const Aws::String& value) { m_startingTokenHasBeenSet = true; m_startingToken = value; } + inline void SetStartingToken(Aws::String&& value) { m_startingTokenHasBeenSet = true; m_startingToken = std::move(value); } + inline void SetStartingToken(const char* value) { m_startingTokenHasBeenSet = true; m_startingToken.assign(value); } + inline ListRunCachesRequest& WithStartingToken(const Aws::String& value) { SetStartingToken(value); return *this;} + inline ListRunCachesRequest& WithStartingToken(Aws::String&& value) { SetStartingToken(std::move(value)); return *this;} + inline ListRunCachesRequest& WithStartingToken(const char* value) { SetStartingToken(value); return *this;} + ///@} + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_startingToken; + bool m_startingTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/ListRunCachesResult.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/ListRunCachesResult.h new file mode 100644 index 00000000000..e4080574049 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/ListRunCachesResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Omics +{ +namespace Model +{ + class ListRunCachesResult + { + public: + AWS_OMICS_API ListRunCachesResult(); + AWS_OMICS_API ListRunCachesResult(const Aws::AmazonWebServiceResult& result); + AWS_OMICS_API ListRunCachesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    Details about each run cache in the response.

    + */ + inline const Aws::Vector& GetItems() const{ return m_items; } + inline void SetItems(const Aws::Vector& value) { m_items = value; } + inline void SetItems(Aws::Vector&& value) { m_items = std::move(value); } + inline ListRunCachesResult& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} + inline ListRunCachesResult& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} + inline ListRunCachesResult& AddItems(const RunCacheListItem& value) { m_items.push_back(value); return *this; } + inline ListRunCachesResult& AddItems(RunCacheListItem&& value) { m_items.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    Pagination token to retrieve additional run caches. If the response does not + * have a nextTokenvalue, you have reached to the end of the list.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListRunCachesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListRunCachesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListRunCachesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListRunCachesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListRunCachesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListRunCachesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_items; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/RunCacheListItem.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/RunCacheListItem.h new file mode 100644 index 00000000000..52d00cce9e5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/RunCacheListItem.h @@ -0,0 +1,160 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Omics +{ +namespace Model +{ + + /** + *

    List entry for one run cache.

    See Also:

    AWS + * API Reference

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

    Unique resource identifier for the run cache.

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

    Default cache behavior for the run cache.

    + */ + inline const CacheBehavior& GetCacheBehavior() const{ return m_cacheBehavior; } + inline bool CacheBehaviorHasBeenSet() const { return m_cacheBehaviorHasBeenSet; } + inline void SetCacheBehavior(const CacheBehavior& value) { m_cacheBehaviorHasBeenSet = true; m_cacheBehavior = value; } + inline void SetCacheBehavior(CacheBehavior&& value) { m_cacheBehaviorHasBeenSet = true; m_cacheBehavior = std::move(value); } + inline RunCacheListItem& WithCacheBehavior(const CacheBehavior& value) { SetCacheBehavior(value); return *this;} + inline RunCacheListItem& WithCacheBehavior(CacheBehavior&& value) { SetCacheBehavior(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The S3 uri for the run cache data.

    + */ + inline const Aws::String& GetCacheS3Uri() const{ return m_cacheS3Uri; } + inline bool CacheS3UriHasBeenSet() const { return m_cacheS3UriHasBeenSet; } + inline void SetCacheS3Uri(const Aws::String& value) { m_cacheS3UriHasBeenSet = true; m_cacheS3Uri = value; } + inline void SetCacheS3Uri(Aws::String&& value) { m_cacheS3UriHasBeenSet = true; m_cacheS3Uri = std::move(value); } + inline void SetCacheS3Uri(const char* value) { m_cacheS3UriHasBeenSet = true; m_cacheS3Uri.assign(value); } + inline RunCacheListItem& WithCacheS3Uri(const Aws::String& value) { SetCacheS3Uri(value); return *this;} + inline RunCacheListItem& WithCacheS3Uri(Aws::String&& value) { SetCacheS3Uri(std::move(value)); return *this;} + inline RunCacheListItem& WithCacheS3Uri(const char* value) { SetCacheS3Uri(value); return *this;} + ///@} + + ///@{ + /** + *

    The time that this run cache was created (an ISO 8601 formatted string).

    + */ + inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } + inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } + inline RunCacheListItem& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + inline RunCacheListItem& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The identifier for this run cache.

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

    The name of the run cache.

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

    The run cache status.

    + */ + inline const RunCacheStatus& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const RunCacheStatus& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(RunCacheStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline RunCacheListItem& WithStatus(const RunCacheStatus& value) { SetStatus(value); return *this;} + inline RunCacheListItem& WithStatus(RunCacheStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + CacheBehavior m_cacheBehavior; + bool m_cacheBehaviorHasBeenSet = false; + + Aws::String m_cacheS3Uri; + bool m_cacheS3UriHasBeenSet = false; + + Aws::Utils::DateTime m_creationTime; + bool m_creationTimeHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + RunCacheStatus m_status; + bool m_statusHasBeenSet = false; + }; + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/RunCacheStatus.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/RunCacheStatus.h new file mode 100644 index 00000000000..f05b3a791c4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/RunCacheStatus.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 Omics +{ +namespace Model +{ + enum class RunCacheStatus + { + NOT_SET, + ACTIVE, + DELETED, + FAILED + }; + +namespace RunCacheStatusMapper +{ +AWS_OMICS_API RunCacheStatus GetRunCacheStatusForName(const Aws::String& name); + +AWS_OMICS_API Aws::String GetNameForRunCacheStatus(RunCacheStatus value); +} // namespace RunCacheStatusMapper +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/StartRunRequest.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/StartRunRequest.h index 8a630e87476..5e45d0ab6d2 100644 --- a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/StartRunRequest.h +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/StartRunRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -107,6 +108,37 @@ namespace Model inline StartRunRequest& WithName(const char* value) { SetName(value); return *this;} ///@} + ///@{ + /** + *

    Identifier of the cache associated with this run. If you don't specify a + * cache ID, no task outputs are cached for this run.

    + */ + inline const Aws::String& GetCacheId() const{ return m_cacheId; } + inline bool CacheIdHasBeenSet() const { return m_cacheIdHasBeenSet; } + inline void SetCacheId(const Aws::String& value) { m_cacheIdHasBeenSet = true; m_cacheId = value; } + inline void SetCacheId(Aws::String&& value) { m_cacheIdHasBeenSet = true; m_cacheId = std::move(value); } + inline void SetCacheId(const char* value) { m_cacheIdHasBeenSet = true; m_cacheId.assign(value); } + inline StartRunRequest& WithCacheId(const Aws::String& value) { SetCacheId(value); return *this;} + inline StartRunRequest& WithCacheId(Aws::String&& value) { SetCacheId(std::move(value)); return *this;} + inline StartRunRequest& WithCacheId(const char* value) { SetCacheId(value); return *this;} + ///@} + + ///@{ + /** + *

    The cache behavior for the run. You specify this value if you want to + * override the default behavior for the cache. You had set the default value when + * you created the cache. For more information, see Run + * cache behavior in the AWS HealthOmics User Guide.

    + */ + inline const CacheBehavior& GetCacheBehavior() const{ return m_cacheBehavior; } + inline bool CacheBehaviorHasBeenSet() const { return m_cacheBehaviorHasBeenSet; } + inline void SetCacheBehavior(const CacheBehavior& value) { m_cacheBehaviorHasBeenSet = true; m_cacheBehavior = value; } + inline void SetCacheBehavior(CacheBehavior&& value) { m_cacheBehaviorHasBeenSet = true; m_cacheBehavior = std::move(value); } + inline StartRunRequest& WithCacheBehavior(const CacheBehavior& value) { SetCacheBehavior(value); return *this;} + inline StartRunRequest& WithCacheBehavior(CacheBehavior&& value) { SetCacheBehavior(std::move(value)); return *this;} + ///@} + ///@{ /** *

    The run's group ID.

    @@ -216,7 +248,17 @@ namespace Model ///@{ /** - *

    The retention mode for the run.

    + *

    The retention mode for the run. The default value is RETAIN.

    + *

    HealthOmics stores a fixed number of runs that are available to the console + * and API. In the default mode (RETAIN), you need to remove runs manually when the + * number of run exceeds the maximum. If you set the retention mode to + * REMOVE, HealthOmics automatically removes runs (that have mode set + * to REMOVE) when the number of run exceeds the maximum. All run logs are + * available in CloudWatch logs, if you need information about a run that is no + * longer available to the API.

    For more information about retention mode, + * see Specifying + * run retention mode in the AWS HealthOmics User Guide.

    */ inline const RunRetentionMode& GetRetentionMode() const{ return m_retentionMode; } inline bool RetentionModeHasBeenSet() const { return m_retentionModeHasBeenSet; } @@ -271,6 +313,12 @@ namespace Model Aws::String m_name; bool m_nameHasBeenSet = false; + Aws::String m_cacheId; + bool m_cacheIdHasBeenSet = false; + + CacheBehavior m_cacheBehavior; + bool m_cacheBehaviorHasBeenSet = false; + Aws::String m_runGroupId; bool m_runGroupIdHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/StartRunResult.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/StartRunResult.h index aa3b3bd8b0e..a762d869b68 100644 --- a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/StartRunResult.h +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/StartRunResult.h @@ -36,7 +36,7 @@ namespace Model ///@{ /** - *

    The run's ARN.

    + *

    Unique resource identifier for the run.

    */ inline const Aws::String& GetArn() const{ return m_arn; } inline void SetArn(const Aws::String& value) { m_arn = value; } diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/TaskListItem.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/TaskListItem.h index 81c3dc86f5f..eed4e36da34 100644 --- a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/TaskListItem.h +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/TaskListItem.h @@ -89,6 +89,31 @@ namespace Model inline TaskListItem& WithCpus(int value) { SetCpus(value); return *this;} ///@} + ///@{ + /** + *

    Set to true if AWS HealthOmics found a matching entry in the run cache for + * this task.

    + */ + inline bool GetCacheHit() const{ return m_cacheHit; } + inline bool CacheHitHasBeenSet() const { return m_cacheHitHasBeenSet; } + inline void SetCacheHit(bool value) { m_cacheHitHasBeenSet = true; m_cacheHit = value; } + inline TaskListItem& WithCacheHit(bool value) { SetCacheHit(value); return *this;} + ///@} + + ///@{ + /** + *

    The S3 URI of the cache location.

    + */ + inline const Aws::String& GetCacheS3Uri() const{ return m_cacheS3Uri; } + inline bool CacheS3UriHasBeenSet() const { return m_cacheS3UriHasBeenSet; } + inline void SetCacheS3Uri(const Aws::String& value) { m_cacheS3UriHasBeenSet = true; m_cacheS3Uri = value; } + inline void SetCacheS3Uri(Aws::String&& value) { m_cacheS3UriHasBeenSet = true; m_cacheS3Uri = std::move(value); } + inline void SetCacheS3Uri(const char* value) { m_cacheS3UriHasBeenSet = true; m_cacheS3Uri.assign(value); } + inline TaskListItem& WithCacheS3Uri(const Aws::String& value) { SetCacheS3Uri(value); return *this;} + inline TaskListItem& WithCacheS3Uri(Aws::String&& value) { SetCacheS3Uri(std::move(value)); return *this;} + inline TaskListItem& WithCacheS3Uri(const char* value) { SetCacheS3Uri(value); return *this;} + ///@} + ///@{ /** *

    The task's memory use in gigabyes.

    @@ -172,6 +197,12 @@ namespace Model int m_cpus; bool m_cpusHasBeenSet = false; + bool m_cacheHit; + bool m_cacheHitHasBeenSet = false; + + Aws::String m_cacheS3Uri; + bool m_cacheS3UriHasBeenSet = false; + int m_memory; bool m_memoryHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/UpdateRunCacheRequest.h b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/UpdateRunCacheRequest.h new file mode 100644 index 00000000000..ac8eab78f97 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/include/aws/omics/model/UpdateRunCacheRequest.h @@ -0,0 +1,106 @@ +/** + * 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 Omics +{ +namespace Model +{ + + /** + */ + class UpdateRunCacheRequest : public OmicsRequest + { + public: + AWS_OMICS_API UpdateRunCacheRequest(); + + // 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 "UpdateRunCache"; } + + AWS_OMICS_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    Update the default run cache behavior.

    + */ + inline const CacheBehavior& GetCacheBehavior() const{ return m_cacheBehavior; } + inline bool CacheBehaviorHasBeenSet() const { return m_cacheBehaviorHasBeenSet; } + inline void SetCacheBehavior(const CacheBehavior& value) { m_cacheBehaviorHasBeenSet = true; m_cacheBehavior = value; } + inline void SetCacheBehavior(CacheBehavior&& value) { m_cacheBehaviorHasBeenSet = true; m_cacheBehavior = std::move(value); } + inline UpdateRunCacheRequest& WithCacheBehavior(const CacheBehavior& value) { SetCacheBehavior(value); return *this;} + inline UpdateRunCacheRequest& WithCacheBehavior(CacheBehavior&& value) { SetCacheBehavior(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Update the run cache description.

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

    The identifier of the run cache you want to update.

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

    Update the name of the run cache.

    + */ + 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 UpdateRunCacheRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline UpdateRunCacheRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline UpdateRunCacheRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + private: + + CacheBehavior m_cacheBehavior; + bool m_cacheBehaviorHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + }; + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/source/OmicsClient.cpp b/generated/src/aws-cpp-sdk-omics/source/OmicsClient.cpp index fe875a632b3..e300b6ac000 100644 --- a/generated/src/aws-cpp-sdk-omics/source/OmicsClient.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/OmicsClient.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -42,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -60,6 +62,7 @@ #include #include #include +#include #include #include #include @@ -79,6 +82,7 @@ #include #include #include +#include #include #include #include @@ -99,6 +103,7 @@ #include #include #include +#include #include #include #include @@ -639,6 +644,35 @@ CreateReferenceStoreOutcome OmicsClient::CreateReferenceStore(const CreateRefere {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateRunCacheOutcome OmicsClient::CreateRunCache(const CreateRunCacheRequest& request) const +{ + AWS_OPERATION_GUARD(CreateRunCache); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateRunCache, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateRunCache, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateRunCache, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateRunCache", + {{ 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( + [&]()-> CreateRunCacheOutcome { + 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, CreateRunCache, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + auto addPrefixErr = endpointResolutionOutcome.GetResult().AddPrefixIfMissing("workflows-"); + AWS_CHECK(SERVICE_NAME, !addPrefixErr, addPrefixErr->GetMessage(), CreateRunCacheOutcome(addPrefixErr.value())); + endpointResolutionOutcome.GetResult().AddPathSegments("/runCache"); + return CreateRunCacheOutcome(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()}}); +} + CreateRunGroupOutcome OmicsClient::CreateRunGroup(const CreateRunGroupRequest& request) const { AWS_OPERATION_GUARD(CreateRunGroup); @@ -967,6 +1001,41 @@ DeleteRunOutcome OmicsClient::DeleteRun(const DeleteRunRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteRunCacheOutcome OmicsClient::DeleteRunCache(const DeleteRunCacheRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteRunCache); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRunCache, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteRunCache", "Required field: Id, is not set"); + return DeleteRunCacheOutcome(Aws::Client::AWSError(OmicsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRunCache, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteRunCache, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRunCache", + {{ 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( + [&]()-> DeleteRunCacheOutcome { + 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, DeleteRunCache, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + auto addPrefixErr = endpointResolutionOutcome.GetResult().AddPrefixIfMissing("workflows-"); + AWS_CHECK(SERVICE_NAME, !addPrefixErr, addPrefixErr->GetMessage(), DeleteRunCacheOutcome(addPrefixErr.value())); + endpointResolutionOutcome.GetResult().AddPathSegments("/runCache/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return DeleteRunCacheOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteRunGroupOutcome OmicsClient::DeleteRunGroup(const DeleteRunGroupRequest& request) const { AWS_OPERATION_GUARD(DeleteRunGroup); @@ -1672,6 +1741,41 @@ GetRunOutcome OmicsClient::GetRun(const GetRunRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetRunCacheOutcome OmicsClient::GetRunCache(const GetRunCacheRequest& request) const +{ + AWS_OPERATION_GUARD(GetRunCache); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetRunCache, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetRunCache", "Required field: Id, is not set"); + return GetRunCacheOutcome(Aws::Client::AWSError(OmicsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetRunCache, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetRunCache, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetRunCache", + {{ 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( + [&]()-> GetRunCacheOutcome { + 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, GetRunCache, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + auto addPrefixErr = endpointResolutionOutcome.GetResult().AddPrefixIfMissing("workflows-"); + AWS_CHECK(SERVICE_NAME, !addPrefixErr, addPrefixErr->GetMessage(), GetRunCacheOutcome(addPrefixErr.value())); + endpointResolutionOutcome.GetResult().AddPathSegments("/runCache/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return GetRunCacheOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetRunGroupOutcome OmicsClient::GetRunGroup(const GetRunGroupRequest& request) const { AWS_OPERATION_GUARD(GetRunGroup); @@ -2342,6 +2446,35 @@ ListReferencesOutcome OmicsClient::ListReferences(const ListReferencesRequest& r {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListRunCachesOutcome OmicsClient::ListRunCaches(const ListRunCachesRequest& request) const +{ + AWS_OPERATION_GUARD(ListRunCaches); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListRunCaches, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListRunCaches, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListRunCaches, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListRunCaches", + {{ 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( + [&]()-> ListRunCachesOutcome { + 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, ListRunCaches, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + auto addPrefixErr = endpointResolutionOutcome.GetResult().AddPrefixIfMissing("workflows-"); + AWS_CHECK(SERVICE_NAME, !addPrefixErr, addPrefixErr->GetMessage(), ListRunCachesOutcome(addPrefixErr.value())); + endpointResolutionOutcome.GetResult().AddPathSegments("/runCache"); + return ListRunCachesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListRunGroupsOutcome OmicsClient::ListRunGroups(const ListRunGroupsRequest& request) const { AWS_OPERATION_GUARD(ListRunGroups); @@ -2999,6 +3132,41 @@ UpdateAnnotationStoreVersionOutcome OmicsClient::UpdateAnnotationStoreVersion(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateRunCacheOutcome OmicsClient::UpdateRunCache(const UpdateRunCacheRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateRunCache); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateRunCache, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateRunCache", "Required field: Id, is not set"); + return UpdateRunCacheOutcome(Aws::Client::AWSError(OmicsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateRunCache, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateRunCache, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateRunCache", + {{ 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( + [&]()-> UpdateRunCacheOutcome { + 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, UpdateRunCache, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + auto addPrefixErr = endpointResolutionOutcome.GetResult().AddPrefixIfMissing("workflows-"); + AWS_CHECK(SERVICE_NAME, !addPrefixErr, addPrefixErr->GetMessage(), UpdateRunCacheOutcome(addPrefixErr.value())); + endpointResolutionOutcome.GetResult().AddPathSegments("/runCache/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return UpdateRunCacheOutcome(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()}}); +} + UpdateRunGroupOutcome OmicsClient::UpdateRunGroup(const UpdateRunGroupRequest& request) const { AWS_OPERATION_GUARD(UpdateRunGroup); diff --git a/generated/src/aws-cpp-sdk-omics/source/model/CacheBehavior.cpp b/generated/src/aws-cpp-sdk-omics/source/model/CacheBehavior.cpp new file mode 100644 index 00000000000..441e9ad76e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/CacheBehavior.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 Omics + { + namespace Model + { + namespace CacheBehaviorMapper + { + + static const int CACHE_ON_FAILURE_HASH = HashingUtils::HashString("CACHE_ON_FAILURE"); + static const int CACHE_ALWAYS_HASH = HashingUtils::HashString("CACHE_ALWAYS"); + + + CacheBehavior GetCacheBehaviorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CACHE_ON_FAILURE_HASH) + { + return CacheBehavior::CACHE_ON_FAILURE; + } + else if (hashCode == CACHE_ALWAYS_HASH) + { + return CacheBehavior::CACHE_ALWAYS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CacheBehavior::NOT_SET; + } + + Aws::String GetNameForCacheBehavior(CacheBehavior enumValue) + { + switch(enumValue) + { + case CacheBehavior::NOT_SET: + return {}; + case CacheBehavior::CACHE_ON_FAILURE: + return "CACHE_ON_FAILURE"; + case CacheBehavior::CACHE_ALWAYS: + return "CACHE_ALWAYS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CacheBehaviorMapper + } // namespace Model + } // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/source/model/CreateRunCacheRequest.cpp b/generated/src/aws-cpp-sdk-omics/source/model/CreateRunCacheRequest.cpp new file mode 100644 index 00000000000..087c8205f8d --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/CreateRunCacheRequest.cpp @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Omics::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateRunCacheRequest::CreateRunCacheRequest() : + m_cacheBehavior(CacheBehavior::NOT_SET), + m_cacheBehaviorHasBeenSet(false), + m_cacheS3LocationHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_nameHasBeenSet(false), + m_requestId(Aws::Utils::UUID::PseudoRandomUUID()), + m_requestIdHasBeenSet(true), + m_tagsHasBeenSet(false), + m_cacheBucketOwnerIdHasBeenSet(false) +{ +} + +Aws::String CreateRunCacheRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_cacheBehaviorHasBeenSet) + { + payload.WithString("cacheBehavior", CacheBehaviorMapper::GetNameForCacheBehavior(m_cacheBehavior)); + } + + if(m_cacheS3LocationHasBeenSet) + { + payload.WithString("cacheS3Location", m_cacheS3Location); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_requestIdHasBeenSet) + { + payload.WithString("requestId", m_requestId); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + if(m_cacheBucketOwnerIdHasBeenSet) + { + payload.WithString("cacheBucketOwnerId", m_cacheBucketOwnerId); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-omics/source/model/CreateRunCacheResult.cpp b/generated/src/aws-cpp-sdk-omics/source/model/CreateRunCacheResult.cpp new file mode 100644 index 00000000000..0943de8a263 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/CreateRunCacheResult.cpp @@ -0,0 +1,71 @@ +/** + * 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::Omics::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateRunCacheResult::CreateRunCacheResult() : + m_status(RunCacheStatus::NOT_SET) +{ +} + +CreateRunCacheResult::CreateRunCacheResult(const Aws::AmazonWebServiceResult& result) + : CreateRunCacheResult() +{ + *this = result; +} + +CreateRunCacheResult& CreateRunCacheResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + } + + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + } + + if(jsonValue.ValueExists("status")) + { + m_status = RunCacheStatusMapper::GetRunCacheStatusForName(jsonValue.GetString("status")); + + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-omics/source/model/DeleteRunCacheRequest.cpp b/generated/src/aws-cpp-sdk-omics/source/model/DeleteRunCacheRequest.cpp new file mode 100644 index 00000000000..376f274a2a5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/DeleteRunCacheRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Omics::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteRunCacheRequest::DeleteRunCacheRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DeleteRunCacheRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-omics/source/model/GetRunCacheRequest.cpp b/generated/src/aws-cpp-sdk-omics/source/model/GetRunCacheRequest.cpp new file mode 100644 index 00000000000..5d47278b0d9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/GetRunCacheRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Omics::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetRunCacheRequest::GetRunCacheRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetRunCacheRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-omics/source/model/GetRunCacheResult.cpp b/generated/src/aws-cpp-sdk-omics/source/model/GetRunCacheResult.cpp new file mode 100644 index 00000000000..6777f914120 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/GetRunCacheResult.cpp @@ -0,0 +1,108 @@ +/** + * 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::Omics::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetRunCacheResult::GetRunCacheResult() : + m_cacheBehavior(CacheBehavior::NOT_SET), + m_status(RunCacheStatus::NOT_SET) +{ +} + +GetRunCacheResult::GetRunCacheResult(const Aws::AmazonWebServiceResult& result) + : GetRunCacheResult() +{ + *this = result; +} + +GetRunCacheResult& GetRunCacheResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + } + + if(jsonValue.ValueExists("cacheBehavior")) + { + m_cacheBehavior = CacheBehaviorMapper::GetCacheBehaviorForName(jsonValue.GetString("cacheBehavior")); + + } + + if(jsonValue.ValueExists("cacheBucketOwnerId")) + { + m_cacheBucketOwnerId = jsonValue.GetString("cacheBucketOwnerId"); + + } + + if(jsonValue.ValueExists("cacheS3Uri")) + { + m_cacheS3Uri = jsonValue.GetString("cacheS3Uri"); + + } + + if(jsonValue.ValueExists("creationTime")) + { + m_creationTime = jsonValue.GetString("creationTime"); + + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + } + + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + } + + if(jsonValue.ValueExists("status")) + { + m_status = RunCacheStatusMapper::GetRunCacheStatusForName(jsonValue.GetString("status")); + + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-omics/source/model/GetRunResult.cpp b/generated/src/aws-cpp-sdk-omics/source/model/GetRunResult.cpp index edb8252b7f6..da21fc69acb 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/GetRunResult.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/GetRunResult.cpp @@ -18,6 +18,7 @@ using namespace Aws::Utils; using namespace Aws; GetRunResult::GetRunResult() : + m_cacheBehavior(CacheBehavior::NOT_SET), m_status(RunStatus::NOT_SET), m_workflowType(WorkflowType::NOT_SET), m_priority(0), @@ -50,6 +51,24 @@ GetRunResult& GetRunResult::operator =(const Aws::AmazonWebServiceResult +#include +#include +#include + +#include + +using namespace Aws::Omics::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListRunCachesRequest::ListRunCachesRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_startingTokenHasBeenSet(false) +{ +} + +Aws::String ListRunCachesRequest::SerializePayload() const +{ + return {}; +} + +void ListRunCachesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_startingTokenHasBeenSet) + { + ss << m_startingToken; + uri.AddQueryStringParameter("startingToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ListRunCachesResult.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ListRunCachesResult.cpp new file mode 100644 index 00000000000..85df158aa67 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/ListRunCachesResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Omics::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListRunCachesResult::ListRunCachesResult() +{ +} + +ListRunCachesResult::ListRunCachesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListRunCachesResult& ListRunCachesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("items")) + { + Aws::Utils::Array itemsJsonList = jsonValue.GetArray("items"); + for(unsigned itemsIndex = 0; itemsIndex < itemsJsonList.GetLength(); ++itemsIndex) + { + m_items.push_back(itemsJsonList[itemsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-omics/source/model/RunCacheListItem.cpp b/generated/src/aws-cpp-sdk-omics/source/model/RunCacheListItem.cpp new file mode 100644 index 00000000000..b9e91a555e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/RunCacheListItem.cpp @@ -0,0 +1,142 @@ +/** + * 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 Omics +{ +namespace Model +{ + +RunCacheListItem::RunCacheListItem() : + m_arnHasBeenSet(false), + m_cacheBehavior(CacheBehavior::NOT_SET), + m_cacheBehaviorHasBeenSet(false), + m_cacheS3UriHasBeenSet(false), + m_creationTimeHasBeenSet(false), + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_status(RunCacheStatus::NOT_SET), + m_statusHasBeenSet(false) +{ +} + +RunCacheListItem::RunCacheListItem(JsonView jsonValue) + : RunCacheListItem() +{ + *this = jsonValue; +} + +RunCacheListItem& RunCacheListItem::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("cacheBehavior")) + { + m_cacheBehavior = CacheBehaviorMapper::GetCacheBehaviorForName(jsonValue.GetString("cacheBehavior")); + + m_cacheBehaviorHasBeenSet = true; + } + + if(jsonValue.ValueExists("cacheS3Uri")) + { + m_cacheS3Uri = jsonValue.GetString("cacheS3Uri"); + + m_cacheS3UriHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationTime")) + { + m_creationTime = jsonValue.GetString("creationTime"); + + m_creationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = RunCacheStatusMapper::GetRunCacheStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + return *this; +} + +JsonValue RunCacheListItem::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + if(m_cacheBehaviorHasBeenSet) + { + payload.WithString("cacheBehavior", CacheBehaviorMapper::GetNameForCacheBehavior(m_cacheBehavior)); + } + + if(m_cacheS3UriHasBeenSet) + { + payload.WithString("cacheS3Uri", m_cacheS3Uri); + + } + + if(m_creationTimeHasBeenSet) + { + payload.WithString("creationTime", m_creationTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", RunCacheStatusMapper::GetNameForRunCacheStatus(m_status)); + } + + return payload; +} + +} // namespace Model +} // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/source/model/RunCacheStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/RunCacheStatus.cpp new file mode 100644 index 00000000000..8bb35d6afd7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/RunCacheStatus.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 Omics + { + namespace Model + { + namespace RunCacheStatusMapper + { + + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + + + RunCacheStatus GetRunCacheStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ACTIVE_HASH) + { + return RunCacheStatus::ACTIVE; + } + else if (hashCode == DELETED_HASH) + { + return RunCacheStatus::DELETED; + } + else if (hashCode == FAILED_HASH) + { + return RunCacheStatus::FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RunCacheStatus::NOT_SET; + } + + Aws::String GetNameForRunCacheStatus(RunCacheStatus enumValue) + { + switch(enumValue) + { + case RunCacheStatus::NOT_SET: + return {}; + case RunCacheStatus::ACTIVE: + return "ACTIVE"; + case RunCacheStatus::DELETED: + return "DELETED"; + case RunCacheStatus::FAILED: + return "FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RunCacheStatusMapper + } // namespace Model + } // namespace Omics +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-omics/source/model/StartRunRequest.cpp b/generated/src/aws-cpp-sdk-omics/source/model/StartRunRequest.cpp index 9a0f811650f..4d81f52164d 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/StartRunRequest.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/StartRunRequest.cpp @@ -19,6 +19,9 @@ StartRunRequest::StartRunRequest() : m_runIdHasBeenSet(false), m_roleArnHasBeenSet(false), m_nameHasBeenSet(false), + m_cacheIdHasBeenSet(false), + m_cacheBehavior(CacheBehavior::NOT_SET), + m_cacheBehaviorHasBeenSet(false), m_runGroupIdHasBeenSet(false), m_priority(0), m_priorityHasBeenSet(false), @@ -72,6 +75,17 @@ Aws::String StartRunRequest::SerializePayload() const } + if(m_cacheIdHasBeenSet) + { + payload.WithString("cacheId", m_cacheId); + + } + + if(m_cacheBehaviorHasBeenSet) + { + payload.WithString("cacheBehavior", CacheBehaviorMapper::GetNameForCacheBehavior(m_cacheBehavior)); + } + if(m_runGroupIdHasBeenSet) { payload.WithString("runGroupId", m_runGroupId); diff --git a/generated/src/aws-cpp-sdk-omics/source/model/TaskListItem.cpp b/generated/src/aws-cpp-sdk-omics/source/model/TaskListItem.cpp index 908a98fb43c..6765c873c0c 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/TaskListItem.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/TaskListItem.cpp @@ -25,6 +25,9 @@ TaskListItem::TaskListItem() : m_nameHasBeenSet(false), m_cpus(0), m_cpusHasBeenSet(false), + m_cacheHit(false), + m_cacheHitHasBeenSet(false), + m_cacheS3UriHasBeenSet(false), m_memory(0), m_memoryHasBeenSet(false), m_creationTimeHasBeenSet(false), @@ -72,6 +75,20 @@ TaskListItem& TaskListItem::operator =(JsonView jsonValue) m_cpusHasBeenSet = true; } + if(jsonValue.ValueExists("cacheHit")) + { + m_cacheHit = jsonValue.GetBool("cacheHit"); + + m_cacheHitHasBeenSet = true; + } + + if(jsonValue.ValueExists("cacheS3Uri")) + { + m_cacheS3Uri = jsonValue.GetString("cacheS3Uri"); + + m_cacheS3UriHasBeenSet = true; + } + if(jsonValue.ValueExists("memory")) { m_memory = jsonValue.GetInteger("memory"); @@ -144,6 +161,18 @@ JsonValue TaskListItem::Jsonize() const } + if(m_cacheHitHasBeenSet) + { + payload.WithBool("cacheHit", m_cacheHit); + + } + + if(m_cacheS3UriHasBeenSet) + { + payload.WithString("cacheS3Uri", m_cacheS3Uri); + + } + if(m_memoryHasBeenSet) { payload.WithInteger("memory", m_memory); diff --git a/generated/src/aws-cpp-sdk-omics/source/model/UpdateRunCacheRequest.cpp b/generated/src/aws-cpp-sdk-omics/source/model/UpdateRunCacheRequest.cpp new file mode 100644 index 00000000000..5a17bc92053 --- /dev/null +++ b/generated/src/aws-cpp-sdk-omics/source/model/UpdateRunCacheRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Omics::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateRunCacheRequest::UpdateRunCacheRequest() : + m_cacheBehavior(CacheBehavior::NOT_SET), + m_cacheBehaviorHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_idHasBeenSet(false), + m_nameHasBeenSet(false) +{ +} + +Aws::String UpdateRunCacheRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_cacheBehaviorHasBeenSet) + { + payload.WithString("cacheBehavior", CacheBehaviorMapper::GetNameForCacheBehavior(m_cacheBehavior)); + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/RecycleBinClient.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/RecycleBinClient.h index df1da32b246..d351279a3bb 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/RecycleBinClient.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/RecycleBinClient.h @@ -90,10 +90,22 @@ namespace RecycleBin virtual ~RecycleBinClient(); /** - *

    Creates a Recycle Bin retention rule. For more information, see - * Create Recycle Bin retention rules in the Amazon Elastic Compute Cloud - * User Guide.

    See Also:

    Creates a Recycle Bin retention rule. You can create two types of retention + * rules:

    • Tag-level retention rules - These retention + * rules use resource tags to identify the resources to protect. For each retention + * rule, you specify one or more tag key and value pairs. Resources (of the + * specified type) that have at least one of these tag key and value pairs are + * automatically retained in the Recycle Bin upon deletion. Use this type of + * retention rule to protect specific resources in your account based on their + * tags.

    • Region-level retention rules - These retention + * rules, by default, apply to all of the resources (of the specified type) in the + * Region, even if the resources are not tagged. However, you can specify exclusion + * tags to exclude resources that have specific tags. Use this type of retention + * rule to protect all resources of a specific type in a Region.

    + *

    For more information, see Create + * Recycle Bin retention rules in the Amazon EBS User + * Guide.

    See Also:

    AWS API * Reference

    */ @@ -221,8 +233,10 @@ namespace RecycleBin } /** - *

    Locks a retention rule. A locked retention rule can't be modified or - * deleted.

    See Also:

    Locks a Region-level retention rule. A locked retention rule can't be + * modified or deleted.

    You can't lock tag-level retention rules, or + * Region-level retention rules that have exclusion tags.

    See + * Also:

    AWS API * Reference

    */ diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/CreateRuleRequest.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/CreateRuleRequest.h index 985601c6441..66fcb69abde 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/CreateRuleRequest.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/CreateRuleRequest.h @@ -96,17 +96,18 @@ namespace Model ///@{ /** - *

    Specifies the resource tags to use to identify resources that are to be - * retained by a tag-level retention rule. For tag-level retention rules, only - * deleted resources, of the specified resource type, that have one or more of the - * specified tag key and value pairs are retained. If a resource is deleted, but it - * does not have any of the specified tag key and value pairs, it is immediately - * deleted without being retained by the retention rule.

    You can add the - * same tag key and value pair to a maximum or five retention rules.

    To - * create a Region-level retention rule, omit this parameter. A Region-level - * retention rule does not have any resource tags specified. It retains all deleted - * resources of the specified resource type in the Region in which the rule is - * created, even if the resources are not tagged.

    + *

    [Tag-level retention rules only] Specifies the resource tags to use to + * identify resources that are to be retained by a tag-level retention rule. For + * tag-level retention rules, only deleted resources, of the specified resource + * type, that have one or more of the specified tag key and value pairs are + * retained. If a resource is deleted, but it does not have any of the specified + * tag key and value pairs, it is immediately deleted without being retained by the + * retention rule.

    You can add the same tag key and value pair to a maximum + * or five retention rules.

    To create a Region-level retention rule, omit + * this parameter. A Region-level retention rule does not have any resource tags + * specified. It retains all deleted resources of the specified resource type in + * the Region in which the rule is created, even if the resources are not + * tagged.

    */ inline const Aws::Vector& GetResourceTags() const{ return m_resourceTags; } inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; } @@ -129,6 +130,24 @@ namespace Model inline CreateRuleRequest& WithLockConfiguration(const LockConfiguration& value) { SetLockConfiguration(value); return *this;} inline CreateRuleRequest& WithLockConfiguration(LockConfiguration&& value) { SetLockConfiguration(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

    [Region-level retention rules only] Specifies the exclusion tags to use to + * identify resources that are to be excluded, or ignored, by a Region-level + * retention rule. Resources that have any of these tags are not retained by the + * retention rule upon deletion.

    You can't specify exclusion tags for + * tag-level retention rules.

    + */ + inline const Aws::Vector& GetExcludeResourceTags() const{ return m_excludeResourceTags; } + inline bool ExcludeResourceTagsHasBeenSet() const { return m_excludeResourceTagsHasBeenSet; } + inline void SetExcludeResourceTags(const Aws::Vector& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = value; } + inline void SetExcludeResourceTags(Aws::Vector&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::move(value); } + inline CreateRuleRequest& WithExcludeResourceTags(const Aws::Vector& value) { SetExcludeResourceTags(value); return *this;} + inline CreateRuleRequest& WithExcludeResourceTags(Aws::Vector&& value) { SetExcludeResourceTags(std::move(value)); return *this;} + inline CreateRuleRequest& AddExcludeResourceTags(const ResourceTag& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.push_back(value); return *this; } + inline CreateRuleRequest& AddExcludeResourceTags(ResourceTag&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.push_back(std::move(value)); return *this; } + ///@} private: RetentionPeriod m_retentionPeriod; @@ -148,6 +167,9 @@ namespace Model LockConfiguration m_lockConfiguration; bool m_lockConfigurationHasBeenSet = false; + + Aws::Vector m_excludeResourceTags; + bool m_excludeResourceTagsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/CreateRuleResult.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/CreateRuleResult.h index f9dc3a7273c..e8d55100415 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/CreateRuleResult.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/CreateRuleResult.h @@ -101,8 +101,8 @@ namespace Model ///@{ /** - *

    Information about the resource tags used to identify resources that are - * retained by the retention rule.

    + *

    [Tag-level retention rules only] Information about the resource tags used to + * identify resources that are retained by the retention rule.

    */ inline const Aws::Vector& GetResourceTags() const{ return m_resourceTags; } inline void SetResourceTags(const Aws::Vector& value) { m_resourceTags = value; } @@ -138,17 +138,17 @@ namespace Model ///@{ /** - *

    The lock state for the retention rule.

    • locked - * - The retention rule is locked and can't be modified or deleted.

    • - *

      pending_unlock - The retention rule has been unlocked but it is - * still within the unlock delay period. The retention rule can be modified or - * deleted only after the unlock delay period has expired.

    • - * unlocked - The retention rule is unlocked and it can be modified or - * deleted by any user with the required permissions.

    • - * null - The retention rule has never been locked. Once a retention - * rule has been locked, it can transition between the locked and - * unlocked states only; it can never transition back to - * null.

    + *

    [Region-level retention rules only] The lock state for the retention + * rule.

    • locked - The retention rule is locked and + * can't be modified or deleted.

    • pending_unlock - + * The retention rule has been unlocked but it is still within the unlock delay + * period. The retention rule can be modified or deleted only after the unlock + * delay period has expired.

    • unlocked - The + * retention rule is unlocked and it can be modified or deleted by any user with + * the required permissions.

    • null - The retention + * rule has never been locked. Once a retention rule has been locked, it can + * transition between the locked and unlocked states + * only; it can never transition back to null.

    */ inline const LockState& GetLockState() const{ return m_lockState; } inline void SetLockState(const LockState& value) { m_lockState = value; } @@ -170,6 +170,21 @@ namespace Model inline CreateRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;} ///@} + ///@{ + /** + *

    [Region-level retention rules only] Information about the exclusion tags used + * to identify resources that are to be excluded, or ignored, by the retention + * rule.

    + */ + inline const Aws::Vector& GetExcludeResourceTags() const{ return m_excludeResourceTags; } + inline void SetExcludeResourceTags(const Aws::Vector& value) { m_excludeResourceTags = value; } + inline void SetExcludeResourceTags(Aws::Vector&& value) { m_excludeResourceTags = std::move(value); } + inline CreateRuleResult& WithExcludeResourceTags(const Aws::Vector& value) { SetExcludeResourceTags(value); return *this;} + inline CreateRuleResult& WithExcludeResourceTags(Aws::Vector&& value) { SetExcludeResourceTags(std::move(value)); return *this;} + inline CreateRuleResult& AddExcludeResourceTags(const ResourceTag& value) { m_excludeResourceTags.push_back(value); return *this; } + inline CreateRuleResult& AddExcludeResourceTags(ResourceTag&& value) { m_excludeResourceTags.push_back(std::move(value)); return *this; } + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -202,6 +217,8 @@ namespace Model Aws::String m_ruleArn; + Aws::Vector m_excludeResourceTags; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/GetRuleResult.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/GetRuleResult.h index 95d9e452090..ecc23c46c5b 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/GetRuleResult.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/GetRuleResult.h @@ -91,8 +91,8 @@ namespace Model ///@{ /** - *

    Information about the resource tags used to identify resources that are - * retained by the retention rule.

    + *

    [Tag-level retention rules only] Information about the resource tags used to + * identify resources that are retained by the retention rule.

    */ inline const Aws::Vector& GetResourceTags() const{ return m_resourceTags; } inline void SetResourceTags(const Aws::Vector& value) { m_resourceTags = value; } @@ -128,17 +128,17 @@ namespace Model ///@{ /** - *

    The lock state for the retention rule.

    • locked - * - The retention rule is locked and can't be modified or deleted.

    • - *

      pending_unlock - The retention rule has been unlocked but it is - * still within the unlock delay period. The retention rule can be modified or - * deleted only after the unlock delay period has expired.

    • - * unlocked - The retention rule is unlocked and it can be modified or - * deleted by any user with the required permissions.

    • - * null - The retention rule has never been locked. Once a retention - * rule has been locked, it can transition between the locked and - * unlocked states only; it can never transition back to - * null.

    + *

    [Region-level retention rules only] The lock state for the retention + * rule.

    • locked - The retention rule is locked and + * can't be modified or deleted.

    • pending_unlock - + * The retention rule has been unlocked but it is still within the unlock delay + * period. The retention rule can be modified or deleted only after the unlock + * delay period has expired.

    • unlocked - The + * retention rule is unlocked and it can be modified or deleted by any user with + * the required permissions.

    • null - The retention + * rule has never been locked. Once a retention rule has been locked, it can + * transition between the locked and unlocked states + * only; it can never transition back to null.

    */ inline const LockState& GetLockState() const{ return m_lockState; } inline void SetLockState(const LockState& value) { m_lockState = value; } @@ -173,6 +173,21 @@ namespace Model inline GetRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;} ///@} + ///@{ + /** + *

    [Region-level retention rules only] Information about the exclusion tags used + * to identify resources that are to be excluded, or ignored, by the retention + * rule.

    + */ + inline const Aws::Vector& GetExcludeResourceTags() const{ return m_excludeResourceTags; } + inline void SetExcludeResourceTags(const Aws::Vector& value) { m_excludeResourceTags = value; } + inline void SetExcludeResourceTags(Aws::Vector&& value) { m_excludeResourceTags = std::move(value); } + inline GetRuleResult& WithExcludeResourceTags(const Aws::Vector& value) { SetExcludeResourceTags(value); return *this;} + inline GetRuleResult& WithExcludeResourceTags(Aws::Vector&& value) { SetExcludeResourceTags(std::move(value)); return *this;} + inline GetRuleResult& AddExcludeResourceTags(const ResourceTag& value) { m_excludeResourceTags.push_back(value); return *this; } + inline GetRuleResult& AddExcludeResourceTags(ResourceTag&& value) { m_excludeResourceTags.push_back(std::move(value)); return *this; } + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -205,6 +220,8 @@ namespace Model Aws::String m_ruleArn; + Aws::Vector m_excludeResourceTags; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/ListRulesRequest.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/ListRulesRequest.h index 2ea38611063..aa055c8c681 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/ListRulesRequest.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/ListRulesRequest.h @@ -80,8 +80,8 @@ namespace Model ///@{ /** - *

    Information about the resource tags used to identify resources that are - * retained by the retention rule.

    + *

    [Tag-level retention rules only] Information about the resource tags used to + * identify resources that are retained by the retention rule.

    */ inline const Aws::Vector& GetResourceTags() const{ return m_resourceTags; } inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; } @@ -105,6 +105,22 @@ namespace Model inline ListRulesRequest& WithLockState(const LockState& value) { SetLockState(value); return *this;} inline ListRulesRequest& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

    [Region-level retention rules only] Information about the exclusion tags used + * to identify resources that are to be excluded, or ignored, by the retention + * rule.

    + */ + inline const Aws::Vector& GetExcludeResourceTags() const{ return m_excludeResourceTags; } + inline bool ExcludeResourceTagsHasBeenSet() const { return m_excludeResourceTagsHasBeenSet; } + inline void SetExcludeResourceTags(const Aws::Vector& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = value; } + inline void SetExcludeResourceTags(Aws::Vector&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::move(value); } + inline ListRulesRequest& WithExcludeResourceTags(const Aws::Vector& value) { SetExcludeResourceTags(value); return *this;} + inline ListRulesRequest& WithExcludeResourceTags(Aws::Vector&& value) { SetExcludeResourceTags(std::move(value)); return *this;} + inline ListRulesRequest& AddExcludeResourceTags(const ResourceTag& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.push_back(value); return *this; } + inline ListRulesRequest& AddExcludeResourceTags(ResourceTag&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.push_back(std::move(value)); return *this; } + ///@} private: int m_maxResults; @@ -121,6 +137,9 @@ namespace Model LockState m_lockState; bool m_lockStateHasBeenSet = false; + + Aws::Vector m_excludeResourceTags; + bool m_excludeResourceTagsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/LockRuleResult.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/LockRuleResult.h index 35fc97351ec..d3aa3faa80d 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/LockRuleResult.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/LockRuleResult.h @@ -87,8 +87,8 @@ namespace Model ///@{ /** - *

    Information about the resource tags used to identify resources that are - * retained by the retention rule.

    + *

    [Tag-level retention rules only] Information about the resource tags used to + * identify resources that are retained by the retention rule.

    */ inline const Aws::Vector& GetResourceTags() const{ return m_resourceTags; } inline void SetResourceTags(const Aws::Vector& value) { m_resourceTags = value; } @@ -124,17 +124,17 @@ namespace Model ///@{ /** - *

    The lock state for the retention rule.

    • locked - * - The retention rule is locked and can't be modified or deleted.

    • - *

      pending_unlock - The retention rule has been unlocked but it is - * still within the unlock delay period. The retention rule can be modified or - * deleted only after the unlock delay period has expired.

    • - * unlocked - The retention rule is unlocked and it can be modified or - * deleted by any user with the required permissions.

    • - * null - The retention rule has never been locked. Once a retention - * rule has been locked, it can transition between the locked and - * unlocked states only; it can never transition back to - * null.

    + *

    [Region-level retention rules only] The lock state for the retention + * rule.

    • locked - The retention rule is locked and + * can't be modified or deleted.

    • pending_unlock - + * The retention rule has been unlocked but it is still within the unlock delay + * period. The retention rule can be modified or deleted only after the unlock + * delay period has expired.

    • unlocked - The + * retention rule is unlocked and it can be modified or deleted by any user with + * the required permissions.

    • null - The retention + * rule has never been locked. Once a retention rule has been locked, it can + * transition between the locked and unlocked states + * only; it can never transition back to null.

    */ inline const LockState& GetLockState() const{ return m_lockState; } inline void SetLockState(const LockState& value) { m_lockState = value; } @@ -156,6 +156,21 @@ namespace Model inline LockRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;} ///@} + ///@{ + /** + *

    [Region-level retention rules only] Information about the exclusion tags used + * to identify resources that are to be excluded, or ignored, by the retention + * rule.

    + */ + inline const Aws::Vector& GetExcludeResourceTags() const{ return m_excludeResourceTags; } + inline void SetExcludeResourceTags(const Aws::Vector& value) { m_excludeResourceTags = value; } + inline void SetExcludeResourceTags(Aws::Vector&& value) { m_excludeResourceTags = std::move(value); } + inline LockRuleResult& WithExcludeResourceTags(const Aws::Vector& value) { SetExcludeResourceTags(value); return *this;} + inline LockRuleResult& WithExcludeResourceTags(Aws::Vector&& value) { SetExcludeResourceTags(std::move(value)); return *this;} + inline LockRuleResult& AddExcludeResourceTags(const ResourceTag& value) { m_excludeResourceTags.push_back(value); return *this; } + inline LockRuleResult& AddExcludeResourceTags(ResourceTag&& value) { m_excludeResourceTags.push_back(std::move(value)); return *this; } + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -186,6 +201,8 @@ namespace Model Aws::String m_ruleArn; + Aws::Vector m_excludeResourceTags; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/ResourceTag.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/ResourceTag.h index 5eea49aeb75..7bb94572409 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/ResourceTag.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/ResourceTag.h @@ -24,8 +24,9 @@ namespace Model { /** - *

    Information about the resource tags used to identify resources that are - * retained by the retention rule.

    See Also:

    [Tag-level retention rules only] Information about the resource tags used to + * identify resources that are retained by the retention rule.

    See + * Also:

    AWS * API Reference

    */ diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/RuleSummary.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/RuleSummary.h index c82bbef855b..dcd0db23fb1 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/RuleSummary.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/RuleSummary.h @@ -82,17 +82,17 @@ namespace Model ///@{ /** - *

    The lock state for the retention rule.

    • locked - * - The retention rule is locked and can't be modified or deleted.

    • - *

      pending_unlock - The retention rule has been unlocked but it is - * still within the unlock delay period. The retention rule can be modified or - * deleted only after the unlock delay period has expired.

    • - * unlocked - The retention rule is unlocked and it can be modified or - * deleted by any user with the required permissions.

    • - * null - The retention rule has never been locked. Once a retention - * rule has been locked, it can transition between the locked and - * unlocked states only; it can never transition back to - * null.

    + *

    [Region-level retention rules only] The lock state for the retention + * rule.

    • locked - The retention rule is locked and + * can't be modified or deleted.

    • pending_unlock - + * The retention rule has been unlocked but it is still within the unlock delay + * period. The retention rule can be modified or deleted only after the unlock + * delay period has expired.

    • unlocked - The + * retention rule is unlocked and it can be modified or deleted by any user with + * the required permissions.

    • null - The retention + * rule has never been locked. Once a retention rule has been locked, it can + * transition between the locked and unlocked states + * only; it can never transition back to null.

    */ inline const LockState& GetLockState() const{ return m_lockState; } inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UnlockRuleResult.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UnlockRuleResult.h index f5748acbd06..3fbf96dc0b3 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UnlockRuleResult.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UnlockRuleResult.h @@ -88,8 +88,8 @@ namespace Model ///@{ /** - *

    Information about the resource tags used to identify resources that are - * retained by the retention rule.

    + *

    [Tag-level retention rules only] Information about the resource tags used to + * identify resources that are retained by the retention rule.

    */ inline const Aws::Vector& GetResourceTags() const{ return m_resourceTags; } inline void SetResourceTags(const Aws::Vector& value) { m_resourceTags = value; } @@ -125,17 +125,17 @@ namespace Model ///@{ /** - *

    The lock state for the retention rule.

    • locked - * - The retention rule is locked and can't be modified or deleted.

    • - *

      pending_unlock - The retention rule has been unlocked but it is - * still within the unlock delay period. The retention rule can be modified or - * deleted only after the unlock delay period has expired.

    • - * unlocked - The retention rule is unlocked and it can be modified or - * deleted by any user with the required permissions.

    • - * null - The retention rule has never been locked. Once a retention - * rule has been locked, it can transition between the locked and - * unlocked states only; it can never transition back to - * null.

    + *

    [Region-level retention rules only] The lock state for the retention + * rule.

    • locked - The retention rule is locked and + * can't be modified or deleted.

    • pending_unlock - + * The retention rule has been unlocked but it is still within the unlock delay + * period. The retention rule can be modified or deleted only after the unlock + * delay period has expired.

    • unlocked - The + * retention rule is unlocked and it can be modified or deleted by any user with + * the required permissions.

    • null - The retention + * rule has never been locked. Once a retention rule has been locked, it can + * transition between the locked and unlocked states + * only; it can never transition back to null.

    */ inline const LockState& GetLockState() const{ return m_lockState; } inline void SetLockState(const LockState& value) { m_lockState = value; } @@ -170,6 +170,21 @@ namespace Model inline UnlockRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;} ///@} + ///@{ + /** + *

    [Region-level retention rules only] Information about the exclusion tags used + * to identify resources that are to be excluded, or ignored, by the retention + * rule.

    + */ + inline const Aws::Vector& GetExcludeResourceTags() const{ return m_excludeResourceTags; } + inline void SetExcludeResourceTags(const Aws::Vector& value) { m_excludeResourceTags = value; } + inline void SetExcludeResourceTags(Aws::Vector&& value) { m_excludeResourceTags = std::move(value); } + inline UnlockRuleResult& WithExcludeResourceTags(const Aws::Vector& value) { SetExcludeResourceTags(value); return *this;} + inline UnlockRuleResult& WithExcludeResourceTags(Aws::Vector&& value) { SetExcludeResourceTags(std::move(value)); return *this;} + inline UnlockRuleResult& AddExcludeResourceTags(const ResourceTag& value) { m_excludeResourceTags.push_back(value); return *this; } + inline UnlockRuleResult& AddExcludeResourceTags(ResourceTag&& value) { m_excludeResourceTags.push_back(std::move(value)); return *this; } + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -202,6 +217,8 @@ namespace Model Aws::String m_ruleArn; + Aws::Vector m_excludeResourceTags; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UpdateRuleRequest.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UpdateRuleRequest.h index 10233fa15d8..4eb0204b34b 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UpdateRuleRequest.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UpdateRuleRequest.h @@ -92,17 +92,18 @@ namespace Model ///@{ /** - *

    Specifies the resource tags to use to identify resources that are to be - * retained by a tag-level retention rule. For tag-level retention rules, only - * deleted resources, of the specified resource type, that have one or more of the - * specified tag key and value pairs are retained. If a resource is deleted, but it - * does not have any of the specified tag key and value pairs, it is immediately - * deleted without being retained by the retention rule.

    You can add the - * same tag key and value pair to a maximum or five retention rules.

    To - * create a Region-level retention rule, omit this parameter. A Region-level - * retention rule does not have any resource tags specified. It retains all deleted - * resources of the specified resource type in the Region in which the rule is - * created, even if the resources are not tagged.

    + *

    [Tag-level retention rules only] Specifies the resource tags to use to + * identify resources that are to be retained by a tag-level retention rule. For + * tag-level retention rules, only deleted resources, of the specified resource + * type, that have one or more of the specified tag key and value pairs are + * retained. If a resource is deleted, but it does not have any of the specified + * tag key and value pairs, it is immediately deleted without being retained by the + * retention rule.

    You can add the same tag key and value pair to a maximum + * or five retention rules.

    To create a Region-level retention rule, omit + * this parameter. A Region-level retention rule does not have any resource tags + * specified. It retains all deleted resources of the specified resource type in + * the Region in which the rule is created, even if the resources are not + * tagged.

    */ inline const Aws::Vector& GetResourceTags() const{ return m_resourceTags; } inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; } @@ -113,6 +114,24 @@ namespace Model inline UpdateRuleRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; } inline UpdateRuleRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

    [Region-level retention rules only] Specifies the exclusion tags to use to + * identify resources that are to be excluded, or ignored, by a Region-level + * retention rule. Resources that have any of these tags are not retained by the + * retention rule upon deletion.

    You can't specify exclusion tags for + * tag-level retention rules.

    + */ + inline const Aws::Vector& GetExcludeResourceTags() const{ return m_excludeResourceTags; } + inline bool ExcludeResourceTagsHasBeenSet() const { return m_excludeResourceTagsHasBeenSet; } + inline void SetExcludeResourceTags(const Aws::Vector& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = value; } + inline void SetExcludeResourceTags(Aws::Vector&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::move(value); } + inline UpdateRuleRequest& WithExcludeResourceTags(const Aws::Vector& value) { SetExcludeResourceTags(value); return *this;} + inline UpdateRuleRequest& WithExcludeResourceTags(Aws::Vector&& value) { SetExcludeResourceTags(std::move(value)); return *this;} + inline UpdateRuleRequest& AddExcludeResourceTags(const ResourceTag& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.push_back(value); return *this; } + inline UpdateRuleRequest& AddExcludeResourceTags(ResourceTag&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.push_back(std::move(value)); return *this; } + ///@} private: Aws::String m_identifier; @@ -129,6 +148,9 @@ namespace Model Aws::Vector m_resourceTags; bool m_resourceTagsHasBeenSet = false; + + Aws::Vector m_excludeResourceTags; + bool m_excludeResourceTagsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UpdateRuleResult.h b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UpdateRuleResult.h index 467e393d46b..2c36105e943 100644 --- a/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UpdateRuleResult.h +++ b/generated/src/aws-cpp-sdk-rbin/include/aws/rbin/model/UpdateRuleResult.h @@ -87,8 +87,8 @@ namespace Model ///@{ /** - *

    Information about the resource tags used to identify resources that are - * retained by the retention rule.

    + *

    [Tag-level retention rules only] Information about the resource tags used to + * identify resources that are retained by the retention rule.

    */ inline const Aws::Vector& GetResourceTags() const{ return m_resourceTags; } inline void SetResourceTags(const Aws::Vector& value) { m_resourceTags = value; } @@ -113,17 +113,17 @@ namespace Model ///@{ /** - *

    The lock state for the retention rule.

    • locked - * - The retention rule is locked and can't be modified or deleted.

    • - *

      pending_unlock - The retention rule has been unlocked but it is - * still within the unlock delay period. The retention rule can be modified or - * deleted only after the unlock delay period has expired.

    • - * unlocked - The retention rule is unlocked and it can be modified or - * deleted by any user with the required permissions.

    • - * null - The retention rule has never been locked. Once a retention - * rule has been locked, it can transition between the locked and - * unlocked states only; it can never transition back to - * null.

    + *

    [Region-level retention rules only] The lock state for the retention + * rule.

    • locked - The retention rule is locked and + * can't be modified or deleted.

    • pending_unlock - + * The retention rule has been unlocked but it is still within the unlock delay + * period. The retention rule can be modified or deleted only after the unlock + * delay period has expired.

    • unlocked - The + * retention rule is unlocked and it can be modified or deleted by any user with + * the required permissions.

    • null - The retention + * rule has never been locked. Once a retention rule has been locked, it can + * transition between the locked and unlocked states + * only; it can never transition back to null.

    */ inline const LockState& GetLockState() const{ return m_lockState; } inline void SetLockState(const LockState& value) { m_lockState = value; } @@ -158,6 +158,21 @@ namespace Model inline UpdateRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;} ///@} + ///@{ + /** + *

    [Region-level retention rules only] Information about the exclusion tags used + * to identify resources that are to be excluded, or ignored, by the retention + * rule.

    + */ + inline const Aws::Vector& GetExcludeResourceTags() const{ return m_excludeResourceTags; } + inline void SetExcludeResourceTags(const Aws::Vector& value) { m_excludeResourceTags = value; } + inline void SetExcludeResourceTags(Aws::Vector&& value) { m_excludeResourceTags = std::move(value); } + inline UpdateRuleResult& WithExcludeResourceTags(const Aws::Vector& value) { SetExcludeResourceTags(value); return *this;} + inline UpdateRuleResult& WithExcludeResourceTags(Aws::Vector&& value) { SetExcludeResourceTags(std::move(value)); return *this;} + inline UpdateRuleResult& AddExcludeResourceTags(const ResourceTag& value) { m_excludeResourceTags.push_back(value); return *this; } + inline UpdateRuleResult& AddExcludeResourceTags(ResourceTag&& value) { m_excludeResourceTags.push_back(std::move(value)); return *this; } + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -188,6 +203,8 @@ namespace Model Aws::String m_ruleArn; + Aws::Vector m_excludeResourceTags; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/CreateRuleRequest.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/CreateRuleRequest.cpp index 1867cbb73e1..ca79acef525 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/CreateRuleRequest.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/CreateRuleRequest.cpp @@ -19,7 +19,8 @@ CreateRuleRequest::CreateRuleRequest() : m_resourceType(ResourceType::NOT_SET), m_resourceTypeHasBeenSet(false), m_resourceTagsHasBeenSet(false), - m_lockConfigurationHasBeenSet(false) + m_lockConfigurationHasBeenSet(false), + m_excludeResourceTagsHasBeenSet(false) { } @@ -72,6 +73,17 @@ Aws::String CreateRuleRequest::SerializePayload() const } + if(m_excludeResourceTagsHasBeenSet) + { + Aws::Utils::Array excludeResourceTagsJsonList(m_excludeResourceTags.size()); + for(unsigned excludeResourceTagsIndex = 0; excludeResourceTagsIndex < excludeResourceTagsJsonList.GetLength(); ++excludeResourceTagsIndex) + { + excludeResourceTagsJsonList[excludeResourceTagsIndex].AsObject(m_excludeResourceTags[excludeResourceTagsIndex].Jsonize()); + } + payload.WithArray("ExcludeResourceTags", std::move(excludeResourceTagsJsonList)); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/CreateRuleResult.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/CreateRuleResult.cpp index c5078e4fcef..819386ecaa0 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/CreateRuleResult.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/CreateRuleResult.cpp @@ -99,6 +99,15 @@ CreateRuleResult& CreateRuleResult::operator =(const Aws::AmazonWebServiceResult } + if(jsonValue.ValueExists("ExcludeResourceTags")) + { + Aws::Utils::Array excludeResourceTagsJsonList = jsonValue.GetArray("ExcludeResourceTags"); + for(unsigned excludeResourceTagsIndex = 0; excludeResourceTagsIndex < excludeResourceTagsJsonList.GetLength(); ++excludeResourceTagsIndex) + { + m_excludeResourceTags.push_back(excludeResourceTagsJsonList[excludeResourceTagsIndex].AsObject()); + } + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/GetRuleResult.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/GetRuleResult.cpp index eb21f30cbc6..828dc28ee43 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/GetRuleResult.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/GetRuleResult.cpp @@ -96,6 +96,15 @@ GetRuleResult& GetRuleResult::operator =(const Aws::AmazonWebServiceResult excludeResourceTagsJsonList = jsonValue.GetArray("ExcludeResourceTags"); + for(unsigned excludeResourceTagsIndex = 0; excludeResourceTagsIndex < excludeResourceTagsJsonList.GetLength(); ++excludeResourceTagsIndex) + { + m_excludeResourceTags.push_back(excludeResourceTagsJsonList[excludeResourceTagsIndex].AsObject()); + } + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/ListRulesRequest.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/ListRulesRequest.cpp index 33fb7a037cf..dacc27e8f8a 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/ListRulesRequest.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/ListRulesRequest.cpp @@ -20,7 +20,8 @@ ListRulesRequest::ListRulesRequest() : m_resourceTypeHasBeenSet(false), m_resourceTagsHasBeenSet(false), m_lockState(LockState::NOT_SET), - m_lockStateHasBeenSet(false) + m_lockStateHasBeenSet(false), + m_excludeResourceTagsHasBeenSet(false) { } @@ -61,6 +62,17 @@ Aws::String ListRulesRequest::SerializePayload() const payload.WithString("LockState", LockStateMapper::GetNameForLockState(m_lockState)); } + if(m_excludeResourceTagsHasBeenSet) + { + Aws::Utils::Array excludeResourceTagsJsonList(m_excludeResourceTags.size()); + for(unsigned excludeResourceTagsIndex = 0; excludeResourceTagsIndex < excludeResourceTagsJsonList.GetLength(); ++excludeResourceTagsIndex) + { + excludeResourceTagsJsonList[excludeResourceTagsIndex].AsObject(m_excludeResourceTags[excludeResourceTagsIndex].Jsonize()); + } + payload.WithArray("ExcludeResourceTags", std::move(excludeResourceTagsJsonList)); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/LockRuleResult.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/LockRuleResult.cpp index 81fc0cb6c32..56809128622 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/LockRuleResult.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/LockRuleResult.cpp @@ -90,6 +90,15 @@ LockRuleResult& LockRuleResult::operator =(const Aws::AmazonWebServiceResult excludeResourceTagsJsonList = jsonValue.GetArray("ExcludeResourceTags"); + for(unsigned excludeResourceTagsIndex = 0; excludeResourceTagsIndex < excludeResourceTagsJsonList.GetLength(); ++excludeResourceTagsIndex) + { + m_excludeResourceTags.push_back(excludeResourceTagsJsonList[excludeResourceTagsIndex].AsObject()); + } + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/UnlockRuleResult.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/UnlockRuleResult.cpp index 24097440abe..3b3bd8a9fa4 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/UnlockRuleResult.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/UnlockRuleResult.cpp @@ -96,6 +96,15 @@ UnlockRuleResult& UnlockRuleResult::operator =(const Aws::AmazonWebServiceResult } + if(jsonValue.ValueExists("ExcludeResourceTags")) + { + Aws::Utils::Array excludeResourceTagsJsonList = jsonValue.GetArray("ExcludeResourceTags"); + for(unsigned excludeResourceTagsIndex = 0; excludeResourceTagsIndex < excludeResourceTagsJsonList.GetLength(); ++excludeResourceTagsIndex) + { + m_excludeResourceTags.push_back(excludeResourceTagsJsonList[excludeResourceTagsIndex].AsObject()); + } + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/UpdateRuleRequest.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/UpdateRuleRequest.cpp index c1d8e90f58f..bf35fc678e6 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/UpdateRuleRequest.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/UpdateRuleRequest.cpp @@ -18,7 +18,8 @@ UpdateRuleRequest::UpdateRuleRequest() : m_descriptionHasBeenSet(false), m_resourceType(ResourceType::NOT_SET), m_resourceTypeHasBeenSet(false), - m_resourceTagsHasBeenSet(false) + m_resourceTagsHasBeenSet(false), + m_excludeResourceTagsHasBeenSet(false) { } @@ -54,6 +55,17 @@ Aws::String UpdateRuleRequest::SerializePayload() const } + if(m_excludeResourceTagsHasBeenSet) + { + Aws::Utils::Array excludeResourceTagsJsonList(m_excludeResourceTags.size()); + for(unsigned excludeResourceTagsIndex = 0; excludeResourceTagsIndex < excludeResourceTagsJsonList.GetLength(); ++excludeResourceTagsIndex) + { + excludeResourceTagsJsonList[excludeResourceTagsIndex].AsObject(m_excludeResourceTags[excludeResourceTagsIndex].Jsonize()); + } + payload.WithArray("ExcludeResourceTags", std::move(excludeResourceTagsJsonList)); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/UpdateRuleResult.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/UpdateRuleResult.cpp index 8ed55b8f8ba..78565a775c4 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/UpdateRuleResult.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/UpdateRuleResult.cpp @@ -90,6 +90,15 @@ UpdateRuleResult& UpdateRuleResult::operator =(const Aws::AmazonWebServiceResult } + if(jsonValue.ValueExists("ExcludeResourceTags")) + { + Aws::Utils::Array excludeResourceTagsJsonList = jsonValue.GetArray("ExcludeResourceTags"); + for(unsigned excludeResourceTagsIndex = 0; excludeResourceTagsIndex < excludeResourceTagsJsonList.GetLength(); ++excludeResourceTagsIndex) + { + m_excludeResourceTags.push_back(excludeResourceTagsJsonList[excludeResourceTagsIndex].AsObject()); + } + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/RDSClient.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/RDSClient.h index c613c2c5b4b..950d4457174 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/RDSClient.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/RDSClient.h @@ -543,15 +543,14 @@ namespace Aws *

    Creates a blue/green deployment.

    A blue/green deployment creates a * staging environment that copies the production environment. In a blue/green * deployment, the blue environment is the current production environment. The - * green environment is the staging environment. The staging environment stays in - * sync with the current production environment using logical replication.

    - *

    You can make changes to the databases in the green environment without - * affecting production workloads. For example, you can upgrade the major or minor - * DB engine version, change database parameters, or make schema changes in the - * staging environment. You can thoroughly test changes in the green environment. - * When ready, you can switch over the environments to promote the green - * environment to be the new production environment. The switchover typically takes - * under a minute.

    For more information, see

    You can make changes to the databases in + * the green environment without affecting production workloads. For example, you + * can upgrade the major or minor DB engine version, change database parameters, or + * make schema changes in the staging environment. You can thoroughly test changes + * in the green environment. When ready, you can switch over the environments to + * promote the green environment to be the new production environment. The + * switchover typically takes under a minute.

    For more information, see Using * Amazon RDS Blue/Green Deployments for database updates in the Amazon RDS * User Guide and The amount of Provisioned IOPS (input/output operations per second) to + * allocate for the green DB instance. For information about valid IOPS values, see + * Amazon + * RDS DB instance storage in the Amazon RDS User Guide.

    This + * setting doesn't apply to Amazon Aurora blue/green deployments.

    + */ + inline int GetTargetIops() const{ return m_targetIops; } + inline bool TargetIopsHasBeenSet() const { return m_targetIopsHasBeenSet; } + inline void SetTargetIops(int value) { m_targetIopsHasBeenSet = true; m_targetIops = value; } + inline CreateBlueGreenDeploymentRequest& WithTargetIops(int value) { SetTargetIops(value); return *this;} + ///@} + + ///@{ + /** + *

    The storage type to associate with the green DB instance.

    Valid + * Values: gp2 | gp3 | io1 | io2

    This setting doesn't apply to + * Amazon Aurora blue/green deployments.

    + */ + inline const Aws::String& GetTargetStorageType() const{ return m_targetStorageType; } + inline bool TargetStorageTypeHasBeenSet() const { return m_targetStorageTypeHasBeenSet; } + inline void SetTargetStorageType(const Aws::String& value) { m_targetStorageTypeHasBeenSet = true; m_targetStorageType = value; } + inline void SetTargetStorageType(Aws::String&& value) { m_targetStorageTypeHasBeenSet = true; m_targetStorageType = std::move(value); } + inline void SetTargetStorageType(const char* value) { m_targetStorageTypeHasBeenSet = true; m_targetStorageType.assign(value); } + inline CreateBlueGreenDeploymentRequest& WithTargetStorageType(const Aws::String& value) { SetTargetStorageType(value); return *this;} + inline CreateBlueGreenDeploymentRequest& WithTargetStorageType(Aws::String&& value) { SetTargetStorageType(std::move(value)); return *this;} + inline CreateBlueGreenDeploymentRequest& WithTargetStorageType(const char* value) { SetTargetStorageType(value); return *this;} + ///@} + + ///@{ + /** + *

    The amount of storage in gibibytes (GiB) to allocate for the green DB + * instance. You can choose to increase or decrease the allocated storage on the + * green DB instance.

    This setting doesn't apply to Amazon Aurora blue/green + * deployments.

    + */ + inline int GetTargetAllocatedStorage() const{ return m_targetAllocatedStorage; } + inline bool TargetAllocatedStorageHasBeenSet() const { return m_targetAllocatedStorageHasBeenSet; } + inline void SetTargetAllocatedStorage(int value) { m_targetAllocatedStorageHasBeenSet = true; m_targetAllocatedStorage = value; } + inline CreateBlueGreenDeploymentRequest& WithTargetAllocatedStorage(int value) { SetTargetAllocatedStorage(value); return *this;} + ///@} + + ///@{ + /** + *

    The storage throughput value for the green DB instance.

    This setting + * applies only to the gp3 storage type.

    This setting doesn't + * apply to Amazon Aurora blue/green deployments.

    + */ + inline int GetTargetStorageThroughput() const{ return m_targetStorageThroughput; } + inline bool TargetStorageThroughputHasBeenSet() const { return m_targetStorageThroughputHasBeenSet; } + inline void SetTargetStorageThroughput(int value) { m_targetStorageThroughputHasBeenSet = true; m_targetStorageThroughput = value; } + inline CreateBlueGreenDeploymentRequest& WithTargetStorageThroughput(int value) { SetTargetStorageThroughput(value); return *this;} + ///@} private: Aws::String m_blueGreenDeploymentName; @@ -192,6 +248,18 @@ namespace Model bool m_upgradeTargetStorageConfig; bool m_upgradeTargetStorageConfigHasBeenSet = false; + + int m_targetIops; + bool m_targetIopsHasBeenSet = false; + + Aws::String m_targetStorageType; + bool m_targetStorageTypeHasBeenSet = false; + + int m_targetAllocatedStorage; + bool m_targetAllocatedStorageHasBeenSet = false; + + int m_targetStorageThroughput; + bool m_targetStorageThroughputHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/source/model/CreateBlueGreenDeploymentRequest.cpp b/generated/src/aws-cpp-sdk-rds/source/model/CreateBlueGreenDeploymentRequest.cpp index 0dda6775cd0..91588e5f5ed 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/CreateBlueGreenDeploymentRequest.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/CreateBlueGreenDeploymentRequest.cpp @@ -19,7 +19,14 @@ CreateBlueGreenDeploymentRequest::CreateBlueGreenDeploymentRequest() : m_tagsHasBeenSet(false), m_targetDBInstanceClassHasBeenSet(false), m_upgradeTargetStorageConfig(false), - m_upgradeTargetStorageConfigHasBeenSet(false) + m_upgradeTargetStorageConfigHasBeenSet(false), + m_targetIops(0), + m_targetIopsHasBeenSet(false), + m_targetStorageTypeHasBeenSet(false), + m_targetAllocatedStorage(0), + m_targetAllocatedStorageHasBeenSet(false), + m_targetStorageThroughput(0), + m_targetStorageThroughputHasBeenSet(false) { } @@ -79,6 +86,26 @@ Aws::String CreateBlueGreenDeploymentRequest::SerializePayload() const ss << "UpgradeTargetStorageConfig=" << std::boolalpha << m_upgradeTargetStorageConfig << "&"; } + if(m_targetIopsHasBeenSet) + { + ss << "TargetIops=" << m_targetIops << "&"; + } + + if(m_targetStorageTypeHasBeenSet) + { + ss << "TargetStorageType=" << StringUtils::URLEncode(m_targetStorageType.c_str()) << "&"; + } + + if(m_targetAllocatedStorageHasBeenSet) + { + ss << "TargetAllocatedStorage=" << m_targetAllocatedStorage << "&"; + } + + if(m_targetStorageThroughputHasBeenSet) + { + ss << "TargetStorageThroughput=" << m_targetStorageThroughput << "&"; + } + ss << "Version=2014-10-31"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/TimestreamQueryClient.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/TimestreamQueryClient.h index 6790689ace4..20810900333 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/TimestreamQueryClient.h +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/TimestreamQueryClient.h @@ -258,8 +258,11 @@ namespace TimestreamQuery *

    You can use this API to run a scheduled query manually.

    If you * enabled QueryInsights, this API also returns insights and metrics * related to the query that you executed as part of an Amazon SNS notification. - * QueryInsights helps with performance tuning of your - * query.

    See Also:

    QueryInsights helps with performance tuning of your query. For more + * information about QueryInsights, see Using + * query insights to optimize queries in Amazon Timestream.

    See + * Also:

    AWS * API Reference

    */ @@ -368,8 +371,11 @@ namespace TimestreamQuery * query against your Amazon Timestream data.

    If you enabled * QueryInsights, this API also returns insights and metrics related * to the query that you executed. QueryInsights helps with - * performance tuning of your query.

    The maximum number of - * Query API requests you're allowed to make with + * performance tuning of your query. For more information about + * QueryInsights, see Using + * query insights to optimize queries in Amazon Timestream.

    The + * maximum number of Query API requests you're allowed to make with * QueryInsights enabled is 1 query per second (QPS). If you exceed * this query rate, it might result in throttling.

    * Query will time out after 60 seconds. You must update the default diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/AccountSettingsNotificationConfiguration.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/AccountSettingsNotificationConfiguration.h new file mode 100644 index 00000000000..c31239b4dff --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/AccountSettingsNotificationConfiguration.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace TimestreamQuery +{ +namespace Model +{ + + /** + *

    Configuration settings for notifications related to account + * settings.

    See Also:

    AWS + * API Reference

    + */ + class AccountSettingsNotificationConfiguration + { + public: + AWS_TIMESTREAMQUERY_API AccountSettingsNotificationConfiguration(); + AWS_TIMESTREAMQUERY_API AccountSettingsNotificationConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_TIMESTREAMQUERY_API AccountSettingsNotificationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const SnsConfiguration& GetSnsConfiguration() const{ return m_snsConfiguration; } + inline bool SnsConfigurationHasBeenSet() const { return m_snsConfigurationHasBeenSet; } + inline void SetSnsConfiguration(const SnsConfiguration& value) { m_snsConfigurationHasBeenSet = true; m_snsConfiguration = value; } + inline void SetSnsConfiguration(SnsConfiguration&& value) { m_snsConfigurationHasBeenSet = true; m_snsConfiguration = std::move(value); } + inline AccountSettingsNotificationConfiguration& WithSnsConfiguration(const SnsConfiguration& value) { SetSnsConfiguration(value); return *this;} + inline AccountSettingsNotificationConfiguration& WithSnsConfiguration(SnsConfiguration&& value) { SetSnsConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    An Amazon Resource Name (ARN) that grants Timestream permission to publish + * notifications. This field is only visible if SNS Topic is provided when updating + * the account settings.

    + */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + inline AccountSettingsNotificationConfiguration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + inline AccountSettingsNotificationConfiguration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + inline AccountSettingsNotificationConfiguration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + ///@} + private: + + SnsConfiguration m_snsConfiguration; + bool m_snsConfigurationHasBeenSet = false; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ComputeMode.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ComputeMode.h new file mode 100644 index 00000000000..fbbbc9cf423 --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ComputeMode.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 TimestreamQuery +{ +namespace Model +{ + enum class ComputeMode + { + NOT_SET, + ON_DEMAND, + PROVISIONED + }; + +namespace ComputeModeMapper +{ +AWS_TIMESTREAMQUERY_API ComputeMode GetComputeModeForName(const Aws::String& name); + +AWS_TIMESTREAMQUERY_API Aws::String GetNameForComputeMode(ComputeMode value); +} // namespace ComputeModeMapper +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/DescribeAccountSettingsResult.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/DescribeAccountSettingsResult.h index 9a85959fd43..e97021b6bd9 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/DescribeAccountSettingsResult.h +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/DescribeAccountSettingsResult.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include @@ -38,7 +39,9 @@ namespace Model *

    The maximum number of Timestream * compute units (TCUs) the service will use at any point in time to serve your - * queries.

    + * queries. To run queries, you must set a minimum capacity of 4 TCU. You can set + * the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so + * on. This configuration is applicable only for on-demand usage of (TCUs).

    */ inline int GetMaxQueryTCU() const{ return m_maxQueryTCU; } inline void SetMaxQueryTCU(int value) { m_maxQueryTCU = value; } @@ -47,7 +50,10 @@ namespace Model ///@{ /** - *

    The pricing model for queries in your account.

    + *

    The pricing model for queries in your account.

    The + * QueryPricingModel parameter is used by several Timestream + * operations; however, the UpdateAccountSettings API operation + * doesn't recognize any values other than COMPUTE_UNITS.

    */ inline const QueryPricingModel& GetQueryPricingModel() const{ return m_queryPricingModel; } inline void SetQueryPricingModel(const QueryPricingModel& value) { m_queryPricingModel = value; } @@ -56,6 +62,18 @@ namespace Model inline DescribeAccountSettingsResult& WithQueryPricingModel(QueryPricingModel&& value) { SetQueryPricingModel(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    An object that contains the usage settings for Timestream Compute Units + * (TCUs) in your account for the query workload.

    + */ + inline const QueryComputeResponse& GetQueryCompute() const{ return m_queryCompute; } + inline void SetQueryCompute(const QueryComputeResponse& value) { m_queryCompute = value; } + inline void SetQueryCompute(QueryComputeResponse&& value) { m_queryCompute = std::move(value); } + inline DescribeAccountSettingsResult& WithQueryCompute(const QueryComputeResponse& value) { SetQueryCompute(value); return *this;} + inline DescribeAccountSettingsResult& WithQueryCompute(QueryComputeResponse&& value) { SetQueryCompute(std::move(value)); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -72,6 +90,8 @@ namespace Model QueryPricingModel m_queryPricingModel; + QueryComputeResponse m_queryCompute; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/LastUpdate.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/LastUpdate.h new file mode 100644 index 00000000000..68e60aa9e24 --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/LastUpdate.h @@ -0,0 +1,95 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace TimestreamQuery +{ +namespace Model +{ + + /** + *

    Configuration object that contains the most recent account settings update, + * visible only if settings have been updated previously.

    See Also:

    + * AWS + * API Reference

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

    The number of TimeStream Compute Units (TCUs) requested in the last account + * settings update.

    + */ + inline int GetTargetQueryTCU() const{ return m_targetQueryTCU; } + inline bool TargetQueryTCUHasBeenSet() const { return m_targetQueryTCUHasBeenSet; } + inline void SetTargetQueryTCU(int value) { m_targetQueryTCUHasBeenSet = true; m_targetQueryTCU = value; } + inline LastUpdate& WithTargetQueryTCU(int value) { SetTargetQueryTCU(value); return *this;} + ///@} + + ///@{ + /** + *

    The status of the last update. Can be either PENDING, + * FAILED, or SUCCEEDED.

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

    Error message describing the last account settings update status, visible + * only if an error occurred.

    + */ + inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } + inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } + inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } + inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } + inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } + inline LastUpdate& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} + inline LastUpdate& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} + inline LastUpdate& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} + ///@} + private: + + int m_targetQueryTCU; + bool m_targetQueryTCUHasBeenSet = false; + + LastUpdateStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_statusMessage; + bool m_statusMessageHasBeenSet = false; + }; + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/LastUpdateStatus.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/LastUpdateStatus.h new file mode 100644 index 00000000000..1e565a31152 --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/LastUpdateStatus.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 TimestreamQuery +{ +namespace Model +{ + enum class LastUpdateStatus + { + NOT_SET, + PENDING, + FAILED, + SUCCEEDED + }; + +namespace LastUpdateStatusMapper +{ +AWS_TIMESTREAMQUERY_API LastUpdateStatus GetLastUpdateStatusForName(const Aws::String& name); + +AWS_TIMESTREAMQUERY_API Aws::String GetNameForLastUpdateStatus(LastUpdateStatus value); +} // namespace LastUpdateStatusMapper +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/NotificationConfiguration.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/NotificationConfiguration.h index da8e466e871..13dcd4a0fd8 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/NotificationConfiguration.h +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/NotificationConfiguration.h @@ -41,7 +41,9 @@ namespace Model ///@{ /** - *

    Details on SNS configuration.

    + *

    Details about the Amazon Simple Notification Service (SNS) configuration. + * This field is visible only when SNS Topic is provided when updating the account + * settings.

    */ inline const SnsConfiguration& GetSnsConfiguration() const{ return m_snsConfiguration; } inline bool SnsConfigurationHasBeenSet() const { return m_snsConfigurationHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ProvisionedCapacityRequest.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ProvisionedCapacityRequest.h new file mode 100644 index 00000000000..7eea679f48a --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ProvisionedCapacityRequest.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace TimestreamQuery +{ +namespace Model +{ + + /** + *

    A request to update the provisioned capacity settings for querying + * data.

    See Also:

    AWS + * API Reference

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

    The target compute capacity for querying data, specified in Timestream + * Compute Units (TCUs).

    + */ + inline int GetTargetQueryTCU() const{ return m_targetQueryTCU; } + inline bool TargetQueryTCUHasBeenSet() const { return m_targetQueryTCUHasBeenSet; } + inline void SetTargetQueryTCU(int value) { m_targetQueryTCUHasBeenSet = true; m_targetQueryTCU = value; } + inline ProvisionedCapacityRequest& WithTargetQueryTCU(int value) { SetTargetQueryTCU(value); return *this;} + ///@} + + ///@{ + /** + *

    Configuration settings for notifications related to the provisioned capacity + * update.

    + */ + inline const AccountSettingsNotificationConfiguration& GetNotificationConfiguration() const{ return m_notificationConfiguration; } + inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; } + inline void SetNotificationConfiguration(const AccountSettingsNotificationConfiguration& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = value; } + inline void SetNotificationConfiguration(AccountSettingsNotificationConfiguration&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::move(value); } + inline ProvisionedCapacityRequest& WithNotificationConfiguration(const AccountSettingsNotificationConfiguration& value) { SetNotificationConfiguration(value); return *this;} + inline ProvisionedCapacityRequest& WithNotificationConfiguration(AccountSettingsNotificationConfiguration&& value) { SetNotificationConfiguration(std::move(value)); return *this;} + ///@} + private: + + int m_targetQueryTCU; + bool m_targetQueryTCUHasBeenSet = false; + + AccountSettingsNotificationConfiguration m_notificationConfiguration; + bool m_notificationConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ProvisionedCapacityResponse.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ProvisionedCapacityResponse.h new file mode 100644 index 00000000000..0b6c40ee7bc --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/ProvisionedCapacityResponse.h @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace TimestreamQuery +{ +namespace Model +{ + + /** + *

    The response to a request to update the provisioned capacity settings for + * querying data.

    See Also:

    AWS + * API Reference

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

    The number of Timestream Compute Units (TCUs) provisioned in the account. + * This field is only visible when the compute mode is + * PROVISIONED.

    + */ + inline int GetActiveQueryTCU() const{ return m_activeQueryTCU; } + inline bool ActiveQueryTCUHasBeenSet() const { return m_activeQueryTCUHasBeenSet; } + inline void SetActiveQueryTCU(int value) { m_activeQueryTCUHasBeenSet = true; m_activeQueryTCU = value; } + inline ProvisionedCapacityResponse& WithActiveQueryTCU(int value) { SetActiveQueryTCU(value); return *this;} + ///@} + + ///@{ + /** + *

    An object that contains settings for notifications that are sent whenever the + * provisioned capacity settings are modified. This field is only visible when the + * compute mode is PROVISIONED.

    + */ + inline const AccountSettingsNotificationConfiguration& GetNotificationConfiguration() const{ return m_notificationConfiguration; } + inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; } + inline void SetNotificationConfiguration(const AccountSettingsNotificationConfiguration& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = value; } + inline void SetNotificationConfiguration(AccountSettingsNotificationConfiguration&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::move(value); } + inline ProvisionedCapacityResponse& WithNotificationConfiguration(const AccountSettingsNotificationConfiguration& value) { SetNotificationConfiguration(value); return *this;} + inline ProvisionedCapacityResponse& WithNotificationConfiguration(AccountSettingsNotificationConfiguration&& value) { SetNotificationConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Information about the last update to the provisioned capacity settings.

    + */ + inline const LastUpdate& GetLastUpdate() const{ return m_lastUpdate; } + inline bool LastUpdateHasBeenSet() const { return m_lastUpdateHasBeenSet; } + inline void SetLastUpdate(const LastUpdate& value) { m_lastUpdateHasBeenSet = true; m_lastUpdate = value; } + inline void SetLastUpdate(LastUpdate&& value) { m_lastUpdateHasBeenSet = true; m_lastUpdate = std::move(value); } + inline ProvisionedCapacityResponse& WithLastUpdate(const LastUpdate& value) { SetLastUpdate(value); return *this;} + inline ProvisionedCapacityResponse& WithLastUpdate(LastUpdate&& value) { SetLastUpdate(std::move(value)); return *this;} + ///@} + private: + + int m_activeQueryTCU; + bool m_activeQueryTCUHasBeenSet = false; + + AccountSettingsNotificationConfiguration m_notificationConfiguration; + bool m_notificationConfigurationHasBeenSet = false; + + LastUpdate m_lastUpdate; + bool m_lastUpdateHasBeenSet = false; + }; + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/QueryComputeRequest.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/QueryComputeRequest.h new file mode 100644 index 00000000000..ec32a74b4f2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/QueryComputeRequest.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace TimestreamQuery +{ +namespace Model +{ + + /** + *

    A request to retrieve or update the compute capacity settings for querying + * data.

    See Also:

    AWS + * API Reference

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

    The mode in which Timestream Compute Units (TCUs) are allocated and utilized + * within an account. Note that in the Asia Pacific (Mumbai) region, the API + * operation only recognizes the value PROVISIONED.

    + */ + inline const ComputeMode& GetComputeMode() const{ return m_computeMode; } + inline bool ComputeModeHasBeenSet() const { return m_computeModeHasBeenSet; } + inline void SetComputeMode(const ComputeMode& value) { m_computeModeHasBeenSet = true; m_computeMode = value; } + inline void SetComputeMode(ComputeMode&& value) { m_computeModeHasBeenSet = true; m_computeMode = std::move(value); } + inline QueryComputeRequest& WithComputeMode(const ComputeMode& value) { SetComputeMode(value); return *this;} + inline QueryComputeRequest& WithComputeMode(ComputeMode&& value) { SetComputeMode(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Configuration object that contains settings for provisioned Timestream + * Compute Units (TCUs) in your account.

    + */ + inline const ProvisionedCapacityRequest& GetProvisionedCapacity() const{ return m_provisionedCapacity; } + inline bool ProvisionedCapacityHasBeenSet() const { return m_provisionedCapacityHasBeenSet; } + inline void SetProvisionedCapacity(const ProvisionedCapacityRequest& value) { m_provisionedCapacityHasBeenSet = true; m_provisionedCapacity = value; } + inline void SetProvisionedCapacity(ProvisionedCapacityRequest&& value) { m_provisionedCapacityHasBeenSet = true; m_provisionedCapacity = std::move(value); } + inline QueryComputeRequest& WithProvisionedCapacity(const ProvisionedCapacityRequest& value) { SetProvisionedCapacity(value); return *this;} + inline QueryComputeRequest& WithProvisionedCapacity(ProvisionedCapacityRequest&& value) { SetProvisionedCapacity(std::move(value)); return *this;} + ///@} + private: + + ComputeMode m_computeMode; + bool m_computeModeHasBeenSet = false; + + ProvisionedCapacityRequest m_provisionedCapacity; + bool m_provisionedCapacityHasBeenSet = false; + }; + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/QueryComputeResponse.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/QueryComputeResponse.h new file mode 100644 index 00000000000..b1e6110786d --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/QueryComputeResponse.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace TimestreamQuery +{ +namespace Model +{ + + /** + *

    The response to a request to retrieve or update the compute capacity settings + * for querying data.

    See Also:

    AWS + * API Reference

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

    The mode in which Timestream Compute Units (TCUs) are allocated and utilized + * within an account. Note that in the Asia Pacific (Mumbai) region, the API + * operation only recognizes the value PROVISIONED.

    + */ + inline const ComputeMode& GetComputeMode() const{ return m_computeMode; } + inline bool ComputeModeHasBeenSet() const { return m_computeModeHasBeenSet; } + inline void SetComputeMode(const ComputeMode& value) { m_computeModeHasBeenSet = true; m_computeMode = value; } + inline void SetComputeMode(ComputeMode&& value) { m_computeModeHasBeenSet = true; m_computeMode = std::move(value); } + inline QueryComputeResponse& WithComputeMode(const ComputeMode& value) { SetComputeMode(value); return *this;} + inline QueryComputeResponse& WithComputeMode(ComputeMode&& value) { SetComputeMode(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Configuration object that contains settings for provisioned Timestream + * Compute Units (TCUs) in your account.

    + */ + inline const ProvisionedCapacityResponse& GetProvisionedCapacity() const{ return m_provisionedCapacity; } + inline bool ProvisionedCapacityHasBeenSet() const { return m_provisionedCapacityHasBeenSet; } + inline void SetProvisionedCapacity(const ProvisionedCapacityResponse& value) { m_provisionedCapacityHasBeenSet = true; m_provisionedCapacity = value; } + inline void SetProvisionedCapacity(ProvisionedCapacityResponse&& value) { m_provisionedCapacityHasBeenSet = true; m_provisionedCapacity = std::move(value); } + inline QueryComputeResponse& WithProvisionedCapacity(const ProvisionedCapacityResponse& value) { SetProvisionedCapacity(value); return *this;} + inline QueryComputeResponse& WithProvisionedCapacity(ProvisionedCapacityResponse&& value) { SetProvisionedCapacity(std::move(value)); return *this;} + ///@} + private: + + ComputeMode m_computeMode; + bool m_computeModeHasBeenSet = false; + + ProvisionedCapacityResponse m_provisionedCapacity; + bool m_provisionedCapacityHasBeenSet = false; + }; + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/UpdateAccountSettingsRequest.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/UpdateAccountSettingsRequest.h index 81f7e5274c8..bad678a2914 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/UpdateAccountSettingsRequest.h +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/UpdateAccountSettingsRequest.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -39,9 +40,14 @@ namespace Model *

    The maximum number of compute units the service will use at any point in time * to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. * You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, - * 32, and so on.

    The maximum value supported for MaxQueryTCU - * is 1000. To request an increase to this soft limit, contact Amazon Web Services - * Support. For information about the default quota for maxQueryTCU, see MaxQueryTCU is 1000. + * To request an increase to this soft limit, contact Amazon Web Services Support. + * For information about the default quota for maxQueryTCU, see Default quotas. + * This configuration is applicable only for on-demand usage of Timestream Compute + * Units (TCUs).

    The maximum value supported for MaxQueryTCU is + * 1000. To request an increase to this soft limit, contact Amazon Web Services + * Support. For information about the default quota for maxQueryTCU, + * see Default * quotas.

    */ @@ -65,6 +71,22 @@ namespace Model inline UpdateAccountSettingsRequest& WithQueryPricingModel(const QueryPricingModel& value) { SetQueryPricingModel(value); return *this;} inline UpdateAccountSettingsRequest& WithQueryPricingModel(QueryPricingModel&& value) { SetQueryPricingModel(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

    Modifies the query compute settings configured in your account, including the + * query pricing model and provisioned Timestream Compute Units (TCUs) in your + * account.

    This API is idempotent, meaning that making the same + * request multiple times will have the same effect as making the request once.

    + * + */ + inline const QueryComputeRequest& GetQueryCompute() const{ return m_queryCompute; } + inline bool QueryComputeHasBeenSet() const { return m_queryComputeHasBeenSet; } + inline void SetQueryCompute(const QueryComputeRequest& value) { m_queryComputeHasBeenSet = true; m_queryCompute = value; } + inline void SetQueryCompute(QueryComputeRequest&& value) { m_queryComputeHasBeenSet = true; m_queryCompute = std::move(value); } + inline UpdateAccountSettingsRequest& WithQueryCompute(const QueryComputeRequest& value) { SetQueryCompute(value); return *this;} + inline UpdateAccountSettingsRequest& WithQueryCompute(QueryComputeRequest&& value) { SetQueryCompute(std::move(value)); return *this;} + ///@} private: int m_maxQueryTCU; @@ -72,6 +94,9 @@ namespace Model QueryPricingModel m_queryPricingModel; bool m_queryPricingModelHasBeenSet = false; + + QueryComputeRequest m_queryCompute; + bool m_queryComputeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/UpdateAccountSettingsResult.h b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/UpdateAccountSettingsResult.h index d3cff6fa3af..2a3c099102d 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/UpdateAccountSettingsResult.h +++ b/generated/src/aws-cpp-sdk-timestream-query/include/aws/timestream-query/model/UpdateAccountSettingsResult.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include @@ -54,6 +55,17 @@ namespace Model inline UpdateAccountSettingsResult& WithQueryPricingModel(QueryPricingModel&& value) { SetQueryPricingModel(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    Confirms the updated account settings for querying data in your account.

    + */ + inline const QueryComputeResponse& GetQueryCompute() const{ return m_queryCompute; } + inline void SetQueryCompute(const QueryComputeResponse& value) { m_queryCompute = value; } + inline void SetQueryCompute(QueryComputeResponse&& value) { m_queryCompute = std::move(value); } + inline UpdateAccountSettingsResult& WithQueryCompute(const QueryComputeResponse& value) { SetQueryCompute(value); return *this;} + inline UpdateAccountSettingsResult& WithQueryCompute(QueryComputeResponse&& value) { SetQueryCompute(std::move(value)); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -70,6 +82,8 @@ namespace Model QueryPricingModel m_queryPricingModel; + QueryComputeResponse m_queryCompute; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/AccountSettingsNotificationConfiguration.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/AccountSettingsNotificationConfiguration.cpp new file mode 100644 index 00000000000..65de8f4aedf --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/AccountSettingsNotificationConfiguration.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace TimestreamQuery +{ +namespace Model +{ + +AccountSettingsNotificationConfiguration::AccountSettingsNotificationConfiguration() : + m_snsConfigurationHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ +} + +AccountSettingsNotificationConfiguration::AccountSettingsNotificationConfiguration(JsonView jsonValue) + : AccountSettingsNotificationConfiguration() +{ + *this = jsonValue; +} + +AccountSettingsNotificationConfiguration& AccountSettingsNotificationConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("SnsConfiguration")) + { + m_snsConfiguration = jsonValue.GetObject("SnsConfiguration"); + + m_snsConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("RoleArn")) + { + m_roleArn = jsonValue.GetString("RoleArn"); + + m_roleArnHasBeenSet = true; + } + + return *this; +} + +JsonValue AccountSettingsNotificationConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_snsConfigurationHasBeenSet) + { + payload.WithObject("SnsConfiguration", m_snsConfiguration.Jsonize()); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("RoleArn", m_roleArn); + + } + + return payload; +} + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/ComputeMode.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/ComputeMode.cpp new file mode 100644 index 00000000000..1f4dd261e0a --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/ComputeMode.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 TimestreamQuery + { + namespace Model + { + namespace ComputeModeMapper + { + + static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); + static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); + + + ComputeMode GetComputeModeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ON_DEMAND_HASH) + { + return ComputeMode::ON_DEMAND; + } + else if (hashCode == PROVISIONED_HASH) + { + return ComputeMode::PROVISIONED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ComputeMode::NOT_SET; + } + + Aws::String GetNameForComputeMode(ComputeMode enumValue) + { + switch(enumValue) + { + case ComputeMode::NOT_SET: + return {}; + case ComputeMode::ON_DEMAND: + return "ON_DEMAND"; + case ComputeMode::PROVISIONED: + return "PROVISIONED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ComputeModeMapper + } // namespace Model + } // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/DescribeAccountSettingsResult.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/DescribeAccountSettingsResult.cpp index 612e604030b..eaa0891bd92 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/DescribeAccountSettingsResult.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/DescribeAccountSettingsResult.cpp @@ -44,6 +44,12 @@ DescribeAccountSettingsResult& DescribeAccountSettingsResult::operator =(const A } + if(jsonValue.ValueExists("QueryCompute")) + { + m_queryCompute = jsonValue.GetObject("QueryCompute"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/LastUpdate.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/LastUpdate.cpp new file mode 100644 index 00000000000..a22b5e504d1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/LastUpdate.cpp @@ -0,0 +1,88 @@ +/** + * 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 TimestreamQuery +{ +namespace Model +{ + +LastUpdate::LastUpdate() : + m_targetQueryTCU(0), + m_targetQueryTCUHasBeenSet(false), + m_status(LastUpdateStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusMessageHasBeenSet(false) +{ +} + +LastUpdate::LastUpdate(JsonView jsonValue) + : LastUpdate() +{ + *this = jsonValue; +} + +LastUpdate& LastUpdate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("TargetQueryTCU")) + { + m_targetQueryTCU = jsonValue.GetInteger("TargetQueryTCU"); + + m_targetQueryTCUHasBeenSet = true; + } + + if(jsonValue.ValueExists("Status")) + { + m_status = LastUpdateStatusMapper::GetLastUpdateStatusForName(jsonValue.GetString("Status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("StatusMessage")) + { + m_statusMessage = jsonValue.GetString("StatusMessage"); + + m_statusMessageHasBeenSet = true; + } + + return *this; +} + +JsonValue LastUpdate::Jsonize() const +{ + JsonValue payload; + + if(m_targetQueryTCUHasBeenSet) + { + payload.WithInteger("TargetQueryTCU", m_targetQueryTCU); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("Status", LastUpdateStatusMapper::GetNameForLastUpdateStatus(m_status)); + } + + if(m_statusMessageHasBeenSet) + { + payload.WithString("StatusMessage", m_statusMessage); + + } + + return payload; +} + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/LastUpdateStatus.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/LastUpdateStatus.cpp new file mode 100644 index 00000000000..90c0941c70d --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/LastUpdateStatus.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 TimestreamQuery + { + namespace Model + { + namespace LastUpdateStatusMapper + { + + static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + + + LastUpdateStatus GetLastUpdateStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PENDING_HASH) + { + return LastUpdateStatus::PENDING; + } + else if (hashCode == FAILED_HASH) + { + return LastUpdateStatus::FAILED; + } + else if (hashCode == SUCCEEDED_HASH) + { + return LastUpdateStatus::SUCCEEDED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return LastUpdateStatus::NOT_SET; + } + + Aws::String GetNameForLastUpdateStatus(LastUpdateStatus enumValue) + { + switch(enumValue) + { + case LastUpdateStatus::NOT_SET: + return {}; + case LastUpdateStatus::PENDING: + return "PENDING"; + case LastUpdateStatus::FAILED: + return "FAILED"; + case LastUpdateStatus::SUCCEEDED: + return "SUCCEEDED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace LastUpdateStatusMapper + } // namespace Model + } // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/ProvisionedCapacityRequest.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/ProvisionedCapacityRequest.cpp new file mode 100644 index 00000000000..5216bcd4694 --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/ProvisionedCapacityRequest.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace TimestreamQuery +{ +namespace Model +{ + +ProvisionedCapacityRequest::ProvisionedCapacityRequest() : + m_targetQueryTCU(0), + m_targetQueryTCUHasBeenSet(false), + m_notificationConfigurationHasBeenSet(false) +{ +} + +ProvisionedCapacityRequest::ProvisionedCapacityRequest(JsonView jsonValue) + : ProvisionedCapacityRequest() +{ + *this = jsonValue; +} + +ProvisionedCapacityRequest& ProvisionedCapacityRequest::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("TargetQueryTCU")) + { + m_targetQueryTCU = jsonValue.GetInteger("TargetQueryTCU"); + + m_targetQueryTCUHasBeenSet = true; + } + + if(jsonValue.ValueExists("NotificationConfiguration")) + { + m_notificationConfiguration = jsonValue.GetObject("NotificationConfiguration"); + + m_notificationConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue ProvisionedCapacityRequest::Jsonize() const +{ + JsonValue payload; + + if(m_targetQueryTCUHasBeenSet) + { + payload.WithInteger("TargetQueryTCU", m_targetQueryTCU); + + } + + if(m_notificationConfigurationHasBeenSet) + { + payload.WithObject("NotificationConfiguration", m_notificationConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/ProvisionedCapacityResponse.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/ProvisionedCapacityResponse.cpp new file mode 100644 index 00000000000..67df51b4ef8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/ProvisionedCapacityResponse.cpp @@ -0,0 +1,88 @@ +/** + * 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 TimestreamQuery +{ +namespace Model +{ + +ProvisionedCapacityResponse::ProvisionedCapacityResponse() : + m_activeQueryTCU(0), + m_activeQueryTCUHasBeenSet(false), + m_notificationConfigurationHasBeenSet(false), + m_lastUpdateHasBeenSet(false) +{ +} + +ProvisionedCapacityResponse::ProvisionedCapacityResponse(JsonView jsonValue) + : ProvisionedCapacityResponse() +{ + *this = jsonValue; +} + +ProvisionedCapacityResponse& ProvisionedCapacityResponse::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ActiveQueryTCU")) + { + m_activeQueryTCU = jsonValue.GetInteger("ActiveQueryTCU"); + + m_activeQueryTCUHasBeenSet = true; + } + + if(jsonValue.ValueExists("NotificationConfiguration")) + { + m_notificationConfiguration = jsonValue.GetObject("NotificationConfiguration"); + + m_notificationConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("LastUpdate")) + { + m_lastUpdate = jsonValue.GetObject("LastUpdate"); + + m_lastUpdateHasBeenSet = true; + } + + return *this; +} + +JsonValue ProvisionedCapacityResponse::Jsonize() const +{ + JsonValue payload; + + if(m_activeQueryTCUHasBeenSet) + { + payload.WithInteger("ActiveQueryTCU", m_activeQueryTCU); + + } + + if(m_notificationConfigurationHasBeenSet) + { + payload.WithObject("NotificationConfiguration", m_notificationConfiguration.Jsonize()); + + } + + if(m_lastUpdateHasBeenSet) + { + payload.WithObject("LastUpdate", m_lastUpdate.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/QueryComputeRequest.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/QueryComputeRequest.cpp new file mode 100644 index 00000000000..4f0f9bd95eb --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/QueryComputeRequest.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace TimestreamQuery +{ +namespace Model +{ + +QueryComputeRequest::QueryComputeRequest() : + m_computeMode(ComputeMode::NOT_SET), + m_computeModeHasBeenSet(false), + m_provisionedCapacityHasBeenSet(false) +{ +} + +QueryComputeRequest::QueryComputeRequest(JsonView jsonValue) + : QueryComputeRequest() +{ + *this = jsonValue; +} + +QueryComputeRequest& QueryComputeRequest::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ComputeMode")) + { + m_computeMode = ComputeModeMapper::GetComputeModeForName(jsonValue.GetString("ComputeMode")); + + m_computeModeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ProvisionedCapacity")) + { + m_provisionedCapacity = jsonValue.GetObject("ProvisionedCapacity"); + + m_provisionedCapacityHasBeenSet = true; + } + + return *this; +} + +JsonValue QueryComputeRequest::Jsonize() const +{ + JsonValue payload; + + if(m_computeModeHasBeenSet) + { + payload.WithString("ComputeMode", ComputeModeMapper::GetNameForComputeMode(m_computeMode)); + } + + if(m_provisionedCapacityHasBeenSet) + { + payload.WithObject("ProvisionedCapacity", m_provisionedCapacity.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/QueryComputeResponse.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/QueryComputeResponse.cpp new file mode 100644 index 00000000000..12338d259fa --- /dev/null +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/QueryComputeResponse.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace TimestreamQuery +{ +namespace Model +{ + +QueryComputeResponse::QueryComputeResponse() : + m_computeMode(ComputeMode::NOT_SET), + m_computeModeHasBeenSet(false), + m_provisionedCapacityHasBeenSet(false) +{ +} + +QueryComputeResponse::QueryComputeResponse(JsonView jsonValue) + : QueryComputeResponse() +{ + *this = jsonValue; +} + +QueryComputeResponse& QueryComputeResponse::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ComputeMode")) + { + m_computeMode = ComputeModeMapper::GetComputeModeForName(jsonValue.GetString("ComputeMode")); + + m_computeModeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ProvisionedCapacity")) + { + m_provisionedCapacity = jsonValue.GetObject("ProvisionedCapacity"); + + m_provisionedCapacityHasBeenSet = true; + } + + return *this; +} + +JsonValue QueryComputeResponse::Jsonize() const +{ + JsonValue payload; + + if(m_computeModeHasBeenSet) + { + payload.WithString("ComputeMode", ComputeModeMapper::GetNameForComputeMode(m_computeMode)); + } + + if(m_provisionedCapacityHasBeenSet) + { + payload.WithObject("ProvisionedCapacity", m_provisionedCapacity.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace TimestreamQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/UpdateAccountSettingsRequest.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/UpdateAccountSettingsRequest.cpp index da2add631e1..55384185482 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/UpdateAccountSettingsRequest.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/UpdateAccountSettingsRequest.cpp @@ -16,7 +16,8 @@ UpdateAccountSettingsRequest::UpdateAccountSettingsRequest() : m_maxQueryTCU(0), m_maxQueryTCUHasBeenSet(false), m_queryPricingModel(QueryPricingModel::NOT_SET), - m_queryPricingModelHasBeenSet(false) + m_queryPricingModelHasBeenSet(false), + m_queryComputeHasBeenSet(false) { } @@ -35,6 +36,12 @@ Aws::String UpdateAccountSettingsRequest::SerializePayload() const payload.WithString("QueryPricingModel", QueryPricingModelMapper::GetNameForQueryPricingModel(m_queryPricingModel)); } + if(m_queryComputeHasBeenSet) + { + payload.WithObject("QueryCompute", m_queryCompute.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/UpdateAccountSettingsResult.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/UpdateAccountSettingsResult.cpp index b48ed352684..9e88d0edbce 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/UpdateAccountSettingsResult.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/UpdateAccountSettingsResult.cpp @@ -44,6 +44,12 @@ UpdateAccountSettingsResult& UpdateAccountSettingsResult::operator =(const Aws:: } + if(jsonValue.ValueExists("QueryCompute")) + { + m_queryCompute = jsonValue.GetObject("QueryCompute"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebClient.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebClient.h index 62dc7c7e567..e44ecd878af 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebClient.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebClient.h @@ -109,6 +109,32 @@ namespace WorkSpacesWeb return SubmitAsync(&WorkSpacesWebClient::AssociateBrowserSettings, request, handler, context); } + /** + *

    Associates a data protection settings resource with a web + * portal.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::AssociateDataProtectionSettingsOutcome AssociateDataProtectionSettings(const Model::AssociateDataProtectionSettingsRequest& request) const; + + /** + * A Callable wrapper for AssociateDataProtectionSettings that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::AssociateDataProtectionSettingsOutcomeCallable AssociateDataProtectionSettingsCallable(const AssociateDataProtectionSettingsRequestT& request) const + { + return SubmitCallable(&WorkSpacesWebClient::AssociateDataProtectionSettings, request); + } + + /** + * An Async wrapper for AssociateDataProtectionSettings that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void AssociateDataProtectionSettingsAsync(const AssociateDataProtectionSettingsRequestT& request, const AssociateDataProtectionSettingsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&WorkSpacesWebClient::AssociateDataProtectionSettings, request, handler, context); + } + /** *

    Associates an IP access settings resource with a web portal.

    See * Also:

    Creates a data protection settings resource that can be associated with a web + * portal.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateDataProtectionSettingsOutcome CreateDataProtectionSettings(const Model::CreateDataProtectionSettingsRequest& request = {}) const; + + /** + * A Callable wrapper for CreateDataProtectionSettings that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateDataProtectionSettingsOutcomeCallable CreateDataProtectionSettingsCallable(const CreateDataProtectionSettingsRequestT& request = {}) const + { + return SubmitCallable(&WorkSpacesWebClient::CreateDataProtectionSettings, request); + } + + /** + * An Async wrapper for CreateDataProtectionSettings that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateDataProtectionSettingsAsync(const CreateDataProtectionSettingsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const CreateDataProtectionSettingsRequestT& request = {}) const + { + return SubmitAsync(&WorkSpacesWebClient::CreateDataProtectionSettings, request, handler, context); + } + /** *

    Creates an identity provider resource that is then associated with a web * portal.

    See Also:

    Deletes data protection settings.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteDataProtectionSettingsOutcome DeleteDataProtectionSettings(const Model::DeleteDataProtectionSettingsRequest& request) const; + + /** + * A Callable wrapper for DeleteDataProtectionSettings that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteDataProtectionSettingsOutcomeCallable DeleteDataProtectionSettingsCallable(const DeleteDataProtectionSettingsRequestT& request) const + { + return SubmitCallable(&WorkSpacesWebClient::DeleteDataProtectionSettings, request); + } + + /** + * An Async wrapper for DeleteDataProtectionSettings that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteDataProtectionSettingsAsync(const DeleteDataProtectionSettingsRequestT& request, const DeleteDataProtectionSettingsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&WorkSpacesWebClient::DeleteDataProtectionSettings, request, handler, context); + } + /** *

    Deletes the identity provider.

    See Also:

    AWS @@ -680,6 +757,32 @@ namespace WorkSpacesWeb return SubmitAsync(&WorkSpacesWebClient::DisassociateBrowserSettings, request, handler, context); } + /** + *

    Disassociates data protection settings from a web portal.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::DisassociateDataProtectionSettingsOutcome DisassociateDataProtectionSettings(const Model::DisassociateDataProtectionSettingsRequest& request) const; + + /** + * A Callable wrapper for DisassociateDataProtectionSettings that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DisassociateDataProtectionSettingsOutcomeCallable DisassociateDataProtectionSettingsCallable(const DisassociateDataProtectionSettingsRequestT& request) const + { + return SubmitCallable(&WorkSpacesWebClient::DisassociateDataProtectionSettings, request); + } + + /** + * An Async wrapper for DisassociateDataProtectionSettings that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DisassociateDataProtectionSettingsAsync(const DisassociateDataProtectionSettingsRequestT& request, const DisassociateDataProtectionSettingsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&WorkSpacesWebClient::DisassociateDataProtectionSettings, request, handler, context); + } + /** *

    Disassociates IP access settings from a web portal.

    See Also:

    * Gets the data protection settings.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetDataProtectionSettingsOutcome GetDataProtectionSettings(const Model::GetDataProtectionSettingsRequest& request) const; + + /** + * A Callable wrapper for GetDataProtectionSettings that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetDataProtectionSettingsOutcomeCallable GetDataProtectionSettingsCallable(const GetDataProtectionSettingsRequestT& request) const + { + return SubmitCallable(&WorkSpacesWebClient::GetDataProtectionSettings, request); + } + + /** + * An Async wrapper for GetDataProtectionSettings that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetDataProtectionSettingsAsync(const GetDataProtectionSettingsRequestT& request, const GetDataProtectionSettingsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&WorkSpacesWebClient::GetDataProtectionSettings, request, handler, context); + } + /** *

    Gets the identity provider.

    See Also:

    AWS @@ -1133,6 +1261,31 @@ namespace WorkSpacesWeb return SubmitAsync(&WorkSpacesWebClient::ListBrowserSettings, request, handler, context); } + /** + *

    Retrieves a list of data protection settings.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListDataProtectionSettingsOutcome ListDataProtectionSettings(const Model::ListDataProtectionSettingsRequest& request = {}) const; + + /** + * A Callable wrapper for ListDataProtectionSettings that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListDataProtectionSettingsOutcomeCallable ListDataProtectionSettingsCallable(const ListDataProtectionSettingsRequestT& request = {}) const + { + return SubmitCallable(&WorkSpacesWebClient::ListDataProtectionSettings, request); + } + + /** + * An Async wrapper for ListDataProtectionSettings that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListDataProtectionSettingsAsync(const ListDataProtectionSettingsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListDataProtectionSettingsRequestT& request = {}) const + { + return SubmitAsync(&WorkSpacesWebClient::ListDataProtectionSettings, request, handler, context); + } + /** *

    Retrieves a list of identity providers for a specific web * portal.

    See Also:

    Updates data protection settings.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateDataProtectionSettingsOutcome UpdateDataProtectionSettings(const Model::UpdateDataProtectionSettingsRequest& request) const; + + /** + * A Callable wrapper for UpdateDataProtectionSettings that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateDataProtectionSettingsOutcomeCallable UpdateDataProtectionSettingsCallable(const UpdateDataProtectionSettingsRequestT& request) const + { + return SubmitCallable(&WorkSpacesWebClient::UpdateDataProtectionSettings, request); + } + + /** + * An Async wrapper for UpdateDataProtectionSettings that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateDataProtectionSettingsAsync(const UpdateDataProtectionSettingsRequestT& request, const UpdateDataProtectionSettingsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&WorkSpacesWebClient::UpdateDataProtectionSettings, request, handler, context); + } + /** *

    Updates the identity provider.

    See Also:

    AWS diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebServiceClientModel.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebServiceClientModel.h index ae308e4411b..eda068ad19a 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/WorkSpacesWebServiceClientModel.h @@ -19,12 +19,14 @@ /* Service model headers required in WorkSpacesWebClient header */ #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -33,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -41,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -48,6 +52,7 @@ #include #include #include +#include #include #include #include @@ -59,6 +64,7 @@ #include #include #include +#include #include #include #include @@ -72,6 +78,7 @@ #include #include #include +#include #include #include #include @@ -82,11 +89,13 @@ #include #include #include +#include #include #include #include #include #include +#include /* End of service model headers required in WorkSpacesWebClient header */ namespace Aws @@ -128,12 +137,14 @@ namespace Aws { /* Service model forward declarations required in WorkSpacesWebClient header */ class AssociateBrowserSettingsRequest; + class AssociateDataProtectionSettingsRequest; class AssociateIpAccessSettingsRequest; class AssociateNetworkSettingsRequest; class AssociateTrustStoreRequest; class AssociateUserAccessLoggingSettingsRequest; class AssociateUserSettingsRequest; class CreateBrowserSettingsRequest; + class CreateDataProtectionSettingsRequest; class CreateIdentityProviderRequest; class CreateIpAccessSettingsRequest; class CreateNetworkSettingsRequest; @@ -142,6 +153,7 @@ namespace Aws class CreateUserAccessLoggingSettingsRequest; class CreateUserSettingsRequest; class DeleteBrowserSettingsRequest; + class DeleteDataProtectionSettingsRequest; class DeleteIdentityProviderRequest; class DeleteIpAccessSettingsRequest; class DeleteNetworkSettingsRequest; @@ -150,6 +162,7 @@ namespace Aws class DeleteUserAccessLoggingSettingsRequest; class DeleteUserSettingsRequest; class DisassociateBrowserSettingsRequest; + class DisassociateDataProtectionSettingsRequest; class DisassociateIpAccessSettingsRequest; class DisassociateNetworkSettingsRequest; class DisassociateTrustStoreRequest; @@ -157,6 +170,7 @@ namespace Aws class DisassociateUserSettingsRequest; class ExpireSessionRequest; class GetBrowserSettingsRequest; + class GetDataProtectionSettingsRequest; class GetIdentityProviderRequest; class GetIpAccessSettingsRequest; class GetNetworkSettingsRequest; @@ -168,6 +182,7 @@ namespace Aws class GetUserAccessLoggingSettingsRequest; class GetUserSettingsRequest; class ListBrowserSettingsRequest; + class ListDataProtectionSettingsRequest; class ListIdentityProvidersRequest; class ListIpAccessSettingsRequest; class ListNetworkSettingsRequest; @@ -181,6 +196,7 @@ namespace Aws class TagResourceRequest; class UntagResourceRequest; class UpdateBrowserSettingsRequest; + class UpdateDataProtectionSettingsRequest; class UpdateIdentityProviderRequest; class UpdateIpAccessSettingsRequest; class UpdateNetworkSettingsRequest; @@ -192,12 +208,14 @@ namespace Aws /* Service model Outcome class definitions */ typedef Aws::Utils::Outcome AssociateBrowserSettingsOutcome; + typedef Aws::Utils::Outcome AssociateDataProtectionSettingsOutcome; typedef Aws::Utils::Outcome AssociateIpAccessSettingsOutcome; typedef Aws::Utils::Outcome AssociateNetworkSettingsOutcome; typedef Aws::Utils::Outcome AssociateTrustStoreOutcome; typedef Aws::Utils::Outcome AssociateUserAccessLoggingSettingsOutcome; typedef Aws::Utils::Outcome AssociateUserSettingsOutcome; typedef Aws::Utils::Outcome CreateBrowserSettingsOutcome; + typedef Aws::Utils::Outcome CreateDataProtectionSettingsOutcome; typedef Aws::Utils::Outcome CreateIdentityProviderOutcome; typedef Aws::Utils::Outcome CreateIpAccessSettingsOutcome; typedef Aws::Utils::Outcome CreateNetworkSettingsOutcome; @@ -206,6 +224,7 @@ namespace Aws typedef Aws::Utils::Outcome CreateUserAccessLoggingSettingsOutcome; typedef Aws::Utils::Outcome CreateUserSettingsOutcome; typedef Aws::Utils::Outcome DeleteBrowserSettingsOutcome; + typedef Aws::Utils::Outcome DeleteDataProtectionSettingsOutcome; typedef Aws::Utils::Outcome DeleteIdentityProviderOutcome; typedef Aws::Utils::Outcome DeleteIpAccessSettingsOutcome; typedef Aws::Utils::Outcome DeleteNetworkSettingsOutcome; @@ -214,6 +233,7 @@ namespace Aws typedef Aws::Utils::Outcome DeleteUserAccessLoggingSettingsOutcome; typedef Aws::Utils::Outcome DeleteUserSettingsOutcome; typedef Aws::Utils::Outcome DisassociateBrowserSettingsOutcome; + typedef Aws::Utils::Outcome DisassociateDataProtectionSettingsOutcome; typedef Aws::Utils::Outcome DisassociateIpAccessSettingsOutcome; typedef Aws::Utils::Outcome DisassociateNetworkSettingsOutcome; typedef Aws::Utils::Outcome DisassociateTrustStoreOutcome; @@ -221,6 +241,7 @@ namespace Aws typedef Aws::Utils::Outcome DisassociateUserSettingsOutcome; typedef Aws::Utils::Outcome ExpireSessionOutcome; typedef Aws::Utils::Outcome GetBrowserSettingsOutcome; + typedef Aws::Utils::Outcome GetDataProtectionSettingsOutcome; typedef Aws::Utils::Outcome GetIdentityProviderOutcome; typedef Aws::Utils::Outcome GetIpAccessSettingsOutcome; typedef Aws::Utils::Outcome GetNetworkSettingsOutcome; @@ -232,6 +253,7 @@ namespace Aws typedef Aws::Utils::Outcome GetUserAccessLoggingSettingsOutcome; typedef Aws::Utils::Outcome GetUserSettingsOutcome; typedef Aws::Utils::Outcome ListBrowserSettingsOutcome; + typedef Aws::Utils::Outcome ListDataProtectionSettingsOutcome; typedef Aws::Utils::Outcome ListIdentityProvidersOutcome; typedef Aws::Utils::Outcome ListIpAccessSettingsOutcome; typedef Aws::Utils::Outcome ListNetworkSettingsOutcome; @@ -245,6 +267,7 @@ namespace Aws typedef Aws::Utils::Outcome TagResourceOutcome; typedef Aws::Utils::Outcome UntagResourceOutcome; typedef Aws::Utils::Outcome UpdateBrowserSettingsOutcome; + typedef Aws::Utils::Outcome UpdateDataProtectionSettingsOutcome; typedef Aws::Utils::Outcome UpdateIdentityProviderOutcome; typedef Aws::Utils::Outcome UpdateIpAccessSettingsOutcome; typedef Aws::Utils::Outcome UpdateNetworkSettingsOutcome; @@ -256,12 +279,14 @@ namespace Aws /* Service model Outcome callable definitions */ typedef std::future AssociateBrowserSettingsOutcomeCallable; + typedef std::future AssociateDataProtectionSettingsOutcomeCallable; typedef std::future AssociateIpAccessSettingsOutcomeCallable; typedef std::future AssociateNetworkSettingsOutcomeCallable; typedef std::future AssociateTrustStoreOutcomeCallable; typedef std::future AssociateUserAccessLoggingSettingsOutcomeCallable; typedef std::future AssociateUserSettingsOutcomeCallable; typedef std::future CreateBrowserSettingsOutcomeCallable; + typedef std::future CreateDataProtectionSettingsOutcomeCallable; typedef std::future CreateIdentityProviderOutcomeCallable; typedef std::future CreateIpAccessSettingsOutcomeCallable; typedef std::future CreateNetworkSettingsOutcomeCallable; @@ -270,6 +295,7 @@ namespace Aws typedef std::future CreateUserAccessLoggingSettingsOutcomeCallable; typedef std::future CreateUserSettingsOutcomeCallable; typedef std::future DeleteBrowserSettingsOutcomeCallable; + typedef std::future DeleteDataProtectionSettingsOutcomeCallable; typedef std::future DeleteIdentityProviderOutcomeCallable; typedef std::future DeleteIpAccessSettingsOutcomeCallable; typedef std::future DeleteNetworkSettingsOutcomeCallable; @@ -278,6 +304,7 @@ namespace Aws typedef std::future DeleteUserAccessLoggingSettingsOutcomeCallable; typedef std::future DeleteUserSettingsOutcomeCallable; typedef std::future DisassociateBrowserSettingsOutcomeCallable; + typedef std::future DisassociateDataProtectionSettingsOutcomeCallable; typedef std::future DisassociateIpAccessSettingsOutcomeCallable; typedef std::future DisassociateNetworkSettingsOutcomeCallable; typedef std::future DisassociateTrustStoreOutcomeCallable; @@ -285,6 +312,7 @@ namespace Aws typedef std::future DisassociateUserSettingsOutcomeCallable; typedef std::future ExpireSessionOutcomeCallable; typedef std::future GetBrowserSettingsOutcomeCallable; + typedef std::future GetDataProtectionSettingsOutcomeCallable; typedef std::future GetIdentityProviderOutcomeCallable; typedef std::future GetIpAccessSettingsOutcomeCallable; typedef std::future GetNetworkSettingsOutcomeCallable; @@ -296,6 +324,7 @@ namespace Aws typedef std::future GetUserAccessLoggingSettingsOutcomeCallable; typedef std::future GetUserSettingsOutcomeCallable; typedef std::future ListBrowserSettingsOutcomeCallable; + typedef std::future ListDataProtectionSettingsOutcomeCallable; typedef std::future ListIdentityProvidersOutcomeCallable; typedef std::future ListIpAccessSettingsOutcomeCallable; typedef std::future ListNetworkSettingsOutcomeCallable; @@ -309,6 +338,7 @@ namespace Aws typedef std::future TagResourceOutcomeCallable; typedef std::future UntagResourceOutcomeCallable; typedef std::future UpdateBrowserSettingsOutcomeCallable; + typedef std::future UpdateDataProtectionSettingsOutcomeCallable; typedef std::future UpdateIdentityProviderOutcomeCallable; typedef std::future UpdateIpAccessSettingsOutcomeCallable; typedef std::future UpdateNetworkSettingsOutcomeCallable; @@ -323,12 +353,14 @@ namespace Aws /* Service model async handlers definitions */ typedef std::function&) > AssociateBrowserSettingsResponseReceivedHandler; + typedef std::function&) > AssociateDataProtectionSettingsResponseReceivedHandler; typedef std::function&) > AssociateIpAccessSettingsResponseReceivedHandler; typedef std::function&) > AssociateNetworkSettingsResponseReceivedHandler; typedef std::function&) > AssociateTrustStoreResponseReceivedHandler; typedef std::function&) > AssociateUserAccessLoggingSettingsResponseReceivedHandler; typedef std::function&) > AssociateUserSettingsResponseReceivedHandler; typedef std::function&) > CreateBrowserSettingsResponseReceivedHandler; + typedef std::function&) > CreateDataProtectionSettingsResponseReceivedHandler; typedef std::function&) > CreateIdentityProviderResponseReceivedHandler; typedef std::function&) > CreateIpAccessSettingsResponseReceivedHandler; typedef std::function&) > CreateNetworkSettingsResponseReceivedHandler; @@ -337,6 +369,7 @@ namespace Aws typedef std::function&) > CreateUserAccessLoggingSettingsResponseReceivedHandler; typedef std::function&) > CreateUserSettingsResponseReceivedHandler; typedef std::function&) > DeleteBrowserSettingsResponseReceivedHandler; + typedef std::function&) > DeleteDataProtectionSettingsResponseReceivedHandler; typedef std::function&) > DeleteIdentityProviderResponseReceivedHandler; typedef std::function&) > DeleteIpAccessSettingsResponseReceivedHandler; typedef std::function&) > DeleteNetworkSettingsResponseReceivedHandler; @@ -345,6 +378,7 @@ namespace Aws typedef std::function&) > DeleteUserAccessLoggingSettingsResponseReceivedHandler; typedef std::function&) > DeleteUserSettingsResponseReceivedHandler; typedef std::function&) > DisassociateBrowserSettingsResponseReceivedHandler; + typedef std::function&) > DisassociateDataProtectionSettingsResponseReceivedHandler; typedef std::function&) > DisassociateIpAccessSettingsResponseReceivedHandler; typedef std::function&) > DisassociateNetworkSettingsResponseReceivedHandler; typedef std::function&) > DisassociateTrustStoreResponseReceivedHandler; @@ -352,6 +386,7 @@ namespace Aws typedef std::function&) > DisassociateUserSettingsResponseReceivedHandler; typedef std::function&) > ExpireSessionResponseReceivedHandler; typedef std::function&) > GetBrowserSettingsResponseReceivedHandler; + typedef std::function&) > GetDataProtectionSettingsResponseReceivedHandler; typedef std::function&) > GetIdentityProviderResponseReceivedHandler; typedef std::function&) > GetIpAccessSettingsResponseReceivedHandler; typedef std::function&) > GetNetworkSettingsResponseReceivedHandler; @@ -363,6 +398,7 @@ namespace Aws typedef std::function&) > GetUserAccessLoggingSettingsResponseReceivedHandler; typedef std::function&) > GetUserSettingsResponseReceivedHandler; typedef std::function&) > ListBrowserSettingsResponseReceivedHandler; + typedef std::function&) > ListDataProtectionSettingsResponseReceivedHandler; typedef std::function&) > ListIdentityProvidersResponseReceivedHandler; typedef std::function&) > ListIpAccessSettingsResponseReceivedHandler; typedef std::function&) > ListNetworkSettingsResponseReceivedHandler; @@ -376,6 +412,7 @@ namespace Aws typedef std::function&) > TagResourceResponseReceivedHandler; typedef std::function&) > UntagResourceResponseReceivedHandler; typedef std::function&) > UpdateBrowserSettingsResponseReceivedHandler; + typedef std::function&) > UpdateDataProtectionSettingsResponseReceivedHandler; typedef std::function&) > UpdateIdentityProviderResponseReceivedHandler; typedef std::function&) > UpdateIpAccessSettingsResponseReceivedHandler; typedef std::function&) > UpdateNetworkSettingsResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/AssociateDataProtectionSettingsRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/AssociateDataProtectionSettingsRequest.h new file mode 100644 index 00000000000..5ad39484b5e --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/AssociateDataProtectionSettingsRequest.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 + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class AssociateDataProtectionSettingsRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API AssociateDataProtectionSettingsRequest(); + + // 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 "AssociateDataProtectionSettings"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + AWS_WORKSPACESWEB_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The ARN of the data protection settings.

    + */ + inline const Aws::String& GetDataProtectionSettingsArn() const{ return m_dataProtectionSettingsArn; } + inline bool DataProtectionSettingsArnHasBeenSet() const { return m_dataProtectionSettingsArnHasBeenSet; } + inline void SetDataProtectionSettingsArn(const Aws::String& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = value; } + inline void SetDataProtectionSettingsArn(Aws::String&& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = std::move(value); } + inline void SetDataProtectionSettingsArn(const char* value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn.assign(value); } + inline AssociateDataProtectionSettingsRequest& WithDataProtectionSettingsArn(const Aws::String& value) { SetDataProtectionSettingsArn(value); return *this;} + inline AssociateDataProtectionSettingsRequest& WithDataProtectionSettingsArn(Aws::String&& value) { SetDataProtectionSettingsArn(std::move(value)); return *this;} + inline AssociateDataProtectionSettingsRequest& WithDataProtectionSettingsArn(const char* value) { SetDataProtectionSettingsArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The ARN of the web portal.

    + */ + inline const Aws::String& GetPortalArn() const{ return m_portalArn; } + inline bool PortalArnHasBeenSet() const { return m_portalArnHasBeenSet; } + inline void SetPortalArn(const Aws::String& value) { m_portalArnHasBeenSet = true; m_portalArn = value; } + inline void SetPortalArn(Aws::String&& value) { m_portalArnHasBeenSet = true; m_portalArn = std::move(value); } + inline void SetPortalArn(const char* value) { m_portalArnHasBeenSet = true; m_portalArn.assign(value); } + inline AssociateDataProtectionSettingsRequest& WithPortalArn(const Aws::String& value) { SetPortalArn(value); return *this;} + inline AssociateDataProtectionSettingsRequest& WithPortalArn(Aws::String&& value) { SetPortalArn(std::move(value)); return *this;} + inline AssociateDataProtectionSettingsRequest& WithPortalArn(const char* value) { SetPortalArn(value); return *this;} + ///@} + private: + + Aws::String m_dataProtectionSettingsArn; + bool m_dataProtectionSettingsArnHasBeenSet = false; + + Aws::String m_portalArn; + bool m_portalArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/AssociateDataProtectionSettingsResult.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/AssociateDataProtectionSettingsResult.h new file mode 100644 index 00000000000..07382df0cf5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/AssociateDataProtectionSettingsResult.h @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + class AssociateDataProtectionSettingsResult + { + public: + AWS_WORKSPACESWEB_API AssociateDataProtectionSettingsResult(); + AWS_WORKSPACESWEB_API AssociateDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result); + AWS_WORKSPACESWEB_API AssociateDataProtectionSettingsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The ARN of the data protection settings resource.

    + */ + inline const Aws::String& GetDataProtectionSettingsArn() const{ return m_dataProtectionSettingsArn; } + inline void SetDataProtectionSettingsArn(const Aws::String& value) { m_dataProtectionSettingsArn = value; } + inline void SetDataProtectionSettingsArn(Aws::String&& value) { m_dataProtectionSettingsArn = std::move(value); } + inline void SetDataProtectionSettingsArn(const char* value) { m_dataProtectionSettingsArn.assign(value); } + inline AssociateDataProtectionSettingsResult& WithDataProtectionSettingsArn(const Aws::String& value) { SetDataProtectionSettingsArn(value); return *this;} + inline AssociateDataProtectionSettingsResult& WithDataProtectionSettingsArn(Aws::String&& value) { SetDataProtectionSettingsArn(std::move(value)); return *this;} + inline AssociateDataProtectionSettingsResult& WithDataProtectionSettingsArn(const char* value) { SetDataProtectionSettingsArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The ARN of the web portal.

    + */ + inline const Aws::String& GetPortalArn() const{ return m_portalArn; } + inline void SetPortalArn(const Aws::String& value) { m_portalArn = value; } + inline void SetPortalArn(Aws::String&& value) { m_portalArn = std::move(value); } + inline void SetPortalArn(const char* value) { m_portalArn.assign(value); } + inline AssociateDataProtectionSettingsResult& WithPortalArn(const Aws::String& value) { SetPortalArn(value); return *this;} + inline AssociateDataProtectionSettingsResult& WithPortalArn(Aws::String&& value) { SetPortalArn(std::move(value)); return *this;} + inline AssociateDataProtectionSettingsResult& WithPortalArn(const char* value) { SetPortalArn(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 AssociateDataProtectionSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline AssociateDataProtectionSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline AssociateDataProtectionSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_dataProtectionSettingsArn; + + Aws::String m_portalArn; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreateDataProtectionSettingsRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreateDataProtectionSettingsRequest.h new file mode 100644 index 00000000000..857b9b8c299 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreateDataProtectionSettingsRequest.h @@ -0,0 +1,173 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class CreateDataProtectionSettingsRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API CreateDataProtectionSettingsRequest(); + + // 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 "CreateDataProtectionSettings"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    Additional encryption context of the data protection settings.

    + */ + inline const Aws::Map& GetAdditionalEncryptionContext() const{ return m_additionalEncryptionContext; } + inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; } + inline void SetAdditionalEncryptionContext(const Aws::Map& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext = value; } + inline void SetAdditionalEncryptionContext(Aws::Map&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext = std::move(value); } + inline CreateDataProtectionSettingsRequest& WithAdditionalEncryptionContext(const Aws::Map& value) { SetAdditionalEncryptionContext(value); return *this;} + inline CreateDataProtectionSettingsRequest& WithAdditionalEncryptionContext(Aws::Map&& value) { SetAdditionalEncryptionContext(std::move(value)); return *this;} + inline CreateDataProtectionSettingsRequest& AddAdditionalEncryptionContext(const Aws::String& key, const Aws::String& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, value); return *this; } + inline CreateDataProtectionSettingsRequest& AddAdditionalEncryptionContext(Aws::String&& key, const Aws::String& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(std::move(key), value); return *this; } + inline CreateDataProtectionSettingsRequest& AddAdditionalEncryptionContext(const Aws::String& key, Aws::String&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, std::move(value)); return *this; } + inline CreateDataProtectionSettingsRequest& AddAdditionalEncryptionContext(Aws::String&& key, Aws::String&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(std::move(key), std::move(value)); return *this; } + inline CreateDataProtectionSettingsRequest& AddAdditionalEncryptionContext(const char* key, Aws::String&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, std::move(value)); return *this; } + inline CreateDataProtectionSettingsRequest& AddAdditionalEncryptionContext(Aws::String&& key, const char* value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(std::move(key), value); return *this; } + inline CreateDataProtectionSettingsRequest& AddAdditionalEncryptionContext(const char* key, const char* value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. Idempotency ensures that an API request completes + * only once. With an idempotent request, if the original request completes + * successfully, subsequent retries with the same client token returns the result + * from the original successful request.

    If you do not specify a client + * token, one is automatically generated by the Amazon Web Services SDK.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline CreateDataProtectionSettingsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline CreateDataProtectionSettingsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline CreateDataProtectionSettingsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The custom managed key of the data protection settings.

    + */ + inline const Aws::String& GetCustomerManagedKey() const{ return m_customerManagedKey; } + inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; } + inline void SetCustomerManagedKey(const Aws::String& value) { m_customerManagedKeyHasBeenSet = true; m_customerManagedKey = value; } + inline void SetCustomerManagedKey(Aws::String&& value) { m_customerManagedKeyHasBeenSet = true; m_customerManagedKey = std::move(value); } + inline void SetCustomerManagedKey(const char* value) { m_customerManagedKeyHasBeenSet = true; m_customerManagedKey.assign(value); } + inline CreateDataProtectionSettingsRequest& WithCustomerManagedKey(const Aws::String& value) { SetCustomerManagedKey(value); return *this;} + inline CreateDataProtectionSettingsRequest& WithCustomerManagedKey(Aws::String&& value) { SetCustomerManagedKey(std::move(value)); return *this;} + inline CreateDataProtectionSettingsRequest& WithCustomerManagedKey(const char* value) { SetCustomerManagedKey(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the data protection settings.

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

    The display name of the data protection settings.

    + */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } + inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } + inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } + inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } + inline CreateDataProtectionSettingsRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + inline CreateDataProtectionSettingsRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + inline CreateDataProtectionSettingsRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + ///@} + + ///@{ + /** + *

    The inline redaction configuration of the data protection settings that will + * be applied to all sessions.

    + */ + inline const InlineRedactionConfiguration& GetInlineRedactionConfiguration() const{ return m_inlineRedactionConfiguration; } + inline bool InlineRedactionConfigurationHasBeenSet() const { return m_inlineRedactionConfigurationHasBeenSet; } + inline void SetInlineRedactionConfiguration(const InlineRedactionConfiguration& value) { m_inlineRedactionConfigurationHasBeenSet = true; m_inlineRedactionConfiguration = value; } + inline void SetInlineRedactionConfiguration(InlineRedactionConfiguration&& value) { m_inlineRedactionConfigurationHasBeenSet = true; m_inlineRedactionConfiguration = std::move(value); } + inline CreateDataProtectionSettingsRequest& WithInlineRedactionConfiguration(const InlineRedactionConfiguration& value) { SetInlineRedactionConfiguration(value); return *this;} + inline CreateDataProtectionSettingsRequest& WithInlineRedactionConfiguration(InlineRedactionConfiguration&& value) { SetInlineRedactionConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The tags to add to the data protection settings resource. A tag is a + * key-value pair.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateDataProtectionSettingsRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + inline CreateDataProtectionSettingsRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + inline CreateDataProtectionSettingsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + inline CreateDataProtectionSettingsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Map m_additionalEncryptionContext; + bool m_additionalEncryptionContextHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_customerManagedKey; + bool m_customerManagedKeyHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_displayName; + bool m_displayNameHasBeenSet = false; + + InlineRedactionConfiguration m_inlineRedactionConfiguration; + bool m_inlineRedactionConfigurationHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreateDataProtectionSettingsResult.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreateDataProtectionSettingsResult.h new file mode 100644 index 00000000000..ad52e86a4a9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CreateDataProtectionSettingsResult.h @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + class CreateDataProtectionSettingsResult + { + public: + AWS_WORKSPACESWEB_API CreateDataProtectionSettingsResult(); + AWS_WORKSPACESWEB_API CreateDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result); + AWS_WORKSPACESWEB_API CreateDataProtectionSettingsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The ARN of the data protection settings resource.

    + */ + inline const Aws::String& GetDataProtectionSettingsArn() const{ return m_dataProtectionSettingsArn; } + inline void SetDataProtectionSettingsArn(const Aws::String& value) { m_dataProtectionSettingsArn = value; } + inline void SetDataProtectionSettingsArn(Aws::String&& value) { m_dataProtectionSettingsArn = std::move(value); } + inline void SetDataProtectionSettingsArn(const char* value) { m_dataProtectionSettingsArn.assign(value); } + inline CreateDataProtectionSettingsResult& WithDataProtectionSettingsArn(const Aws::String& value) { SetDataProtectionSettingsArn(value); return *this;} + inline CreateDataProtectionSettingsResult& WithDataProtectionSettingsArn(Aws::String&& value) { SetDataProtectionSettingsArn(std::move(value)); return *this;} + inline CreateDataProtectionSettingsResult& WithDataProtectionSettingsArn(const char* value) { SetDataProtectionSettingsArn(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 CreateDataProtectionSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateDataProtectionSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateDataProtectionSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_dataProtectionSettingsArn; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CustomPattern.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CustomPattern.h new file mode 100644 index 00000000000..8ee8ca949f2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/CustomPattern.h @@ -0,0 +1,120 @@ +/** + * 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 WorkSpacesWeb +{ +namespace Model +{ + + /** + *

    The pattern configuration for redacting custom data types in + * session.

    See Also:

    AWS + * API Reference

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

    The keyword regex for the customer pattern. After there is a match to the + * pattern regex, the keyword regex is used to search within the proximity of the + * match. If there is a keyword match, then the match is confirmed. If no keyword + * regex is provided, the pattern regex match will automatically be confirmed. The + * format must follow JavaScript regex format. The pattern must be enclosed between + * slashes, and can have flags behind the second slash. For example, “/ab+c/gi”

    + */ + inline const Aws::String& GetKeywordRegex() const{ return m_keywordRegex; } + inline bool KeywordRegexHasBeenSet() const { return m_keywordRegexHasBeenSet; } + inline void SetKeywordRegex(const Aws::String& value) { m_keywordRegexHasBeenSet = true; m_keywordRegex = value; } + inline void SetKeywordRegex(Aws::String&& value) { m_keywordRegexHasBeenSet = true; m_keywordRegex = std::move(value); } + inline void SetKeywordRegex(const char* value) { m_keywordRegexHasBeenSet = true; m_keywordRegex.assign(value); } + inline CustomPattern& WithKeywordRegex(const Aws::String& value) { SetKeywordRegex(value); return *this;} + inline CustomPattern& WithKeywordRegex(Aws::String&& value) { SetKeywordRegex(std::move(value)); return *this;} + inline CustomPattern& WithKeywordRegex(const char* value) { SetKeywordRegex(value); return *this;} + ///@} + + ///@{ + /** + *

    The pattern description for the customer pattern.

    + */ + inline const Aws::String& GetPatternDescription() const{ return m_patternDescription; } + inline bool PatternDescriptionHasBeenSet() const { return m_patternDescriptionHasBeenSet; } + inline void SetPatternDescription(const Aws::String& value) { m_patternDescriptionHasBeenSet = true; m_patternDescription = value; } + inline void SetPatternDescription(Aws::String&& value) { m_patternDescriptionHasBeenSet = true; m_patternDescription = std::move(value); } + inline void SetPatternDescription(const char* value) { m_patternDescriptionHasBeenSet = true; m_patternDescription.assign(value); } + inline CustomPattern& WithPatternDescription(const Aws::String& value) { SetPatternDescription(value); return *this;} + inline CustomPattern& WithPatternDescription(Aws::String&& value) { SetPatternDescription(std::move(value)); return *this;} + inline CustomPattern& WithPatternDescription(const char* value) { SetPatternDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The pattern name for the custom pattern.

    + */ + inline const Aws::String& GetPatternName() const{ return m_patternName; } + inline bool PatternNameHasBeenSet() const { return m_patternNameHasBeenSet; } + inline void SetPatternName(const Aws::String& value) { m_patternNameHasBeenSet = true; m_patternName = value; } + inline void SetPatternName(Aws::String&& value) { m_patternNameHasBeenSet = true; m_patternName = std::move(value); } + inline void SetPatternName(const char* value) { m_patternNameHasBeenSet = true; m_patternName.assign(value); } + inline CustomPattern& WithPatternName(const Aws::String& value) { SetPatternName(value); return *this;} + inline CustomPattern& WithPatternName(Aws::String&& value) { SetPatternName(std::move(value)); return *this;} + inline CustomPattern& WithPatternName(const char* value) { SetPatternName(value); return *this;} + ///@} + + ///@{ + /** + *

    The pattern regex for the customer pattern. The format must follow JavaScript + * regex format. The pattern must be enclosed between slashes, and can have flags + * behind the second slash. For example: “/ab+c/gi”.

    + */ + inline const Aws::String& GetPatternRegex() const{ return m_patternRegex; } + inline bool PatternRegexHasBeenSet() const { return m_patternRegexHasBeenSet; } + inline void SetPatternRegex(const Aws::String& value) { m_patternRegexHasBeenSet = true; m_patternRegex = value; } + inline void SetPatternRegex(Aws::String&& value) { m_patternRegexHasBeenSet = true; m_patternRegex = std::move(value); } + inline void SetPatternRegex(const char* value) { m_patternRegexHasBeenSet = true; m_patternRegex.assign(value); } + inline CustomPattern& WithPatternRegex(const Aws::String& value) { SetPatternRegex(value); return *this;} + inline CustomPattern& WithPatternRegex(Aws::String&& value) { SetPatternRegex(std::move(value)); return *this;} + inline CustomPattern& WithPatternRegex(const char* value) { SetPatternRegex(value); return *this;} + ///@} + private: + + Aws::String m_keywordRegex; + bool m_keywordRegexHasBeenSet = false; + + Aws::String m_patternDescription; + bool m_patternDescriptionHasBeenSet = false; + + Aws::String m_patternName; + bool m_patternNameHasBeenSet = false; + + Aws::String m_patternRegex; + bool m_patternRegexHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DataProtectionSettings.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DataProtectionSettings.h new file mode 100644 index 00000000000..03a45f23324 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DataProtectionSettings.h @@ -0,0 +1,189 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + *

    The data protection settings resource that can be associated with a web + * portal.

    See Also:

    AWS + * API Reference

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

    The additional encryption context of the data protection settings.

    + */ + inline const Aws::Map& GetAdditionalEncryptionContext() const{ return m_additionalEncryptionContext; } + inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; } + inline void SetAdditionalEncryptionContext(const Aws::Map& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext = value; } + inline void SetAdditionalEncryptionContext(Aws::Map&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext = std::move(value); } + inline DataProtectionSettings& WithAdditionalEncryptionContext(const Aws::Map& value) { SetAdditionalEncryptionContext(value); return *this;} + inline DataProtectionSettings& WithAdditionalEncryptionContext(Aws::Map&& value) { SetAdditionalEncryptionContext(std::move(value)); return *this;} + inline DataProtectionSettings& AddAdditionalEncryptionContext(const Aws::String& key, const Aws::String& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, value); return *this; } + inline DataProtectionSettings& AddAdditionalEncryptionContext(Aws::String&& key, const Aws::String& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(std::move(key), value); return *this; } + inline DataProtectionSettings& AddAdditionalEncryptionContext(const Aws::String& key, Aws::String&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, std::move(value)); return *this; } + inline DataProtectionSettings& AddAdditionalEncryptionContext(Aws::String&& key, Aws::String&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(std::move(key), std::move(value)); return *this; } + inline DataProtectionSettings& AddAdditionalEncryptionContext(const char* key, Aws::String&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, std::move(value)); return *this; } + inline DataProtectionSettings& AddAdditionalEncryptionContext(Aws::String&& key, const char* value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(std::move(key), value); return *this; } + inline DataProtectionSettings& AddAdditionalEncryptionContext(const char* key, const char* value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    A list of web portal ARNs that this data protection settings resource is + * associated with.

    + */ + inline const Aws::Vector& GetAssociatedPortalArns() const{ return m_associatedPortalArns; } + inline bool AssociatedPortalArnsHasBeenSet() const { return m_associatedPortalArnsHasBeenSet; } + inline void SetAssociatedPortalArns(const Aws::Vector& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns = value; } + inline void SetAssociatedPortalArns(Aws::Vector&& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns = std::move(value); } + inline DataProtectionSettings& WithAssociatedPortalArns(const Aws::Vector& value) { SetAssociatedPortalArns(value); return *this;} + inline DataProtectionSettings& WithAssociatedPortalArns(Aws::Vector&& value) { SetAssociatedPortalArns(std::move(value)); return *this;} + inline DataProtectionSettings& AddAssociatedPortalArns(const Aws::String& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns.push_back(value); return *this; } + inline DataProtectionSettings& AddAssociatedPortalArns(Aws::String&& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns.push_back(std::move(value)); return *this; } + inline DataProtectionSettings& AddAssociatedPortalArns(const char* value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The creation date timestamp of the data protection settings.

    + */ + inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } + inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } + inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } + inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } + inline DataProtectionSettings& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} + inline DataProtectionSettings& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The customer managed key used to encrypt sensitive information in the data + * protection settings.

    + */ + inline const Aws::String& GetCustomerManagedKey() const{ return m_customerManagedKey; } + inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; } + inline void SetCustomerManagedKey(const Aws::String& value) { m_customerManagedKeyHasBeenSet = true; m_customerManagedKey = value; } + inline void SetCustomerManagedKey(Aws::String&& value) { m_customerManagedKeyHasBeenSet = true; m_customerManagedKey = std::move(value); } + inline void SetCustomerManagedKey(const char* value) { m_customerManagedKeyHasBeenSet = true; m_customerManagedKey.assign(value); } + inline DataProtectionSettings& WithCustomerManagedKey(const Aws::String& value) { SetCustomerManagedKey(value); return *this;} + inline DataProtectionSettings& WithCustomerManagedKey(Aws::String&& value) { SetCustomerManagedKey(std::move(value)); return *this;} + inline DataProtectionSettings& WithCustomerManagedKey(const char* value) { SetCustomerManagedKey(value); return *this;} + ///@} + + ///@{ + /** + *

    The ARN of the data protection settings resource.

    + */ + inline const Aws::String& GetDataProtectionSettingsArn() const{ return m_dataProtectionSettingsArn; } + inline bool DataProtectionSettingsArnHasBeenSet() const { return m_dataProtectionSettingsArnHasBeenSet; } + inline void SetDataProtectionSettingsArn(const Aws::String& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = value; } + inline void SetDataProtectionSettingsArn(Aws::String&& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = std::move(value); } + inline void SetDataProtectionSettingsArn(const char* value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn.assign(value); } + inline DataProtectionSettings& WithDataProtectionSettingsArn(const Aws::String& value) { SetDataProtectionSettingsArn(value); return *this;} + inline DataProtectionSettings& WithDataProtectionSettingsArn(Aws::String&& value) { SetDataProtectionSettingsArn(std::move(value)); return *this;} + inline DataProtectionSettings& WithDataProtectionSettingsArn(const char* value) { SetDataProtectionSettingsArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the data protection settings.

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

    The display name of the data protection settings.

    + */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } + inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } + inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } + inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } + inline DataProtectionSettings& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + inline DataProtectionSettings& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + inline DataProtectionSettings& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + ///@} + + ///@{ + /** + *

    The inline redaction configuration for the data protection settings.

    + */ + inline const InlineRedactionConfiguration& GetInlineRedactionConfiguration() const{ return m_inlineRedactionConfiguration; } + inline bool InlineRedactionConfigurationHasBeenSet() const { return m_inlineRedactionConfigurationHasBeenSet; } + inline void SetInlineRedactionConfiguration(const InlineRedactionConfiguration& value) { m_inlineRedactionConfigurationHasBeenSet = true; m_inlineRedactionConfiguration = value; } + inline void SetInlineRedactionConfiguration(InlineRedactionConfiguration&& value) { m_inlineRedactionConfigurationHasBeenSet = true; m_inlineRedactionConfiguration = std::move(value); } + inline DataProtectionSettings& WithInlineRedactionConfiguration(const InlineRedactionConfiguration& value) { SetInlineRedactionConfiguration(value); return *this;} + inline DataProtectionSettings& WithInlineRedactionConfiguration(InlineRedactionConfiguration&& value) { SetInlineRedactionConfiguration(std::move(value)); return *this;} + ///@} + private: + + Aws::Map m_additionalEncryptionContext; + bool m_additionalEncryptionContextHasBeenSet = false; + + Aws::Vector m_associatedPortalArns; + bool m_associatedPortalArnsHasBeenSet = false; + + Aws::Utils::DateTime m_creationDate; + bool m_creationDateHasBeenSet = false; + + Aws::String m_customerManagedKey; + bool m_customerManagedKeyHasBeenSet = false; + + Aws::String m_dataProtectionSettingsArn; + bool m_dataProtectionSettingsArnHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_displayName; + bool m_displayNameHasBeenSet = false; + + InlineRedactionConfiguration m_inlineRedactionConfiguration; + bool m_inlineRedactionConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DataProtectionSettingsSummary.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DataProtectionSettingsSummary.h new file mode 100644 index 00000000000..4e31f07fd0c --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DataProtectionSettingsSummary.h @@ -0,0 +1,111 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + *

    The summary of the data protection settings.

    See Also:

    AWS + * API Reference

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

    The creation date timestamp of the data protection settings.

    + */ + inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } + inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } + inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } + inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } + inline DataProtectionSettingsSummary& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} + inline DataProtectionSettingsSummary& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The ARN of the data protection settings.

    + */ + inline const Aws::String& GetDataProtectionSettingsArn() const{ return m_dataProtectionSettingsArn; } + inline bool DataProtectionSettingsArnHasBeenSet() const { return m_dataProtectionSettingsArnHasBeenSet; } + inline void SetDataProtectionSettingsArn(const Aws::String& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = value; } + inline void SetDataProtectionSettingsArn(Aws::String&& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = std::move(value); } + inline void SetDataProtectionSettingsArn(const char* value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn.assign(value); } + inline DataProtectionSettingsSummary& WithDataProtectionSettingsArn(const Aws::String& value) { SetDataProtectionSettingsArn(value); return *this;} + inline DataProtectionSettingsSummary& WithDataProtectionSettingsArn(Aws::String&& value) { SetDataProtectionSettingsArn(std::move(value)); return *this;} + inline DataProtectionSettingsSummary& WithDataProtectionSettingsArn(const char* value) { SetDataProtectionSettingsArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the data protection settings.

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

    The display name of the data protection settings.

    + */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } + inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } + inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } + inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } + inline DataProtectionSettingsSummary& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + inline DataProtectionSettingsSummary& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + inline DataProtectionSettingsSummary& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + ///@} + private: + + Aws::Utils::DateTime m_creationDate; + bool m_creationDateHasBeenSet = false; + + Aws::String m_dataProtectionSettingsArn; + bool m_dataProtectionSettingsArnHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_displayName; + bool m_displayNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DeleteDataProtectionSettingsRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DeleteDataProtectionSettingsRequest.h new file mode 100644 index 00000000000..c7110298a40 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DeleteDataProtectionSettingsRequest.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class DeleteDataProtectionSettingsRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API DeleteDataProtectionSettingsRequest(); + + // 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 "DeleteDataProtectionSettings"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The ARN of the data protection settings.

    + */ + inline const Aws::String& GetDataProtectionSettingsArn() const{ return m_dataProtectionSettingsArn; } + inline bool DataProtectionSettingsArnHasBeenSet() const { return m_dataProtectionSettingsArnHasBeenSet; } + inline void SetDataProtectionSettingsArn(const Aws::String& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = value; } + inline void SetDataProtectionSettingsArn(Aws::String&& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = std::move(value); } + inline void SetDataProtectionSettingsArn(const char* value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn.assign(value); } + inline DeleteDataProtectionSettingsRequest& WithDataProtectionSettingsArn(const Aws::String& value) { SetDataProtectionSettingsArn(value); return *this;} + inline DeleteDataProtectionSettingsRequest& WithDataProtectionSettingsArn(Aws::String&& value) { SetDataProtectionSettingsArn(std::move(value)); return *this;} + inline DeleteDataProtectionSettingsRequest& WithDataProtectionSettingsArn(const char* value) { SetDataProtectionSettingsArn(value); return *this;} + ///@} + private: + + Aws::String m_dataProtectionSettingsArn; + bool m_dataProtectionSettingsArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DeleteDataProtectionSettingsResult.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DeleteDataProtectionSettingsResult.h new file mode 100644 index 00000000000..4d5c758392a --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DeleteDataProtectionSettingsResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + class DeleteDataProtectionSettingsResult + { + public: + AWS_WORKSPACESWEB_API DeleteDataProtectionSettingsResult(); + AWS_WORKSPACESWEB_API DeleteDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result); + AWS_WORKSPACESWEB_API DeleteDataProtectionSettingsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DeleteDataProtectionSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteDataProtectionSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteDataProtectionSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DisassociateDataProtectionSettingsRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DisassociateDataProtectionSettingsRequest.h new file mode 100644 index 00000000000..fbfcc0ac0dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DisassociateDataProtectionSettingsRequest.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class DisassociateDataProtectionSettingsRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API DisassociateDataProtectionSettingsRequest(); + + // 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 "DisassociateDataProtectionSettings"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The ARN of the web portal.

    + */ + inline const Aws::String& GetPortalArn() const{ return m_portalArn; } + inline bool PortalArnHasBeenSet() const { return m_portalArnHasBeenSet; } + inline void SetPortalArn(const Aws::String& value) { m_portalArnHasBeenSet = true; m_portalArn = value; } + inline void SetPortalArn(Aws::String&& value) { m_portalArnHasBeenSet = true; m_portalArn = std::move(value); } + inline void SetPortalArn(const char* value) { m_portalArnHasBeenSet = true; m_portalArn.assign(value); } + inline DisassociateDataProtectionSettingsRequest& WithPortalArn(const Aws::String& value) { SetPortalArn(value); return *this;} + inline DisassociateDataProtectionSettingsRequest& WithPortalArn(Aws::String&& value) { SetPortalArn(std::move(value)); return *this;} + inline DisassociateDataProtectionSettingsRequest& WithPortalArn(const char* value) { SetPortalArn(value); return *this;} + ///@} + private: + + Aws::String m_portalArn; + bool m_portalArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DisassociateDataProtectionSettingsResult.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DisassociateDataProtectionSettingsResult.h new file mode 100644 index 00000000000..73e17f93c5c --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/DisassociateDataProtectionSettingsResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + class DisassociateDataProtectionSettingsResult + { + public: + AWS_WORKSPACESWEB_API DisassociateDataProtectionSettingsResult(); + AWS_WORKSPACESWEB_API DisassociateDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result); + AWS_WORKSPACESWEB_API DisassociateDataProtectionSettingsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DisassociateDataProtectionSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DisassociateDataProtectionSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DisassociateDataProtectionSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetDataProtectionSettingsRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetDataProtectionSettingsRequest.h new file mode 100644 index 00000000000..72e4d970319 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/GetDataProtectionSettingsRequest.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class GetDataProtectionSettingsRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API GetDataProtectionSettingsRequest(); + + // 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 "GetDataProtectionSettings"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The ARN of the data protection settings.

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

    The data protection settings.

    + */ + inline const DataProtectionSettings& GetDataProtectionSettings() const{ return m_dataProtectionSettings; } + inline void SetDataProtectionSettings(const DataProtectionSettings& value) { m_dataProtectionSettings = value; } + inline void SetDataProtectionSettings(DataProtectionSettings&& value) { m_dataProtectionSettings = std::move(value); } + inline GetDataProtectionSettingsResult& WithDataProtectionSettings(const DataProtectionSettings& value) { SetDataProtectionSettings(value); return *this;} + inline GetDataProtectionSettingsResult& WithDataProtectionSettings(DataProtectionSettings&& value) { SetDataProtectionSettings(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetDataProtectionSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetDataProtectionSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetDataProtectionSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + DataProtectionSettings m_dataProtectionSettings; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/InlineRedactionConfiguration.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/InlineRedactionConfiguration.h new file mode 100644 index 00000000000..5328477345b --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/InlineRedactionConfiguration.h @@ -0,0 +1,126 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + *

    The configuration for in-session inline redaction.

    See Also:

    + * AWS + * API Reference

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

    The global confidence level for the inline redaction configuration. This + * indicates the certainty of data type matches in the redaction process. + * Confidence level 3 means high confidence, and requires a formatted text pattern + * match in order for content to be redacted. Confidence level 2 means medium + * confidence, and redaction considers both formatted and unformatted text, and + * adds keyword associate to the logic. Confidence level 1 means low confidence, + * and redaction is enforced for both formatted pattern + unformatted pattern + * without keyword. This is applied to patterns that do not have a pattern-level + * confidence level. Defaults to confidence level 2.

    + */ + inline int GetGlobalConfidenceLevel() const{ return m_globalConfidenceLevel; } + inline bool GlobalConfidenceLevelHasBeenSet() const { return m_globalConfidenceLevelHasBeenSet; } + inline void SetGlobalConfidenceLevel(int value) { m_globalConfidenceLevelHasBeenSet = true; m_globalConfidenceLevel = value; } + inline InlineRedactionConfiguration& WithGlobalConfidenceLevel(int value) { SetGlobalConfidenceLevel(value); return *this;} + ///@} + + ///@{ + /** + *

    The global enforced URL configuration for the inline redaction configuration. + * This is applied to patterns that do not have a pattern-level enforced URL + * list.

    + */ + inline const Aws::Vector& GetGlobalEnforcedUrls() const{ return m_globalEnforcedUrls; } + inline bool GlobalEnforcedUrlsHasBeenSet() const { return m_globalEnforcedUrlsHasBeenSet; } + inline void SetGlobalEnforcedUrls(const Aws::Vector& value) { m_globalEnforcedUrlsHasBeenSet = true; m_globalEnforcedUrls = value; } + inline void SetGlobalEnforcedUrls(Aws::Vector&& value) { m_globalEnforcedUrlsHasBeenSet = true; m_globalEnforcedUrls = std::move(value); } + inline InlineRedactionConfiguration& WithGlobalEnforcedUrls(const Aws::Vector& value) { SetGlobalEnforcedUrls(value); return *this;} + inline InlineRedactionConfiguration& WithGlobalEnforcedUrls(Aws::Vector&& value) { SetGlobalEnforcedUrls(std::move(value)); return *this;} + inline InlineRedactionConfiguration& AddGlobalEnforcedUrls(const Aws::String& value) { m_globalEnforcedUrlsHasBeenSet = true; m_globalEnforcedUrls.push_back(value); return *this; } + inline InlineRedactionConfiguration& AddGlobalEnforcedUrls(Aws::String&& value) { m_globalEnforcedUrlsHasBeenSet = true; m_globalEnforcedUrls.push_back(std::move(value)); return *this; } + inline InlineRedactionConfiguration& AddGlobalEnforcedUrls(const char* value) { m_globalEnforcedUrlsHasBeenSet = true; m_globalEnforcedUrls.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The global exempt URL configuration for the inline redaction configuration. + * This is applied to patterns that do not have a pattern-level exempt URL + * list.

    + */ + inline const Aws::Vector& GetGlobalExemptUrls() const{ return m_globalExemptUrls; } + inline bool GlobalExemptUrlsHasBeenSet() const { return m_globalExemptUrlsHasBeenSet; } + inline void SetGlobalExemptUrls(const Aws::Vector& value) { m_globalExemptUrlsHasBeenSet = true; m_globalExemptUrls = value; } + inline void SetGlobalExemptUrls(Aws::Vector&& value) { m_globalExemptUrlsHasBeenSet = true; m_globalExemptUrls = std::move(value); } + inline InlineRedactionConfiguration& WithGlobalExemptUrls(const Aws::Vector& value) { SetGlobalExemptUrls(value); return *this;} + inline InlineRedactionConfiguration& WithGlobalExemptUrls(Aws::Vector&& value) { SetGlobalExemptUrls(std::move(value)); return *this;} + inline InlineRedactionConfiguration& AddGlobalExemptUrls(const Aws::String& value) { m_globalExemptUrlsHasBeenSet = true; m_globalExemptUrls.push_back(value); return *this; } + inline InlineRedactionConfiguration& AddGlobalExemptUrls(Aws::String&& value) { m_globalExemptUrlsHasBeenSet = true; m_globalExemptUrls.push_back(std::move(value)); return *this; } + inline InlineRedactionConfiguration& AddGlobalExemptUrls(const char* value) { m_globalExemptUrlsHasBeenSet = true; m_globalExemptUrls.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The inline redaction patterns to be enabled for the inline redaction + * configuration.

    + */ + inline const Aws::Vector& GetInlineRedactionPatterns() const{ return m_inlineRedactionPatterns; } + inline bool InlineRedactionPatternsHasBeenSet() const { return m_inlineRedactionPatternsHasBeenSet; } + inline void SetInlineRedactionPatterns(const Aws::Vector& value) { m_inlineRedactionPatternsHasBeenSet = true; m_inlineRedactionPatterns = value; } + inline void SetInlineRedactionPatterns(Aws::Vector&& value) { m_inlineRedactionPatternsHasBeenSet = true; m_inlineRedactionPatterns = std::move(value); } + inline InlineRedactionConfiguration& WithInlineRedactionPatterns(const Aws::Vector& value) { SetInlineRedactionPatterns(value); return *this;} + inline InlineRedactionConfiguration& WithInlineRedactionPatterns(Aws::Vector&& value) { SetInlineRedactionPatterns(std::move(value)); return *this;} + inline InlineRedactionConfiguration& AddInlineRedactionPatterns(const InlineRedactionPattern& value) { m_inlineRedactionPatternsHasBeenSet = true; m_inlineRedactionPatterns.push_back(value); return *this; } + inline InlineRedactionConfiguration& AddInlineRedactionPatterns(InlineRedactionPattern&& value) { m_inlineRedactionPatternsHasBeenSet = true; m_inlineRedactionPatterns.push_back(std::move(value)); return *this; } + ///@} + private: + + int m_globalConfidenceLevel; + bool m_globalConfidenceLevelHasBeenSet = false; + + Aws::Vector m_globalEnforcedUrls; + bool m_globalEnforcedUrlsHasBeenSet = false; + + Aws::Vector m_globalExemptUrls; + bool m_globalExemptUrlsHasBeenSet = false; + + Aws::Vector m_inlineRedactionPatterns; + bool m_inlineRedactionPatternsHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/InlineRedactionPattern.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/InlineRedactionPattern.h new file mode 100644 index 00000000000..da1645f3056 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/InlineRedactionPattern.h @@ -0,0 +1,157 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + *

    The set of patterns that determine the data types redacted in + * session.

    See Also:

    AWS + * API Reference

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

    The built-in pattern from the list of preconfigured patterns. Either a + * customPattern or builtInPatternId is required.

    + */ + inline const Aws::String& GetBuiltInPatternId() const{ return m_builtInPatternId; } + inline bool BuiltInPatternIdHasBeenSet() const { return m_builtInPatternIdHasBeenSet; } + inline void SetBuiltInPatternId(const Aws::String& value) { m_builtInPatternIdHasBeenSet = true; m_builtInPatternId = value; } + inline void SetBuiltInPatternId(Aws::String&& value) { m_builtInPatternIdHasBeenSet = true; m_builtInPatternId = std::move(value); } + inline void SetBuiltInPatternId(const char* value) { m_builtInPatternIdHasBeenSet = true; m_builtInPatternId.assign(value); } + inline InlineRedactionPattern& WithBuiltInPatternId(const Aws::String& value) { SetBuiltInPatternId(value); return *this;} + inline InlineRedactionPattern& WithBuiltInPatternId(Aws::String&& value) { SetBuiltInPatternId(std::move(value)); return *this;} + inline InlineRedactionPattern& WithBuiltInPatternId(const char* value) { SetBuiltInPatternId(value); return *this;} + ///@} + + ///@{ + /** + *

    The confidence level for inline redaction pattern. This indicates the + * certainty of data type matches in the redaction process. Confidence level 3 + * means high confidence, and requires a formatted text pattern match in order for + * content to be redacted. Confidence level 2 means medium confidence, and + * redaction considers both formatted and unformatted text, and adds keyword + * associate to the logic. Confidence level 1 means low confidence, and redaction + * is enforced for both formatted pattern + unformatted pattern without keyword. + * This overrides the global confidence level.

    + */ + inline int GetConfidenceLevel() const{ return m_confidenceLevel; } + inline bool ConfidenceLevelHasBeenSet() const { return m_confidenceLevelHasBeenSet; } + inline void SetConfidenceLevel(int value) { m_confidenceLevelHasBeenSet = true; m_confidenceLevel = value; } + inline InlineRedactionPattern& WithConfidenceLevel(int value) { SetConfidenceLevel(value); return *this;} + ///@} + + ///@{ + /** + *

    >The configuration for a custom pattern. Either a customPattern or + * builtInPatternId is required.

    + */ + inline const CustomPattern& GetCustomPattern() const{ return m_customPattern; } + inline bool CustomPatternHasBeenSet() const { return m_customPatternHasBeenSet; } + inline void SetCustomPattern(const CustomPattern& value) { m_customPatternHasBeenSet = true; m_customPattern = value; } + inline void SetCustomPattern(CustomPattern&& value) { m_customPatternHasBeenSet = true; m_customPattern = std::move(value); } + inline InlineRedactionPattern& WithCustomPattern(const CustomPattern& value) { SetCustomPattern(value); return *this;} + inline InlineRedactionPattern& WithCustomPattern(CustomPattern&& value) { SetCustomPattern(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The enforced URL configuration for the inline redaction pattern. This will + * override the global enforced URL configuration.

    + */ + inline const Aws::Vector& GetEnforcedUrls() const{ return m_enforcedUrls; } + inline bool EnforcedUrlsHasBeenSet() const { return m_enforcedUrlsHasBeenSet; } + inline void SetEnforcedUrls(const Aws::Vector& value) { m_enforcedUrlsHasBeenSet = true; m_enforcedUrls = value; } + inline void SetEnforcedUrls(Aws::Vector&& value) { m_enforcedUrlsHasBeenSet = true; m_enforcedUrls = std::move(value); } + inline InlineRedactionPattern& WithEnforcedUrls(const Aws::Vector& value) { SetEnforcedUrls(value); return *this;} + inline InlineRedactionPattern& WithEnforcedUrls(Aws::Vector&& value) { SetEnforcedUrls(std::move(value)); return *this;} + inline InlineRedactionPattern& AddEnforcedUrls(const Aws::String& value) { m_enforcedUrlsHasBeenSet = true; m_enforcedUrls.push_back(value); return *this; } + inline InlineRedactionPattern& AddEnforcedUrls(Aws::String&& value) { m_enforcedUrlsHasBeenSet = true; m_enforcedUrls.push_back(std::move(value)); return *this; } + inline InlineRedactionPattern& AddEnforcedUrls(const char* value) { m_enforcedUrlsHasBeenSet = true; m_enforcedUrls.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The exempt URL configuration for the inline redaction pattern. This will + * override the global exempt URL configuration for the inline redaction + * pattern.

    + */ + inline const Aws::Vector& GetExemptUrls() const{ return m_exemptUrls; } + inline bool ExemptUrlsHasBeenSet() const { return m_exemptUrlsHasBeenSet; } + inline void SetExemptUrls(const Aws::Vector& value) { m_exemptUrlsHasBeenSet = true; m_exemptUrls = value; } + inline void SetExemptUrls(Aws::Vector&& value) { m_exemptUrlsHasBeenSet = true; m_exemptUrls = std::move(value); } + inline InlineRedactionPattern& WithExemptUrls(const Aws::Vector& value) { SetExemptUrls(value); return *this;} + inline InlineRedactionPattern& WithExemptUrls(Aws::Vector&& value) { SetExemptUrls(std::move(value)); return *this;} + inline InlineRedactionPattern& AddExemptUrls(const Aws::String& value) { m_exemptUrlsHasBeenSet = true; m_exemptUrls.push_back(value); return *this; } + inline InlineRedactionPattern& AddExemptUrls(Aws::String&& value) { m_exemptUrlsHasBeenSet = true; m_exemptUrls.push_back(std::move(value)); return *this; } + inline InlineRedactionPattern& AddExemptUrls(const char* value) { m_exemptUrlsHasBeenSet = true; m_exemptUrls.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The redaction placeholder that will replace the redacted text in session for + * the inline redaction pattern.

    + */ + inline const RedactionPlaceHolder& GetRedactionPlaceHolder() const{ return m_redactionPlaceHolder; } + inline bool RedactionPlaceHolderHasBeenSet() const { return m_redactionPlaceHolderHasBeenSet; } + inline void SetRedactionPlaceHolder(const RedactionPlaceHolder& value) { m_redactionPlaceHolderHasBeenSet = true; m_redactionPlaceHolder = value; } + inline void SetRedactionPlaceHolder(RedactionPlaceHolder&& value) { m_redactionPlaceHolderHasBeenSet = true; m_redactionPlaceHolder = std::move(value); } + inline InlineRedactionPattern& WithRedactionPlaceHolder(const RedactionPlaceHolder& value) { SetRedactionPlaceHolder(value); return *this;} + inline InlineRedactionPattern& WithRedactionPlaceHolder(RedactionPlaceHolder&& value) { SetRedactionPlaceHolder(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_builtInPatternId; + bool m_builtInPatternIdHasBeenSet = false; + + int m_confidenceLevel; + bool m_confidenceLevelHasBeenSet = false; + + CustomPattern m_customPattern; + bool m_customPatternHasBeenSet = false; + + Aws::Vector m_enforcedUrls; + bool m_enforcedUrlsHasBeenSet = false; + + Aws::Vector m_exemptUrls; + bool m_exemptUrlsHasBeenSet = false; + + RedactionPlaceHolder m_redactionPlaceHolder; + bool m_redactionPlaceHolderHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListDataProtectionSettingsRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListDataProtectionSettingsRequest.h new file mode 100644 index 00000000000..35e8b6ea0c5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListDataProtectionSettingsRequest.h @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class ListDataProtectionSettingsRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API ListDataProtectionSettingsRequest(); + + // 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 "ListDataProtectionSettings"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + AWS_WORKSPACESWEB_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

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

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

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

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListDataProtectionSettingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListDataProtectionSettingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListDataProtectionSettingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListDataProtectionSettingsResult.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListDataProtectionSettingsResult.h new file mode 100644 index 00000000000..514b7e8415e --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/ListDataProtectionSettingsResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + class ListDataProtectionSettingsResult + { + public: + AWS_WORKSPACESWEB_API ListDataProtectionSettingsResult(); + AWS_WORKSPACESWEB_API ListDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result); + AWS_WORKSPACESWEB_API ListDataProtectionSettingsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data protection settings.

    + */ + inline const Aws::Vector& GetDataProtectionSettings() const{ return m_dataProtectionSettings; } + inline void SetDataProtectionSettings(const Aws::Vector& value) { m_dataProtectionSettings = value; } + inline void SetDataProtectionSettings(Aws::Vector&& value) { m_dataProtectionSettings = std::move(value); } + inline ListDataProtectionSettingsResult& WithDataProtectionSettings(const Aws::Vector& value) { SetDataProtectionSettings(value); return *this;} + inline ListDataProtectionSettingsResult& WithDataProtectionSettings(Aws::Vector&& value) { SetDataProtectionSettings(std::move(value)); return *this;} + inline ListDataProtectionSettingsResult& AddDataProtectionSettings(const DataProtectionSettingsSummary& value) { m_dataProtectionSettings.push_back(value); return *this; } + inline ListDataProtectionSettingsResult& AddDataProtectionSettings(DataProtectionSettingsSummary&& value) { m_dataProtectionSettings.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

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

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListDataProtectionSettingsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListDataProtectionSettingsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListDataProtectionSettingsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListDataProtectionSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListDataProtectionSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListDataProtectionSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_dataProtectionSettings; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Portal.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Portal.h index 244fa55cef3..9c0cb5e3480 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Portal.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/Portal.h @@ -136,6 +136,20 @@ namespace Model inline Portal& WithCustomerManagedKey(const char* value) { SetCustomerManagedKey(value); return *this;} ///@} + ///@{ + /** + *

    The ARN of the data protection settings.

    + */ + inline const Aws::String& GetDataProtectionSettingsArn() const{ return m_dataProtectionSettingsArn; } + inline bool DataProtectionSettingsArnHasBeenSet() const { return m_dataProtectionSettingsArnHasBeenSet; } + inline void SetDataProtectionSettingsArn(const Aws::String& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = value; } + inline void SetDataProtectionSettingsArn(Aws::String&& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = std::move(value); } + inline void SetDataProtectionSettingsArn(const char* value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn.assign(value); } + inline Portal& WithDataProtectionSettingsArn(const Aws::String& value) { SetDataProtectionSettingsArn(value); return *this;} + inline Portal& WithDataProtectionSettingsArn(Aws::String&& value) { SetDataProtectionSettingsArn(std::move(value)); return *this;} + inline Portal& WithDataProtectionSettingsArn(const char* value) { SetDataProtectionSettingsArn(value); return *this;} + ///@} + ///@{ /** *

    The name of the web portal.

    @@ -329,6 +343,9 @@ namespace Model Aws::String m_customerManagedKey; bool m_customerManagedKeyHasBeenSet = false; + Aws::String m_dataProtectionSettingsArn; + bool m_dataProtectionSettingsArnHasBeenSet = false; + Aws::String m_displayName; bool m_displayNameHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/PortalSummary.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/PortalSummary.h index 74464a8f078..a920f180194 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/PortalSummary.h +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/PortalSummary.h @@ -101,6 +101,20 @@ namespace Model inline PortalSummary& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    The ARN of the data protection settings.

    + */ + inline const Aws::String& GetDataProtectionSettingsArn() const{ return m_dataProtectionSettingsArn; } + inline bool DataProtectionSettingsArnHasBeenSet() const { return m_dataProtectionSettingsArnHasBeenSet; } + inline void SetDataProtectionSettingsArn(const Aws::String& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = value; } + inline void SetDataProtectionSettingsArn(Aws::String&& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = std::move(value); } + inline void SetDataProtectionSettingsArn(const char* value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn.assign(value); } + inline PortalSummary& WithDataProtectionSettingsArn(const Aws::String& value) { SetDataProtectionSettingsArn(value); return *this;} + inline PortalSummary& WithDataProtectionSettingsArn(Aws::String&& value) { SetDataProtectionSettingsArn(std::move(value)); return *this;} + inline PortalSummary& WithDataProtectionSettingsArn(const char* value) { SetDataProtectionSettingsArn(value); return *this;} + ///@} + ///@{ /** *

    The name of the web portal.

    @@ -274,6 +288,9 @@ namespace Model Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; + Aws::String m_dataProtectionSettingsArn; + bool m_dataProtectionSettingsArnHasBeenSet = false; + Aws::String m_displayName; bool m_displayNameHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/RedactionPlaceHolder.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/RedactionPlaceHolder.h new file mode 100644 index 00000000000..5926ecbf7e8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/RedactionPlaceHolder.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + + /** + *

    The redaction placeholder that will replace the redacted text in + * session.

    See Also:

    AWS + * API Reference

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

    The redaction placeholder text that will replace the redacted text in session + * for the custom text redaction placeholder type.

    + */ + inline const Aws::String& GetRedactionPlaceHolderText() const{ return m_redactionPlaceHolderText; } + inline bool RedactionPlaceHolderTextHasBeenSet() const { return m_redactionPlaceHolderTextHasBeenSet; } + inline void SetRedactionPlaceHolderText(const Aws::String& value) { m_redactionPlaceHolderTextHasBeenSet = true; m_redactionPlaceHolderText = value; } + inline void SetRedactionPlaceHolderText(Aws::String&& value) { m_redactionPlaceHolderTextHasBeenSet = true; m_redactionPlaceHolderText = std::move(value); } + inline void SetRedactionPlaceHolderText(const char* value) { m_redactionPlaceHolderTextHasBeenSet = true; m_redactionPlaceHolderText.assign(value); } + inline RedactionPlaceHolder& WithRedactionPlaceHolderText(const Aws::String& value) { SetRedactionPlaceHolderText(value); return *this;} + inline RedactionPlaceHolder& WithRedactionPlaceHolderText(Aws::String&& value) { SetRedactionPlaceHolderText(std::move(value)); return *this;} + inline RedactionPlaceHolder& WithRedactionPlaceHolderText(const char* value) { SetRedactionPlaceHolderText(value); return *this;} + ///@} + + ///@{ + /** + *

    The redaction placeholder type that will replace the redacted text in + * session.

    + */ + inline const RedactionPlaceHolderType& GetRedactionPlaceHolderType() const{ return m_redactionPlaceHolderType; } + inline bool RedactionPlaceHolderTypeHasBeenSet() const { return m_redactionPlaceHolderTypeHasBeenSet; } + inline void SetRedactionPlaceHolderType(const RedactionPlaceHolderType& value) { m_redactionPlaceHolderTypeHasBeenSet = true; m_redactionPlaceHolderType = value; } + inline void SetRedactionPlaceHolderType(RedactionPlaceHolderType&& value) { m_redactionPlaceHolderTypeHasBeenSet = true; m_redactionPlaceHolderType = std::move(value); } + inline RedactionPlaceHolder& WithRedactionPlaceHolderType(const RedactionPlaceHolderType& value) { SetRedactionPlaceHolderType(value); return *this;} + inline RedactionPlaceHolder& WithRedactionPlaceHolderType(RedactionPlaceHolderType&& value) { SetRedactionPlaceHolderType(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_redactionPlaceHolderText; + bool m_redactionPlaceHolderTextHasBeenSet = false; + + RedactionPlaceHolderType m_redactionPlaceHolderType; + bool m_redactionPlaceHolderTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/RedactionPlaceHolderType.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/RedactionPlaceHolderType.h new file mode 100644 index 00000000000..3453406c3b9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/RedactionPlaceHolderType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + enum class RedactionPlaceHolderType + { + NOT_SET, + CustomText + }; + +namespace RedactionPlaceHolderTypeMapper +{ +AWS_WORKSPACESWEB_API RedactionPlaceHolderType GetRedactionPlaceHolderTypeForName(const Aws::String& name); + +AWS_WORKSPACESWEB_API Aws::String GetNameForRedactionPlaceHolderType(RedactionPlaceHolderType value); +} // namespace RedactionPlaceHolderTypeMapper +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdateDataProtectionSettingsRequest.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdateDataProtectionSettingsRequest.h new file mode 100644 index 00000000000..d5a21f862f6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdateDataProtectionSettingsRequest.h @@ -0,0 +1,130 @@ +/** + * 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 WorkSpacesWeb +{ +namespace Model +{ + + /** + */ + class UpdateDataProtectionSettingsRequest : public WorkSpacesWebRequest + { + public: + AWS_WORKSPACESWEB_API UpdateDataProtectionSettingsRequest(); + + // 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 "UpdateDataProtectionSettings"; } + + AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. Idempotency ensures that an API request completes + * only once. With an idempotent request, if the original request completes + * successfully, subsequent retries with the same client token return the result + * from the original successful request.

    If you do not specify a client + * token, one is automatically generated by the Amazon Web Services SDK.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline UpdateDataProtectionSettingsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline UpdateDataProtectionSettingsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline UpdateDataProtectionSettingsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The ARN of the data protection settings.

    + */ + inline const Aws::String& GetDataProtectionSettingsArn() const{ return m_dataProtectionSettingsArn; } + inline bool DataProtectionSettingsArnHasBeenSet() const { return m_dataProtectionSettingsArnHasBeenSet; } + inline void SetDataProtectionSettingsArn(const Aws::String& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = value; } + inline void SetDataProtectionSettingsArn(Aws::String&& value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn = std::move(value); } + inline void SetDataProtectionSettingsArn(const char* value) { m_dataProtectionSettingsArnHasBeenSet = true; m_dataProtectionSettingsArn.assign(value); } + inline UpdateDataProtectionSettingsRequest& WithDataProtectionSettingsArn(const Aws::String& value) { SetDataProtectionSettingsArn(value); return *this;} + inline UpdateDataProtectionSettingsRequest& WithDataProtectionSettingsArn(Aws::String&& value) { SetDataProtectionSettingsArn(std::move(value)); return *this;} + inline UpdateDataProtectionSettingsRequest& WithDataProtectionSettingsArn(const char* value) { SetDataProtectionSettingsArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the data protection settings.

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

    The display name of the data protection settings.

    + */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } + inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } + inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } + inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } + inline UpdateDataProtectionSettingsRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + inline UpdateDataProtectionSettingsRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + inline UpdateDataProtectionSettingsRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + ///@} + + ///@{ + /** + *

    The inline redaction configuration of the data protection settings that will + * be applied to all sessions.

    + */ + inline const InlineRedactionConfiguration& GetInlineRedactionConfiguration() const{ return m_inlineRedactionConfiguration; } + inline bool InlineRedactionConfigurationHasBeenSet() const { return m_inlineRedactionConfigurationHasBeenSet; } + inline void SetInlineRedactionConfiguration(const InlineRedactionConfiguration& value) { m_inlineRedactionConfigurationHasBeenSet = true; m_inlineRedactionConfiguration = value; } + inline void SetInlineRedactionConfiguration(InlineRedactionConfiguration&& value) { m_inlineRedactionConfigurationHasBeenSet = true; m_inlineRedactionConfiguration = std::move(value); } + inline UpdateDataProtectionSettingsRequest& WithInlineRedactionConfiguration(const InlineRedactionConfiguration& value) { SetInlineRedactionConfiguration(value); return *this;} + inline UpdateDataProtectionSettingsRequest& WithInlineRedactionConfiguration(InlineRedactionConfiguration&& value) { SetInlineRedactionConfiguration(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_dataProtectionSettingsArn; + bool m_dataProtectionSettingsArnHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_displayName; + bool m_displayNameHasBeenSet = false; + + InlineRedactionConfiguration m_inlineRedactionConfiguration; + bool m_inlineRedactionConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdateDataProtectionSettingsResult.h b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdateDataProtectionSettingsResult.h new file mode 100644 index 00000000000..23318fff94d --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/include/aws/workspaces-web/model/UpdateDataProtectionSettingsResult.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace WorkSpacesWeb +{ +namespace Model +{ + class UpdateDataProtectionSettingsResult + { + public: + AWS_WORKSPACESWEB_API UpdateDataProtectionSettingsResult(); + AWS_WORKSPACESWEB_API UpdateDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result); + AWS_WORKSPACESWEB_API UpdateDataProtectionSettingsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data protection settings.

    + */ + inline const DataProtectionSettings& GetDataProtectionSettings() const{ return m_dataProtectionSettings; } + inline void SetDataProtectionSettings(const DataProtectionSettings& value) { m_dataProtectionSettings = value; } + inline void SetDataProtectionSettings(DataProtectionSettings&& value) { m_dataProtectionSettings = std::move(value); } + inline UpdateDataProtectionSettingsResult& WithDataProtectionSettings(const DataProtectionSettings& value) { SetDataProtectionSettings(value); return *this;} + inline UpdateDataProtectionSettingsResult& WithDataProtectionSettings(DataProtectionSettings&& value) { SetDataProtectionSettings(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateDataProtectionSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateDataProtectionSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateDataProtectionSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + DataProtectionSettings m_dataProtectionSettings; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp index 42adbbf85f0..98342d07f88 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp @@ -22,12 +22,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -36,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -44,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -51,6 +55,7 @@ #include #include #include +#include #include #include #include @@ -62,6 +67,7 @@ #include #include #include +#include #include #include #include @@ -75,6 +81,7 @@ #include #include #include +#include #include #include #include @@ -264,6 +271,45 @@ AssociateBrowserSettingsOutcome WorkSpacesWebClient::AssociateBrowserSettings(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +AssociateDataProtectionSettingsOutcome WorkSpacesWebClient::AssociateDataProtectionSettings(const AssociateDataProtectionSettingsRequest& request) const +{ + AWS_OPERATION_GUARD(AssociateDataProtectionSettings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DataProtectionSettingsArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("AssociateDataProtectionSettings", "Required field: DataProtectionSettingsArn, is not set"); + return AssociateDataProtectionSettingsOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataProtectionSettingsArn]", false)); + } + if (!request.PortalArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("AssociateDataProtectionSettings", "Required field: PortalArn, is not set"); + return AssociateDataProtectionSettingsOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PortalArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, AssociateDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateDataProtectionSettings", + {{ 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( + [&]()-> AssociateDataProtectionSettingsOutcome { + 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, AssociateDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/portals/"); + endpointResolutionOutcome.GetResult().AddPathSegments(request.GetPortalArn()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dataProtectionSettings"); + return AssociateDataProtectionSettingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + AssociateIpAccessSettingsOutcome WorkSpacesWebClient::AssociateIpAccessSettings(const AssociateIpAccessSettingsRequest& request) const { AWS_OPERATION_GUARD(AssociateIpAccessSettings); @@ -486,6 +532,33 @@ CreateBrowserSettingsOutcome WorkSpacesWebClient::CreateBrowserSettings(const Cr {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateDataProtectionSettingsOutcome WorkSpacesWebClient::CreateDataProtectionSettings(const CreateDataProtectionSettingsRequest& request) const +{ + AWS_OPERATION_GUARD(CreateDataProtectionSettings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateDataProtectionSettings", + {{ 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( + [&]()-> CreateDataProtectionSettingsOutcome { + 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, CreateDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dataProtectionSettings"); + return CreateDataProtectionSettingsOutcome(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()}}); +} + CreateIdentityProviderOutcome WorkSpacesWebClient::CreateIdentityProvider(const CreateIdentityProviderRequest& request) const { AWS_OPERATION_GUARD(CreateIdentityProvider); @@ -708,6 +781,39 @@ DeleteBrowserSettingsOutcome WorkSpacesWebClient::DeleteBrowserSettings(const De {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteDataProtectionSettingsOutcome WorkSpacesWebClient::DeleteDataProtectionSettings(const DeleteDataProtectionSettingsRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteDataProtectionSettings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DataProtectionSettingsArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteDataProtectionSettings", "Required field: DataProtectionSettingsArn, is not set"); + return DeleteDataProtectionSettingsOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataProtectionSettingsArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteDataProtectionSettings", + {{ 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( + [&]()-> DeleteDataProtectionSettingsOutcome { + 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, DeleteDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dataProtectionSettings/"); + endpointResolutionOutcome.GetResult().AddPathSegments(request.GetDataProtectionSettingsArn()); + return DeleteDataProtectionSettingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteIdentityProviderOutcome WorkSpacesWebClient::DeleteIdentityProvider(const DeleteIdentityProviderRequest& request) const { AWS_OPERATION_GUARD(DeleteIdentityProvider); @@ -973,6 +1079,40 @@ DisassociateBrowserSettingsOutcome WorkSpacesWebClient::DisassociateBrowserSetti {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DisassociateDataProtectionSettingsOutcome WorkSpacesWebClient::DisassociateDataProtectionSettings(const DisassociateDataProtectionSettingsRequest& request) const +{ + AWS_OPERATION_GUARD(DisassociateDataProtectionSettings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PortalArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateDataProtectionSettings", "Required field: PortalArn, is not set"); + return DisassociateDataProtectionSettingsOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PortalArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DisassociateDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateDataProtectionSettings", + {{ 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( + [&]()-> DisassociateDataProtectionSettingsOutcome { + 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, DisassociateDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/portals/"); + endpointResolutionOutcome.GetResult().AddPathSegments(request.GetPortalArn()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dataProtectionSettings"); + return DisassociateDataProtectionSettingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DisassociateIpAccessSettingsOutcome WorkSpacesWebClient::DisassociateIpAccessSettings(const DisassociateIpAccessSettingsRequest& request) const { AWS_OPERATION_GUARD(DisassociateIpAccessSettings); @@ -1216,6 +1356,39 @@ GetBrowserSettingsOutcome WorkSpacesWebClient::GetBrowserSettings(const GetBrows {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetDataProtectionSettingsOutcome WorkSpacesWebClient::GetDataProtectionSettings(const GetDataProtectionSettingsRequest& request) const +{ + AWS_OPERATION_GUARD(GetDataProtectionSettings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DataProtectionSettingsArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetDataProtectionSettings", "Required field: DataProtectionSettingsArn, is not set"); + return GetDataProtectionSettingsOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataProtectionSettingsArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetDataProtectionSettings", + {{ 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( + [&]()-> GetDataProtectionSettingsOutcome { + 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, GetDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dataProtectionSettings/"); + endpointResolutionOutcome.GetResult().AddPathSegments(request.GetDataProtectionSettingsArn()); + return GetDataProtectionSettingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetIdentityProviderOutcome WorkSpacesWebClient::GetIdentityProvider(const GetIdentityProviderRequest& request) const { AWS_OPERATION_GUARD(GetIdentityProvider); @@ -1586,6 +1759,33 @@ ListBrowserSettingsOutcome WorkSpacesWebClient::ListBrowserSettings(const ListBr {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListDataProtectionSettingsOutcome WorkSpacesWebClient::ListDataProtectionSettings(const ListDataProtectionSettingsRequest& request) const +{ + AWS_OPERATION_GUARD(ListDataProtectionSettings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListDataProtectionSettings", + {{ 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( + [&]()-> ListDataProtectionSettingsOutcome { + 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, ListDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dataProtectionSettings"); + return ListDataProtectionSettingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListIdentityProvidersOutcome WorkSpacesWebClient::ListIdentityProviders(const ListIdentityProvidersRequest& request) const { AWS_OPERATION_GUARD(ListIdentityProviders); @@ -1990,6 +2190,39 @@ UpdateBrowserSettingsOutcome WorkSpacesWebClient::UpdateBrowserSettings(const Up {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateDataProtectionSettingsOutcome WorkSpacesWebClient::UpdateDataProtectionSettings(const UpdateDataProtectionSettingsRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateDataProtectionSettings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DataProtectionSettingsArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateDataProtectionSettings", "Required field: DataProtectionSettingsArn, is not set"); + return UpdateDataProtectionSettingsOutcome(Aws::Client::AWSError(WorkSpacesWebErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataProtectionSettingsArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateDataProtectionSettings, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDataProtectionSettings", + {{ 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( + [&]()-> UpdateDataProtectionSettingsOutcome { + 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, UpdateDataProtectionSettings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dataProtectionSettings/"); + endpointResolutionOutcome.GetResult().AddPathSegments(request.GetDataProtectionSettingsArn()); + return UpdateDataProtectionSettingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateIdentityProviderOutcome WorkSpacesWebClient::UpdateIdentityProvider(const UpdateIdentityProviderRequest& request) const { AWS_OPERATION_GUARD(UpdateIdentityProvider); diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/AssociateDataProtectionSettingsRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/AssociateDataProtectionSettingsRequest.cpp new file mode 100644 index 00000000000..26a75ea4a62 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/AssociateDataProtectionSettingsRequest.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +AssociateDataProtectionSettingsRequest::AssociateDataProtectionSettingsRequest() : + m_dataProtectionSettingsArnHasBeenSet(false), + m_portalArnHasBeenSet(false) +{ +} + +Aws::String AssociateDataProtectionSettingsRequest::SerializePayload() const +{ + return {}; +} + +void AssociateDataProtectionSettingsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_dataProtectionSettingsArnHasBeenSet) + { + ss << m_dataProtectionSettingsArn; + uri.AddQueryStringParameter("dataProtectionSettingsArn", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/AssociateDataProtectionSettingsResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/AssociateDataProtectionSettingsResult.cpp new file mode 100644 index 00000000000..0cdbbf92409 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/AssociateDataProtectionSettingsResult.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +AssociateDataProtectionSettingsResult::AssociateDataProtectionSettingsResult() +{ +} + +AssociateDataProtectionSettingsResult::AssociateDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +AssociateDataProtectionSettingsResult& AssociateDataProtectionSettingsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("dataProtectionSettingsArn")) + { + m_dataProtectionSettingsArn = jsonValue.GetString("dataProtectionSettingsArn"); + + } + + if(jsonValue.ValueExists("portalArn")) + { + m_portalArn = jsonValue.GetString("portalArn"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/CreateDataProtectionSettingsRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/CreateDataProtectionSettingsRequest.cpp new file mode 100644 index 00000000000..cc6f0befb49 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/CreateDataProtectionSettingsRequest.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateDataProtectionSettingsRequest::CreateDataProtectionSettingsRequest() : + m_additionalEncryptionContextHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_customerManagedKeyHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_displayNameHasBeenSet(false), + m_inlineRedactionConfigurationHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateDataProtectionSettingsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_additionalEncryptionContextHasBeenSet) + { + JsonValue additionalEncryptionContextJsonMap; + for(auto& additionalEncryptionContextItem : m_additionalEncryptionContext) + { + additionalEncryptionContextJsonMap.WithString(additionalEncryptionContextItem.first, additionalEncryptionContextItem.second); + } + payload.WithObject("additionalEncryptionContext", std::move(additionalEncryptionContextJsonMap)); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_customerManagedKeyHasBeenSet) + { + payload.WithString("customerManagedKey", m_customerManagedKey); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_displayNameHasBeenSet) + { + payload.WithString("displayName", m_displayName); + + } + + if(m_inlineRedactionConfigurationHasBeenSet) + { + payload.WithObject("inlineRedactionConfiguration", m_inlineRedactionConfiguration.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/CreateDataProtectionSettingsResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/CreateDataProtectionSettingsResult.cpp new file mode 100644 index 00000000000..dba993b4c12 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/CreateDataProtectionSettingsResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateDataProtectionSettingsResult::CreateDataProtectionSettingsResult() +{ +} + +CreateDataProtectionSettingsResult::CreateDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateDataProtectionSettingsResult& CreateDataProtectionSettingsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("dataProtectionSettingsArn")) + { + m_dataProtectionSettingsArn = jsonValue.GetString("dataProtectionSettingsArn"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/CustomPattern.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/CustomPattern.cpp new file mode 100644 index 00000000000..457a9faf544 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/CustomPattern.cpp @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + +CustomPattern::CustomPattern() : + m_keywordRegexHasBeenSet(false), + m_patternDescriptionHasBeenSet(false), + m_patternNameHasBeenSet(false), + m_patternRegexHasBeenSet(false) +{ +} + +CustomPattern::CustomPattern(JsonView jsonValue) + : CustomPattern() +{ + *this = jsonValue; +} + +CustomPattern& CustomPattern::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("keywordRegex")) + { + m_keywordRegex = jsonValue.GetString("keywordRegex"); + + m_keywordRegexHasBeenSet = true; + } + + if(jsonValue.ValueExists("patternDescription")) + { + m_patternDescription = jsonValue.GetString("patternDescription"); + + m_patternDescriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("patternName")) + { + m_patternName = jsonValue.GetString("patternName"); + + m_patternNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("patternRegex")) + { + m_patternRegex = jsonValue.GetString("patternRegex"); + + m_patternRegexHasBeenSet = true; + } + + return *this; +} + +JsonValue CustomPattern::Jsonize() const +{ + JsonValue payload; + + if(m_keywordRegexHasBeenSet) + { + payload.WithString("keywordRegex", m_keywordRegex); + + } + + if(m_patternDescriptionHasBeenSet) + { + payload.WithString("patternDescription", m_patternDescription); + + } + + if(m_patternNameHasBeenSet) + { + payload.WithString("patternName", m_patternName); + + } + + if(m_patternRegexHasBeenSet) + { + payload.WithString("patternRegex", m_patternRegex); + + } + + return payload; +} + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/DataProtectionSettings.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DataProtectionSettings.cpp new file mode 100644 index 00000000000..d95e0388e0e --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DataProtectionSettings.cpp @@ -0,0 +1,172 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + +DataProtectionSettings::DataProtectionSettings() : + m_additionalEncryptionContextHasBeenSet(false), + m_associatedPortalArnsHasBeenSet(false), + m_creationDateHasBeenSet(false), + m_customerManagedKeyHasBeenSet(false), + m_dataProtectionSettingsArnHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_displayNameHasBeenSet(false), + m_inlineRedactionConfigurationHasBeenSet(false) +{ +} + +DataProtectionSettings::DataProtectionSettings(JsonView jsonValue) + : DataProtectionSettings() +{ + *this = jsonValue; +} + +DataProtectionSettings& DataProtectionSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("additionalEncryptionContext")) + { + Aws::Map additionalEncryptionContextJsonMap = jsonValue.GetObject("additionalEncryptionContext").GetAllObjects(); + for(auto& additionalEncryptionContextItem : additionalEncryptionContextJsonMap) + { + m_additionalEncryptionContext[additionalEncryptionContextItem.first] = additionalEncryptionContextItem.second.AsString(); + } + m_additionalEncryptionContextHasBeenSet = true; + } + + if(jsonValue.ValueExists("associatedPortalArns")) + { + Aws::Utils::Array associatedPortalArnsJsonList = jsonValue.GetArray("associatedPortalArns"); + for(unsigned associatedPortalArnsIndex = 0; associatedPortalArnsIndex < associatedPortalArnsJsonList.GetLength(); ++associatedPortalArnsIndex) + { + m_associatedPortalArns.push_back(associatedPortalArnsJsonList[associatedPortalArnsIndex].AsString()); + } + m_associatedPortalArnsHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationDate")) + { + m_creationDate = jsonValue.GetDouble("creationDate"); + + m_creationDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("customerManagedKey")) + { + m_customerManagedKey = jsonValue.GetString("customerManagedKey"); + + m_customerManagedKeyHasBeenSet = true; + } + + if(jsonValue.ValueExists("dataProtectionSettingsArn")) + { + m_dataProtectionSettingsArn = jsonValue.GetString("dataProtectionSettingsArn"); + + m_dataProtectionSettingsArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("displayName")) + { + m_displayName = jsonValue.GetString("displayName"); + + m_displayNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("inlineRedactionConfiguration")) + { + m_inlineRedactionConfiguration = jsonValue.GetObject("inlineRedactionConfiguration"); + + m_inlineRedactionConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue DataProtectionSettings::Jsonize() const +{ + JsonValue payload; + + if(m_additionalEncryptionContextHasBeenSet) + { + JsonValue additionalEncryptionContextJsonMap; + for(auto& additionalEncryptionContextItem : m_additionalEncryptionContext) + { + additionalEncryptionContextJsonMap.WithString(additionalEncryptionContextItem.first, additionalEncryptionContextItem.second); + } + payload.WithObject("additionalEncryptionContext", std::move(additionalEncryptionContextJsonMap)); + + } + + if(m_associatedPortalArnsHasBeenSet) + { + Aws::Utils::Array associatedPortalArnsJsonList(m_associatedPortalArns.size()); + for(unsigned associatedPortalArnsIndex = 0; associatedPortalArnsIndex < associatedPortalArnsJsonList.GetLength(); ++associatedPortalArnsIndex) + { + associatedPortalArnsJsonList[associatedPortalArnsIndex].AsString(m_associatedPortalArns[associatedPortalArnsIndex]); + } + payload.WithArray("associatedPortalArns", std::move(associatedPortalArnsJsonList)); + + } + + if(m_creationDateHasBeenSet) + { + payload.WithDouble("creationDate", m_creationDate.SecondsWithMSPrecision()); + } + + if(m_customerManagedKeyHasBeenSet) + { + payload.WithString("customerManagedKey", m_customerManagedKey); + + } + + if(m_dataProtectionSettingsArnHasBeenSet) + { + payload.WithString("dataProtectionSettingsArn", m_dataProtectionSettingsArn); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_displayNameHasBeenSet) + { + payload.WithString("displayName", m_displayName); + + } + + if(m_inlineRedactionConfigurationHasBeenSet) + { + payload.WithObject("inlineRedactionConfiguration", m_inlineRedactionConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/DataProtectionSettingsSummary.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DataProtectionSettingsSummary.cpp new file mode 100644 index 00000000000..19ce823a59a --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DataProtectionSettingsSummary.cpp @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + +DataProtectionSettingsSummary::DataProtectionSettingsSummary() : + m_creationDateHasBeenSet(false), + m_dataProtectionSettingsArnHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_displayNameHasBeenSet(false) +{ +} + +DataProtectionSettingsSummary::DataProtectionSettingsSummary(JsonView jsonValue) + : DataProtectionSettingsSummary() +{ + *this = jsonValue; +} + +DataProtectionSettingsSummary& DataProtectionSettingsSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("creationDate")) + { + m_creationDate = jsonValue.GetDouble("creationDate"); + + m_creationDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("dataProtectionSettingsArn")) + { + m_dataProtectionSettingsArn = jsonValue.GetString("dataProtectionSettingsArn"); + + m_dataProtectionSettingsArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("displayName")) + { + m_displayName = jsonValue.GetString("displayName"); + + m_displayNameHasBeenSet = true; + } + + return *this; +} + +JsonValue DataProtectionSettingsSummary::Jsonize() const +{ + JsonValue payload; + + if(m_creationDateHasBeenSet) + { + payload.WithDouble("creationDate", m_creationDate.SecondsWithMSPrecision()); + } + + if(m_dataProtectionSettingsArnHasBeenSet) + { + payload.WithString("dataProtectionSettingsArn", m_dataProtectionSettingsArn); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_displayNameHasBeenSet) + { + payload.WithString("displayName", m_displayName); + + } + + return payload; +} + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/DeleteDataProtectionSettingsRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DeleteDataProtectionSettingsRequest.cpp new file mode 100644 index 00000000000..c1b5e052fe7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DeleteDataProtectionSettingsRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteDataProtectionSettingsRequest::DeleteDataProtectionSettingsRequest() : + m_dataProtectionSettingsArnHasBeenSet(false) +{ +} + +Aws::String DeleteDataProtectionSettingsRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/DeleteDataProtectionSettingsResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DeleteDataProtectionSettingsResult.cpp new file mode 100644 index 00000000000..7588b66accc --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DeleteDataProtectionSettingsResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteDataProtectionSettingsResult::DeleteDataProtectionSettingsResult() +{ +} + +DeleteDataProtectionSettingsResult::DeleteDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteDataProtectionSettingsResult& DeleteDataProtectionSettingsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/DisassociateDataProtectionSettingsRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DisassociateDataProtectionSettingsRequest.cpp new file mode 100644 index 00000000000..95f5d804f91 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DisassociateDataProtectionSettingsRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DisassociateDataProtectionSettingsRequest::DisassociateDataProtectionSettingsRequest() : + m_portalArnHasBeenSet(false) +{ +} + +Aws::String DisassociateDataProtectionSettingsRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/DisassociateDataProtectionSettingsResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DisassociateDataProtectionSettingsResult.cpp new file mode 100644 index 00000000000..c5096ae543a --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/DisassociateDataProtectionSettingsResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DisassociateDataProtectionSettingsResult::DisassociateDataProtectionSettingsResult() +{ +} + +DisassociateDataProtectionSettingsResult::DisassociateDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DisassociateDataProtectionSettingsResult& DisassociateDataProtectionSettingsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetDataProtectionSettingsRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetDataProtectionSettingsRequest.cpp new file mode 100644 index 00000000000..001bb63a654 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetDataProtectionSettingsRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetDataProtectionSettingsRequest::GetDataProtectionSettingsRequest() : + m_dataProtectionSettingsArnHasBeenSet(false) +{ +} + +Aws::String GetDataProtectionSettingsRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetDataProtectionSettingsResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetDataProtectionSettingsResult.cpp new file mode 100644 index 00000000000..ce34fc9a84a --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/GetDataProtectionSettingsResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetDataProtectionSettingsResult::GetDataProtectionSettingsResult() +{ +} + +GetDataProtectionSettingsResult::GetDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetDataProtectionSettingsResult& GetDataProtectionSettingsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("dataProtectionSettings")) + { + m_dataProtectionSettings = jsonValue.GetObject("dataProtectionSettings"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/InlineRedactionConfiguration.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/InlineRedactionConfiguration.cpp new file mode 100644 index 00000000000..1592aaa8721 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/InlineRedactionConfiguration.cpp @@ -0,0 +1,126 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + +InlineRedactionConfiguration::InlineRedactionConfiguration() : + m_globalConfidenceLevel(0), + m_globalConfidenceLevelHasBeenSet(false), + m_globalEnforcedUrlsHasBeenSet(false), + m_globalExemptUrlsHasBeenSet(false), + m_inlineRedactionPatternsHasBeenSet(false) +{ +} + +InlineRedactionConfiguration::InlineRedactionConfiguration(JsonView jsonValue) + : InlineRedactionConfiguration() +{ + *this = jsonValue; +} + +InlineRedactionConfiguration& InlineRedactionConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("globalConfidenceLevel")) + { + m_globalConfidenceLevel = jsonValue.GetInteger("globalConfidenceLevel"); + + m_globalConfidenceLevelHasBeenSet = true; + } + + if(jsonValue.ValueExists("globalEnforcedUrls")) + { + Aws::Utils::Array globalEnforcedUrlsJsonList = jsonValue.GetArray("globalEnforcedUrls"); + for(unsigned globalEnforcedUrlsIndex = 0; globalEnforcedUrlsIndex < globalEnforcedUrlsJsonList.GetLength(); ++globalEnforcedUrlsIndex) + { + m_globalEnforcedUrls.push_back(globalEnforcedUrlsJsonList[globalEnforcedUrlsIndex].AsString()); + } + m_globalEnforcedUrlsHasBeenSet = true; + } + + if(jsonValue.ValueExists("globalExemptUrls")) + { + Aws::Utils::Array globalExemptUrlsJsonList = jsonValue.GetArray("globalExemptUrls"); + for(unsigned globalExemptUrlsIndex = 0; globalExemptUrlsIndex < globalExemptUrlsJsonList.GetLength(); ++globalExemptUrlsIndex) + { + m_globalExemptUrls.push_back(globalExemptUrlsJsonList[globalExemptUrlsIndex].AsString()); + } + m_globalExemptUrlsHasBeenSet = true; + } + + if(jsonValue.ValueExists("inlineRedactionPatterns")) + { + Aws::Utils::Array inlineRedactionPatternsJsonList = jsonValue.GetArray("inlineRedactionPatterns"); + for(unsigned inlineRedactionPatternsIndex = 0; inlineRedactionPatternsIndex < inlineRedactionPatternsJsonList.GetLength(); ++inlineRedactionPatternsIndex) + { + m_inlineRedactionPatterns.push_back(inlineRedactionPatternsJsonList[inlineRedactionPatternsIndex].AsObject()); + } + m_inlineRedactionPatternsHasBeenSet = true; + } + + return *this; +} + +JsonValue InlineRedactionConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_globalConfidenceLevelHasBeenSet) + { + payload.WithInteger("globalConfidenceLevel", m_globalConfidenceLevel); + + } + + if(m_globalEnforcedUrlsHasBeenSet) + { + Aws::Utils::Array globalEnforcedUrlsJsonList(m_globalEnforcedUrls.size()); + for(unsigned globalEnforcedUrlsIndex = 0; globalEnforcedUrlsIndex < globalEnforcedUrlsJsonList.GetLength(); ++globalEnforcedUrlsIndex) + { + globalEnforcedUrlsJsonList[globalEnforcedUrlsIndex].AsString(m_globalEnforcedUrls[globalEnforcedUrlsIndex]); + } + payload.WithArray("globalEnforcedUrls", std::move(globalEnforcedUrlsJsonList)); + + } + + if(m_globalExemptUrlsHasBeenSet) + { + Aws::Utils::Array globalExemptUrlsJsonList(m_globalExemptUrls.size()); + for(unsigned globalExemptUrlsIndex = 0; globalExemptUrlsIndex < globalExemptUrlsJsonList.GetLength(); ++globalExemptUrlsIndex) + { + globalExemptUrlsJsonList[globalExemptUrlsIndex].AsString(m_globalExemptUrls[globalExemptUrlsIndex]); + } + payload.WithArray("globalExemptUrls", std::move(globalExemptUrlsJsonList)); + + } + + if(m_inlineRedactionPatternsHasBeenSet) + { + Aws::Utils::Array inlineRedactionPatternsJsonList(m_inlineRedactionPatterns.size()); + for(unsigned inlineRedactionPatternsIndex = 0; inlineRedactionPatternsIndex < inlineRedactionPatternsJsonList.GetLength(); ++inlineRedactionPatternsIndex) + { + inlineRedactionPatternsJsonList[inlineRedactionPatternsIndex].AsObject(m_inlineRedactionPatterns[inlineRedactionPatternsIndex].Jsonize()); + } + payload.WithArray("inlineRedactionPatterns", std::move(inlineRedactionPatternsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/InlineRedactionPattern.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/InlineRedactionPattern.cpp new file mode 100644 index 00000000000..099800e6209 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/InlineRedactionPattern.cpp @@ -0,0 +1,146 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + +InlineRedactionPattern::InlineRedactionPattern() : + m_builtInPatternIdHasBeenSet(false), + m_confidenceLevel(0), + m_confidenceLevelHasBeenSet(false), + m_customPatternHasBeenSet(false), + m_enforcedUrlsHasBeenSet(false), + m_exemptUrlsHasBeenSet(false), + m_redactionPlaceHolderHasBeenSet(false) +{ +} + +InlineRedactionPattern::InlineRedactionPattern(JsonView jsonValue) + : InlineRedactionPattern() +{ + *this = jsonValue; +} + +InlineRedactionPattern& InlineRedactionPattern::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("builtInPatternId")) + { + m_builtInPatternId = jsonValue.GetString("builtInPatternId"); + + m_builtInPatternIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("confidenceLevel")) + { + m_confidenceLevel = jsonValue.GetInteger("confidenceLevel"); + + m_confidenceLevelHasBeenSet = true; + } + + if(jsonValue.ValueExists("customPattern")) + { + m_customPattern = jsonValue.GetObject("customPattern"); + + m_customPatternHasBeenSet = true; + } + + if(jsonValue.ValueExists("enforcedUrls")) + { + Aws::Utils::Array enforcedUrlsJsonList = jsonValue.GetArray("enforcedUrls"); + for(unsigned enforcedUrlsIndex = 0; enforcedUrlsIndex < enforcedUrlsJsonList.GetLength(); ++enforcedUrlsIndex) + { + m_enforcedUrls.push_back(enforcedUrlsJsonList[enforcedUrlsIndex].AsString()); + } + m_enforcedUrlsHasBeenSet = true; + } + + if(jsonValue.ValueExists("exemptUrls")) + { + Aws::Utils::Array exemptUrlsJsonList = jsonValue.GetArray("exemptUrls"); + for(unsigned exemptUrlsIndex = 0; exemptUrlsIndex < exemptUrlsJsonList.GetLength(); ++exemptUrlsIndex) + { + m_exemptUrls.push_back(exemptUrlsJsonList[exemptUrlsIndex].AsString()); + } + m_exemptUrlsHasBeenSet = true; + } + + if(jsonValue.ValueExists("redactionPlaceHolder")) + { + m_redactionPlaceHolder = jsonValue.GetObject("redactionPlaceHolder"); + + m_redactionPlaceHolderHasBeenSet = true; + } + + return *this; +} + +JsonValue InlineRedactionPattern::Jsonize() const +{ + JsonValue payload; + + if(m_builtInPatternIdHasBeenSet) + { + payload.WithString("builtInPatternId", m_builtInPatternId); + + } + + if(m_confidenceLevelHasBeenSet) + { + payload.WithInteger("confidenceLevel", m_confidenceLevel); + + } + + if(m_customPatternHasBeenSet) + { + payload.WithObject("customPattern", m_customPattern.Jsonize()); + + } + + if(m_enforcedUrlsHasBeenSet) + { + Aws::Utils::Array enforcedUrlsJsonList(m_enforcedUrls.size()); + for(unsigned enforcedUrlsIndex = 0; enforcedUrlsIndex < enforcedUrlsJsonList.GetLength(); ++enforcedUrlsIndex) + { + enforcedUrlsJsonList[enforcedUrlsIndex].AsString(m_enforcedUrls[enforcedUrlsIndex]); + } + payload.WithArray("enforcedUrls", std::move(enforcedUrlsJsonList)); + + } + + if(m_exemptUrlsHasBeenSet) + { + Aws::Utils::Array exemptUrlsJsonList(m_exemptUrls.size()); + for(unsigned exemptUrlsIndex = 0; exemptUrlsIndex < exemptUrlsJsonList.GetLength(); ++exemptUrlsIndex) + { + exemptUrlsJsonList[exemptUrlsIndex].AsString(m_exemptUrls[exemptUrlsIndex]); + } + payload.WithArray("exemptUrls", std::move(exemptUrlsJsonList)); + + } + + if(m_redactionPlaceHolderHasBeenSet) + { + payload.WithObject("redactionPlaceHolder", m_redactionPlaceHolder.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListDataProtectionSettingsRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListDataProtectionSettingsRequest.cpp new file mode 100644 index 00000000000..667cf78e73e --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListDataProtectionSettingsRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListDataProtectionSettingsRequest::ListDataProtectionSettingsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListDataProtectionSettingsRequest::SerializePayload() const +{ + return {}; +} + +void ListDataProtectionSettingsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListDataProtectionSettingsResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListDataProtectionSettingsResult.cpp new file mode 100644 index 00000000000..fda41eb9b05 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ListDataProtectionSettingsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListDataProtectionSettingsResult::ListDataProtectionSettingsResult() +{ +} + +ListDataProtectionSettingsResult::ListDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDataProtectionSettingsResult& ListDataProtectionSettingsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("dataProtectionSettings")) + { + Aws::Utils::Array dataProtectionSettingsJsonList = jsonValue.GetArray("dataProtectionSettings"); + for(unsigned dataProtectionSettingsIndex = 0; dataProtectionSettingsIndex < dataProtectionSettingsJsonList.GetLength(); ++dataProtectionSettingsIndex) + { + m_dataProtectionSettings.push_back(dataProtectionSettingsJsonList[dataProtectionSettingsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/Portal.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/Portal.cpp index 245a6a84073..43e845b6b3d 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/model/Portal.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/Portal.cpp @@ -27,6 +27,7 @@ Portal::Portal() : m_browserTypeHasBeenSet(false), m_creationDateHasBeenSet(false), m_customerManagedKeyHasBeenSet(false), + m_dataProtectionSettingsArnHasBeenSet(false), m_displayNameHasBeenSet(false), m_instanceType(InstanceType::NOT_SET), m_instanceTypeHasBeenSet(false), @@ -100,6 +101,13 @@ Portal& Portal::operator =(JsonView jsonValue) m_customerManagedKeyHasBeenSet = true; } + if(jsonValue.ValueExists("dataProtectionSettingsArn")) + { + m_dataProtectionSettingsArn = jsonValue.GetString("dataProtectionSettingsArn"); + + m_dataProtectionSettingsArnHasBeenSet = true; + } + if(jsonValue.ValueExists("displayName")) { m_displayName = jsonValue.GetString("displayName"); @@ -236,6 +244,12 @@ JsonValue Portal::Jsonize() const } + if(m_dataProtectionSettingsArnHasBeenSet) + { + payload.WithString("dataProtectionSettingsArn", m_dataProtectionSettingsArn); + + } + if(m_displayNameHasBeenSet) { payload.WithString("displayName", m_displayName); diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/PortalSummary.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/PortalSummary.cpp index 97ca5a81599..cadcfd025c9 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/model/PortalSummary.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/PortalSummary.cpp @@ -25,6 +25,7 @@ PortalSummary::PortalSummary() : m_browserType(BrowserType::NOT_SET), m_browserTypeHasBeenSet(false), m_creationDateHasBeenSet(false), + m_dataProtectionSettingsArnHasBeenSet(false), m_displayNameHasBeenSet(false), m_instanceType(InstanceType::NOT_SET), m_instanceTypeHasBeenSet(false), @@ -80,6 +81,13 @@ PortalSummary& PortalSummary::operator =(JsonView jsonValue) m_creationDateHasBeenSet = true; } + if(jsonValue.ValueExists("dataProtectionSettingsArn")) + { + m_dataProtectionSettingsArn = jsonValue.GetString("dataProtectionSettingsArn"); + + m_dataProtectionSettingsArnHasBeenSet = true; + } + if(jsonValue.ValueExists("displayName")) { m_displayName = jsonValue.GetString("displayName"); @@ -192,6 +200,12 @@ JsonValue PortalSummary::Jsonize() const payload.WithDouble("creationDate", m_creationDate.SecondsWithMSPrecision()); } + if(m_dataProtectionSettingsArnHasBeenSet) + { + payload.WithString("dataProtectionSettingsArn", m_dataProtectionSettingsArn); + + } + if(m_displayNameHasBeenSet) { payload.WithString("displayName", m_displayName); diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/RedactionPlaceHolder.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/RedactionPlaceHolder.cpp new file mode 100644 index 00000000000..adfa38e7248 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/RedactionPlaceHolder.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace WorkSpacesWeb +{ +namespace Model +{ + +RedactionPlaceHolder::RedactionPlaceHolder() : + m_redactionPlaceHolderTextHasBeenSet(false), + m_redactionPlaceHolderType(RedactionPlaceHolderType::NOT_SET), + m_redactionPlaceHolderTypeHasBeenSet(false) +{ +} + +RedactionPlaceHolder::RedactionPlaceHolder(JsonView jsonValue) + : RedactionPlaceHolder() +{ + *this = jsonValue; +} + +RedactionPlaceHolder& RedactionPlaceHolder::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("redactionPlaceHolderText")) + { + m_redactionPlaceHolderText = jsonValue.GetString("redactionPlaceHolderText"); + + m_redactionPlaceHolderTextHasBeenSet = true; + } + + if(jsonValue.ValueExists("redactionPlaceHolderType")) + { + m_redactionPlaceHolderType = RedactionPlaceHolderTypeMapper::GetRedactionPlaceHolderTypeForName(jsonValue.GetString("redactionPlaceHolderType")); + + m_redactionPlaceHolderTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue RedactionPlaceHolder::Jsonize() const +{ + JsonValue payload; + + if(m_redactionPlaceHolderTextHasBeenSet) + { + payload.WithString("redactionPlaceHolderText", m_redactionPlaceHolderText); + + } + + if(m_redactionPlaceHolderTypeHasBeenSet) + { + payload.WithString("redactionPlaceHolderType", RedactionPlaceHolderTypeMapper::GetNameForRedactionPlaceHolderType(m_redactionPlaceHolderType)); + } + + return payload; +} + +} // namespace Model +} // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/RedactionPlaceHolderType.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/RedactionPlaceHolderType.cpp new file mode 100644 index 00000000000..4f4a381f4a3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/RedactionPlaceHolderType.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace WorkSpacesWeb + { + namespace Model + { + namespace RedactionPlaceHolderTypeMapper + { + + static const int CustomText_HASH = HashingUtils::HashString("CustomText"); + + + RedactionPlaceHolderType GetRedactionPlaceHolderTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CustomText_HASH) + { + return RedactionPlaceHolderType::CustomText; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RedactionPlaceHolderType::NOT_SET; + } + + Aws::String GetNameForRedactionPlaceHolderType(RedactionPlaceHolderType enumValue) + { + switch(enumValue) + { + case RedactionPlaceHolderType::NOT_SET: + return {}; + case RedactionPlaceHolderType::CustomText: + return "CustomText"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RedactionPlaceHolderTypeMapper + } // namespace Model + } // namespace WorkSpacesWeb +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/UpdateDataProtectionSettingsRequest.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/UpdateDataProtectionSettingsRequest.cpp new file mode 100644 index 00000000000..5e455207e58 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/UpdateDataProtectionSettingsRequest.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateDataProtectionSettingsRequest::UpdateDataProtectionSettingsRequest() : + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_dataProtectionSettingsArnHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_displayNameHasBeenSet(false), + m_inlineRedactionConfigurationHasBeenSet(false) +{ +} + +Aws::String UpdateDataProtectionSettingsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_displayNameHasBeenSet) + { + payload.WithString("displayName", m_displayName); + + } + + if(m_inlineRedactionConfigurationHasBeenSet) + { + payload.WithObject("inlineRedactionConfiguration", m_inlineRedactionConfiguration.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/UpdateDataProtectionSettingsResult.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/UpdateDataProtectionSettingsResult.cpp new file mode 100644 index 00000000000..b45683b18a8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/UpdateDataProtectionSettingsResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::WorkSpacesWeb::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateDataProtectionSettingsResult::UpdateDataProtectionSettingsResult() +{ +} + +UpdateDataProtectionSettingsResult::UpdateDataProtectionSettingsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateDataProtectionSettingsResult& UpdateDataProtectionSettingsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("dataProtectionSettings")) + { + m_dataProtectionSettings = jsonValue.GetObject("dataProtectionSettings"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/WorkSpacesClient.h b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/WorkSpacesClient.h index 0a7ef802ab4..3e559686b55 100644 --- a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/WorkSpacesClient.h +++ b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/WorkSpacesClient.h @@ -541,11 +541,11 @@ namespace WorkSpaces * Core. Contact your account team to be allow-listed to use this value. For more * information, see Amazon * WorkSpaces Core.

  • You don't need to specify the - * PCOIP protocol for Linux bundles because WSP is the - * default protocol for those bundles.

  • User-decoupled WorkSpaces - * are only supported by Amazon WorkSpaces Core.

  • Review your - * running mode to ensure you are using one that is optimal for your needs and - * budget. For more information on switching running modes, see PCOIP protocol for Linux bundles because DCV (formerly + * WSP) is the default protocol for those bundles.

  • User-decoupled + * WorkSpaces are only supported by Amazon WorkSpaces Core.

  • + *

    Review your running mode to ensure you are using one that is optimal for your + * needs and budget. For more information on switching running modes, see * Can I switch between hourly and monthly billing?

*

See Also:

A string of up to 64 ASCII characters that Amazon EFS uses to ensure + *

A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure * idempotent creation.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } diff --git a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/CreateAccountLinkInvitationRequest.h b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/CreateAccountLinkInvitationRequest.h index 54c62e5462d..bd3d96cb057 100644 --- a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/CreateAccountLinkInvitationRequest.h +++ b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/CreateAccountLinkInvitationRequest.h @@ -50,7 +50,7 @@ namespace Model ///@{ /** - *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure + *

A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure * idempotent creation.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } diff --git a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/DeleteAccountLinkInvitationRequest.h b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/DeleteAccountLinkInvitationRequest.h index 2df594fc4bc..129ab489de2 100644 --- a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/DeleteAccountLinkInvitationRequest.h +++ b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/DeleteAccountLinkInvitationRequest.h @@ -50,7 +50,7 @@ namespace Model ///@{ /** - *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure + *

A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure * idempotent creation.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } diff --git a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/ImportWorkspaceImageRequest.h b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/ImportWorkspaceImageRequest.h index db066c8e142..2a9af06fb57 100644 --- a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/ImportWorkspaceImageRequest.h +++ b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/ImportWorkspaceImageRequest.h @@ -55,13 +55,13 @@ namespace Model ///@{ /** *

The ingestion process to be used when importing the image, depending on which - * protocol you want to use for your BYOL Workspace image, either PCoIP, WorkSpaces - * Streaming Protocol (WSP), or bring your own protocol (BYOP). To use WSP, specify - * a value that ends in _WSP. To use PCoIP, specify a value that does - * not end in _WSP. To use BYOP, specify a value that ends in + * protocol you want to use for your BYOL Workspace image, either PCoIP, DCV, or + * bring your own protocol (BYOP). To use WSP, specify a value that ends in + * _DCV. To use PCoIP, specify a value that does not end in + * _DCV. To use BYOP, specify a value that ends in * _BYOP.

For non-GPU-enabled bundles (bundles other than * Graphics or GraphicsPro), specify BYOL_REGULAR, - * BYOL_REGULAR_WSP, or BYOL_REGULAR_BYOP, depending on + * BYOL_REGULAR_DCV, or BYOL_REGULAR_BYOP, depending on * the protocol.

The BYOL_REGULAR_BYOP and * BYOL_GRAPHICS_G4DN_BYOP values are only supported by Amazon * WorkSpaces Core. Contact your account team to be allow-listed to use these @@ -127,9 +127,10 @@ namespace Model * href="https://docs.aws.amazon.com/workspaces/latest/adminguide/byol-windows-images.html"> * Bring Your Own Windows Desktop Licenses.

  • Although * this parameter is an array, only one item is allowed at this time.

  • - *
  • During the image import process, non-GPU WSP WorkSpaces with Windows 11 - * support only Microsoft_Office_2019. GPU WSP WorkSpaces with Windows - * 11 do not support Office installation.

+ *
  • During the image import process, non-GPU DCV (formerly WSP) WorkSpaces + * with Windows 11 support only Microsoft_Office_2019. GPU DCV + * (formerly WSP) WorkSpaces with Windows 11 do not support Office + * installation.

  • */ inline const Aws::Vector& GetApplications() const{ return m_applications; } inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/OperatingSystemName.h b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/OperatingSystemName.h index cb73eece9aa..9751bbb3c44 100644 --- a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/OperatingSystemName.h +++ b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/OperatingSystemName.h @@ -27,7 +27,8 @@ namespace Model WINDOWS_SERVER_2016, WINDOWS_SERVER_2019, WINDOWS_SERVER_2022, - RHEL_8 + RHEL_8, + ROCKY_8 }; namespace OperatingSystemNameMapper diff --git a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/WorkspaceProperties.h b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/WorkspaceProperties.h index 76ce462e333..de792dd1a26 100644 --- a/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/WorkspaceProperties.h +++ b/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/WorkspaceProperties.h @@ -121,9 +121,10 @@ namespace Model * Protocols for Amazon WorkSpaces.

    • Only available for * WorkSpaces created with PCoIP bundles.

    • The * Protocols property is case sensitive. Ensure you use - * PCOIP or WSP.

    • Unavailable for - * Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, - * GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn).

    + * PCOIP or DCV (formerly WSP).

  • + *

    Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles + * (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn).

  • + * */ inline const Aws::Vector& GetProtocols() const{ return m_protocols; } inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemName.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemName.cpp index 827b1d3f33e..ba7b1b0397d 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemName.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemName.cpp @@ -32,6 +32,7 @@ namespace Aws static const int WINDOWS_SERVER_2019_HASH = HashingUtils::HashString("WINDOWS_SERVER_2019"); static const int WINDOWS_SERVER_2022_HASH = HashingUtils::HashString("WINDOWS_SERVER_2022"); static const int RHEL_8_HASH = HashingUtils::HashString("RHEL_8"); + static const int ROCKY_8_HASH = HashingUtils::HashString("ROCKY_8"); OperatingSystemName GetOperatingSystemNameForName(const Aws::String& name) @@ -85,6 +86,10 @@ namespace Aws { return OperatingSystemName::RHEL_8; } + else if (hashCode == ROCKY_8_HASH) + { + return OperatingSystemName::ROCKY_8; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -125,6 +130,8 @@ namespace Aws return "WINDOWS_SERVER_2022"; case OperatingSystemName::RHEL_8: return "RHEL_8"; + case OperatingSystemName::ROCKY_8: + return "ROCKY_8"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) 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 20ff1f0fb33..923ec147e39 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.451" +#define AWS_SDK_VERSION_STRING "1.11.452" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 451 +#define AWS_SDK_VERSION_PATCH 452 diff --git a/tools/code-generation/api-descriptions/autoscaling-2011-01-01.normal.json b/tools/code-generation/api-descriptions/autoscaling-2011-01-01.normal.json index 8e69926881b..e0a73bb1220 100644 --- a/tools/code-generation/api-descriptions/autoscaling-2011-01-01.normal.json +++ b/tools/code-generation/api-descriptions/autoscaling-2011-01-01.normal.json @@ -1533,6 +1533,10 @@ "AvailabilityZoneImpairmentPolicy":{ "shape":"AvailabilityZoneImpairmentPolicy", "documentation":"

    The Availability Zone impairment policy.

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

    The capacity reservation specification.

    " } }, "documentation":"

    Describes an Auto Scaling group.

    " @@ -1719,6 +1723,16 @@ }, "documentation":"

    Specifies the minimum and maximum for the BaselineEbsBandwidthMbps object when you specify InstanceRequirements for an Auto Scaling group.

    " }, + "BaselinePerformanceFactorsRequest":{ + "type":"structure", + "members":{ + "Cpu":{ + "shape":"CpuPerformanceFactorRequest", + "documentation":"

    The CPU performance to consider, using an instance family as the baseline reference.

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

    The baseline performance to consider, using an instance family as a baseline reference. The instance family establishes the lowest acceptable level of performance. Auto Scaling uses this baseline to guide instance type selection, but there is no guarantee that the selected instance types will always exceed the baseline for every application.

    Currently, this parameter only supports CPU performance as a baseline performance factor. For example, specifying c6i uses the CPU performance of the c6i family as the baseline reference.

    " + }, "BatchDeleteScheduledActionAnswer":{ "type":"structure", "members":{ @@ -1873,6 +1887,51 @@ "documentation":"

    A GetPredictiveScalingForecast call returns the capacity forecast for a predictive scaling policy. This structure includes the data points for that capacity forecast, along with the timestamps of those data points.

    " }, "CapacityRebalanceEnabled":{"type":"boolean"}, + "CapacityReservationIds":{ + "type":"list", + "member":{"shape":"AsciiStringMaxLen255"} + }, + "CapacityReservationPreference":{ + "type":"string", + "enum":[ + "capacity-reservations-only", + "capacity-reservations-first", + "none", + "default" + ] + }, + "CapacityReservationResourceGroupArns":{ + "type":"list", + "member":{"shape":"ResourceName"} + }, + "CapacityReservationSpecification":{ + "type":"structure", + "members":{ + "CapacityReservationPreference":{ + "shape":"CapacityReservationPreference", + "documentation":"

    The capacity reservation preference. The following options are available:

    • capacity-reservations-only - Auto Scaling will only launch instances into a Capacity Reservation or Capacity Reservation resource group. If capacity isn't available, instances will fail to launch.

    • capacity-reservations-first - Auto Scaling will try to launch instances into a Capacity Reservation or Capacity Reservation resource group first. If capacity isn't available, instances will run in On-Demand capacity.

    • none - Auto Scaling will not launch instances into a Capacity Reservation. Instances will run in On-Demand capacity.

    • default - Auto Scaling uses the Capacity Reservation preference from your launch template or an open Capacity Reservation.

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

    Describes a target Capacity Reservation or Capacity Reservation resource group.

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

    Describes the Capacity Reservation preference and targeting options. If you specify open or none for CapacityReservationPreference, do not specify a CapacityReservationTarget.

    " + }, + "CapacityReservationTarget":{ + "type":"structure", + "members":{ + "CapacityReservationIds":{ + "shape":"CapacityReservationIds", + "documentation":"

    The Capacity Reservation IDs to launch instances into.

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

    The resource group ARNs of the Capacity Reservation to launch instances into.

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

    The target for the Capacity Reservation. Specify Capacity Reservations IDs or Capacity Reservation resource group ARNs.

    " + }, "CheckpointDelay":{ "type":"integer", "max":172800, @@ -1935,6 +1994,17 @@ "type":"list", "member":{"shape":"CpuManufacturer"} }, + "CpuPerformanceFactorRequest":{ + "type":"structure", + "members":{ + "References":{ + "shape":"PerformanceFactorReferenceSetRequest", + "documentation":"

    Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture differences.

    Currently only one instance family can be specified in the list.

    ", + "locationName":"Reference" + } + }, + "documentation":"

    The CPU performance to consider, using an instance family as the baseline reference.

    " + }, "CreateAutoScalingGroupType":{ "type":"structure", "required":[ @@ -2066,6 +2136,10 @@ "SkipZonalShiftValidation":{ "shape":"SkipZonalShiftValidation", "documentation":"

    If you enable zonal shift with cross-zone disabled load balancers, capacity could become imbalanced across Availability Zones. To skip the validation, specify true. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide.

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

    The capacity reservation specification for the Auto Scaling group.

    " } } }, @@ -3462,6 +3536,10 @@ "AllowedInstanceTypes":{ "shape":"AllowedInstanceTypes", "documentation":"

    The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.

    You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*.

    For example, if you specify c5*, Amazon EC2 Auto Scaling will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, Amazon EC2 Auto Scaling will allow all the M5a instance types, but not the M5n instance types.

    If you specify AllowedInstanceTypes, you can't specify ExcludedInstanceTypes.

    Default: All instance types

    " + }, + "BaselinePerformanceFactors":{ + "shape":"BaselinePerformanceFactorsRequest", + "documentation":"

    The baseline performance factors for the instance requirements.

    " } }, "documentation":"

    The attributes for the instance types for a mixed instances policy. Amazon EC2 Auto Scaling uses your specified requirements to identify instance types. Then, it uses your On-Demand and Spot allocation strategies to launch instances from these instance types.

    When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.

    To limit the list of instance types from which Amazon EC2 Auto Scaling can identify matching instance types, you can use one of the following parameters, but not both in the same request:

    • AllowedInstanceTypes - The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.

    • ExcludedInstanceTypes - The instance types to exclude from the list, even if they match your specified attributes.

    You must specify VCpuCount and MemoryMiB. All other attributes are optional. Any unspecified optional attribute is set to its default.

    For more information, see Create a mixed instances group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide. For help determining which instance types match your attributes before you apply them to your Auto Scaling group, see Preview instance types with specified attributes in the Amazon EC2 User Guide for Linux Instances.

    " @@ -4289,6 +4367,23 @@ "type":"list", "member":{"shape":"LaunchTemplateOverrides"} }, + "PerformanceFactorReferenceRequest":{ + "type":"structure", + "members":{ + "InstanceFamily":{ + "shape":"String", + "documentation":"

    The instance family to use as a baseline reference.

    Make sure that you specify the correct value for the instance family. The instance family is everything before the period (.) in the instance type name. For example, in the instance c6i.large, the instance family is c6i, not c6. For more information, see Amazon EC2 instance type naming conventions in Amazon EC2 Instance Types.

    The following instance types are not supported for performance protection.

    • c1

    • g3| g3s

    • hpc7g

    • m1| m2

    • mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro

    • p3dn | p4d | p5

    • t1

    • u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | u7in-16tb | u7in-24tb | u7in-32tb

    If you performance protection by specifying a supported instance family, the returned instance types will exclude the preceding unsupported instance families.

    If you specify an unsupported instance family as a value for baseline performance, the API returns an empty response.

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

    Specify an instance family to use as the baseline reference for CPU performance. All instance types that All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture differences.

    Currently only one instance family can be specified in the list.

    " + }, + "PerformanceFactorReferenceSetRequest":{ + "type":"list", + "member":{ + "shape":"PerformanceFactorReferenceRequest", + "locationName":"item" + } + }, "PoliciesType":{ "type":"structure", "members":{ @@ -5362,6 +5457,7 @@ "type":"list", "member":{"shape":"StepAdjustment"} }, + "String":{"type":"string"}, "SuspendedProcess":{ "type":"structure", "members":{ @@ -5732,6 +5828,10 @@ "SkipZonalShiftValidation":{ "shape":"SkipZonalShiftValidation", "documentation":"

    If you enable zonal shift with cross-zone disabled load balancers, capacity could become imbalanced across Availability Zones. To skip the validation, specify true. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide.

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

    The capacity reservation specification for the Auto Scaling group.

    " } } }, diff --git a/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json b/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json index 6e3f692d33a..c3eaf0f9d62 100644 --- a/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json @@ -101,7 +101,26 @@ {"shape":"AccessDeniedException"}, {"shape":"ServiceQuotaExceededException"} ], - "documentation":"

    Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

    The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeFlow.

    " + "documentation":"

    Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

    The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeFlow.

    " + }, + "OptimizePrompt":{ + "name":"OptimizePrompt", + "http":{ + "method":"POST", + "requestUri":"/optimize-prompt", + "responseCode":200 + }, + "input":{"shape":"OptimizePromptRequest"}, + "output":{"shape":"OptimizePromptResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"DependencyFailedException"}, + {"shape":"BadGatewayException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Optimizes a prompt for the task that you specify. For more information, see Optimize a prompt in the Amazon Bedrock User Guide.

    " }, "Retrieve":{ "name":"Retrieve", @@ -197,7 +216,7 @@ "documentation":"

    The API method being used, based off the action group.

    " } }, - "documentation":"

    Contains information about the action group being invoked. For more information about the possible structures, see the InvocationInput tab in OrchestrationTrace in the Amazon Bedrock User Guide.

    " + "documentation":"

    Contains information about the action group being invoked. For more information about the possible structures, see the InvocationInput tab in OrchestrationTrace in the Amazon Bedrock User Guide.

    " }, "ActionGroupInvocationOutput":{ "type":"structure", @@ -259,6 +278,18 @@ "min":1, "pattern":"^(DRAFT|[0-9]{0,4}[1-9][0-9]{0,4})$" }, + "AnalyzePromptEvent":{ + "type":"structure", + "members":{ + "message":{ + "shape":"String", + "documentation":"

    A message describing the analysis of the prompt.

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

    An event in which the prompt was analyzed in preparation for optimization.

    ", + "event":true, + "sensitive":true + }, "ApiContentMap":{ "type":"map", "key":{"shape":"String"}, @@ -1774,6 +1805,17 @@ "type":"list", "member":{"shape":"InputFile"} }, + "InputPrompt":{ + "type":"structure", + "members":{ + "textPrompt":{ + "shape":"TextPrompt", + "documentation":"

    Contains information about the text prompt to optimize.

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

    Contains information about the prompt to optimize.

    ", + "union":true + }, "InputText":{ "type":"string", "max":25000000, @@ -2349,6 +2391,102 @@ "documentation":"

    Contains the result or output of an action group or knowledge base, or the response to the user.

    ", "sensitive":true }, + "OptimizePromptRequest":{ + "type":"structure", + "required":[ + "input", + "targetModelId" + ], + "members":{ + "input":{ + "shape":"InputPrompt", + "documentation":"

    Contains the prompt to optimize.

    " + }, + "targetModelId":{ + "shape":"OptimizePromptRequestTargetModelIdString", + "documentation":"

    The unique identifier of the model that you want to optimize the prompt for.

    " + } + } + }, + "OptimizePromptRequestTargetModelIdString":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$" + }, + "OptimizePromptResponse":{ + "type":"structure", + "required":["optimizedPrompt"], + "members":{ + "optimizedPrompt":{ + "shape":"OptimizedPromptStream", + "documentation":"

    The prompt after being optimized for the task.

    " + } + }, + "payload":"optimizedPrompt" + }, + "OptimizedPrompt":{ + "type":"structure", + "members":{ + "textPrompt":{ + "shape":"TextPrompt", + "documentation":"

    Contains information about the text in the prompt that was optimized.

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

    Contains information about the optimized prompt.

    ", + "union":true + }, + "OptimizedPromptEvent":{ + "type":"structure", + "members":{ + "optimizedPrompt":{ + "shape":"OptimizedPrompt", + "documentation":"

    Contains information about the optimized prompt.

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

    An event in which the prompt was optimized.

    ", + "event":true, + "sensitive":true + }, + "OptimizedPromptStream":{ + "type":"structure", + "members":{ + "accessDeniedException":{ + "shape":"AccessDeniedException", + "documentation":"

    The request is denied because of missing access permissions. Check your permissions and retry your request.

    " + }, + "analyzePromptEvent":{ + "shape":"AnalyzePromptEvent", + "documentation":"

    An event in which the prompt was analyzed in preparation for optimization.

    " + }, + "badGatewayException":{ + "shape":"BadGatewayException", + "documentation":"

    There was an issue with a dependency due to a server issue. Retry your request.

    " + }, + "dependencyFailedException":{ + "shape":"DependencyFailedException", + "documentation":"

    There was an issue with a dependency. Check the resource configurations and retry the request.

    " + }, + "internalServerException":{ + "shape":"InternalServerException", + "documentation":"

    An internal server error occurred. Retry your request.

    " + }, + "optimizedPromptEvent":{ + "shape":"OptimizedPromptEvent", + "documentation":"

    An event in which the prompt was optimized.

    " + }, + "throttlingException":{ + "shape":"ThrottlingException", + "documentation":"

    Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase Provisioned Throughput to increase the rate or number of tokens you can process.

    " + }, + "validationException":{ + "shape":"ValidationException", + "documentation":"

    Input validation failed. Check your request parameters and retry the request.

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

    The stream containing events in the prompt optimization process.

    ", + "eventstream":true + }, "OrchestrationConfiguration":{ "type":"structure", "members":{ @@ -3347,12 +3485,29 @@ }, "documentation":"

    Configuration settings for text generation using a language model via the RetrieveAndGenerate operation. Includes parameters like temperature, top-p, maximum token count, and stop sequences.

    The valid range of maxTokens depends on the accepted values for your chosen model's inference parameters. To see the inference parameters for your model, see Inference parameters for foundation models.

    " }, + "TextPrompt":{ + "type":"structure", + "required":["text"], + "members":{ + "text":{ + "shape":"TextPromptTextString", + "documentation":"

    The text in the text prompt to optimize.

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

    Contains information about the text prompt to optimize.

    ", + "sensitive":true + }, "TextPromptTemplate":{ "type":"string", "max":4000, "min":1, "sensitive":true }, + "TextPromptTextString":{ + "type":"string", + "max":200000, + "min":1 + }, "TextResponsePart":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json b/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json index 943bdb84c5d..3685ab76b53 100644 --- a/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json +++ b/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json @@ -113,6 +113,29 @@ ], "documentation":"

    Creates a staging distribution using the configuration of the provided primary distribution. A staging distribution is a copy of an existing distribution (called the primary distribution) that you can use in a continuous deployment workflow.

    After you create a staging distribution, you can use UpdateDistribution to modify the staging distribution's configuration. Then you can use CreateContinuousDeploymentPolicy to incrementally move traffic to the staging distribution.

    This API operation requires the following IAM permissions:

    " }, + "CreateAnycastIpList":{ + "name":"CreateAnycastIpList2020_05_31", + "http":{ + "method":"POST", + "requestUri":"/2020-05-31/anycast-ip-list", + "responseCode":202 + }, + "input":{ + "shape":"CreateAnycastIpListRequest", + "locationName":"CreateAnycastIpListRequest", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"} + }, + "output":{"shape":"CreateAnycastIpListResult"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"EntityAlreadyExists"}, + {"shape":"InvalidTagging"}, + {"shape":"InvalidArgument"}, + {"shape":"EntityLimitExceeded"} + ], + "documentation":"

    Creates an Anycast static IP list.

    " + }, "CreateCachePolicy":{ "name":"CreateCachePolicy2020_05_31", "http":{ @@ -210,6 +233,7 @@ {"shape":"InvalidArgument"}, {"shape":"InvalidOriginReadTimeout"}, {"shape":"InvalidOriginAccessControl"}, + {"shape":"EntityNotFound"}, {"shape":"InvalidHeadersForS3Origin"}, {"shape":"TrustedSignerDoesNotExist"}, {"shape":"InvalidWebACLId"}, @@ -288,6 +312,7 @@ {"shape":"InvalidArgument"}, {"shape":"InvalidOriginReadTimeout"}, {"shape":"InvalidOriginAccessControl"}, + {"shape":"EntityNotFound"}, {"shape":"InvalidHeadersForS3Origin"}, {"shape":"TrustedSignerDoesNotExist"}, {"shape":"InvalidWebACLId"}, @@ -617,6 +642,50 @@ ], "documentation":"

    This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, read the announcement on the Amazon CloudFront discussion forum.

    " }, + "CreateVpcOrigin":{ + "name":"CreateVpcOrigin2020_05_31", + "http":{ + "method":"POST", + "requestUri":"/2020-05-31/vpc-origin", + "responseCode":202 + }, + "input":{ + "shape":"CreateVpcOriginRequest", + "locationName":"CreateVpcOriginRequest", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"} + }, + "output":{"shape":"CreateVpcOriginResult"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InconsistentQuantities"}, + {"shape":"EntityAlreadyExists"}, + {"shape":"InvalidTagging"}, + {"shape":"InvalidArgument"}, + {"shape":"EntityLimitExceeded"} + ], + "documentation":"

    Create an Amazon CloudFront VPC origin.

    " + }, + "DeleteAnycastIpList":{ + "name":"DeleteAnycastIpList2020_05_31", + "http":{ + "method":"DELETE", + "requestUri":"/2020-05-31/anycast-ip-list/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteAnycastIpListRequest"}, + "errors":[ + {"shape":"CannotDeleteEntityWhileInUse"}, + {"shape":"PreconditionFailed"}, + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"IllegalDelete"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidIfMatchVersion"} + ], + "documentation":"

    Deletes an Anycast static IP list.

    " + }, "DeleteCachePolicy":{ "name":"DeleteCachePolicy2020_05_31", "http":{ @@ -897,6 +966,27 @@ ], "documentation":"

    Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps.

    To delete an RTMP distribution using the CloudFront API:

    1. Disable the RTMP distribution.

    2. Submit a GET Streaming Distribution Config request to get the current configuration and the Etag header for the distribution.

    3. Update the XML document that was returned in the response to your GET Streaming Distribution Config request to change the value of Enabled to false.

    4. Submit a PUT Streaming Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2.

    5. Review the response to the PUT Streaming Distribution Config request to confirm that the distribution was successfully disabled.

    6. Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.

    7. Submit a DELETE Streaming Distribution request. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2.

    8. Review the response to your DELETE Streaming Distribution request to confirm that the distribution was successfully deleted.

    For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.

    " }, + "DeleteVpcOrigin":{ + "name":"DeleteVpcOrigin2020_05_31", + "http":{ + "method":"DELETE", + "requestUri":"/2020-05-31/vpc-origin/{Id}", + "responseCode":202 + }, + "input":{"shape":"DeleteVpcOriginRequest"}, + "output":{"shape":"DeleteVpcOriginResult"}, + "errors":[ + {"shape":"CannotDeleteEntityWhileInUse"}, + {"shape":"PreconditionFailed"}, + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"IllegalDelete"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidIfMatchVersion"} + ], + "documentation":"

    Delete an Amazon CloudFront VPC origin.

    " + }, "DescribeFunction":{ "name":"DescribeFunction2020_05_31", "http":{ @@ -929,6 +1019,23 @@ ], "documentation":"

    Specifies the key value store and its configuration.

    " }, + "GetAnycastIpList":{ + "name":"GetAnycastIpList2020_05_31", + "http":{ + "method":"GET", + "requestUri":"/2020-05-31/anycast-ip-list/{Id}", + "responseCode":200 + }, + "input":{"shape":"GetAnycastIpListRequest"}, + "output":{"shape":"GetAnycastIpListResult"}, + "errors":[ + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"} + ], + "documentation":"

    Gets an Anycast static IP list.

    " + }, "GetCachePolicy":{ "name":"GetCachePolicy2020_05_31", "http":{ @@ -1355,6 +1462,40 @@ ], "documentation":"

    Get the configuration information about a streaming distribution.

    " }, + "GetVpcOrigin":{ + "name":"GetVpcOrigin2020_05_31", + "http":{ + "method":"GET", + "requestUri":"/2020-05-31/vpc-origin/{Id}", + "responseCode":200 + }, + "input":{"shape":"GetVpcOriginRequest"}, + "output":{"shape":"GetVpcOriginResult"}, + "errors":[ + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"} + ], + "documentation":"

    Get the details of an Amazon CloudFront VPC origin.

    " + }, + "ListAnycastIpLists":{ + "name":"ListAnycastIpLists2020_05_31", + "http":{ + "method":"GET", + "requestUri":"/2020-05-31/anycast-ip-list", + "responseCode":200 + }, + "input":{"shape":"ListAnycastIpListsRequest"}, + "output":{"shape":"ListAnycastIpListsResult"}, + "errors":[ + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"} + ], + "documentation":"

    Lists your Anycast static IP lists.

    " + }, "ListCachePolicies":{ "name":"ListCachePolicies2020_05_31", "http":{ @@ -1430,6 +1571,23 @@ ], "documentation":"

    List CloudFront distributions.

    " }, + "ListDistributionsByAnycastIpListId":{ + "name":"ListDistributionsByAnycastIpListId2020_05_31", + "http":{ + "method":"GET", + "requestUri":"/2020-05-31/distributionsByAnycastIpListId/{AnycastIpListId}", + "responseCode":200 + }, + "input":{"shape":"ListDistributionsByAnycastIpListIdRequest"}, + "output":{"shape":"ListDistributionsByAnycastIpListIdResult"}, + "errors":[ + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"} + ], + "documentation":"

    Lists the distributions in your account that are associated with the specified AnycastIpListId.

    " + }, "ListDistributionsByCachePolicyId":{ "name":"ListDistributionsByCachePolicyId2020_05_31", "http":{ @@ -1511,6 +1669,23 @@ ], "documentation":"

    Gets a list of distribution IDs for distributions that have a cache behavior that's associated with the specified response headers policy.

    You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

    " }, + "ListDistributionsByVpcOriginId":{ + "name":"ListDistributionsByVpcOriginId2020_05_31", + "http":{ + "method":"GET", + "requestUri":"/2020-05-31/distributionsByVpcOriginId/{VpcOriginId}", + "responseCode":200 + }, + "input":{"shape":"ListDistributionsByVpcOriginIdRequest"}, + "output":{"shape":"ListDistributionsByVpcOriginIdResult"}, + "errors":[ + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"} + ], + "documentation":"

    List CloudFront distributions by their VPC origin ID.

    " + }, "ListDistributionsByWebACLId":{ "name":"ListDistributionsByWebACLId2020_05_31", "http":{ @@ -1722,6 +1897,23 @@ ], "documentation":"

    List tags for a CloudFront resource. For more information, see Tagging a distribution in the Amazon CloudFront Developer Guide.

    " }, + "ListVpcOrigins":{ + "name":"ListVpcOrigins2020_05_31", + "http":{ + "method":"GET", + "requestUri":"/2020-05-31/vpc-origin", + "responseCode":200 + }, + "input":{"shape":"ListVpcOriginsRequest"}, + "output":{"shape":"ListVpcOriginsResult"}, + "errors":[ + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"} + ], + "documentation":"

    List the CloudFront VPC origins in your account.

    " + }, "PublishFunction":{ "name":"PublishFunction2020_05_31", "http":{ @@ -1896,6 +2088,7 @@ {"shape":"InvalidOriginReadTimeout"}, {"shape":"IllegalUpdate"}, {"shape":"InvalidOriginAccessControl"}, + {"shape":"EntityNotFound"}, {"shape":"StagingDistributionInUse"}, {"shape":"InvalidHeadersForS3Origin"}, {"shape":"TrustedSignerDoesNotExist"}, @@ -1973,6 +2166,7 @@ {"shape":"InvalidOriginReadTimeout"}, {"shape":"IllegalUpdate"}, {"shape":"InvalidOriginAccessControl"}, + {"shape":"EntityNotFound"}, {"shape":"InvalidHeadersForS3Origin"}, {"shape":"TrustedSignerDoesNotExist"}, {"shape":"InvalidWebACLId"}, @@ -2261,6 +2455,30 @@ {"shape":"NoSuchStreamingDistribution"} ], "documentation":"

    Update a streaming distribution.

    " + }, + "UpdateVpcOrigin":{ + "name":"UpdateVpcOrigin2020_05_31", + "http":{ + "method":"PUT", + "requestUri":"/2020-05-31/vpc-origin/{Id}", + "responseCode":202 + }, + "input":{"shape":"UpdateVpcOriginRequest"}, + "output":{"shape":"UpdateVpcOriginResult"}, + "errors":[ + {"shape":"PreconditionFailed"}, + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InconsistentQuantities"}, + {"shape":"EntityAlreadyExists"}, + {"shape":"CannotUpdateEntityWhileInUse"}, + {"shape":"InvalidArgument"}, + {"shape":"EntityLimitExceeded"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"} + ], + "documentation":"

    Update an Amazon CloudFront VPC origin in your account.

    " } }, "shapes":{ @@ -2410,6 +2628,143 @@ }, "documentation":"

    A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:

    • CloudFront forwards only GET and HEAD requests.

    • CloudFront forwards only GET, HEAD, and OPTIONS requests.

    • CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests.

    If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.

    " }, + "AnycastIpList":{ + "type":"structure", + "required":[ + "Id", + "Name", + "Status", + "Arn", + "AnycastIps", + "IpCount", + "LastModifiedTime" + ], + "members":{ + "Id":{ + "shape":"string", + "documentation":"

    The ID of the Anycast static IP list.

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

    The name of the Anycast static IP list.

    " + }, + "Status":{ + "shape":"string", + "documentation":"

    The status of the Anycast static IP list. Valid values: Deployed, Deploying, or Failed.

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

    The Amazon Resource Name (ARN) of the Anycast static IP list.

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

    The static IP addresses that are allocated to the Anycast static IP list.

    " + }, + "IpCount":{ + "shape":"integer", + "documentation":"

    The number of IP addresses in the Anycast static IP list.

    " + }, + "LastModifiedTime":{ + "shape":"timestamp", + "documentation":"

    The last time the Anycast static IP list was modified.

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

    An Anycast static IP list.

    " + }, + "AnycastIpListCollection":{ + "type":"structure", + "required":[ + "Marker", + "MaxItems", + "IsTruncated", + "Quantity" + ], + "members":{ + "Items":{ + "shape":"AnycastIpListSummaries", + "documentation":"

    Items in the Anycast static IP list collection. Each item is of the AnycastIpListSummary structure type.

    " + }, + "Marker":{ + "shape":"string", + "documentation":"

    Use this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur after the marker. To get the next page of the list, set this field's value to the value of NextMarker from the current page's response.

    " + }, + "NextMarker":{ + "shape":"string", + "documentation":"

    Indicates the next page of the Anycast static IP list collection. To get the next page of the list, use this value in the Marker field of your request.

    " + }, + "MaxItems":{ + "shape":"integer", + "documentation":"

    The maximum number of Anycast static IP list collections that you want returned in the response.

    " + }, + "IsTruncated":{ + "shape":"boolean", + "documentation":"

    If there are more items in the list collection than are in this response, this value is true.

    " + }, + "Quantity":{ + "shape":"integer", + "documentation":"

    The quantity of Anycast static IP lists in the collection.

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

    The Anycast static IP list collection.

    " + }, + "AnycastIpListName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[a-zA-Z0-9-_]{1,64}" + }, + "AnycastIpListSummaries":{ + "type":"list", + "member":{ + "shape":"AnycastIpListSummary", + "locationName":"AnycastIpListSummary" + } + }, + "AnycastIpListSummary":{ + "type":"structure", + "required":[ + "Id", + "Name", + "Status", + "Arn", + "IpCount", + "LastModifiedTime" + ], + "members":{ + "Id":{ + "shape":"string", + "documentation":"

    The ID of the Anycast static IP list.

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

    The name of the Anycast static IP list.

    " + }, + "Status":{ + "shape":"string", + "documentation":"

    The deployment status of the Anycast static IP list. Valid values: Deployed, Deploying, or Failed.

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

    The Amazon Resource Name (ARN) of the Anycast static IP list.

    " + }, + "IpCount":{ + "shape":"integer", + "documentation":"

    The number of IP addresses in the Anycast static IP list.

    " + }, + "LastModifiedTime":{ + "shape":"timestamp", + "documentation":"

    The last time the Anycast static IP list was modified.

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

    An abbreviated version of the AnycastIpList structure. Omits the allocated static IP addresses (AnycastIpList$AnycastIps).

    " + }, + "AnycastIps":{ + "type":"list", + "member":{ + "shape":"string", + "locationName":"AnycastIp" + } + }, "AssociateAliasRequest":{ "type":"structure", "required":[ @@ -2527,6 +2882,10 @@ "shape":"string", "documentation":"

    The identifier for a response headers policy.

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

    The gRPC configuration for your cache behavior.

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

    This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field. For more information, see Working with policies in the Amazon CloudFront Developer Guide.

    If you want to include values in the cache key, use a cache policy. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.

    If you want to send values to the origin but not include them in the cache key, use an origin request policy. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.

    A CacheBehavior must include either a CachePolicyId or ForwardedValues. We recommend that you use a CachePolicyId.

    A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.

    ", @@ -2810,7 +3169,19 @@ "members":{ "Message":{"shape":"string"} }, - "documentation":"

    The key value store entity cannot be deleted while it is in use.

    ", + "documentation":"

    The entity cannot be deleted while it is in use.

    ", + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "CannotUpdateEntityWhileInUse":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "documentation":"

    The entity cannot be updated while it is in use.

    ", "error":{ "httpStatusCode":409, "senderFault":true @@ -3303,6 +3674,40 @@ }, "payload":"Distribution" }, + "CreateAnycastIpListRequest":{ + "type":"structure", + "required":[ + "Name", + "IpCount" + ], + "members":{ + "Name":{ + "shape":"AnycastIpListName", + "documentation":"

    Name of the Anycast static IP list.

    " + }, + "IpCount":{ + "shape":"integer", + "documentation":"

    The number of static IP addresses that are allocated to the Anycast static IP list.

    " + }, + "Tags":{"shape":"Tags"} + } + }, + "CreateAnycastIpListResult":{ + "type":"structure", + "members":{ + "AnycastIpList":{ + "shape":"AnycastIpList", + "documentation":"

    A response structure that includes the version identifier (ETag) and the created AnycastIpList structure.

    " + }, + "ETag":{ + "shape":"string", + "documentation":"

    The version identifier for the current version of the Anycast static IP list.

    ", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"AnycastIpList" + }, "CreateCachePolicyRequest":{ "type":"structure", "required":["CachePolicyConfig"], @@ -3995,6 +4400,39 @@ "documentation":"

    The returned result of the corresponding request.

    ", "payload":"StreamingDistribution" }, + "CreateVpcOriginRequest":{ + "type":"structure", + "required":["VpcOriginEndpointConfig"], + "members":{ + "VpcOriginEndpointConfig":{ + "shape":"VpcOriginEndpointConfig", + "documentation":"

    The VPC origin endpoint configuration.

    " + }, + "Tags":{"shape":"Tags"} + } + }, + "CreateVpcOriginResult":{ + "type":"structure", + "members":{ + "VpcOrigin":{ + "shape":"VpcOrigin", + "documentation":"

    The VPC origin.

    " + }, + "Location":{ + "shape":"string", + "documentation":"

    The VPC origin location.

    ", + "location":"header", + "locationName":"Location" + }, + "ETag":{ + "shape":"string", + "documentation":"

    The VPC origin ETag.

    ", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"VpcOrigin" + }, "CustomErrorResponse":{ "type":"structure", "required":["ErrorCode"], @@ -4150,6 +4588,10 @@ "shape":"string", "documentation":"

    The identifier for a response headers policy.

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

    The gRPC configuration for your cache behavior.

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

    This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field. For more information, see Working with policies in the Amazon CloudFront Developer Guide.

    If you want to include values in the cache key, use a cache policy. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.

    If you want to send values to the origin but not include them in the cache key, use an origin request policy. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.

    A DefaultCacheBehavior must include either a CachePolicyId or ForwardedValues. We recommend that you use a CachePolicyId.

    A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.

    ", @@ -4173,6 +4615,27 @@ }, "documentation":"

    A complex type that describes the default cache behavior if you don't specify a CacheBehavior element or if request URLs don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior.

    " }, + "DeleteAnycastIpListRequest":{ + "type":"structure", + "required":[ + "Id", + "IfMatch" + ], + "members":{ + "Id":{ + "shape":"string", + "documentation":"

    The ID of the Anycast static IP list.

    ", + "location":"uri", + "locationName":"Id" + }, + "IfMatch":{ + "shape":"string", + "documentation":"

    The current version (ETag value) of the Anycast static IP list that you are deleting.

    ", + "location":"header", + "locationName":"If-Match" + } + } + }, "DeleteCachePolicyRequest":{ "type":"structure", "required":["Id"], @@ -4464,6 +4927,43 @@ }, "documentation":"

    The request to delete a streaming distribution.

    " }, + "DeleteVpcOriginRequest":{ + "type":"structure", + "required":[ + "Id", + "IfMatch" + ], + "members":{ + "Id":{ + "shape":"string", + "documentation":"

    The VPC origin ID.

    ", + "location":"uri", + "locationName":"Id" + }, + "IfMatch":{ + "shape":"string", + "documentation":"

    The VPC origin to delete, if a match occurs.

    ", + "location":"header", + "locationName":"If-Match" + } + } + }, + "DeleteVpcOriginResult":{ + "type":"structure", + "members":{ + "VpcOrigin":{ + "shape":"VpcOrigin", + "documentation":"

    The VPC origin.

    " + }, + "ETag":{ + "shape":"string", + "documentation":"

    The VPC origin ETag.

    ", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"VpcOrigin" + }, "DescribeFunctionRequest":{ "type":"structure", "required":["Name"], @@ -4678,6 +5178,10 @@ "Staging":{ "shape":"boolean", "documentation":"

    A Boolean that indicates whether this is a staging distribution. When this value is true, this is a staging distribution. When this value is false, this is not a staging distribution.

    " + }, + "AnycastIpListId":{ + "shape":"string", + "documentation":"

    ID of the Anycast static IP list that is associated with the distribution.

    " } }, "documentation":"

    A distribution configuration.

    " @@ -4898,6 +5402,10 @@ "Staging":{ "shape":"boolean", "documentation":"

    A Boolean that indicates whether this is a staging distribution. When this value is true, this is a staging distribution. When this value is false, this is not a staging distribution.

    " + }, + "AnycastIpListId":{ + "shape":"string", + "documentation":"

    ID of the Anycast static IP list that is associated with the distribution.

    " } }, "documentation":"

    A summary of the information about a CloudFront distribution.

    " @@ -4978,7 +5486,7 @@ "members":{ "Message":{"shape":"string"} }, - "documentation":"

    The key value store entity already exists. You must provide a unique key value store entity.

    ", + "documentation":"

    The entity already exists. You must provide a unique entity.

    ", "error":{ "httpStatusCode":409, "senderFault":true @@ -4990,7 +5498,7 @@ "members":{ "Message":{"shape":"string"} }, - "documentation":"

    The key value store entity limit has been exceeded.

    ", + "documentation":"

    The entity limit has been exceeded.

    ", "error":{ "httpStatusCode":400, "senderFault":true @@ -5002,7 +5510,7 @@ "members":{ "Message":{"shape":"string"} }, - "documentation":"

    The key value store entity was not found.

    ", + "documentation":"

    The entity was not found.

    ", "error":{ "httpStatusCode":404, "senderFault":true @@ -5014,7 +5522,7 @@ "members":{ "Message":{"shape":"string"} }, - "documentation":"

    The key value store entity size limit was exceeded.

    ", + "documentation":"

    The entity size limit was exceeded.

    ", "error":{ "httpStatusCode":413, "senderFault":true @@ -5637,6 +6145,34 @@ "none" ] }, + "GetAnycastIpListRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "documentation":"

    The ID of the Anycast static IP list.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetAnycastIpListResult":{ + "type":"structure", + "members":{ + "AnycastIpList":{ + "shape":"AnycastIpList", + "documentation":"

    The Anycast static IP list details.

    " + }, + "ETag":{ + "shape":"string", + "documentation":"

    The version identifier for the current version of the Anycast static IP list.

    ", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"AnycastIpList" + }, "GetCachePolicyConfigRequest":{ "type":"structure", "required":["Id"], @@ -6405,35 +6941,74 @@ "documentation":"

    The returned result of the corresponding request.

    ", "payload":"StreamingDistributionConfig" }, - "GetStreamingDistributionRequest":{ + "GetStreamingDistributionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "documentation":"

    The streaming distribution's ID.

    ", + "location":"uri", + "locationName":"Id" + } + }, + "documentation":"

    The request to get a streaming distribution's information.

    " + }, + "GetStreamingDistributionResult":{ + "type":"structure", + "members":{ + "StreamingDistribution":{ + "shape":"StreamingDistribution", + "documentation":"

    The streaming distribution's information.

    " + }, + "ETag":{ + "shape":"string", + "documentation":"

    The current version of the streaming distribution's information. For example: E2QWRUHAPOMQZL.

    ", + "location":"header", + "locationName":"ETag" + } + }, + "documentation":"

    The returned result of the corresponding request.

    ", + "payload":"StreamingDistribution" + }, + "GetVpcOriginRequest":{ "type":"structure", "required":["Id"], "members":{ "Id":{ "shape":"string", - "documentation":"

    The streaming distribution's ID.

    ", + "documentation":"

    The VPC origin ID.

    ", "location":"uri", "locationName":"Id" } - }, - "documentation":"

    The request to get a streaming distribution's information.

    " + } }, - "GetStreamingDistributionResult":{ + "GetVpcOriginResult":{ "type":"structure", "members":{ - "StreamingDistribution":{ - "shape":"StreamingDistribution", - "documentation":"

    The streaming distribution's information.

    " + "VpcOrigin":{ + "shape":"VpcOrigin", + "documentation":"

    The VPC origin.

    " }, "ETag":{ "shape":"string", - "documentation":"

    The current version of the streaming distribution's information. For example: E2QWRUHAPOMQZL.

    ", + "documentation":"

    The VPC origin ETag.

    ", "location":"header", "locationName":"ETag" } }, - "documentation":"

    The returned result of the corresponding request.

    ", - "payload":"StreamingDistribution" + "payload":"VpcOrigin" + }, + "GrpcConfig":{ + "type":"structure", + "required":["Enabled"], + "members":{ + "Enabled":{ + "shape":"boolean", + "documentation":"

    Enables your CloudFront distribution to receive gRPC requests and to proxy them directly to your origins.

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

    Amazon CloudFront supports gRPC, an open-source remote procedure call (RPC) framework built on HTTP/2. gRPC offers bi-directional streaming and binary protocol that buffers payloads, making it suitable for applications that require low latency communications.

    To enable your distribution to handle gRPC requests, you must include HTTP/2 as one of the supported HTTP versions and allow HTTP methods, including POST.

    For more information, see Using gRPC with CloudFront distributions in the Amazon CloudFront Developer Guide.

    " }, "HeaderList":{ "type":"list", @@ -6479,7 +7054,7 @@ "members":{ "Message":{"shape":"string"} }, - "documentation":"

    You cannot delete a managed policy.

    ", + "documentation":"

    Deletion is not allowed for this entity.

    ", "error":{ "httpStatusCode":400, "senderFault":true @@ -7312,6 +7887,34 @@ }, "documentation":"

    A complex type that specifies a list of Lambda@Edge functions associations for a cache behavior.

    If you want to invoke one or more Lambda@Edge functions triggered by requests that match the PathPattern of the cache behavior, specify the applicable values for Quantity and Items. Note that there can be up to 4 LambdaFunctionAssociation items in this list (one for each possible value of EventType) and each EventType can be associated with only one function.

    If you don't want to invoke any Lambda@Edge functions for the requests that match PathPattern, specify 0 for Quantity and omit Items.

    " }, + "ListAnycastIpListsRequest":{ + "type":"structure", + "members":{ + "Marker":{ + "shape":"string", + "documentation":"

    Use this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur after the marker. To get the next page of the list, set this field's value to the value of NextMarker from the current page's response.

    ", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"integer", + "documentation":"

    The maximum number of Anycast static IP lists that you want returned in the response.

    ", + "location":"querystring", + "locationName":"MaxItems" + } + } + }, + "ListAnycastIpListsResult":{ + "type":"structure", + "members":{ + "AnycastIpLists":{ + "shape":"AnycastIpListCollection", + "documentation":"

    Root level tag for the AnycastIpLists parameters.

    ", + "locationName":"AnycastIpListCollection" + } + }, + "payload":"AnycastIpLists" + }, "ListCachePoliciesRequest":{ "type":"structure", "members":{ @@ -7444,6 +8047,37 @@ }, "payload":"ContinuousDeploymentPolicyList" }, + "ListDistributionsByAnycastIpListIdRequest":{ + "type":"structure", + "required":["AnycastIpListId"], + "members":{ + "Marker":{ + "shape":"string", + "documentation":"

    Use this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur after the marker. To get the next page of the list, set this field's value to the value of NextMarker from the current page's response.

    ", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"string", + "documentation":"

    The maximum number of distributions that you want returned in the response.

    ", + "location":"querystring", + "locationName":"MaxItems" + }, + "AnycastIpListId":{ + "shape":"string", + "documentation":"

    The ID of the Anycast static IP list.

    ", + "location":"uri", + "locationName":"AnycastIpListId" + } + } + }, + "ListDistributionsByAnycastIpListIdResult":{ + "type":"structure", + "members":{ + "DistributionList":{"shape":"DistributionList"} + }, + "payload":"DistributionList" + }, "ListDistributionsByCachePolicyIdRequest":{ "type":"structure", "required":["CachePolicyId"], @@ -7602,6 +8236,37 @@ }, "payload":"DistributionIdList" }, + "ListDistributionsByVpcOriginIdRequest":{ + "type":"structure", + "required":["VpcOriginId"], + "members":{ + "Marker":{ + "shape":"string", + "documentation":"

    The marker associated with the VPC origin distributions list.

    ", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"string", + "documentation":"

    The maximum number of items included in the list.

    ", + "location":"querystring", + "locationName":"MaxItems" + }, + "VpcOriginId":{ + "shape":"string", + "documentation":"

    The VPC origin ID.

    ", + "location":"uri", + "locationName":"VpcOriginId" + } + } + }, + "ListDistributionsByVpcOriginIdResult":{ + "type":"structure", + "members":{ + "DistributionIdList":{"shape":"DistributionIdList"} + }, + "payload":"DistributionIdList" + }, "ListDistributionsByWebACLIdRequest":{ "type":"structure", "required":["WebACLId"], @@ -8051,6 +8716,33 @@ "documentation":"

    The returned result of the corresponding request.

    ", "payload":"Tags" }, + "ListVpcOriginsRequest":{ + "type":"structure", + "members":{ + "Marker":{ + "shape":"string", + "documentation":"

    The marker associated with the VPC origins list.

    ", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"string", + "documentation":"

    The maximum number of items included in the list.

    ", + "location":"querystring", + "locationName":"MaxItems" + } + } + }, + "ListVpcOriginsResult":{ + "type":"structure", + "members":{ + "VpcOriginList":{ + "shape":"VpcOriginList", + "documentation":"

    List of VPC origins.

    " + } + }, + "payload":"VpcOriginList" + }, "LocationList":{ "type":"list", "member":{ @@ -8060,31 +8752,27 @@ }, "LoggingConfig":{ "type":"structure", - "required":[ - "Enabled", - "IncludeCookies", - "Bucket", - "Prefix" - ], "members":{ "Enabled":{ "shape":"boolean", - "documentation":"

    Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix, and IncludeCookies, the values are automatically deleted.

    " + "documentation":"

    Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and prefix, the values are automatically deleted.

    ", + "box":true }, "IncludeCookies":{ "shape":"boolean", - "documentation":"

    Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.

    " + "documentation":"

    Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.

    ", + "box":true }, "Bucket":{ "shape":"string", - "documentation":"

    The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

    " + "documentation":"

    The Amazon S3 bucket to store the access logs in, for example, amzn-s3-demo-bucket.s3.amazonaws.com.

    " }, "Prefix":{ "shape":"string", "documentation":"

    An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix element in the Logging element.

    " } }, - "documentation":"

    A complex type that controls whether access logs are written for the distribution.

    " + "documentation":"

    A complex type that specifies whether access logs are written for the distribution.

    If you already enabled standard logging (legacy) and you want to enable standard logging (v2) to send your access logs to Amazon S3, we recommend that you specify a different Amazon S3 bucket or use a separate path in the same bucket (for example, use a log prefix or partitioning). This helps you keep track of which log files are associated with which logging subscription and prevents log files from overwriting each other. For more information, see Standard logging (access logs) in the Amazon CloudFront Developer Guide.

    " }, "Method":{ "type":"string", @@ -8386,6 +9074,10 @@ "shape":"CustomOriginConfig", "documentation":"

    Use this type to specify an origin that is not an Amazon S3 bucket, with one exception. If the Amazon S3 bucket is configured with static website hosting, use this type. If the Amazon S3 bucket is not configured with static website hosting, use the S3OriginConfig type instead.

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

    The VPC origin configuration.

    " + }, "ConnectionAttempts":{ "shape":"integer", "documentation":"

    The number of times that CloudFront attempts to connect to the origin. The minimum number is 1, the maximum is 3, and the default (if you don't specify otherwise) is 3.

    For a custom origin (including an Amazon S3 bucket that's configured with static website hosting), this value also specifies the number of times that CloudFront attempts to get a response from the origin, in the case of an Origin Response Timeout.

    For more information, see Origin Connection Attempts in the Amazon CloudFront Developer Guide.

    " @@ -10411,7 +11103,7 @@ }, "Bucket":{ "shape":"string", - "documentation":"

    The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

    " + "documentation":"

    The Amazon S3 bucket to store the access logs in, for example, amzn-s3-demo-bucket.s3.amazonaws.com.

    " }, "Prefix":{ "shape":"string", @@ -12028,6 +12720,51 @@ "documentation":"

    The returned result of the corresponding request.

    ", "payload":"StreamingDistribution" }, + "UpdateVpcOriginRequest":{ + "type":"structure", + "required":[ + "VpcOriginEndpointConfig", + "Id", + "IfMatch" + ], + "members":{ + "VpcOriginEndpointConfig":{ + "shape":"VpcOriginEndpointConfig", + "documentation":"

    The VPC origin endpoint configuration.

    ", + "locationName":"VpcOriginEndpointConfig", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"} + }, + "Id":{ + "shape":"string", + "documentation":"

    The VPC origin ID.

    ", + "location":"uri", + "locationName":"Id" + }, + "IfMatch":{ + "shape":"string", + "documentation":"

    The VPC origin to update, if a match occurs.

    ", + "location":"header", + "locationName":"If-Match" + } + }, + "payload":"VpcOriginEndpointConfig" + }, + "UpdateVpcOriginResult":{ + "type":"structure", + "members":{ + "VpcOrigin":{ + "shape":"VpcOrigin", + "documentation":"

    The VPC origin.

    " + }, + "ETag":{ + "shape":"string", + "documentation":"

    The VPC origin ETag.

    ", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"VpcOrigin" + }, "ViewerCertificate":{ "type":"structure", "members":{ @@ -12072,6 +12809,175 @@ "redirect-to-https" ] }, + "VpcOrigin":{ + "type":"structure", + "required":[ + "Id", + "Arn", + "Status", + "CreatedTime", + "LastModifiedTime", + "VpcOriginEndpointConfig" + ], + "members":{ + "Id":{ + "shape":"string", + "documentation":"

    The VPC origin ID.

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

    The VPC origin ARN.

    " + }, + "Status":{ + "shape":"string", + "documentation":"

    The VPC origin status.

    " + }, + "CreatedTime":{ + "shape":"timestamp", + "documentation":"

    The VPC origin created time.

    " + }, + "LastModifiedTime":{ + "shape":"timestamp", + "documentation":"

    The VPC origin last modified time.

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

    The VPC origin endpoint configuration.

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

    An Amazon CloudFront VPC origin.

    " + }, + "VpcOriginConfig":{ + "type":"structure", + "required":["VpcOriginId"], + "members":{ + "VpcOriginId":{ + "shape":"string", + "documentation":"

    The VPC origin ID.

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

    An Amazon CloudFront VPC origin configuration.

    " + }, + "VpcOriginEndpointConfig":{ + "type":"structure", + "required":[ + "Name", + "Arn", + "HTTPPort", + "HTTPSPort", + "OriginProtocolPolicy" + ], + "members":{ + "Name":{ + "shape":"string", + "documentation":"

    The name of the CloudFront VPC origin endpoint configuration.

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

    The ARN of the CloudFront VPC origin endpoint configuration.

    " + }, + "HTTPPort":{ + "shape":"integer", + "documentation":"

    The HTTP port for the CloudFront VPC origin endpoint configuration.

    " + }, + "HTTPSPort":{ + "shape":"integer", + "documentation":"

    The HTTPS port of the CloudFront VPC origin endpoint configuration.

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

    The origin protocol policy for the CloudFront VPC origin endpoint configuration.

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

    An Amazon CloudFront VPC origin endpoint configuration.

    " + }, + "VpcOriginList":{ + "type":"structure", + "required":[ + "Marker", + "MaxItems", + "IsTruncated", + "Quantity" + ], + "members":{ + "Marker":{ + "shape":"string", + "documentation":"

    The marker associated with the VPC origins list.

    " + }, + "NextMarker":{ + "shape":"string", + "documentation":"

    The next marker associated with the VPC origins list.

    " + }, + "MaxItems":{ + "shape":"integer", + "documentation":"

    The maximum number of items included in the list.

    " + }, + "IsTruncated":{ + "shape":"boolean", + "documentation":"

    A flag that indicates whether more VPC origins remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more VPC origins in the list.

    " + }, + "Quantity":{ + "shape":"integer", + "documentation":"

    The number of VPC origins in the list.

    " + }, + "Items":{ + "shape":"VpcOriginSummaryList", + "documentation":"

    The items of the VPC origins list.

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

    A list of CloudFront VPC origins.

    " + }, + "VpcOriginSummary":{ + "type":"structure", + "required":[ + "Id", + "Name", + "Status", + "CreatedTime", + "LastModifiedTime", + "Arn", + "OriginEndpointArn" + ], + "members":{ + "Id":{ + "shape":"string", + "documentation":"

    The VPC origin summary ID.

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

    The VPC origin summary name.

    " + }, + "Status":{ + "shape":"string", + "documentation":"

    The VPC origin summary status.

    " + }, + "CreatedTime":{ + "shape":"timestamp", + "documentation":"

    The VPC origin summary created time.

    " + }, + "LastModifiedTime":{ + "shape":"timestamp", + "documentation":"

    The VPC origin summary last modified time.

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

    The VPC origin summary ARN.

    " + }, + "OriginEndpointArn":{ + "shape":"string", + "documentation":"

    The VPC origin summary origin endpoint ARN.

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

    A summary of the CloudFront VPC origin.

    " + }, + "VpcOriginSummaryList":{ + "type":"list", + "member":{ + "shape":"VpcOriginSummary", + "locationName":"VpcOriginSummary" + } + }, "aliasString":{ "type":"string", "max":253, diff --git a/tools/code-generation/api-descriptions/compute-optimizer-2019-11-01.normal.json b/tools/code-generation/api-descriptions/compute-optimizer-2019-11-01.normal.json index 779b6921c75..11bdef413dd 100644 --- a/tools/code-generation/api-descriptions/compute-optimizer-2019-11-01.normal.json +++ b/tools/code-generation/api-descriptions/compute-optimizer-2019-11-01.normal.json @@ -135,6 +135,26 @@ ], "documentation":"

    Exports optimization recommendations for Amazon ECS services on Fargate.

    Recommendations are exported in a CSV file, and its metadata in a JSON file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.

    You can only have one Amazon ECS service export job in progress per Amazon Web Services Region.

    " }, + "ExportIdleRecommendations":{ + "name":"ExportIdleRecommendations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ExportIdleRecommendationsRequest"}, + "output":{"shape":"ExportIdleRecommendationsResponse"}, + "errors":[ + {"shape":"OptInRequiredException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingAuthenticationToken"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"} + ], + "documentation":"

    Export optimization recommendations for your idle resources.

    Recommendations are exported in a comma-separated values (CSV) file, and its metadata in a JavaScript Object Notation (JSON) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.

    You can have only one idle resource export job in progress per Amazon Web Services Region.

    " + }, "ExportLambdaFunctionRecommendations":{ "name":"ExportLambdaFunctionRecommendations", "http":{ @@ -371,6 +391,26 @@ ], "documentation":"

    Returns the Compute Optimizer enrollment (opt-in) status of organization member accounts, if your account is an organization management account.

    To get the enrollment status of standalone accounts, use the GetEnrollmentStatus action.

    " }, + "GetIdleRecommendations":{ + "name":"GetIdleRecommendations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetIdleRecommendationsRequest"}, + "output":{"shape":"GetIdleRecommendationsResponse"}, + "errors":[ + {"shape":"OptInRequiredException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"MissingAuthenticationToken"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Returns idle resource recommendations. Compute Optimizer generates recommendations for idle resources that meet a specific set of requirements. For more information, see Resource requirements in the Compute Optimizer User Guide

    " + }, "GetLambdaFunctionRecommendations":{ "name":"GetLambdaFunctionRecommendations", "http":{ @@ -875,6 +915,7 @@ "P99_5" ] }, + "DBClusterIdentifier":{"type":"string"}, "DBInstanceClass":{"type":"string"}, "DBStorageConfiguration":{ "type":"structure", @@ -966,6 +1007,13 @@ "DestinationBucket":{"type":"string"}, "DestinationKey":{"type":"string"}, "DestinationKeyPrefix":{"type":"string"}, + "Dimension":{ + "type":"string", + "enum":[ + "SavingsValue", + "SavingsValueAfterDiscount" + ] + }, "EBSEffectiveRecommendationPreferences":{ "type":"structure", "members":{ @@ -1682,6 +1730,43 @@ "s3Destination":{"shape":"S3Destination"} } }, + "ExportIdleRecommendationsRequest":{ + "type":"structure", + "required":["s3DestinationConfig"], + "members":{ + "accountIds":{ + "shape":"AccountIds", + "documentation":"

    The Amazon Web Services account IDs for the export idle resource recommendations.

    If your account is the management account or the delegated administrator of an organization, use this parameter to specify the member account you want to export recommendations to.

    This parameter can't be specified together with the include member accounts parameter. The parameters are mutually exclusive.

    If this parameter or the include member accounts parameter is omitted, the recommendations for member accounts aren't included in the export.

    You can specify multiple account IDs per request.

    " + }, + "filters":{ + "shape":"IdleRecommendationFilters", + "documentation":"

    An array of objects to specify a filter that exports a more specific set of idle resource recommendations.

    " + }, + "fieldsToExport":{ + "shape":"ExportableIdleFields", + "documentation":"

    The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.

    " + }, + "s3DestinationConfig":{"shape":"S3DestinationConfig"}, + "fileFormat":{ + "shape":"FileFormat", + "documentation":"

    The format of the export file. The CSV file is the only export file format currently supported.

    " + }, + "includeMemberAccounts":{ + "shape":"IncludeMemberAccounts", + "documentation":"

    If your account is the management account or the delegated administrator of an organization, this parameter indicates whether to include recommendations for resources in all member accounts of the organization.

    The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.

    If this parameter is omitted, recommendations for member accounts of the organization aren't included in the export file.

    If this parameter or the account ID parameter is omitted, recommendations for member accounts aren't included in the export.

    " + } + } + }, + "ExportIdleRecommendationsResponse":{ + "type":"structure", + "members":{ + "jobId":{ + "shape":"JobId", + "documentation":"

    The identification number of the export job.

    To view the status of an export job, use the DescribeRecommendationExportJobs action and specify the job ID.

    " + }, + "s3Destination":{"shape":"S3Destination"} + } + }, "ExportLambdaFunctionRecommendationsRequest":{ "type":"structure", "required":["s3DestinationConfig"], @@ -1906,6 +1991,35 @@ "type":"list", "member":{"shape":"ExportableECSServiceField"} }, + "ExportableIdleField":{ + "type":"string", + "enum":[ + "AccountId", + "ResourceArn", + "ResourceId", + "ResourceType", + "LastRefreshTimestamp", + "LookbackPeriodInDays", + "SavingsOpportunity", + "SavingsOpportunityAfterDiscount", + "UtilizationMetricsCpuMaximum", + "UtilizationMetricsMemoryMaximum", + "UtilizationMetricsNetworkOutBytesPerSecondMaximum", + "UtilizationMetricsNetworkInBytesPerSecondMaximum", + "UtilizationMetricsDatabaseConnectionsMaximum", + "UtilizationMetricsEBSVolumeReadIOPSMaximum", + "UtilizationMetricsEBSVolumeWriteIOPSMaximum", + "UtilizationMetricsVolumeReadOpsPerSecondMaximum", + "UtilizationMetricsVolumeWriteOpsPerSecondMaximum", + "Finding", + "FindingDescription", + "Tags" + ] + }, + "ExportableIdleFields":{ + "type":"list", + "member":{"shape":"ExportableIdleField"} + }, "ExportableInstanceField":{ "type":"string", "enum":[ @@ -2074,6 +2188,7 @@ "CurrentInstanceOnDemandHourlyPrice", "CurrentStorageOnDemandMonthlyPrice", "LookbackPeriodInDays", + "CurrentInstancePerformanceRisk", "UtilizationMetricsCpuMaximum", "UtilizationMetricsMemoryMaximum", "UtilizationMetricsEBSVolumeStorageSpaceUtilizationMaximum", @@ -2084,6 +2199,14 @@ "UtilizationMetricsEBSVolumeReadThroughputMaximum", "UtilizationMetricsEBSVolumeWriteThroughputMaximum", "UtilizationMetricsDatabaseConnectionsMaximum", + "UtilizationMetricsStorageNetworkReceiveThroughputMaximum", + "UtilizationMetricsStorageNetworkTransmitThroughputMaximum", + "UtilizationMetricsAuroraMemoryHealthStateMaximum", + "UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum", + "UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum", + "UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum", + "UtilizationMetricsReadIOPSEphemeralStorageMaximum", + "UtilizationMetricsWriteIOPSEphemeralStorageMaximum", "InstanceFinding", "InstanceFindingReasonCodes", "StorageFinding", @@ -2117,7 +2240,9 @@ "EffectiveRecommendationPreferencesLookBackPeriod", "EffectiveRecommendationPreferencesSavingsEstimationMode", "LastRefreshTimestamp", - "Tags" + "Tags", + "DBClusterIdentifier", + "PromotionTier" ] }, "ExportableRDSDBFields":{ @@ -2633,6 +2758,52 @@ } } }, + "GetIdleRecommendationsRequest":{ + "type":"structure", + "members":{ + "resourceArns":{ + "shape":"ResourceArns", + "documentation":"

    The ARN that identifies the idle resource.

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

    The token to advance to the next page of idle resource recommendations.

    " + }, + "maxResults":{ + "shape":"IdleMaxResults", + "documentation":"

    The maximum number of idle resource recommendations to return with a single request.

    To retrieve the remaining results, make another request with the returned nextToken value.

    " + }, + "filters":{ + "shape":"IdleRecommendationFilters", + "documentation":"

    An array of objects to specify a filter that returns a more specific list of idle resource recommendations.

    " + }, + "accountIds":{ + "shape":"AccountIds", + "documentation":"

    Return the idle resource recommendations to the specified Amazon Web Services account IDs.

    If your account is the management account or the delegated administrator of an organization, use this parameter to return the idle resource recommendations to specific member accounts.

    You can only specify one account ID per request.

    " + }, + "orderBy":{ + "shape":"OrderBy", + "documentation":"

    The order to sort the idle resource recommendations.

    " + } + } + }, + "GetIdleRecommendationsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token to advance to the next page of idle resource recommendations.

    " + }, + "idleRecommendations":{ + "shape":"IdleRecommendations", + "documentation":"

    An array of objects that describe the idle resource recommendations.

    " + }, + "errors":{ + "shape":"IdleRecommendationErrors", + "documentation":"

    An array of objects that describe errors of the request.

    " + } + } + }, "GetLambdaFunctionRecommendationsRequest":{ "type":"structure", "members":{ @@ -2924,6 +3095,235 @@ "False" ] }, + "IdleEstimatedMonthlySavings":{ + "type":"structure", + "members":{ + "currency":{ + "shape":"Currency", + "documentation":"

    The currency of the estimated monthly savings.

    " + }, + "value":{ + "shape":"Value", + "documentation":"

    The value of the estimated monthly savings for Idle resources.

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

    Describes the estimated monthly savings possible for idle resources by adopting Compute Optimizer recommendations.

    " + }, + "IdleFinding":{ + "type":"string", + "enum":[ + "Idle", + "Unattached" + ] + }, + "IdleFindingDescription":{"type":"string"}, + "IdleMaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":0 + }, + "IdleMetricName":{ + "type":"string", + "enum":[ + "CPU", + "Memory", + "NetworkOutBytesPerSecond", + "NetworkInBytesPerSecond", + "DatabaseConnections", + "EBSVolumeReadIOPS", + "EBSVolumeWriteIOPS", + "VolumeReadOpsPerSecond", + "VolumeWriteOpsPerSecond" + ] + }, + "IdleRecommendation":{ + "type":"structure", + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "documentation":"

    The ARN of the current idle resource.

    " + }, + "resourceId":{ + "shape":"ResourceId", + "documentation":"

    The unique identifier for the resource.

    " + }, + "resourceType":{ + "shape":"IdleRecommendationResourceType", + "documentation":"

    The type of resource that is idle.

    " + }, + "accountId":{ + "shape":"AccountId", + "documentation":"

    The Amazon Web Services account ID of the idle resource.

    " + }, + "finding":{ + "shape":"IdleFinding", + "documentation":"

    The finding classification of an idle resource.

    " + }, + "findingDescription":{ + "shape":"IdleFindingDescription", + "documentation":"

    A summary of the findings for the resource.

    " + }, + "savingsOpportunity":{ + "shape":"IdleSavingsOpportunity", + "documentation":"

    The savings opportunity for the idle resource.

    " + }, + "savingsOpportunityAfterDiscounts":{ + "shape":"IdleSavingsOpportunityAfterDiscounts", + "documentation":"

    The savings opportunity for the idle resource after any applying discounts.

    " + }, + "utilizationMetrics":{ + "shape":"IdleUtilizationMetrics", + "documentation":"

    An array of objects that describe the utilization metrics of the idle resource.

    " + }, + "lookBackPeriodInDays":{ + "shape":"LookBackPeriodInDays", + "documentation":"

    The number of days the idle resource utilization metrics were analyzed.

    " + }, + "lastRefreshTimestamp":{ + "shape":"LastRefreshTimestamp", + "documentation":"

    The timestamp of when the idle resource recommendation was last generated.

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

    A list of tags assigned to your idle resource recommendations.

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

    Describes an Idle resource recommendation.

    " + }, + "IdleRecommendationError":{ + "type":"structure", + "members":{ + "identifier":{ + "shape":"Identifier", + "documentation":"

    The ID of the error.

    " + }, + "code":{ + "shape":"Code", + "documentation":"

    The error code.

    " + }, + "message":{ + "shape":"Message", + "documentation":"

    The error message.

    " + }, + "resourceType":{ + "shape":"IdleRecommendationResourceType", + "documentation":"

    The type of resource associated with the error.

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

    Returns of list of resources that doesn't have idle recommendations.

    " + }, + "IdleRecommendationErrors":{ + "type":"list", + "member":{"shape":"IdleRecommendationError"} + }, + "IdleRecommendationFilter":{ + "type":"structure", + "members":{ + "name":{ + "shape":"IdleRecommendationFilterName", + "documentation":"

    The name of the filter.

    Specify Finding to return recommendations with a specific finding classification.

    You can filter your idle resource recommendations by tag:key and tag-key tags.

    A tag:key is a key and value combination of a tag assigned to your idle resource recommendations. Use the tag key in the filter name and the tag value as the filter value. For example, to find all idle resource service recommendations that have a tag with the key of Owner and the value of TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

    A tag-key is the key of a tag assigned to your idle resource recommendations. Use this filter to find all of your idle resource recommendations that have a tag with a specific key. This doesn’t consider the tag value. For example, you can find your idle resource service recommendations with a tag key value of Owner or without any tag keys assigned.

    " + }, + "values":{ + "shape":"FilterValues", + "documentation":"

    The value of the filter.

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

    Describes a filter that returns a more specific list of idle resource recommendations.

    " + }, + "IdleRecommendationFilterName":{ + "type":"string", + "enum":[ + "Finding", + "ResourceType" + ] + }, + "IdleRecommendationFilters":{ + "type":"list", + "member":{"shape":"IdleRecommendationFilter"} + }, + "IdleRecommendationResourceType":{ + "type":"string", + "enum":[ + "EC2Instance", + "AutoScalingGroup", + "EBSVolume", + "ECSService", + "RDSDBInstance" + ] + }, + "IdleRecommendations":{ + "type":"list", + "member":{"shape":"IdleRecommendation"} + }, + "IdleSavingsOpportunity":{ + "type":"structure", + "members":{ + "savingsOpportunityPercentage":{ + "shape":"SavingsOpportunityPercentage", + "documentation":"

    The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer's idle resource recommendations.

    " + }, + "estimatedMonthlySavings":{ + "shape":"IdleEstimatedMonthlySavings", + "documentation":"

    The estimated monthly savings possible by adopting Compute Optimizer's idle resource recommendations.

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

    Describes the savings opportunity for idle resource recommendations.

    " + }, + "IdleSavingsOpportunityAfterDiscounts":{ + "type":"structure", + "members":{ + "savingsOpportunityPercentage":{ + "shape":"SavingsOpportunityPercentage", + "documentation":"

    The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer's idle resource recommendations. This includes any applicable discounts.

    " + }, + "estimatedMonthlySavings":{ + "shape":"IdleEstimatedMonthlySavings", + "documentation":"

    The estimated monthly savings possible by adopting Compute Optimizer's idle resource recommendations. This includes any applicable discounts.

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

    Describes the savings opportunity for idle resource recommendations after applying discounts.

    Savings opportunity represents the estimated monthly savings after applying discounts. You can achieve this by implementing a given Compute Optimizer recommendation.

    " + }, + "IdleSummaries":{ + "type":"list", + "member":{"shape":"IdleSummary"} + }, + "IdleSummary":{ + "type":"structure", + "members":{ + "name":{ + "shape":"IdleFinding", + "documentation":"

    The name of the finding group for the idle resources.

    " + }, + "value":{ + "shape":"SummaryValue", + "documentation":"

    The count of idle resources in the finding group.

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

    Describes the findings summary of the idle resources.

    " + }, + "IdleUtilizationMetric":{ + "type":"structure", + "members":{ + "name":{ + "shape":"IdleMetricName", + "documentation":"

    The name of the utilization metric.

    " + }, + "statistic":{ + "shape":"MetricStatistic", + "documentation":"

    The statistic of the utilization metric.

    The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the Maximum statistic, which is the highest value observed during the specified period.

    The Compute Optimizer console displays graphs for some utilization metrics using the Average statistic, which is the value of Sum / SampleCount during the specified period. For more information, see Viewing resource recommendations in the Compute Optimizer User Guide. You can also get averaged utilization metric data for your resources using Amazon CloudWatch. For more information, see the Amazon CloudWatch User Guide.

    " + }, + "value":{ + "shape":"MetricValue", + "documentation":"

    The value of the utilization metric.

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

    Describes the utilization metric of an idle resource.

    " + }, + "IdleUtilizationMetrics":{ + "type":"list", + "member":{"shape":"IdleUtilizationMetric"} + }, "IncludeMemberAccounts":{"type":"boolean"}, "InferredWorkloadSaving":{ "type":"structure", @@ -3843,6 +4243,27 @@ "exception":true, "synthetic":true }, + "Order":{ + "type":"string", + "enum":[ + "Asc", + "Desc" + ] + }, + "OrderBy":{ + "type":"structure", + "members":{ + "dimension":{ + "shape":"Dimension", + "documentation":"

    The dimension values to sort the recommendations.

    " + }, + "order":{ + "shape":"Order", + "documentation":"

    The order to sort the recommendations.

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

    Describes how the recommendations are ordered.

    " + }, "PerformanceRisk":{ "type":"double", "max":4, @@ -3921,6 +4342,7 @@ "type":"list", "member":{"shape":"UtilizationMetric"} }, + "PromotionTier":{"type":"integer"}, "PutRecommendationPreferencesRequest":{ "type":"structure", "required":["resourceType"], @@ -3968,6 +4390,15 @@ "members":{ } }, + "RDSCurrentInstancePerformanceRisk":{ + "type":"string", + "enum":[ + "VeryLow", + "Low", + "Medium", + "High" + ] + }, "RDSDBInstanceRecommendationOption":{ "type":"structure", "members":{ @@ -4011,7 +4442,15 @@ "EBSVolumeWriteIOPS", "EBSVolumeReadThroughput", "EBSVolumeWriteThroughput", - "DatabaseConnections" + "DatabaseConnections", + "StorageNetworkReceiveThroughput", + "StorageNetworkTransmitThroughput", + "AuroraMemoryHealthState", + "AuroraMemoryNumDeclinedSql", + "AuroraMemoryNumKillConnTotal", + "AuroraMemoryNumKillQueryTotal", + "ReadIOPSEphemeralStorage", + "WriteIOPSEphemeralStorage" ] }, "RDSDBMetricStatistic":{ @@ -4045,6 +4484,10 @@ "shape":"EngineVersion", "documentation":"

    The database engine version.

    " }, + "promotionTier":{ + "shape":"PromotionTier", + "documentation":"

    The promotion tier for the Aurora instance.

    " + }, "currentDBInstanceClass":{ "shape":"CurrentDBInstanceClass", "documentation":"

    The DB instance class of the current RDS instance.

    " @@ -4053,6 +4496,10 @@ "shape":"DBStorageConfiguration", "documentation":"

    The configuration of the current RDS storage.

    " }, + "dbClusterIdentifier":{ + "shape":"DBClusterIdentifier", + "documentation":"

    The identifier for DB cluster.

    " + }, "idle":{ "shape":"Idle", "documentation":"

    This indicates if the RDS instance is idle or not.

    " @@ -4069,6 +4516,10 @@ "shape":"RDSInstanceFindingReasonCodes", "documentation":"

    The reason for the finding classification of an Amazon RDS instance.

    " }, + "currentInstancePerformanceRisk":{ + "shape":"RDSCurrentInstancePerformanceRisk", + "documentation":"

    The performance risk for the current DB instance.

    " + }, "storageFindingReasonCodes":{ "shape":"RDSStorageFindingReasonCodes", "documentation":"

    The reason for the finding classification of Amazon RDS storage.

    " @@ -4275,12 +4726,17 @@ "CPUOverprovisioned", "NetworkBandwidthOverprovisioned", "EBSIOPSOverprovisioned", + "EBSIOPSUnderprovisioned", "EBSThroughputOverprovisioned", "CPUUnderprovisioned", "NetworkBandwidthUnderprovisioned", "EBSThroughputUnderprovisioned", "NewGenerationDBInstanceClassAvailable", - "NewEngineVersionAvailable" + "NewEngineVersionAvailable", + "DBClusterWriterUnderprovisioned", + "MemoryUnderprovisioned", + "InstanceStorageReadIOPSUnderprovisioned", + "InstanceStorageWriteIOPSUnderprovisioned" ] }, "RDSInstanceFindingReasonCodes":{ @@ -4544,6 +5000,10 @@ "shape":"Summaries", "documentation":"

    An array of objects that describe a recommendation summary.

    " }, + "idleSummaries":{ + "shape":"IdleSummaries", + "documentation":"

    Describes the findings summary of the idle resources.

    " + }, "recommendationResourceType":{ "shape":"RecommendationSourceType", "documentation":"

    The resource type that the recommendation summary applies to.

    " @@ -4556,6 +5016,8 @@ "shape":"SavingsOpportunity", "documentation":"

    An object that describes the savings opportunity for a given resource type. Savings opportunity includes the estimated monthly savings amount and percentage.

    " }, + "idleSavingsOpportunity":{"shape":"SavingsOpportunity"}, + "aggregatedSavingsOpportunity":{"shape":"SavingsOpportunity"}, "currentPerformanceRiskRatings":{ "shape":"CurrentPerformanceRiskRatings", "documentation":"

    An object that describes the performance risk ratings for a given resource type.

    " @@ -4596,6 +5058,7 @@ "type":"list", "member":{"shape":"ResourceArn"} }, + "ResourceId":{"type":"string"}, "ResourceNotFoundException":{ "type":"structure", "members":{ @@ -4615,7 +5078,8 @@ "NotApplicable", "EcsService", "License", - "RdsDBInstance" + "RdsDBInstance", + "Idle" ] }, "RootVolume":{"type":"boolean"}, @@ -4890,7 +5354,7 @@ "members":{ "volumeType":{ "shape":"VolumeType", - "documentation":"

    The volume type.

    This can be gp2 for General Purpose SSD, io1 or io2 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.

    " + "documentation":"

    The volume type.

    The volume types can be the following:

    • General Purpose SSD gp2 and gp3

    • Provisioned IOPS SSD io1, io2, and io2 Block Express

    • Throughput Optimized HDD st1

    • Cold HDD sc1

    • Magnetic volumes standard

    " }, "volumeSize":{ "shape":"VolumeSize", diff --git a/tools/code-generation/api-descriptions/controltower-2018-05-10.normal.json b/tools/code-generation/api-descriptions/controltower-2018-05-10.normal.json index 386edf6b9d0..e14e24a1136 100644 --- a/tools/code-generation/api-descriptions/controltower-2018-05-10.normal.json +++ b/tools/code-generation/api-descriptions/controltower-2018-05-10.normal.json @@ -632,6 +632,10 @@ "type":"list", "member":{"shape":"BaselineSummary"} }, + "Boolean":{ + "type":"boolean", + "box":true + }, "ConflictException":{ "type":"structure", "required":["message"], @@ -1053,6 +1057,10 @@ "shape":"EnabledBaselineParameterSummaries", "documentation":"

    Shows the parameters that are applied when enabling this Baseline.

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

    An ARN that represents the parent EnabledBaseline at the Organizational Unit (OU) level, from which the child EnabledBaseline inherits its configuration. The value is returned by GetEnabledBaseline.

    " + }, "statusSummary":{"shape":"EnablementStatusSummary"}, "targetIdentifier":{ "shape":"String", @@ -1068,6 +1076,10 @@ "shape":"EnabledBaselineBaselineIdentifiers", "documentation":"

    Identifiers for the Baseline objects returned as part of the filter operation.

    " }, + "parentIdentifiers":{ + "shape":"EnabledBaselineParentIdentifiers", + "documentation":"

    An optional filter that sets up a list of parentIdentifiers to filter the results of the ListEnabledBaseline output.

    " + }, "targetIdentifiers":{ "shape":"EnabledBaselineTargetIdentifiers", "documentation":"

    Identifiers for the targets of the Baseline filter operation.

    " @@ -1125,6 +1137,12 @@ "type":"list", "member":{"shape":"EnabledBaselineParameter"} }, + "EnabledBaselineParentIdentifiers":{ + "type":"list", + "member":{"shape":"Arn"}, + "max":5, + "min":1 + }, "EnabledBaselineSummary":{ "type":"structure", "required":[ @@ -1146,6 +1164,10 @@ "shape":"String", "documentation":"

    The enabled version of the baseline.

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

    An ARN that represents an object returned by ListEnabledBaseline, to describe an enabled baseline.

    " + }, "statusSummary":{"shape":"EnablementStatusSummary"}, "targetIdentifier":{ "shape":"String", @@ -1741,6 +1763,10 @@ "shape":"EnabledBaselineFilter", "documentation":"

    A filter applied on the ListEnabledBaseline operation. Allowed filters are baselineIdentifiers and targetIdentifiers. The filter can be applied for either, or both.

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

    A value that can be set to include the child enabled baselines in responses. The default value is false.

    " + }, "maxResults":{ "shape":"ListEnabledBaselinesMaxResults", "documentation":"

    The maximum number of results to be shown.

    " diff --git a/tools/code-generation/api-descriptions/cost-optimization-hub-2022-07-26.normal.json b/tools/code-generation/api-descriptions/cost-optimization-hub-2022-07-26.normal.json index b66cf10f538..08c7a9f9469 100644 --- a/tools/code-generation/api-descriptions/cost-optimization-hub-2022-07-26.normal.json +++ b/tools/code-generation/api-descriptions/cost-optimization-hub-2022-07-26.normal.json @@ -183,7 +183,8 @@ "Upgrade", "PurchaseSavingsPlans", "PurchaseReservedInstances", - "MigrateToGraviton" + "MigrateToGraviton", + "Delete" ] }, "ActionTypeList":{ diff --git a/tools/code-generation/api-descriptions/datazone-2018-05-10.normal.json b/tools/code-generation/api-descriptions/datazone-2018-05-10.normal.json index 8ccd2c3b712..461a935b903 100644 --- a/tools/code-generation/api-descriptions/datazone-2018-05-10.normal.json +++ b/tools/code-generation/api-descriptions/datazone-2018-05-10.normal.json @@ -556,6 +556,28 @@ ], "documentation":"

    Creates a project membership in Amazon DataZone.

    " }, + "CreateRule":{ + "name":"CreateRule", + "http":{ + "method":"POST", + "requestUri":"/v2/domains/{domainIdentifier}/rules", + "responseCode":201 + }, + "input":{"shape":"CreateRuleInput"}, + "output":{"shape":"CreateRuleOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"UnauthorizedException"} + ], + "documentation":"

    Creates a rule in Amazon DataZone. A rule is a formal agreement that enforces specific requirements across user workflows (e.g., publishing assets to the catalog, requesting subscriptions, creating projects) within the Amazon DataZone data portal. These rules help maintain consistency, ensure compliance, and uphold governance standards in data management processes. For instance, a metadata enforcement rule can specify the required information for creating a subscription request or publishing a data asset to the catalog, ensuring alignment with organizational standards.

    ", + "idempotent":true + }, "CreateSubscriptionGrant":{ "name":"CreateSubscriptionGrant", "http":{ @@ -983,6 +1005,27 @@ "documentation":"

    Deletes project membership in Amazon DataZone.

    ", "idempotent":true }, + "DeleteRule":{ + "name":"DeleteRule", + "http":{ + "method":"DELETE", + "requestUri":"/v2/domains/{domainIdentifier}/rules/{identifier}", + "responseCode":204 + }, + "input":{"shape":"DeleteRuleInput"}, + "output":{"shape":"DeleteRuleOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"UnauthorizedException"} + ], + "documentation":"

    Deletes a rule in Amazon DataZone. A rule is a formal agreement that enforces specific requirements across user workflows (e.g., publishing assets to the catalog, requesting subscriptions, creating projects) within the Amazon DataZone data portal. These rules help maintain consistency, ensure compliance, and uphold governance standards in data management processes. For instance, a metadata enforcement rule can specify the required information for creating a subscription request or publishing a data asset to the catalog, ensuring alignment with organizational standards.

    ", + "idempotent":true + }, "DeleteSubscriptionGrant":{ "name":"DeleteSubscriptionGrant", "http":{ @@ -1524,6 +1567,25 @@ ], "documentation":"

    Gets a project in Amazon DataZone.

    " }, + "GetRule":{ + "name":"GetRule", + "http":{ + "method":"GET", + "requestUri":"/v2/domains/{domainIdentifier}/rules/{identifier}", + "responseCode":200 + }, + "input":{"shape":"GetRuleInput"}, + "output":{"shape":"GetRuleOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"UnauthorizedException"} + ], + "documentation":"

    Gets the details of a rule in Amazon DataZone. A rule is a formal agreement that enforces specific requirements across user workflows (e.g., publishing assets to the catalog, requesting subscriptions, creating projects) within the Amazon DataZone data portal. These rules help maintain consistency, ensure compliance, and uphold governance standards in data management processes. For instance, a metadata enforcement rule can specify the required information for creating a subscription request or publishing a data asset to the catalog, ensuring alignment with organizational standards.

    " + }, "GetSubscription":{ "name":"GetSubscription", "http":{ @@ -2019,6 +2081,25 @@ ], "documentation":"

    Lists Amazon DataZone projects.

    " }, + "ListRules":{ + "name":"ListRules", + "http":{ + "method":"GET", + "requestUri":"/v2/domains/{domainIdentifier}/list-rules/{targetType}/{targetIdentifier}", + "responseCode":200 + }, + "input":{"shape":"ListRulesInput"}, + "output":{"shape":"ListRulesOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"UnauthorizedException"} + ], + "documentation":"

    Lists existing rules. In Amazon DataZone, a rule is a formal agreement that enforces specific requirements across user workflows (e.g., publishing assets to the catalog, requesting subscriptions, creating projects) within the Amazon DataZone data portal. These rules help maintain consistency, ensure compliance, and uphold governance standards in data management processes. For instance, a metadata enforcement rule can specify the required information for creating a subscription request or publishing a data asset to the catalog, ensuring alignment with organizational standards.

    " + }, "ListSubscriptionGrants":{ "name":"ListSubscriptionGrants", "http":{ @@ -2704,6 +2785,28 @@ "documentation":"

    Updates the specified project in Amazon DataZone.

    ", "idempotent":true }, + "UpdateRule":{ + "name":"UpdateRule", + "http":{ + "method":"PATCH", + "requestUri":"/v2/domains/{domainIdentifier}/rules/{identifier}", + "responseCode":200 + }, + "input":{"shape":"UpdateRuleInput"}, + "output":{"shape":"UpdateRuleOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"UnauthorizedException"} + ], + "documentation":"

    Updates a rule. In Amazon DataZone, a rule is a formal agreement that enforces specific requirements across user workflows (e.g., publishing assets to the catalog, requesting subscriptions, creating projects) within the Amazon DataZone data portal. These rules help maintain consistency, ensure compliance, and uphold governance standards in data management processes. For instance, a metadata enforcement rule can specify the required information for creating a subscription request or publishing a data asset to the catalog, ensuring alignment with organizational standards.

    ", + "idempotent":true + }, "UpdateSubscriptionGrantStatus":{ "name":"UpdateSubscriptionGrantStatus", "http":{ @@ -2953,10 +3056,18 @@ "shape":"DomainId", "documentation":"

    The unique identifier of the Amazon DataZone domain where the specified subscription request was accepted.

    " }, + "existingSubscriptionId":{ + "shape":"SubscriptionId", + "documentation":"

    The ID of the existing subscription.

    " + }, "id":{ "shape":"SubscriptionRequestId", "documentation":"

    The identifier of the subscription request.

    " }, + "metadataForms":{ + "shape":"MetadataForms", + "documentation":"

    The metadata form in the subscription request.

    " + }, "requestReason":{ "shape":"RequestReason", "documentation":"

    Specifies the reason for requesting a subscription to the asset.

    " @@ -3579,6 +3690,10 @@ "min":1, "pattern":"^(?!\\.)[\\w\\.]*\\w$" }, + "AssetTypeIdentifiers":{ + "type":"list", + "member":{"shape":"AssetTypeIdentifier"} + }, "AssetTypeItem":{ "type":"structure", "required":[ @@ -3640,6 +3755,21 @@ }, "documentation":"

    The details of the asset type.

    " }, + "AssetTypesForRule":{ + "type":"structure", + "required":["selectionMode"], + "members":{ + "selectionMode":{ + "shape":"RuleScopeSelectionMode", + "documentation":"

    The selection mode for the rule.

    " + }, + "specificAssetTypes":{ + "shape":"RuleAssetTypeList", + "documentation":"

    The specific asset types that are included in the rule.

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

    The asset type for the rule details.

    " + }, "AssociateEnvironmentRoleInput":{ "type":"structure", "required":[ @@ -5816,6 +5946,114 @@ }, "documentation":"

    The details of the policy grant.

    " }, + "CreateRuleInput":{ + "type":"structure", + "required":[ + "action", + "detail", + "domainIdentifier", + "name", + "scope", + "target" + ], + "members":{ + "action":{ + "shape":"RuleAction", + "documentation":"

    The action of the rule.

    " + }, + "clientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.

    ", + "idempotencyToken":true + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the rule.

    " + }, + "detail":{ + "shape":"RuleDetail", + "documentation":"

    The detail of the rule.

    " + }, + "domainIdentifier":{ + "shape":"DomainId", + "documentation":"

    The ID of the domain where the rule is created.

    ", + "location":"uri", + "locationName":"domainIdentifier" + }, + "name":{ + "shape":"RuleName", + "documentation":"

    The name of the rule.

    " + }, + "scope":{ + "shape":"RuleScope", + "documentation":"

    The scope of the rule.

    " + }, + "target":{ + "shape":"RuleTarget", + "documentation":"

    The target of the rule.

    " + } + } + }, + "CreateRuleOutput":{ + "type":"structure", + "required":[ + "action", + "createdAt", + "createdBy", + "detail", + "identifier", + "name", + "ruleType", + "scope", + "target" + ], + "members":{ + "action":{ + "shape":"RuleAction", + "documentation":"

    The action of the rule.

    " + }, + "createdAt":{ + "shape":"CreatedAt", + "documentation":"

    The timestamp at which the rule is created.

    " + }, + "createdBy":{ + "shape":"CreatedBy", + "documentation":"

    The user who creates the rule.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the rule.

    " + }, + "detail":{ + "shape":"RuleDetail", + "documentation":"

    The detail of the rule.

    " + }, + "identifier":{ + "shape":"RuleId", + "documentation":"

    The ID of the rule.

    " + }, + "name":{ + "shape":"RuleName", + "documentation":"

    The name of the rule.

    " + }, + "ruleType":{ + "shape":"RuleType", + "documentation":"

    The type of the rule.

    " + }, + "scope":{ + "shape":"RuleScope", + "documentation":"

    The scope of the rule.

    " + }, + "target":{ + "shape":"RuleTarget", + "documentation":"

    The target of the rule.

    " + }, + "targetType":{ + "shape":"RuleTargetType", + "documentation":"

    The target type of the rule.

    " + } + } + }, "CreateSubscriptionGrantInput":{ "type":"structure", "required":[ @@ -5935,6 +6173,10 @@ "location":"uri", "locationName":"domainIdentifier" }, + "metadataForms":{ + "shape":"MetadataFormInputs", + "documentation":"

    The metadata form included in the subscription request.

    " + }, "requestReason":{ "shape":"RequestReason", "documentation":"

    The reason for the subscription request.

    " @@ -5979,10 +6221,18 @@ "shape":"DomainId", "documentation":"

    The ID of the Amazon DataZone domain in whcih the subscription request is created.

    " }, + "existingSubscriptionId":{ + "shape":"SubscriptionId", + "documentation":"

    The ID of the existing subscription.

    " + }, "id":{ "shape":"SubscriptionRequestId", "documentation":"

    The ID of the subscription request.

    " }, + "metadataForms":{ + "shape":"MetadataForms", + "documentation":"

    The metadata form included in the subscription request.

    " + }, "requestReason":{ "shape":"RequestReason", "documentation":"

    The reason for the subscription request.

    " @@ -7380,6 +7630,32 @@ "members":{ } }, + "DeleteRuleInput":{ + "type":"structure", + "required":[ + "domainIdentifier", + "identifier" + ], + "members":{ + "domainIdentifier":{ + "shape":"DomainId", + "documentation":"

    The ID of the domain that where the rule is to be deleted.

    ", + "location":"uri", + "locationName":"domainIdentifier" + }, + "identifier":{ + "shape":"RuleId", + "documentation":"

    The ID of the rule that is to be deleted.

    ", + "location":"uri", + "locationName":"identifier" + } + } + }, + "DeleteRuleOutput":{ + "type":"structure", + "members":{ + } + }, "DeleteSubscriptionGrantInput":{ "type":"structure", "required":[ @@ -7896,6 +8172,21 @@ }, "documentation":"

    The summary of the domain unit.

    " }, + "DomainUnitTarget":{ + "type":"structure", + "required":["domainUnitId"], + "members":{ + "domainUnitId":{ + "shape":"DomainUnitId", + "documentation":"

    The ID of the domain unit.

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

    Specifies whether to apply a rule to the child domain units.

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

    The target for the domain unit.

    " + }, "DomainUnitUserProperties":{ "type":"structure", "members":{ @@ -8514,7 +8805,7 @@ "documentation":"

    The ID of the metadata form type.

    " }, "typeRevision":{ - "shape":"Revision", + "shape":"RevisionInput", "documentation":"

    The revision of the metadata form type.

    " } }, @@ -10466,6 +10757,108 @@ } } }, + "GetRuleInput":{ + "type":"structure", + "required":[ + "domainIdentifier", + "identifier" + ], + "members":{ + "domainIdentifier":{ + "shape":"DomainId", + "documentation":"

    The ID of the domain where the GetRule action is to be invoked.

    ", + "location":"uri", + "locationName":"domainIdentifier" + }, + "identifier":{ + "shape":"RuleId", + "documentation":"

    The ID of the rule.

    ", + "location":"uri", + "locationName":"identifier" + }, + "revision":{ + "shape":"Revision", + "documentation":"

    The revision of the rule.

    ", + "location":"querystring", + "locationName":"revision" + } + } + }, + "GetRuleOutput":{ + "type":"structure", + "required":[ + "action", + "createdAt", + "createdBy", + "detail", + "identifier", + "lastUpdatedBy", + "name", + "revision", + "ruleType", + "scope", + "target", + "updatedAt" + ], + "members":{ + "action":{ + "shape":"RuleAction", + "documentation":"

    The action of the rule.

    " + }, + "createdAt":{ + "shape":"CreatedAt", + "documentation":"

    The timestamp at which the rule was created.

    " + }, + "createdBy":{ + "shape":"CreatedBy", + "documentation":"

    The user who created the rule.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the rule.

    " + }, + "detail":{ + "shape":"RuleDetail", + "documentation":"

    The detail of the rule.

    " + }, + "identifier":{ + "shape":"RuleId", + "documentation":"

    The ID of the rule.

    " + }, + "lastUpdatedBy":{ + "shape":"UpdatedBy", + "documentation":"

    The timestamp at which the rule was last updated.

    " + }, + "name":{ + "shape":"RuleName", + "documentation":"

    The name of the rule.

    " + }, + "revision":{ + "shape":"Revision", + "documentation":"

    The revision of the rule.

    " + }, + "ruleType":{ + "shape":"RuleType", + "documentation":"

    The type of the rule.

    " + }, + "scope":{ + "shape":"RuleScope", + "documentation":"

    The scope of the rule.

    " + }, + "target":{ + "shape":"RuleTarget", + "documentation":"

    The target of the rule.

    " + }, + "targetType":{ + "shape":"RuleTargetType", + "documentation":"

    The target type of the rule.

    " + }, + "updatedAt":{ + "shape":"UpdatedAt", + "documentation":"

    The timestamp at which the rule was last updated.

    " + } + } + }, "GetSubscriptionGrantInput":{ "type":"structure", "required":[ @@ -10679,10 +11072,18 @@ "shape":"DomainId", "documentation":"

    The Amazon DataZone domain of the subscription request.

    " }, - "id":{ + "existingSubscriptionId":{ + "shape":"SubscriptionId", + "documentation":"

    The ID of the existing subscription.

    " + }, + "id":{ "shape":"SubscriptionRequestId", "documentation":"

    The identifier of the subscription request.

    " }, + "metadataForms":{ + "shape":"MetadataForms", + "documentation":"

    The metadata forms included in the subscription request.

    " + }, "requestReason":{ "shape":"RequestReason", "documentation":"

    The reason for the subscription request.

    " @@ -12774,6 +13175,102 @@ } } }, + "ListRulesInput":{ + "type":"structure", + "required":[ + "domainIdentifier", + "targetIdentifier", + "targetType" + ], + "members":{ + "action":{ + "shape":"RuleAction", + "documentation":"

    The action of the rule.

    ", + "location":"querystring", + "locationName":"ruleAction" + }, + "assetTypes":{ + "shape":"AssetTypeIdentifiers", + "documentation":"

    The asset types of the rule.

    ", + "location":"querystring", + "locationName":"assetTypes" + }, + "dataProduct":{ + "shape":"Boolean", + "documentation":"

    The data product of the rule.

    ", + "location":"querystring", + "locationName":"dataProduct" + }, + "domainIdentifier":{ + "shape":"DomainId", + "documentation":"

    The ID of the domain in which the rules are to be listed.

    ", + "location":"uri", + "locationName":"domainIdentifier" + }, + "includeCascaded":{ + "shape":"Boolean", + "documentation":"

    Specifies whether to include cascading rules in the results.

    ", + "location":"querystring", + "locationName":"includeCascaded" + }, + "maxResults":{ + "shape":"ListRulesInputMaxResultsInteger", + "documentation":"

    The maximum number of rules to return in a single call to ListRules. When the number of rules to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListRules to list the next set of rules.

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

    When the number of rules is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of rules, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListRules to list the next set of rules.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "projectIds":{ + "shape":"ProjectIds", + "documentation":"

    The IDs of projects in which rules are to be listed.

    ", + "location":"querystring", + "locationName":"projectIds" + }, + "ruleType":{ + "shape":"RuleType", + "documentation":"

    The type of the rule.

    ", + "location":"querystring", + "locationName":"ruleType" + }, + "targetIdentifier":{ + "shape":"String", + "documentation":"

    The target ID of the rule.

    ", + "location":"uri", + "locationName":"targetIdentifier" + }, + "targetType":{ + "shape":"RuleTargetType", + "documentation":"

    The target type of the rule.

    ", + "location":"uri", + "locationName":"targetType" + } + } + }, + "ListRulesInputMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":50, + "min":25 + }, + "ListRulesOutput":{ + "type":"structure", + "required":["items"], + "members":{ + "items":{ + "shape":"RuleSummaries", + "documentation":"

    The results of the ListRules action.

    " + }, + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

    When the number of rules is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of rules, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListRules to list the next set of rules.

    " + } + } + }, "ListSubscriptionGrantsInput":{ "type":"structure", "required":["domainIdentifier"], @@ -13342,6 +13839,68 @@ "min":0, "sensitive":true }, + "MetadataFormEnforcementDetail":{ + "type":"structure", + "members":{ + "requiredMetadataForms":{ + "shape":"RequiredMetadataFormList", + "documentation":"

    The required metadata forms.

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

    The enforcement details of a metadata form.

    " + }, + "MetadataFormInputs":{ + "type":"list", + "member":{"shape":"FormInput"} + }, + "MetadataFormReference":{ + "type":"structure", + "required":[ + "typeIdentifier", + "typeRevision" + ], + "members":{ + "typeIdentifier":{ + "shape":"FormTypeIdentifier", + "documentation":"

    The type ID of the metadata form reference.

    " + }, + "typeRevision":{ + "shape":"Revision", + "documentation":"

    The type revision of the metadata form reference.

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

    The reference of a metadata form.

    " + }, + "MetadataFormSummary":{ + "type":"structure", + "required":[ + "typeName", + "typeRevision" + ], + "members":{ + "formName":{ + "shape":"FormName", + "documentation":"

    The form name of the metadata form.

    " + }, + "typeName":{ + "shape":"FormTypeName", + "documentation":"

    The type name of the metadata form.

    " + }, + "typeRevision":{ + "shape":"Revision", + "documentation":"

    The type revision of the metadata form.

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

    The summary of the metadata form.

    " + }, + "MetadataForms":{ + "type":"list", + "member":{"shape":"FormOutput"} + }, + "MetadataFormsSummary":{ + "type":"list", + "member":{"shape":"MetadataFormSummary"} + }, "MetadataGenerationRunIdentifier":{ "type":"string", "pattern":"^[a-zA-Z0-9_-]{1,36}$" @@ -13961,6 +14520,10 @@ "type":"string", "pattern":"^[a-zA-Z0-9_-]{1,36}$" }, + "ProjectIds":{ + "type":"list", + "member":{"shape":"ProjectId"} + }, "ProjectMember":{ "type":"structure", "required":[ @@ -14073,6 +14636,21 @@ }, "documentation":"

    The details of a Amazon DataZone project.

    " }, + "ProjectsForRule":{ + "type":"structure", + "required":["selectionMode"], + "members":{ + "selectionMode":{ + "shape":"RuleScopeSelectionMode", + "documentation":"

    The selection mode of the rule.

    " + }, + "specificProjects":{ + "shape":"RuleProjectIdentifierList", + "documentation":"

    The specific projects in which the rule is created.

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

    Specifies projects in which the rule is created.

    " + }, "ProvisioningConfiguration":{ "type":"structure", "members":{ @@ -14516,10 +15094,18 @@ "shape":"DomainId", "documentation":"

    The identifier of the Amazon DataZone domain in which the subscription request was rejected.

    " }, + "existingSubscriptionId":{ + "shape":"SubscriptionId", + "documentation":"

    The ID of the existing subscription.

    " + }, "id":{ "shape":"SubscriptionRequestId", "documentation":"

    The identifier of the subscription request that was rejected.

    " }, + "metadataForms":{ + "shape":"MetadataForms", + "documentation":"

    Metadata forms included in the subscription request.

    " + }, "requestReason":{ "shape":"RequestReason", "documentation":"

    The reason for the subscription request.

    " @@ -14692,6 +15278,12 @@ "min":1, "sensitive":true }, + "RequiredMetadataFormList":{ + "type":"list", + "member":{"shape":"MetadataFormReference"}, + "max":5, + "min":1 + }, "Resource":{ "type":"structure", "required":[ @@ -14740,6 +15332,12 @@ "max":64, "min":1 }, + "RevisionInput":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9_-]+$" + }, "RevokeSubscriptionInput":{ "type":"structure", "required":[ @@ -14921,6 +15519,136 @@ "type":"list", "member":{"shape":"RowFilter"} }, + "RuleAction":{ + "type":"string", + "enum":["CREATE_SUBSCRIPTION_REQUEST"] + }, + "RuleAssetTypeList":{ + "type":"list", + "member":{"shape":"AssetTypeIdentifier"}, + "min":1 + }, + "RuleDetail":{ + "type":"structure", + "members":{ + "metadataFormEnforcementDetail":{ + "shape":"MetadataFormEnforcementDetail", + "documentation":"

    The enforcement detail of the metadata form.

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

    The details of a rule.

    ", + "union":true + }, + "RuleId":{ + "type":"string", + "pattern":"^[a-zA-Z0-9_-]{1,36}$" + }, + "RuleName":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^[\\w -]+$", + "sensitive":true + }, + "RuleProjectIdentifierList":{ + "type":"list", + "member":{"shape":"ProjectId"}, + "min":1 + }, + "RuleScope":{ + "type":"structure", + "members":{ + "assetType":{ + "shape":"AssetTypesForRule", + "documentation":"

    The asset type included in the rule scope.

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

    The data product included in the rule scope.

    " + }, + "project":{ + "shape":"ProjectsForRule", + "documentation":"

    The project included in the rule scope.

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

    The scope of a rule.

    " + }, + "RuleScopeSelectionMode":{ + "type":"string", + "enum":[ + "ALL", + "SPECIFIC" + ] + }, + "RuleSummaries":{ + "type":"list", + "member":{"shape":"RuleSummary"} + }, + "RuleSummary":{ + "type":"structure", + "members":{ + "action":{ + "shape":"RuleAction", + "documentation":"

    The action of the rule.

    " + }, + "identifier":{ + "shape":"RuleId", + "documentation":"

    The ID of the rule.

    " + }, + "lastUpdatedBy":{ + "shape":"UpdatedBy", + "documentation":"

    The timestamp at which the rule was last updated.

    " + }, + "name":{ + "shape":"RuleName", + "documentation":"

    The name of the rule.

    " + }, + "revision":{ + "shape":"Revision", + "documentation":"

    The revision of the rule.

    " + }, + "ruleType":{ + "shape":"RuleType", + "documentation":"

    The type of the rule.

    " + }, + "scope":{ + "shape":"RuleScope", + "documentation":"

    The scope of the rule.

    " + }, + "target":{ + "shape":"RuleTarget", + "documentation":"

    The target of the rule.

    " + }, + "targetType":{ + "shape":"RuleTargetType", + "documentation":"

    The target type of the rule.

    " + }, + "updatedAt":{ + "shape":"UpdatedAt", + "documentation":"

    The timestamp at which the rule was last updated.

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

    The summary of the rule.

    " + }, + "RuleTarget":{ + "type":"structure", + "members":{ + "domainUnitTarget":{ + "shape":"DomainUnitTarget", + "documentation":"

    The ID of the domain unit.

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

    The target of the rule.

    ", + "union":true + }, + "RuleTargetType":{ + "type":"string", + "enum":["DOMAIN_UNIT"] + }, + "RuleType":{ + "type":"string", + "enum":["METADATA_FORM_ENFORCEMENT"] + }, "RunStatisticsForAssets":{ "type":"structure", "members":{ @@ -16052,10 +16780,18 @@ "shape":"DomainId", "documentation":"

    The identifier of the Amazon DataZone domain in which a subscription request exists.

    " }, + "existingSubscriptionId":{ + "shape":"SubscriptionId", + "documentation":"

    The ID of the existing subscription.

    " + }, "id":{ "shape":"SubscriptionRequestId", "documentation":"

    The identifier of the subscription request.

    " }, + "metadataFormsSummary":{ + "shape":"MetadataFormsSummary", + "documentation":"

    The summary of the metadata forms.

    " + }, "requestReason":{ "shape":"RequestReason", "documentation":"

    The reason for the subscription request.

    " @@ -17704,6 +18440,118 @@ } } }, + "UpdateRuleInput":{ + "type":"structure", + "required":[ + "domainIdentifier", + "identifier" + ], + "members":{ + "description":{ + "shape":"Description", + "documentation":"

    The description of the rule.

    " + }, + "detail":{ + "shape":"RuleDetail", + "documentation":"

    The detail of the rule.

    " + }, + "domainIdentifier":{ + "shape":"DomainId", + "documentation":"

    The ID of the domain in which a rule is to be updated.

    ", + "location":"uri", + "locationName":"domainIdentifier" + }, + "identifier":{ + "shape":"RuleId", + "documentation":"

    The ID of the rule that is to be updated

    ", + "location":"uri", + "locationName":"identifier" + }, + "includeChildDomainUnits":{ + "shape":"Boolean", + "documentation":"

    Specifies whether to update this rule in the child domain units.

    " + }, + "name":{ + "shape":"RuleName", + "documentation":"

    The name of the rule.

    " + }, + "scope":{ + "shape":"RuleScope", + "documentation":"

    The scrope of the rule.

    " + } + } + }, + "UpdateRuleOutput":{ + "type":"structure", + "required":[ + "action", + "createdAt", + "createdBy", + "detail", + "identifier", + "lastUpdatedBy", + "name", + "revision", + "ruleType", + "scope", + "target", + "updatedAt" + ], + "members":{ + "action":{ + "shape":"RuleAction", + "documentation":"

    The action of the rule.

    " + }, + "createdAt":{ + "shape":"CreatedAt", + "documentation":"

    The timestamp at which the rule was created.

    " + }, + "createdBy":{ + "shape":"CreatedBy", + "documentation":"

    The user who created the rule.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the rule.

    " + }, + "detail":{ + "shape":"RuleDetail", + "documentation":"

    The detail of the rule.

    " + }, + "identifier":{ + "shape":"RuleId", + "documentation":"

    The ID of the rule.

    " + }, + "lastUpdatedBy":{ + "shape":"UpdatedBy", + "documentation":"

    The timestamp at which the rule was last updated.

    " + }, + "name":{ + "shape":"RuleName", + "documentation":"

    The name of the rule.

    " + }, + "revision":{ + "shape":"Revision", + "documentation":"

    The revision of the rule.

    " + }, + "ruleType":{ + "shape":"RuleType", + "documentation":"

    The type of the rule.

    " + }, + "scope":{ + "shape":"RuleScope", + "documentation":"

    The scope of the rule.

    " + }, + "target":{ + "shape":"RuleTarget", + "documentation":"

    The target of the rule.

    " + }, + "updatedAt":{ + "shape":"UpdatedAt", + "documentation":"

    The timestamp at which the rule was last updated.

    " + } + } + }, "UpdateSubscriptionGrantStatusInput":{ "type":"structure", "required":[ @@ -17862,10 +18710,18 @@ "shape":"DomainId", "documentation":"

    The identifier of the Amazon DataZone domain in which a subscription request is to be updated.

    " }, + "existingSubscriptionId":{ + "shape":"SubscriptionId", + "documentation":"

    The ID of the existing subscription.

    " + }, "id":{ "shape":"SubscriptionRequestId", "documentation":"

    The identifier of the subscription request that is to be updated.

    " }, + "metadataForms":{ + "shape":"MetadataForms", + "documentation":"

    Metadata forms included in the subscription request.

    " + }, "requestReason":{ "shape":"RequestReason", "documentation":"

    The reason for the UpdateSubscriptionRequest action.

    " diff --git a/tools/code-generation/api-descriptions/discovery-2015-11-01.normal.json b/tools/code-generation/api-descriptions/discovery-2015-11-01.normal.json index 51aea482231..a1346de046e 100644 --- a/tools/code-generation/api-descriptions/discovery-2015-11-01.normal.json +++ b/tools/code-generation/api-descriptions/discovery-2015-11-01.normal.json @@ -10,7 +10,8 @@ "serviceId":"Application Discovery Service", "signatureVersion":"v4", "targetPrefix":"AWSPoseidonService_V2015_11_01", - "uid":"discovery-2015-11-01" + "uid":"discovery-2015-11-01", + "auth":["aws.auth#sigv4"] }, "operations":{ "AssociateConfigurationItemsToApplication":{ @@ -374,7 +375,8 @@ {"shape":"ServerInternalErrorException"}, {"shape":"HomeRegionNotSetException"}, {"shape":"OperationNotPermittedException"}, - {"shape":"InvalidParameterValueException"} + {"shape":"InvalidParameterValueException"}, + {"shape":"InvalidParameterException"} ], "documentation":"

    Takes a list of configurationId as input and starts an asynchronous deletion task to remove the configurationItems. Returns a unique deletion task identifier.

    " }, @@ -638,6 +640,12 @@ "max":127, "pattern":"[\\s\\S]*\\S[\\s\\S]*" }, + "ApplicationWave":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^($|[^\\s\\x00]( *[^\\s\\x00])*$)" + }, "AssociateConfigurationItemsToApplicationRequest":{ "type":"structure", "required":[ @@ -970,11 +978,15 @@ "members":{ "name":{ "shape":"ApplicationName", - "documentation":"

    Name of the application to be created.

    " + "documentation":"

    The name of the application to be created.

    " }, "description":{ "shape":"ApplicationDescription", - "documentation":"

    Description of the application to be created.

    " + "documentation":"

    The description of the application to be created.

    " + }, + "wave":{ + "shape":"ApplicationWave", + "documentation":"

    The name of the migration wave of the application to be created.

    " } } }, @@ -983,7 +995,7 @@ "members":{ "configurationId":{ "shape":"String", - "documentation":"

    Configuration ID of an application to be created.

    " + "documentation":"

    The configuration ID of an application to be created.

    " } } }, @@ -1738,6 +1750,15 @@ "type":"list", "member":{"shape":"FailedConfiguration"} }, + "FileClassification":{ + "type":"string", + "enum":[ + "MODELIZEIT_EXPORT", + "RVTOOLS_EXPORT", + "VMWARE_NSX_EXPORT", + "IMPORT_TEMPLATE" + ] + }, "Filter":{ "type":"structure", "required":[ @@ -1838,6 +1859,7 @@ "IMPORT_FAILED", "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED", "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED", + "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", @@ -1880,6 +1902,10 @@ "shape":"TimeStamp", "documentation":"

    The time that the import task request was deleted, presented in the Unix time stamp format.

    " }, + "fileClassification":{ + "shape":"FileClassification", + "documentation":"

    The type of file detected by the import task.

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

    The total number of server records in the import file that were successfully imported.

    " @@ -1922,7 +1948,8 @@ "enum":[ "IMPORT_TASK_ID", "STATUS", - "NAME" + "NAME", + "FILE_CLASSIFICATION" ] }, "ImportTaskFilterValue":{ @@ -2484,6 +2511,10 @@ "description":{ "shape":"ApplicationDescription", "documentation":"

    New description of the application to be updated.

    " + }, + "wave":{ + "shape":"ApplicationWave", + "documentation":"

    The new migration wave of the application that you want to update.

    " } } }, 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 be0c87389a5..2e7b33a6fe6 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 @@ -5153,7 +5153,7 @@ }, "input":{"shape":"ModifyInstanceCapacityReservationAttributesRequest"}, "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.

    " + "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, run in On-Demand Instance capacity, or only run in a Capacity Reservation.

    " }, "ModifyInstanceCpuOptions":{ "name":"ModifyInstanceCpuOptions", @@ -9699,6 +9699,27 @@ "documentation":"

    The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide.

    " }, "BaselineIops":{"type":"integer"}, + "BaselinePerformanceFactors":{ + "type":"structure", + "members":{ + "Cpu":{ + "shape":"CpuPerformanceFactor", + "documentation":"

    The CPU performance to consider, using an instance family as the baseline reference.

    ", + "locationName":"cpu" + } + }, + "documentation":"

    The baseline performance to consider, using an instance family as a baseline reference. The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this baseline to guide instance type selection, but there is no guarantee that the selected instance types will always exceed the baseline for every application.

    Currently, this parameter only supports CPU performance as a baseline performance factor. For example, specifying c6i would use the CPU performance of the c6i family as the baseline reference.

    " + }, + "BaselinePerformanceFactorsRequest":{ + "type":"structure", + "members":{ + "Cpu":{ + "shape":"CpuPerformanceFactorRequest", + "documentation":"

    The CPU performance to consider, using an instance family as the baseline reference.

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

    The baseline performance to consider, using an instance family as a baseline reference. The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this baseline to guide instance type selection, but there is no guarantee that the selected instance types will always exceed the baseline for every application.

    Currently, this parameter only supports CPU performance as a baseline performance factor. For example, specifying c6i would use the CPU performance of the c6i family as the baseline reference.

    " + }, "BaselineThroughputInMBps":{"type":"double"}, "BatchState":{ "type":"string", @@ -10939,6 +10960,7 @@ "CapacityReservationPreference":{ "type":"string", "enum":[ + "capacity-reservations-only", "open", "none" ] @@ -10955,14 +10977,14 @@ "members":{ "CapacityReservationPreference":{ "shape":"CapacityReservationPreference", - "documentation":"

    Indicates the instance's Capacity Reservation preferences. Possible preferences include:

    • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

    • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

    " + "documentation":"

    Indicates the instance's Capacity Reservation preferences. Possible preferences include:

    • capacity-reservations-only - The instance will only run in a Capacity Reservation or Capacity Reservation group. If capacity isn't available, the instance will fail to launch.

    • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone, and tenancy). If capacity isn't available, the instance runs as an On-Demand Instance.

    • none - The instance doesn't run in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

    " }, "CapacityReservationTarget":{ "shape":"CapacityReservationTarget", "documentation":"

    Information about the target Capacity Reservation or Capacity Reservation group.

    " } }, - "documentation":"

    Describes an instance's Capacity Reservation targeting option. You can specify only one parameter at a time. If you specify CapacityReservationPreference and CapacityReservationTarget, the request fails.

    Use the CapacityReservationPreference parameter to configure the instance to run as an On-Demand Instance or to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). Use the CapacityReservationTarget parameter to explicitly target a specific Capacity Reservation or a Capacity Reservation group.

    " + "documentation":"

    Describes an instance's Capacity Reservation targeting option.

    Use the CapacityReservationPreference parameter to configure the instance to run as an On-Demand Instance, to run in any open Capacity Reservation that has matching attributes, or to run only in a Capacity Reservation or Capacity Reservation group. Use the CapacityReservationTarget parameter to explicitly target a specific Capacity Reservation or a Capacity Reservation group.

    You can only specify CapacityReservationPreference and CapacityReservationTarget if the CapacityReservationPreference is capacity-reservations-only.

    " }, "CapacityReservationSpecificationResponse":{ "type":"structure", @@ -12467,7 +12489,8 @@ "enum":[ "intel", "amd", - "amazon-web-services" + "amazon-web-services", + "apple" ] }, "CpuManufacturerName":{"type":"string"}, @@ -12517,6 +12540,28 @@ }, "documentation":"

    The CPU options for the instance. Both the core count and threads per core must be specified in the request.

    " }, + "CpuPerformanceFactor":{ + "type":"structure", + "members":{ + "References":{ + "shape":"PerformanceFactorReferenceSet", + "documentation":"

    Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture differences.

    Currently, only one instance family can be specified in the list.

    ", + "locationName":"referenceSet" + } + }, + "documentation":"

    The CPU performance to consider, using an instance family as the baseline reference.

    " + }, + "CpuPerformanceFactorRequest":{ + "type":"structure", + "members":{ + "References":{ + "shape":"PerformanceFactorReferenceSetRequest", + "documentation":"

    Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture differences.

    Currently, only one instance family can be specified in the list.

    ", + "locationName":"Reference" + } + }, + "documentation":"

    The CPU performance to consider, using an instance family as the baseline reference.

    " + }, "CreateCapacityReservationBySplittingRequest":{ "type":"structure", "required":[ @@ -37049,6 +37094,11 @@ "shape":"Integer", "documentation":"

    [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.

    The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

    If you set TargetCapacityUnitType to vcpu or memory-mib, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price.

    Only one of SpotMaxPricePercentageOverLowestPrice or MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as 999999.

    ", "locationName":"maxSpotPriceAsPercentageOfOptimalOnDemandPrice" + }, + "BaselinePerformanceFactors":{ + "shape":"BaselinePerformanceFactors", + "documentation":"

    The baseline performance to consider, using an instance family as a baseline reference. The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this baseline to guide instance type selection, but there is no guarantee that the selected instance types will always exceed the baseline for every application. Currently, this parameter only supports CPU performance as a baseline performance factor. For more information, see Performance protection in the Amazon EC2 User Guide.

    ", + "locationName":"baselinePerformanceFactors" } }, "documentation":"

    The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.

    You must specify VCpuCount and MemoryMiB. All other attributes are optional. Any unspecified optional attribute is set to its default.

    When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.

    To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:

    • AllowedInstanceTypes - The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.

    • ExcludedInstanceTypes - The instance types to exclude from the list, even if they match your specified attributes.

    If you specify InstanceRequirements, you can't specify InstanceType.

    Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard or with the RunInstances API, you can't specify InstanceRequirements.

    For more information, see Create mixed instances group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide, and also Specify attributes for instance type selection for EC2 Fleet or Spot Fleet and Spot placement score in the Amazon EC2 User Guide.

    " @@ -37163,6 +37213,10 @@ "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice":{ "shape":"Integer", "documentation":"

    [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.

    The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

    If you set TargetCapacityUnitType to vcpu or memory-mib, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price.

    Only one of SpotMaxPricePercentageOverLowestPrice or MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as 999999.

    " + }, + "BaselinePerformanceFactors":{ + "shape":"BaselinePerformanceFactorsRequest", + "documentation":"

    The baseline performance to consider, using an instance family as a baseline reference. The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this baseline to guide instance type selection, but there is no guarantee that the selected instance types will always exceed the baseline for every application. Currently, this parameter only supports CPU performance as a baseline performance factor. For more information, see Performance protection in the Amazon EC2 User Guide.

    " } }, "documentation":"

    The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.

    You must specify VCpuCount and MemoryMiB. All other attributes are optional. Any unspecified optional attribute is set to its default.

    When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.

    To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:

    • AllowedInstanceTypes - The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.

    • ExcludedInstanceTypes - The instance types to exclude from the list, even if they match your specified attributes.

    If you specify InstanceRequirements, you can't specify InstanceType.

    Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard, or with the RunInstances API or AWS::EC2::Instance Amazon Web Services CloudFormation resource, you can't specify InstanceRequirements.

    For more information, see Specify attributes for instance type selection for EC2 Fleet or Spot Fleet and Spot placement score in the Amazon EC2 User Guide.

    " @@ -48544,6 +48598,41 @@ }, "documentation":"

    Information about the transit gateway in the peering attachment.

    " }, + "PerformanceFactorReference":{ + "type":"structure", + "members":{ + "InstanceFamily":{ + "shape":"String", + "documentation":"

    The instance family to use as a baseline reference.

    Ensure that you specify the correct value for the instance family. The instance family is everything before the period (.) in the instance type name. For example, in the instance type c6i.large, the instance family is c6i, not c6. For more information, see Amazon EC2 instance type naming conventions in Amazon EC2 Instance Types.

    The following instance families are not supported for performance protection:

    • c1

    • g3 | g3s

    • hpc7g

    • m1 | m2

    • mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro

    • p3dn | p4d | p5

    • t1

    • u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | u7in-16tb | u7in-24tb | u7in-32tb

    If you enable performance protection by specifying a supported instance family, the returned instance types will exclude the above unsupported instance families.

    If you specify an unsupported instance family as a value for baseline performance, the API returns an empty response for and an exception for , , , and .

    ", + "locationName":"instanceFamily" + } + }, + "documentation":"

    Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture.

    Currently, only one instance family can be specified in the list.

    " + }, + "PerformanceFactorReferenceRequest":{ + "type":"structure", + "members":{ + "InstanceFamily":{ + "shape":"String", + "documentation":"

    The instance family to use as a baseline reference.

    Ensure that you specify the correct value for the instance family. The instance family is everything before the period (.) in the instance type name. For example, in the instance type c6i.large, the instance family is c6i, not c6. For more information, see Amazon EC2 instance type naming conventions in Amazon EC2 Instance Types.

    The following instance families are not supported for performance protection:

    • c1

    • g3 | g3s

    • hpc7g

    • m1 | m2

    • mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro

    • p3dn | p4d | p5

    • t1

    • u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | u7in-16tb | u7in-24tb | u7in-32tb

    If you enable performance protection by specifying a supported instance family, the returned instance types will exclude the above unsupported instance families.

    If you specify an unsupported instance family as a value for baseline performance, the API returns an empty response for and an exception for , , , and .

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

    Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture.

    Currently, only one instance family can be specified in the list.

    " + }, + "PerformanceFactorReferenceSet":{ + "type":"list", + "member":{ + "shape":"PerformanceFactorReference", + "locationName":"item" + } + }, + "PerformanceFactorReferenceSetRequest":{ + "type":"list", + "member":{ + "shape":"PerformanceFactorReferenceRequest", + "locationName":"item" + } + }, "PeriodType":{ "type":"string", "enum":[ @@ -53633,7 +53722,7 @@ }, "CapacityReservationSpecification":{ "shape":"CapacityReservationSpecification", - "documentation":"

    Information about the Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to open, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

    " + "documentation":"

    Information about the Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to open, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone, and tenancy).

    " }, "HibernationOptions":{ "shape":"HibernationOptionsRequest", diff --git a/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json b/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json index f4a14ae0920..955d7e80c18 100644 --- a/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json +++ b/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json @@ -135,7 +135,7 @@ {"shape":"ClientException"}, {"shape":"InvalidParameterException"} ], - "documentation":"

    Deletes the specified capacity provider.

    The FARGATE and FARGATE_SPOT capacity providers are reserved and can't be deleted. You can disassociate them from a cluster using either PutCapacityProviderProviders or by deleting the cluster.

    Prior to a capacity provider being deleted, the capacity provider must be removed from the capacity provider strategy from all services. The UpdateService API can be used to remove a capacity provider from a service's capacity provider strategy. When updating a service, the forceNewDeployment option can be used to ensure that any tasks using the Amazon EC2 instance capacity provided by the capacity provider are transitioned to use the capacity from the remaining capacity providers. Only capacity providers that aren't associated with a cluster can be deleted. To remove a capacity provider from a cluster, you can either use PutCapacityProviderProviders or delete the cluster.

    " + "documentation":"

    Deletes the specified capacity provider.

    The FARGATE and FARGATE_SPOT capacity providers are reserved and can't be deleted. You can disassociate them from a cluster using either PutCapacityProviderProviders or by deleting the cluster.

    Prior to a capacity provider being deleted, the capacity provider must be removed from the capacity provider strategy from all services. The UpdateService API can be used to remove a capacity provider from a service's capacity provider strategy. When updating a service, the forceNewDeployment option can be used to ensure that any tasks using the Amazon EC2 instance capacity provided by the capacity provider are transitioned to use the capacity from the remaining capacity providers. Only capacity providers that aren't associated with a cluster can be deleted. To remove a capacity provider from a cluster, you can either use PutClusterCapacityProviders or delete the cluster.

    " }, "DeleteCluster":{ "name":"DeleteCluster", @@ -1176,6 +1176,13 @@ }, "documentation":"

    The details of the Auto Scaling group capacity provider to update.

    " }, + "AvailabilityZoneRebalancing":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, "AwsVpcConfiguration":{ "type":"structure", "required":["subnets"], @@ -2142,6 +2149,10 @@ "shape":"String", "documentation":"

    The family and revision (family:revision) or full ARN of the task definition to run in your service. If a revision isn't specified, the latest ACTIVE revision is used.

    A task definition must be specified if the service uses either the ECS or CODE_DEPLOY deployment controllers.

    For more information about deployment types, see Amazon ECS deployment types.

    " }, + "availabilityZoneRebalancing":{ + "shape":"AvailabilityZoneRebalancing", + "documentation":"

    Indicates whether to use Availability Zone rebalancing for the service.

    For more information, see Balancing an Amazon ECS service across Availability Zones in the Amazon Elastic Container Service Developer Guide.

    " + }, "loadBalancers":{ "shape":"LoadBalancers", "documentation":"

    A load balancer object representing the load balancers to use with your service. For more information, see Service load balancing in the Amazon Elastic Container Service Developer Guide.

    If the service uses the rolling update (ECS) deployment controller and using either an Application Load Balancer or Network Load Balancer, you must specify one or more target group ARNs to attach to the service. The service-linked role is required for services that use multiple target groups. For more information, see Using service-linked roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

    If the service uses the CODE_DEPLOY deployment controller, the service is required to use either an Application Load Balancer or Network Load Balancer. When creating an CodeDeploy deployment group, you specify two target groups (referred to as a targetGroupPair). During a deployment, CodeDeploy determines which task set in your service has the status PRIMARY, and it associates one target group with it. Then, it also associates the other target group with the replacement task set. The load balancer can also have up to two listeners: a required listener for production traffic and an optional listener that you can use to perform validation tests with Lambda functions before routing production traffic to it.

    If you use the CODE_DEPLOY deployment controller, these values can be changed when updating the service.

    For Application Load Balancers and Network Load Balancers, this object must contain the load balancer target group ARN, the container name, and the container port to access from the load balancer. The container name must be as it appears in a container definition. The load balancer name parameter must be omitted. When a task from this service is placed on a container instance, the container instance and port combination is registered as a target in the target group that's specified here.

    For Classic Load Balancers, this object must contain the load balancer name, the container name , and the container port to access from the load balancer. The container name must be as it appears in a container definition. The target group ARN parameter must be omitted. When a task from this service is placed on a container instance, the container instance is registered with the load balancer that's specified here.

    Services with tasks that use the awsvpc network mode (for example, those with the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers aren't supported. Also, when you create any target groups for these services, you must choose ip as the target type, not instance. This is because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

    " @@ -2654,10 +2665,10 @@ "members":{ "type":{ "shape":"DeploymentControllerType", - "documentation":"

    The deployment controller type to use.

    There are three deployment controller types available:

    ECS

    The rolling update (ECS) deployment type involves replacing the current running version of the container with the latest version. The number of containers Amazon ECS adds or removes from the service during a rolling update is controlled by adjusting the minimum and maximum number of healthy tasks allowed during a service deployment, as specified in the DeploymentConfiguration.

    CODE_DEPLOY

    The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model powered by CodeDeploy, which allows you to verify a new deployment of a service before sending production traffic to it.

    EXTERNAL

    The external (EXTERNAL) deployment type enables you to use any third-party deployment controller for full control over the deployment process for an Amazon ECS service.

    " + "documentation":"

    The deployment controller type to use.

    There are three deployment controller types available:

    ECS

    The rolling update (ECS) deployment type involves replacing the current running version of the container with the latest version. The number of containers Amazon ECS adds or removes from the service during a rolling update is controlled by adjusting the minimum and maximum number of healthy tasks allowed during a service deployment, as specified in the DeploymentConfiguration.

    For more information about rolling deployments, see Deploy Amazon ECS services by replacing tasks in the Amazon Elastic Container Service Developer Guide.

    CODE_DEPLOY

    The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model powered by CodeDeploy, which allows you to verify a new deployment of a service before sending production traffic to it.

    For more information about blue/green deployments, see Validate the state of an Amazon ECS service before deployment in the Amazon Elastic Container Service Developer Guide.

    EXTERNAL

    The external (EXTERNAL) deployment type enables you to use any third-party deployment controller for full control over the deployment process for an Amazon ECS service.

    For more information about external deployments, see Deploy Amazon ECS services using a third-party controller in the Amazon Elastic Container Service Developer Guide.

    " } }, - "documentation":"

    The deployment controller to use for the service. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

    " + "documentation":"

    The deployment controller to use for the service.

    " }, "DeploymentControllerType":{ "type":"string", @@ -5319,6 +5330,10 @@ "enableExecuteCommand":{ "shape":"Boolean", "documentation":"

    Determines whether the execute command functionality is turned on for the service. If true, the execute command functionality is turned on for all containers in tasks as part of the service.

    " + }, + "availabilityZoneRebalancing":{ + "shape":"AvailabilityZoneRebalancing", + "documentation":"

    Indicates whether to use Availability Zone rebalancing for the service.

    For more information, see Balancing an Amazon ECS service across Availability Zones in the Amazon Elastic Container Service Developer Guide.

    " } }, "documentation":"

    Details on a service within a cluster.

    " @@ -7195,6 +7210,10 @@ "shape":"DeploymentConfiguration", "documentation":"

    Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

    " }, + "availabilityZoneRebalancing":{ + "shape":"AvailabilityZoneRebalancing", + "documentation":"

    Indicates whether to use Availability Zone rebalancing for the service.

    For more information, see Balancing an Amazon ECS service across Availability Zones in the Amazon Elastic Container Service Developer Guide.

    " + }, "networkConfiguration":{ "shape":"NetworkConfiguration", "documentation":"

    An object representing the network configuration for the service.

    " diff --git a/tools/code-generation/api-descriptions/elasticloadbalancingv2-2015-12-01.normal.json b/tools/code-generation/api-descriptions/elasticloadbalancingv2-2015-12-01.normal.json index 28d71382afe..c83e92397da 100644 --- a/tools/code-generation/api-descriptions/elasticloadbalancingv2-2015-12-01.normal.json +++ b/tools/code-generation/api-descriptions/elasticloadbalancingv2-2015-12-01.normal.json @@ -339,6 +339,22 @@ }, "documentation":"

    Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.

    For more information, see the following:

    " }, + "DescribeCapacityReservation":{ + "name":"DescribeCapacityReservation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCapacityReservationInput"}, + "output":{ + "shape":"DescribeCapacityReservationOutput", + "resultWrapper":"DescribeCapacityReservationResult" + }, + "errors":[ + {"shape":"LoadBalancerNotFoundException"} + ], + "documentation":"

    Describes the capacity reservation status for the specified load balancer.

    " + }, "DescribeListenerAttributes":{ "name":"DescribeListenerAttributes", "http":{ @@ -624,6 +640,29 @@ ], "documentation":"

    Retrieves the specified revocation file.

    This action returns a pre-signed S3 URI which is active for ten minutes.

    " }, + "ModifyCapacityReservation":{ + "name":"ModifyCapacityReservation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyCapacityReservationInput"}, + "output":{ + "shape":"ModifyCapacityReservationOutput", + "resultWrapper":"ModifyCapacityReservationResult" + }, + "errors":[ + {"shape":"LoadBalancerNotFoundException"}, + {"shape":"InvalidConfigurationRequestException"}, + {"shape":"CapacityUnitsLimitExceededException"}, + {"shape":"CapacityReservationPendingException"}, + {"shape":"InsufficientCapacityException"}, + {"shape":"CapacityDecreaseRequestsLimitExceededException"}, + {"shape":"PriorRequestNotCompleteException"}, + {"shape":"OperationNotPermittedException"} + ], + "documentation":"

    Modifies the capacity reservation of the specified load balancer.

    When modifying capacity reservation, you must include at least one MinimumLoadBalancerCapacity or ResetCapacityReservation.

    " + }, "ModifyListener":{ "name":"ModifyListener", "http":{ @@ -915,7 +954,8 @@ {"shape":"SubnetNotFoundException"}, {"shape":"InvalidSubnetException"}, {"shape":"AllocationIdNotFoundException"}, - {"shape":"AvailabilityZoneNotSupportedException"} + {"shape":"AvailabilityZoneNotSupportedException"}, + {"shape":"CapacityReservationPendingException"} ], "documentation":"

    Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer, Network Load Balancer or Gateway Load Balancer. The specified subnets replace the previously enabled subnets.

    When you specify subnets for a Network Load Balancer, or Gateway Load Balancer you must include all subnets that were enabled previously, with their existing configurations, plus any additional subnets.

    " } @@ -1324,6 +1364,67 @@ "exception":true }, "CanonicalHostedZoneId":{"type":"string"}, + "CapacityDecreaseRequestsLimitExceededException":{ + "type":"structure", + "members":{ + }, + "documentation":"

    You've exceeded the daily capacity decrease limit for this reservation.

    ", + "error":{ + "code":"CapacityDecreaseRequestLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "CapacityReservationPendingException":{ + "type":"structure", + "members":{ + }, + "documentation":"

    There is a pending capacity reservation.

    ", + "error":{ + "code":"CapacityReservationPending", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "CapacityReservationStateEnum":{ + "type":"string", + "enum":[ + "provisioned", + "pending", + "rebalancing", + "failed" + ] + }, + "CapacityReservationStatus":{ + "type":"structure", + "members":{ + "Code":{ + "shape":"CapacityReservationStateEnum", + "documentation":"

    The status code.

    " + }, + "Reason":{ + "shape":"StateReason", + "documentation":"

    The reason code for the status.

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

    The status of a capacity reservation.

    " + }, + "CapacityUnits":{"type":"integer"}, + "CapacityUnitsDouble":{"type":"double"}, + "CapacityUnitsLimitExceededException":{ + "type":"structure", + "members":{ + }, + "documentation":"

    You've exceeded the capacity units limit.

    ", + "error":{ + "code":"CapacityUnitsLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "Certificate":{ "type":"structure", "members":{ @@ -1657,6 +1758,7 @@ "pattern":"^(ipv4pool-coip-)[a-zA-Z0-9]+$" }, "DNSName":{"type":"string"}, + "DecreaseRequestsRemaining":{"type":"integer"}, "Default":{"type":"boolean"}, "DeleteAssociationSameAccountException":{ "type":"structure", @@ -1815,6 +1917,37 @@ } } }, + "DescribeCapacityReservationInput":{ + "type":"structure", + "required":["LoadBalancerArn"], + "members":{ + "LoadBalancerArn":{ + "shape":"LoadBalancerArn", + "documentation":"

    The Amazon Resource Name (ARN) of the load balancer.

    " + } + } + }, + "DescribeCapacityReservationOutput":{ + "type":"structure", + "members":{ + "LastModifiedTime":{ + "shape":"LastModifiedTime", + "documentation":"

    The last time the capacity reservation was modified.

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

    The amount of daily capacity decreases remaining.

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

    The requested minimum capacity reservation for the load balancer

    " + }, + "CapacityReservationState":{ + "shape":"ZonalCapacityReservationStates", + "documentation":"

    The state of the capacity reservation.

    " + } + } + }, "DescribeListenerAttributesInput":{ "type":"structure", "required":["ListenerArn"], @@ -2522,6 +2655,17 @@ }, "exception":true }, + "InsufficientCapacityException":{ + "type":"structure", + "members":{ + }, + "documentation":"

    There is insufficient capacity to reserve.

    ", + "error":{ + "code":"InsufficientCapacity", + "httpStatusCode":500 + }, + "exception":true + }, "InvalidCaCertificatesBundleException":{ "type":"structure", "members":{ @@ -2628,6 +2772,7 @@ ] }, "IsDefault":{"type":"boolean"}, + "LastModifiedTime":{"type":"timestamp"}, "Limit":{ "type":"structure", "members":{ @@ -2942,6 +3087,16 @@ "documentation":"

    The codes to use when checking for a successful response from a target. If the protocol version is gRPC, these are gRPC codes. Otherwise, these are HTTP codes.

    " }, "Max":{"type":"string"}, + "MinimumLoadBalancerCapacity":{ + "type":"structure", + "members":{ + "CapacityUnits":{ + "shape":"CapacityUnits", + "documentation":"

    The number of capacity units.

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

    The minimum capacity for a load balancer.

    " + }, "MitigationInEffectEnum":{ "type":"string", "enum":[ @@ -2950,6 +3105,45 @@ ] }, "Mode":{"type":"string"}, + "ModifyCapacityReservationInput":{ + "type":"structure", + "required":["LoadBalancerArn"], + "members":{ + "LoadBalancerArn":{ + "shape":"LoadBalancerArn", + "documentation":"

    The Amazon Resource Name (ARN) of the load balancer.

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

    The minimum load balancer capacity reserved.

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

    Resets the capacity reservation.

    " + } + } + }, + "ModifyCapacityReservationOutput":{ + "type":"structure", + "members":{ + "LastModifiedTime":{ + "shape":"LastModifiedTime", + "documentation":"

    The last time the capacity reservation was modified.

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

    The amount of daily capacity decreases remaining.

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

    The requested minimum capacity reservation for the load balancer

    " + }, + "CapacityReservationState":{ + "shape":"ZonalCapacityReservationStates", + "documentation":"

    The state of the capacity reservation.

    " + } + } + }, "ModifyListenerAttributesInput":{ "type":"structure", "required":[ @@ -3259,6 +3453,18 @@ "max":65535, "min":1 }, + "PriorRequestNotCompleteException":{ + "type":"structure", + "members":{ + }, + "documentation":"

    This operation is not allowed while a prior request has not been completed.

    ", + "error":{ + "code":"PriorRequestNotComplete", + "httpStatusCode":429, + "senderFault":true + }, + "exception":true + }, "PriorityInUseException":{ "type":"structure", "members":{ @@ -3459,6 +3665,7 @@ "members":{ } }, + "ResetCapacityReservation":{"type":"boolean"}, "ResourceArn":{"type":"string"}, "ResourceArns":{ "type":"list", @@ -4572,6 +4779,28 @@ "exception":true }, "VpcId":{"type":"string"}, + "ZonalCapacityReservationState":{ + "type":"structure", + "members":{ + "State":{ + "shape":"CapacityReservationStatus", + "documentation":"

    The state of the capacity reservation.

    " + }, + "AvailabilityZone":{ + "shape":"ZoneName", + "documentation":"

    Information about the availability zone.

    " + }, + "EffectiveCapacityUnits":{ + "shape":"CapacityUnitsDouble", + "documentation":"

    The number of effective capacity units.

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

    The capacity reservation status for each availability zone.

    " + }, + "ZonalCapacityReservationStates":{ + "type":"list", + "member":{"shape":"ZonalCapacityReservationState"} + }, "ZoneName":{"type":"string"} }, "documentation":"Elastic Load Balancing

    A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer. You configure a target group with a protocol and port number for connections from the load balancer to the targets, and with health check settings to be used when checking the health status of the targets.

    Elastic Load Balancing supports the following types of load balancers: Application Load Balancers, Network Load Balancers, Gateway Load Balancers, and Classic Load Balancers. This reference covers the following load balancer types:

    • Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and HTTPS.

    • Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and UDP.

    • Gateway Load Balancer - Operates at the network layer (layer 3).

    For more information, see the Elastic Load Balancing User Guide.

    All Elastic Load Balancing operations are idempotent, which means that they complete at most one time. If you repeat an operation, it succeeds.

    " diff --git a/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json b/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json index 8a09127abda..2ebb29fa010 100644 --- a/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json +++ b/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json @@ -5453,7 +5453,8 @@ "provided.al2023", "python3.12", "java21", - "python3.13" + "python3.13", + "nodejs22.x" ] }, "RuntimeVersionArn":{ diff --git a/tools/code-generation/api-descriptions/mediaconvert-2017-08-29.normal.json b/tools/code-generation/api-descriptions/mediaconvert-2017-08-29.normal.json index 82a39c06323..55a0ff8e024 100644 --- a/tools/code-generation/api-descriptions/mediaconvert-2017-08-29.normal.json +++ b/tools/code-generation/api-descriptions/mediaconvert-2017-08-29.normal.json @@ -4031,6 +4031,11 @@ "CreateQueueRequest": { "type": "structure", "members": { + "ConcurrentJobs": { + "shape": "__integer", + "locationName": "concurrentJobs", + "documentation": "Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, specify the number of jobs you can process concurrently in your reservation plan instead." + }, "Description": { "shape": "__string", "locationName": "description", @@ -8947,6 +8952,16 @@ "shape": "__listOfQueue", "locationName": "queues", "documentation": "List of queues." + }, + "TotalConcurrentJobs": { + "shape": "__integer", + "locationName": "totalConcurrentJobs", + "documentation": "The maximum number of jobs that MediaConvert can process at one time, across all of your on-demand queues in the current AWS Region." + }, + "UnallocatedConcurrentJobs": { + "shape": "__integer", + "locationName": "unallocatedConcurrentJobs", + "documentation": "The remaining number of concurrent jobs that are not associated with a queue and are available to allocate to a queue. You can allocate these jobs when you create or update a queue." } } }, @@ -11275,6 +11290,11 @@ "locationName": "arn", "documentation": "An identifier for this resource that is unique within all of AWS." }, + "ConcurrentJobs": { + "shape": "__integer", + "locationName": "concurrentJobs", + "documentation": "The maximum number of jobs your queue can process concurrently." + }, "CreatedAt": { "shape": "__timestampUnix", "locationName": "createdAt", @@ -11310,6 +11330,11 @@ "locationName": "reservationPlan", "documentation": "Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues." }, + "ServiceOverrides": { + "shape": "__listOfServiceOverride", + "locationName": "serviceOverrides", + "documentation": "A list of any service overrides applied by MediaConvert to the settings that you have configured. If you see any overrides, we recommend that you contact AWS Support." + }, "Status": { "shape": "QueueStatus", "locationName": "status", @@ -11728,6 +11753,32 @@ } } }, + "ServiceOverride": { + "type": "structure", + "members": { + "Message": { + "shape": "__string", + "locationName": "message", + "documentation": "Details about the service override that MediaConvert has applied." + }, + "Name": { + "shape": "__string", + "locationName": "name", + "documentation": "The name of the setting that MediaConvert has applied an override to." + }, + "OverrideValue": { + "shape": "__string", + "locationName": "overrideValue", + "documentation": "The current value of the service override that MediaConvert has applied." + }, + "Value": { + "shape": "__string", + "locationName": "value", + "documentation": "The value of the setting that you configured, prior to any overrides that MediaConvert has applied." + } + }, + "documentation": "A service override applied by MediaConvert to the settings that you have configured. If you see any overrides, we recommend that you contact AWS Support." + }, "SimulateReservedQueue": { "type": "string", "documentation": "Enable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default.", @@ -12340,6 +12391,11 @@ "UpdateQueueRequest": { "type": "structure", "members": { + "ConcurrentJobs": { + "shape": "__integer", + "locationName": "concurrentJobs", + "documentation": "Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, update your reservation plan instead in order to increase your yearly commitment." + }, "Description": { "shape": "__string", "locationName": "description", @@ -14432,6 +14488,12 @@ "shape": "QueueTransition" } }, + "__listOfServiceOverride": { + "type": "list", + "member": { + "shape": "ServiceOverride" + } + }, "__listOfTeletextPageType": { "type": "list", "member": { 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 63534ce8d94..f204fafd575 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 @@ -830,6 +830,14 @@ "shape":"ResourceDescription", "documentation":"

    Enter any descriptive text that helps you to identify the channel.

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

    The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

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

    The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

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

    A comma-separated list of tag key:value pairs that you define. For example:

    \"Key1\": \"Value1\",

    \"Key2\": \"Value2\"

    ", @@ -883,6 +891,14 @@ "Tags":{ "shape":"TagMap", "documentation":"

    The comma-separated list of tag key:value pairs assigned to the channel.

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

    The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

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

    The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

    " } } }, @@ -1123,7 +1139,7 @@ }, "ProgramDateTimeIntervalSeconds":{ "shape":"CreateHlsManifestConfigurationProgramDateTimeIntervalSecondsInteger", - "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.

    " + "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.

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

    " }, "FilterConfiguration":{"shape":"FilterConfiguration"} }, @@ -1164,7 +1180,7 @@ }, "ProgramDateTimeIntervalSeconds":{ "shape":"CreateLowLatencyHlsManifestConfigurationProgramDateTimeIntervalSecondsInteger", - "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.

    " + "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.

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

    " }, "FilterConfiguration":{"shape":"FilterConfiguration"} }, @@ -1858,6 +1874,14 @@ "Tags":{ "shape":"TagMap", "documentation":"

    The comma-separated list of tag key:value pairs assigned to the channel.

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

    The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

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

    The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

    " } } }, @@ -2060,7 +2084,7 @@ }, "ProgramDateTimeIntervalSeconds":{ "shape":"Integer", - "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.

    " + "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.

    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"}, @@ -2097,7 +2121,7 @@ }, "ProgramDateTimeIntervalSeconds":{ "shape":"Integer", - "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.

    " + "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.

    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"}, @@ -2463,6 +2487,16 @@ "member":{"shape":"IngestEndpoint"}, "documentation":"

    The list of ingest endpoints.

    " }, + "InputSwitchConfiguration":{ + "type":"structure", + "members":{ + "MQCSInputSwitching":{ + "shape":"Boolean", + "documentation":"

    When true, AWS Elemental MediaPackage performs input switching based on the MQCS. Default is true. This setting is valid only when InputType is CMAF.

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

    The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive.

    " + }, "InputType":{ "type":"string", "enum":[ @@ -2836,6 +2870,16 @@ "type":"list", "member":{"shape":"OriginEndpointListConfiguration"} }, + "OutputHeaderConfiguration":{ + "type":"structure", + "members":{ + "PublishMQCS":{ + "shape":"Boolean", + "documentation":"

    When true, AWS Elemental MediaPackage includes the MQCS in responses to the CDN. This setting is valid only when InputType is CMAF.

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

    The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN.

    " + }, "PolicyText":{ "type":"string", "max":6144, @@ -3344,6 +3388,14 @@ "Description":{ "shape":"ResourceDescription", "documentation":"

    Any descriptive information that you want to add to the channel for future identification purposes.

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

    The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

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

    The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

    " } } }, @@ -3394,6 +3446,14 @@ "shape":"TagMap", "documentation":"

    The comma-separated list of tag key:value pairs assigned to the channel.

    ", "locationName":"tags" + }, + "InputSwitchConfiguration":{ + "shape":"InputSwitchConfiguration", + "documentation":"

    The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

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

    The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

    " } } }, @@ -3621,7 +3681,9 @@ "HARVEST_JOB_UNABLE_TO_WRITE_TO_S3_DESTINATION", "HARVEST_JOB_CUSTOMER_ENDPOINT_READ_ACCESS_DENIED", "CLIP_START_TIME_WITH_START_OR_END", - "START_TAG_TIME_OFFSET_INVALID" + "START_TAG_TIME_OFFSET_INVALID", + "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING", + "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION" ] } }, diff --git a/tools/code-generation/api-descriptions/omics-2022-11-28.normal.json b/tools/code-generation/api-descriptions/omics-2022-11-28.normal.json index a7213063382..0d5e0374a06 100644 --- a/tools/code-generation/api-descriptions/omics-2022-11-28.normal.json +++ b/tools/code-generation/api-descriptions/omics-2022-11-28.normal.json @@ -244,6 +244,28 @@ "documentation":"

    Creates a reference store.

    ", "endpoint":{"hostPrefix":"control-storage-"} }, + "CreateRunCache":{ + "name":"CreateRunCache", + "http":{ + "method":"POST", + "requestUri":"/runCache", + "responseCode":201 + }, + "input":{"shape":"CreateRunCacheRequest"}, + "output":{"shape":"CreateRunCacheResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RequestTimeoutException"} + ], + "documentation":"

    You can create a run cache to save the task outputs from completed tasks in a run for a private workflow. Subsequent runs use the task outputs from the cache, rather than computing the task outputs again. You specify an Amazon S3 location where HealthOmics saves the cached data. This data must be immediately accessible (not in an archived state).

    For more information, see Creating a run cache in the AWS HealthOmics User Guide.

    ", + "endpoint":{"hostPrefix":"workflows-"} + }, "CreateRunGroup":{ "name":"CreateRunGroup", "http":{ @@ -458,6 +480,28 @@ "endpoint":{"hostPrefix":"workflows-"}, "idempotent":true }, + "DeleteRunCache":{ + "name":"DeleteRunCache", + "http":{ + "method":"DELETE", + "requestUri":"/runCache/{id}", + "responseCode":202 + }, + "input":{"shape":"DeleteRunCacheRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RequestTimeoutException"} + ], + "documentation":"

    Delete a run cache. This action removes the cache metadata stored in the service account, but doesn't delete the data in Amazon S3. You can access the cache data in Amazon S3, for inspection or to troubleshoot issues. You can remove old cache data using standard S3 Delete operations.

    For more information, see Deleting a run cache in the AWS HealthOmics User Guide.

    ", + "endpoint":{"hostPrefix":"workflows-"}, + "idempotent":true + }, "DeleteRunGroup":{ "name":"DeleteRunGroup", "http":{ @@ -826,7 +870,29 @@ {"shape":"AccessDeniedException"}, {"shape":"RequestTimeoutException"} ], - "documentation":"

    Gets information about a workflow run.

    If a workflow is shared with you, you cannot export information about the run.

    ", + "documentation":"

    Gets information about a workflow run.

    If a workflow is shared with you, you cannot export information about the run.

    HealthOmics stores a fixed number of runs that are available to the console and API. If GetRun doesn't return the requested run, you can find run logs for all runs in the CloudWatch logs. For more information about viewing the run logs, see CloudWatch logs in the AWS HealthOmics User Guide.

    ", + "endpoint":{"hostPrefix":"workflows-"} + }, + "GetRunCache":{ + "name":"GetRunCache", + "http":{ + "method":"GET", + "requestUri":"/runCache/{id}", + "responseCode":200 + }, + "input":{"shape":"GetRunCacheRequest"}, + "output":{"shape":"GetRunCacheResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RequestTimeoutException"} + ], + "documentation":"

    Retrieve the details for the specified run cache.

    For more information, see Call caching for HealthOmics runs in the AWS HealthOmics User Guide.

    ", "endpoint":{"hostPrefix":"workflows-"} }, "GetRunGroup":{ @@ -1214,6 +1280,28 @@ "documentation":"

    Retrieves a list of references.

    ", "endpoint":{"hostPrefix":"control-storage-"} }, + "ListRunCaches":{ + "name":"ListRunCaches", + "http":{ + "method":"GET", + "requestUri":"/runCache", + "responseCode":200 + }, + "input":{"shape":"ListRunCachesRequest"}, + "output":{"shape":"ListRunCachesResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RequestTimeoutException"} + ], + "documentation":"

    Retrieves a list of your run caches.

    ", + "endpoint":{"hostPrefix":"workflows-"} + }, "ListRunGroups":{ "name":"ListRunGroups", "http":{ @@ -1277,7 +1365,7 @@ {"shape":"AccessDeniedException"}, {"shape":"RequestTimeoutException"} ], - "documentation":"

    Retrieves a list of runs.

    ", + "documentation":"

    Retrieves a list of runs.

    HealthOmics stores a fixed number of runs that are available to the console and API. If the ListRuns response doesn't include specific runs that you expected, you can find run logs for all runs in the CloudWatch logs. For more information about viewing the run logs, see CloudWatch logs in the AWS HealthOmics User Guide.

    ", "endpoint":{"hostPrefix":"workflows-"} }, "ListSequenceStores":{ @@ -1525,7 +1613,7 @@ {"shape":"AccessDeniedException"}, {"shape":"RequestTimeoutException"} ], - "documentation":"

    Starts a workflow run. To duplicate a run, specify the run's ID and a role ARN. The remaining parameters are copied from the previous run.

    StartRun will not support re-run for a workflow that is shared with you.

    The total number of runs in your account is subject to a quota per Region. To avoid needing to delete runs manually, you can set the retention mode to REMOVE. Runs with this setting are deleted automatically when the run quoata is exceeded.

    By default, the run uses STATIC storage. For STATIC storage, set the storageCapacity field. You can set the storage type to DYNAMIC. You do not set storageCapacity, because HealthOmics dynamically scales the storage up or down as required. For more information about static and dynamic storage, see Running workflows in the AWS HealthOmics User Guide.

    ", + "documentation":"

    Starts a workflow run. To duplicate a run, specify the run's ID and a role ARN. The remaining parameters are copied from the previous run.

    StartRun will not support re-run for a workflow that is shared with you.

    HealthOmics stores a fixed number of runs that are available to the console and API. By default, HealthOmics doesn't any remove any runs. If HealthOmics reaches the maximum number of runs, you must manually remove runs. To have older runs removed automatically, set the retention mode to REMOVE.

    By default, the run uses STATIC storage. For STATIC storage, set the storageCapacity field. You can set the storage type to DYNAMIC. You do not set storageCapacity, because HealthOmics dynamically scales the storage up or down as required. For more information about static and dynamic storage, see Running workflows in the AWS HealthOmics User Guide.

    ", "endpoint":{"hostPrefix":"workflows-"} }, "StartVariantImportJob":{ @@ -1631,6 +1719,27 @@ "documentation":"

    Updates the description of an annotation store version.

    ", "endpoint":{"hostPrefix":"analytics-"} }, + "UpdateRunCache":{ + "name":"UpdateRunCache", + "http":{ + "method":"POST", + "requestUri":"/runCache/{id}", + "responseCode":202 + }, + "input":{"shape":"UpdateRunCacheRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RequestTimeoutException"} + ], + "documentation":"

    Update a run cache.

    ", + "endpoint":{"hostPrefix":"workflows-"} + }, "UpdateRunGroup":{ "name":"UpdateRunGroup", "http":{ @@ -2147,6 +2256,12 @@ "max":10, "min":1 }, + "AwsAccountId":{ + "type":"string", + "max":12, + "min":12, + "pattern":"[0-9]+" + }, "BatchDeleteReadSetRequest":{ "type":"structure", "required":[ @@ -2180,6 +2295,15 @@ "type":"boolean", "box":true }, + "CacheBehavior":{ + "type":"string", + "enum":[ + "CACHE_ON_FAILURE", + "CACHE_ALWAYS" + ], + "max":64, + "min":1 + }, "CancelAnnotationImportRequest":{ "type":"structure", "required":["jobId"], @@ -2655,6 +2779,65 @@ } } }, + "CreateRunCacheRequest":{ + "type":"structure", + "required":[ + "cacheS3Location", + "requestId" + ], + "members":{ + "cacheBehavior":{ + "shape":"CacheBehavior", + "documentation":"

    Default cache behavior for runs that use this cache. Supported values are:

    CACHE_ON_FAILURE: Caches task outputs from completed tasks for runs that fail. This setting is useful if you're debugging a workflow that fails after several tasks completed successfully. The subsequent run uses the cache outputs for previously-completed tasks if the task definition, inputs, and container in ECR are identical to the prior run.

    CACHE_ALWAYS: Caches task outputs from completed tasks for all runs. This setting is useful in development mode, but do not use it in a production setting.

    If you don't specify a value, the default behavior is CACHE_ON_FAILURE. When you start a run that uses this cache, you can override the default cache behavior.

    For more information, see Run cache behavior in the AWS HealthOmics User Guide.

    " + }, + "cacheS3Location":{ + "shape":"S3UriForBucketOrObject", + "documentation":"

    Specify the S3 location for storing the cached task outputs. This data must be immediately accessible (not in an archived state).

    " + }, + "description":{ + "shape":"UserCustomDescription", + "documentation":"

    Enter a description of the run cache.

    " + }, + "name":{ + "shape":"UserCustomName", + "documentation":"

    Enter a user-friendly name for the run cache.

    " + }, + "requestId":{ + "shape":"RunCacheRequestId", + "documentation":"

    A unique request token, to ensure idempotency. If you don't specify a token, HealthOmics automatically generates a universally unique identifier (UUID) for the request.

    ", + "idempotencyToken":true + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    Specify one or more tags to associate with this run cache.

    " + }, + "cacheBucketOwnerId":{ + "shape":"AwsAccountId", + "documentation":"

    The AWS account ID of the expected owner of the S3 bucket for the run cache. If not provided, your account ID is set as the owner of the bucket.

    " + } + } + }, + "CreateRunCacheResponse":{ + "type":"structure", + "members":{ + "arn":{ + "shape":"RunCacheArn", + "documentation":"

    Unique resource identifier for the run cache.

    " + }, + "id":{ + "shape":"RunCacheId", + "documentation":"

    Identifier for the run cache.

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

    Run cache status.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    The tags associated with this run cache.

    " + } + } + }, "CreateRunGroupRequest":{ "type":"structure", "required":["requestId"], @@ -3102,6 +3285,18 @@ "members":{ } }, + "DeleteRunCacheRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"RunCacheId", + "documentation":"

    Run cache identifier for the cache you want to delete.

    ", + "location":"uri", + "locationName":"id" + } + } + }, "DeleteRunGroupRequest":{ "type":"structure", "required":["id"], @@ -3262,6 +3457,10 @@ "type":"string", "pattern":"[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+" }, + "EngineVersion":{ + "type":"string", + "pattern":"[0-9]{2}.[0-9]{2}.[0-9]" + }, "EscapeChar":{ "type":"string", "max":1, @@ -4336,6 +4535,63 @@ } } }, + "GetRunCacheRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"RunCacheId", + "documentation":"

    The identifier of the run cache to retrieve.

    ", + "location":"uri", + "locationName":"id" + } + } + }, + "GetRunCacheResponse":{ + "type":"structure", + "members":{ + "arn":{ + "shape":"RunCacheArn", + "documentation":"

    Unique resource identifier for the run cache.

    " + }, + "cacheBehavior":{ + "shape":"CacheBehavior", + "documentation":"

    The default cache behavior for runs using this cache.

    " + }, + "cacheBucketOwnerId":{ + "shape":"AwsAccountId", + "documentation":"

    The identifier of the bucket owner.

    " + }, + "cacheS3Uri":{ + "shape":"S3UriForBucketOrObject", + "documentation":"

    The S3 URI where the cache data is stored.

    " + }, + "creationTime":{ + "shape":"RunCacheTimestamp", + "documentation":"

    Creation time of the run cache (an ISO 8601 formatted string).

    " + }, + "description":{ + "shape":"UserCustomDescription", + "documentation":"

    The run cache description.

    " + }, + "id":{ + "shape":"RunCacheId", + "documentation":"

    The run cache ID.

    " + }, + "name":{ + "shape":"UserCustomName", + "documentation":"

    The run cache name.

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

    The run cache status.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    The tags associated with the run cache.

    " + } + } + }, "GetRunGroupRequest":{ "type":"structure", "required":["id"], @@ -4442,6 +4698,18 @@ "shape":"RunId", "documentation":"

    The run's ID.

    " }, + "cacheId":{ + "shape":"NumericIdInArn", + "documentation":"

    The run cache associated with the run.

    " + }, + "cacheBehavior":{ + "shape":"CacheBehavior", + "documentation":"

    The run cache behavior for the run.

    " + }, + "engineVersion":{ + "shape":"EngineVersion", + "documentation":"

    The workflow engine version.

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

    The run's status.

    " @@ -4612,6 +4880,14 @@ "shape":"GetRunTaskResponseCpusInteger", "documentation":"

    The task's CPU usage.

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

    Set to true if AWS HealthOmics found a matching entry in the run cache for this task.

    " + }, + "cacheS3Uri":{ + "shape":"S3UriForBucketOrObject", + "documentation":"

    The S3 URI of the cache location.

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

    The task's memory use in gigabytes.

    " @@ -5897,6 +6173,42 @@ } } }, + "ListRunCachesRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"ListRunCachesRequestMaxResultsInteger", + "documentation":"

    The maximum number of results to return.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "startingToken":{ + "shape":"ListToken", + "documentation":"

    Optional pagination token returned from a prior call to the ListRunCaches API operation.

    ", + "location":"querystring", + "locationName":"startingToken" + } + } + }, + "ListRunCachesRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListRunCachesResponse":{ + "type":"structure", + "members":{ + "items":{ + "shape":"RunCacheList", + "documentation":"

    Details about each run cache in the response.

    " + }, + "nextToken":{ + "shape":"ListToken", + "documentation":"

    Pagination token to retrieve additional run caches. If the response does not have a nextTokenvalue, you have reached to the end of the list.

    " + } + } + }, "ListRunGroupsRequest":{ "type":"structure", "members":{ @@ -6145,6 +6457,12 @@ } } }, + "ListToken":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+" + }, "ListVariantImportJobsFilter":{ "type":"structure", "members":{ @@ -6420,6 +6738,12 @@ }, "exception":true }, + "NumericIdInArn":{ + "type":"string", + "max":18, + "min":1, + "pattern":"[0-9]+" + }, "PrimitiveBoolean":{"type":"boolean"}, "Quote":{ "type":"string", @@ -7172,6 +7496,76 @@ "min":1, "pattern":"arn:.+" }, + "RunCacheArn":{ + "type":"string", + "max":128, + "min":1, + "pattern":"arn:.+" + }, + "RunCacheId":{ + "type":"string", + "max":18, + "min":1, + "pattern":"[0-9]+" + }, + "RunCacheList":{ + "type":"list", + "member":{"shape":"RunCacheListItem"} + }, + "RunCacheListItem":{ + "type":"structure", + "members":{ + "arn":{ + "shape":"RunCacheArn", + "documentation":"

    Unique resource identifier for the run cache.

    " + }, + "cacheBehavior":{ + "shape":"CacheBehavior", + "documentation":"

    Default cache behavior for the run cache.

    " + }, + "cacheS3Uri":{ + "shape":"S3UriForBucketOrObject", + "documentation":"

    The S3 uri for the run cache data.

    " + }, + "creationTime":{ + "shape":"RunCacheTimestamp", + "documentation":"

    The time that this run cache was created (an ISO 8601 formatted string).

    " + }, + "id":{ + "shape":"RunCacheId", + "documentation":"

    The identifier for this run cache.

    " + }, + "name":{ + "shape":"UserCustomName", + "documentation":"

    The name of the run cache.

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

    The run cache status.

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

    List entry for one run cache.

    " + }, + "RunCacheRequestId":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+" + }, + "RunCacheStatus":{ + "type":"string", + "enum":[ + "ACTIVE", + "DELETED", + "FAILED" + ], + "max":64, + "min":1 + }, + "RunCacheTimestamp":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, "RunExport":{ "type":"string", "enum":["DEFINITION"], @@ -7502,6 +7896,11 @@ "type":"string", "pattern":"s3://([a-z0-9][a-z0-9-.]{1,61}[a-z0-9])/(.{1,1024})" }, + "S3UriForBucketOrObject":{ + "type":"string", + "documentation":"

    Uri to a S3 object or bucket

    ", + "pattern":"s3://([a-z0-9][a-z0-9-.]{1,61}[a-z0-9])(/(.{0,1024}))?" + }, "SampleId":{ "type":"string", "max":127, @@ -8203,6 +8602,14 @@ "shape":"RunName", "documentation":"

    A name for the run.

    " }, + "cacheId":{ + "shape":"NumericIdInArn", + "documentation":"

    Identifier of the cache associated with this run. If you don't specify a cache ID, no task outputs are cached for this run.

    " + }, + "cacheBehavior":{ + "shape":"CacheBehavior", + "documentation":"

    The cache behavior for the run. You specify this value if you want to override the default behavior for the cache. You had set the default value when you created the cache. For more information, see Run cache behavior in the AWS HealthOmics User Guide.

    " + }, "runGroupId":{ "shape":"RunGroupId", "documentation":"

    The run's group ID.

    " @@ -8238,7 +8645,7 @@ }, "retentionMode":{ "shape":"RunRetentionMode", - "documentation":"

    The retention mode for the run.

    " + "documentation":"

    The retention mode for the run. The default value is RETAIN.

    HealthOmics stores a fixed number of runs that are available to the console and API. In the default mode (RETAIN), you need to remove runs manually when the number of run exceeds the maximum. If you set the retention mode to REMOVE, HealthOmics automatically removes runs (that have mode set to REMOVE) when the number of run exceeds the maximum. All run logs are available in CloudWatch logs, if you need information about a run that is no longer available to the API.

    For more information about retention mode, see Specifying run retention mode in the AWS HealthOmics User Guide.

    " }, "storageType":{ "shape":"StorageType", @@ -8267,7 +8674,7 @@ "members":{ "arn":{ "shape":"RunArn", - "documentation":"

    The run's ARN.

    " + "documentation":"

    Unique resource identifier for the run.

    " }, "id":{ "shape":"RunId", @@ -8494,6 +8901,14 @@ "shape":"TaskListItemCpusInteger", "documentation":"

    The task's CPU count.

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

    Set to true if AWS HealthOmics found a matching entry in the run cache for this task.

    " + }, + "cacheS3Uri":{ + "shape":"S3UriForBucketOrObject", + "documentation":"

    The S3 URI of the cache location.

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

    The task's memory use in gigabyes.

    " @@ -8815,6 +9230,30 @@ } } }, + "UpdateRunCacheRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "cacheBehavior":{ + "shape":"CacheBehavior", + "documentation":"

    Update the default run cache behavior.

    " + }, + "description":{ + "shape":"UserCustomDescription", + "documentation":"

    Update the run cache description.

    " + }, + "id":{ + "shape":"RunCacheId", + "documentation":"

    The identifier of the run cache you want to update.

    ", + "location":"uri", + "locationName":"id" + }, + "name":{ + "shape":"UserCustomName", + "documentation":"

    Update the name of the run cache.

    " + } + } + }, "UpdateRunGroupRequest":{ "type":"structure", "required":["id"], @@ -9016,6 +9455,18 @@ } } }, + "UserCustomDescription":{ + "type":"string", + "max":256, + "min":1, + "pattern":"[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+" + }, + "UserCustomName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+" + }, "ValidationException":{ "type":"structure", "required":["message"], diff --git a/tools/code-generation/api-descriptions/rbin-2021-06-15.normal.json b/tools/code-generation/api-descriptions/rbin-2021-06-15.normal.json index ae2fc62030a..bafd6f70935 100644 --- a/tools/code-generation/api-descriptions/rbin-2021-06-15.normal.json +++ b/tools/code-generation/api-descriptions/rbin-2021-06-15.normal.json @@ -5,11 +5,13 @@ "endpointPrefix":"rbin", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"Amazon Recycle Bin", "serviceId":"rbin", "signatureVersion":"v4", "signingName":"rbin", - "uid":"rbin-2021-06-15" + "uid":"rbin-2021-06-15", + "auth":["aws.auth#sigv4"] }, "operations":{ "CreateRule":{ @@ -26,7 +28,7 @@ {"shape":"ServiceQuotaExceededException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Creates a Recycle Bin retention rule. For more information, see Create Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.

    " + "documentation":"

    Creates a Recycle Bin retention rule. You can create two types of retention rules:

    • Tag-level retention rules - These retention rules use resource tags to identify the resources to protect. For each retention rule, you specify one or more tag key and value pairs. Resources (of the specified type) that have at least one of these tag key and value pairs are automatically retained in the Recycle Bin upon deletion. Use this type of retention rule to protect specific resources in your account based on their tags.

    • Region-level retention rules - These retention rules, by default, apply to all of the resources (of the specified type) in the Region, even if the resources are not tagged. However, you can specify exclusion tags to exclude resources that have specific tags. Use this type of retention rule to protect all resources of a specific type in a Region.

    For more information, see Create Recycle Bin retention rules in the Amazon EBS User Guide.

    " }, "DeleteRule":{ "name":"DeleteRule", @@ -107,7 +109,7 @@ {"shape":"ValidationException"}, {"shape":"ConflictException"} ], - "documentation":"

    Locks a retention rule. A locked retention rule can't be modified or deleted.

    " + "documentation":"

    Locks a Region-level retention rule. A locked retention rule can't be modified or deleted.

    You can't lock tag-level retention rules, or Region-level retention rules that have exclusion tags.

    " }, "TagResource":{ "name":"TagResource", @@ -221,11 +223,15 @@ }, "ResourceTags":{ "shape":"ResourceTags", - "documentation":"

    Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

    You can add the same tag key and value pair to a maximum or five retention rules.

    To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.

    " + "documentation":"

    [Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

    You can add the same tag key and value pair to a maximum or five retention rules.

    To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.

    " }, "LockConfiguration":{ "shape":"LockConfiguration", "documentation":"

    Information about the retention rule lock configuration.

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

    [Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. Resources that have any of these tags are not retained by the retention rule upon deletion.

    You can't specify exclusion tags for tag-level retention rules.

    " } } }, @@ -251,7 +257,7 @@ }, "ResourceTags":{ "shape":"ResourceTags", - "documentation":"

    Information about the resource tags used to identify resources that are retained by the retention rule.

    " + "documentation":"

    [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

    " }, "Status":{ "shape":"RuleStatus", @@ -263,11 +269,15 @@ }, "LockState":{ "shape":"LockState", - "documentation":"

    The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " + "documentation":"

    [Region-level retention rules only] The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " }, "RuleArn":{ "shape":"RuleArn", "documentation":"

    The Amazon Resource Name (ARN) of the retention rule.

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

    [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.

    " } } }, @@ -293,6 +303,12 @@ "pattern":"^[\\S ]{0,255}$" }, "ErrorMessage":{"type":"string"}, + "ExcludeResourceTags":{ + "type":"list", + "member":{"shape":"ResourceTag"}, + "max":5, + "min":0 + }, "GetRuleRequest":{ "type":"structure", "required":["Identifier"], @@ -326,7 +342,7 @@ }, "ResourceTags":{ "shape":"ResourceTags", - "documentation":"

    Information about the resource tags used to identify resources that are retained by the retention rule.

    " + "documentation":"

    [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

    " }, "Status":{ "shape":"RuleStatus", @@ -338,7 +354,7 @@ }, "LockState":{ "shape":"LockState", - "documentation":"

    The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " + "documentation":"

    [Region-level retention rules only] The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " }, "LockEndTime":{ "shape":"TimeStamp", @@ -347,6 +363,10 @@ "RuleArn":{ "shape":"RuleArn", "documentation":"

    The Amazon Resource Name (ARN) of the retention rule.

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

    [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.

    " } } }, @@ -378,11 +398,15 @@ }, "ResourceTags":{ "shape":"ResourceTags", - "documentation":"

    Information about the resource tags used to identify resources that are retained by the retention rule.

    " + "documentation":"

    [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

    " }, "LockState":{ "shape":"LockState", "documentation":"

    The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.

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

    [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.

    " } } }, @@ -468,7 +492,7 @@ "RetentionPeriod":{"shape":"RetentionPeriod"}, "ResourceTags":{ "shape":"ResourceTags", - "documentation":"

    Information about the resource tags used to identify resources that are retained by the retention rule.

    " + "documentation":"

    [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

    " }, "Status":{ "shape":"RuleStatus", @@ -480,11 +504,15 @@ }, "LockState":{ "shape":"LockState", - "documentation":"

    The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " + "documentation":"

    [Region-level retention rules only] The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " }, "RuleArn":{ "shape":"RuleArn", "documentation":"

    The Amazon Resource Name (ARN) of the retention rule.

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

    [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.

    " } } }, @@ -535,7 +563,7 @@ "documentation":"

    The tag value.

    " } }, - "documentation":"

    Information about the resource tags used to identify resources that are retained by the retention rule.

    " + "documentation":"

    [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

    " }, "ResourceTagKey":{ "type":"string", @@ -619,7 +647,7 @@ }, "LockState":{ "shape":"LockState", - "documentation":"

    The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " + "documentation":"

    [Region-level retention rules only] The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " }, "RuleArn":{ "shape":"RuleArn", @@ -773,7 +801,7 @@ "RetentionPeriod":{"shape":"RetentionPeriod"}, "ResourceTags":{ "shape":"ResourceTags", - "documentation":"

    Information about the resource tags used to identify resources that are retained by the retention rule.

    " + "documentation":"

    [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

    " }, "Status":{ "shape":"RuleStatus", @@ -785,7 +813,7 @@ }, "LockState":{ "shape":"LockState", - "documentation":"

    The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " + "documentation":"

    [Region-level retention rules only] The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " }, "LockEndTime":{ "shape":"TimeStamp", @@ -794,6 +822,10 @@ "RuleArn":{ "shape":"RuleArn", "documentation":"

    The Amazon Resource Name (ARN) of the retention rule.

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

    [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.

    " } } }, @@ -847,7 +879,11 @@ }, "ResourceTags":{ "shape":"ResourceTags", - "documentation":"

    Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

    You can add the same tag key and value pair to a maximum or five retention rules.

    To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.

    " + "documentation":"

    [Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

    You can add the same tag key and value pair to a maximum or five retention rules.

    To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.

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

    [Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. Resources that have any of these tags are not retained by the retention rule upon deletion.

    You can't specify exclusion tags for tag-level retention rules.

    " } } }, @@ -869,7 +905,7 @@ }, "ResourceTags":{ "shape":"ResourceTags", - "documentation":"

    Information about the resource tags used to identify resources that are retained by the retention rule.

    " + "documentation":"

    [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

    " }, "Status":{ "shape":"RuleStatus", @@ -877,7 +913,7 @@ }, "LockState":{ "shape":"LockState", - "documentation":"

    The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " + "documentation":"

    [Region-level retention rules only] The lock state for the retention rule.

    • locked - The retention rule is locked and can't be modified or deleted.

    • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

    • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

    • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    " }, "LockEndTime":{ "shape":"TimeStamp", @@ -886,6 +922,10 @@ "RuleArn":{ "shape":"RuleArn", "documentation":"

    The Amazon Resource Name (ARN) of the retention rule.

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

    [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.

    " } } }, diff --git a/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json b/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json index 95d2f7a55a5..eec1601cfb6 100644 --- a/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json +++ b/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json @@ -272,7 +272,7 @@ {"shape":"InvalidDBInstanceStateFault"}, {"shape":"InvalidDBClusterStateFault"} ], - "documentation":"

    Creates a blue/green deployment.

    A blue/green deployment creates a staging environment that copies the production environment. In a blue/green deployment, the blue environment is the current production environment. The green environment is the staging environment. The staging environment stays in sync with the current production environment using logical replication.

    You can make changes to the databases in the green environment without affecting production workloads. For example, you can upgrade the major or minor DB engine version, change database parameters, or make schema changes in the staging environment. You can thoroughly test changes in the green environment. When ready, you can switch over the environments to promote the green environment to be the new production environment. The switchover typically takes under a minute.

    For more information, see Using Amazon RDS Blue/Green Deployments for database updates in the Amazon RDS User Guide and Using Amazon RDS Blue/Green Deployments for database updates in the Amazon Aurora User Guide.

    " + "documentation":"

    Creates a blue/green deployment.

    A blue/green deployment creates a staging environment that copies the production environment. In a blue/green deployment, the blue environment is the current production environment. The green environment is the staging environment, and it stays in sync with the current production environment.

    You can make changes to the databases in the green environment without affecting production workloads. For example, you can upgrade the major or minor DB engine version, change database parameters, or make schema changes in the staging environment. You can thoroughly test changes in the green environment. When ready, you can switch over the environments to promote the green environment to be the new production environment. The switchover typically takes under a minute.

    For more information, see Using Amazon RDS Blue/Green Deployments for database updates in the Amazon RDS User Guide and Using Amazon RDS Blue/Green Deployments for database updates in the Amazon Aurora User Guide.

    " }, "CreateCustomDBEngineVersion":{ "name":"CreateCustomDBEngineVersion", @@ -4011,6 +4011,22 @@ "UpgradeTargetStorageConfig":{ "shape":"BooleanOptional", "documentation":"

    Whether to upgrade the storage file system configuration on the green database. This option migrates the green DB instance from the older 32-bit file system to the preferred configuration. For more information, see Upgrading the storage file system for a DB instance.

    " + }, + "TargetIops":{ + "shape":"IntegerOptional", + "documentation":"

    The amount of Provisioned IOPS (input/output operations per second) to allocate for the green DB instance. For information about valid IOPS values, see Amazon RDS DB instance storage in the Amazon RDS User Guide.

    This setting doesn't apply to Amazon Aurora blue/green deployments.

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

    The storage type to associate with the green DB instance.

    Valid Values: gp2 | gp3 | io1 | io2

    This setting doesn't apply to Amazon Aurora blue/green deployments.

    " + }, + "TargetAllocatedStorage":{ + "shape":"IntegerOptional", + "documentation":"

    The amount of storage in gibibytes (GiB) to allocate for the green DB instance. You can choose to increase or decrease the allocated storage on the green DB instance.

    This setting doesn't apply to Amazon Aurora blue/green deployments.

    " + }, + "TargetStorageThroughput":{ + "shape":"IntegerOptional", + "documentation":"

    The storage throughput value for the green DB instance.

    This setting applies only to the gp3 storage type.

    This setting doesn't apply to Amazon Aurora blue/green deployments.

    " } } }, @@ -16779,6 +16795,7 @@ "UNAVAILABLE" ] }, + "TargetStorageType":{"type":"string"}, "TargetType":{ "type":"string", "enum":[ diff --git a/tools/code-generation/api-descriptions/timestream-query-2018-11-01.normal.json b/tools/code-generation/api-descriptions/timestream-query-2018-11-01.normal.json index 08f3fd51845..8d22d4ea2ef 100644 --- a/tools/code-generation/api-descriptions/timestream-query-2018-11-01.normal.json +++ b/tools/code-generation/api-descriptions/timestream-query-2018-11-01.normal.json @@ -142,7 +142,7 @@ {"shape":"ValidationException"}, {"shape":"InvalidEndpointException"} ], - "documentation":"

    You can use this API to run a scheduled query manually.

    If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed as part of an Amazon SNS notification. QueryInsights helps with performance tuning of your query.

    ", + "documentation":"

    You can use this API to run a scheduled query manually.

    If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed as part of an Amazon SNS notification. QueryInsights helps with performance tuning of your query. For more information about QueryInsights, see Using query insights to optimize queries in Amazon Timestream.

    ", "endpointdiscovery":{"required":true}, "idempotent":true }, @@ -217,7 +217,7 @@ {"shape":"ValidationException"}, {"shape":"InvalidEndpointException"} ], - "documentation":"

    Query is a synchronous operation that enables you to run a query against your Amazon Timestream data.

    If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed. QueryInsights helps with performance tuning of your query.

    The maximum number of Query API requests you're allowed to make with QueryInsights enabled is 1 query per second (QPS). If you exceed this query rate, it might result in throttling.

    Query will time out after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. See the code sample for details.

    Your query request will fail in the following cases:

    • If you submit a Query request with the same client token outside of the 5-minute idempotency window.

    • If you submit a Query request with the same client token, but change other parameters, within the 5-minute idempotency window.

    • If the size of the row (including the query metadata) exceeds 1 MB, then the query will fail with the following error message:

      Query aborted as max page response size has been exceeded by the output result row

    • If the IAM principal of the query initiator and the result reader are not the same and/or the query initiator and the result reader do not have the same query string in the query requests, the query will fail with an Invalid pagination token error.

    ", + "documentation":"

    Query is a synchronous operation that enables you to run a query against your Amazon Timestream data.

    If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed. QueryInsights helps with performance tuning of your query. For more information about QueryInsights, see Using query insights to optimize queries in Amazon Timestream.

    The maximum number of Query API requests you're allowed to make with QueryInsights enabled is 1 query per second (QPS). If you exceed this query rate, it might result in throttling.

    Query will time out after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. See the code sample for details.

    Your query request will fail in the following cases:

    • If you submit a Query request with the same client token outside of the 5-minute idempotency window.

    • If you submit a Query request with the same client token, but change other parameters, within the 5-minute idempotency window.

    • If the size of the row (including the query metadata) exceeds 1 MB, then the query will fail with the following error message:

      Query aborted as max page response size has been exceeded by the output result row

    • If the IAM principal of the query initiator and the result reader are not the same and/or the query initiator and the result reader do not have the same query string in the query requests, the query will fail with an Invalid pagination token error.

    ", "endpointdiscovery":{"required":true}, "idempotent":true }, @@ -300,10 +300,22 @@ "members":{ "Message":{"shape":"ServiceErrorMessage"} }, - "documentation":"

    You are not authorized to perform this action.

    ", + "documentation":"

    You do not have the necessary permissions to access the account settings.

    ", "exception":true, "synthetic":true }, + "AccountSettingsNotificationConfiguration":{ + "type":"structure", + "required":["RoleArn"], + "members":{ + "SnsConfiguration":{"shape":"SnsConfiguration"}, + "RoleArn":{ + "shape":"AmazonResourceName", + "documentation":"

    An Amazon Resource Name (ARN) that grants Timestream permission to publish notifications. This field is only visible if SNS Topic is provided when updating the account settings.

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

    Configuration settings for notifications related to account settings.

    " + }, "AmazonResourceName":{ "type":"string", "max":2048, @@ -359,6 +371,13 @@ "type":"list", "member":{"shape":"ColumnInfo"} }, + "ComputeMode":{ + "type":"string", + "enum":[ + "ON_DEMAND", + "PROVISIONED" + ] + }, "ConflictException":{ "type":"structure", "members":{ @@ -481,11 +500,15 @@ "members":{ "MaxQueryTCU":{ "shape":"MaxQueryCapacity", - "documentation":"

    The maximum number of Timestream compute units (TCUs) the service will use at any point in time to serve your queries.

    " + "documentation":"

    The maximum number of Timestream compute units (TCUs) the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on. This configuration is applicable only for on-demand usage of (TCUs).

    " }, "QueryPricingModel":{ "shape":"QueryPricingModel", - "documentation":"

    The pricing model for queries in your account.

    " + "documentation":"

    The pricing model for queries in your account.

    The QueryPricingModel parameter is used by several Timestream operations; however, the UpdateAccountSettings API operation doesn't recognize any values other than COMPUTE_UNITS.

    " + }, + "QueryCompute":{ + "shape":"QueryComputeResponse", + "documentation":"

    An object that contains the usage settings for Timestream Compute Units (TCUs) in your account for the query workload.

    " } } }, @@ -656,7 +679,7 @@ "members":{ "Message":{"shape":"ErrorMessage"} }, - "documentation":"

    The service was unable to fully process this request because of an internal server error.

    ", + "documentation":"

    An internal server error occurred while processing the request.

    ", "exception":true }, "InvalidEndpointException":{ @@ -664,9 +687,35 @@ "members":{ "Message":{"shape":"ErrorMessage"} }, - "documentation":"

    The requested endpoint was not valid.

    ", + "documentation":"

    The requested endpoint is invalid.

    ", "exception":true }, + "LastUpdate":{ + "type":"structure", + "members":{ + "TargetQueryTCU":{ + "shape":"QueryTCU", + "documentation":"

    The number of TimeStream Compute Units (TCUs) requested in the last account settings update.

    " + }, + "Status":{ + "shape":"LastUpdateStatus", + "documentation":"

    The status of the last update. Can be either PENDING, FAILED, or SUCCEEDED.

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

    Error message describing the last account settings update status, visible only if an error occurred.

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

    Configuration object that contains the most recent account settings update, visible only if settings have been updated previously.

    " + }, + "LastUpdateStatus":{ + "type":"string", + "enum":[ + "PENDING", + "FAILED", + "SUCCEEDED" + ] + }, "ListScheduledQueriesRequest":{ "type":"structure", "members":{ @@ -838,7 +887,7 @@ "members":{ "SnsConfiguration":{ "shape":"SnsConfiguration", - "documentation":"

    Details on SNS configuration.

    " + "documentation":"

    Details about the Amazon Simple Notification Service (SNS) configuration. This field is visible only when SNS Topic is provided when updating the account settings.

    " } }, "documentation":"

    Notification configuration for a scheduled query. A notification is sent by Timestream when a scheduled query is created, its state is updated or when it is deleted.

    " @@ -912,6 +961,67 @@ } } }, + "ProvisionedCapacityRequest":{ + "type":"structure", + "required":["TargetQueryTCU"], + "members":{ + "TargetQueryTCU":{ + "shape":"QueryTCU", + "documentation":"

    The target compute capacity for querying data, specified in Timestream Compute Units (TCUs).

    " + }, + "NotificationConfiguration":{ + "shape":"AccountSettingsNotificationConfiguration", + "documentation":"

    Configuration settings for notifications related to the provisioned capacity update.

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

    A request to update the provisioned capacity settings for querying data.

    " + }, + "ProvisionedCapacityResponse":{ + "type":"structure", + "members":{ + "ActiveQueryTCU":{ + "shape":"QueryTCU", + "documentation":"

    The number of Timestream Compute Units (TCUs) provisioned in the account. This field is only visible when the compute mode is PROVISIONED.

    " + }, + "NotificationConfiguration":{ + "shape":"AccountSettingsNotificationConfiguration", + "documentation":"

    An object that contains settings for notifications that are sent whenever the provisioned capacity settings are modified. This field is only visible when the compute mode is PROVISIONED.

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

    Information about the last update to the provisioned capacity settings.

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

    The response to a request to update the provisioned capacity settings for querying data.

    " + }, + "QueryComputeRequest":{ + "type":"structure", + "members":{ + "ComputeMode":{ + "shape":"ComputeMode", + "documentation":"

    The mode in which Timestream Compute Units (TCUs) are allocated and utilized within an account. Note that in the Asia Pacific (Mumbai) region, the API operation only recognizes the value PROVISIONED.

    " + }, + "ProvisionedCapacity":{ + "shape":"ProvisionedCapacityRequest", + "documentation":"

    Configuration object that contains settings for provisioned Timestream Compute Units (TCUs) in your account.

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

    A request to retrieve or update the compute capacity settings for querying data.

    " + }, + "QueryComputeResponse":{ + "type":"structure", + "members":{ + "ComputeMode":{ + "shape":"ComputeMode", + "documentation":"

    The mode in which Timestream Compute Units (TCUs) are allocated and utilized within an account. Note that in the Asia Pacific (Mumbai) region, the API operation only recognizes the value PROVISIONED.

    " + }, + "ProvisionedCapacity":{ + "shape":"ProvisionedCapacityResponse", + "documentation":"

    Configuration object that contains settings for provisioned Timestream Compute Units (TCUs) in your account.

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

    The response to a request to retrieve or update the compute capacity settings for querying data.

    " + }, "QueryExecutionException":{ "type":"structure", "members":{ @@ -1108,6 +1218,7 @@ "min":1, "sensitive":true }, + "QueryTCU":{"type":"integer"}, "QueryTemporalRange":{ "type":"structure", "members":{ @@ -1630,7 +1741,7 @@ "members":{ "Message":{"shape":"ErrorMessage"} }, - "documentation":"

    The request was denied due to request throttling.

    ", + "documentation":"

    The request was throttled due to excessive requests.

    ", "exception":true }, "Time":{"type":"timestamp"}, @@ -1760,11 +1871,15 @@ "members":{ "MaxQueryTCU":{ "shape":"MaxQueryCapacity", - "documentation":"

    The maximum number of compute units the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on.

    The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas.

    " + "documentation":"

    The maximum number of compute units the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on. The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas. This configuration is applicable only for on-demand usage of Timestream Compute Units (TCUs).

    The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas.

    " }, "QueryPricingModel":{ "shape":"QueryPricingModel", "documentation":"

    The pricing model for queries in an account.

    The QueryPricingModel parameter is used by several Timestream operations; however, the UpdateAccountSettings API operation doesn't recognize any values other than COMPUTE_UNITS.

    " + }, + "QueryCompute":{ + "shape":"QueryComputeRequest", + "documentation":"

    Modifies the query compute settings configured in your account, including the query pricing model and provisioned Timestream Compute Units (TCUs) in your account.

    This API is idempotent, meaning that making the same request multiple times will have the same effect as making the request once.

    " } } }, @@ -1778,6 +1893,10 @@ "QueryPricingModel":{ "shape":"QueryPricingModel", "documentation":"

    The pricing model for an account.

    " + }, + "QueryCompute":{ + "shape":"QueryComputeResponse", + "documentation":"

    Confirms the updated account settings for querying data in your account.

    " } } }, diff --git a/tools/code-generation/api-descriptions/workspaces-2015-04-08.normal.json b/tools/code-generation/api-descriptions/workspaces-2015-04-08.normal.json index 7b236635435..4e6df230e7b 100644 --- a/tools/code-generation/api-descriptions/workspaces-2015-04-08.normal.json +++ b/tools/code-generation/api-descriptions/workspaces-2015-04-08.normal.json @@ -293,7 +293,7 @@ {"shape":"ResourceLimitExceededException"}, {"shape":"InvalidParameterValuesException"} ], - "documentation":"

    Creates one or more WorkSpaces.

    This operation is asynchronous and returns before the WorkSpaces are created.

    • The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core.

    • You don't need to specify the PCOIP protocol for Linux bundles because WSP is the default protocol for those bundles.

    • User-decoupled WorkSpaces are only supported by Amazon WorkSpaces Core.

    • Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing?

    " + "documentation":"

    Creates one or more WorkSpaces.

    This operation is asynchronous and returns before the WorkSpaces are created.

    • The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core.

    • You don't need to specify the PCOIP protocol for Linux bundles because DCV (formerly WSP) is the default protocol for those bundles.

    • User-decoupled WorkSpaces are only supported by Amazon WorkSpaces Core.

    • Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing?

    " }, "CreateWorkspacesPool":{ "name":"CreateWorkspacesPool", @@ -1435,7 +1435,7 @@ }, "ClientToken":{ "shape":"ClientToken", - "documentation":"

    A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.

    " + "documentation":"

    A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

    " } } }, @@ -2300,7 +2300,7 @@ }, "ClientToken":{ "shape":"ClientToken", - "documentation":"

    A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.

    " + "documentation":"

    A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

    " } } }, @@ -2837,7 +2837,7 @@ }, "ClientToken":{ "shape":"ClientToken", - "documentation":"

    A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.

    " + "documentation":"

    A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

    " } } }, @@ -3918,7 +3918,7 @@ }, "DomainName":{ "type":"string", - "pattern":"^([a-zA-Z0-9]+[\\\\.-])+([a-zA-Z0-9])+$" + "pattern":"^([a-zA-Z0-9]+[.-])+([a-zA-Z0-9])+$" }, "Ec2ImageId":{ "type":"string", @@ -4214,7 +4214,7 @@ }, "IngestionProcess":{ "shape":"WorkspaceImageIngestionProcess", - "documentation":"

    The ingestion process to be used when importing the image, depending on which protocol you want to use for your BYOL Workspace image, either PCoIP, WorkSpaces Streaming Protocol (WSP), or bring your own protocol (BYOP). To use WSP, specify a value that ends in _WSP. To use PCoIP, specify a value that does not end in _WSP. To use BYOP, specify a value that ends in _BYOP.

    For non-GPU-enabled bundles (bundles other than Graphics or GraphicsPro), specify BYOL_REGULAR, BYOL_REGULAR_WSP, or BYOL_REGULAR_BYOP, depending on the protocol.

    The BYOL_REGULAR_BYOP and BYOL_GRAPHICS_G4DN_BYOP values are only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use these values. For more information, see Amazon WorkSpaces Core.

    " + "documentation":"

    The ingestion process to be used when importing the image, depending on which protocol you want to use for your BYOL Workspace image, either PCoIP, DCV, or bring your own protocol (BYOP). To use WSP, specify a value that ends in _DCV. To use PCoIP, specify a value that does not end in _DCV. To use BYOP, specify a value that ends in _BYOP.

    For non-GPU-enabled bundles (bundles other than Graphics or GraphicsPro), specify BYOL_REGULAR, BYOL_REGULAR_DCV, or BYOL_REGULAR_BYOP, depending on the protocol.

    The BYOL_REGULAR_BYOP and BYOL_GRAPHICS_G4DN_BYOP values are only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use these values. For more information, see Amazon WorkSpaces Core.

    " }, "ImageName":{ "shape":"WorkspaceImageName", @@ -4230,7 +4230,7 @@ }, "Applications":{ "shape":"ApplicationList", - "documentation":"

    If specified, the version of Microsoft Office to subscribe to. Valid only for Windows 10 and 11 BYOL images. For more information about subscribing to Office for BYOL images, see Bring Your Own Windows Desktop Licenses.

    • Although this parameter is an array, only one item is allowed at this time.

    • During the image import process, non-GPU WSP WorkSpaces with Windows 11 support only Microsoft_Office_2019. GPU WSP WorkSpaces with Windows 11 do not support Office installation.

    " + "documentation":"

    If specified, the version of Microsoft Office to subscribe to. Valid only for Windows 10 and 11 BYOL images. For more information about subscribing to Office for BYOL images, see Bring Your Own Windows Desktop Licenses.

    • Although this parameter is an array, only one item is allowed at this time.

    • During the image import process, non-GPU DCV (formerly WSP) WorkSpaces with Windows 11 support only Microsoft_Office_2019. GPU DCV (formerly WSP) WorkSpaces with Windows 11 do not support Office installation.

    " } } }, @@ -4843,7 +4843,8 @@ "WINDOWS_SERVER_2016", "WINDOWS_SERVER_2019", "WINDOWS_SERVER_2022", - "RHEL_8" + "RHEL_8", + "ROCKY_8" ] }, "OperatingSystemNameList":{ @@ -6725,7 +6726,7 @@ }, "Protocols":{ "shape":"ProtocolList", - "documentation":"

    The protocol. For more information, see Protocols for Amazon WorkSpaces.

    • Only available for WorkSpaces created with PCoIP bundles.

    • The Protocols property is case sensitive. Ensure you use PCOIP or WSP.

    • Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn).

    " + "documentation":"

    The protocol. For more information, see Protocols for Amazon WorkSpaces.

    • Only available for WorkSpaces created with PCoIP bundles.

    • The Protocols property is case sensitive. Ensure you use PCOIP or DCV (formerly WSP).

    • Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn).

    " }, "OperatingSystemName":{ "shape":"OperatingSystemName", diff --git a/tools/code-generation/api-descriptions/workspaces-web-2020-07-08.normal.json b/tools/code-generation/api-descriptions/workspaces-web-2020-07-08.normal.json index 8fc91d9a909..4f4b3490ada 100644 --- a/tools/code-generation/api-descriptions/workspaces-web-2020-07-08.normal.json +++ b/tools/code-generation/api-descriptions/workspaces-web-2020-07-08.normal.json @@ -34,6 +34,26 @@ "documentation":"

    Associates a browser settings resource with a web portal.

    ", "idempotent":true }, + "AssociateDataProtectionSettings":{ + "name":"AssociateDataProtectionSettings", + "http":{ + "method":"PUT", + "requestUri":"/portals/{portalArn+}/dataProtectionSettings", + "responseCode":200 + }, + "input":{"shape":"AssociateDataProtectionSettingsRequest"}, + "output":{"shape":"AssociateDataProtectionSettingsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Associates a data protection settings resource with a web portal.

    ", + "idempotent":true + }, "AssociateIpAccessSettings":{ "name":"AssociateIpAccessSettings", "http":{ @@ -154,6 +174,26 @@ ], "documentation":"

    Creates a browser settings resource that can be associated with a web portal. Once associated with a web portal, browser settings control how the browser will behave once a user starts a streaming session for the web portal.

    " }, + "CreateDataProtectionSettings":{ + "name":"CreateDataProtectionSettings", + "http":{ + "method":"POST", + "requestUri":"/dataProtectionSettings", + "responseCode":200 + }, + "input":{"shape":"CreateDataProtectionSettingsRequest"}, + "output":{"shape":"CreateDataProtectionSettingsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Creates a data protection settings resource that can be associated with a web portal.

    " + }, "CreateIdentityProvider":{ "name":"CreateIdentityProvider", "http":{ @@ -308,6 +348,25 @@ "documentation":"

    Deletes browser settings.

    ", "idempotent":true }, + "DeleteDataProtectionSettings":{ + "name":"DeleteDataProtectionSettings", + "http":{ + "method":"DELETE", + "requestUri":"/dataProtectionSettings/{dataProtectionSettingsArn+}", + "responseCode":200 + }, + "input":{"shape":"DeleteDataProtectionSettingsRequest"}, + "output":{"shape":"DeleteDataProtectionSettingsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Deletes data protection settings.

    ", + "idempotent":true + }, "DeleteIdentityProvider":{ "name":"DeleteIdentityProvider", "http":{ @@ -461,6 +520,26 @@ "documentation":"

    Disassociates browser settings from a web portal.

    ", "idempotent":true }, + "DisassociateDataProtectionSettings":{ + "name":"DisassociateDataProtectionSettings", + "http":{ + "method":"DELETE", + "requestUri":"/portals/{portalArn+}/dataProtectionSettings", + "responseCode":200 + }, + "input":{"shape":"DisassociateDataProtectionSettingsRequest"}, + "output":{"shape":"DisassociateDataProtectionSettingsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Disassociates data protection settings from a web portal.

    ", + "idempotent":true + }, "DisassociateIpAccessSettings":{ "name":"DisassociateIpAccessSettings", "http":{ @@ -598,6 +677,24 @@ ], "documentation":"

    Gets browser settings.

    " }, + "GetDataProtectionSettings":{ + "name":"GetDataProtectionSettings", + "http":{ + "method":"GET", + "requestUri":"/dataProtectionSettings/{dataProtectionSettingsArn+}", + "responseCode":200 + }, + "input":{"shape":"GetDataProtectionSettingsRequest"}, + "output":{"shape":"GetDataProtectionSettingsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ], + "documentation":"

    Gets the data protection settings.

    " + }, "GetIdentityProvider":{ "name":"GetIdentityProvider", "http":{ @@ -795,6 +892,23 @@ ], "documentation":"

    Retrieves a list of browser settings.

    " }, + "ListDataProtectionSettings":{ + "name":"ListDataProtectionSettings", + "http":{ + "method":"GET", + "requestUri":"/dataProtectionSettings", + "responseCode":200 + }, + "input":{"shape":"ListDataProtectionSettingsRequest"}, + "output":{"shape":"ListDataProtectionSettingsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ], + "documentation":"

    Retrieves a list of data protection settings.

    " + }, "ListIdentityProviders":{ "name":"ListIdentityProviders", "http":{ @@ -1024,6 +1138,24 @@ ], "documentation":"

    Updates browser settings.

    " }, + "UpdateDataProtectionSettings":{ + "name":"UpdateDataProtectionSettings", + "http":{ + "method":"PATCH", + "requestUri":"/dataProtectionSettings/{dataProtectionSettingsArn+}", + "responseCode":200 + }, + "input":{"shape":"UpdateDataProtectionSettingsRequest"}, + "output":{"shape":"UpdateDataProtectionSettingsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ], + "documentation":"

    Updates data protection settings.

    " + }, "UpdateIdentityProvider":{ "name":"UpdateIdentityProvider", "http":{ @@ -1216,6 +1348,44 @@ } } }, + "AssociateDataProtectionSettingsRequest":{ + "type":"structure", + "required":[ + "dataProtectionSettingsArn", + "portalArn" + ], + "members":{ + "dataProtectionSettingsArn":{ + "shape":"ARN", + "documentation":"

    The ARN of the data protection settings.

    ", + "location":"querystring", + "locationName":"dataProtectionSettingsArn" + }, + "portalArn":{ + "shape":"ARN", + "documentation":"

    The ARN of the web portal.

    ", + "location":"uri", + "locationName":"portalArn" + } + } + }, + "AssociateDataProtectionSettingsResponse":{ + "type":"structure", + "required":[ + "dataProtectionSettingsArn", + "portalArn" + ], + "members":{ + "dataProtectionSettingsArn":{ + "shape":"ARN", + "documentation":"

    The ARN of the data protection settings resource.

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

    The ARN of the web portal.

    " + } + } + }, "AssociateIpAccessSettingsRequest":{ "type":"structure", "required":[ @@ -1466,6 +1636,13 @@ "type":"string", "enum":["Chrome"] }, + "BuiltInPatternId":{ + "type":"string", + "max":50, + "min":1, + "pattern":"^[_\\-\\d\\w]+$", + "sensitive":true + }, "Certificate":{ "type":"structure", "members":{ @@ -1552,6 +1729,12 @@ "max":512, "min":1 }, + "ConfidenceLevel":{ + "type":"integer", + "box":true, + "max":3, + "min":1 + }, "ConflictException":{ "type":"structure", "members":{ @@ -1670,6 +1853,50 @@ } } }, + "CreateDataProtectionSettingsRequest":{ + "type":"structure", + "members":{ + "additionalEncryptionContext":{ + "shape":"EncryptionContextMap", + "documentation":"

    Additional encryption context of the data protection settings.

    " + }, + "clientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.

    If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

    ", + "idempotencyToken":true + }, + "customerManagedKey":{ + "shape":"keyArn", + "documentation":"

    The custom managed key of the data protection settings.

    " + }, + "description":{ + "shape":"DescriptionSafe", + "documentation":"

    The description of the data protection settings.

    " + }, + "displayName":{ + "shape":"DisplayNameSafe", + "documentation":"

    The display name of the data protection settings.

    " + }, + "inlineRedactionConfiguration":{ + "shape":"InlineRedactionConfiguration", + "documentation":"

    The inline redaction configuration of the data protection settings that will be applied to all sessions.

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

    The tags to add to the data protection settings resource. A tag is a key-value pair.

    " + } + } + }, + "CreateDataProtectionSettingsResponse":{ + "type":"structure", + "required":["dataProtectionSettingsArn"], + "members":{ + "dataProtectionSettingsArn":{ + "shape":"ARN", + "documentation":"

    The ARN of the data protection settings resource.

    " + } + } + }, "CreateIdentityProviderRequest":{ "type":"structure", "required":[ @@ -1990,6 +2217,98 @@ } } }, + "CustomPattern":{ + "type":"structure", + "required":[ + "patternName", + "patternRegex" + ], + "members":{ + "keywordRegex":{ + "shape":"Regex", + "documentation":"

    The keyword regex for the customer pattern. After there is a match to the pattern regex, the keyword regex is used to search within the proximity of the match. If there is a keyword match, then the match is confirmed. If no keyword regex is provided, the pattern regex match will automatically be confirmed. The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example, “/ab+c/gi”

    " + }, + "patternDescription":{ + "shape":"DescriptionSafe", + "documentation":"

    The pattern description for the customer pattern.

    " + }, + "patternName":{ + "shape":"PatternName", + "documentation":"

    The pattern name for the custom pattern.

    " + }, + "patternRegex":{ + "shape":"Regex", + "documentation":"

    The pattern regex for the customer pattern. The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example: “/ab+c/gi”.

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

    The pattern configuration for redacting custom data types in session.

    " + }, + "DataProtectionSettings":{ + "type":"structure", + "required":["dataProtectionSettingsArn"], + "members":{ + "additionalEncryptionContext":{ + "shape":"EncryptionContextMap", + "documentation":"

    The additional encryption context of the data protection settings.

    " + }, + "associatedPortalArns":{ + "shape":"ArnList", + "documentation":"

    A list of web portal ARNs that this data protection settings resource is associated with.

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

    The creation date timestamp of the data protection settings.

    " + }, + "customerManagedKey":{ + "shape":"keyArn", + "documentation":"

    The customer managed key used to encrypt sensitive information in the data protection settings.

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

    The ARN of the data protection settings resource.

    " + }, + "description":{ + "shape":"DescriptionSafe", + "documentation":"

    The description of the data protection settings.

    " + }, + "displayName":{ + "shape":"DisplayNameSafe", + "documentation":"

    The display name of the data protection settings.

    " + }, + "inlineRedactionConfiguration":{ + "shape":"InlineRedactionConfiguration", + "documentation":"

    The inline redaction configuration for the data protection settings.

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

    The data protection settings resource that can be associated with a web portal.

    " + }, + "DataProtectionSettingsList":{ + "type":"list", + "member":{"shape":"DataProtectionSettingsSummary"} + }, + "DataProtectionSettingsSummary":{ + "type":"structure", + "required":["dataProtectionSettingsArn"], + "members":{ + "creationDate":{ + "shape":"Timestamp", + "documentation":"

    The creation date timestamp of the data protection settings.

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

    The ARN of the data protection settings.

    " + }, + "description":{ + "shape":"DescriptionSafe", + "documentation":"

    The description of the data protection settings.

    " + }, + "displayName":{ + "shape":"DisplayNameSafe", + "documentation":"

    The display name of the data protection settings.

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

    The summary of the data protection settings.

    " + }, "DeleteBrowserSettingsRequest":{ "type":"structure", "required":["browserSettingsArn"], @@ -2007,6 +2326,23 @@ "members":{ } }, + "DeleteDataProtectionSettingsRequest":{ + "type":"structure", + "required":["dataProtectionSettingsArn"], + "members":{ + "dataProtectionSettingsArn":{ + "shape":"ARN", + "documentation":"

    The ARN of the data protection settings.

    ", + "location":"uri", + "locationName":"dataProtectionSettingsArn" + } + } + }, + "DeleteDataProtectionSettingsResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteIdentityProviderRequest":{ "type":"structure", "required":["identityProviderArn"], @@ -2133,6 +2469,13 @@ "pattern":"^.+$", "sensitive":true }, + "DescriptionSafe":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^[ _\\-\\d\\w]+$", + "sensitive":true + }, "DisassociateBrowserSettingsRequest":{ "type":"structure", "required":["portalArn"], @@ -2150,6 +2493,23 @@ "members":{ } }, + "DisassociateDataProtectionSettingsRequest":{ + "type":"structure", + "required":["portalArn"], + "members":{ + "portalArn":{ + "shape":"ARN", + "documentation":"

    The ARN of the web portal.

    ", + "location":"uri", + "locationName":"portalArn" + } + } + }, + "DisassociateDataProtectionSettingsResponse":{ + "type":"structure", + "members":{ + } + }, "DisassociateIpAccessSettingsRequest":{ "type":"structure", "required":["portalArn"], @@ -2248,6 +2608,13 @@ "pattern":"^.+$", "sensitive":true }, + "DisplayNameSafe":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[ _\\-\\d\\w]+$", + "sensitive":true + }, "EnabledType":{ "type":"string", "enum":[ @@ -2309,6 +2676,27 @@ } } }, + "GetDataProtectionSettingsRequest":{ + "type":"structure", + "required":["dataProtectionSettingsArn"], + "members":{ + "dataProtectionSettingsArn":{ + "shape":"ARN", + "documentation":"

    The ARN of the data protection settings.

    ", + "location":"uri", + "locationName":"dataProtectionSettingsArn" + } + } + }, + "GetDataProtectionSettingsResponse":{ + "type":"structure", + "members":{ + "dataProtectionSettings":{ + "shape":"DataProtectionSettings", + "documentation":"

    The data protection settings.

    " + } + } + }, "GetIdentityProviderRequest":{ "type":"structure", "required":["identityProviderArn"], @@ -2547,6 +2935,12 @@ } } }, + "GlobalInlineRedactionUrls":{ + "type":"list", + "member":{"shape":"InlineRedactionUrl"}, + "max":100, + "min":1 + }, "IdentityProvider":{ "type":"structure", "required":["identityProviderArn"], @@ -2623,6 +3017,77 @@ "max":60, "min":0 }, + "InlineRedactionConfiguration":{ + "type":"structure", + "required":["inlineRedactionPatterns"], + "members":{ + "globalConfidenceLevel":{ + "shape":"ConfidenceLevel", + "documentation":"

    The global confidence level for the inline redaction configuration. This indicates the certainty of data type matches in the redaction process. Confidence level 3 means high confidence, and requires a formatted text pattern match in order for content to be redacted. Confidence level 2 means medium confidence, and redaction considers both formatted and unformatted text, and adds keyword associate to the logic. Confidence level 1 means low confidence, and redaction is enforced for both formatted pattern + unformatted pattern without keyword. This is applied to patterns that do not have a pattern-level confidence level. Defaults to confidence level 2.

    " + }, + "globalEnforcedUrls":{ + "shape":"GlobalInlineRedactionUrls", + "documentation":"

    The global enforced URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level enforced URL list.

    " + }, + "globalExemptUrls":{ + "shape":"GlobalInlineRedactionUrls", + "documentation":"

    The global exempt URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level exempt URL list.

    " + }, + "inlineRedactionPatterns":{ + "shape":"InlineRedactionPatterns", + "documentation":"

    The inline redaction patterns to be enabled for the inline redaction configuration.

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

    The configuration for in-session inline redaction.

    " + }, + "InlineRedactionPattern":{ + "type":"structure", + "required":["redactionPlaceHolder"], + "members":{ + "builtInPatternId":{ + "shape":"BuiltInPatternId", + "documentation":"

    The built-in pattern from the list of preconfigured patterns. Either a customPattern or builtInPatternId is required.

    " + }, + "confidenceLevel":{ + "shape":"ConfidenceLevel", + "documentation":"

    The confidence level for inline redaction pattern. This indicates the certainty of data type matches in the redaction process. Confidence level 3 means high confidence, and requires a formatted text pattern match in order for content to be redacted. Confidence level 2 means medium confidence, and redaction considers both formatted and unformatted text, and adds keyword associate to the logic. Confidence level 1 means low confidence, and redaction is enforced for both formatted pattern + unformatted pattern without keyword. This overrides the global confidence level.

    " + }, + "customPattern":{ + "shape":"CustomPattern", + "documentation":"

    >The configuration for a custom pattern. Either a customPattern or builtInPatternId is required.

    " + }, + "enforcedUrls":{ + "shape":"InlineRedactionUrls", + "documentation":"

    The enforced URL configuration for the inline redaction pattern. This will override the global enforced URL configuration.

    " + }, + "exemptUrls":{ + "shape":"InlineRedactionUrls", + "documentation":"

    The exempt URL configuration for the inline redaction pattern. This will override the global exempt URL configuration for the inline redaction pattern.

    " + }, + "redactionPlaceHolder":{ + "shape":"RedactionPlaceHolder", + "documentation":"

    The redaction placeholder that will replace the redacted text in session for the inline redaction pattern.

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

    The set of patterns that determine the data types redacted in session.

    " + }, + "InlineRedactionPatterns":{ + "type":"list", + "member":{"shape":"InlineRedactionPattern"}, + "max":150, + "min":0 + }, + "InlineRedactionUrl":{ + "type":"string", + "pattern":"^((([a-zA-Z][a-zA-Z0-9+.-]*):\\/\\/(\\*|[\\w%._\\-\\+~#=@]+)?(\\/[^@\\s]*)?(?:\\?([^*\\s]+(?:\\*?)))?)|(\\*|[\\w%._\\-\\+~#=@]+\\.[\\w%._\\-\\+~#=@]+)(?::(\\d{1,5}))?(\\/[^@\\s]*)?(?:\\?([^*\\s]+(?:\\*?)))?|(([a-zA-Z][a-zA-Z0-9+.-]*):(\\/\\/)?\\*))$", + "sensitive":true + }, + "InlineRedactionUrls":{ + "type":"list", + "member":{"shape":"InlineRedactionUrl"}, + "max":20, + "min":1 + }, "InstanceType":{ "type":"string", "enum":[ @@ -2791,6 +3256,36 @@ } } }, + "ListDataProtectionSettingsRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"MaxResults", + "documentation":"

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

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

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

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListDataProtectionSettingsResponse":{ + "type":"structure", + "members":{ + "dataProtectionSettings":{ + "shape":"DataProtectionSettingsList", + "documentation":"

    The data protection settings.

    " + }, + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

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

    " + } + } + }, "ListIdentityProvidersRequest":{ "type":"structure", "required":["portalArn"], @@ -3196,6 +3691,13 @@ "min":1, "pattern":"^\\S+$" }, + "PatternName":{ + "type":"string", + "max":20, + "min":1, + "pattern":"^[_\\-\\d\\w]+$", + "sensitive":true + }, "Portal":{ "type":"structure", "required":["portalArn"], @@ -3224,6 +3726,10 @@ "shape":"keyArn", "documentation":"

    The customer managed key used to encrypt sensitive information in the portal.

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

    The ARN of the data protection settings.

    " + }, "displayName":{ "shape":"DisplayName", "documentation":"

    The name of the web portal.

    " @@ -3323,6 +3829,10 @@ "shape":"Timestamp", "documentation":"

    The creation date of the web portal.

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

    The ARN of the data protection settings.

    " + }, "displayName":{ "shape":"DisplayName", "documentation":"

    The name of the web portal.

    " @@ -3375,6 +3885,39 @@ "documentation":"

    The summary of the portal.

    " }, "QuotaCode":{"type":"string"}, + "RedactionPlaceHolder":{ + "type":"structure", + "required":["redactionPlaceHolderType"], + "members":{ + "redactionPlaceHolderText":{ + "shape":"RedactionPlaceHolderText", + "documentation":"

    The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.

    " + }, + "redactionPlaceHolderType":{ + "shape":"RedactionPlaceHolderType", + "documentation":"

    The redaction placeholder type that will replace the redacted text in session.

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

    The redaction placeholder that will replace the redacted text in session.

    " + }, + "RedactionPlaceHolderText":{ + "type":"string", + "max":20, + "min":1, + "pattern":"^[*_\\-\\d\\w]+$", + "sensitive":true + }, + "RedactionPlaceHolderType":{ + "type":"string", + "enum":["CustomText"] + }, + "Regex":{ + "type":"string", + "max":300, + "min":0, + "pattern":"^\\/((?:[^\\n])+)\\/([gimsuyvd]{0,8})$", + "sensitive":true + }, "RendererType":{ "type":"string", "enum":["AppStream"] @@ -3771,6 +4314,45 @@ } } }, + "UpdateDataProtectionSettingsRequest":{ + "type":"structure", + "required":["dataProtectionSettingsArn"], + "members":{ + "clientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token return the result from the original successful request.

    If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

    ", + "idempotencyToken":true + }, + "dataProtectionSettingsArn":{ + "shape":"ARN", + "documentation":"

    The ARN of the data protection settings.

    ", + "location":"uri", + "locationName":"dataProtectionSettingsArn" + }, + "description":{ + "shape":"DescriptionSafe", + "documentation":"

    The description of the data protection settings.

    " + }, + "displayName":{ + "shape":"DisplayNameSafe", + "documentation":"

    The display name of the data protection settings.

    " + }, + "inlineRedactionConfiguration":{ + "shape":"InlineRedactionConfiguration", + "documentation":"

    The inline redaction configuration of the data protection settings that will be applied to all sessions.

    " + } + } + }, + "UpdateDataProtectionSettingsResponse":{ + "type":"structure", + "required":["dataProtectionSettings"], + "members":{ + "dataProtectionSettings":{ + "shape":"DataProtectionSettings", + "documentation":"

    The data protection settings.

    " + } + } + }, "UpdateIdentityProviderRequest":{ "type":"structure", "required":["identityProviderArn"],