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 The capacity reservation specification. 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
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 Describes the Capacity Reservation preference and targeting options. If you
+ * specify open
or none
for
+ * CapacityReservationPreference
, do not specify a
+ * CapacityReservationTarget
.
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.
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 +#includeThe target for the Capacity Reservation. Specify Capacity Reservations IDs + * or Capacity Reservation resource group ARNs.
The Capacity Reservation IDs to launch instances into.
+ */ + inline const Aws::VectorThe resource group ARNs of the Capacity Reservation to launch instances + * into.
+ */ + inline const Aws::VectorThe CPU performance to consider, using an instance family as the baseline + * reference.
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::VectorThe 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 @@ #includeThe 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::VectorSpecify 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.
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 @@ #includeThe 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. + */ + +#includeThe
- * CLI doesn't support streaming operations in Amazon Bedrock, including
- * InvokeFlow
.
The CLI doesn't support streaming
+ * operations in Amazon Bedrock, including InvokeFlow
.
Optimizes a prompt for the task that you specify. For more information, see + * Optimize + * a prompt in the Amazon + * Bedrock User Guide.
Queries a knowledge base and retrieves information from it.
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.
An event in which the prompt was analyzed in preparation for + * optimization.
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 +#includeContains information about the prompt to optimize.
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 +#includeContains 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 +#includeContains information about the optimized prompt.
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 +#includeAn event in which the prompt was optimized.
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 +#includeThe stream containing events in the prompt optimization + * process.
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 +#includeContains information about the text prompt to optimize.
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 @@ #includeCreates an Anycast static IP list.
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.
Deletes an Anycast static IP list.
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.
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.
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.
Lists your Anycast static IP lists.
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
.
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.
List the distributions that are associated with a specified WAF web * ACL.
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.