diff --git a/VERSION b/VERSION index 5043db24034..4a1624eab0f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.214 \ No newline at end of file +1.11.215 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/ARCZonalShiftClient.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/ARCZonalShiftClient.h index 220d8ec3014..5eecbabbadb 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/ARCZonalShiftClient.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/ARCZonalShiftClient.h @@ -16,27 +16,31 @@ namespace Aws namespace ARCZonalShift { /** - *

This is the API Reference Guide for the zonal shift feature of Amazon Route - * 53 Application Recovery Controller. This guide is for developers who need - * detailed information about zonal shift API actions, data types, and errors.

- *

Zonal shift is in preview release for Amazon Route 53 Application Recovery - * Controller and is subject to change.

Zonal shift in Route 53 ARC enables - * you to move traffic for a load balancer resource away from an Availability Zone. - * Starting a zonal shift helps your application recover immediately, for example, - * from a developer's bad code deployment or from an AWS infrastructure failure in - * a single Availability Zone, reducing the impact and time lost from an issue in - * one zone.

Supported AWS resources are automatically registered with - * Route 53 ARC. Resources that are registered for zonal shifts in Route 53 ARC are - * managed resources in Route 53 ARC. You can start a zonal shift for any managed - * resource in your account in a Region. At this time, you can only start a zonal - * shift for Network Load Balancers and Application Load Balancers with cross-zone - * load balancing turned off.

Zonal shifts are temporary. You must specify - * an expiration when you start a zonal shift, of up to three days initially. If - * you want to still keep traffic away from an Availability Zone, you can update - * the zonal shift and set a new expiration. You can also cancel a zonal shift, - * before it expires, for example, if you're ready to restore traffic to the - * Availability Zone.

For more information about using zonal shift, see the - * Welcome to the Zonal Shift API Reference Guide for Amazon Route 53 + * Application Recovery Controller (Route 53 ARC).

You can start a zonal + * shift to move traffic for a load balancer resource away from an Availability + * Zone to help your application recover quickly from an impairment in an + * Availability Zone. For example, you can recover your application from a + * developer's bad code deployment or from an Amazon Web Services infrastructure + * failure in a single Availability Zone.

You can also configure zonal + * autoshift for a load balancer resource. Zonal autoshift is a capability in Route + * 53 ARC where Amazon Web Services shifts away application resource traffic from + * an Availability Zone, on your behalf, to help reduce your time to recovery + * during events. Amazon Web Services shifts away traffic for resources that are + * enabled for zonal autoshift whenever Amazon Web Services determines that there's + * an issue in the Availability Zone that could potentially affect customers.

+ *

To ensure that zonal autoshift is safe for your application, you must also + * configure practice runs when you enable zonal autoshift for a resource. Practice + * runs start weekly zonal shifts for a resource, to shift traffic for the resource + * out of an Availability Zone. Practice runs make sure, on a regular basis, that + * you have enough capacity in all the Availability Zones in an Amazon Web Services + * Region for your application to continue to operate normally when traffic for a + * resource is shifted away from one Availability Zone.

You must + * prescale resource capacity in all Availability Zones in the Region where your + * application is deployed, before you configure practice runs or enable zonal + * autoshift for a resource. You should not rely on scaling on demand when an + * autoshift or practice run starts.

For more information + * about using zonal shift and zonal autoshift, see the Amazon * Route 53 Application Recovery Controller Developer Guide.

*/ @@ -99,9 +103,11 @@ namespace ARCZonalShift virtual ~ARCZonalShiftClient(); /** - *

Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that - * you've started for a resource in your AWS account in an AWS Region. - *

See Also:

Cancel a zonal shift in Amazon Route 53 Application Recovery Controller. To + * cancel the zonal shift, specify the zonal shift ID.

A zonal shift can be + * one that you've started for a resource in your Amazon Web Services account in an + * Amazon Web Services Region, or it can be a zonal shift started by a practice run + * with zonal autoshift.

See Also:

AWS * API Reference

*/ @@ -125,13 +131,77 @@ namespace ARCZonalShift return SubmitAsync(&ARCZonalShiftClient::CancelZonalShift, request, handler, context); } + /** + *

A practice run configuration for zonal autoshift is required when you enable + * zonal autoshift. A practice run configuration includes specifications for + * blocked dates and blocked time windows, and for Amazon CloudWatch alarms that + * you create to use with practice runs. The alarms that you specify are an + * outcome alarm, to monitor application health during practice runs and, + * optionally, a blocking alarm, to block practice runs from starting.

+ *

For more information, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreatePracticeRunConfigurationOutcome CreatePracticeRunConfiguration(const Model::CreatePracticeRunConfigurationRequest& request) const; + + /** + * A Callable wrapper for CreatePracticeRunConfiguration that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreatePracticeRunConfigurationOutcomeCallable CreatePracticeRunConfigurationCallable(const CreatePracticeRunConfigurationRequestT& request) const + { + return SubmitCallable(&ARCZonalShiftClient::CreatePracticeRunConfiguration, request); + } + + /** + * An Async wrapper for CreatePracticeRunConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreatePracticeRunConfigurationAsync(const CreatePracticeRunConfigurationRequestT& request, const CreatePracticeRunConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ARCZonalShiftClient::CreatePracticeRunConfiguration, request, handler, context); + } + + /** + *

Deletes the practice run configuration for a resource. Before you can delete + * a practice run configuration for a resource., you must disable zonal autoshift + * for the resource. Practice runs must be configured for zonal autoshift to be + * enabled.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeletePracticeRunConfigurationOutcome DeletePracticeRunConfiguration(const Model::DeletePracticeRunConfigurationRequest& request) const; + + /** + * A Callable wrapper for DeletePracticeRunConfiguration that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeletePracticeRunConfigurationOutcomeCallable DeletePracticeRunConfigurationCallable(const DeletePracticeRunConfigurationRequestT& request) const + { + return SubmitCallable(&ARCZonalShiftClient::DeletePracticeRunConfiguration, request); + } + + /** + * An Async wrapper for DeletePracticeRunConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeletePracticeRunConfigurationAsync(const DeletePracticeRunConfigurationRequestT& request, const DeletePracticeRunConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ARCZonalShiftClient::DeletePracticeRunConfiguration, request, handler, context); + } + /** *

Get information about a resource that's been registered for zonal shifts with - * Amazon Route 53 Application Recovery Controller in this AWS Region. Resources - * that are registered for zonal shifts are managed resources in Route 53 ARC.

- *

At this time, you can only start a zonal shift for Network Load Balancers and - * Application Load Balancers with cross-zone load balancing turned - * off.

See Also:

At this time, you can only start a zonal shift or + * configure zonal autoshift for Network Load Balancers and Application Load + * Balancers with cross-zone load balancing turned off.

See Also:

+ *
AWS * API Reference

*/ @@ -156,11 +226,38 @@ namespace ARCZonalShift } /** - *

Lists all the resources in your AWS account in this AWS Region that are - * managed for zonal shifts in Amazon Route 53 Application Recovery Controller, and - * information about them. The information includes their Amazon Resource Names - * (ARNs), the Availability Zones the resources are deployed in, and the resource - * name.

See Also:

Returns the active autoshifts for a specified resource.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListAutoshiftsOutcome ListAutoshifts(const Model::ListAutoshiftsRequest& request) const; + + /** + * A Callable wrapper for ListAutoshifts that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListAutoshiftsOutcomeCallable ListAutoshiftsCallable(const ListAutoshiftsRequestT& request) const + { + return SubmitCallable(&ARCZonalShiftClient::ListAutoshifts, request); + } + + /** + * An Async wrapper for ListAutoshifts that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListAutoshiftsAsync(const ListAutoshiftsRequestT& request, const ListAutoshiftsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ARCZonalShiftClient::ListAutoshifts, request, handler, context); + } + + /** + *

Lists all the resources in your Amazon Web Services account in this Amazon + * Web Services Region that are managed for zonal shifts in Amazon Route 53 + * Application Recovery Controller, and information about them. The information + * includes the zonal autoshift status for the resource, as well as the Amazon + * Resource Name (ARN), the Availability Zones that each resource is deployed in, + * and the resource name.

See Also:

AWS * API Reference

*/ @@ -185,8 +282,14 @@ namespace ARCZonalShift } /** - *

Lists all the active zonal shifts in Amazon Route 53 Application Recovery - * Controller in your AWS account in this AWS Region.

See Also:

Lists all active and completed zonal shifts in Amazon Route 53 Application + * Recovery Controller in your Amazon Web Services account in this Amazon Web + * Services Region. ListZonalShifts returns customer-started zonal + * shifts, as well as practice run zonal shifts that Route 53 ARC started on your + * behalf for zonal autoshift.

The ListZonalShifts operation + * does not list autoshifts. For more information about listing autoshifts, see ">ListAutoshifts.

See + * Also:

AWS * API Reference

*/ @@ -212,18 +315,19 @@ namespace ARCZonalShift /** *

You start a zonal shift to temporarily move load balancer traffic away from - * an Availability Zone in a AWS Region, to help your application recover - * immediately, for example, from a developer's bad code deployment or from an AWS - * infrastructure failure in a single Availability Zone. You can start a zonal - * shift in Route 53 ARC only for managed resources in your account in an AWS - * Region. Resources are automatically registered with Route 53 ARC by AWS - * services.

At this time, you can only start a zonal shift for Network Load - * Balancers and Application Load Balancers with cross-zone load balancing turned - * off.

When you start a zonal shift, traffic for the resource is no longer - * routed to the Availability Zone. The zonal shift is created immediately in Route - * 53 ARC. However, it can take a short time, typically up to a few minutes, for - * existing, in-progress connections in the Availability Zone to complete.

- *

For more information, see + *

At this time, you can only start a zonal shift for Network Load Balancers and + * Application Load Balancers with cross-zone load balancing turned off.

+ *

When you start a zonal shift, traffic for the resource is no longer routed to + * the Availability Zone. The zonal shift is created immediately in Route 53 ARC. + * However, it can take a short time, typically up to a few minutes, for existing, + * in-progress connections in the Availability Zone to complete.

For more + * information, see Zonal * shift in the Amazon Route 53 Application Recovery Controller Developer * Guide.

See Also:

Update an active zonal shift in Amazon Route 53 Application Recovery - * Controller in your AWS account. You can update a zonal shift to set a new - * expiration, or edit or replace the comment for the zonal shift.

See + *

Update a practice run configuration to change one or more of the following: + * add, change, or remove the blocking alarm; change the outcome alarm; or add, + * change, or remove blocking dates or time windows.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdatePracticeRunConfigurationOutcome UpdatePracticeRunConfiguration(const Model::UpdatePracticeRunConfigurationRequest& request) const; + + /** + * A Callable wrapper for UpdatePracticeRunConfiguration that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdatePracticeRunConfigurationOutcomeCallable UpdatePracticeRunConfigurationCallable(const UpdatePracticeRunConfigurationRequestT& request) const + { + return SubmitCallable(&ARCZonalShiftClient::UpdatePracticeRunConfiguration, request); + } + + /** + * An Async wrapper for UpdatePracticeRunConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdatePracticeRunConfigurationAsync(const UpdatePracticeRunConfigurationRequestT& request, const UpdatePracticeRunConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ARCZonalShiftClient::UpdatePracticeRunConfiguration, request, handler, context); + } + + /** + *

You can update the zonal autoshift status for a resource, to enable or + * disable zonal autoshift. When zonal autoshift is ENABLED, Amazon + * Web Services shifts away resource traffic from an Availability Zone, on your + * behalf, when Amazon Web Services determines that there's an issue in the + * Availability Zone that could potentially affect customers.

See * Also:

AWS + * API Reference

+ */ + virtual Model::UpdateZonalAutoshiftConfigurationOutcome UpdateZonalAutoshiftConfiguration(const Model::UpdateZonalAutoshiftConfigurationRequest& request) const; + + /** + * A Callable wrapper for UpdateZonalAutoshiftConfiguration that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateZonalAutoshiftConfigurationOutcomeCallable UpdateZonalAutoshiftConfigurationCallable(const UpdateZonalAutoshiftConfigurationRequestT& request) const + { + return SubmitCallable(&ARCZonalShiftClient::UpdateZonalAutoshiftConfiguration, request); + } + + /** + * An Async wrapper for UpdateZonalAutoshiftConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateZonalAutoshiftConfigurationAsync(const UpdateZonalAutoshiftConfigurationRequestT& request, const UpdateZonalAutoshiftConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ARCZonalShiftClient::UpdateZonalAutoshiftConfiguration, request, handler, context); + } + + /** + *

Update an active zonal shift in Amazon Route 53 Application Recovery + * Controller in your Amazon Web Services account. You can update a zonal shift to + * set a new expiration, or edit or replace the comment for the zonal shift. + *

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/ARCZonalShiftServiceClientModel.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/ARCZonalShiftServiceClientModel.h index f558cdfbc03..35e18caaec7 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/ARCZonalShiftServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/ARCZonalShiftServiceClientModel.h @@ -19,10 +19,15 @@ /* Service model headers required in ARCZonalShiftClient header */ #include +#include +#include #include +#include #include #include #include +#include +#include #include /* End of service model headers required in ARCZonalShiftClient header */ @@ -65,28 +70,43 @@ namespace Aws { /* Service model forward declarations required in ARCZonalShiftClient header */ class CancelZonalShiftRequest; + class CreatePracticeRunConfigurationRequest; + class DeletePracticeRunConfigurationRequest; class GetManagedResourceRequest; + class ListAutoshiftsRequest; class ListManagedResourcesRequest; class ListZonalShiftsRequest; class StartZonalShiftRequest; + class UpdatePracticeRunConfigurationRequest; + class UpdateZonalAutoshiftConfigurationRequest; class UpdateZonalShiftRequest; /* End of service model forward declarations required in ARCZonalShiftClient header */ /* Service model Outcome class definitions */ typedef Aws::Utils::Outcome CancelZonalShiftOutcome; + typedef Aws::Utils::Outcome CreatePracticeRunConfigurationOutcome; + typedef Aws::Utils::Outcome DeletePracticeRunConfigurationOutcome; typedef Aws::Utils::Outcome GetManagedResourceOutcome; + typedef Aws::Utils::Outcome ListAutoshiftsOutcome; typedef Aws::Utils::Outcome ListManagedResourcesOutcome; typedef Aws::Utils::Outcome ListZonalShiftsOutcome; typedef Aws::Utils::Outcome StartZonalShiftOutcome; + typedef Aws::Utils::Outcome UpdatePracticeRunConfigurationOutcome; + typedef Aws::Utils::Outcome UpdateZonalAutoshiftConfigurationOutcome; typedef Aws::Utils::Outcome UpdateZonalShiftOutcome; /* End of service model Outcome class definitions */ /* Service model Outcome callable definitions */ typedef std::future CancelZonalShiftOutcomeCallable; + typedef std::future CreatePracticeRunConfigurationOutcomeCallable; + typedef std::future DeletePracticeRunConfigurationOutcomeCallable; typedef std::future GetManagedResourceOutcomeCallable; + typedef std::future ListAutoshiftsOutcomeCallable; typedef std::future ListManagedResourcesOutcomeCallable; typedef std::future ListZonalShiftsOutcomeCallable; typedef std::future StartZonalShiftOutcomeCallable; + typedef std::future UpdatePracticeRunConfigurationOutcomeCallable; + typedef std::future UpdateZonalAutoshiftConfigurationOutcomeCallable; typedef std::future UpdateZonalShiftOutcomeCallable; /* End of service model Outcome callable definitions */ } // namespace Model @@ -95,10 +115,15 @@ namespace Aws /* Service model async handlers definitions */ typedef std::function&) > CancelZonalShiftResponseReceivedHandler; + typedef std::function&) > CreatePracticeRunConfigurationResponseReceivedHandler; + typedef std::function&) > DeletePracticeRunConfigurationResponseReceivedHandler; typedef std::function&) > GetManagedResourceResponseReceivedHandler; + typedef std::function&) > ListAutoshiftsResponseReceivedHandler; typedef std::function&) > ListManagedResourcesResponseReceivedHandler; typedef std::function&) > ListZonalShiftsResponseReceivedHandler; typedef std::function&) > StartZonalShiftResponseReceivedHandler; + typedef std::function&) > UpdatePracticeRunConfigurationResponseReceivedHandler; + typedef std::function&) > UpdateZonalAutoshiftConfigurationResponseReceivedHandler; typedef std::function&) > UpdateZonalShiftResponseReceivedHandler; /* End of service model async handlers definitions */ } // namespace ARCZonalShift diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftAppliedStatus.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftAppliedStatus.h new file mode 100644 index 00000000000..245e27443b8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftAppliedStatus.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 ARCZonalShift +{ +namespace Model +{ + enum class AutoshiftAppliedStatus + { + NOT_SET, + APPLIED, + NOT_APPLIED + }; + +namespace AutoshiftAppliedStatusMapper +{ +AWS_ARCZONALSHIFT_API AutoshiftAppliedStatus GetAutoshiftAppliedStatusForName(const Aws::String& name); + +AWS_ARCZONALSHIFT_API Aws::String GetNameForAutoshiftAppliedStatus(AutoshiftAppliedStatus value); +} // namespace AutoshiftAppliedStatusMapper +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftExecutionStatus.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftExecutionStatus.h new file mode 100644 index 00000000000..9f57c5892a8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftExecutionStatus.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 ARCZonalShift +{ +namespace Model +{ + enum class AutoshiftExecutionStatus + { + NOT_SET, + ACTIVE, + COMPLETED + }; + +namespace AutoshiftExecutionStatusMapper +{ +AWS_ARCZONALSHIFT_API AutoshiftExecutionStatus GetAutoshiftExecutionStatusForName(const Aws::String& name); + +AWS_ARCZONALSHIFT_API Aws::String GetNameForAutoshiftExecutionStatus(AutoshiftExecutionStatus value); +} // namespace AutoshiftExecutionStatusMapper +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftInResource.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftInResource.h new file mode 100644 index 00000000000..40a428fbe53 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftInResource.h @@ -0,0 +1,287 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + + /** + *

A complex structure that lists an autoshift that is currently active for a + * managed resource and information about the autoshift.

For more + * information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

See Also:

AWS + * API Reference

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

The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

+ *

The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

+ */ + inline const AutoshiftAppliedStatus& GetAppliedStatus() const{ return m_appliedStatus; } + + /** + *

The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

+ *

The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

+ */ + inline bool AppliedStatusHasBeenSet() const { return m_appliedStatusHasBeenSet; } + + /** + *

The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

+ *

The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

+ */ + inline void SetAppliedStatus(const AutoshiftAppliedStatus& value) { m_appliedStatusHasBeenSet = true; m_appliedStatus = value; } + + /** + *

The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

+ *

The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

+ */ + inline void SetAppliedStatus(AutoshiftAppliedStatus&& value) { m_appliedStatusHasBeenSet = true; m_appliedStatus = std::move(value); } + + /** + *

The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

+ *

The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

+ */ + inline AutoshiftInResource& WithAppliedStatus(const AutoshiftAppliedStatus& value) { SetAppliedStatus(value); return *this;} + + /** + *

The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

+ *

The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

+ */ + inline AutoshiftInResource& WithAppliedStatus(AutoshiftAppliedStatus&& value) { SetAppliedStatus(std::move(value)); return *this;} + + + /** + *

The Availability Zone that traffic is shifted away from for a resource, when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline const Aws::String& GetAwayFrom() const{ return m_awayFrom; } + + /** + *

The Availability Zone that traffic is shifted away from for a resource, when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline bool AwayFromHasBeenSet() const { return m_awayFromHasBeenSet; } + + /** + *

The Availability Zone that traffic is shifted away from for a resource, when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline void SetAwayFrom(const Aws::String& value) { m_awayFromHasBeenSet = true; m_awayFrom = value; } + + /** + *

The Availability Zone that traffic is shifted away from for a resource, when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline void SetAwayFrom(Aws::String&& value) { m_awayFromHasBeenSet = true; m_awayFrom = std::move(value); } + + /** + *

The Availability Zone that traffic is shifted away from for a resource, when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline void SetAwayFrom(const char* value) { m_awayFromHasBeenSet = true; m_awayFrom.assign(value); } + + /** + *

The Availability Zone that traffic is shifted away from for a resource, when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline AutoshiftInResource& WithAwayFrom(const Aws::String& value) { SetAwayFrom(value); return *this;} + + /** + *

The Availability Zone that traffic is shifted away from for a resource, when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline AutoshiftInResource& WithAwayFrom(Aws::String&& value) { SetAwayFrom(std::move(value)); return *this;} + + /** + *

The Availability Zone that traffic is shifted away from for a resource, when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline AutoshiftInResource& WithAwayFrom(const char* value) { SetAwayFrom(value); return *this;} + + + /** + *

The time (UTC) when the autoshift started.

+ */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + + /** + *

The time (UTC) when the autoshift started.

+ */ + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + + /** + *

The time (UTC) when the autoshift started.

+ */ + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + + /** + *

The time (UTC) when the autoshift started.

+ */ + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + + /** + *

The time (UTC) when the autoshift started.

+ */ + inline AutoshiftInResource& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + + /** + *

The time (UTC) when the autoshift started.

+ */ + inline AutoshiftInResource& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + + private: + + AutoshiftAppliedStatus m_appliedStatus; + bool m_appliedStatusHasBeenSet = false; + + Aws::String m_awayFrom; + bool m_awayFromHasBeenSet = false; + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftSummary.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftSummary.h new file mode 100644 index 00000000000..2c66bcf4d2c --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/AutoshiftSummary.h @@ -0,0 +1,242 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + + /** + *

Information about an autoshift. Amazon Web Services starts an autoshift to + * temporarily move traffic for a resource away from an Availability Zone in an + * Amazon Web Services Region when Amazon Web Services determines that there's an + * issue in the Availability Zone that could potentially affect customers. You can + * configure zonal autoshift in Route 53 ARC for managed resources in your Amazon + * Web Services account in a Region. Supported Amazon Web Services resources are + * automatically registered with Route 53 ARC.

Autoshifts are temporary. + * When the Availability Zone recovers, Amazon Web Services ends the autoshift, and + * traffic for the resource is no longer directed to the other Availability Zones + * in the Region.

You can stop an autoshift for a resource by disabling + * zonal autoshift.

See Also:

AWS + * API Reference

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

The Availability Zone that traffic is shifted away from for a resource when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline const Aws::String& GetAwayFrom() const{ return m_awayFrom; } + + /** + *

The Availability Zone that traffic is shifted away from for a resource when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline bool AwayFromHasBeenSet() const { return m_awayFromHasBeenSet; } + + /** + *

The Availability Zone that traffic is shifted away from for a resource when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline void SetAwayFrom(const Aws::String& value) { m_awayFromHasBeenSet = true; m_awayFrom = value; } + + /** + *

The Availability Zone that traffic is shifted away from for a resource when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline void SetAwayFrom(Aws::String&& value) { m_awayFromHasBeenSet = true; m_awayFrom = std::move(value); } + + /** + *

The Availability Zone that traffic is shifted away from for a resource when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline void SetAwayFrom(const char* value) { m_awayFromHasBeenSet = true; m_awayFrom.assign(value); } + + /** + *

The Availability Zone that traffic is shifted away from for a resource when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline AutoshiftSummary& WithAwayFrom(const Aws::String& value) { SetAwayFrom(value); return *this;} + + /** + *

The Availability Zone that traffic is shifted away from for a resource when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline AutoshiftSummary& WithAwayFrom(Aws::String&& value) { SetAwayFrom(std::move(value)); return *this;} + + /** + *

The Availability Zone that traffic is shifted away from for a resource when + * Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + * the resource is instead directed to other Availability Zones in the Amazon Web + * Services Region. An autoshift can end for a resource, for example, when Amazon + * Web Services ends the autoshift for the Availability Zone or when you disable + * zonal autoshift for the resource.

+ */ + inline AutoshiftSummary& WithAwayFrom(const char* value) { SetAwayFrom(value); return *this;} + + + /** + *

The time (in UTC) when the autoshift ended.

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + + /** + *

The time (in UTC) when the autoshift ended.

+ */ + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + + /** + *

The time (in UTC) when the autoshift ended.

+ */ + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + + /** + *

The time (in UTC) when the autoshift ended.

+ */ + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + + /** + *

The time (in UTC) when the autoshift ended.

+ */ + inline AutoshiftSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + + /** + *

The time (in UTC) when the autoshift ended.

+ */ + inline AutoshiftSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + + + /** + *

The time (in UTC) when the autoshift started.

+ */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + + /** + *

The time (in UTC) when the autoshift started.

+ */ + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + + /** + *

The time (in UTC) when the autoshift started.

+ */ + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + + /** + *

The time (in UTC) when the autoshift started.

+ */ + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + + /** + *

The time (in UTC) when the autoshift started.

+ */ + inline AutoshiftSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + + /** + *

The time (in UTC) when the autoshift started.

+ */ + inline AutoshiftSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + + + /** + *

The status for an autoshift.

+ */ + inline const AutoshiftExecutionStatus& GetStatus() const{ return m_status; } + + /** + *

The status for an autoshift.

+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

The status for an autoshift.

+ */ + inline void SetStatus(const AutoshiftExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

The status for an autoshift.

+ */ + inline void SetStatus(AutoshiftExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

The status for an autoshift.

+ */ + inline AutoshiftSummary& WithStatus(const AutoshiftExecutionStatus& value) { SetStatus(value); return *this;} + + /** + *

The status for an autoshift.

+ */ + inline AutoshiftSummary& WithStatus(AutoshiftExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} + + private: + + Aws::String m_awayFrom; + bool m_awayFromHasBeenSet = false; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet = false; + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet = false; + + AutoshiftExecutionStatus m_status; + bool m_statusHasBeenSet = false; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CancelZonalShiftResult.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CancelZonalShiftResult.h index 27e088a6c10..166de199cc5 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CancelZonalShiftResult.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CancelZonalShiftResult.h @@ -37,49 +37,56 @@ namespace Model /** *

The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

+ * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

*/ inline const Aws::String& GetAwayFrom() const{ return m_awayFrom; } /** *

The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

+ * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

*/ inline void SetAwayFrom(const Aws::String& value) { m_awayFrom = value; } /** *

The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

+ * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

*/ inline void SetAwayFrom(Aws::String&& value) { m_awayFrom = std::move(value); } /** *

The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

+ * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

*/ inline void SetAwayFrom(const char* value) { m_awayFrom.assign(value); } /** *

The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

+ * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

*/ inline CancelZonalShiftResult& WithAwayFrom(const Aws::String& value) { SetAwayFrom(value); return *this;} /** *

The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

+ * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

*/ inline CancelZonalShiftResult& WithAwayFrom(Aws::String&& value) { SetAwayFrom(std::move(value)); return *this;} /** *

The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

+ * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

*/ inline CancelZonalShiftResult& WithAwayFrom(const char* value) { SetAwayFrom(value); return *this;} @@ -135,150 +142,150 @@ namespace Model /** - *

The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

*

When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

+ * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

*/ inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; } /** - *

The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

*

When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

+ * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

*/ inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTime = value; } /** - *

The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

*

When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

+ * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

*/ inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTime = std::move(value); } /** - *

The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

*

When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

+ * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

*/ inline CancelZonalShiftResult& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;} /** - *

The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

*

When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

+ * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

*/ inline CancelZonalShiftResult& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;} /** - *

The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

+ *

The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

*/ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** - *

The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

+ *

The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

*/ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifier = value; } /** - *

The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

+ *

The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

*/ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifier = std::move(value); } /** - *

The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

+ *

The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

*/ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifier.assign(value); } /** - *

The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

+ *

The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

*/ inline CancelZonalShiftResult& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** - *

The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

+ *

The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

*/ inline CancelZonalShiftResult& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** - *

The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

+ *

The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

*/ inline CancelZonalShiftResult& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} /** - *

The time (UTC) when the zonal shift is started.

+ *

The time (UTC) when the zonal shift starts.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** - *

The time (UTC) when the zonal shift is started.

+ *

The time (UTC) when the zonal shift starts.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** - *

The time (UTC) when the zonal shift is started.

+ *

The time (UTC) when the zonal shift starts.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** - *

The time (UTC) when the zonal shift is started.

+ *

The time (UTC) when the zonal shift starts.

*/ inline CancelZonalShiftResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** - *

The time (UTC) when the zonal shift is started.

+ *

The time (UTC) when the zonal shift starts.

*/ inline CancelZonalShiftResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} @@ -286,45 +293,45 @@ namespace Model /** *

A status for a zonal shift.

The Status for a zonal shift * can have one of the following values:

  • ACTIVE: The zonal - * shift is started and active.

  • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

  • CANCELED: - * The zonal shift was canceled.

+ * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline const ZonalShiftStatus& GetStatus() const{ return m_status; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(const ZonalShiftStatus& value) { m_status = value; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(ZonalShiftStatus&& value) { m_status = std::move(value); } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline CancelZonalShiftResult& WithStatus(const ZonalShiftStatus& value) { SetStatus(value); return *this;} /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline CancelZonalShiftResult& WithStatus(ZonalShiftStatus&& value) { SetStatus(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ConflictExceptionReason.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ConflictExceptionReason.h index 6d119a82cd6..f2a09a91f87 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ConflictExceptionReason.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ConflictExceptionReason.h @@ -18,7 +18,10 @@ namespace Model NOT_SET, ZonalShiftAlreadyExists, ZonalShiftStatusNotActive, - SimultaneousZonalShiftsConflict + SimultaneousZonalShiftsConflict, + PracticeConfigurationAlreadyExists, + AutoShiftEnabled, + PracticeConfigurationDoesNotExist }; namespace ConflictExceptionReasonMapper diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ControlCondition.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ControlCondition.h new file mode 100644 index 00000000000..0cccbe9c3d9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ControlCondition.h @@ -0,0 +1,146 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + + /** + *

    A control condition is an alarm that you specify for a practice run. When you + * configure practice runs with zonal autoshift for a resource, you specify Amazon + * CloudWatch alarms, which you create in CloudWatch to use with the practice run. + * The alarms that you specify are an outcome alarm, to monitor application + * health during practice runs and, optionally, a blocking alarm, to block + * practice runs from starting.

    Control condition alarms do not apply for + * autoshifts.

    For more information, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    See Also:

    AWS + * API Reference

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

    The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you + * specify as a control condition for a practice run.

    + */ + inline const Aws::String& GetAlarmIdentifier() const{ return m_alarmIdentifier; } + + /** + *

    The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you + * specify as a control condition for a practice run.

    + */ + inline bool AlarmIdentifierHasBeenSet() const { return m_alarmIdentifierHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you + * specify as a control condition for a practice run.

    + */ + inline void SetAlarmIdentifier(const Aws::String& value) { m_alarmIdentifierHasBeenSet = true; m_alarmIdentifier = value; } + + /** + *

    The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you + * specify as a control condition for a practice run.

    + */ + inline void SetAlarmIdentifier(Aws::String&& value) { m_alarmIdentifierHasBeenSet = true; m_alarmIdentifier = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you + * specify as a control condition for a practice run.

    + */ + inline void SetAlarmIdentifier(const char* value) { m_alarmIdentifierHasBeenSet = true; m_alarmIdentifier.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you + * specify as a control condition for a practice run.

    + */ + inline ControlCondition& WithAlarmIdentifier(const Aws::String& value) { SetAlarmIdentifier(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you + * specify as a control condition for a practice run.

    + */ + inline ControlCondition& WithAlarmIdentifier(Aws::String&& value) { SetAlarmIdentifier(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you + * specify as a control condition for a practice run.

    + */ + inline ControlCondition& WithAlarmIdentifier(const char* value) { SetAlarmIdentifier(value); return *this;} + + + /** + *

    The type of alarm specified for a practice run. The only valid value is + * CLOUDWATCH.

    + */ + inline const ControlConditionType& GetType() const{ return m_type; } + + /** + *

    The type of alarm specified for a practice run. The only valid value is + * CLOUDWATCH.

    + */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

    The type of alarm specified for a practice run. The only valid value is + * CLOUDWATCH.

    + */ + inline void SetType(const ControlConditionType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

    The type of alarm specified for a practice run. The only valid value is + * CLOUDWATCH.

    + */ + inline void SetType(ControlConditionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

    The type of alarm specified for a practice run. The only valid value is + * CLOUDWATCH.

    + */ + inline ControlCondition& WithType(const ControlConditionType& value) { SetType(value); return *this;} + + /** + *

    The type of alarm specified for a practice run. The only valid value is + * CLOUDWATCH.

    + */ + inline ControlCondition& WithType(ControlConditionType&& value) { SetType(std::move(value)); return *this;} + + private: + + Aws::String m_alarmIdentifier; + bool m_alarmIdentifierHasBeenSet = false; + + ControlConditionType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ControlConditionType.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ControlConditionType.h new file mode 100644 index 00000000000..35da9ce4ddd --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ControlConditionType.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 ARCZonalShift +{ +namespace Model +{ + enum class ControlConditionType + { + NOT_SET, + CLOUDWATCH + }; + +namespace ControlConditionTypeMapper +{ +AWS_ARCZONALSHIFT_API ControlConditionType GetControlConditionTypeForName(const Aws::String& name); + +AWS_ARCZONALSHIFT_API Aws::String GetNameForControlConditionType(ControlConditionType value); +} // namespace ControlConditionTypeMapper +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CreatePracticeRunConfigurationRequest.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CreatePracticeRunConfigurationRequest.h new file mode 100644 index 00000000000..0426959aee9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CreatePracticeRunConfigurationRequest.h @@ -0,0 +1,501 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + + /** + */ + class CreatePracticeRunConfigurationRequest : public ARCZonalShiftRequest + { + public: + AWS_ARCZONALSHIFT_API CreatePracticeRunConfigurationRequest(); + + // 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 "CreatePracticeRunConfiguration"; } + + AWS_ARCZONALSHIFT_API Aws::String SerializePayload() const override; + + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for a + * resource on specific calendar dates.

    The format for blocked dates is: + * YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + * practice runs are in UTC. Separate multiple blocked dates with spaces.

    + *

    For example, if you have an application update scheduled to launch on May 1, + * 2024, and you don't want practice runs to shift traffic away at that time, you + * could set a blocked date for 2024-05-01.

    + */ + inline const Aws::Vector& GetBlockedDates() const{ return m_blockedDates; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for a + * resource on specific calendar dates.

    The format for blocked dates is: + * YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + * practice runs are in UTC. Separate multiple blocked dates with spaces.

    + *

    For example, if you have an application update scheduled to launch on May 1, + * 2024, and you don't want practice runs to shift traffic away at that time, you + * could set a blocked date for 2024-05-01.

    + */ + inline bool BlockedDatesHasBeenSet() const { return m_blockedDatesHasBeenSet; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for a + * resource on specific calendar dates.

    The format for blocked dates is: + * YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + * practice runs are in UTC. Separate multiple blocked dates with spaces.

    + *

    For example, if you have an application update scheduled to launch on May 1, + * 2024, and you don't want practice runs to shift traffic away at that time, you + * could set a blocked date for 2024-05-01.

    + */ + inline void SetBlockedDates(const Aws::Vector& value) { m_blockedDatesHasBeenSet = true; m_blockedDates = value; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for a + * resource on specific calendar dates.

    The format for blocked dates is: + * YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + * practice runs are in UTC. Separate multiple blocked dates with spaces.

    + *

    For example, if you have an application update scheduled to launch on May 1, + * 2024, and you don't want practice runs to shift traffic away at that time, you + * could set a blocked date for 2024-05-01.

    + */ + inline void SetBlockedDates(Aws::Vector&& value) { m_blockedDatesHasBeenSet = true; m_blockedDates = std::move(value); } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for a + * resource on specific calendar dates.

    The format for blocked dates is: + * YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + * practice runs are in UTC. Separate multiple blocked dates with spaces.

    + *

    For example, if you have an application update scheduled to launch on May 1, + * 2024, and you don't want practice runs to shift traffic away at that time, you + * could set a blocked date for 2024-05-01.

    + */ + inline CreatePracticeRunConfigurationRequest& WithBlockedDates(const Aws::Vector& value) { SetBlockedDates(value); return *this;} + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for a + * resource on specific calendar dates.

    The format for blocked dates is: + * YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + * practice runs are in UTC. Separate multiple blocked dates with spaces.

    + *

    For example, if you have an application update scheduled to launch on May 1, + * 2024, and you don't want practice runs to shift traffic away at that time, you + * could set a blocked date for 2024-05-01.

    + */ + inline CreatePracticeRunConfigurationRequest& WithBlockedDates(Aws::Vector&& value) { SetBlockedDates(std::move(value)); return *this;} + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for a + * resource on specific calendar dates.

    The format for blocked dates is: + * YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + * practice runs are in UTC. Separate multiple blocked dates with spaces.

    + *

    For example, if you have an application update scheduled to launch on May 1, + * 2024, and you don't want practice runs to shift traffic away at that time, you + * could set a blocked date for 2024-05-01.

    + */ + inline CreatePracticeRunConfigurationRequest& AddBlockedDates(const Aws::String& value) { m_blockedDatesHasBeenSet = true; m_blockedDates.push_back(value); return *this; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for a + * resource on specific calendar dates.

    The format for blocked dates is: + * YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + * practice runs are in UTC. Separate multiple blocked dates with spaces.

    + *

    For example, if you have an application update scheduled to launch on May 1, + * 2024, and you don't want practice runs to shift traffic away at that time, you + * could set a blocked date for 2024-05-01.

    + */ + inline CreatePracticeRunConfigurationRequest& AddBlockedDates(Aws::String&& value) { m_blockedDatesHasBeenSet = true; m_blockedDates.push_back(std::move(value)); return *this; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for a + * resource on specific calendar dates.

    The format for blocked dates is: + * YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + * practice runs are in UTC. Separate multiple blocked dates with spaces.

    + *

    For example, if you have an application update scheduled to launch on May 1, + * 2024, and you don't want practice runs to shift traffic away at that time, you + * could set a blocked date for 2024-05-01.

    + */ + inline CreatePracticeRunConfigurationRequest& AddBlockedDates(const char* value) { m_blockedDatesHasBeenSet = true; m_blockedDates.push_back(value); return *this; } + + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for + * specific windows of days and times.

    The format for blocked windows is: + * DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + * for practice runs are in UTC. Also, be aware of potential time adjustments that + * might be required for daylight saving time differences. Separate multiple + * blocked windows with spaces.

    For example, say you run business report + * summaries three days a week. For this scenario, you might set the following + * recurring days and times as blocked windows, for example: MON-20:30-21:30 + * WED-20:30-21:30 FRI-20:30-21:30.

    + */ + inline const Aws::Vector& GetBlockedWindows() const{ return m_blockedWindows; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for + * specific windows of days and times.

    The format for blocked windows is: + * DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + * for practice runs are in UTC. Also, be aware of potential time adjustments that + * might be required for daylight saving time differences. Separate multiple + * blocked windows with spaces.

    For example, say you run business report + * summaries three days a week. For this scenario, you might set the following + * recurring days and times as blocked windows, for example: MON-20:30-21:30 + * WED-20:30-21:30 FRI-20:30-21:30.

    + */ + inline bool BlockedWindowsHasBeenSet() const { return m_blockedWindowsHasBeenSet; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for + * specific windows of days and times.

    The format for blocked windows is: + * DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + * for practice runs are in UTC. Also, be aware of potential time adjustments that + * might be required for daylight saving time differences. Separate multiple + * blocked windows with spaces.

    For example, say you run business report + * summaries three days a week. For this scenario, you might set the following + * recurring days and times as blocked windows, for example: MON-20:30-21:30 + * WED-20:30-21:30 FRI-20:30-21:30.

    + */ + inline void SetBlockedWindows(const Aws::Vector& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows = value; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for + * specific windows of days and times.

    The format for blocked windows is: + * DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + * for practice runs are in UTC. Also, be aware of potential time adjustments that + * might be required for daylight saving time differences. Separate multiple + * blocked windows with spaces.

    For example, say you run business report + * summaries three days a week. For this scenario, you might set the following + * recurring days and times as blocked windows, for example: MON-20:30-21:30 + * WED-20:30-21:30 FRI-20:30-21:30.

    + */ + inline void SetBlockedWindows(Aws::Vector&& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows = std::move(value); } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for + * specific windows of days and times.

    The format for blocked windows is: + * DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + * for practice runs are in UTC. Also, be aware of potential time adjustments that + * might be required for daylight saving time differences. Separate multiple + * blocked windows with spaces.

    For example, say you run business report + * summaries three days a week. For this scenario, you might set the following + * recurring days and times as blocked windows, for example: MON-20:30-21:30 + * WED-20:30-21:30 FRI-20:30-21:30.

    + */ + inline CreatePracticeRunConfigurationRequest& WithBlockedWindows(const Aws::Vector& value) { SetBlockedWindows(value); return *this;} + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for + * specific windows of days and times.

    The format for blocked windows is: + * DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + * for practice runs are in UTC. Also, be aware of potential time adjustments that + * might be required for daylight saving time differences. Separate multiple + * blocked windows with spaces.

    For example, say you run business report + * summaries three days a week. For this scenario, you might set the following + * recurring days and times as blocked windows, for example: MON-20:30-21:30 + * WED-20:30-21:30 FRI-20:30-21:30.

    + */ + inline CreatePracticeRunConfigurationRequest& WithBlockedWindows(Aws::Vector&& value) { SetBlockedWindows(std::move(value)); return *this;} + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for + * specific windows of days and times.

    The format for blocked windows is: + * DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + * for practice runs are in UTC. Also, be aware of potential time adjustments that + * might be required for daylight saving time differences. Separate multiple + * blocked windows with spaces.

    For example, say you run business report + * summaries three days a week. For this scenario, you might set the following + * recurring days and times as blocked windows, for example: MON-20:30-21:30 + * WED-20:30-21:30 FRI-20:30-21:30.

    + */ + inline CreatePracticeRunConfigurationRequest& AddBlockedWindows(const Aws::String& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.push_back(value); return *this; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for + * specific windows of days and times.

    The format for blocked windows is: + * DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + * for practice runs are in UTC. Also, be aware of potential time adjustments that + * might be required for daylight saving time differences. Separate multiple + * blocked windows with spaces.

    For example, say you run business report + * summaries three days a week. For this scenario, you might set the following + * recurring days and times as blocked windows, for example: MON-20:30-21:30 + * WED-20:30-21:30 FRI-20:30-21:30.

    + */ + inline CreatePracticeRunConfigurationRequest& AddBlockedWindows(Aws::String&& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.push_back(std::move(value)); return *this; } + + /** + *

    Optionally, you can block Route 53 ARC from starting practice runs for + * specific windows of days and times.

    The format for blocked windows is: + * DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + * for practice runs are in UTC. Also, be aware of potential time adjustments that + * might be required for daylight saving time differences. Separate multiple + * blocked windows with spaces.

    For example, say you run business report + * summaries three days a week. For this scenario, you might set the following + * recurring days and times as blocked windows, for example: MON-20:30-21:30 + * WED-20:30-21:30 FRI-20:30-21:30.

    + */ + inline CreatePracticeRunConfigurationRequest& AddBlockedWindows(const char* value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.push_back(value); return *this; } + + + /** + *

    An Amazon CloudWatch alarm that you can specify for zonal autoshift practice + * runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, + * and ends a practice run that's in progress, when the alarm is in an + * ALARM state.

    + */ + inline const Aws::Vector& GetBlockingAlarms() const{ return m_blockingAlarms; } + + /** + *

    An Amazon CloudWatch alarm that you can specify for zonal autoshift practice + * runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, + * and ends a practice run that's in progress, when the alarm is in an + * ALARM state.

    + */ + inline bool BlockingAlarmsHasBeenSet() const { return m_blockingAlarmsHasBeenSet; } + + /** + *

    An Amazon CloudWatch alarm that you can specify for zonal autoshift practice + * runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, + * and ends a practice run that's in progress, when the alarm is in an + * ALARM state.

    + */ + inline void SetBlockingAlarms(const Aws::Vector& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms = value; } + + /** + *

    An Amazon CloudWatch alarm that you can specify for zonal autoshift practice + * runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, + * and ends a practice run that's in progress, when the alarm is in an + * ALARM state.

    + */ + inline void SetBlockingAlarms(Aws::Vector&& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms = std::move(value); } + + /** + *

    An Amazon CloudWatch alarm that you can specify for zonal autoshift practice + * runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, + * and ends a practice run that's in progress, when the alarm is in an + * ALARM state.

    + */ + inline CreatePracticeRunConfigurationRequest& WithBlockingAlarms(const Aws::Vector& value) { SetBlockingAlarms(value); return *this;} + + /** + *

    An Amazon CloudWatch alarm that you can specify for zonal autoshift practice + * runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, + * and ends a practice run that's in progress, when the alarm is in an + * ALARM state.

    + */ + inline CreatePracticeRunConfigurationRequest& WithBlockingAlarms(Aws::Vector&& value) { SetBlockingAlarms(std::move(value)); return *this;} + + /** + *

    An Amazon CloudWatch alarm that you can specify for zonal autoshift practice + * runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, + * and ends a practice run that's in progress, when the alarm is in an + * ALARM state.

    + */ + inline CreatePracticeRunConfigurationRequest& AddBlockingAlarms(const ControlCondition& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms.push_back(value); return *this; } + + /** + *

    An Amazon CloudWatch alarm that you can specify for zonal autoshift practice + * runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, + * and ends a practice run that's in progress, when the alarm is in an + * ALARM state.

    + */ + inline CreatePracticeRunConfigurationRequest& AddBlockingAlarms(ControlCondition&& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms.push_back(std::move(value)); return *this; } + + + /** + *

    The outcome alarm for practice runs is a required Amazon CloudWatch + * alarm that you specify that ends a practice run when the alarm is in an + * ALARM state.

    Configure the alarm to monitor the health of + * your application when traffic is shifted away from an Availability Zone during + * each weekly practice run. You should configure the alarm to go into an + * ALARM state if your application is impacted by the zonal shift, and + * you want to stop the zonal shift, to let traffic for the resource return to the + * Availability Zone.

    + */ + inline const Aws::Vector& GetOutcomeAlarms() const{ return m_outcomeAlarms; } + + /** + *

    The outcome alarm for practice runs is a required Amazon CloudWatch + * alarm that you specify that ends a practice run when the alarm is in an + * ALARM state.

    Configure the alarm to monitor the health of + * your application when traffic is shifted away from an Availability Zone during + * each weekly practice run. You should configure the alarm to go into an + * ALARM state if your application is impacted by the zonal shift, and + * you want to stop the zonal shift, to let traffic for the resource return to the + * Availability Zone.

    + */ + inline bool OutcomeAlarmsHasBeenSet() const { return m_outcomeAlarmsHasBeenSet; } + + /** + *

    The outcome alarm for practice runs is a required Amazon CloudWatch + * alarm that you specify that ends a practice run when the alarm is in an + * ALARM state.

    Configure the alarm to monitor the health of + * your application when traffic is shifted away from an Availability Zone during + * each weekly practice run. You should configure the alarm to go into an + * ALARM state if your application is impacted by the zonal shift, and + * you want to stop the zonal shift, to let traffic for the resource return to the + * Availability Zone.

    + */ + inline void SetOutcomeAlarms(const Aws::Vector& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms = value; } + + /** + *

    The outcome alarm for practice runs is a required Amazon CloudWatch + * alarm that you specify that ends a practice run when the alarm is in an + * ALARM state.

    Configure the alarm to monitor the health of + * your application when traffic is shifted away from an Availability Zone during + * each weekly practice run. You should configure the alarm to go into an + * ALARM state if your application is impacted by the zonal shift, and + * you want to stop the zonal shift, to let traffic for the resource return to the + * Availability Zone.

    + */ + inline void SetOutcomeAlarms(Aws::Vector&& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms = std::move(value); } + + /** + *

    The outcome alarm for practice runs is a required Amazon CloudWatch + * alarm that you specify that ends a practice run when the alarm is in an + * ALARM state.

    Configure the alarm to monitor the health of + * your application when traffic is shifted away from an Availability Zone during + * each weekly practice run. You should configure the alarm to go into an + * ALARM state if your application is impacted by the zonal shift, and + * you want to stop the zonal shift, to let traffic for the resource return to the + * Availability Zone.

    + */ + inline CreatePracticeRunConfigurationRequest& WithOutcomeAlarms(const Aws::Vector& value) { SetOutcomeAlarms(value); return *this;} + + /** + *

    The outcome alarm for practice runs is a required Amazon CloudWatch + * alarm that you specify that ends a practice run when the alarm is in an + * ALARM state.

    Configure the alarm to monitor the health of + * your application when traffic is shifted away from an Availability Zone during + * each weekly practice run. You should configure the alarm to go into an + * ALARM state if your application is impacted by the zonal shift, and + * you want to stop the zonal shift, to let traffic for the resource return to the + * Availability Zone.

    + */ + inline CreatePracticeRunConfigurationRequest& WithOutcomeAlarms(Aws::Vector&& value) { SetOutcomeAlarms(std::move(value)); return *this;} + + /** + *

    The outcome alarm for practice runs is a required Amazon CloudWatch + * alarm that you specify that ends a practice run when the alarm is in an + * ALARM state.

    Configure the alarm to monitor the health of + * your application when traffic is shifted away from an Availability Zone during + * each weekly practice run. You should configure the alarm to go into an + * ALARM state if your application is impacted by the zonal shift, and + * you want to stop the zonal shift, to let traffic for the resource return to the + * Availability Zone.

    + */ + inline CreatePracticeRunConfigurationRequest& AddOutcomeAlarms(const ControlCondition& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms.push_back(value); return *this; } + + /** + *

    The outcome alarm for practice runs is a required Amazon CloudWatch + * alarm that you specify that ends a practice run when the alarm is in an + * ALARM state.

    Configure the alarm to monitor the health of + * your application when traffic is shifted away from an Availability Zone during + * each weekly practice run. You should configure the alarm to go into an + * ALARM state if your application is impacted by the zonal shift, and + * you want to stop the zonal shift, to let traffic for the resource return to the + * Availability Zone.

    + */ + inline CreatePracticeRunConfigurationRequest& AddOutcomeAlarms(ControlCondition&& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms.push_back(std::move(value)); return *this; } + + + /** + *

    The identifier of the resource to shift away traffic for when a practice run + * starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    At this time, supported resources are Network Load Balancers + * and Application Load Balancers with cross-zone load balancing turned off.

    + */ + inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } + + /** + *

    The identifier of the resource to shift away traffic for when a practice run + * starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    At this time, supported resources are Network Load Balancers + * and Application Load Balancers with cross-zone load balancing turned off.

    + */ + inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } + + /** + *

    The identifier of the resource to shift away traffic for when a practice run + * starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    At this time, supported resources are Network Load Balancers + * and Application Load Balancers with cross-zone load balancing turned off.

    + */ + inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } + + /** + *

    The identifier of the resource to shift away traffic for when a practice run + * starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    At this time, supported resources are Network Load Balancers + * and Application Load Balancers with cross-zone load balancing turned off.

    + */ + inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } + + /** + *

    The identifier of the resource to shift away traffic for when a practice run + * starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    At this time, supported resources are Network Load Balancers + * and Application Load Balancers with cross-zone load balancing turned off.

    + */ + inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } + + /** + *

    The identifier of the resource to shift away traffic for when a practice run + * starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    At this time, supported resources are Network Load Balancers + * and Application Load Balancers with cross-zone load balancing turned off.

    + */ + inline CreatePracticeRunConfigurationRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} + + /** + *

    The identifier of the resource to shift away traffic for when a practice run + * starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    At this time, supported resources are Network Load Balancers + * and Application Load Balancers with cross-zone load balancing turned off.

    + */ + inline CreatePracticeRunConfigurationRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} + + /** + *

    The identifier of the resource to shift away traffic for when a practice run + * starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    At this time, supported resources are Network Load Balancers + * and Application Load Balancers with cross-zone load balancing turned off.

    + */ + inline CreatePracticeRunConfigurationRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} + + private: + + Aws::Vector m_blockedDates; + bool m_blockedDatesHasBeenSet = false; + + Aws::Vector m_blockedWindows; + bool m_blockedWindowsHasBeenSet = false; + + Aws::Vector m_blockingAlarms; + bool m_blockingAlarmsHasBeenSet = false; + + Aws::Vector m_outcomeAlarms; + bool m_outcomeAlarmsHasBeenSet = false; + + Aws::String m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CreatePracticeRunConfigurationResult.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CreatePracticeRunConfigurationResult.h new file mode 100644 index 00000000000..3ccb2ca86a0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CreatePracticeRunConfigurationResult.h @@ -0,0 +1,244 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + class CreatePracticeRunConfigurationResult + { + public: + AWS_ARCZONALSHIFT_API CreatePracticeRunConfigurationResult(); + AWS_ARCZONALSHIFT_API CreatePracticeRunConfigurationResult(const Aws::AmazonWebServiceResult& result); + AWS_ARCZONALSHIFT_API CreatePracticeRunConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The Amazon Resource Name (ARN) of the resource that you configured the + * practice run for.

    + */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you configured the + * practice run for.

    + */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you configured the + * practice run for.

    + */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you configured the + * practice run for.

    + */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you configured the + * practice run for.

    + */ + inline CreatePracticeRunConfigurationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you configured the + * practice run for.

    + */ + inline CreatePracticeRunConfigurationResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you configured the + * practice run for.

    + */ + inline CreatePracticeRunConfigurationResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

    The name of the resource that you configured the practice run for.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

    The name of the resource that you configured the practice run for.

    + */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

    The name of the resource that you configured the practice run for.

    + */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

    The name of the resource that you configured the practice run for.

    + */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

    The name of the resource that you configured the practice run for.

    + */ + inline CreatePracticeRunConfigurationResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

    The name of the resource that you configured the practice run for.

    + */ + inline CreatePracticeRunConfigurationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

    The name of the resource that you configured the practice run for.

    + */ + inline CreatePracticeRunConfigurationResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

    A practice run configuration for a resource. Configurations include the + * outcome alarm that you specify for practice runs, and, optionally, a blocking + * alarm and blocking dates and windows.

    + */ + inline const PracticeRunConfiguration& GetPracticeRunConfiguration() const{ return m_practiceRunConfiguration; } + + /** + *

    A practice run configuration for a resource. Configurations include the + * outcome alarm that you specify for practice runs, and, optionally, a blocking + * alarm and blocking dates and windows.

    + */ + inline void SetPracticeRunConfiguration(const PracticeRunConfiguration& value) { m_practiceRunConfiguration = value; } + + /** + *

    A practice run configuration for a resource. Configurations include the + * outcome alarm that you specify for practice runs, and, optionally, a blocking + * alarm and blocking dates and windows.

    + */ + inline void SetPracticeRunConfiguration(PracticeRunConfiguration&& value) { m_practiceRunConfiguration = std::move(value); } + + /** + *

    A practice run configuration for a resource. Configurations include the + * outcome alarm that you specify for practice runs, and, optionally, a blocking + * alarm and blocking dates and windows.

    + */ + inline CreatePracticeRunConfigurationResult& WithPracticeRunConfiguration(const PracticeRunConfiguration& value) { SetPracticeRunConfiguration(value); return *this;} + + /** + *

    A practice run configuration for a resource. Configurations include the + * outcome alarm that you specify for practice runs, and, optionally, a blocking + * alarm and blocking dates and windows.

    + */ + inline CreatePracticeRunConfigurationResult& WithPracticeRunConfiguration(PracticeRunConfiguration&& value) { SetPracticeRunConfiguration(std::move(value)); return *this;} + + + /** + *

    The status for zonal autoshift for a resource. When you specify the autoshift + * status as ENABLED, Amazon Web Services shifts traffic away from + * shifts away application resource traffic from an Availability Zone, on your + * behalf, when Amazon Web Services determines that there's an issue in the + * Availability Zone that could potentially affect customers.

    When you + * enable zonal autoshift, you must also configure practice runs for the + * resource.

    + */ + inline const ZonalAutoshiftStatus& GetZonalAutoshiftStatus() const{ return m_zonalAutoshiftStatus; } + + /** + *

    The status for zonal autoshift for a resource. When you specify the autoshift + * status as ENABLED, Amazon Web Services shifts traffic away from + * shifts away application resource traffic from an Availability Zone, on your + * behalf, when Amazon Web Services determines that there's an issue in the + * Availability Zone that could potentially affect customers.

    When you + * enable zonal autoshift, you must also configure practice runs for the + * resource.

    + */ + inline void SetZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { m_zonalAutoshiftStatus = value; } + + /** + *

    The status for zonal autoshift for a resource. When you specify the autoshift + * status as ENABLED, Amazon Web Services shifts traffic away from + * shifts away application resource traffic from an Availability Zone, on your + * behalf, when Amazon Web Services determines that there's an issue in the + * Availability Zone that could potentially affect customers.

    When you + * enable zonal autoshift, you must also configure practice runs for the + * resource.

    + */ + inline void SetZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { m_zonalAutoshiftStatus = std::move(value); } + + /** + *

    The status for zonal autoshift for a resource. When you specify the autoshift + * status as ENABLED, Amazon Web Services shifts traffic away from + * shifts away application resource traffic from an Availability Zone, on your + * behalf, when Amazon Web Services determines that there's an issue in the + * Availability Zone that could potentially affect customers.

    When you + * enable zonal autoshift, you must also configure practice runs for the + * resource.

    + */ + inline CreatePracticeRunConfigurationResult& WithZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { SetZonalAutoshiftStatus(value); return *this;} + + /** + *

    The status for zonal autoshift for a resource. When you specify the autoshift + * status as ENABLED, Amazon Web Services shifts traffic away from + * shifts away application resource traffic from an Availability Zone, on your + * behalf, when Amazon Web Services determines that there's an issue in the + * Availability Zone that could potentially affect customers.

    When you + * enable zonal autoshift, you must also configure practice runs for the + * resource.

    + */ + inline CreatePracticeRunConfigurationResult& WithZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { SetZonalAutoshiftStatus(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 CreatePracticeRunConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreatePracticeRunConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreatePracticeRunConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_name; + + PracticeRunConfiguration m_practiceRunConfiguration; + + ZonalAutoshiftStatus m_zonalAutoshiftStatus; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/DeletePracticeRunConfigurationRequest.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/DeletePracticeRunConfigurationRequest.h new file mode 100644 index 00000000000..97acaa74172 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/DeletePracticeRunConfigurationRequest.h @@ -0,0 +1,99 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + + /** + */ + class DeletePracticeRunConfigurationRequest : public ARCZonalShiftRequest + { + public: + AWS_ARCZONALSHIFT_API DeletePracticeRunConfigurationRequest(); + + // 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 "DeletePracticeRunConfiguration"; } + + AWS_ARCZONALSHIFT_API Aws::String SerializePayload() const override; + + + /** + *

    The identifier for the resource that you want to delete the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } + + /** + *

    The identifier for the resource that you want to delete the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } + + /** + *

    The identifier for the resource that you want to delete the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } + + /** + *

    The identifier for the resource that you want to delete the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } + + /** + *

    The identifier for the resource that you want to delete the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } + + /** + *

    The identifier for the resource that you want to delete the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline DeletePracticeRunConfigurationRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} + + /** + *

    The identifier for the resource that you want to delete the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline DeletePracticeRunConfigurationRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} + + /** + *

    The identifier for the resource that you want to delete the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline DeletePracticeRunConfigurationRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} + + private: + + Aws::String m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/DeletePracticeRunConfigurationResult.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/DeletePracticeRunConfigurationResult.h new file mode 100644 index 00000000000..3cff0b57d1e --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/DeletePracticeRunConfigurationResult.h @@ -0,0 +1,175 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + class DeletePracticeRunConfigurationResult + { + public: + AWS_ARCZONALSHIFT_API DeletePracticeRunConfigurationResult(); + AWS_ARCZONALSHIFT_API DeletePracticeRunConfigurationResult(const Aws::AmazonWebServiceResult& result); + AWS_ARCZONALSHIFT_API DeletePracticeRunConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The Amazon Resource Name (ARN) of the resource that you deleted the practice + * run for.

    + */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you deleted the practice + * run for.

    + */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you deleted the practice + * run for.

    + */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you deleted the practice + * run for.

    + */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you deleted the practice + * run for.

    + */ + inline DeletePracticeRunConfigurationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you deleted the practice + * run for.

    + */ + inline DeletePracticeRunConfigurationResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you deleted the practice + * run for.

    + */ + inline DeletePracticeRunConfigurationResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

    The name of the resource that you deleted the practice run for.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

    The name of the resource that you deleted the practice run for.

    + */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

    The name of the resource that you deleted the practice run for.

    + */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

    The name of the resource that you deleted the practice run for.

    + */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

    The name of the resource that you deleted the practice run for.

    + */ + inline DeletePracticeRunConfigurationResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

    The name of the resource that you deleted the practice run for.

    + */ + inline DeletePracticeRunConfigurationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

    The name of the resource that you deleted the practice run for.

    + */ + inline DeletePracticeRunConfigurationResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

    The status of zonal autoshift for the resource.

    + */ + inline const ZonalAutoshiftStatus& GetZonalAutoshiftStatus() const{ return m_zonalAutoshiftStatus; } + + /** + *

    The status of zonal autoshift for the resource.

    + */ + inline void SetZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { m_zonalAutoshiftStatus = value; } + + /** + *

    The status of zonal autoshift for the resource.

    + */ + inline void SetZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { m_zonalAutoshiftStatus = std::move(value); } + + /** + *

    The status of zonal autoshift for the resource.

    + */ + inline DeletePracticeRunConfigurationResult& WithZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { SetZonalAutoshiftStatus(value); return *this;} + + /** + *

    The status of zonal autoshift for the resource.

    + */ + inline DeletePracticeRunConfigurationResult& WithZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { SetZonalAutoshiftStatus(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 DeletePracticeRunConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeletePracticeRunConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeletePracticeRunConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_name; + + ZonalAutoshiftStatus m_zonalAutoshiftStatus; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/GetManagedResourceRequest.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/GetManagedResourceRequest.h index ad20e7207ea..33e439bc882 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/GetManagedResourceRequest.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/GetManagedResourceRequest.h @@ -33,66 +33,66 @@ namespace Model /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline GetManagedResourceRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline GetManagedResourceRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline GetManagedResourceRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/GetManagedResourceResult.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/GetManagedResourceResult.h index 3e0d6e14ee8..46b0c1fcb89 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/GetManagedResourceResult.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/GetManagedResourceResult.h @@ -8,6 +8,9 @@ #include #include #include +#include +#include +#include #include #include @@ -128,6 +131,42 @@ namespace Model inline GetManagedResourceResult& WithArn(const char* value) { SetArn(value); return *this;} + /** + *

    An array of the autoshifts that are active for the resource.

    + */ + inline const Aws::Vector& GetAutoshifts() const{ return m_autoshifts; } + + /** + *

    An array of the autoshifts that are active for the resource.

    + */ + inline void SetAutoshifts(const Aws::Vector& value) { m_autoshifts = value; } + + /** + *

    An array of the autoshifts that are active for the resource.

    + */ + inline void SetAutoshifts(Aws::Vector&& value) { m_autoshifts = std::move(value); } + + /** + *

    An array of the autoshifts that are active for the resource.

    + */ + inline GetManagedResourceResult& WithAutoshifts(const Aws::Vector& value) { SetAutoshifts(value); return *this;} + + /** + *

    An array of the autoshifts that are active for the resource.

    + */ + inline GetManagedResourceResult& WithAutoshifts(Aws::Vector&& value) { SetAutoshifts(std::move(value)); return *this;} + + /** + *

    An array of the autoshifts that are active for the resource.

    + */ + inline GetManagedResourceResult& AddAutoshifts(const AutoshiftInResource& value) { m_autoshifts.push_back(value); return *this; } + + /** + *

    An array of the autoshifts that are active for the resource.

    + */ + inline GetManagedResourceResult& AddAutoshifts(AutoshiftInResource&& value) { m_autoshifts.push_back(std::move(value)); return *this; } + + /** *

    The name of the resource.

    */ @@ -164,6 +203,83 @@ namespace Model inline GetManagedResourceResult& WithName(const char* value) { SetName(value); return *this;} + /** + *

    The practice run configuration for zonal autoshift that's associated with the + * resource.

    + */ + inline const PracticeRunConfiguration& GetPracticeRunConfiguration() const{ return m_practiceRunConfiguration; } + + /** + *

    The practice run configuration for zonal autoshift that's associated with the + * resource.

    + */ + inline void SetPracticeRunConfiguration(const PracticeRunConfiguration& value) { m_practiceRunConfiguration = value; } + + /** + *

    The practice run configuration for zonal autoshift that's associated with the + * resource.

    + */ + inline void SetPracticeRunConfiguration(PracticeRunConfiguration&& value) { m_practiceRunConfiguration = std::move(value); } + + /** + *

    The practice run configuration for zonal autoshift that's associated with the + * resource.

    + */ + inline GetManagedResourceResult& WithPracticeRunConfiguration(const PracticeRunConfiguration& value) { SetPracticeRunConfiguration(value); return *this;} + + /** + *

    The practice run configuration for zonal autoshift that's associated with the + * resource.

    + */ + inline GetManagedResourceResult& WithPracticeRunConfiguration(PracticeRunConfiguration&& value) { SetPracticeRunConfiguration(std::move(value)); return *this;} + + + /** + *

    The status for zonal autoshift for a resource. When the autoshift status is + * ENABLED, Amazon Web Services shifts traffic for a resource away + * from an Availability Zone, on your behalf, when Amazon Web Services determines + * that there's an issue in the Availability Zone that could potentially affect + * customers.

    + */ + inline const ZonalAutoshiftStatus& GetZonalAutoshiftStatus() const{ return m_zonalAutoshiftStatus; } + + /** + *

    The status for zonal autoshift for a resource. When the autoshift status is + * ENABLED, Amazon Web Services shifts traffic for a resource away + * from an Availability Zone, on your behalf, when Amazon Web Services determines + * that there's an issue in the Availability Zone that could potentially affect + * customers.

    + */ + inline void SetZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { m_zonalAutoshiftStatus = value; } + + /** + *

    The status for zonal autoshift for a resource. When the autoshift status is + * ENABLED, Amazon Web Services shifts traffic for a resource away + * from an Availability Zone, on your behalf, when Amazon Web Services determines + * that there's an issue in the Availability Zone that could potentially affect + * customers.

    + */ + inline void SetZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { m_zonalAutoshiftStatus = std::move(value); } + + /** + *

    The status for zonal autoshift for a resource. When the autoshift status is + * ENABLED, Amazon Web Services shifts traffic for a resource away + * from an Availability Zone, on your behalf, when Amazon Web Services determines + * that there's an issue in the Availability Zone that could potentially affect + * customers.

    + */ + inline GetManagedResourceResult& WithZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { SetZonalAutoshiftStatus(value); return *this;} + + /** + *

    The status for zonal autoshift for a resource. When the autoshift status is + * ENABLED, Amazon Web Services shifts traffic for a resource away + * from an Availability Zone, on your behalf, when Amazon Web Services determines + * that there's an issue in the Availability Zone that could potentially affect + * customers.

    + */ + inline GetManagedResourceResult& WithZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { SetZonalAutoshiftStatus(std::move(value)); return *this;} + + /** *

    The zonal shifts that are currently active for a resource.

    */ @@ -227,8 +343,14 @@ namespace Model Aws::String m_arn; + Aws::Vector m_autoshifts; + Aws::String m_name; + PracticeRunConfiguration m_practiceRunConfiguration; + + ZonalAutoshiftStatus m_zonalAutoshiftStatus; + Aws::Vector m_zonalShifts; Aws::String m_requestId; diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListAutoshiftsRequest.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListAutoshiftsRequest.h new file mode 100644 index 00000000000..4742890a4e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListAutoshiftsRequest.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 + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace ARCZonalShift +{ +namespace Model +{ + + /** + */ + class ListAutoshiftsRequest : public ARCZonalShiftRequest + { + public: + AWS_ARCZONALSHIFT_API ListAutoshiftsRequest(); + + // 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 "ListAutoshifts"; } + + AWS_ARCZONALSHIFT_API Aws::String SerializePayload() const override; + + AWS_ARCZONALSHIFT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

    The number of objects that you want to return with this call.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The number of objects that you want to return with this call.

    + */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

    The number of objects that you want to return with this call.

    + */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

    The number of objects that you want to return with this call.

    + */ + inline ListAutoshiftsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline ListAutoshiftsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline ListAutoshiftsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline ListAutoshiftsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The status of the autoshift.

    + */ + inline const AutoshiftExecutionStatus& GetStatus() const{ return m_status; } + + /** + *

    The status of the autoshift.

    + */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

    The status of the autoshift.

    + */ + inline void SetStatus(const AutoshiftExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

    The status of the autoshift.

    + */ + inline void SetStatus(AutoshiftExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

    The status of the autoshift.

    + */ + inline ListAutoshiftsRequest& WithStatus(const AutoshiftExecutionStatus& value) { SetStatus(value); return *this;} + + /** + *

    The status of the autoshift.

    + */ + inline ListAutoshiftsRequest& WithStatus(AutoshiftExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} + + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + AutoshiftExecutionStatus m_status; + bool m_statusHasBeenSet = false; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListAutoshiftsResult.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListAutoshiftsResult.h new file mode 100644 index 00000000000..8b4e3796d4c --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListAutoshiftsResult.h @@ -0,0 +1,169 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + class ListAutoshiftsResult + { + public: + AWS_ARCZONALSHIFT_API ListAutoshiftsResult(); + AWS_ARCZONALSHIFT_API ListAutoshiftsResult(const Aws::AmazonWebServiceResult& result); + AWS_ARCZONALSHIFT_API ListAutoshiftsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The items in the response list.

    + */ + inline const Aws::Vector& GetItems() const{ return m_items; } + + /** + *

    The items in the response list.

    + */ + inline void SetItems(const Aws::Vector& value) { m_items = value; } + + /** + *

    The items in the response list.

    + */ + inline void SetItems(Aws::Vector&& value) { m_items = std::move(value); } + + /** + *

    The items in the response list.

    + */ + inline ListAutoshiftsResult& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} + + /** + *

    The items in the response list.

    + */ + inline ListAutoshiftsResult& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} + + /** + *

    The items in the response list.

    + */ + inline ListAutoshiftsResult& AddItems(const AutoshiftSummary& value) { m_items.push_back(value); return *this; } + + /** + *

    The items in the response list.

    + */ + inline ListAutoshiftsResult& AddItems(AutoshiftSummary&& value) { m_items.push_back(std::move(value)); return *this; } + + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline ListAutoshiftsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline ListAutoshiftsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    Specifies that you want to receive the next page of results. Valid only if + * you received a NextToken response in the previous request. If you + * did, it indicates that more output is available. Set this parameter to the value + * provided by the previous call's NextToken response to request the + * next page of results.

    + */ + inline ListAutoshiftsResult& 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 ListAutoshiftsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListAutoshiftsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListAutoshiftsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_items; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListZonalShiftsRequest.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListZonalShiftsRequest.h index 1c12941b203..53411be5bfd 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListZonalShiftsRequest.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ListZonalShiftsRequest.h @@ -133,57 +133,106 @@ namespace Model inline ListZonalShiftsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + /** + *

    The identifier for the resource that you want to list zonal shifts for. The + * identifier is the Amazon Resource Name (ARN) for the resource.

    + */ + inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } + + /** + *

    The identifier for the resource that you want to list zonal shifts for. The + * identifier is the Amazon Resource Name (ARN) for the resource.

    + */ + inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } + + /** + *

    The identifier for the resource that you want to list zonal shifts for. The + * identifier is the Amazon Resource Name (ARN) for the resource.

    + */ + inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } + + /** + *

    The identifier for the resource that you want to list zonal shifts for. The + * identifier is the Amazon Resource Name (ARN) for the resource.

    + */ + inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } + + /** + *

    The identifier for the resource that you want to list zonal shifts for. The + * identifier is the Amazon Resource Name (ARN) for the resource.

    + */ + inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } + + /** + *

    The identifier for the resource that you want to list zonal shifts for. The + * identifier is the Amazon Resource Name (ARN) for the resource.

    + */ + inline ListZonalShiftsRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} + + /** + *

    The identifier for the resource that you want to list zonal shifts for. The + * identifier is the Amazon Resource Name (ARN) for the resource.

    + */ + inline ListZonalShiftsRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} + + /** + *

    The identifier for the resource that you want to list zonal shifts for. The + * identifier is the Amazon Resource Name (ARN) for the resource.

    + */ + inline ListZonalShiftsRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} + + /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline const ZonalShiftStatus& GetStatus() const{ return m_status; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(const ZonalShiftStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(ZonalShiftStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline ListZonalShiftsRequest& WithStatus(const ZonalShiftStatus& value) { SetStatus(value); return *this;} /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline ListZonalShiftsRequest& WithStatus(ZonalShiftStatus&& value) { SetStatus(std::move(value)); return *this;} @@ -195,6 +244,9 @@ namespace Model Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; + Aws::String m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + ZonalShiftStatus m_status; bool m_statusHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ManagedResourceSummary.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ManagedResourceSummary.h index b7f6894324f..53a998191b7 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ManagedResourceSummary.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ManagedResourceSummary.h @@ -5,8 +5,12 @@ #pragma once #include +#include #include #include +#include +#include +#include #include namespace Aws @@ -25,14 +29,15 @@ namespace Model { /** - *

    A complex structure for a managed resource in an account.

    A managed - * resource is a Network Load Balancer or Application Load Balancer that has been - * registered with Route 53 ARC by Elastic Load Balancing. You can start a zonal - * shift in Route 53 ARC for a managed resource to temporarily move traffic for the - * resource away from an Availability Zone in an AWS Region.

    At this - * time, you can only start a zonal shift for Network Load Balancers and - * Application Load Balancers with cross-zone load balancing turned off.

    - *

    See Also:

    A complex structure for a managed resource in an Amazon Web Services account + * with information about zonal shifts and autoshifts.

    A managed resource is + * a load balancer that has been registered with Route 53 ARC by Elastic Load + * Balancing. You can start a zonal shift in Route 53 ARC for a managed resource to + * temporarily move traffic for the resource away from an Availability Zone in an + * Amazon Web Services Region. You can also configure zonal autoshift for a managed + * resource.

    At this time, managed resources are Network Load + * Balancers and Application Load Balancers with cross-zone load balancing turned + * off.

    See Also:

    AWS * API Reference

    */ @@ -45,6 +50,70 @@ namespace Model AWS_ARCZONALSHIFT_API Aws::Utils::Json::JsonValue Jsonize() const; + /** + *

    A collection of key-value pairs that indicate whether resources are active in + * Availability Zones or not. The key name is the Availability Zone where the + * resource is deployed. The value is 1 or 0.

    + */ + inline const Aws::Map& GetAppliedWeights() const{ return m_appliedWeights; } + + /** + *

    A collection of key-value pairs that indicate whether resources are active in + * Availability Zones or not. The key name is the Availability Zone where the + * resource is deployed. The value is 1 or 0.

    + */ + inline bool AppliedWeightsHasBeenSet() const { return m_appliedWeightsHasBeenSet; } + + /** + *

    A collection of key-value pairs that indicate whether resources are active in + * Availability Zones or not. The key name is the Availability Zone where the + * resource is deployed. The value is 1 or 0.

    + */ + inline void SetAppliedWeights(const Aws::Map& value) { m_appliedWeightsHasBeenSet = true; m_appliedWeights = value; } + + /** + *

    A collection of key-value pairs that indicate whether resources are active in + * Availability Zones or not. The key name is the Availability Zone where the + * resource is deployed. The value is 1 or 0.

    + */ + inline void SetAppliedWeights(Aws::Map&& value) { m_appliedWeightsHasBeenSet = true; m_appliedWeights = std::move(value); } + + /** + *

    A collection of key-value pairs that indicate whether resources are active in + * Availability Zones or not. The key name is the Availability Zone where the + * resource is deployed. The value is 1 or 0.

    + */ + inline ManagedResourceSummary& WithAppliedWeights(const Aws::Map& value) { SetAppliedWeights(value); return *this;} + + /** + *

    A collection of key-value pairs that indicate whether resources are active in + * Availability Zones or not. The key name is the Availability Zone where the + * resource is deployed. The value is 1 or 0.

    + */ + inline ManagedResourceSummary& WithAppliedWeights(Aws::Map&& value) { SetAppliedWeights(std::move(value)); return *this;} + + /** + *

    A collection of key-value pairs that indicate whether resources are active in + * Availability Zones or not. The key name is the Availability Zone where the + * resource is deployed. The value is 1 or 0.

    + */ + inline ManagedResourceSummary& AddAppliedWeights(const Aws::String& key, double value) { m_appliedWeightsHasBeenSet = true; m_appliedWeights.emplace(key, value); return *this; } + + /** + *

    A collection of key-value pairs that indicate whether resources are active in + * Availability Zones or not. The key name is the Availability Zone where the + * resource is deployed. The value is 1 or 0.

    + */ + inline ManagedResourceSummary& AddAppliedWeights(Aws::String&& key, double value) { m_appliedWeightsHasBeenSet = true; m_appliedWeights.emplace(std::move(key), value); return *this; } + + /** + *

    A collection of key-value pairs that indicate whether resources are active in + * Availability Zones or not. The key name is the Availability Zone where the + * resource is deployed. The value is 1 or 0.

    + */ + inline ManagedResourceSummary& AddAppliedWeights(const char* key, double value) { m_appliedWeightsHasBeenSet = true; m_appliedWeights.emplace(key, value); return *this; } + + /** *

    The Amazon Resource Name (ARN) for the managed resource.

    */ @@ -86,6 +155,47 @@ namespace Model inline ManagedResourceSummary& WithArn(const char* value) { SetArn(value); return *this;} + /** + *

    An array of the autoshifts that have been completed for a resource.

    + */ + inline const Aws::Vector& GetAutoshifts() const{ return m_autoshifts; } + + /** + *

    An array of the autoshifts that have been completed for a resource.

    + */ + inline bool AutoshiftsHasBeenSet() const { return m_autoshiftsHasBeenSet; } + + /** + *

    An array of the autoshifts that have been completed for a resource.

    + */ + inline void SetAutoshifts(const Aws::Vector& value) { m_autoshiftsHasBeenSet = true; m_autoshifts = value; } + + /** + *

    An array of the autoshifts that have been completed for a resource.

    + */ + inline void SetAutoshifts(Aws::Vector&& value) { m_autoshiftsHasBeenSet = true; m_autoshifts = std::move(value); } + + /** + *

    An array of the autoshifts that have been completed for a resource.

    + */ + inline ManagedResourceSummary& WithAutoshifts(const Aws::Vector& value) { SetAutoshifts(value); return *this;} + + /** + *

    An array of the autoshifts that have been completed for a resource.

    + */ + inline ManagedResourceSummary& WithAutoshifts(Aws::Vector&& value) { SetAutoshifts(std::move(value)); return *this;} + + /** + *

    An array of the autoshifts that have been completed for a resource.

    + */ + inline ManagedResourceSummary& AddAutoshifts(const AutoshiftInResource& value) { m_autoshiftsHasBeenSet = true; m_autoshifts.push_back(value); return *this; } + + /** + *

    An array of the autoshifts that have been completed for a resource.

    + */ + inline ManagedResourceSummary& AddAutoshifts(AutoshiftInResource&& value) { m_autoshiftsHasBeenSet = true; m_autoshifts.push_back(std::move(value)); return *this; } + + /** *

    The Availability Zones that a resource is deployed in.

    */ @@ -172,16 +282,182 @@ namespace Model */ inline ManagedResourceSummary& WithName(const char* value) { SetName(value); return *this;} + + /** + *

    This status tracks whether a practice run configuration exists for a + * resource. When you configure a practice run for a resource so that a practice + * run configuration exists, Route 53 ARC sets this value to ENABLED. + * If a you have not configured a practice run for the resource, or delete a + * practice run configuration, Route 53 ARC sets the value to + * DISABLED.

    Route 53 ARC updates this status; you can't set a + * practice run status to ENABLED or DISABLED.

    + */ + inline const ZonalAutoshiftStatus& GetPracticeRunStatus() const{ return m_practiceRunStatus; } + + /** + *

    This status tracks whether a practice run configuration exists for a + * resource. When you configure a practice run for a resource so that a practice + * run configuration exists, Route 53 ARC sets this value to ENABLED. + * If a you have not configured a practice run for the resource, or delete a + * practice run configuration, Route 53 ARC sets the value to + * DISABLED.

    Route 53 ARC updates this status; you can't set a + * practice run status to ENABLED or DISABLED.

    + */ + inline bool PracticeRunStatusHasBeenSet() const { return m_practiceRunStatusHasBeenSet; } + + /** + *

    This status tracks whether a practice run configuration exists for a + * resource. When you configure a practice run for a resource so that a practice + * run configuration exists, Route 53 ARC sets this value to ENABLED. + * If a you have not configured a practice run for the resource, or delete a + * practice run configuration, Route 53 ARC sets the value to + * DISABLED.

    Route 53 ARC updates this status; you can't set a + * practice run status to ENABLED or DISABLED.

    + */ + inline void SetPracticeRunStatus(const ZonalAutoshiftStatus& value) { m_practiceRunStatusHasBeenSet = true; m_practiceRunStatus = value; } + + /** + *

    This status tracks whether a practice run configuration exists for a + * resource. When you configure a practice run for a resource so that a practice + * run configuration exists, Route 53 ARC sets this value to ENABLED. + * If a you have not configured a practice run for the resource, or delete a + * practice run configuration, Route 53 ARC sets the value to + * DISABLED.

    Route 53 ARC updates this status; you can't set a + * practice run status to ENABLED or DISABLED.

    + */ + inline void SetPracticeRunStatus(ZonalAutoshiftStatus&& value) { m_practiceRunStatusHasBeenSet = true; m_practiceRunStatus = std::move(value); } + + /** + *

    This status tracks whether a practice run configuration exists for a + * resource. When you configure a practice run for a resource so that a practice + * run configuration exists, Route 53 ARC sets this value to ENABLED. + * If a you have not configured a practice run for the resource, or delete a + * practice run configuration, Route 53 ARC sets the value to + * DISABLED.

    Route 53 ARC updates this status; you can't set a + * practice run status to ENABLED or DISABLED.

    + */ + inline ManagedResourceSummary& WithPracticeRunStatus(const ZonalAutoshiftStatus& value) { SetPracticeRunStatus(value); return *this;} + + /** + *

    This status tracks whether a practice run configuration exists for a + * resource. When you configure a practice run for a resource so that a practice + * run configuration exists, Route 53 ARC sets this value to ENABLED. + * If a you have not configured a practice run for the resource, or delete a + * practice run configuration, Route 53 ARC sets the value to + * DISABLED.

    Route 53 ARC updates this status; you can't set a + * practice run status to ENABLED or DISABLED.

    + */ + inline ManagedResourceSummary& WithPracticeRunStatus(ZonalAutoshiftStatus&& value) { SetPracticeRunStatus(std::move(value)); return *this;} + + + /** + *

    The status of autoshift for a resource. When you configure zonal autoshift + * for a resource, you can set the value of the status to ENABLED or + * DISABLED.

    + */ + inline const ZonalAutoshiftStatus& GetZonalAutoshiftStatus() const{ return m_zonalAutoshiftStatus; } + + /** + *

    The status of autoshift for a resource. When you configure zonal autoshift + * for a resource, you can set the value of the status to ENABLED or + * DISABLED.

    + */ + inline bool ZonalAutoshiftStatusHasBeenSet() const { return m_zonalAutoshiftStatusHasBeenSet; } + + /** + *

    The status of autoshift for a resource. When you configure zonal autoshift + * for a resource, you can set the value of the status to ENABLED or + * DISABLED.

    + */ + inline void SetZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { m_zonalAutoshiftStatusHasBeenSet = true; m_zonalAutoshiftStatus = value; } + + /** + *

    The status of autoshift for a resource. When you configure zonal autoshift + * for a resource, you can set the value of the status to ENABLED or + * DISABLED.

    + */ + inline void SetZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { m_zonalAutoshiftStatusHasBeenSet = true; m_zonalAutoshiftStatus = std::move(value); } + + /** + *

    The status of autoshift for a resource. When you configure zonal autoshift + * for a resource, you can set the value of the status to ENABLED or + * DISABLED.

    + */ + inline ManagedResourceSummary& WithZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { SetZonalAutoshiftStatus(value); return *this;} + + /** + *

    The status of autoshift for a resource. When you configure zonal autoshift + * for a resource, you can set the value of the status to ENABLED or + * DISABLED.

    + */ + inline ManagedResourceSummary& WithZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { SetZonalAutoshiftStatus(std::move(value)); return *this;} + + + /** + *

    An array of the zonal shifts for a resource.

    + */ + inline const Aws::Vector& GetZonalShifts() const{ return m_zonalShifts; } + + /** + *

    An array of the zonal shifts for a resource.

    + */ + inline bool ZonalShiftsHasBeenSet() const { return m_zonalShiftsHasBeenSet; } + + /** + *

    An array of the zonal shifts for a resource.

    + */ + inline void SetZonalShifts(const Aws::Vector& value) { m_zonalShiftsHasBeenSet = true; m_zonalShifts = value; } + + /** + *

    An array of the zonal shifts for a resource.

    + */ + inline void SetZonalShifts(Aws::Vector&& value) { m_zonalShiftsHasBeenSet = true; m_zonalShifts = std::move(value); } + + /** + *

    An array of the zonal shifts for a resource.

    + */ + inline ManagedResourceSummary& WithZonalShifts(const Aws::Vector& value) { SetZonalShifts(value); return *this;} + + /** + *

    An array of the zonal shifts for a resource.

    + */ + inline ManagedResourceSummary& WithZonalShifts(Aws::Vector&& value) { SetZonalShifts(std::move(value)); return *this;} + + /** + *

    An array of the zonal shifts for a resource.

    + */ + inline ManagedResourceSummary& AddZonalShifts(const ZonalShiftInResource& value) { m_zonalShiftsHasBeenSet = true; m_zonalShifts.push_back(value); return *this; } + + /** + *

    An array of the zonal shifts for a resource.

    + */ + inline ManagedResourceSummary& AddZonalShifts(ZonalShiftInResource&& value) { m_zonalShiftsHasBeenSet = true; m_zonalShifts.push_back(std::move(value)); return *this; } + private: + Aws::Map m_appliedWeights; + bool m_appliedWeightsHasBeenSet = false; + Aws::String m_arn; bool m_arnHasBeenSet = false; + Aws::Vector m_autoshifts; + bool m_autoshiftsHasBeenSet = false; + Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; + + ZonalAutoshiftStatus m_practiceRunStatus; + bool m_practiceRunStatusHasBeenSet = false; + + ZonalAutoshiftStatus m_zonalAutoshiftStatus; + bool m_zonalAutoshiftStatusHasBeenSet = false; + + Aws::Vector m_zonalShifts; + bool m_zonalShiftsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/PracticeRunConfiguration.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/PracticeRunConfiguration.h new file mode 100644 index 00000000000..1a2ed79ae8f --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/PracticeRunConfiguration.h @@ -0,0 +1,306 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + + /** + *

    A practice run configuration for a resource includes the Amazon CloudWatch + * alarms that you've specified for a practice run, as well as any blocked dates or + * blocked windows for the practice run.

    You can update or delete a practice + * run configuration. Before you delete a practice run configuration, you must + * disable zonal autoshift for the resource. A practice run configuration is + * required when zonal autoshift is enabled.

    See Also:

    AWS + * API Reference

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

    An array of one or more dates that you can specify when Amazon Web Services + * does not start practice runs for a resource.

    Specify blocked dates, in + * UTC, in the format YYYY-MM-DD, separated by spaces.

    + */ + inline const Aws::Vector& GetBlockedDates() const{ return m_blockedDates; } + + /** + *

    An array of one or more dates that you can specify when Amazon Web Services + * does not start practice runs for a resource.

    Specify blocked dates, in + * UTC, in the format YYYY-MM-DD, separated by spaces.

    + */ + inline bool BlockedDatesHasBeenSet() const { return m_blockedDatesHasBeenSet; } + + /** + *

    An array of one or more dates that you can specify when Amazon Web Services + * does not start practice runs for a resource.

    Specify blocked dates, in + * UTC, in the format YYYY-MM-DD, separated by spaces.

    + */ + inline void SetBlockedDates(const Aws::Vector& value) { m_blockedDatesHasBeenSet = true; m_blockedDates = value; } + + /** + *

    An array of one or more dates that you can specify when Amazon Web Services + * does not start practice runs for a resource.

    Specify blocked dates, in + * UTC, in the format YYYY-MM-DD, separated by spaces.

    + */ + inline void SetBlockedDates(Aws::Vector&& value) { m_blockedDatesHasBeenSet = true; m_blockedDates = std::move(value); } + + /** + *

    An array of one or more dates that you can specify when Amazon Web Services + * does not start practice runs for a resource.

    Specify blocked dates, in + * UTC, in the format YYYY-MM-DD, separated by spaces.

    + */ + inline PracticeRunConfiguration& WithBlockedDates(const Aws::Vector& value) { SetBlockedDates(value); return *this;} + + /** + *

    An array of one or more dates that you can specify when Amazon Web Services + * does not start practice runs for a resource.

    Specify blocked dates, in + * UTC, in the format YYYY-MM-DD, separated by spaces.

    + */ + inline PracticeRunConfiguration& WithBlockedDates(Aws::Vector&& value) { SetBlockedDates(std::move(value)); return *this;} + + /** + *

    An array of one or more dates that you can specify when Amazon Web Services + * does not start practice runs for a resource.

    Specify blocked dates, in + * UTC, in the format YYYY-MM-DD, separated by spaces.

    + */ + inline PracticeRunConfiguration& AddBlockedDates(const Aws::String& value) { m_blockedDatesHasBeenSet = true; m_blockedDates.push_back(value); return *this; } + + /** + *

    An array of one or more dates that you can specify when Amazon Web Services + * does not start practice runs for a resource.

    Specify blocked dates, in + * UTC, in the format YYYY-MM-DD, separated by spaces.

    + */ + inline PracticeRunConfiguration& AddBlockedDates(Aws::String&& value) { m_blockedDatesHasBeenSet = true; m_blockedDates.push_back(std::move(value)); return *this; } + + /** + *

    An array of one or more dates that you can specify when Amazon Web Services + * does not start practice runs for a resource.

    Specify blocked dates, in + * UTC, in the format YYYY-MM-DD, separated by spaces.

    + */ + inline PracticeRunConfiguration& AddBlockedDates(const char* value) { m_blockedDatesHasBeenSet = true; m_blockedDates.push_back(value); return *this; } + + + /** + *

    An array of one or more windows of days and times that you can block Route 53 + * ARC from starting practice runs for a resource.

    Specify the blocked + * windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by + * spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

    + */ + inline const Aws::Vector& GetBlockedWindows() const{ return m_blockedWindows; } + + /** + *

    An array of one or more windows of days and times that you can block Route 53 + * ARC from starting practice runs for a resource.

    Specify the blocked + * windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by + * spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

    + */ + inline bool BlockedWindowsHasBeenSet() const { return m_blockedWindowsHasBeenSet; } + + /** + *

    An array of one or more windows of days and times that you can block Route 53 + * ARC from starting practice runs for a resource.

    Specify the blocked + * windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by + * spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

    + */ + inline void SetBlockedWindows(const Aws::Vector& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows = value; } + + /** + *

    An array of one or more windows of days and times that you can block Route 53 + * ARC from starting practice runs for a resource.

    Specify the blocked + * windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by + * spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

    + */ + inline void SetBlockedWindows(Aws::Vector&& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows = std::move(value); } + + /** + *

    An array of one or more windows of days and times that you can block Route 53 + * ARC from starting practice runs for a resource.

    Specify the blocked + * windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by + * spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

    + */ + inline PracticeRunConfiguration& WithBlockedWindows(const Aws::Vector& value) { SetBlockedWindows(value); return *this;} + + /** + *

    An array of one or more windows of days and times that you can block Route 53 + * ARC from starting practice runs for a resource.

    Specify the blocked + * windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by + * spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

    + */ + inline PracticeRunConfiguration& WithBlockedWindows(Aws::Vector&& value) { SetBlockedWindows(std::move(value)); return *this;} + + /** + *

    An array of one or more windows of days and times that you can block Route 53 + * ARC from starting practice runs for a resource.

    Specify the blocked + * windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by + * spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

    + */ + inline PracticeRunConfiguration& AddBlockedWindows(const Aws::String& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.push_back(value); return *this; } + + /** + *

    An array of one or more windows of days and times that you can block Route 53 + * ARC from starting practice runs for a resource.

    Specify the blocked + * windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by + * spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

    + */ + inline PracticeRunConfiguration& AddBlockedWindows(Aws::String&& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.push_back(std::move(value)); return *this; } + + /** + *

    An array of one or more windows of days and times that you can block Route 53 + * ARC from starting practice runs for a resource.

    Specify the blocked + * windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by + * spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

    + */ + inline PracticeRunConfiguration& AddBlockedWindows(const char* value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.push_back(value); return *this; } + + + /** + *

    The blocking alarm for practice runs is an optional alarm that you can + * specify that blocks practice runs when the alarm is in an ALARM + * state.

    + */ + inline const Aws::Vector& GetBlockingAlarms() const{ return m_blockingAlarms; } + + /** + *

    The blocking alarm for practice runs is an optional alarm that you can + * specify that blocks practice runs when the alarm is in an ALARM + * state.

    + */ + inline bool BlockingAlarmsHasBeenSet() const { return m_blockingAlarmsHasBeenSet; } + + /** + *

    The blocking alarm for practice runs is an optional alarm that you can + * specify that blocks practice runs when the alarm is in an ALARM + * state.

    + */ + inline void SetBlockingAlarms(const Aws::Vector& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms = value; } + + /** + *

    The blocking alarm for practice runs is an optional alarm that you can + * specify that blocks practice runs when the alarm is in an ALARM + * state.

    + */ + inline void SetBlockingAlarms(Aws::Vector&& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms = std::move(value); } + + /** + *

    The blocking alarm for practice runs is an optional alarm that you can + * specify that blocks practice runs when the alarm is in an ALARM + * state.

    + */ + inline PracticeRunConfiguration& WithBlockingAlarms(const Aws::Vector& value) { SetBlockingAlarms(value); return *this;} + + /** + *

    The blocking alarm for practice runs is an optional alarm that you can + * specify that blocks practice runs when the alarm is in an ALARM + * state.

    + */ + inline PracticeRunConfiguration& WithBlockingAlarms(Aws::Vector&& value) { SetBlockingAlarms(std::move(value)); return *this;} + + /** + *

    The blocking alarm for practice runs is an optional alarm that you can + * specify that blocks practice runs when the alarm is in an ALARM + * state.

    + */ + inline PracticeRunConfiguration& AddBlockingAlarms(const ControlCondition& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms.push_back(value); return *this; } + + /** + *

    The blocking alarm for practice runs is an optional alarm that you can + * specify that blocks practice runs when the alarm is in an ALARM + * state.

    + */ + inline PracticeRunConfiguration& AddBlockingAlarms(ControlCondition&& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms.push_back(std::move(value)); return *this; } + + + /** + *

    The outcome alarm for practice runs is an alarm that you specify that + * ends a practice run when the alarm is in an ALARM state.

    + */ + inline const Aws::Vector& GetOutcomeAlarms() const{ return m_outcomeAlarms; } + + /** + *

    The outcome alarm for practice runs is an alarm that you specify that + * ends a practice run when the alarm is in an ALARM state.

    + */ + inline bool OutcomeAlarmsHasBeenSet() const { return m_outcomeAlarmsHasBeenSet; } + + /** + *

    The outcome alarm for practice runs is an alarm that you specify that + * ends a practice run when the alarm is in an ALARM state.

    + */ + inline void SetOutcomeAlarms(const Aws::Vector& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms = value; } + + /** + *

    The outcome alarm for practice runs is an alarm that you specify that + * ends a practice run when the alarm is in an ALARM state.

    + */ + inline void SetOutcomeAlarms(Aws::Vector&& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms = std::move(value); } + + /** + *

    The outcome alarm for practice runs is an alarm that you specify that + * ends a practice run when the alarm is in an ALARM state.

    + */ + inline PracticeRunConfiguration& WithOutcomeAlarms(const Aws::Vector& value) { SetOutcomeAlarms(value); return *this;} + + /** + *

    The outcome alarm for practice runs is an alarm that you specify that + * ends a practice run when the alarm is in an ALARM state.

    + */ + inline PracticeRunConfiguration& WithOutcomeAlarms(Aws::Vector&& value) { SetOutcomeAlarms(std::move(value)); return *this;} + + /** + *

    The outcome alarm for practice runs is an alarm that you specify that + * ends a practice run when the alarm is in an ALARM state.

    + */ + inline PracticeRunConfiguration& AddOutcomeAlarms(const ControlCondition& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms.push_back(value); return *this; } + + /** + *

    The outcome alarm for practice runs is an alarm that you specify that + * ends a practice run when the alarm is in an ALARM state.

    + */ + inline PracticeRunConfiguration& AddOutcomeAlarms(ControlCondition&& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_blockedDates; + bool m_blockedDatesHasBeenSet = false; + + Aws::Vector m_blockedWindows; + bool m_blockedWindowsHasBeenSet = false; + + Aws::Vector m_blockingAlarms; + bool m_blockingAlarmsHasBeenSet = false; + + Aws::Vector m_outcomeAlarms; + bool m_outcomeAlarmsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/PracticeRunOutcome.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/PracticeRunOutcome.h new file mode 100644 index 00000000000..b6e89c15825 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/PracticeRunOutcome.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 ARCZonalShift +{ +namespace Model +{ + enum class PracticeRunOutcome + { + NOT_SET, + FAILED, + INTERRUPTED, + PENDING, + SUCCEEDED + }; + +namespace PracticeRunOutcomeMapper +{ +AWS_ARCZONALSHIFT_API PracticeRunOutcome GetPracticeRunOutcomeForName(const Aws::String& name); + +AWS_ARCZONALSHIFT_API Aws::String GetNameForPracticeRunOutcome(PracticeRunOutcome value); +} // namespace PracticeRunOutcomeMapper +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/StartZonalShiftRequest.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/StartZonalShiftRequest.h index 983ce99577a..bf036b3e635 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/StartZonalShiftRequest.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/StartZonalShiftRequest.h @@ -35,56 +35,64 @@ namespace Model /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline const Aws::String& GetAwayFrom() const{ return m_awayFrom; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline bool AwayFromHasBeenSet() const { return m_awayFromHasBeenSet; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const Aws::String& value) { m_awayFromHasBeenSet = true; m_awayFrom = value; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(Aws::String&& value) { m_awayFromHasBeenSet = true; m_awayFrom = std::move(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const char* value) { m_awayFromHasBeenSet = true; m_awayFrom.assign(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline StartZonalShiftRequest& WithAwayFrom(const Aws::String& value) { SetAwayFrom(value); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline StartZonalShiftRequest& WithAwayFrom(Aws::String&& value) { SetAwayFrom(std::move(value)); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline StartZonalShiftRequest& WithAwayFrom(const char* value) { SetAwayFrom(value); return *this;} @@ -155,13 +163,11 @@ namespace Model * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

    To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no - * space:

     <ul> <li> <p> <b>A lowercase
    -     * letter m:</b> To specify that the value is in minutes.</p>
    -     * </li> <li> <p> <b>A lowercase letter h:</b> To
    -     * specify that the value is in hours.</p> </li> </ul>
    -     * <p>For example: <code>20h</code> means the zonal shift expires
    -     * in 20 hours. <code>120m</code> means the zonal shift expires in 120
    -     * minutes (2 hours).</p> 
    + * space:

    • A lowercase letter m: To specify that the value + * is in minutes.

    • A lowercase letter h: To specify that + * the value is in hours.

    For example: 20h means + * the zonal shift expires in 20 hours. 120m means the zonal shift + * expires in 120 minutes (2 hours).

    */ inline const Aws::String& GetExpiresIn() const{ return m_expiresIn; } @@ -174,13 +180,11 @@ namespace Model * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

    To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no - * space:

     <ul> <li> <p> <b>A lowercase
    -     * letter m:</b> To specify that the value is in minutes.</p>
    -     * </li> <li> <p> <b>A lowercase letter h:</b> To
    -     * specify that the value is in hours.</p> </li> </ul>
    -     * <p>For example: <code>20h</code> means the zonal shift expires
    -     * in 20 hours. <code>120m</code> means the zonal shift expires in 120
    -     * minutes (2 hours).</p> 
    + * space:

    • A lowercase letter m: To specify that the value + * is in minutes.

    • A lowercase letter h: To specify that + * the value is in hours.

    For example: 20h means + * the zonal shift expires in 20 hours. 120m means the zonal shift + * expires in 120 minutes (2 hours).

    */ inline bool ExpiresInHasBeenSet() const { return m_expiresInHasBeenSet; } @@ -193,13 +197,11 @@ namespace Model * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

    To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no - * space:

     <ul> <li> <p> <b>A lowercase
    -     * letter m:</b> To specify that the value is in minutes.</p>
    -     * </li> <li> <p> <b>A lowercase letter h:</b> To
    -     * specify that the value is in hours.</p> </li> </ul>
    -     * <p>For example: <code>20h</code> means the zonal shift expires
    -     * in 20 hours. <code>120m</code> means the zonal shift expires in 120
    -     * minutes (2 hours).</p> 
    + * space:

    • A lowercase letter m: To specify that the value + * is in minutes.

    • A lowercase letter h: To specify that + * the value is in hours.

    For example: 20h means + * the zonal shift expires in 20 hours. 120m means the zonal shift + * expires in 120 minutes (2 hours).

    */ inline void SetExpiresIn(const Aws::String& value) { m_expiresInHasBeenSet = true; m_expiresIn = value; } @@ -212,13 +214,11 @@ namespace Model * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

    To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no - * space:

     <ul> <li> <p> <b>A lowercase
    -     * letter m:</b> To specify that the value is in minutes.</p>
    -     * </li> <li> <p> <b>A lowercase letter h:</b> To
    -     * specify that the value is in hours.</p> </li> </ul>
    -     * <p>For example: <code>20h</code> means the zonal shift expires
    -     * in 20 hours. <code>120m</code> means the zonal shift expires in 120
    -     * minutes (2 hours).</p> 
    + * space:

    • A lowercase letter m: To specify that the value + * is in minutes.

    • A lowercase letter h: To specify that + * the value is in hours.

    For example: 20h means + * the zonal shift expires in 20 hours. 120m means the zonal shift + * expires in 120 minutes (2 hours).

    */ inline void SetExpiresIn(Aws::String&& value) { m_expiresInHasBeenSet = true; m_expiresIn = std::move(value); } @@ -231,13 +231,11 @@ namespace Model * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

    To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no - * space:

     <ul> <li> <p> <b>A lowercase
    -     * letter m:</b> To specify that the value is in minutes.</p>
    -     * </li> <li> <p> <b>A lowercase letter h:</b> To
    -     * specify that the value is in hours.</p> </li> </ul>
    -     * <p>For example: <code>20h</code> means the zonal shift expires
    -     * in 20 hours. <code>120m</code> means the zonal shift expires in 120
    -     * minutes (2 hours).</p> 
    + * space:

    • A lowercase letter m: To specify that the value + * is in minutes.

    • A lowercase letter h: To specify that + * the value is in hours.

    For example: 20h means + * the zonal shift expires in 20 hours. 120m means the zonal shift + * expires in 120 minutes (2 hours).

    */ inline void SetExpiresIn(const char* value) { m_expiresInHasBeenSet = true; m_expiresIn.assign(value); } @@ -250,13 +248,11 @@ namespace Model * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

    To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no - * space:

     <ul> <li> <p> <b>A lowercase
    -     * letter m:</b> To specify that the value is in minutes.</p>
    -     * </li> <li> <p> <b>A lowercase letter h:</b> To
    -     * specify that the value is in hours.</p> </li> </ul>
    -     * <p>For example: <code>20h</code> means the zonal shift expires
    -     * in 20 hours. <code>120m</code> means the zonal shift expires in 120
    -     * minutes (2 hours).</p> 
    + * space:

    • A lowercase letter m: To specify that the value + * is in minutes.

    • A lowercase letter h: To specify that + * the value is in hours.

    For example: 20h means + * the zonal shift expires in 20 hours. 120m means the zonal shift + * expires in 120 minutes (2 hours).

    */ inline StartZonalShiftRequest& WithExpiresIn(const Aws::String& value) { SetExpiresIn(value); return *this;} @@ -269,13 +265,11 @@ namespace Model * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

    To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no - * space:

     <ul> <li> <p> <b>A lowercase
    -     * letter m:</b> To specify that the value is in minutes.</p>
    -     * </li> <li> <p> <b>A lowercase letter h:</b> To
    -     * specify that the value is in hours.</p> </li> </ul>
    -     * <p>For example: <code>20h</code> means the zonal shift expires
    -     * in 20 hours. <code>120m</code> means the zonal shift expires in 120
    -     * minutes (2 hours).</p> 
    + * space:

    • A lowercase letter m: To specify that the value + * is in minutes.

    • A lowercase letter h: To specify that + * the value is in hours.

    For example: 20h means + * the zonal shift expires in 20 hours. 120m means the zonal shift + * expires in 120 minutes (2 hours).

    */ inline StartZonalShiftRequest& WithExpiresIn(Aws::String&& value) { SetExpiresIn(std::move(value)); return *this;} @@ -288,78 +282,76 @@ namespace Model * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

    To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no - * space:

     <ul> <li> <p> <b>A lowercase
    -     * letter m:</b> To specify that the value is in minutes.</p>
    -     * </li> <li> <p> <b>A lowercase letter h:</b> To
    -     * specify that the value is in hours.</p> </li> </ul>
    -     * <p>For example: <code>20h</code> means the zonal shift expires
    -     * in 20 hours. <code>120m</code> means the zonal shift expires in 120
    -     * minutes (2 hours).</p> 
    + * space:

    • A lowercase letter m: To specify that the value + * is in minutes.

    • A lowercase letter h: To specify that + * the value is in hours.

    For example: 20h means + * the zonal shift expires in 20 hours. 120m means the zonal shift + * expires in 120 minutes (2 hours).

    */ inline StartZonalShiftRequest& WithExpiresIn(const char* value) { SetExpiresIn(value); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline StartZonalShiftRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline StartZonalShiftRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline StartZonalShiftRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/StartZonalShiftResult.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/StartZonalShiftResult.h index a33a5659e28..2d6b8e963d5 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/StartZonalShiftResult.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/StartZonalShiftResult.h @@ -37,49 +37,56 @@ namespace Model /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline const Aws::String& GetAwayFrom() const{ return m_awayFrom; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const Aws::String& value) { m_awayFrom = value; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(Aws::String&& value) { m_awayFrom = std::move(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const char* value) { m_awayFrom.assign(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline StartZonalShiftResult& WithAwayFrom(const Aws::String& value) { SetAwayFrom(value); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline StartZonalShiftResult& WithAwayFrom(Aws::String&& value) { SetAwayFrom(std::move(value)); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline StartZonalShiftResult& WithAwayFrom(const char* value) { SetAwayFrom(value); return *this;} @@ -135,150 +142,150 @@ namespace Model /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTime = value; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTime = std::move(value); } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline StartZonalShiftResult& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;} /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline StartZonalShiftResult& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifier = value; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifier = std::move(value); } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifier.assign(value); } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline StartZonalShiftResult& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline StartZonalShiftResult& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline StartZonalShiftResult& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline StartZonalShiftResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline StartZonalShiftResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} @@ -286,45 +293,45 @@ namespace Model /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline const ZonalShiftStatus& GetStatus() const{ return m_status; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(const ZonalShiftStatus& value) { m_status = value; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(ZonalShiftStatus&& value) { m_status = std::move(value); } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline StartZonalShiftResult& WithStatus(const ZonalShiftStatus& value) { SetStatus(value); return *this;} /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline StartZonalShiftResult& WithStatus(ZonalShiftStatus&& value) { SetStatus(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdatePracticeRunConfigurationRequest.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdatePracticeRunConfigurationRequest.h new file mode 100644 index 00000000000..14dfbd8b7b9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdatePracticeRunConfigurationRequest.h @@ -0,0 +1,447 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + + /** + */ + class UpdatePracticeRunConfigurationRequest : public ARCZonalShiftRequest + { + public: + AWS_ARCZONALSHIFT_API UpdatePracticeRunConfigurationRequest(); + + // 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 "UpdatePracticeRunConfiguration"; } + + AWS_ARCZONALSHIFT_API Aws::String SerializePayload() const override; + + + /** + *

    Add, change, or remove blocked dates for a practice run in zonal + * autoshift.

    Optionally, you can block practice runs for specific calendar + * dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you + * specify dates, that dates and times for practice runs are in UTC. Separate + * multiple blocked dates with spaces.

    For example, if you have an + * application update scheduled to launch on May 1, 2024, and you don't want + * practice runs to shift traffic away at that time, you could set a blocked date + * for 2024-05-01.

    + */ + inline const Aws::Vector& GetBlockedDates() const{ return m_blockedDates; } + + /** + *

    Add, change, or remove blocked dates for a practice run in zonal + * autoshift.

    Optionally, you can block practice runs for specific calendar + * dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you + * specify dates, that dates and times for practice runs are in UTC. Separate + * multiple blocked dates with spaces.

    For example, if you have an + * application update scheduled to launch on May 1, 2024, and you don't want + * practice runs to shift traffic away at that time, you could set a blocked date + * for 2024-05-01.

    + */ + inline bool BlockedDatesHasBeenSet() const { return m_blockedDatesHasBeenSet; } + + /** + *

    Add, change, or remove blocked dates for a practice run in zonal + * autoshift.

    Optionally, you can block practice runs for specific calendar + * dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you + * specify dates, that dates and times for practice runs are in UTC. Separate + * multiple blocked dates with spaces.

    For example, if you have an + * application update scheduled to launch on May 1, 2024, and you don't want + * practice runs to shift traffic away at that time, you could set a blocked date + * for 2024-05-01.

    + */ + inline void SetBlockedDates(const Aws::Vector& value) { m_blockedDatesHasBeenSet = true; m_blockedDates = value; } + + /** + *

    Add, change, or remove blocked dates for a practice run in zonal + * autoshift.

    Optionally, you can block practice runs for specific calendar + * dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you + * specify dates, that dates and times for practice runs are in UTC. Separate + * multiple blocked dates with spaces.

    For example, if you have an + * application update scheduled to launch on May 1, 2024, and you don't want + * practice runs to shift traffic away at that time, you could set a blocked date + * for 2024-05-01.

    + */ + inline void SetBlockedDates(Aws::Vector&& value) { m_blockedDatesHasBeenSet = true; m_blockedDates = std::move(value); } + + /** + *

    Add, change, or remove blocked dates for a practice run in zonal + * autoshift.

    Optionally, you can block practice runs for specific calendar + * dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you + * specify dates, that dates and times for practice runs are in UTC. Separate + * multiple blocked dates with spaces.

    For example, if you have an + * application update scheduled to launch on May 1, 2024, and you don't want + * practice runs to shift traffic away at that time, you could set a blocked date + * for 2024-05-01.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithBlockedDates(const Aws::Vector& value) { SetBlockedDates(value); return *this;} + + /** + *

    Add, change, or remove blocked dates for a practice run in zonal + * autoshift.

    Optionally, you can block practice runs for specific calendar + * dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you + * specify dates, that dates and times for practice runs are in UTC. Separate + * multiple blocked dates with spaces.

    For example, if you have an + * application update scheduled to launch on May 1, 2024, and you don't want + * practice runs to shift traffic away at that time, you could set a blocked date + * for 2024-05-01.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithBlockedDates(Aws::Vector&& value) { SetBlockedDates(std::move(value)); return *this;} + + /** + *

    Add, change, or remove blocked dates for a practice run in zonal + * autoshift.

    Optionally, you can block practice runs for specific calendar + * dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you + * specify dates, that dates and times for practice runs are in UTC. Separate + * multiple blocked dates with spaces.

    For example, if you have an + * application update scheduled to launch on May 1, 2024, and you don't want + * practice runs to shift traffic away at that time, you could set a blocked date + * for 2024-05-01.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddBlockedDates(const Aws::String& value) { m_blockedDatesHasBeenSet = true; m_blockedDates.push_back(value); return *this; } + + /** + *

    Add, change, or remove blocked dates for a practice run in zonal + * autoshift.

    Optionally, you can block practice runs for specific calendar + * dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you + * specify dates, that dates and times for practice runs are in UTC. Separate + * multiple blocked dates with spaces.

    For example, if you have an + * application update scheduled to launch on May 1, 2024, and you don't want + * practice runs to shift traffic away at that time, you could set a blocked date + * for 2024-05-01.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddBlockedDates(Aws::String&& value) { m_blockedDatesHasBeenSet = true; m_blockedDates.push_back(std::move(value)); return *this; } + + /** + *

    Add, change, or remove blocked dates for a practice run in zonal + * autoshift.

    Optionally, you can block practice runs for specific calendar + * dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you + * specify dates, that dates and times for practice runs are in UTC. Separate + * multiple blocked dates with spaces.

    For example, if you have an + * application update scheduled to launch on May 1, 2024, and you don't want + * practice runs to shift traffic away at that time, you could set a blocked date + * for 2024-05-01.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddBlockedDates(const char* value) { m_blockedDatesHasBeenSet = true; m_blockedDates.push_back(value); return *this; } + + + /** + *

    Add, change, or remove windows of days and times for when you can, + * optionally, block Route 53 ARC from starting a practice run for a resource.

    + *

    The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when + * you specify dates, that dates and times for practice runs are in UTC. Also, be + * aware of potential time adjustments that might be required for daylight saving + * time differences. Separate multiple blocked windows with spaces.

    For + * example, say you run business report summaries three days a week. For this + * scenario, you might set the following recurring days and times as blocked + * windows, for example: MON-20:30-21:30 WED-20:30-21:30 + * FRI-20:30-21:30.

    + */ + inline const Aws::Vector& GetBlockedWindows() const{ return m_blockedWindows; } + + /** + *

    Add, change, or remove windows of days and times for when you can, + * optionally, block Route 53 ARC from starting a practice run for a resource.

    + *

    The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when + * you specify dates, that dates and times for practice runs are in UTC. Also, be + * aware of potential time adjustments that might be required for daylight saving + * time differences. Separate multiple blocked windows with spaces.

    For + * example, say you run business report summaries three days a week. For this + * scenario, you might set the following recurring days and times as blocked + * windows, for example: MON-20:30-21:30 WED-20:30-21:30 + * FRI-20:30-21:30.

    + */ + inline bool BlockedWindowsHasBeenSet() const { return m_blockedWindowsHasBeenSet; } + + /** + *

    Add, change, or remove windows of days and times for when you can, + * optionally, block Route 53 ARC from starting a practice run for a resource.

    + *

    The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when + * you specify dates, that dates and times for practice runs are in UTC. Also, be + * aware of potential time adjustments that might be required for daylight saving + * time differences. Separate multiple blocked windows with spaces.

    For + * example, say you run business report summaries three days a week. For this + * scenario, you might set the following recurring days and times as blocked + * windows, for example: MON-20:30-21:30 WED-20:30-21:30 + * FRI-20:30-21:30.

    + */ + inline void SetBlockedWindows(const Aws::Vector& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows = value; } + + /** + *

    Add, change, or remove windows of days and times for when you can, + * optionally, block Route 53 ARC from starting a practice run for a resource.

    + *

    The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when + * you specify dates, that dates and times for practice runs are in UTC. Also, be + * aware of potential time adjustments that might be required for daylight saving + * time differences. Separate multiple blocked windows with spaces.

    For + * example, say you run business report summaries three days a week. For this + * scenario, you might set the following recurring days and times as blocked + * windows, for example: MON-20:30-21:30 WED-20:30-21:30 + * FRI-20:30-21:30.

    + */ + inline void SetBlockedWindows(Aws::Vector&& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows = std::move(value); } + + /** + *

    Add, change, or remove windows of days and times for when you can, + * optionally, block Route 53 ARC from starting a practice run for a resource.

    + *

    The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when + * you specify dates, that dates and times for practice runs are in UTC. Also, be + * aware of potential time adjustments that might be required for daylight saving + * time differences. Separate multiple blocked windows with spaces.

    For + * example, say you run business report summaries three days a week. For this + * scenario, you might set the following recurring days and times as blocked + * windows, for example: MON-20:30-21:30 WED-20:30-21:30 + * FRI-20:30-21:30.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithBlockedWindows(const Aws::Vector& value) { SetBlockedWindows(value); return *this;} + + /** + *

    Add, change, or remove windows of days and times for when you can, + * optionally, block Route 53 ARC from starting a practice run for a resource.

    + *

    The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when + * you specify dates, that dates and times for practice runs are in UTC. Also, be + * aware of potential time adjustments that might be required for daylight saving + * time differences. Separate multiple blocked windows with spaces.

    For + * example, say you run business report summaries three days a week. For this + * scenario, you might set the following recurring days and times as blocked + * windows, for example: MON-20:30-21:30 WED-20:30-21:30 + * FRI-20:30-21:30.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithBlockedWindows(Aws::Vector&& value) { SetBlockedWindows(std::move(value)); return *this;} + + /** + *

    Add, change, or remove windows of days and times for when you can, + * optionally, block Route 53 ARC from starting a practice run for a resource.

    + *

    The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when + * you specify dates, that dates and times for practice runs are in UTC. Also, be + * aware of potential time adjustments that might be required for daylight saving + * time differences. Separate multiple blocked windows with spaces.

    For + * example, say you run business report summaries three days a week. For this + * scenario, you might set the following recurring days and times as blocked + * windows, for example: MON-20:30-21:30 WED-20:30-21:30 + * FRI-20:30-21:30.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddBlockedWindows(const Aws::String& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.push_back(value); return *this; } + + /** + *

    Add, change, or remove windows of days and times for when you can, + * optionally, block Route 53 ARC from starting a practice run for a resource.

    + *

    The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when + * you specify dates, that dates and times for practice runs are in UTC. Also, be + * aware of potential time adjustments that might be required for daylight saving + * time differences. Separate multiple blocked windows with spaces.

    For + * example, say you run business report summaries three days a week. For this + * scenario, you might set the following recurring days and times as blocked + * windows, for example: MON-20:30-21:30 WED-20:30-21:30 + * FRI-20:30-21:30.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddBlockedWindows(Aws::String&& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.push_back(std::move(value)); return *this; } + + /** + *

    Add, change, or remove windows of days and times for when you can, + * optionally, block Route 53 ARC from starting a practice run for a resource.

    + *

    The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when + * you specify dates, that dates and times for practice runs are in UTC. Also, be + * aware of potential time adjustments that might be required for daylight saving + * time differences. Separate multiple blocked windows with spaces.

    For + * example, say you run business report summaries three days a week. For this + * scenario, you might set the following recurring days and times as blocked + * windows, for example: MON-20:30-21:30 WED-20:30-21:30 + * FRI-20:30-21:30.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddBlockedWindows(const char* value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.push_back(value); return *this; } + + + /** + *

    Add, change, or remove the Amazon CloudWatch alarm that you optionally + * specify as the blocking alarm for practice runs.

    + */ + inline const Aws::Vector& GetBlockingAlarms() const{ return m_blockingAlarms; } + + /** + *

    Add, change, or remove the Amazon CloudWatch alarm that you optionally + * specify as the blocking alarm for practice runs.

    + */ + inline bool BlockingAlarmsHasBeenSet() const { return m_blockingAlarmsHasBeenSet; } + + /** + *

    Add, change, or remove the Amazon CloudWatch alarm that you optionally + * specify as the blocking alarm for practice runs.

    + */ + inline void SetBlockingAlarms(const Aws::Vector& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms = value; } + + /** + *

    Add, change, or remove the Amazon CloudWatch alarm that you optionally + * specify as the blocking alarm for practice runs.

    + */ + inline void SetBlockingAlarms(Aws::Vector&& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms = std::move(value); } + + /** + *

    Add, change, or remove the Amazon CloudWatch alarm that you optionally + * specify as the blocking alarm for practice runs.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithBlockingAlarms(const Aws::Vector& value) { SetBlockingAlarms(value); return *this;} + + /** + *

    Add, change, or remove the Amazon CloudWatch alarm that you optionally + * specify as the blocking alarm for practice runs.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithBlockingAlarms(Aws::Vector&& value) { SetBlockingAlarms(std::move(value)); return *this;} + + /** + *

    Add, change, or remove the Amazon CloudWatch alarm that you optionally + * specify as the blocking alarm for practice runs.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddBlockingAlarms(const ControlCondition& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms.push_back(value); return *this; } + + /** + *

    Add, change, or remove the Amazon CloudWatch alarm that you optionally + * specify as the blocking alarm for practice runs.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddBlockingAlarms(ControlCondition&& value) { m_blockingAlarmsHasBeenSet = true; m_blockingAlarms.push_back(std::move(value)); return *this; } + + + /** + *

    Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice + * runs.

    + */ + inline const Aws::Vector& GetOutcomeAlarms() const{ return m_outcomeAlarms; } + + /** + *

    Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice + * runs.

    + */ + inline bool OutcomeAlarmsHasBeenSet() const { return m_outcomeAlarmsHasBeenSet; } + + /** + *

    Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice + * runs.

    + */ + inline void SetOutcomeAlarms(const Aws::Vector& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms = value; } + + /** + *

    Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice + * runs.

    + */ + inline void SetOutcomeAlarms(Aws::Vector&& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms = std::move(value); } + + /** + *

    Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice + * runs.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithOutcomeAlarms(const Aws::Vector& value) { SetOutcomeAlarms(value); return *this;} + + /** + *

    Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice + * runs.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithOutcomeAlarms(Aws::Vector&& value) { SetOutcomeAlarms(std::move(value)); return *this;} + + /** + *

    Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice + * runs.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddOutcomeAlarms(const ControlCondition& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms.push_back(value); return *this; } + + /** + *

    Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice + * runs.

    + */ + inline UpdatePracticeRunConfigurationRequest& AddOutcomeAlarms(ControlCondition&& value) { m_outcomeAlarmsHasBeenSet = true; m_outcomeAlarms.push_back(std::move(value)); return *this; } + + + /** + *

    The identifier for the resource that you want to update the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } + + /** + *

    The identifier for the resource that you want to update the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } + + /** + *

    The identifier for the resource that you want to update the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } + + /** + *

    The identifier for the resource that you want to update the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } + + /** + *

    The identifier for the resource that you want to update the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } + + /** + *

    The identifier for the resource that you want to update the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} + + /** + *

    The identifier for the resource that you want to update the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} + + /** + *

    The identifier for the resource that you want to update the practice run + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline UpdatePracticeRunConfigurationRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} + + private: + + Aws::Vector m_blockedDates; + bool m_blockedDatesHasBeenSet = false; + + Aws::Vector m_blockedWindows; + bool m_blockedWindowsHasBeenSet = false; + + Aws::Vector m_blockingAlarms; + bool m_blockingAlarmsHasBeenSet = false; + + Aws::Vector m_outcomeAlarms; + bool m_outcomeAlarmsHasBeenSet = false; + + Aws::String m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdatePracticeRunConfigurationResult.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdatePracticeRunConfigurationResult.h new file mode 100644 index 00000000000..261f7b9a68a --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdatePracticeRunConfigurationResult.h @@ -0,0 +1,209 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + class UpdatePracticeRunConfigurationResult + { + public: + AWS_ARCZONALSHIFT_API UpdatePracticeRunConfigurationResult(); + AWS_ARCZONALSHIFT_API UpdatePracticeRunConfigurationResult(const Aws::AmazonWebServiceResult& result); + AWS_ARCZONALSHIFT_API UpdatePracticeRunConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The Amazon Resource Name (ARN) of the resource that you updated the practice + * run for.

    + */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you updated the practice + * run for.

    + */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you updated the practice + * run for.

    + */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you updated the practice + * run for.

    + */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you updated the practice + * run for.

    + */ + inline UpdatePracticeRunConfigurationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you updated the practice + * run for.

    + */ + inline UpdatePracticeRunConfigurationResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you updated the practice + * run for.

    + */ + inline UpdatePracticeRunConfigurationResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

    The name of the resource that you updated the practice run for.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

    The name of the resource that you updated the practice run for.

    + */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

    The name of the resource that you updated the practice run for.

    + */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

    The name of the resource that you updated the practice run for.

    + */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

    The name of the resource that you updated the practice run for.

    + */ + inline UpdatePracticeRunConfigurationResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

    The name of the resource that you updated the practice run for.

    + */ + inline UpdatePracticeRunConfigurationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

    The name of the resource that you updated the practice run for.

    + */ + inline UpdatePracticeRunConfigurationResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

    The practice run configuration that was updated.

    + */ + inline const PracticeRunConfiguration& GetPracticeRunConfiguration() const{ return m_practiceRunConfiguration; } + + /** + *

    The practice run configuration that was updated.

    + */ + inline void SetPracticeRunConfiguration(const PracticeRunConfiguration& value) { m_practiceRunConfiguration = value; } + + /** + *

    The practice run configuration that was updated.

    + */ + inline void SetPracticeRunConfiguration(PracticeRunConfiguration&& value) { m_practiceRunConfiguration = std::move(value); } + + /** + *

    The practice run configuration that was updated.

    + */ + inline UpdatePracticeRunConfigurationResult& WithPracticeRunConfiguration(const PracticeRunConfiguration& value) { SetPracticeRunConfiguration(value); return *this;} + + /** + *

    The practice run configuration that was updated.

    + */ + inline UpdatePracticeRunConfigurationResult& WithPracticeRunConfiguration(PracticeRunConfiguration&& value) { SetPracticeRunConfiguration(std::move(value)); return *this;} + + + /** + *

    The zonal autoshift status for the resource that you updated the practice run + * for.

    + */ + inline const ZonalAutoshiftStatus& GetZonalAutoshiftStatus() const{ return m_zonalAutoshiftStatus; } + + /** + *

    The zonal autoshift status for the resource that you updated the practice run + * for.

    + */ + inline void SetZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { m_zonalAutoshiftStatus = value; } + + /** + *

    The zonal autoshift status for the resource that you updated the practice run + * for.

    + */ + inline void SetZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { m_zonalAutoshiftStatus = std::move(value); } + + /** + *

    The zonal autoshift status for the resource that you updated the practice run + * for.

    + */ + inline UpdatePracticeRunConfigurationResult& WithZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { SetZonalAutoshiftStatus(value); return *this;} + + /** + *

    The zonal autoshift status for the resource that you updated the practice run + * for.

    + */ + inline UpdatePracticeRunConfigurationResult& WithZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { SetZonalAutoshiftStatus(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 UpdatePracticeRunConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UpdatePracticeRunConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UpdatePracticeRunConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_name; + + PracticeRunConfiguration m_practiceRunConfiguration; + + ZonalAutoshiftStatus m_zonalAutoshiftStatus; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalAutoshiftConfigurationRequest.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalAutoshiftConfigurationRequest.h new file mode 100644 index 00000000000..0f27e09a5f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalAutoshiftConfigurationRequest.h @@ -0,0 +1,140 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + + /** + */ + class UpdateZonalAutoshiftConfigurationRequest : public ARCZonalShiftRequest + { + public: + AWS_ARCZONALSHIFT_API UpdateZonalAutoshiftConfigurationRequest(); + + // 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 "UpdateZonalAutoshiftConfiguration"; } + + AWS_ARCZONALSHIFT_API Aws::String SerializePayload() const override; + + + /** + *

    The identifier for the resource that you want to update the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } + + /** + *

    The identifier for the resource that you want to update the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } + + /** + *

    The identifier for the resource that you want to update the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } + + /** + *

    The identifier for the resource that you want to update the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } + + /** + *

    The identifier for the resource that you want to update the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } + + /** + *

    The identifier for the resource that you want to update the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline UpdateZonalAutoshiftConfigurationRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} + + /** + *

    The identifier for the resource that you want to update the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline UpdateZonalAutoshiftConfigurationRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} + + /** + *

    The identifier for the resource that you want to update the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline UpdateZonalAutoshiftConfigurationRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} + + + /** + *

    The zonal autoshift status for the resource that you want to update the zonal + * autoshift configuration for.

    + */ + inline const ZonalAutoshiftStatus& GetZonalAutoshiftStatus() const{ return m_zonalAutoshiftStatus; } + + /** + *

    The zonal autoshift status for the resource that you want to update the zonal + * autoshift configuration for.

    + */ + inline bool ZonalAutoshiftStatusHasBeenSet() const { return m_zonalAutoshiftStatusHasBeenSet; } + + /** + *

    The zonal autoshift status for the resource that you want to update the zonal + * autoshift configuration for.

    + */ + inline void SetZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { m_zonalAutoshiftStatusHasBeenSet = true; m_zonalAutoshiftStatus = value; } + + /** + *

    The zonal autoshift status for the resource that you want to update the zonal + * autoshift configuration for.

    + */ + inline void SetZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { m_zonalAutoshiftStatusHasBeenSet = true; m_zonalAutoshiftStatus = std::move(value); } + + /** + *

    The zonal autoshift status for the resource that you want to update the zonal + * autoshift configuration for.

    + */ + inline UpdateZonalAutoshiftConfigurationRequest& WithZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { SetZonalAutoshiftStatus(value); return *this;} + + /** + *

    The zonal autoshift status for the resource that you want to update the zonal + * autoshift configuration for.

    + */ + inline UpdateZonalAutoshiftConfigurationRequest& WithZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { SetZonalAutoshiftStatus(std::move(value)); return *this;} + + private: + + Aws::String m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + + ZonalAutoshiftStatus m_zonalAutoshiftStatus; + bool m_zonalAutoshiftStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalAutoshiftConfigurationResult.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalAutoshiftConfigurationResult.h new file mode 100644 index 00000000000..1b493b0391f --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalAutoshiftConfigurationResult.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 + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ARCZonalShift +{ +namespace Model +{ + class UpdateZonalAutoshiftConfigurationResult + { + public: + AWS_ARCZONALSHIFT_API UpdateZonalAutoshiftConfigurationResult(); + AWS_ARCZONALSHIFT_API UpdateZonalAutoshiftConfigurationResult(const Aws::AmazonWebServiceResult& result); + AWS_ARCZONALSHIFT_API UpdateZonalAutoshiftConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The identifier for the resource that you updated the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } + + /** + *

    The identifier for the resource that you updated the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifier = value; } + + /** + *

    The identifier for the resource that you updated the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifier = std::move(value); } + + /** + *

    The identifier for the resource that you updated the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline void SetResourceIdentifier(const char* value) { m_resourceIdentifier.assign(value); } + + /** + *

    The identifier for the resource that you updated the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline UpdateZonalAutoshiftConfigurationResult& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} + + /** + *

    The identifier for the resource that you updated the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline UpdateZonalAutoshiftConfigurationResult& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} + + /** + *

    The identifier for the resource that you updated the zonal autoshift + * configuration for. The identifier is the Amazon Resource Name (ARN) for the + * resource.

    + */ + inline UpdateZonalAutoshiftConfigurationResult& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} + + + /** + *

    The zonal autoshift status for the resource that you updated the zonal + * autoshift configuration for.

    + */ + inline const ZonalAutoshiftStatus& GetZonalAutoshiftStatus() const{ return m_zonalAutoshiftStatus; } + + /** + *

    The zonal autoshift status for the resource that you updated the zonal + * autoshift configuration for.

    + */ + inline void SetZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { m_zonalAutoshiftStatus = value; } + + /** + *

    The zonal autoshift status for the resource that you updated the zonal + * autoshift configuration for.

    + */ + inline void SetZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { m_zonalAutoshiftStatus = std::move(value); } + + /** + *

    The zonal autoshift status for the resource that you updated the zonal + * autoshift configuration for.

    + */ + inline UpdateZonalAutoshiftConfigurationResult& WithZonalAutoshiftStatus(const ZonalAutoshiftStatus& value) { SetZonalAutoshiftStatus(value); return *this;} + + /** + *

    The zonal autoshift status for the resource that you updated the zonal + * autoshift configuration for.

    + */ + inline UpdateZonalAutoshiftConfigurationResult& WithZonalAutoshiftStatus(ZonalAutoshiftStatus&& value) { SetZonalAutoshiftStatus(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 UpdateZonalAutoshiftConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UpdateZonalAutoshiftConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UpdateZonalAutoshiftConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_resourceIdentifier; + + ZonalAutoshiftStatus m_zonalAutoshiftStatus; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalShiftResult.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalShiftResult.h index 58f4e6dd1d2..b9a91b6f2b5 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalShiftResult.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdateZonalShiftResult.h @@ -37,49 +37,56 @@ namespace Model /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline const Aws::String& GetAwayFrom() const{ return m_awayFrom; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const Aws::String& value) { m_awayFrom = value; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(Aws::String&& value) { m_awayFrom = std::move(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const char* value) { m_awayFrom.assign(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline UpdateZonalShiftResult& WithAwayFrom(const Aws::String& value) { SetAwayFrom(value); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline UpdateZonalShiftResult& WithAwayFrom(Aws::String&& value) { SetAwayFrom(std::move(value)); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline UpdateZonalShiftResult& WithAwayFrom(const char* value) { SetAwayFrom(value); return *this;} @@ -135,150 +142,150 @@ namespace Model /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTime = value; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTime = std::move(value); } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline UpdateZonalShiftResult& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;} /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline UpdateZonalShiftResult& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifier = value; } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifier = std::move(value); } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifier.assign(value); } /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline UpdateZonalShiftResult& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline UpdateZonalShiftResult& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** - *

    The identifier for the resource to include in a zonal shift. The identifier - * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can - * only start a zonal shift for Network Load Balancers and Application Load - * Balancers with cross-zone load balancing turned off.

    + *

    The identifier for the resource to shift away traffic for. The identifier is + * the Amazon Resource Name (ARN) for the resource.

    At this time, supported + * resources are Network Load Balancers and Application Load Balancers with + * cross-zone load balancing turned off.

    */ inline UpdateZonalShiftResult& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline UpdateZonalShiftResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline UpdateZonalShiftResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} @@ -286,45 +293,45 @@ namespace Model /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline const ZonalShiftStatus& GetStatus() const{ return m_status; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(const ZonalShiftStatus& value) { m_status = value; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(ZonalShiftStatus&& value) { m_status = std::move(value); } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline UpdateZonalShiftResult& WithStatus(const ZonalShiftStatus& value) { SetStatus(value); return *this;} /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline UpdateZonalShiftResult& WithStatus(ZonalShiftStatus&& value) { SetStatus(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ValidationException.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ValidationException.h index 5d19497617f..b470bd5a8d4 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ValidationException.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ValidationException.h @@ -25,8 +25,8 @@ namespace Model { /** - *

    The input fails to satisfy the constraints specified by an AWS - * service.

    See Also:

    The input fails to satisfy the constraints specified by an Amazon Web + * Services service.

    See Also:

    AWS * API Reference

    */ diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ValidationExceptionReason.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ValidationExceptionReason.h index 57b8fa11036..144c715a774 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ValidationExceptionReason.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ValidationExceptionReason.h @@ -22,7 +22,10 @@ namespace Model InvalidToken, InvalidResourceIdentifier, InvalidAz, - UnsupportedAz + UnsupportedAz, + InvalidAlarmCondition, + InvalidConditionType, + InvalidPracticeBlocker }; namespace ValidationExceptionReasonMapper diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalAutoshiftStatus.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalAutoshiftStatus.h new file mode 100644 index 00000000000..1cf26b1685d --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalAutoshiftStatus.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 ARCZonalShift +{ +namespace Model +{ + enum class ZonalAutoshiftStatus + { + NOT_SET, + ENABLED, + DISABLED + }; + +namespace ZonalAutoshiftStatusMapper +{ +AWS_ARCZONALSHIFT_API ZonalAutoshiftStatus GetZonalAutoshiftStatusForName(const Aws::String& name); + +AWS_ARCZONALSHIFT_API Aws::String GetNameForZonalAutoshiftStatus(ZonalAutoshiftStatus value); +} // namespace ZonalAutoshiftStatusMapper +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalShiftInResource.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalShiftInResource.h index 39e9e973bc1..6c5748baf03 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalShiftInResource.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalShiftInResource.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -41,38 +42,116 @@ namespace Model /** - *

    An appliedStatus for a zonal shift for a resource can have one - * of two values: APPLIED or NOT_APPLIED.

    + *

    The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

    + *

    The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

    For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

    */ inline const AppliedStatus& GetAppliedStatus() const{ return m_appliedStatus; } /** - *

    An appliedStatus for a zonal shift for a resource can have one - * of two values: APPLIED or NOT_APPLIED.

    + *

    The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

    + *

    The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

    For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

    */ inline bool AppliedStatusHasBeenSet() const { return m_appliedStatusHasBeenSet; } /** - *

    An appliedStatus for a zonal shift for a resource can have one - * of two values: APPLIED or NOT_APPLIED.

    + *

    The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

    + *

    The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

    For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

    */ inline void SetAppliedStatus(const AppliedStatus& value) { m_appliedStatusHasBeenSet = true; m_appliedStatus = value; } /** - *

    An appliedStatus for a zonal shift for a resource can have one - * of two values: APPLIED or NOT_APPLIED.

    + *

    The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

    + *

    The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

    For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

    */ inline void SetAppliedStatus(AppliedStatus&& value) { m_appliedStatusHasBeenSet = true; m_appliedStatus = std::move(value); } /** - *

    An appliedStatus for a zonal shift for a resource can have one - * of two values: APPLIED or NOT_APPLIED.

    + *

    The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

    + *

    The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

    For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

    */ inline ZonalShiftInResource& WithAppliedStatus(const AppliedStatus& value) { SetAppliedStatus(value); return *this;} /** - *

    An appliedStatus for a zonal shift for a resource can have one - * of two values: APPLIED or NOT_APPLIED.

    + *

    The appliedStatus field specifies which application traffic + * shift is in effect for a resource when there is more than one traffic shift + * active. There can be more than one application traffic shift in progress at the + * same time - that is, practice run zonal shifts, customer-started zonal shifts, + * or an autoshift. The appliedStatus field for an autoshift for a + * resource can have one of two values: APPLIED or + * NOT_APPLIED. The zonal shift or autoshift that is currently in + * effect for the resource has an applied status set to APPLIED.

    + *

    The overall principle for precedence is that zonal shifts that you start as a + * customer take precedence autoshifts, which take precedence over practice runs. + * That is, customer-started zonal shifts > autoshifts > practice run zonal + * shifts.

    For more information, see How + * zonal autoshift and practice runs work in the Amazon Route 53 Application + * Recovery Controller Developer Guide.

    */ inline ZonalShiftInResource& WithAppliedStatus(AppliedStatus&& value) { SetAppliedStatus(std::move(value)); return *this;} @@ -80,56 +159,64 @@ namespace Model /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline const Aws::String& GetAwayFrom() const{ return m_awayFrom; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline bool AwayFromHasBeenSet() const { return m_awayFromHasBeenSet; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const Aws::String& value) { m_awayFromHasBeenSet = true; m_awayFrom = value; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(Aws::String&& value) { m_awayFromHasBeenSet = true; m_awayFrom = std::move(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const char* value) { m_awayFromHasBeenSet = true; m_awayFrom.assign(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline ZonalShiftInResource& WithAwayFrom(const Aws::String& value) { SetAwayFrom(value); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline ZonalShiftInResource& WithAwayFrom(Aws::String&& value) { SetAwayFrom(std::move(value)); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline ZonalShiftInResource& WithAwayFrom(const char* value) { SetAwayFrom(value); return *this;} @@ -192,84 +279,205 @@ namespace Model /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline bool ExpiryTimeHasBeenSet() const { return m_expiryTimeHasBeenSet; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = value; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = std::move(value); } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline ZonalShiftInResource& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;} /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline ZonalShiftInResource& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;} + /** + *

    The outcome, or end state, returned for a practice run. The following values + * can be returned:

    • PENDING: Outcome value when a practice + * run is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed the expected 30 minute zonal shift.

    • + *
    • INTERRUPTED: Outcome value when the practice run was stopped + * before the expected 30 minute zonal shift duration, or there was another problem + * with the practice run that created an inconclusive outcome.

    • + * FAILED: Outcome value when the outcome alarm specified for the practice + * run configuration goes into an ALARM state during the practice run, + * and the practice run was not interrupted before it completed.

    + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline const PracticeRunOutcome& GetPracticeRunOutcome() const{ return m_practiceRunOutcome; } + + /** + *

    The outcome, or end state, returned for a practice run. The following values + * can be returned:

    • PENDING: Outcome value when a practice + * run is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed the expected 30 minute zonal shift.

    • + *
    • INTERRUPTED: Outcome value when the practice run was stopped + * before the expected 30 minute zonal shift duration, or there was another problem + * with the practice run that created an inconclusive outcome.

    • + * FAILED: Outcome value when the outcome alarm specified for the practice + * run configuration goes into an ALARM state during the practice run, + * and the practice run was not interrupted before it completed.

    + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline bool PracticeRunOutcomeHasBeenSet() const { return m_practiceRunOutcomeHasBeenSet; } + + /** + *

    The outcome, or end state, returned for a practice run. The following values + * can be returned:

    • PENDING: Outcome value when a practice + * run is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed the expected 30 minute zonal shift.

    • + *
    • INTERRUPTED: Outcome value when the practice run was stopped + * before the expected 30 minute zonal shift duration, or there was another problem + * with the practice run that created an inconclusive outcome.

    • + * FAILED: Outcome value when the outcome alarm specified for the practice + * run configuration goes into an ALARM state during the practice run, + * and the practice run was not interrupted before it completed.

    + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline void SetPracticeRunOutcome(const PracticeRunOutcome& value) { m_practiceRunOutcomeHasBeenSet = true; m_practiceRunOutcome = value; } + + /** + *

    The outcome, or end state, returned for a practice run. The following values + * can be returned:

    • PENDING: Outcome value when a practice + * run is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed the expected 30 minute zonal shift.

    • + *
    • INTERRUPTED: Outcome value when the practice run was stopped + * before the expected 30 minute zonal shift duration, or there was another problem + * with the practice run that created an inconclusive outcome.

    • + * FAILED: Outcome value when the outcome alarm specified for the practice + * run configuration goes into an ALARM state during the practice run, + * and the practice run was not interrupted before it completed.

    + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline void SetPracticeRunOutcome(PracticeRunOutcome&& value) { m_practiceRunOutcomeHasBeenSet = true; m_practiceRunOutcome = std::move(value); } + + /** + *

    The outcome, or end state, returned for a practice run. The following values + * can be returned:

    • PENDING: Outcome value when a practice + * run is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed the expected 30 minute zonal shift.

    • + *
    • INTERRUPTED: Outcome value when the practice run was stopped + * before the expected 30 minute zonal shift duration, or there was another problem + * with the practice run that created an inconclusive outcome.

    • + * FAILED: Outcome value when the outcome alarm specified for the practice + * run configuration goes into an ALARM state during the practice run, + * and the practice run was not interrupted before it completed.

    + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline ZonalShiftInResource& WithPracticeRunOutcome(const PracticeRunOutcome& value) { SetPracticeRunOutcome(value); return *this;} + + /** + *

    The outcome, or end state, returned for a practice run. The following values + * can be returned:

    • PENDING: Outcome value when a practice + * run is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed the expected 30 minute zonal shift.

    • + *
    • INTERRUPTED: Outcome value when the practice run was stopped + * before the expected 30 minute zonal shift duration, or there was another problem + * with the practice run that created an inconclusive outcome.

    • + * FAILED: Outcome value when the outcome alarm specified for the practice + * run configuration goes into an ALARM state during the practice run, + * and the practice run was not interrupted before it completed.

    + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline ZonalShiftInResource& WithPracticeRunOutcome(PracticeRunOutcome&& value) { SetPracticeRunOutcome(std::move(value)); return *this;} + + /** *

    The identifier for the resource to include in a zonal shift. The identifier * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can @@ -336,32 +544,32 @@ namespace Model /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline ZonalShiftInResource& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline ZonalShiftInResource& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} @@ -420,6 +628,9 @@ namespace Model Aws::Utils::DateTime m_expiryTime; bool m_expiryTimeHasBeenSet = false; + PracticeRunOutcome m_practiceRunOutcome; + bool m_practiceRunOutcomeHasBeenSet = false; + Aws::String m_resourceIdentifier; bool m_resourceIdentifierHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalShiftSummary.h b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalShiftSummary.h index c5e45517609..f80d5f95f86 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalShiftSummary.h +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ZonalShiftSummary.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -26,19 +27,14 @@ namespace Model { /** - *

    You start a zonal shift to temporarily move load balancer traffic away from - * an Availability Zone in a AWS Region. A zonal shift helps your application - * recover immediately, for example, from a developer's bad code deployment or from - * an AWS infrastructure failure in a single Availability Zone. You can start a - * zonal shift in Route 53 ARC only for managed resources in your account in an AWS - * Region. Supported AWS resources are automatically registered with Route 53 - * ARC.

    Zonal shifts are temporary. A zonal shift can be active for up to - * three days (72 hours).

    When you start a zonal shift, you specify how long - * you want it to be active, which Amazon Route 53 Application Recovery Controller - * converts to an expiry time (expiration time). You can cancel a zonal shift, for - * example, if you're ready to restore traffic to the Availability Zone. Or you can - * extend the zonal shift by updating the expiration so the zonal shift is active - * longer.

    See Also:

    Lists information about zonal shifts in Amazon Route 53 Application Recovery + * Controller, including zonal shifts that you start yourself and zonal shifts that + * Route 53 ARC starts on your behalf for practice runs with zonal autoshift.

    + *

    Zonal shifts are temporary, including customer-started zonal shifts and the + * zonal autoshift practice run zonal shifts that Route 53 ARC starts weekly, on + * your behalf. A zonal shift that a customer starts can be active for up to three + * days (72 hours). A practice run zonal shift has a 30 minute + * duration.

    See Also:

    AWS * API Reference

    */ @@ -54,56 +50,64 @@ namespace Model /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline const Aws::String& GetAwayFrom() const{ return m_awayFrom; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline bool AwayFromHasBeenSet() const { return m_awayFromHasBeenSet; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const Aws::String& value) { m_awayFromHasBeenSet = true; m_awayFrom = value; } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(Aws::String&& value) { m_awayFromHasBeenSet = true; m_awayFrom = std::move(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline void SetAwayFrom(const char* value) { m_awayFromHasBeenSet = true; m_awayFrom.assign(value); } /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline ZonalShiftSummary& WithAwayFrom(const Aws::String& value) { SetAwayFrom(value); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline ZonalShiftSummary& WithAwayFrom(Aws::String&& value) { SetAwayFrom(std::move(value)); return *this;} /** *

    The Availability Zone that traffic is moved away from for a resource when you * start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - * the resource is instead moved to other Availability Zones in the AWS Region.

    + * the resource is instead moved to other Availability Zones in the Amazon Web + * Services Region.

    */ inline ZonalShiftSummary& WithAwayFrom(const char* value) { SetAwayFrom(value); return *this;} @@ -166,84 +170,199 @@ namespace Model /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline bool ExpiryTimeHasBeenSet() const { return m_expiryTimeHasBeenSet; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = value; } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = std::move(value); } /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline ZonalShiftSummary& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;} /** - *

    The expiry time (expiration time) for the zonal shift. A zonal shift is - * temporary and must be set to expire when you start the zonal shift. You can - * initially set a zonal shift to expire in a maximum of three days (72 hours). + *

    The expiry time (expiration time) for a customer-started zonal shift. A zonal + * shift is temporary and must be set to expire when you start the zonal shift. You + * can initially set a zonal shift to expire in a maximum of three days (72 hours). * However, you can update a zonal shift to set a new expiration at any time.

    *

    When you start a zonal shift, you specify how long you want it to be active, * which Route 53 ARC converts to an expiry time (expiration time). You can cancel - * a zonal shift, for example, if you're ready to restore traffic to the - * Availability Zone. Or you can update the zonal shift to specify another length - * of time to expire in.

    + * a zonal shift when you're ready to restore traffic to the Availability Zone, or + * just wait for it to expire. Or you can update the zonal shift to specify another + * length of time to expire in.

    */ inline ZonalShiftSummary& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;} + /** + *

    The outcome, or end state, of a practice run. The following values can be + * returned:

    • PENDING: Outcome value when the practice run + * is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed.

    • INTERRUPTED: Outcome + * value when the practice run did not run for the expected 30 minutes or there was + * another problem with the practice run that created an inconclusive outcome.

      + *
    • FAILED: Outcome value when the outcome alarm specified for + * the practice run configuration goes into an ALARM state during the + * practice run, and the practice run was not interrupted before it completed.

      + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline const PracticeRunOutcome& GetPracticeRunOutcome() const{ return m_practiceRunOutcome; } + + /** + *

    The outcome, or end state, of a practice run. The following values can be + * returned:

    • PENDING: Outcome value when the practice run + * is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed.

    • INTERRUPTED: Outcome + * value when the practice run did not run for the expected 30 minutes or there was + * another problem with the practice run that created an inconclusive outcome.

      + *
    • FAILED: Outcome value when the outcome alarm specified for + * the practice run configuration goes into an ALARM state during the + * practice run, and the practice run was not interrupted before it completed.

      + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline bool PracticeRunOutcomeHasBeenSet() const { return m_practiceRunOutcomeHasBeenSet; } + + /** + *

    The outcome, or end state, of a practice run. The following values can be + * returned:

    • PENDING: Outcome value when the practice run + * is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed.

    • INTERRUPTED: Outcome + * value when the practice run did not run for the expected 30 minutes or there was + * another problem with the practice run that created an inconclusive outcome.

      + *
    • FAILED: Outcome value when the outcome alarm specified for + * the practice run configuration goes into an ALARM state during the + * practice run, and the practice run was not interrupted before it completed.

      + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline void SetPracticeRunOutcome(const PracticeRunOutcome& value) { m_practiceRunOutcomeHasBeenSet = true; m_practiceRunOutcome = value; } + + /** + *

    The outcome, or end state, of a practice run. The following values can be + * returned:

    • PENDING: Outcome value when the practice run + * is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed.

    • INTERRUPTED: Outcome + * value when the practice run did not run for the expected 30 minutes or there was + * another problem with the practice run that created an inconclusive outcome.

      + *
    • FAILED: Outcome value when the outcome alarm specified for + * the practice run configuration goes into an ALARM state during the + * practice run, and the practice run was not interrupted before it completed.

      + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline void SetPracticeRunOutcome(PracticeRunOutcome&& value) { m_practiceRunOutcomeHasBeenSet = true; m_practiceRunOutcome = std::move(value); } + + /** + *

    The outcome, or end state, of a practice run. The following values can be + * returned:

    • PENDING: Outcome value when the practice run + * is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed.

    • INTERRUPTED: Outcome + * value when the practice run did not run for the expected 30 minutes or there was + * another problem with the practice run that created an inconclusive outcome.

      + *
    • FAILED: Outcome value when the outcome alarm specified for + * the practice run configuration goes into an ALARM state during the + * practice run, and the practice run was not interrupted before it completed.

      + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline ZonalShiftSummary& WithPracticeRunOutcome(const PracticeRunOutcome& value) { SetPracticeRunOutcome(value); return *this;} + + /** + *

    The outcome, or end state, of a practice run. The following values can be + * returned:

    • PENDING: Outcome value when the practice run + * is in progress.

    • SUCCEEDED: Outcome value when the + * outcome alarm specified for the practice run configuration does not go into an + * ALARM state during the practice run, and the practice run was not + * interrupted before it completed.

    • INTERRUPTED: Outcome + * value when the practice run did not run for the expected 30 minutes or there was + * another problem with the practice run that created an inconclusive outcome.

      + *
    • FAILED: Outcome value when the outcome alarm specified for + * the practice run configuration goes into an ALARM state during the + * practice run, and the practice run was not interrupted before it completed.

      + *

    For more information about practice run outcomes, see + * Considerations when you configure zonal autoshift in the Amazon Route 53 + * Application Recovery Controller Developer Guide.

    + */ + inline ZonalShiftSummary& WithPracticeRunOutcome(PracticeRunOutcome&& value) { SetPracticeRunOutcome(std::move(value)); return *this;} + + /** *

    The identifier for the resource to include in a zonal shift. The identifier * is the Amazon Resource Name (ARN) for the resource.

    At this time, you can @@ -310,32 +429,32 @@ namespace Model /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline ZonalShiftSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** - *

    The time (UTC) when the zonal shift is started.

    + *

    The time (UTC) when the zonal shift starts.

    */ inline ZonalShiftSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} @@ -343,54 +462,54 @@ namespace Model /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline const ZonalShiftStatus& GetStatus() const{ return m_status; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(const ZonalShiftStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline void SetStatus(ZonalShiftStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline ZonalShiftSummary& WithStatus(const ZonalShiftStatus& value) { SetStatus(value); return *this;} /** *

    A status for a zonal shift.

    The Status for a zonal shift * can have one of the following values:

    • ACTIVE: The zonal - * shift is started and active.

    • EXPIRED: The zonal shift - * has expired (the expiry time was exceeded).

    • CANCELED: - * The zonal shift was canceled.

    + * shift has been started and active.

  • EXPIRED: The zonal + * shift has expired (the expiry time was exceeded).

  • + * CANCELED: The zonal shift was canceled.

  • */ inline ZonalShiftSummary& WithStatus(ZonalShiftStatus&& value) { SetStatus(std::move(value)); return *this;} @@ -446,6 +565,9 @@ namespace Model Aws::Utils::DateTime m_expiryTime; bool m_expiryTimeHasBeenSet = false; + PracticeRunOutcome m_practiceRunOutcome; + bool m_practiceRunOutcomeHasBeenSet = false; + Aws::String m_resourceIdentifier; bool m_resourceIdentifierHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftClient.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftClient.cpp index f9423990f35..e8024899d80 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftClient.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftClient.cpp @@ -22,10 +22,15 @@ #include #include #include +#include +#include #include +#include #include #include #include +#include +#include #include #include @@ -193,6 +198,66 @@ CancelZonalShiftOutcome ARCZonalShiftClient::CancelZonalShift(const CancelZonalS {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreatePracticeRunConfigurationOutcome ARCZonalShiftClient::CreatePracticeRunConfiguration(const CreatePracticeRunConfigurationRequest& request) const +{ + AWS_OPERATION_GUARD(CreatePracticeRunConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePracticeRunConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePracticeRunConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreatePracticeRunConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreatePracticeRunConfiguration", + {{ 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( + [&]()-> CreatePracticeRunConfigurationOutcome { + 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, CreatePracticeRunConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/configuration"); + return CreatePracticeRunConfigurationOutcome(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()}}); +} + +DeletePracticeRunConfigurationOutcome ARCZonalShiftClient::DeletePracticeRunConfiguration(const DeletePracticeRunConfigurationRequest& request) const +{ + AWS_OPERATION_GUARD(DeletePracticeRunConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeletePracticeRunConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ResourceIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeletePracticeRunConfiguration", "Required field: ResourceIdentifier, is not set"); + return DeletePracticeRunConfigurationOutcome(Aws::Client::AWSError(ARCZonalShiftErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceIdentifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeletePracticeRunConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeletePracticeRunConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeletePracticeRunConfiguration", + {{ 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( + [&]()-> DeletePracticeRunConfigurationOutcome { + 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, DeletePracticeRunConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/configuration/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceIdentifier()); + return DeletePracticeRunConfigurationOutcome(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()}}); +} + GetManagedResourceOutcome ARCZonalShiftClient::GetManagedResource(const GetManagedResourceRequest& request) const { AWS_OPERATION_GUARD(GetManagedResource); @@ -226,6 +291,33 @@ GetManagedResourceOutcome ARCZonalShiftClient::GetManagedResource(const GetManag {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListAutoshiftsOutcome ARCZonalShiftClient::ListAutoshifts(const ListAutoshiftsRequest& request) const +{ + AWS_OPERATION_GUARD(ListAutoshifts); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAutoshifts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAutoshifts, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListAutoshifts, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAutoshifts", + {{ 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( + [&]()-> ListAutoshiftsOutcome { + 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, ListAutoshifts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/autoshifts"); + return ListAutoshiftsOutcome(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()}}); +} + ListManagedResourcesOutcome ARCZonalShiftClient::ListManagedResources(const ListManagedResourcesRequest& request) const { AWS_OPERATION_GUARD(ListManagedResources); @@ -307,6 +399,72 @@ StartZonalShiftOutcome ARCZonalShiftClient::StartZonalShift(const StartZonalShif {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdatePracticeRunConfigurationOutcome ARCZonalShiftClient::UpdatePracticeRunConfiguration(const UpdatePracticeRunConfigurationRequest& request) const +{ + AWS_OPERATION_GUARD(UpdatePracticeRunConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdatePracticeRunConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ResourceIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdatePracticeRunConfiguration", "Required field: ResourceIdentifier, is not set"); + return UpdatePracticeRunConfigurationOutcome(Aws::Client::AWSError(ARCZonalShiftErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceIdentifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdatePracticeRunConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdatePracticeRunConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdatePracticeRunConfiguration", + {{ 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( + [&]()-> UpdatePracticeRunConfigurationOutcome { + 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, UpdatePracticeRunConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/configuration/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceIdentifier()); + return UpdatePracticeRunConfigurationOutcome(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()}}); +} + +UpdateZonalAutoshiftConfigurationOutcome ARCZonalShiftClient::UpdateZonalAutoshiftConfiguration(const UpdateZonalAutoshiftConfigurationRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateZonalAutoshiftConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateZonalAutoshiftConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ResourceIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateZonalAutoshiftConfiguration", "Required field: ResourceIdentifier, is not set"); + return UpdateZonalAutoshiftConfigurationOutcome(Aws::Client::AWSError(ARCZonalShiftErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceIdentifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateZonalAutoshiftConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateZonalAutoshiftConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateZonalAutoshiftConfiguration", + {{ 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( + [&]()-> UpdateZonalAutoshiftConfigurationOutcome { + 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, UpdateZonalAutoshiftConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/managedresources/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceIdentifier()); + return UpdateZonalAutoshiftConfigurationOutcome(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()}}); +} + UpdateZonalShiftOutcome ARCZonalShiftClient::UpdateZonalShift(const UpdateZonalShiftRequest& request) const { AWS_OPERATION_GUARD(UpdateZonalShift); diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftEndpointRules.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftEndpointRules.cpp index 20f80797c55..244843ebe7f 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftEndpointRules.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftEndpointRules.cpp @@ -51,121 +51,121 @@ static constexpr RulesBlobT RulesBlob = {{ ',','"','t','y','p','e','"',':','"','S','t','r','i','n','g','"','}','}',',','"','r','u','l','e','s', '"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', 'i','s','S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','E','n', -'d','p','o','i','n','t','"','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"', +'d','p','o','i','n','t','"','}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n', +'E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U', +'s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':', +'"','I','n','v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','F', +'I','P','S',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a', +'r','e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':', +'"','e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']', ',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', '{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r', -'g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r', -'u','e',']','}',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l','i','d',' ','C','o', -'n','f','i','g','u','r','a','t','i','o','n',':',' ','F','I','P','S',' ','a','n','d',' ','c','u','s', -'t','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r','e',' ','n','o','t',' ','s','u','p','p', -'o','r','t','e','d','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',',','{','"', -'c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','t','y','p','e','"',':','"','t','r', -'e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s', -'"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',', -'"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t', -'a','c','k','"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':','"','I','n', -'v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','D','u','a','l', -'s','t','a','c','k',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t', -' ','a','r','e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e', -'"',':','"','e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':', -'[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','{','"','r','e', -'f','"',':','"','E','n','d','p','o','i','n','t','"','}',',','"','p','r','o','p','e','r','t','i','e', -'s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e', -'"',':','"','e','n','d','p','o','i','n','t','"','}',']','}',']','}',',','{','"','c','o','n','d','i', -'t','i','o','n','s','"',':','[',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"', -'r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"', -'f','n','"',':','"','i','s','S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f', -'"',':','"','R','e','g','i','o','n','"','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r', -'e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s', -'"',':','[','{','"','f','n','"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',', -'"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']', -',','"','a','s','s','i','g','n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l', -'t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s', -'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', -'b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"', -'r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',',','{','"', -'f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v', -'"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}', -',','t','r','u','e',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r', -'u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f', +'g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k', +'"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l', +'i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','D','u','a','l','s','t','a', +'c','k',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r', +'e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':','"', +'e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', +'"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','{','"','r','e','f','"',':', +'"','E','n','d','p','o','i','n','t','"','}',',','"','p','r','o','p','e','r','t','i','e','s','"',':', +'{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"', +'e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"', +'}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i', +'t','i','o','n','s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d', +'i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','i','s','S','e','t','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']','}',']', +',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +'{','"','f','n','"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',','"','a','r', +'g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']',',','"','a', +'s','s','i','g','n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}', +']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':', +'[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t', +'r','u','e',']','}',',','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l', +'s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a', +'l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':', +'[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o', +'o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e', +',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[', +'{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}', +',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}',',','{','"','f','n','"', +':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[', +'t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g', +'v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u', +'l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']', +'}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n', +'s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o', +'n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':', +'"','h','t','t','p','s',':','/','/','a','r','c','-','z','o','n','a','l','-','s','h','i','f','t','-', +'f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R', +'e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','}', +'"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r', +'s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}', +']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e','"',':', +'"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', +'"','e','r','r','o','r','"',':','"','F','I','P','S',' ','a','n','d',' ','D','u','a','l','S','t','a', +'c','k',' ','a','r','e',' ','e','n','a','b','l','e','d',',',' ','b','u','t',' ','t','h','i','s',' ', +'p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r', +'t',' ','o','n','e',' ','o','r',' ','b','o','t','h','"',',','"','t','y','p','e','"',':','"','e','r', +'r','o','r','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c', +'o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a', +'n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"', +'U','s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"', +':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b', +'o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','f', +'n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r','e', +'f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','s','u', +'p','p','o','r','t','s','F','I','P','S','"',']','}',',','t','r','u','e',']','}',']',',','"','r','u', +'l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','r', +'u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"', +'e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/', +'/','a','r','c','-','z','o','n','a','l','-','s','h','i','f','t','-','f','i','p','s','.','{','R','e', +'g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','n', +'s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}', +',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n', +'d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']', +',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i', +'o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','F','I','P','S',' ','i','s',' ', +'e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o', +'n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','F','I','P','S','"',',', +'"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']',',','"','t','y','p','e','"',':','"', +'t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f', 'n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"', -':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a', -'r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e', -'s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}', -',','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', -'r','g','v','"',':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r', -'"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i', -'o','n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S', -'t','a','c','k','"',']','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',', -'"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']', -',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{', -'"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t', -'"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','a','r','c','-','z','o','n', -'a','l','-','s','h','i','f','t','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P', -'a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D', -'n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{', -'}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e', -'n','d','p','o','i','n','t','"','}',']','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n', -'s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','F','I','P','S',' ','a','n','d',' ','D', -'u','a','l','S','t','a','c','k',' ','a','r','e',' ','e','n','a','b','l','e','d',',',' ','b','u','t', -' ','t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ', -'s','u','p','p','o','r','t',' ','o','n','e',' ','o','r',' ','b','o','t','h','"',',','"','t','y','p', -'e','"',':','"','e','r','r','o','r','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n', -'s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"', -',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"', -'}',',','t','r','u','e',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"', -'r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"', -'f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v', -'"',':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"', -'a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R', -'e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']', -'}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':', -'[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','t','y','p','e','"',':', -'"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i', -'o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"', -':','"','h','t','t','p','s',':','/','/','a','r','c','-','z','o','n','a','l','-','s','h','i','f','t', -'-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n', -'R','e','s','u','l','t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e', -'r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"', -'t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']','}',']','}',',','{','"','c', -'o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','F','I', -'P','S',' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a', -'r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ', -'F','I','P','S','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']','}',',','{', -'"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l', -'e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"', -':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',', -'"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"', -'c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e', -'a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e',',','{','"', -'f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r', -'e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','s', -'u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']','}',']','}',']',',','"','t', -'y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o', -'n','d','i','t','i','o','n','s','"',':','[',']',',','"','t','y','p','e','"',':','"','t','r','e','e', -'"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':', -'[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t', -'p','s',':','/','/','a','r','c','-','z','o','n','a','l','-','s','h','i','f','t','.','{','R','e','g', -'i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','u','a', -'l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r', -'t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t', -'y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']','}',']','}',',','{','"','c','o', -'n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','D','u','a', -'l','S','t','a','c','k',' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i', -'s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p', -'o','r','t',' ','D','u','a','l','S','t','a','c','k','"',',','"','t','y','p','e','"',':','"','e','r', -'r','o','r','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', -'"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"', -'c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"', -':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','a','r','c','-','z','o','n','a', -'l','-','s','h','i','f','t','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i', -'o','n','R','e','s','u','l','t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o', -'p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}', -',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']','}',']','}',']','}', -',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"', -':','"','I','n','v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ', -'M','i','s','s','i','n','g',' ','R','e','g','i','o','n','"',',','"','t','y','p','e','"',':','"','e', -'r','r','o','r','"','}',']','}',']','}','\0' +':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',', +'t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t', +'i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a', +'l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e',',','{','"','f','n','"',':','"','g', +'e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P', +'a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t', +'s','D','u','a','l','S','t','a','c','k','"',']','}',']','}',']',',','"','r','u','l','e','s','"',':', +'[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','r','u','l','e','s','"', +':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o', +'i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','a','r','c','-', +'z','o','n','a','l','-','s','h','i','f','t','.','{','R','e','g','i','o','n','}','.','{','P','a','r', +'t','i','t','i','o','n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s', +'S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',', +'"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d', +'p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',', +'"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o', +'n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','D','u','a','l','S','t','a','c','k', +' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t', +'i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','D','u', +'a','l','S','t','a','c','k','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']', +',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i', +'o','n','s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t', +'i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l', +'"',':','"','h','t','t','p','s',':','/','/','a','r','c','-','z','o','n','a','l','-','s','h','i','f', +'t','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u', +'l','t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e', +'s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e', +'"',':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r', +'e','e','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y', +'p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"', +':','[',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l','i','d',' ','C','o','n','f', +'i','g','u','r','a','t','i','o','n',':',' ','M','i','s','s','i','n','g',' ','R','e','g','i','o','n', +'"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']',',','"','t','y','p','e','"', +':','"','t','r','e','e','"','}',']','}','\0' }}; const char* ARCZonalShiftEndpointRules::GetRulesBlob() diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftAppliedStatus.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftAppliedStatus.cpp new file mode 100644 index 00000000000..d2235229c32 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftAppliedStatus.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 ARCZonalShift + { + namespace Model + { + namespace AutoshiftAppliedStatusMapper + { + + static const int APPLIED_HASH = HashingUtils::HashString("APPLIED"); + static const int NOT_APPLIED_HASH = HashingUtils::HashString("NOT_APPLIED"); + + + AutoshiftAppliedStatus GetAutoshiftAppliedStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == APPLIED_HASH) + { + return AutoshiftAppliedStatus::APPLIED; + } + else if (hashCode == NOT_APPLIED_HASH) + { + return AutoshiftAppliedStatus::NOT_APPLIED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AutoshiftAppliedStatus::NOT_SET; + } + + Aws::String GetNameForAutoshiftAppliedStatus(AutoshiftAppliedStatus enumValue) + { + switch(enumValue) + { + case AutoshiftAppliedStatus::NOT_SET: + return {}; + case AutoshiftAppliedStatus::APPLIED: + return "APPLIED"; + case AutoshiftAppliedStatus::NOT_APPLIED: + return "NOT_APPLIED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AutoshiftAppliedStatusMapper + } // namespace Model + } // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftExecutionStatus.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftExecutionStatus.cpp new file mode 100644 index 00000000000..524e936b682 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftExecutionStatus.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 ARCZonalShift + { + namespace Model + { + namespace AutoshiftExecutionStatusMapper + { + + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + + + AutoshiftExecutionStatus GetAutoshiftExecutionStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ACTIVE_HASH) + { + return AutoshiftExecutionStatus::ACTIVE; + } + else if (hashCode == COMPLETED_HASH) + { + return AutoshiftExecutionStatus::COMPLETED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AutoshiftExecutionStatus::NOT_SET; + } + + Aws::String GetNameForAutoshiftExecutionStatus(AutoshiftExecutionStatus enumValue) + { + switch(enumValue) + { + case AutoshiftExecutionStatus::NOT_SET: + return {}; + case AutoshiftExecutionStatus::ACTIVE: + return "ACTIVE"; + case AutoshiftExecutionStatus::COMPLETED: + return "COMPLETED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AutoshiftExecutionStatusMapper + } // namespace Model + } // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftInResource.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftInResource.cpp new file mode 100644 index 00000000000..b5623469f84 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftInResource.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ARCZonalShift +{ +namespace Model +{ + +AutoshiftInResource::AutoshiftInResource() : + m_appliedStatus(AutoshiftAppliedStatus::NOT_SET), + m_appliedStatusHasBeenSet(false), + m_awayFromHasBeenSet(false), + m_startTimeHasBeenSet(false) +{ +} + +AutoshiftInResource::AutoshiftInResource(JsonView jsonValue) : + m_appliedStatus(AutoshiftAppliedStatus::NOT_SET), + m_appliedStatusHasBeenSet(false), + m_awayFromHasBeenSet(false), + m_startTimeHasBeenSet(false) +{ + *this = jsonValue; +} + +AutoshiftInResource& AutoshiftInResource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("appliedStatus")) + { + m_appliedStatus = AutoshiftAppliedStatusMapper::GetAutoshiftAppliedStatusForName(jsonValue.GetString("appliedStatus")); + + m_appliedStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("awayFrom")) + { + m_awayFrom = jsonValue.GetString("awayFrom"); + + m_awayFromHasBeenSet = true; + } + + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetDouble("startTime"); + + m_startTimeHasBeenSet = true; + } + + return *this; +} + +JsonValue AutoshiftInResource::Jsonize() const +{ + JsonValue payload; + + if(m_appliedStatusHasBeenSet) + { + payload.WithString("appliedStatus", AutoshiftAppliedStatusMapper::GetNameForAutoshiftAppliedStatus(m_appliedStatus)); + } + + if(m_awayFromHasBeenSet) + { + payload.WithString("awayFrom", m_awayFrom); + + } + + if(m_startTimeHasBeenSet) + { + payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftSummary.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftSummary.cpp new file mode 100644 index 00000000000..6fe5d0613a8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AutoshiftSummary.cpp @@ -0,0 +1,103 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + +AutoshiftSummary::AutoshiftSummary() : + m_awayFromHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_status(AutoshiftExecutionStatus::NOT_SET), + m_statusHasBeenSet(false) +{ +} + +AutoshiftSummary::AutoshiftSummary(JsonView jsonValue) : + m_awayFromHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_status(AutoshiftExecutionStatus::NOT_SET), + m_statusHasBeenSet(false) +{ + *this = jsonValue; +} + +AutoshiftSummary& AutoshiftSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("awayFrom")) + { + m_awayFrom = jsonValue.GetString("awayFrom"); + + m_awayFromHasBeenSet = true; + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetDouble("endTime"); + + m_endTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetDouble("startTime"); + + m_startTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = AutoshiftExecutionStatusMapper::GetAutoshiftExecutionStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + return *this; +} + +JsonValue AutoshiftSummary::Jsonize() const +{ + JsonValue payload; + + if(m_awayFromHasBeenSet) + { + payload.WithString("awayFrom", m_awayFrom); + + } + + if(m_endTimeHasBeenSet) + { + payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision()); + } + + if(m_startTimeHasBeenSet) + { + payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", AutoshiftExecutionStatusMapper::GetNameForAutoshiftExecutionStatus(m_status)); + } + + return payload; +} + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ConflictExceptionReason.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ConflictExceptionReason.cpp index ee6ce91e9f6..750ad6810a4 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ConflictExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ConflictExceptionReason.cpp @@ -23,6 +23,9 @@ namespace Aws static const int ZonalShiftAlreadyExists_HASH = HashingUtils::HashString("ZonalShiftAlreadyExists"); static const int ZonalShiftStatusNotActive_HASH = HashingUtils::HashString("ZonalShiftStatusNotActive"); static const int SimultaneousZonalShiftsConflict_HASH = HashingUtils::HashString("SimultaneousZonalShiftsConflict"); + static const int PracticeConfigurationAlreadyExists_HASH = HashingUtils::HashString("PracticeConfigurationAlreadyExists"); + static const int AutoShiftEnabled_HASH = HashingUtils::HashString("AutoShiftEnabled"); + static const int PracticeConfigurationDoesNotExist_HASH = HashingUtils::HashString("PracticeConfigurationDoesNotExist"); ConflictExceptionReason GetConflictExceptionReasonForName(const Aws::String& name) @@ -40,6 +43,18 @@ namespace Aws { return ConflictExceptionReason::SimultaneousZonalShiftsConflict; } + else if (hashCode == PracticeConfigurationAlreadyExists_HASH) + { + return ConflictExceptionReason::PracticeConfigurationAlreadyExists; + } + else if (hashCode == AutoShiftEnabled_HASH) + { + return ConflictExceptionReason::AutoShiftEnabled; + } + else if (hashCode == PracticeConfigurationDoesNotExist_HASH) + { + return ConflictExceptionReason::PracticeConfigurationDoesNotExist; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -62,6 +77,12 @@ namespace Aws return "ZonalShiftStatusNotActive"; case ConflictExceptionReason::SimultaneousZonalShiftsConflict: return "SimultaneousZonalShiftsConflict"; + case ConflictExceptionReason::PracticeConfigurationAlreadyExists: + return "PracticeConfigurationAlreadyExists"; + case ConflictExceptionReason::AutoShiftEnabled: + return "AutoShiftEnabled"; + case ConflictExceptionReason::PracticeConfigurationDoesNotExist: + return "PracticeConfigurationDoesNotExist"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ControlCondition.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ControlCondition.cpp new file mode 100644 index 00000000000..0e489d9e200 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ControlCondition.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ARCZonalShift +{ +namespace Model +{ + +ControlCondition::ControlCondition() : + m_alarmIdentifierHasBeenSet(false), + m_type(ControlConditionType::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +ControlCondition::ControlCondition(JsonView jsonValue) : + m_alarmIdentifierHasBeenSet(false), + m_type(ControlConditionType::NOT_SET), + m_typeHasBeenSet(false) +{ + *this = jsonValue; +} + +ControlCondition& ControlCondition::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("alarmIdentifier")) + { + m_alarmIdentifier = jsonValue.GetString("alarmIdentifier"); + + m_alarmIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = ControlConditionTypeMapper::GetControlConditionTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + return *this; +} + +JsonValue ControlCondition::Jsonize() const +{ + JsonValue payload; + + if(m_alarmIdentifierHasBeenSet) + { + payload.WithString("alarmIdentifier", m_alarmIdentifier); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", ControlConditionTypeMapper::GetNameForControlConditionType(m_type)); + } + + return payload; +} + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ControlConditionType.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ControlConditionType.cpp new file mode 100644 index 00000000000..5031151de43 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ControlConditionType.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 ARCZonalShift + { + namespace Model + { + namespace ControlConditionTypeMapper + { + + static const int CLOUDWATCH_HASH = HashingUtils::HashString("CLOUDWATCH"); + + + ControlConditionType GetControlConditionTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CLOUDWATCH_HASH) + { + return ControlConditionType::CLOUDWATCH; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ControlConditionType::NOT_SET; + } + + Aws::String GetNameForControlConditionType(ControlConditionType enumValue) + { + switch(enumValue) + { + case ControlConditionType::NOT_SET: + return {}; + case ControlConditionType::CLOUDWATCH: + return "CLOUDWATCH"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ControlConditionTypeMapper + } // namespace Model + } // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/CreatePracticeRunConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/CreatePracticeRunConfigurationRequest.cpp new file mode 100644 index 00000000000..3b564a36c8a --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/CreatePracticeRunConfigurationRequest.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::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreatePracticeRunConfigurationRequest::CreatePracticeRunConfigurationRequest() : + m_blockedDatesHasBeenSet(false), + m_blockedWindowsHasBeenSet(false), + m_blockingAlarmsHasBeenSet(false), + m_outcomeAlarmsHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false) +{ +} + +Aws::String CreatePracticeRunConfigurationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_blockedDatesHasBeenSet) + { + Aws::Utils::Array blockedDatesJsonList(m_blockedDates.size()); + for(unsigned blockedDatesIndex = 0; blockedDatesIndex < blockedDatesJsonList.GetLength(); ++blockedDatesIndex) + { + blockedDatesJsonList[blockedDatesIndex].AsString(m_blockedDates[blockedDatesIndex]); + } + payload.WithArray("blockedDates", std::move(blockedDatesJsonList)); + + } + + if(m_blockedWindowsHasBeenSet) + { + Aws::Utils::Array blockedWindowsJsonList(m_blockedWindows.size()); + for(unsigned blockedWindowsIndex = 0; blockedWindowsIndex < blockedWindowsJsonList.GetLength(); ++blockedWindowsIndex) + { + blockedWindowsJsonList[blockedWindowsIndex].AsString(m_blockedWindows[blockedWindowsIndex]); + } + payload.WithArray("blockedWindows", std::move(blockedWindowsJsonList)); + + } + + if(m_blockingAlarmsHasBeenSet) + { + Aws::Utils::Array blockingAlarmsJsonList(m_blockingAlarms.size()); + for(unsigned blockingAlarmsIndex = 0; blockingAlarmsIndex < blockingAlarmsJsonList.GetLength(); ++blockingAlarmsIndex) + { + blockingAlarmsJsonList[blockingAlarmsIndex].AsObject(m_blockingAlarms[blockingAlarmsIndex].Jsonize()); + } + payload.WithArray("blockingAlarms", std::move(blockingAlarmsJsonList)); + + } + + if(m_outcomeAlarmsHasBeenSet) + { + Aws::Utils::Array outcomeAlarmsJsonList(m_outcomeAlarms.size()); + for(unsigned outcomeAlarmsIndex = 0; outcomeAlarmsIndex < outcomeAlarmsJsonList.GetLength(); ++outcomeAlarmsIndex) + { + outcomeAlarmsJsonList[outcomeAlarmsIndex].AsObject(m_outcomeAlarms[outcomeAlarmsIndex].Jsonize()); + } + payload.WithArray("outcomeAlarms", std::move(outcomeAlarmsJsonList)); + + } + + if(m_resourceIdentifierHasBeenSet) + { + payload.WithString("resourceIdentifier", m_resourceIdentifier); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/CreatePracticeRunConfigurationResult.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/CreatePracticeRunConfigurationResult.cpp new file mode 100644 index 00000000000..87bf49d0add --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/CreatePracticeRunConfigurationResult.cpp @@ -0,0 +1,68 @@ +/** + * 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::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreatePracticeRunConfigurationResult::CreatePracticeRunConfigurationResult() : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) +{ +} + +CreatePracticeRunConfigurationResult::CreatePracticeRunConfigurationResult(const Aws::AmazonWebServiceResult& result) : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) +{ + *this = result; +} + +CreatePracticeRunConfigurationResult& CreatePracticeRunConfigurationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + } + + if(jsonValue.ValueExists("practiceRunConfiguration")) + { + m_practiceRunConfiguration = jsonValue.GetObject("practiceRunConfiguration"); + + } + + if(jsonValue.ValueExists("zonalAutoshiftStatus")) + { + m_zonalAutoshiftStatus = ZonalAutoshiftStatusMapper::GetZonalAutoshiftStatusForName(jsonValue.GetString("zonalAutoshiftStatus")); + + } + + + 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-arc-zonal-shift/source/model/DeletePracticeRunConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/DeletePracticeRunConfigurationRequest.cpp new file mode 100644 index 00000000000..15a04726fbd --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/DeletePracticeRunConfigurationRequest.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::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeletePracticeRunConfigurationRequest::DeletePracticeRunConfigurationRequest() : + m_resourceIdentifierHasBeenSet(false) +{ +} + +Aws::String DeletePracticeRunConfigurationRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/DeletePracticeRunConfigurationResult.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/DeletePracticeRunConfigurationResult.cpp new file mode 100644 index 00000000000..867629ec06d --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/DeletePracticeRunConfigurationResult.cpp @@ -0,0 +1,62 @@ +/** + * 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::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeletePracticeRunConfigurationResult::DeletePracticeRunConfigurationResult() : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) +{ +} + +DeletePracticeRunConfigurationResult::DeletePracticeRunConfigurationResult(const Aws::AmazonWebServiceResult& result) : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) +{ + *this = result; +} + +DeletePracticeRunConfigurationResult& DeletePracticeRunConfigurationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + } + + if(jsonValue.ValueExists("zonalAutoshiftStatus")) + { + m_zonalAutoshiftStatus = ZonalAutoshiftStatusMapper::GetZonalAutoshiftStatusForName(jsonValue.GetString("zonalAutoshiftStatus")); + + } + + + 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-arc-zonal-shift/source/model/GetManagedResourceResult.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/GetManagedResourceResult.cpp index 078605e7898..c88a7f259e6 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/GetManagedResourceResult.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/GetManagedResourceResult.cpp @@ -17,11 +17,13 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; -GetManagedResourceResult::GetManagedResourceResult() +GetManagedResourceResult::GetManagedResourceResult() : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) { } -GetManagedResourceResult::GetManagedResourceResult(const Aws::AmazonWebServiceResult& result) +GetManagedResourceResult::GetManagedResourceResult(const Aws::AmazonWebServiceResult& result) : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) { *this = result; } @@ -44,12 +46,33 @@ GetManagedResourceResult& GetManagedResourceResult::operator =(const Aws::Amazon } + if(jsonValue.ValueExists("autoshifts")) + { + Aws::Utils::Array autoshiftsJsonList = jsonValue.GetArray("autoshifts"); + for(unsigned autoshiftsIndex = 0; autoshiftsIndex < autoshiftsJsonList.GetLength(); ++autoshiftsIndex) + { + m_autoshifts.push_back(autoshiftsJsonList[autoshiftsIndex].AsObject()); + } + } + if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); } + if(jsonValue.ValueExists("practiceRunConfiguration")) + { + m_practiceRunConfiguration = jsonValue.GetObject("practiceRunConfiguration"); + + } + + if(jsonValue.ValueExists("zonalAutoshiftStatus")) + { + m_zonalAutoshiftStatus = ZonalAutoshiftStatusMapper::GetZonalAutoshiftStatusForName(jsonValue.GetString("zonalAutoshiftStatus")); + + } + if(jsonValue.ValueExists("zonalShifts")) { Aws::Utils::Array zonalShiftsJsonList = jsonValue.GetArray("zonalShifts"); diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ListAutoshiftsRequest.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ListAutoshiftsRequest.cpp new file mode 100644 index 00000000000..97b27311524 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ListAutoshiftsRequest.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListAutoshiftsRequest::ListAutoshiftsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_status(AutoshiftExecutionStatus::NOT_SET), + m_statusHasBeenSet(false) +{ +} + +Aws::String ListAutoshiftsRequest::SerializePayload() const +{ + return {}; +} + +void ListAutoshiftsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_statusHasBeenSet) + { + ss << AutoshiftExecutionStatusMapper::GetNameForAutoshiftExecutionStatus(m_status); + uri.AddQueryStringParameter("status", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ListAutoshiftsResult.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ListAutoshiftsResult.cpp new file mode 100644 index 00000000000..7121abe17aa --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ListAutoshiftsResult.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::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListAutoshiftsResult::ListAutoshiftsResult() +{ +} + +ListAutoshiftsResult::ListAutoshiftsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListAutoshiftsResult& ListAutoshiftsResult::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-arc-zonal-shift/source/model/ListZonalShiftsRequest.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ListZonalShiftsRequest.cpp index ca795762c67..e5547e70c8d 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ListZonalShiftsRequest.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ListZonalShiftsRequest.cpp @@ -19,6 +19,7 @@ ListZonalShiftsRequest::ListZonalShiftsRequest() : m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false), m_status(ZonalShiftStatus::NOT_SET), m_statusHasBeenSet(false) { @@ -46,6 +47,13 @@ void ListZonalShiftsRequest::AddQueryStringParameters(URI& uri) const ss.str(""); } + if(m_resourceIdentifierHasBeenSet) + { + ss << m_resourceIdentifier; + uri.AddQueryStringParameter("resourceIdentifier", ss.str()); + ss.str(""); + } + if(m_statusHasBeenSet) { ss << ZonalShiftStatusMapper::GetNameForZonalShiftStatus(m_status); diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ManagedResourceSummary.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ManagedResourceSummary.cpp index 456d570f0fa..d6efdee4dc5 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ManagedResourceSummary.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ManagedResourceSummary.cpp @@ -19,22 +19,46 @@ namespace Model { ManagedResourceSummary::ManagedResourceSummary() : + m_appliedWeightsHasBeenSet(false), m_arnHasBeenSet(false), + m_autoshiftsHasBeenSet(false), m_availabilityZonesHasBeenSet(false), - m_nameHasBeenSet(false) + m_nameHasBeenSet(false), + m_practiceRunStatus(ZonalAutoshiftStatus::NOT_SET), + m_practiceRunStatusHasBeenSet(false), + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET), + m_zonalAutoshiftStatusHasBeenSet(false), + m_zonalShiftsHasBeenSet(false) { } ManagedResourceSummary::ManagedResourceSummary(JsonView jsonValue) : + m_appliedWeightsHasBeenSet(false), m_arnHasBeenSet(false), + m_autoshiftsHasBeenSet(false), m_availabilityZonesHasBeenSet(false), - m_nameHasBeenSet(false) + m_nameHasBeenSet(false), + m_practiceRunStatus(ZonalAutoshiftStatus::NOT_SET), + m_practiceRunStatusHasBeenSet(false), + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET), + m_zonalAutoshiftStatusHasBeenSet(false), + m_zonalShiftsHasBeenSet(false) { *this = jsonValue; } ManagedResourceSummary& ManagedResourceSummary::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("appliedWeights")) + { + Aws::Map appliedWeightsJsonMap = jsonValue.GetObject("appliedWeights").GetAllObjects(); + for(auto& appliedWeightsItem : appliedWeightsJsonMap) + { + m_appliedWeights[appliedWeightsItem.first] = appliedWeightsItem.second.AsDouble(); + } + m_appliedWeightsHasBeenSet = true; + } + if(jsonValue.ValueExists("arn")) { m_arn = jsonValue.GetString("arn"); @@ -42,6 +66,16 @@ ManagedResourceSummary& ManagedResourceSummary::operator =(JsonView jsonValue) m_arnHasBeenSet = true; } + if(jsonValue.ValueExists("autoshifts")) + { + Aws::Utils::Array autoshiftsJsonList = jsonValue.GetArray("autoshifts"); + for(unsigned autoshiftsIndex = 0; autoshiftsIndex < autoshiftsJsonList.GetLength(); ++autoshiftsIndex) + { + m_autoshifts.push_back(autoshiftsJsonList[autoshiftsIndex].AsObject()); + } + m_autoshiftsHasBeenSet = true; + } + if(jsonValue.ValueExists("availabilityZones")) { Aws::Utils::Array availabilityZonesJsonList = jsonValue.GetArray("availabilityZones"); @@ -59,6 +93,30 @@ ManagedResourceSummary& ManagedResourceSummary::operator =(JsonView jsonValue) m_nameHasBeenSet = true; } + if(jsonValue.ValueExists("practiceRunStatus")) + { + m_practiceRunStatus = ZonalAutoshiftStatusMapper::GetZonalAutoshiftStatusForName(jsonValue.GetString("practiceRunStatus")); + + m_practiceRunStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("zonalAutoshiftStatus")) + { + m_zonalAutoshiftStatus = ZonalAutoshiftStatusMapper::GetZonalAutoshiftStatusForName(jsonValue.GetString("zonalAutoshiftStatus")); + + m_zonalAutoshiftStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("zonalShifts")) + { + Aws::Utils::Array zonalShiftsJsonList = jsonValue.GetArray("zonalShifts"); + for(unsigned zonalShiftsIndex = 0; zonalShiftsIndex < zonalShiftsJsonList.GetLength(); ++zonalShiftsIndex) + { + m_zonalShifts.push_back(zonalShiftsJsonList[zonalShiftsIndex].AsObject()); + } + m_zonalShiftsHasBeenSet = true; + } + return *this; } @@ -66,12 +124,34 @@ JsonValue ManagedResourceSummary::Jsonize() const { JsonValue payload; + if(m_appliedWeightsHasBeenSet) + { + JsonValue appliedWeightsJsonMap; + for(auto& appliedWeightsItem : m_appliedWeights) + { + appliedWeightsJsonMap.WithDouble(appliedWeightsItem.first, appliedWeightsItem.second); + } + payload.WithObject("appliedWeights", std::move(appliedWeightsJsonMap)); + + } + if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } + if(m_autoshiftsHasBeenSet) + { + Aws::Utils::Array autoshiftsJsonList(m_autoshifts.size()); + for(unsigned autoshiftsIndex = 0; autoshiftsIndex < autoshiftsJsonList.GetLength(); ++autoshiftsIndex) + { + autoshiftsJsonList[autoshiftsIndex].AsObject(m_autoshifts[autoshiftsIndex].Jsonize()); + } + payload.WithArray("autoshifts", std::move(autoshiftsJsonList)); + + } + if(m_availabilityZonesHasBeenSet) { Aws::Utils::Array availabilityZonesJsonList(m_availabilityZones.size()); @@ -89,6 +169,27 @@ JsonValue ManagedResourceSummary::Jsonize() const } + if(m_practiceRunStatusHasBeenSet) + { + payload.WithString("practiceRunStatus", ZonalAutoshiftStatusMapper::GetNameForZonalAutoshiftStatus(m_practiceRunStatus)); + } + + if(m_zonalAutoshiftStatusHasBeenSet) + { + payload.WithString("zonalAutoshiftStatus", ZonalAutoshiftStatusMapper::GetNameForZonalAutoshiftStatus(m_zonalAutoshiftStatus)); + } + + if(m_zonalShiftsHasBeenSet) + { + Aws::Utils::Array zonalShiftsJsonList(m_zonalShifts.size()); + for(unsigned zonalShiftsIndex = 0; zonalShiftsIndex < zonalShiftsJsonList.GetLength(); ++zonalShiftsIndex) + { + zonalShiftsJsonList[zonalShiftsIndex].AsObject(m_zonalShifts[zonalShiftsIndex].Jsonize()); + } + payload.WithArray("zonalShifts", std::move(zonalShiftsJsonList)); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/PracticeRunConfiguration.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/PracticeRunConfiguration.cpp new file mode 100644 index 00000000000..8d2e38a89a4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/PracticeRunConfiguration.cpp @@ -0,0 +1,136 @@ +/** + * 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 ARCZonalShift +{ +namespace Model +{ + +PracticeRunConfiguration::PracticeRunConfiguration() : + m_blockedDatesHasBeenSet(false), + m_blockedWindowsHasBeenSet(false), + m_blockingAlarmsHasBeenSet(false), + m_outcomeAlarmsHasBeenSet(false) +{ +} + +PracticeRunConfiguration::PracticeRunConfiguration(JsonView jsonValue) : + m_blockedDatesHasBeenSet(false), + m_blockedWindowsHasBeenSet(false), + m_blockingAlarmsHasBeenSet(false), + m_outcomeAlarmsHasBeenSet(false) +{ + *this = jsonValue; +} + +PracticeRunConfiguration& PracticeRunConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("blockedDates")) + { + Aws::Utils::Array blockedDatesJsonList = jsonValue.GetArray("blockedDates"); + for(unsigned blockedDatesIndex = 0; blockedDatesIndex < blockedDatesJsonList.GetLength(); ++blockedDatesIndex) + { + m_blockedDates.push_back(blockedDatesJsonList[blockedDatesIndex].AsString()); + } + m_blockedDatesHasBeenSet = true; + } + + if(jsonValue.ValueExists("blockedWindows")) + { + Aws::Utils::Array blockedWindowsJsonList = jsonValue.GetArray("blockedWindows"); + for(unsigned blockedWindowsIndex = 0; blockedWindowsIndex < blockedWindowsJsonList.GetLength(); ++blockedWindowsIndex) + { + m_blockedWindows.push_back(blockedWindowsJsonList[blockedWindowsIndex].AsString()); + } + m_blockedWindowsHasBeenSet = true; + } + + if(jsonValue.ValueExists("blockingAlarms")) + { + Aws::Utils::Array blockingAlarmsJsonList = jsonValue.GetArray("blockingAlarms"); + for(unsigned blockingAlarmsIndex = 0; blockingAlarmsIndex < blockingAlarmsJsonList.GetLength(); ++blockingAlarmsIndex) + { + m_blockingAlarms.push_back(blockingAlarmsJsonList[blockingAlarmsIndex].AsObject()); + } + m_blockingAlarmsHasBeenSet = true; + } + + if(jsonValue.ValueExists("outcomeAlarms")) + { + Aws::Utils::Array outcomeAlarmsJsonList = jsonValue.GetArray("outcomeAlarms"); + for(unsigned outcomeAlarmsIndex = 0; outcomeAlarmsIndex < outcomeAlarmsJsonList.GetLength(); ++outcomeAlarmsIndex) + { + m_outcomeAlarms.push_back(outcomeAlarmsJsonList[outcomeAlarmsIndex].AsObject()); + } + m_outcomeAlarmsHasBeenSet = true; + } + + return *this; +} + +JsonValue PracticeRunConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_blockedDatesHasBeenSet) + { + Aws::Utils::Array blockedDatesJsonList(m_blockedDates.size()); + for(unsigned blockedDatesIndex = 0; blockedDatesIndex < blockedDatesJsonList.GetLength(); ++blockedDatesIndex) + { + blockedDatesJsonList[blockedDatesIndex].AsString(m_blockedDates[blockedDatesIndex]); + } + payload.WithArray("blockedDates", std::move(blockedDatesJsonList)); + + } + + if(m_blockedWindowsHasBeenSet) + { + Aws::Utils::Array blockedWindowsJsonList(m_blockedWindows.size()); + for(unsigned blockedWindowsIndex = 0; blockedWindowsIndex < blockedWindowsJsonList.GetLength(); ++blockedWindowsIndex) + { + blockedWindowsJsonList[blockedWindowsIndex].AsString(m_blockedWindows[blockedWindowsIndex]); + } + payload.WithArray("blockedWindows", std::move(blockedWindowsJsonList)); + + } + + if(m_blockingAlarmsHasBeenSet) + { + Aws::Utils::Array blockingAlarmsJsonList(m_blockingAlarms.size()); + for(unsigned blockingAlarmsIndex = 0; blockingAlarmsIndex < blockingAlarmsJsonList.GetLength(); ++blockingAlarmsIndex) + { + blockingAlarmsJsonList[blockingAlarmsIndex].AsObject(m_blockingAlarms[blockingAlarmsIndex].Jsonize()); + } + payload.WithArray("blockingAlarms", std::move(blockingAlarmsJsonList)); + + } + + if(m_outcomeAlarmsHasBeenSet) + { + Aws::Utils::Array outcomeAlarmsJsonList(m_outcomeAlarms.size()); + for(unsigned outcomeAlarmsIndex = 0; outcomeAlarmsIndex < outcomeAlarmsJsonList.GetLength(); ++outcomeAlarmsIndex) + { + outcomeAlarmsJsonList[outcomeAlarmsIndex].AsObject(m_outcomeAlarms[outcomeAlarmsIndex].Jsonize()); + } + payload.WithArray("outcomeAlarms", std::move(outcomeAlarmsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/PracticeRunOutcome.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/PracticeRunOutcome.cpp new file mode 100644 index 00000000000..21817d37db6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/PracticeRunOutcome.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 ARCZonalShift + { + namespace Model + { + namespace PracticeRunOutcomeMapper + { + + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int INTERRUPTED_HASH = HashingUtils::HashString("INTERRUPTED"); + static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + + + PracticeRunOutcome GetPracticeRunOutcomeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == FAILED_HASH) + { + return PracticeRunOutcome::FAILED; + } + else if (hashCode == INTERRUPTED_HASH) + { + return PracticeRunOutcome::INTERRUPTED; + } + else if (hashCode == PENDING_HASH) + { + return PracticeRunOutcome::PENDING; + } + else if (hashCode == SUCCEEDED_HASH) + { + return PracticeRunOutcome::SUCCEEDED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return PracticeRunOutcome::NOT_SET; + } + + Aws::String GetNameForPracticeRunOutcome(PracticeRunOutcome enumValue) + { + switch(enumValue) + { + case PracticeRunOutcome::NOT_SET: + return {}; + case PracticeRunOutcome::FAILED: + return "FAILED"; + case PracticeRunOutcome::INTERRUPTED: + return "INTERRUPTED"; + case PracticeRunOutcome::PENDING: + return "PENDING"; + case PracticeRunOutcome::SUCCEEDED: + return "SUCCEEDED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace PracticeRunOutcomeMapper + } // namespace Model + } // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdatePracticeRunConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdatePracticeRunConfigurationRequest.cpp new file mode 100644 index 00000000000..299489bd94f --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdatePracticeRunConfigurationRequest.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdatePracticeRunConfigurationRequest::UpdatePracticeRunConfigurationRequest() : + m_blockedDatesHasBeenSet(false), + m_blockedWindowsHasBeenSet(false), + m_blockingAlarmsHasBeenSet(false), + m_outcomeAlarmsHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false) +{ +} + +Aws::String UpdatePracticeRunConfigurationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_blockedDatesHasBeenSet) + { + Aws::Utils::Array blockedDatesJsonList(m_blockedDates.size()); + for(unsigned blockedDatesIndex = 0; blockedDatesIndex < blockedDatesJsonList.GetLength(); ++blockedDatesIndex) + { + blockedDatesJsonList[blockedDatesIndex].AsString(m_blockedDates[blockedDatesIndex]); + } + payload.WithArray("blockedDates", std::move(blockedDatesJsonList)); + + } + + if(m_blockedWindowsHasBeenSet) + { + Aws::Utils::Array blockedWindowsJsonList(m_blockedWindows.size()); + for(unsigned blockedWindowsIndex = 0; blockedWindowsIndex < blockedWindowsJsonList.GetLength(); ++blockedWindowsIndex) + { + blockedWindowsJsonList[blockedWindowsIndex].AsString(m_blockedWindows[blockedWindowsIndex]); + } + payload.WithArray("blockedWindows", std::move(blockedWindowsJsonList)); + + } + + if(m_blockingAlarmsHasBeenSet) + { + Aws::Utils::Array blockingAlarmsJsonList(m_blockingAlarms.size()); + for(unsigned blockingAlarmsIndex = 0; blockingAlarmsIndex < blockingAlarmsJsonList.GetLength(); ++blockingAlarmsIndex) + { + blockingAlarmsJsonList[blockingAlarmsIndex].AsObject(m_blockingAlarms[blockingAlarmsIndex].Jsonize()); + } + payload.WithArray("blockingAlarms", std::move(blockingAlarmsJsonList)); + + } + + if(m_outcomeAlarmsHasBeenSet) + { + Aws::Utils::Array outcomeAlarmsJsonList(m_outcomeAlarms.size()); + for(unsigned outcomeAlarmsIndex = 0; outcomeAlarmsIndex < outcomeAlarmsJsonList.GetLength(); ++outcomeAlarmsIndex) + { + outcomeAlarmsJsonList[outcomeAlarmsIndex].AsObject(m_outcomeAlarms[outcomeAlarmsIndex].Jsonize()); + } + payload.WithArray("outcomeAlarms", std::move(outcomeAlarmsJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdatePracticeRunConfigurationResult.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdatePracticeRunConfigurationResult.cpp new file mode 100644 index 00000000000..e9f5693c3a6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdatePracticeRunConfigurationResult.cpp @@ -0,0 +1,68 @@ +/** + * 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::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdatePracticeRunConfigurationResult::UpdatePracticeRunConfigurationResult() : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) +{ +} + +UpdatePracticeRunConfigurationResult::UpdatePracticeRunConfigurationResult(const Aws::AmazonWebServiceResult& result) : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) +{ + *this = result; +} + +UpdatePracticeRunConfigurationResult& UpdatePracticeRunConfigurationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + } + + if(jsonValue.ValueExists("practiceRunConfiguration")) + { + m_practiceRunConfiguration = jsonValue.GetObject("practiceRunConfiguration"); + + } + + if(jsonValue.ValueExists("zonalAutoshiftStatus")) + { + m_zonalAutoshiftStatus = ZonalAutoshiftStatusMapper::GetZonalAutoshiftStatusForName(jsonValue.GetString("zonalAutoshiftStatus")); + + } + + + 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-arc-zonal-shift/source/model/UpdateZonalAutoshiftConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdateZonalAutoshiftConfigurationRequest.cpp new file mode 100644 index 00000000000..401fa1b3939 --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdateZonalAutoshiftConfigurationRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateZonalAutoshiftConfigurationRequest::UpdateZonalAutoshiftConfigurationRequest() : + m_resourceIdentifierHasBeenSet(false), + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET), + m_zonalAutoshiftStatusHasBeenSet(false) +{ +} + +Aws::String UpdateZonalAutoshiftConfigurationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_zonalAutoshiftStatusHasBeenSet) + { + payload.WithString("zonalAutoshiftStatus", ZonalAutoshiftStatusMapper::GetNameForZonalAutoshiftStatus(m_zonalAutoshiftStatus)); + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdateZonalAutoshiftConfigurationResult.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdateZonalAutoshiftConfigurationResult.cpp new file mode 100644 index 00000000000..99a7806ecde --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/UpdateZonalAutoshiftConfigurationResult.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 +#include + +#include + +using namespace Aws::ARCZonalShift::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateZonalAutoshiftConfigurationResult::UpdateZonalAutoshiftConfigurationResult() : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) +{ +} + +UpdateZonalAutoshiftConfigurationResult::UpdateZonalAutoshiftConfigurationResult(const Aws::AmazonWebServiceResult& result) : + m_zonalAutoshiftStatus(ZonalAutoshiftStatus::NOT_SET) +{ + *this = result; +} + +UpdateZonalAutoshiftConfigurationResult& UpdateZonalAutoshiftConfigurationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("resourceIdentifier")) + { + m_resourceIdentifier = jsonValue.GetString("resourceIdentifier"); + + } + + if(jsonValue.ValueExists("zonalAutoshiftStatus")) + { + m_zonalAutoshiftStatus = ZonalAutoshiftStatusMapper::GetZonalAutoshiftStatusForName(jsonValue.GetString("zonalAutoshiftStatus")); + + } + + + 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-arc-zonal-shift/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ValidationExceptionReason.cpp index d4c6ce99869..bc7ff6b7ce3 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ValidationExceptionReason.cpp @@ -27,6 +27,9 @@ namespace Aws static const int InvalidResourceIdentifier_HASH = HashingUtils::HashString("InvalidResourceIdentifier"); static const int InvalidAz_HASH = HashingUtils::HashString("InvalidAz"); static const int UnsupportedAz_HASH = HashingUtils::HashString("UnsupportedAz"); + static const int InvalidAlarmCondition_HASH = HashingUtils::HashString("InvalidAlarmCondition"); + static const int InvalidConditionType_HASH = HashingUtils::HashString("InvalidConditionType"); + static const int InvalidPracticeBlocker_HASH = HashingUtils::HashString("InvalidPracticeBlocker"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) @@ -60,6 +63,18 @@ namespace Aws { return ValidationExceptionReason::UnsupportedAz; } + else if (hashCode == InvalidAlarmCondition_HASH) + { + return ValidationExceptionReason::InvalidAlarmCondition; + } + else if (hashCode == InvalidConditionType_HASH) + { + return ValidationExceptionReason::InvalidConditionType; + } + else if (hashCode == InvalidPracticeBlocker_HASH) + { + return ValidationExceptionReason::InvalidPracticeBlocker; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -90,6 +105,12 @@ namespace Aws return "InvalidAz"; case ValidationExceptionReason::UnsupportedAz: return "UnsupportedAz"; + case ValidationExceptionReason::InvalidAlarmCondition: + return "InvalidAlarmCondition"; + case ValidationExceptionReason::InvalidConditionType: + return "InvalidConditionType"; + case ValidationExceptionReason::InvalidPracticeBlocker: + return "InvalidPracticeBlocker"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalAutoshiftStatus.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalAutoshiftStatus.cpp new file mode 100644 index 00000000000..1da395cd32f --- /dev/null +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalAutoshiftStatus.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 ARCZonalShift + { + namespace Model + { + namespace ZonalAutoshiftStatusMapper + { + + static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + + + ZonalAutoshiftStatus GetZonalAutoshiftStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ENABLED_HASH) + { + return ZonalAutoshiftStatus::ENABLED; + } + else if (hashCode == DISABLED_HASH) + { + return ZonalAutoshiftStatus::DISABLED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ZonalAutoshiftStatus::NOT_SET; + } + + Aws::String GetNameForZonalAutoshiftStatus(ZonalAutoshiftStatus enumValue) + { + switch(enumValue) + { + case ZonalAutoshiftStatus::NOT_SET: + return {}; + case ZonalAutoshiftStatus::ENABLED: + return "ENABLED"; + case ZonalAutoshiftStatus::DISABLED: + return "DISABLED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ZonalAutoshiftStatusMapper + } // namespace Model + } // namespace ARCZonalShift +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftInResource.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftInResource.cpp index 9764379c3c2..1439a72c27a 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftInResource.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftInResource.cpp @@ -24,6 +24,8 @@ ZonalShiftInResource::ZonalShiftInResource() : m_awayFromHasBeenSet(false), m_commentHasBeenSet(false), m_expiryTimeHasBeenSet(false), + m_practiceRunOutcome(PracticeRunOutcome::NOT_SET), + m_practiceRunOutcomeHasBeenSet(false), m_resourceIdentifierHasBeenSet(false), m_startTimeHasBeenSet(false), m_zonalShiftIdHasBeenSet(false) @@ -36,6 +38,8 @@ ZonalShiftInResource::ZonalShiftInResource(JsonView jsonValue) : m_awayFromHasBeenSet(false), m_commentHasBeenSet(false), m_expiryTimeHasBeenSet(false), + m_practiceRunOutcome(PracticeRunOutcome::NOT_SET), + m_practiceRunOutcomeHasBeenSet(false), m_resourceIdentifierHasBeenSet(false), m_startTimeHasBeenSet(false), m_zonalShiftIdHasBeenSet(false) @@ -73,6 +77,13 @@ ZonalShiftInResource& ZonalShiftInResource::operator =(JsonView jsonValue) m_expiryTimeHasBeenSet = true; } + if(jsonValue.ValueExists("practiceRunOutcome")) + { + m_practiceRunOutcome = PracticeRunOutcomeMapper::GetPracticeRunOutcomeForName(jsonValue.GetString("practiceRunOutcome")); + + m_practiceRunOutcomeHasBeenSet = true; + } + if(jsonValue.ValueExists("resourceIdentifier")) { m_resourceIdentifier = jsonValue.GetString("resourceIdentifier"); @@ -123,6 +134,11 @@ JsonValue ZonalShiftInResource::Jsonize() const payload.WithDouble("expiryTime", m_expiryTime.SecondsWithMSPrecision()); } + if(m_practiceRunOutcomeHasBeenSet) + { + payload.WithString("practiceRunOutcome", PracticeRunOutcomeMapper::GetNameForPracticeRunOutcome(m_practiceRunOutcome)); + } + if(m_resourceIdentifierHasBeenSet) { payload.WithString("resourceIdentifier", m_resourceIdentifier); diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftSummary.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftSummary.cpp index c82e16b8db7..4d5190c8256 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftSummary.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftSummary.cpp @@ -22,6 +22,8 @@ ZonalShiftSummary::ZonalShiftSummary() : m_awayFromHasBeenSet(false), m_commentHasBeenSet(false), m_expiryTimeHasBeenSet(false), + m_practiceRunOutcome(PracticeRunOutcome::NOT_SET), + m_practiceRunOutcomeHasBeenSet(false), m_resourceIdentifierHasBeenSet(false), m_startTimeHasBeenSet(false), m_status(ZonalShiftStatus::NOT_SET), @@ -34,6 +36,8 @@ ZonalShiftSummary::ZonalShiftSummary(JsonView jsonValue) : m_awayFromHasBeenSet(false), m_commentHasBeenSet(false), m_expiryTimeHasBeenSet(false), + m_practiceRunOutcome(PracticeRunOutcome::NOT_SET), + m_practiceRunOutcomeHasBeenSet(false), m_resourceIdentifierHasBeenSet(false), m_startTimeHasBeenSet(false), m_status(ZonalShiftStatus::NOT_SET), @@ -66,6 +70,13 @@ ZonalShiftSummary& ZonalShiftSummary::operator =(JsonView jsonValue) m_expiryTimeHasBeenSet = true; } + if(jsonValue.ValueExists("practiceRunOutcome")) + { + m_practiceRunOutcome = PracticeRunOutcomeMapper::GetPracticeRunOutcomeForName(jsonValue.GetString("practiceRunOutcome")); + + m_practiceRunOutcomeHasBeenSet = true; + } + if(jsonValue.ValueExists("resourceIdentifier")) { m_resourceIdentifier = jsonValue.GetString("resourceIdentifier"); @@ -118,6 +129,11 @@ JsonValue ZonalShiftSummary::Jsonize() const payload.WithDouble("expiryTime", m_expiryTime.SecondsWithMSPrecision()); } + if(m_practiceRunOutcomeHasBeenSet) + { + payload.WithString("practiceRunOutcome", PracticeRunOutcomeMapper::GetNameForPracticeRunOutcome(m_practiceRunOutcome)); + } + if(m_resourceIdentifierHasBeenSet) { payload.WithString("resourceIdentifier", m_resourceIdentifier); diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityAnalyzerResult.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityAnalyzerResult.h new file mode 100644 index 00000000000..56c0b0b566e --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityAnalyzerResult.h @@ -0,0 +1,227 @@ +/** + * 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 Glue +{ +namespace Model +{ + + /** + *

    Describes the result of the evaluation of a data quality + * analyzer.

    See Also:

    AWS + * API Reference

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

    The name of the data quality analyzer.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

    The name of the data quality analyzer.

    + */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

    The name of the data quality analyzer.

    + */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

    The name of the data quality analyzer.

    + */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

    The name of the data quality analyzer.

    + */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

    The name of the data quality analyzer.

    + */ + inline DataQualityAnalyzerResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

    The name of the data quality analyzer.

    + */ + inline DataQualityAnalyzerResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

    The name of the data quality analyzer.

    + */ + inline DataQualityAnalyzerResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

    A description of the data quality analyzer.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

    A description of the data quality analyzer.

    + */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

    A description of the data quality analyzer.

    + */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

    A description of the data quality analyzer.

    + */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

    A description of the data quality analyzer.

    + */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

    A description of the data quality analyzer.

    + */ + inline DataQualityAnalyzerResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

    A description of the data quality analyzer.

    + */ + inline DataQualityAnalyzerResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

    A description of the data quality analyzer.

    + */ + inline DataQualityAnalyzerResult& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

    An evaluation message.

    + */ + inline const Aws::String& GetEvaluationMessage() const{ return m_evaluationMessage; } + + /** + *

    An evaluation message.

    + */ + inline bool EvaluationMessageHasBeenSet() const { return m_evaluationMessageHasBeenSet; } + + /** + *

    An evaluation message.

    + */ + inline void SetEvaluationMessage(const Aws::String& value) { m_evaluationMessageHasBeenSet = true; m_evaluationMessage = value; } + + /** + *

    An evaluation message.

    + */ + inline void SetEvaluationMessage(Aws::String&& value) { m_evaluationMessageHasBeenSet = true; m_evaluationMessage = std::move(value); } + + /** + *

    An evaluation message.

    + */ + inline void SetEvaluationMessage(const char* value) { m_evaluationMessageHasBeenSet = true; m_evaluationMessage.assign(value); } + + /** + *

    An evaluation message.

    + */ + inline DataQualityAnalyzerResult& WithEvaluationMessage(const Aws::String& value) { SetEvaluationMessage(value); return *this;} + + /** + *

    An evaluation message.

    + */ + inline DataQualityAnalyzerResult& WithEvaluationMessage(Aws::String&& value) { SetEvaluationMessage(std::move(value)); return *this;} + + /** + *

    An evaluation message.

    + */ + inline DataQualityAnalyzerResult& WithEvaluationMessage(const char* value) { SetEvaluationMessage(value); return *this;} + + + /** + *

    A map of metrics associated with the evaluation of the analyzer.

    + */ + inline const Aws::Map& GetEvaluatedMetrics() const{ return m_evaluatedMetrics; } + + /** + *

    A map of metrics associated with the evaluation of the analyzer.

    + */ + inline bool EvaluatedMetricsHasBeenSet() const { return m_evaluatedMetricsHasBeenSet; } + + /** + *

    A map of metrics associated with the evaluation of the analyzer.

    + */ + inline void SetEvaluatedMetrics(const Aws::Map& value) { m_evaluatedMetricsHasBeenSet = true; m_evaluatedMetrics = value; } + + /** + *

    A map of metrics associated with the evaluation of the analyzer.

    + */ + inline void SetEvaluatedMetrics(Aws::Map&& value) { m_evaluatedMetricsHasBeenSet = true; m_evaluatedMetrics = std::move(value); } + + /** + *

    A map of metrics associated with the evaluation of the analyzer.

    + */ + inline DataQualityAnalyzerResult& WithEvaluatedMetrics(const Aws::Map& value) { SetEvaluatedMetrics(value); return *this;} + + /** + *

    A map of metrics associated with the evaluation of the analyzer.

    + */ + inline DataQualityAnalyzerResult& WithEvaluatedMetrics(Aws::Map&& value) { SetEvaluatedMetrics(std::move(value)); return *this;} + + /** + *

    A map of metrics associated with the evaluation of the analyzer.

    + */ + inline DataQualityAnalyzerResult& AddEvaluatedMetrics(const Aws::String& key, double value) { m_evaluatedMetricsHasBeenSet = true; m_evaluatedMetrics.emplace(key, value); return *this; } + + /** + *

    A map of metrics associated with the evaluation of the analyzer.

    + */ + inline DataQualityAnalyzerResult& AddEvaluatedMetrics(Aws::String&& key, double value) { m_evaluatedMetricsHasBeenSet = true; m_evaluatedMetrics.emplace(std::move(key), value); return *this; } + + /** + *

    A map of metrics associated with the evaluation of the analyzer.

    + */ + inline DataQualityAnalyzerResult& AddEvaluatedMetrics(const char* key, double value) { m_evaluatedMetricsHasBeenSet = true; m_evaluatedMetrics.emplace(key, value); return *this; } + + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_evaluationMessage; + bool m_evaluationMessageHasBeenSet = false; + + Aws::Map m_evaluatedMetrics; + bool m_evaluatedMetricsHasBeenSet = false; + }; + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityMetricValues.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityMetricValues.h new file mode 100644 index 00000000000..6dfc66c2134 --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityMetricValues.h @@ -0,0 +1,151 @@ +/** + * 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 Glue +{ +namespace Model +{ + + /** + *

    Describes the data quality metric value according to the analysis of + * historical data.

    See Also:

    AWS + * API Reference

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

    The actual value of the data quality metric.

    + */ + inline double GetActualValue() const{ return m_actualValue; } + + /** + *

    The actual value of the data quality metric.

    + */ + inline bool ActualValueHasBeenSet() const { return m_actualValueHasBeenSet; } + + /** + *

    The actual value of the data quality metric.

    + */ + inline void SetActualValue(double value) { m_actualValueHasBeenSet = true; m_actualValue = value; } + + /** + *

    The actual value of the data quality metric.

    + */ + inline DataQualityMetricValues& WithActualValue(double value) { SetActualValue(value); return *this;} + + + /** + *

    The expected value of the data quality metric according to the analysis of + * historical data.

    + */ + inline double GetExpectedValue() const{ return m_expectedValue; } + + /** + *

    The expected value of the data quality metric according to the analysis of + * historical data.

    + */ + inline bool ExpectedValueHasBeenSet() const { return m_expectedValueHasBeenSet; } + + /** + *

    The expected value of the data quality metric according to the analysis of + * historical data.

    + */ + inline void SetExpectedValue(double value) { m_expectedValueHasBeenSet = true; m_expectedValue = value; } + + /** + *

    The expected value of the data quality metric according to the analysis of + * historical data.

    + */ + inline DataQualityMetricValues& WithExpectedValue(double value) { SetExpectedValue(value); return *this;} + + + /** + *

    The lower limit of the data quality metric value according to the analysis of + * historical data.

    + */ + inline double GetLowerLimit() const{ return m_lowerLimit; } + + /** + *

    The lower limit of the data quality metric value according to the analysis of + * historical data.

    + */ + inline bool LowerLimitHasBeenSet() const { return m_lowerLimitHasBeenSet; } + + /** + *

    The lower limit of the data quality metric value according to the analysis of + * historical data.

    + */ + inline void SetLowerLimit(double value) { m_lowerLimitHasBeenSet = true; m_lowerLimit = value; } + + /** + *

    The lower limit of the data quality metric value according to the analysis of + * historical data.

    + */ + inline DataQualityMetricValues& WithLowerLimit(double value) { SetLowerLimit(value); return *this;} + + + /** + *

    The upper limit of the data quality metric value according to the analysis of + * historical data.

    + */ + inline double GetUpperLimit() const{ return m_upperLimit; } + + /** + *

    The upper limit of the data quality metric value according to the analysis of + * historical data.

    + */ + inline bool UpperLimitHasBeenSet() const { return m_upperLimitHasBeenSet; } + + /** + *

    The upper limit of the data quality metric value according to the analysis of + * historical data.

    + */ + inline void SetUpperLimit(double value) { m_upperLimitHasBeenSet = true; m_upperLimit = value; } + + /** + *

    The upper limit of the data quality metric value according to the analysis of + * historical data.

    + */ + inline DataQualityMetricValues& WithUpperLimit(double value) { SetUpperLimit(value); return *this;} + + private: + + double m_actualValue; + bool m_actualValueHasBeenSet = false; + + double m_expectedValue; + bool m_expectedValueHasBeenSet = false; + + double m_lowerLimit; + bool m_lowerLimitHasBeenSet = false; + + double m_upperLimit; + bool m_upperLimitHasBeenSet = false; + }; + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityObservation.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityObservation.h new file mode 100644 index 00000000000..4cf591d4eae --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityObservation.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Glue +{ +namespace Model +{ + + /** + *

    Describes the observation generated after evaluating the rules and + * analyzers.

    See Also:

    AWS + * API Reference

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

    A description of the data quality observation.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

    A description of the data quality observation.

    + */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

    A description of the data quality observation.

    + */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

    A description of the data quality observation.

    + */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

    A description of the data quality observation.

    + */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

    A description of the data quality observation.

    + */ + inline DataQualityObservation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

    A description of the data quality observation.

    + */ + inline DataQualityObservation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

    A description of the data quality observation.

    + */ + inline DataQualityObservation& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

    An object of type MetricBasedObservation representing the + * observation that is based on evaluated data quality metrics.

    + */ + inline const MetricBasedObservation& GetMetricBasedObservation() const{ return m_metricBasedObservation; } + + /** + *

    An object of type MetricBasedObservation representing the + * observation that is based on evaluated data quality metrics.

    + */ + inline bool MetricBasedObservationHasBeenSet() const { return m_metricBasedObservationHasBeenSet; } + + /** + *

    An object of type MetricBasedObservation representing the + * observation that is based on evaluated data quality metrics.

    + */ + inline void SetMetricBasedObservation(const MetricBasedObservation& value) { m_metricBasedObservationHasBeenSet = true; m_metricBasedObservation = value; } + + /** + *

    An object of type MetricBasedObservation representing the + * observation that is based on evaluated data quality metrics.

    + */ + inline void SetMetricBasedObservation(MetricBasedObservation&& value) { m_metricBasedObservationHasBeenSet = true; m_metricBasedObservation = std::move(value); } + + /** + *

    An object of type MetricBasedObservation representing the + * observation that is based on evaluated data quality metrics.

    + */ + inline DataQualityObservation& WithMetricBasedObservation(const MetricBasedObservation& value) { SetMetricBasedObservation(value); return *this;} + + /** + *

    An object of type MetricBasedObservation representing the + * observation that is based on evaluated data quality metrics.

    + */ + inline DataQualityObservation& WithMetricBasedObservation(MetricBasedObservation&& value) { SetMetricBasedObservation(std::move(value)); return *this;} + + private: + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + MetricBasedObservation m_metricBasedObservation; + bool m_metricBasedObservationHasBeenSet = false; + }; + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityResult.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityResult.h index 20dec2a2b8f..3475e2dd4b4 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityResult.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/DataQualityResult.h @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include namespace Aws @@ -485,6 +487,104 @@ namespace Model */ inline DataQualityResult& AddRuleResults(DataQualityRuleResult&& value) { m_ruleResultsHasBeenSet = true; m_ruleResults.push_back(std::move(value)); return *this; } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline const Aws::Vector& GetAnalyzerResults() const{ return m_analyzerResults; } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline bool AnalyzerResultsHasBeenSet() const { return m_analyzerResultsHasBeenSet; } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline void SetAnalyzerResults(const Aws::Vector& value) { m_analyzerResultsHasBeenSet = true; m_analyzerResults = value; } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline void SetAnalyzerResults(Aws::Vector&& value) { m_analyzerResultsHasBeenSet = true; m_analyzerResults = std::move(value); } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline DataQualityResult& WithAnalyzerResults(const Aws::Vector& value) { SetAnalyzerResults(value); return *this;} + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline DataQualityResult& WithAnalyzerResults(Aws::Vector&& value) { SetAnalyzerResults(std::move(value)); return *this;} + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline DataQualityResult& AddAnalyzerResults(const DataQualityAnalyzerResult& value) { m_analyzerResultsHasBeenSet = true; m_analyzerResults.push_back(value); return *this; } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline DataQualityResult& AddAnalyzerResults(DataQualityAnalyzerResult&& value) { m_analyzerResultsHasBeenSet = true; m_analyzerResults.push_back(std::move(value)); return *this; } + + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline const Aws::Vector& GetObservations() const{ return m_observations; } + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline bool ObservationsHasBeenSet() const { return m_observationsHasBeenSet; } + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline void SetObservations(const Aws::Vector& value) { m_observationsHasBeenSet = true; m_observations = value; } + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline void SetObservations(Aws::Vector&& value) { m_observationsHasBeenSet = true; m_observations = std::move(value); } + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline DataQualityResult& WithObservations(const Aws::Vector& value) { SetObservations(value); return *this;} + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline DataQualityResult& WithObservations(Aws::Vector&& value) { SetObservations(std::move(value)); return *this;} + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline DataQualityResult& AddObservations(const DataQualityObservation& value) { m_observationsHasBeenSet = true; m_observations.push_back(value); return *this; } + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline DataQualityResult& AddObservations(DataQualityObservation&& value) { m_observationsHasBeenSet = true; m_observations.push_back(std::move(value)); return *this; } + private: Aws::String m_resultId; @@ -519,6 +619,12 @@ namespace Model Aws::Vector m_ruleResults; bool m_ruleResultsHasBeenSet = false; + + Aws::Vector m_analyzerResults; + bool m_analyzerResultsHasBeenSet = false; + + Aws::Vector m_observations; + bool m_observationsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/GetDataQualityResultResult.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/GetDataQualityResultResult.h index 49cf20bde5e..6a5095cf431 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/GetDataQualityResultResult.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/GetDataQualityResultResult.h @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include namespace Aws @@ -418,6 +420,92 @@ namespace Model inline GetDataQualityResultResult& AddRuleResults(DataQualityRuleResult&& value) { m_ruleResults.push_back(std::move(value)); return *this; } + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline const Aws::Vector& GetAnalyzerResults() const{ return m_analyzerResults; } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline void SetAnalyzerResults(const Aws::Vector& value) { m_analyzerResults = value; } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline void SetAnalyzerResults(Aws::Vector&& value) { m_analyzerResults = std::move(value); } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline GetDataQualityResultResult& WithAnalyzerResults(const Aws::Vector& value) { SetAnalyzerResults(value); return *this;} + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline GetDataQualityResultResult& WithAnalyzerResults(Aws::Vector&& value) { SetAnalyzerResults(std::move(value)); return *this;} + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline GetDataQualityResultResult& AddAnalyzerResults(const DataQualityAnalyzerResult& value) { m_analyzerResults.push_back(value); return *this; } + + /** + *

    A list of DataQualityAnalyzerResult objects representing the + * results for each analyzer.

    + */ + inline GetDataQualityResultResult& AddAnalyzerResults(DataQualityAnalyzerResult&& value) { m_analyzerResults.push_back(std::move(value)); return *this; } + + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline const Aws::Vector& GetObservations() const{ return m_observations; } + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline void SetObservations(const Aws::Vector& value) { m_observations = value; } + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline void SetObservations(Aws::Vector&& value) { m_observations = std::move(value); } + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline GetDataQualityResultResult& WithObservations(const Aws::Vector& value) { SetObservations(value); return *this;} + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline GetDataQualityResultResult& WithObservations(Aws::Vector&& value) { SetObservations(std::move(value)); return *this;} + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline GetDataQualityResultResult& AddObservations(const DataQualityObservation& value) { m_observations.push_back(value); return *this; } + + /** + *

    A list of DataQualityObservation objects representing the + * observations generated after evaluating the rules and analyzers.

    + */ + inline GetDataQualityResultResult& AddObservations(DataQualityObservation&& value) { m_observations.push_back(std::move(value)); return *this; } + + inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -463,6 +551,10 @@ namespace Model Aws::Vector m_ruleResults; + Aws::Vector m_analyzerResults; + + Aws::Vector m_observations; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/MetricBasedObservation.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/MetricBasedObservation.h new file mode 100644 index 00000000000..391fe52e6f6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/MetricBasedObservation.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Glue +{ +namespace Model +{ + + /** + *

    Describes the metric based observation generated based on evaluated data + * quality metrics.

    See Also:

    AWS + * API Reference

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

    The name of the data quality metric used for generating the observation.

    + */ + inline const Aws::String& GetMetricName() const{ return m_metricName; } + + /** + *

    The name of the data quality metric used for generating the observation.

    + */ + inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } + + /** + *

    The name of the data quality metric used for generating the observation.

    + */ + inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } + + /** + *

    The name of the data quality metric used for generating the observation.

    + */ + inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } + + /** + *

    The name of the data quality metric used for generating the observation.

    + */ + inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } + + /** + *

    The name of the data quality metric used for generating the observation.

    + */ + inline MetricBasedObservation& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} + + /** + *

    The name of the data quality metric used for generating the observation.

    + */ + inline MetricBasedObservation& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} + + /** + *

    The name of the data quality metric used for generating the observation.

    + */ + inline MetricBasedObservation& WithMetricName(const char* value) { SetMetricName(value); return *this;} + + + /** + *

    An object of type DataQualityMetricValues representing the + * analysis of the data quality metric value.

    + */ + inline const DataQualityMetricValues& GetMetricValues() const{ return m_metricValues; } + + /** + *

    An object of type DataQualityMetricValues representing the + * analysis of the data quality metric value.

    + */ + inline bool MetricValuesHasBeenSet() const { return m_metricValuesHasBeenSet; } + + /** + *

    An object of type DataQualityMetricValues representing the + * analysis of the data quality metric value.

    + */ + inline void SetMetricValues(const DataQualityMetricValues& value) { m_metricValuesHasBeenSet = true; m_metricValues = value; } + + /** + *

    An object of type DataQualityMetricValues representing the + * analysis of the data quality metric value.

    + */ + inline void SetMetricValues(DataQualityMetricValues&& value) { m_metricValuesHasBeenSet = true; m_metricValues = std::move(value); } + + /** + *

    An object of type DataQualityMetricValues representing the + * analysis of the data quality metric value.

    + */ + inline MetricBasedObservation& WithMetricValues(const DataQualityMetricValues& value) { SetMetricValues(value); return *this;} + + /** + *

    An object of type DataQualityMetricValues representing the + * analysis of the data quality metric value.

    + */ + inline MetricBasedObservation& WithMetricValues(DataQualityMetricValues&& value) { SetMetricValues(std::move(value)); return *this;} + + + /** + *

    A list of new data quality rules generated as part of the observation based + * on the data quality metric value.

    + */ + inline const Aws::Vector& GetNewRules() const{ return m_newRules; } + + /** + *

    A list of new data quality rules generated as part of the observation based + * on the data quality metric value.

    + */ + inline bool NewRulesHasBeenSet() const { return m_newRulesHasBeenSet; } + + /** + *

    A list of new data quality rules generated as part of the observation based + * on the data quality metric value.

    + */ + inline void SetNewRules(const Aws::Vector& value) { m_newRulesHasBeenSet = true; m_newRules = value; } + + /** + *

    A list of new data quality rules generated as part of the observation based + * on the data quality metric value.

    + */ + inline void SetNewRules(Aws::Vector&& value) { m_newRulesHasBeenSet = true; m_newRules = std::move(value); } + + /** + *

    A list of new data quality rules generated as part of the observation based + * on the data quality metric value.

    + */ + inline MetricBasedObservation& WithNewRules(const Aws::Vector& value) { SetNewRules(value); return *this;} + + /** + *

    A list of new data quality rules generated as part of the observation based + * on the data quality metric value.

    + */ + inline MetricBasedObservation& WithNewRules(Aws::Vector&& value) { SetNewRules(std::move(value)); return *this;} + + /** + *

    A list of new data quality rules generated as part of the observation based + * on the data quality metric value.

    + */ + inline MetricBasedObservation& AddNewRules(const Aws::String& value) { m_newRulesHasBeenSet = true; m_newRules.push_back(value); return *this; } + + /** + *

    A list of new data quality rules generated as part of the observation based + * on the data quality metric value.

    + */ + inline MetricBasedObservation& AddNewRules(Aws::String&& value) { m_newRulesHasBeenSet = true; m_newRules.push_back(std::move(value)); return *this; } + + /** + *

    A list of new data quality rules generated as part of the observation based + * on the data quality metric value.

    + */ + inline MetricBasedObservation& AddNewRules(const char* value) { m_newRulesHasBeenSet = true; m_newRules.push_back(value); return *this; } + + private: + + Aws::String m_metricName; + bool m_metricNameHasBeenSet = false; + + DataQualityMetricValues m_metricValues; + bool m_metricValuesHasBeenSet = false; + + Aws::Vector m_newRules; + bool m_newRulesHasBeenSet = false; + }; + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DataQualityAnalyzerResult.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityAnalyzerResult.cpp new file mode 100644 index 00000000000..de1e123bc66 --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityAnalyzerResult.cpp @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Glue +{ +namespace Model +{ + +DataQualityAnalyzerResult::DataQualityAnalyzerResult() : + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_evaluationMessageHasBeenSet(false), + m_evaluatedMetricsHasBeenSet(false) +{ +} + +DataQualityAnalyzerResult::DataQualityAnalyzerResult(JsonView jsonValue) : + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_evaluationMessageHasBeenSet(false), + m_evaluatedMetricsHasBeenSet(false) +{ + *this = jsonValue; +} + +DataQualityAnalyzerResult& DataQualityAnalyzerResult::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("EvaluationMessage")) + { + m_evaluationMessage = jsonValue.GetString("EvaluationMessage"); + + m_evaluationMessageHasBeenSet = true; + } + + if(jsonValue.ValueExists("EvaluatedMetrics")) + { + Aws::Map evaluatedMetricsJsonMap = jsonValue.GetObject("EvaluatedMetrics").GetAllObjects(); + for(auto& evaluatedMetricsItem : evaluatedMetricsJsonMap) + { + m_evaluatedMetrics[evaluatedMetricsItem.first] = evaluatedMetricsItem.second.AsDouble(); + } + m_evaluatedMetricsHasBeenSet = true; + } + + return *this; +} + +JsonValue DataQualityAnalyzerResult::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_evaluationMessageHasBeenSet) + { + payload.WithString("EvaluationMessage", m_evaluationMessage); + + } + + if(m_evaluatedMetricsHasBeenSet) + { + JsonValue evaluatedMetricsJsonMap; + for(auto& evaluatedMetricsItem : m_evaluatedMetrics) + { + evaluatedMetricsJsonMap.WithDouble(evaluatedMetricsItem.first, evaluatedMetricsItem.second); + } + payload.WithObject("EvaluatedMetrics", std::move(evaluatedMetricsJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DataQualityMetricValues.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityMetricValues.cpp new file mode 100644 index 00000000000..cb33dfd3984 --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityMetricValues.cpp @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Glue +{ +namespace Model +{ + +DataQualityMetricValues::DataQualityMetricValues() : + m_actualValue(0.0), + m_actualValueHasBeenSet(false), + m_expectedValue(0.0), + m_expectedValueHasBeenSet(false), + m_lowerLimit(0.0), + m_lowerLimitHasBeenSet(false), + m_upperLimit(0.0), + m_upperLimitHasBeenSet(false) +{ +} + +DataQualityMetricValues::DataQualityMetricValues(JsonView jsonValue) : + m_actualValue(0.0), + m_actualValueHasBeenSet(false), + m_expectedValue(0.0), + m_expectedValueHasBeenSet(false), + m_lowerLimit(0.0), + m_lowerLimitHasBeenSet(false), + m_upperLimit(0.0), + m_upperLimitHasBeenSet(false) +{ + *this = jsonValue; +} + +DataQualityMetricValues& DataQualityMetricValues::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ActualValue")) + { + m_actualValue = jsonValue.GetDouble("ActualValue"); + + m_actualValueHasBeenSet = true; + } + + if(jsonValue.ValueExists("ExpectedValue")) + { + m_expectedValue = jsonValue.GetDouble("ExpectedValue"); + + m_expectedValueHasBeenSet = true; + } + + if(jsonValue.ValueExists("LowerLimit")) + { + m_lowerLimit = jsonValue.GetDouble("LowerLimit"); + + m_lowerLimitHasBeenSet = true; + } + + if(jsonValue.ValueExists("UpperLimit")) + { + m_upperLimit = jsonValue.GetDouble("UpperLimit"); + + m_upperLimitHasBeenSet = true; + } + + return *this; +} + +JsonValue DataQualityMetricValues::Jsonize() const +{ + JsonValue payload; + + if(m_actualValueHasBeenSet) + { + payload.WithDouble("ActualValue", m_actualValue); + + } + + if(m_expectedValueHasBeenSet) + { + payload.WithDouble("ExpectedValue", m_expectedValue); + + } + + if(m_lowerLimitHasBeenSet) + { + payload.WithDouble("LowerLimit", m_lowerLimit); + + } + + if(m_upperLimitHasBeenSet) + { + payload.WithDouble("UpperLimit", m_upperLimit); + + } + + return payload; +} + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DataQualityObservation.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityObservation.cpp new file mode 100644 index 00000000000..966d9eebbe6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityObservation.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 Glue +{ +namespace Model +{ + +DataQualityObservation::DataQualityObservation() : + m_descriptionHasBeenSet(false), + m_metricBasedObservationHasBeenSet(false) +{ +} + +DataQualityObservation::DataQualityObservation(JsonView jsonValue) : + m_descriptionHasBeenSet(false), + m_metricBasedObservationHasBeenSet(false) +{ + *this = jsonValue; +} + +DataQualityObservation& DataQualityObservation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("MetricBasedObservation")) + { + m_metricBasedObservation = jsonValue.GetObject("MetricBasedObservation"); + + m_metricBasedObservationHasBeenSet = true; + } + + return *this; +} + +JsonValue DataQualityObservation::Jsonize() const +{ + JsonValue payload; + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_metricBasedObservationHasBeenSet) + { + payload.WithObject("MetricBasedObservation", m_metricBasedObservation.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DataQualityResult.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityResult.cpp index 00c9b7bccc2..e0915e457b7 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/DataQualityResult.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityResult.cpp @@ -30,7 +30,9 @@ DataQualityResult::DataQualityResult() : m_jobNameHasBeenSet(false), m_jobRunIdHasBeenSet(false), m_rulesetEvaluationRunIdHasBeenSet(false), - m_ruleResultsHasBeenSet(false) + m_ruleResultsHasBeenSet(false), + m_analyzerResultsHasBeenSet(false), + m_observationsHasBeenSet(false) { } @@ -46,7 +48,9 @@ DataQualityResult::DataQualityResult(JsonView jsonValue) : m_jobNameHasBeenSet(false), m_jobRunIdHasBeenSet(false), m_rulesetEvaluationRunIdHasBeenSet(false), - m_ruleResultsHasBeenSet(false) + m_ruleResultsHasBeenSet(false), + m_analyzerResultsHasBeenSet(false), + m_observationsHasBeenSet(false) { *this = jsonValue; } @@ -133,6 +137,26 @@ DataQualityResult& DataQualityResult::operator =(JsonView jsonValue) m_ruleResultsHasBeenSet = true; } + if(jsonValue.ValueExists("AnalyzerResults")) + { + Aws::Utils::Array analyzerResultsJsonList = jsonValue.GetArray("AnalyzerResults"); + for(unsigned analyzerResultsIndex = 0; analyzerResultsIndex < analyzerResultsJsonList.GetLength(); ++analyzerResultsIndex) + { + m_analyzerResults.push_back(analyzerResultsJsonList[analyzerResultsIndex].AsObject()); + } + m_analyzerResultsHasBeenSet = true; + } + + if(jsonValue.ValueExists("Observations")) + { + Aws::Utils::Array observationsJsonList = jsonValue.GetArray("Observations"); + for(unsigned observationsIndex = 0; observationsIndex < observationsJsonList.GetLength(); ++observationsIndex) + { + m_observations.push_back(observationsJsonList[observationsIndex].AsObject()); + } + m_observationsHasBeenSet = true; + } + return *this; } @@ -209,6 +233,28 @@ JsonValue DataQualityResult::Jsonize() const } + if(m_analyzerResultsHasBeenSet) + { + Aws::Utils::Array analyzerResultsJsonList(m_analyzerResults.size()); + for(unsigned analyzerResultsIndex = 0; analyzerResultsIndex < analyzerResultsJsonList.GetLength(); ++analyzerResultsIndex) + { + analyzerResultsJsonList[analyzerResultsIndex].AsObject(m_analyzerResults[analyzerResultsIndex].Jsonize()); + } + payload.WithArray("AnalyzerResults", std::move(analyzerResultsJsonList)); + + } + + if(m_observationsHasBeenSet) + { + Aws::Utils::Array observationsJsonList(m_observations.size()); + for(unsigned observationsIndex = 0; observationsIndex < observationsJsonList.GetLength(); ++observationsIndex) + { + observationsJsonList[observationsIndex].AsObject(m_observations[observationsIndex].Jsonize()); + } + payload.WithArray("Observations", std::move(observationsJsonList)); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-glue/source/model/GetDataQualityResultResult.cpp b/generated/src/aws-cpp-sdk-glue/source/model/GetDataQualityResultResult.cpp index bd424873d24..b5bf1705ef5 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/GetDataQualityResultResult.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/GetDataQualityResultResult.cpp @@ -100,6 +100,24 @@ GetDataQualityResultResult& GetDataQualityResultResult::operator =(const Aws::Am } } + if(jsonValue.ValueExists("AnalyzerResults")) + { + Aws::Utils::Array analyzerResultsJsonList = jsonValue.GetArray("AnalyzerResults"); + for(unsigned analyzerResultsIndex = 0; analyzerResultsIndex < analyzerResultsJsonList.GetLength(); ++analyzerResultsIndex) + { + m_analyzerResults.push_back(analyzerResultsJsonList[analyzerResultsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("Observations")) + { + Aws::Utils::Array observationsJsonList = jsonValue.GetArray("Observations"); + for(unsigned observationsIndex = 0; observationsIndex < observationsJsonList.GetLength(); ++observationsIndex) + { + m_observations.push_back(observationsJsonList[observationsIndex].AsObject()); + } + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-glue/source/model/MetricBasedObservation.cpp b/generated/src/aws-cpp-sdk-glue/source/model/MetricBasedObservation.cpp new file mode 100644 index 00000000000..a56ca574fc0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-glue/source/model/MetricBasedObservation.cpp @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Glue +{ +namespace Model +{ + +MetricBasedObservation::MetricBasedObservation() : + m_metricNameHasBeenSet(false), + m_metricValuesHasBeenSet(false), + m_newRulesHasBeenSet(false) +{ +} + +MetricBasedObservation::MetricBasedObservation(JsonView jsonValue) : + m_metricNameHasBeenSet(false), + m_metricValuesHasBeenSet(false), + m_newRulesHasBeenSet(false) +{ + *this = jsonValue; +} + +MetricBasedObservation& MetricBasedObservation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("MetricName")) + { + m_metricName = jsonValue.GetString("MetricName"); + + m_metricNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("MetricValues")) + { + m_metricValues = jsonValue.GetObject("MetricValues"); + + m_metricValuesHasBeenSet = true; + } + + if(jsonValue.ValueExists("NewRules")) + { + Aws::Utils::Array newRulesJsonList = jsonValue.GetArray("NewRules"); + for(unsigned newRulesIndex = 0; newRulesIndex < newRulesJsonList.GetLength(); ++newRulesIndex) + { + m_newRules.push_back(newRulesJsonList[newRulesIndex].AsString()); + } + m_newRulesHasBeenSet = true; + } + + return *this; +} + +JsonValue MetricBasedObservation::Jsonize() const +{ + JsonValue payload; + + if(m_metricNameHasBeenSet) + { + payload.WithString("MetricName", m_metricName); + + } + + if(m_metricValuesHasBeenSet) + { + payload.WithObject("MetricValues", m_metricValues.Jsonize()); + + } + + if(m_newRulesHasBeenSet) + { + Aws::Utils::Array newRulesJsonList(m_newRules.size()); + for(unsigned newRulesIndex = 0; newRulesIndex < newRulesJsonList.GetLength(); ++newRulesIndex) + { + newRulesJsonList[newRulesIndex].AsString(m_newRules[newRulesIndex]); + } + payload.WithArray("NewRules", std::move(newRulesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace Glue +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppDetails.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppDetails.h index 6cb024d23df..75dd2b2902e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppDetails.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppDetails.h @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Aws @@ -296,6 +297,25 @@ namespace Model */ inline AppDetails& WithSpaceName(const char* value) { SetSpaceName(value); return *this;} + + + inline const ResourceSpec& GetResourceSpec() const{ return m_resourceSpec; } + + + inline bool ResourceSpecHasBeenSet() const { return m_resourceSpecHasBeenSet; } + + + inline void SetResourceSpec(const ResourceSpec& value) { m_resourceSpecHasBeenSet = true; m_resourceSpec = value; } + + + inline void SetResourceSpec(ResourceSpec&& value) { m_resourceSpecHasBeenSet = true; m_resourceSpec = std::move(value); } + + + inline AppDetails& WithResourceSpec(const ResourceSpec& value) { SetResourceSpec(value); return *this;} + + + inline AppDetails& WithResourceSpec(ResourceSpec&& value) { SetResourceSpec(std::move(value)); return *this;} + private: Aws::String m_domainId; @@ -318,6 +338,9 @@ namespace Model Aws::String m_spaceName; bool m_spaceNameHasBeenSet = false; + + ResourceSpec m_resourceSpec; + bool m_resourceSpecHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppImageConfigDetails.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppImageConfigDetails.h index 3275026589f..66096d93029 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppImageConfigDetails.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppImageConfigDetails.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -214,6 +215,43 @@ namespace Model */ inline AppImageConfigDetails& WithKernelGatewayImageConfig(KernelGatewayImageConfig&& value) { SetKernelGatewayImageConfig(std::move(value)); return *this;} + + /** + *

    The configuration for the file system and the runtime, such as the + * environment variables and entry point.

    + */ + inline const JupyterLabAppImageConfig& GetJupyterLabAppImageConfig() const{ return m_jupyterLabAppImageConfig; } + + /** + *

    The configuration for the file system and the runtime, such as the + * environment variables and entry point.

    + */ + inline bool JupyterLabAppImageConfigHasBeenSet() const { return m_jupyterLabAppImageConfigHasBeenSet; } + + /** + *

    The configuration for the file system and the runtime, such as the + * environment variables and entry point.

    + */ + inline void SetJupyterLabAppImageConfig(const JupyterLabAppImageConfig& value) { m_jupyterLabAppImageConfigHasBeenSet = true; m_jupyterLabAppImageConfig = value; } + + /** + *

    The configuration for the file system and the runtime, such as the + * environment variables and entry point.

    + */ + inline void SetJupyterLabAppImageConfig(JupyterLabAppImageConfig&& value) { m_jupyterLabAppImageConfigHasBeenSet = true; m_jupyterLabAppImageConfig = std::move(value); } + + /** + *

    The configuration for the file system and the runtime, such as the + * environment variables and entry point.

    + */ + inline AppImageConfigDetails& WithJupyterLabAppImageConfig(const JupyterLabAppImageConfig& value) { SetJupyterLabAppImageConfig(value); return *this;} + + /** + *

    The configuration for the file system and the runtime, such as the + * environment variables and entry point.

    + */ + inline AppImageConfigDetails& WithJupyterLabAppImageConfig(JupyterLabAppImageConfig&& value) { SetJupyterLabAppImageConfig(std::move(value)); return *this;} + private: Aws::String m_appImageConfigArn; @@ -230,6 +268,9 @@ namespace Model KernelGatewayImageConfig m_kernelGatewayImageConfig; bool m_kernelGatewayImageConfigHasBeenSet = false; + + JupyterLabAppImageConfig m_jupyterLabAppImageConfig; + bool m_jupyterLabAppImageConfigHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppType.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppType.h index 05afde20138..ad6e210955c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppType.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AppType.h @@ -20,7 +20,9 @@ namespace Model KernelGateway, TensorBoard, RStudioServerPro, - RSessionGateway + RSessionGateway, + JupyterLab, + CodeEditor }; namespace AppTypeMapper diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CodeEditorAppSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CodeEditorAppSettings.h new file mode 100644 index 00000000000..4e30d5d85d7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CodeEditorAppSettings.h @@ -0,0 +1,129 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    The Code Editor application settings.

    For more information about Code + * Editor, see Get + * started with Code Editor in Amazon SageMaker.

    See Also:

    AWS + * API Reference

    + */ + class CodeEditorAppSettings + { + public: + AWS_SAGEMAKER_API CodeEditorAppSettings(); + AWS_SAGEMAKER_API CodeEditorAppSettings(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API CodeEditorAppSettings& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const ResourceSpec& GetDefaultResourceSpec() const{ return m_defaultResourceSpec; } + + + inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; } + + + inline void SetDefaultResourceSpec(const ResourceSpec& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = value; } + + + inline void SetDefaultResourceSpec(ResourceSpec&& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = std::move(value); } + + + inline CodeEditorAppSettings& WithDefaultResourceSpec(const ResourceSpec& value) { SetDefaultResourceSpec(value); return *this;} + + + inline CodeEditorAppSettings& WithDefaultResourceSpec(ResourceSpec&& value) { SetDefaultResourceSpec(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the Code Editor application lifecycle + * configuration.

    + */ + inline const Aws::Vector& GetLifecycleConfigArns() const{ return m_lifecycleConfigArns; } + + /** + *

    The Amazon Resource Name (ARN) of the Code Editor application lifecycle + * configuration.

    + */ + inline bool LifecycleConfigArnsHasBeenSet() const { return m_lifecycleConfigArnsHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the Code Editor application lifecycle + * configuration.

    + */ + inline void SetLifecycleConfigArns(const Aws::Vector& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns = value; } + + /** + *

    The Amazon Resource Name (ARN) of the Code Editor application lifecycle + * configuration.

    + */ + inline void SetLifecycleConfigArns(Aws::Vector&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the Code Editor application lifecycle + * configuration.

    + */ + inline CodeEditorAppSettings& WithLifecycleConfigArns(const Aws::Vector& value) { SetLifecycleConfigArns(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the Code Editor application lifecycle + * configuration.

    + */ + inline CodeEditorAppSettings& WithLifecycleConfigArns(Aws::Vector&& value) { SetLifecycleConfigArns(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the Code Editor application lifecycle + * configuration.

    + */ + inline CodeEditorAppSettings& AddLifecycleConfigArns(const Aws::String& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(value); return *this; } + + /** + *

    The Amazon Resource Name (ARN) of the Code Editor application lifecycle + * configuration.

    + */ + inline CodeEditorAppSettings& AddLifecycleConfigArns(Aws::String&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(std::move(value)); return *this; } + + /** + *

    The Amazon Resource Name (ARN) of the Code Editor application lifecycle + * configuration.

    + */ + inline CodeEditorAppSettings& AddLifecycleConfigArns(const char* value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(value); return *this; } + + private: + + ResourceSpec m_defaultResourceSpec; + bool m_defaultResourceSpecHasBeenSet = false; + + Aws::Vector m_lifecycleConfigArns; + bool m_lifecycleConfigArnsHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ContainerConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ContainerConfig.h new file mode 100644 index 00000000000..6ca77d8159b --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ContainerConfig.h @@ -0,0 +1,214 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    The configuration used to run the application image container.

    See + * Also:

    AWS + * API Reference

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

    The arguments for the container when you're running the application.

    + */ + inline const Aws::Vector& GetContainerArguments() const{ return m_containerArguments; } + + /** + *

    The arguments for the container when you're running the application.

    + */ + inline bool ContainerArgumentsHasBeenSet() const { return m_containerArgumentsHasBeenSet; } + + /** + *

    The arguments for the container when you're running the application.

    + */ + inline void SetContainerArguments(const Aws::Vector& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments = value; } + + /** + *

    The arguments for the container when you're running the application.

    + */ + inline void SetContainerArguments(Aws::Vector&& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments = std::move(value); } + + /** + *

    The arguments for the container when you're running the application.

    + */ + inline ContainerConfig& WithContainerArguments(const Aws::Vector& value) { SetContainerArguments(value); return *this;} + + /** + *

    The arguments for the container when you're running the application.

    + */ + inline ContainerConfig& WithContainerArguments(Aws::Vector&& value) { SetContainerArguments(std::move(value)); return *this;} + + /** + *

    The arguments for the container when you're running the application.

    + */ + inline ContainerConfig& AddContainerArguments(const Aws::String& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments.push_back(value); return *this; } + + /** + *

    The arguments for the container when you're running the application.

    + */ + inline ContainerConfig& AddContainerArguments(Aws::String&& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments.push_back(std::move(value)); return *this; } + + /** + *

    The arguments for the container when you're running the application.

    + */ + inline ContainerConfig& AddContainerArguments(const char* value) { m_containerArgumentsHasBeenSet = true; m_containerArguments.push_back(value); return *this; } + + + /** + *

    The entrypoint used to run the application in the container.

    + */ + inline const Aws::Vector& GetContainerEntrypoint() const{ return m_containerEntrypoint; } + + /** + *

    The entrypoint used to run the application in the container.

    + */ + inline bool ContainerEntrypointHasBeenSet() const { return m_containerEntrypointHasBeenSet; } + + /** + *

    The entrypoint used to run the application in the container.

    + */ + inline void SetContainerEntrypoint(const Aws::Vector& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint = value; } + + /** + *

    The entrypoint used to run the application in the container.

    + */ + inline void SetContainerEntrypoint(Aws::Vector&& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint = std::move(value); } + + /** + *

    The entrypoint used to run the application in the container.

    + */ + inline ContainerConfig& WithContainerEntrypoint(const Aws::Vector& value) { SetContainerEntrypoint(value); return *this;} + + /** + *

    The entrypoint used to run the application in the container.

    + */ + inline ContainerConfig& WithContainerEntrypoint(Aws::Vector&& value) { SetContainerEntrypoint(std::move(value)); return *this;} + + /** + *

    The entrypoint used to run the application in the container.

    + */ + inline ContainerConfig& AddContainerEntrypoint(const Aws::String& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint.push_back(value); return *this; } + + /** + *

    The entrypoint used to run the application in the container.

    + */ + inline ContainerConfig& AddContainerEntrypoint(Aws::String&& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint.push_back(std::move(value)); return *this; } + + /** + *

    The entrypoint used to run the application in the container.

    + */ + inline ContainerConfig& AddContainerEntrypoint(const char* value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint.push_back(value); return *this; } + + + /** + *

    The environment variables to set in the container

    + */ + inline const Aws::Map& GetContainerEnvironmentVariables() const{ return m_containerEnvironmentVariables; } + + /** + *

    The environment variables to set in the container

    + */ + inline bool ContainerEnvironmentVariablesHasBeenSet() const { return m_containerEnvironmentVariablesHasBeenSet; } + + /** + *

    The environment variables to set in the container

    + */ + inline void SetContainerEnvironmentVariables(const Aws::Map& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables = value; } + + /** + *

    The environment variables to set in the container

    + */ + inline void SetContainerEnvironmentVariables(Aws::Map&& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables = std::move(value); } + + /** + *

    The environment variables to set in the container

    + */ + inline ContainerConfig& WithContainerEnvironmentVariables(const Aws::Map& value) { SetContainerEnvironmentVariables(value); return *this;} + + /** + *

    The environment variables to set in the container

    + */ + inline ContainerConfig& WithContainerEnvironmentVariables(Aws::Map&& value) { SetContainerEnvironmentVariables(std::move(value)); return *this;} + + /** + *

    The environment variables to set in the container

    + */ + inline ContainerConfig& AddContainerEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(key, value); return *this; } + + /** + *

    The environment variables to set in the container

    + */ + inline ContainerConfig& AddContainerEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(std::move(key), value); return *this; } + + /** + *

    The environment variables to set in the container

    + */ + inline ContainerConfig& AddContainerEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(key, std::move(value)); return *this; } + + /** + *

    The environment variables to set in the container

    + */ + inline ContainerConfig& AddContainerEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

    The environment variables to set in the container

    + */ + inline ContainerConfig& AddContainerEnvironmentVariables(const char* key, Aws::String&& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(key, std::move(value)); return *this; } + + /** + *

    The environment variables to set in the container

    + */ + inline ContainerConfig& AddContainerEnvironmentVariables(Aws::String&& key, const char* value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(std::move(key), value); return *this; } + + /** + *

    The environment variables to set in the container

    + */ + inline ContainerConfig& AddContainerEnvironmentVariables(const char* key, const char* value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(key, value); return *this; } + + private: + + Aws::Vector m_containerArguments; + bool m_containerArgumentsHasBeenSet = false; + + Aws::Vector m_containerEntrypoint; + bool m_containerEntrypointHasBeenSet = false; + + Aws::Map m_containerEnvironmentVariables; + bool m_containerEnvironmentVariablesHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateAppImageConfigRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateAppImageConfigRequest.h index 0b2f564e22f..083812a4fba 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateAppImageConfigRequest.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateAppImageConfigRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -161,6 +162,55 @@ namespace Model */ inline CreateAppImageConfigRequest& WithKernelGatewayImageConfig(KernelGatewayImageConfig&& value) { SetKernelGatewayImageConfig(std::move(value)); return *this;} + + /** + *

    The JupyterLabAppImageConfig. You can only specify one image + * kernel in the AppImageConfig API. This kernel is shown to users + * before the image starts. After the image runs, all kernels are visible in + * JupyterLab.

    + */ + inline const JupyterLabAppImageConfig& GetJupyterLabAppImageConfig() const{ return m_jupyterLabAppImageConfig; } + + /** + *

    The JupyterLabAppImageConfig. You can only specify one image + * kernel in the AppImageConfig API. This kernel is shown to users + * before the image starts. After the image runs, all kernels are visible in + * JupyterLab.

    + */ + inline bool JupyterLabAppImageConfigHasBeenSet() const { return m_jupyterLabAppImageConfigHasBeenSet; } + + /** + *

    The JupyterLabAppImageConfig. You can only specify one image + * kernel in the AppImageConfig API. This kernel is shown to users + * before the image starts. After the image runs, all kernels are visible in + * JupyterLab.

    + */ + inline void SetJupyterLabAppImageConfig(const JupyterLabAppImageConfig& value) { m_jupyterLabAppImageConfigHasBeenSet = true; m_jupyterLabAppImageConfig = value; } + + /** + *

    The JupyterLabAppImageConfig. You can only specify one image + * kernel in the AppImageConfig API. This kernel is shown to users + * before the image starts. After the image runs, all kernels are visible in + * JupyterLab.

    + */ + inline void SetJupyterLabAppImageConfig(JupyterLabAppImageConfig&& value) { m_jupyterLabAppImageConfigHasBeenSet = true; m_jupyterLabAppImageConfig = std::move(value); } + + /** + *

    The JupyterLabAppImageConfig. You can only specify one image + * kernel in the AppImageConfig API. This kernel is shown to users + * before the image starts. After the image runs, all kernels are visible in + * JupyterLab.

    + */ + inline CreateAppImageConfigRequest& WithJupyterLabAppImageConfig(const JupyterLabAppImageConfig& value) { SetJupyterLabAppImageConfig(value); return *this;} + + /** + *

    The JupyterLabAppImageConfig. You can only specify one image + * kernel in the AppImageConfig API. This kernel is shown to users + * before the image starts. After the image runs, all kernels are visible in + * JupyterLab.

    + */ + inline CreateAppImageConfigRequest& WithJupyterLabAppImageConfig(JupyterLabAppImageConfig&& value) { SetJupyterLabAppImageConfig(std::move(value)); return *this;} + private: Aws::String m_appImageConfigName; @@ -171,6 +221,9 @@ namespace Model KernelGatewayImageConfig m_kernelGatewayImageConfig; bool m_kernelGatewayImageConfigHasBeenSet = false; + + JupyterLabAppImageConfig m_jupyterLabAppImageConfig; + bool m_jupyterLabAppImageConfigHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateSpaceRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateSpaceRequest.h index aece31ab0a6..bd7f73b2712 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateSpaceRequest.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateSpaceRequest.h @@ -9,6 +9,8 @@ #include #include #include +#include +#include #include #include @@ -206,6 +208,109 @@ namespace Model */ inline CreateSpaceRequest& WithSpaceSettings(SpaceSettings&& value) { SetSpaceSettings(std::move(value)); return *this;} + + /** + *

    The name of the space that appears in the SageMaker Studio UI.

    + */ + inline const Aws::String& GetSpaceDisplayName() const{ return m_spaceDisplayName; } + + /** + *

    The name of the space that appears in the SageMaker Studio UI.

    + */ + inline bool SpaceDisplayNameHasBeenSet() const { return m_spaceDisplayNameHasBeenSet; } + + /** + *

    The name of the space that appears in the SageMaker Studio UI.

    + */ + inline void SetSpaceDisplayName(const Aws::String& value) { m_spaceDisplayNameHasBeenSet = true; m_spaceDisplayName = value; } + + /** + *

    The name of the space that appears in the SageMaker Studio UI.

    + */ + inline void SetSpaceDisplayName(Aws::String&& value) { m_spaceDisplayNameHasBeenSet = true; m_spaceDisplayName = std::move(value); } + + /** + *

    The name of the space that appears in the SageMaker Studio UI.

    + */ + inline void SetSpaceDisplayName(const char* value) { m_spaceDisplayNameHasBeenSet = true; m_spaceDisplayName.assign(value); } + + /** + *

    The name of the space that appears in the SageMaker Studio UI.

    + */ + inline CreateSpaceRequest& WithSpaceDisplayName(const Aws::String& value) { SetSpaceDisplayName(value); return *this;} + + /** + *

    The name of the space that appears in the SageMaker Studio UI.

    + */ + inline CreateSpaceRequest& WithSpaceDisplayName(Aws::String&& value) { SetSpaceDisplayName(std::move(value)); return *this;} + + /** + *

    The name of the space that appears in the SageMaker Studio UI.

    + */ + inline CreateSpaceRequest& WithSpaceDisplayName(const char* value) { SetSpaceDisplayName(value); return *this;} + + + /** + *

    A collection of ownership settings.

    + */ + inline const OwnershipSettings& GetOwnershipSettings() const{ return m_ownershipSettings; } + + /** + *

    A collection of ownership settings.

    + */ + inline bool OwnershipSettingsHasBeenSet() const { return m_ownershipSettingsHasBeenSet; } + + /** + *

    A collection of ownership settings.

    + */ + inline void SetOwnershipSettings(const OwnershipSettings& value) { m_ownershipSettingsHasBeenSet = true; m_ownershipSettings = value; } + + /** + *

    A collection of ownership settings.

    + */ + inline void SetOwnershipSettings(OwnershipSettings&& value) { m_ownershipSettingsHasBeenSet = true; m_ownershipSettings = std::move(value); } + + /** + *

    A collection of ownership settings.

    + */ + inline CreateSpaceRequest& WithOwnershipSettings(const OwnershipSettings& value) { SetOwnershipSettings(value); return *this;} + + /** + *

    A collection of ownership settings.

    + */ + inline CreateSpaceRequest& WithOwnershipSettings(OwnershipSettings&& value) { SetOwnershipSettings(std::move(value)); return *this;} + + + /** + *

    A collection of space sharing settings.

    + */ + inline const SpaceSharingSettings& GetSpaceSharingSettings() const{ return m_spaceSharingSettings; } + + /** + *

    A collection of space sharing settings.

    + */ + inline bool SpaceSharingSettingsHasBeenSet() const { return m_spaceSharingSettingsHasBeenSet; } + + /** + *

    A collection of space sharing settings.

    + */ + inline void SetSpaceSharingSettings(const SpaceSharingSettings& value) { m_spaceSharingSettingsHasBeenSet = true; m_spaceSharingSettings = value; } + + /** + *

    A collection of space sharing settings.

    + */ + inline void SetSpaceSharingSettings(SpaceSharingSettings&& value) { m_spaceSharingSettingsHasBeenSet = true; m_spaceSharingSettings = std::move(value); } + + /** + *

    A collection of space sharing settings.

    + */ + inline CreateSpaceRequest& WithSpaceSharingSettings(const SpaceSharingSettings& value) { SetSpaceSharingSettings(value); return *this;} + + /** + *

    A collection of space sharing settings.

    + */ + inline CreateSpaceRequest& WithSpaceSharingSettings(SpaceSharingSettings&& value) { SetSpaceSharingSettings(std::move(value)); return *this;} + private: Aws::String m_domainId; @@ -219,6 +324,15 @@ namespace Model SpaceSettings m_spaceSettings; bool m_spaceSettingsHasBeenSet = false; + + Aws::String m_spaceDisplayName; + bool m_spaceDisplayNameHasBeenSet = false; + + OwnershipSettings m_ownershipSettings; + bool m_ownershipSettingsHasBeenSet = false; + + SpaceSharingSettings m_spaceSharingSettings; + bool m_spaceSharingSettingsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CustomFileSystem.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CustomFileSystem.h new file mode 100644 index 00000000000..3a47a17ae3a --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CustomFileSystem.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    A file system, created by you, that you assign to a user profile or space for + * an Amazon SageMaker Domain. Permitted users can access this file system in + * Amazon SageMaker Studio.

    See Also:

    AWS + * API Reference

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

    A custom file system in Amazon EFS.

    + */ + inline const EFSFileSystem& GetEFSFileSystem() const{ return m_eFSFileSystem; } + + /** + *

    A custom file system in Amazon EFS.

    + */ + inline bool EFSFileSystemHasBeenSet() const { return m_eFSFileSystemHasBeenSet; } + + /** + *

    A custom file system in Amazon EFS.

    + */ + inline void SetEFSFileSystem(const EFSFileSystem& value) { m_eFSFileSystemHasBeenSet = true; m_eFSFileSystem = value; } + + /** + *

    A custom file system in Amazon EFS.

    + */ + inline void SetEFSFileSystem(EFSFileSystem&& value) { m_eFSFileSystemHasBeenSet = true; m_eFSFileSystem = std::move(value); } + + /** + *

    A custom file system in Amazon EFS.

    + */ + inline CustomFileSystem& WithEFSFileSystem(const EFSFileSystem& value) { SetEFSFileSystem(value); return *this;} + + /** + *

    A custom file system in Amazon EFS.

    + */ + inline CustomFileSystem& WithEFSFileSystem(EFSFileSystem&& value) { SetEFSFileSystem(std::move(value)); return *this;} + + private: + + EFSFileSystem m_eFSFileSystem; + bool m_eFSFileSystemHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CustomFileSystemConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CustomFileSystemConfig.h new file mode 100644 index 00000000000..37f827ee126 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CustomFileSystemConfig.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    The settings for assigning a custom file system to a user profile or space + * for an Amazon SageMaker Domain. Permitted users can access this file system in + * Amazon SageMaker Studio.

    See Also:

    AWS + * API Reference

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

    The settings for a custom Amazon EFS file system.

    + */ + inline const EFSFileSystemConfig& GetEFSFileSystemConfig() const{ return m_eFSFileSystemConfig; } + + /** + *

    The settings for a custom Amazon EFS file system.

    + */ + inline bool EFSFileSystemConfigHasBeenSet() const { return m_eFSFileSystemConfigHasBeenSet; } + + /** + *

    The settings for a custom Amazon EFS file system.

    + */ + inline void SetEFSFileSystemConfig(const EFSFileSystemConfig& value) { m_eFSFileSystemConfigHasBeenSet = true; m_eFSFileSystemConfig = value; } + + /** + *

    The settings for a custom Amazon EFS file system.

    + */ + inline void SetEFSFileSystemConfig(EFSFileSystemConfig&& value) { m_eFSFileSystemConfigHasBeenSet = true; m_eFSFileSystemConfig = std::move(value); } + + /** + *

    The settings for a custom Amazon EFS file system.

    + */ + inline CustomFileSystemConfig& WithEFSFileSystemConfig(const EFSFileSystemConfig& value) { SetEFSFileSystemConfig(value); return *this;} + + /** + *

    The settings for a custom Amazon EFS file system.

    + */ + inline CustomFileSystemConfig& WithEFSFileSystemConfig(EFSFileSystemConfig&& value) { SetEFSFileSystemConfig(std::move(value)); return *this;} + + private: + + EFSFileSystemConfig m_eFSFileSystemConfig; + bool m_eFSFileSystemConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CustomPosixUserConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CustomPosixUserConfig.h new file mode 100644 index 00000000000..d92ca137b8d --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CustomPosixUserConfig.h @@ -0,0 +1,91 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    Details about the POSIX identity that is used for file system + * operations.

    See Also:

    AWS + * API Reference

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

    The POSIX user ID.

    + */ + inline long long GetUid() const{ return m_uid; } + + /** + *

    The POSIX user ID.

    + */ + inline bool UidHasBeenSet() const { return m_uidHasBeenSet; } + + /** + *

    The POSIX user ID.

    + */ + inline void SetUid(long long value) { m_uidHasBeenSet = true; m_uid = value; } + + /** + *

    The POSIX user ID.

    + */ + inline CustomPosixUserConfig& WithUid(long long value) { SetUid(value); return *this;} + + + /** + *

    The POSIX group ID.

    + */ + inline long long GetGid() const{ return m_gid; } + + /** + *

    The POSIX group ID.

    + */ + inline bool GidHasBeenSet() const { return m_gidHasBeenSet; } + + /** + *

    The POSIX group ID.

    + */ + inline void SetGid(long long value) { m_gidHasBeenSet = true; m_gid = value; } + + /** + *

    The POSIX group ID.

    + */ + inline CustomPosixUserConfig& WithGid(long long value) { SetGid(value); return *this;} + + private: + + long long m_uid; + bool m_uidHasBeenSet = false; + + long long m_gid; + bool m_gidHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultEbsStorageSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultEbsStorageSettings.h new file mode 100644 index 00000000000..caf0bb182d2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultEbsStorageSettings.h @@ -0,0 +1,91 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    A collection of default EBS storage settings that applies to private spaces + * created within a domain or user profile.

    See Also:

    AWS + * API Reference

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

    The default size of the EBS storage volume for a private space.

    + */ + inline int GetDefaultEbsVolumeSizeInGb() const{ return m_defaultEbsVolumeSizeInGb; } + + /** + *

    The default size of the EBS storage volume for a private space.

    + */ + inline bool DefaultEbsVolumeSizeInGbHasBeenSet() const { return m_defaultEbsVolumeSizeInGbHasBeenSet; } + + /** + *

    The default size of the EBS storage volume for a private space.

    + */ + inline void SetDefaultEbsVolumeSizeInGb(int value) { m_defaultEbsVolumeSizeInGbHasBeenSet = true; m_defaultEbsVolumeSizeInGb = value; } + + /** + *

    The default size of the EBS storage volume for a private space.

    + */ + inline DefaultEbsStorageSettings& WithDefaultEbsVolumeSizeInGb(int value) { SetDefaultEbsVolumeSizeInGb(value); return *this;} + + + /** + *

    The maximum size of the EBS storage volume for a private space.

    + */ + inline int GetMaximumEbsVolumeSizeInGb() const{ return m_maximumEbsVolumeSizeInGb; } + + /** + *

    The maximum size of the EBS storage volume for a private space.

    + */ + inline bool MaximumEbsVolumeSizeInGbHasBeenSet() const { return m_maximumEbsVolumeSizeInGbHasBeenSet; } + + /** + *

    The maximum size of the EBS storage volume for a private space.

    + */ + inline void SetMaximumEbsVolumeSizeInGb(int value) { m_maximumEbsVolumeSizeInGbHasBeenSet = true; m_maximumEbsVolumeSizeInGb = value; } + + /** + *

    The maximum size of the EBS storage volume for a private space.

    + */ + inline DefaultEbsStorageSettings& WithMaximumEbsVolumeSizeInGb(int value) { SetMaximumEbsVolumeSizeInGb(value); return *this;} + + private: + + int m_defaultEbsVolumeSizeInGb; + bool m_defaultEbsVolumeSizeInGbHasBeenSet = false; + + int m_maximumEbsVolumeSizeInGb; + bool m_maximumEbsVolumeSizeInGbHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceStorageSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceStorageSettings.h new file mode 100644 index 00000000000..1770179dcc0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceStorageSettings.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    The default storage settings for a private space.

    See Also:

    + * AWS + * API Reference

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

    The default EBS storage settings for a private space.

    + */ + inline const DefaultEbsStorageSettings& GetDefaultEbsStorageSettings() const{ return m_defaultEbsStorageSettings; } + + /** + *

    The default EBS storage settings for a private space.

    + */ + inline bool DefaultEbsStorageSettingsHasBeenSet() const { return m_defaultEbsStorageSettingsHasBeenSet; } + + /** + *

    The default EBS storage settings for a private space.

    + */ + inline void SetDefaultEbsStorageSettings(const DefaultEbsStorageSettings& value) { m_defaultEbsStorageSettingsHasBeenSet = true; m_defaultEbsStorageSettings = value; } + + /** + *

    The default EBS storage settings for a private space.

    + */ + inline void SetDefaultEbsStorageSettings(DefaultEbsStorageSettings&& value) { m_defaultEbsStorageSettingsHasBeenSet = true; m_defaultEbsStorageSettings = std::move(value); } + + /** + *

    The default EBS storage settings for a private space.

    + */ + inline DefaultSpaceStorageSettings& WithDefaultEbsStorageSettings(const DefaultEbsStorageSettings& value) { SetDefaultEbsStorageSettings(value); return *this;} + + /** + *

    The default EBS storage settings for a private space.

    + */ + inline DefaultSpaceStorageSettings& WithDefaultEbsStorageSettings(DefaultEbsStorageSettings&& value) { SetDefaultEbsStorageSettings(std::move(value)); return *this;} + + private: + + DefaultEbsStorageSettings m_defaultEbsStorageSettings; + bool m_defaultEbsStorageSettingsHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeAppImageConfigResult.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeAppImageConfigResult.h index 92972cb92b9..0d33df1913a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeAppImageConfigResult.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeAppImageConfigResult.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -184,6 +185,32 @@ namespace Model inline DescribeAppImageConfigResult& WithKernelGatewayImageConfig(KernelGatewayImageConfig&& value) { SetKernelGatewayImageConfig(std::move(value)); return *this;} + /** + *

    The configuration of the JupyterLab app.

    + */ + inline const JupyterLabAppImageConfig& GetJupyterLabAppImageConfig() const{ return m_jupyterLabAppImageConfig; } + + /** + *

    The configuration of the JupyterLab app.

    + */ + inline void SetJupyterLabAppImageConfig(const JupyterLabAppImageConfig& value) { m_jupyterLabAppImageConfig = value; } + + /** + *

    The configuration of the JupyterLab app.

    + */ + inline void SetJupyterLabAppImageConfig(JupyterLabAppImageConfig&& value) { m_jupyterLabAppImageConfig = std::move(value); } + + /** + *

    The configuration of the JupyterLab app.

    + */ + inline DescribeAppImageConfigResult& WithJupyterLabAppImageConfig(const JupyterLabAppImageConfig& value) { SetJupyterLabAppImageConfig(value); return *this;} + + /** + *

    The configuration of the JupyterLab app.

    + */ + inline DescribeAppImageConfigResult& WithJupyterLabAppImageConfig(JupyterLabAppImageConfig&& value) { SetJupyterLabAppImageConfig(std::move(value)); return *this;} + + inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -217,6 +244,8 @@ namespace Model KernelGatewayImageConfig m_kernelGatewayImageConfig; + JupyterLabAppImageConfig m_jupyterLabAppImageConfig; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeSpaceResult.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeSpaceResult.h index 4d20431990a..efb6d2a6aa8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeSpaceResult.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeSpaceResult.h @@ -9,6 +9,8 @@ #include #include #include +#include +#include #include namespace Aws @@ -404,6 +406,94 @@ namespace Model inline DescribeSpaceResult& WithUrl(const char* value) { SetUrl(value); return *this;} + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline const Aws::String& GetSpaceDisplayName() const{ return m_spaceDisplayName; } + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline void SetSpaceDisplayName(const Aws::String& value) { m_spaceDisplayName = value; } + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline void SetSpaceDisplayName(Aws::String&& value) { m_spaceDisplayName = std::move(value); } + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline void SetSpaceDisplayName(const char* value) { m_spaceDisplayName.assign(value); } + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline DescribeSpaceResult& WithSpaceDisplayName(const Aws::String& value) { SetSpaceDisplayName(value); return *this;} + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline DescribeSpaceResult& WithSpaceDisplayName(Aws::String&& value) { SetSpaceDisplayName(std::move(value)); return *this;} + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline DescribeSpaceResult& WithSpaceDisplayName(const char* value) { SetSpaceDisplayName(value); return *this;} + + + /** + *

    The collection of ownership settings for a space.

    + */ + inline const OwnershipSettings& GetOwnershipSettings() const{ return m_ownershipSettings; } + + /** + *

    The collection of ownership settings for a space.

    + */ + inline void SetOwnershipSettings(const OwnershipSettings& value) { m_ownershipSettings = value; } + + /** + *

    The collection of ownership settings for a space.

    + */ + inline void SetOwnershipSettings(OwnershipSettings&& value) { m_ownershipSettings = std::move(value); } + + /** + *

    The collection of ownership settings for a space.

    + */ + inline DescribeSpaceResult& WithOwnershipSettings(const OwnershipSettings& value) { SetOwnershipSettings(value); return *this;} + + /** + *

    The collection of ownership settings for a space.

    + */ + inline DescribeSpaceResult& WithOwnershipSettings(OwnershipSettings&& value) { SetOwnershipSettings(std::move(value)); return *this;} + + + /** + *

    The collection of space sharing settings for a space.

    + */ + inline const SpaceSharingSettings& GetSpaceSharingSettings() const{ return m_spaceSharingSettings; } + + /** + *

    The collection of space sharing settings for a space.

    + */ + inline void SetSpaceSharingSettings(const SpaceSharingSettings& value) { m_spaceSharingSettings = value; } + + /** + *

    The collection of space sharing settings for a space.

    + */ + inline void SetSpaceSharingSettings(SpaceSharingSettings&& value) { m_spaceSharingSettings = std::move(value); } + + /** + *

    The collection of space sharing settings for a space.

    + */ + inline DescribeSpaceResult& WithSpaceSharingSettings(const SpaceSharingSettings& value) { SetSpaceSharingSettings(value); return *this;} + + /** + *

    The collection of space sharing settings for a space.

    + */ + inline DescribeSpaceResult& WithSpaceSharingSettings(SpaceSharingSettings&& value) { SetSpaceSharingSettings(std::move(value)); return *this;} + + inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -447,6 +537,12 @@ namespace Model Aws::String m_url; + Aws::String m_spaceDisplayName; + + OwnershipSettings m_ownershipSettings; + + SpaceSharingSettings m_spaceSharingSettings; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EFSFileSystem.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EFSFileSystem.h new file mode 100644 index 00000000000..1745b22f55e --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EFSFileSystem.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    A file system, created by you in Amazon EFS, that you assign to a user + * profile or space for an Amazon SageMaker Domain. Permitted users can access this + * file system in Amazon SageMaker Studio.

    See Also:

    AWS + * API Reference

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

    The ID of your Amazon EFS file system.

    + */ + inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline EFSFileSystem& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline EFSFileSystem& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline EFSFileSystem& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} + + private: + + Aws::String m_fileSystemId; + bool m_fileSystemIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EFSFileSystemConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EFSFileSystemConfig.h new file mode 100644 index 00000000000..829efc6e75c --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EFSFileSystemConfig.h @@ -0,0 +1,141 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    The settings for assigning a custom Amazon EFS file system to a user profile + * or space for an Amazon SageMaker Domain.

    See Also:

    AWS + * API Reference

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

    The ID of your Amazon EFS file system.

    + */ + inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline EFSFileSystemConfig& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline EFSFileSystemConfig& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} + + /** + *

    The ID of your Amazon EFS file system.

    + */ + inline EFSFileSystemConfig& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} + + + /** + *

    The path to the file system directory that is accessible in Amazon SageMaker + * Studio. Permitted users can access only this directory and below.

    + */ + inline const Aws::String& GetFileSystemPath() const{ return m_fileSystemPath; } + + /** + *

    The path to the file system directory that is accessible in Amazon SageMaker + * Studio. Permitted users can access only this directory and below.

    + */ + inline bool FileSystemPathHasBeenSet() const { return m_fileSystemPathHasBeenSet; } + + /** + *

    The path to the file system directory that is accessible in Amazon SageMaker + * Studio. Permitted users can access only this directory and below.

    + */ + inline void SetFileSystemPath(const Aws::String& value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath = value; } + + /** + *

    The path to the file system directory that is accessible in Amazon SageMaker + * Studio. Permitted users can access only this directory and below.

    + */ + inline void SetFileSystemPath(Aws::String&& value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath = std::move(value); } + + /** + *

    The path to the file system directory that is accessible in Amazon SageMaker + * Studio. Permitted users can access only this directory and below.

    + */ + inline void SetFileSystemPath(const char* value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath.assign(value); } + + /** + *

    The path to the file system directory that is accessible in Amazon SageMaker + * Studio. Permitted users can access only this directory and below.

    + */ + inline EFSFileSystemConfig& WithFileSystemPath(const Aws::String& value) { SetFileSystemPath(value); return *this;} + + /** + *

    The path to the file system directory that is accessible in Amazon SageMaker + * Studio. Permitted users can access only this directory and below.

    + */ + inline EFSFileSystemConfig& WithFileSystemPath(Aws::String&& value) { SetFileSystemPath(std::move(value)); return *this;} + + /** + *

    The path to the file system directory that is accessible in Amazon SageMaker + * Studio. Permitted users can access only this directory and below.

    + */ + inline EFSFileSystemConfig& WithFileSystemPath(const char* value) { SetFileSystemPath(value); return *this;} + + private: + + Aws::String m_fileSystemId; + bool m_fileSystemIdHasBeenSet = false; + + Aws::String m_fileSystemPath; + bool m_fileSystemPathHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EbsStorageSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EbsStorageSettings.h new file mode 100644 index 00000000000..4f37f9e95b0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EbsStorageSettings.h @@ -0,0 +1,67 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    A collection of EBS storage settings that applies to private + * spaces.

    See Also:

    AWS + * API Reference

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

    The size of an EBS storage volume for a private space.

    + */ + inline int GetEbsVolumeSizeInGb() const{ return m_ebsVolumeSizeInGb; } + + /** + *

    The size of an EBS storage volume for a private space.

    + */ + inline bool EbsVolumeSizeInGbHasBeenSet() const { return m_ebsVolumeSizeInGbHasBeenSet; } + + /** + *

    The size of an EBS storage volume for a private space.

    + */ + inline void SetEbsVolumeSizeInGb(int value) { m_ebsVolumeSizeInGbHasBeenSet = true; m_ebsVolumeSizeInGb = value; } + + /** + *

    The size of an EBS storage volume for a private space.

    + */ + inline EbsStorageSettings& WithEbsVolumeSizeInGb(int value) { SetEbsVolumeSizeInGb(value); return *this;} + + private: + + int m_ebsVolumeSizeInGb; + bool m_ebsVolumeSizeInGbHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/JupyterLabAppImageConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/JupyterLabAppImageConfig.h new file mode 100644 index 00000000000..7907c70b428 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/JupyterLabAppImageConfig.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 +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    The configuration for the file system and kernels in a SageMaker image + * running as a JupyterLab app.

    See Also:

    AWS + * API Reference

    + */ + class JupyterLabAppImageConfig + { + public: + AWS_SAGEMAKER_API JupyterLabAppImageConfig(); + AWS_SAGEMAKER_API JupyterLabAppImageConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API JupyterLabAppImageConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const ContainerConfig& GetContainerConfig() const{ return m_containerConfig; } + + + inline bool ContainerConfigHasBeenSet() const { return m_containerConfigHasBeenSet; } + + + inline void SetContainerConfig(const ContainerConfig& value) { m_containerConfigHasBeenSet = true; m_containerConfig = value; } + + + inline void SetContainerConfig(ContainerConfig&& value) { m_containerConfigHasBeenSet = true; m_containerConfig = std::move(value); } + + + inline JupyterLabAppImageConfig& WithContainerConfig(const ContainerConfig& value) { SetContainerConfig(value); return *this;} + + + inline JupyterLabAppImageConfig& WithContainerConfig(ContainerConfig&& value) { SetContainerConfig(std::move(value)); return *this;} + + private: + + ContainerConfig m_containerConfig; + bool m_containerConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/JupyterLabAppSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/JupyterLabAppSettings.h new file mode 100644 index 00000000000..a8632dbce75 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/JupyterLabAppSettings.h @@ -0,0 +1,241 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    The settings for the JupyterLab application.

    See Also:

    AWS + * API Reference

    + */ + class JupyterLabAppSettings + { + public: + AWS_SAGEMAKER_API JupyterLabAppSettings(); + AWS_SAGEMAKER_API JupyterLabAppSettings(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API JupyterLabAppSettings& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const ResourceSpec& GetDefaultResourceSpec() const{ return m_defaultResourceSpec; } + + + inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; } + + + inline void SetDefaultResourceSpec(const ResourceSpec& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = value; } + + + inline void SetDefaultResourceSpec(ResourceSpec&& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = std::move(value); } + + + inline JupyterLabAppSettings& WithDefaultResourceSpec(const ResourceSpec& value) { SetDefaultResourceSpec(value); return *this;} + + + inline JupyterLabAppSettings& WithDefaultResourceSpec(ResourceSpec&& value) { SetDefaultResourceSpec(std::move(value)); return *this;} + + + /** + *

    A list of custom SageMaker images that are configured to run as a JupyterLab + * app.

    + */ + inline const Aws::Vector& GetCustomImages() const{ return m_customImages; } + + /** + *

    A list of custom SageMaker images that are configured to run as a JupyterLab + * app.

    + */ + inline bool CustomImagesHasBeenSet() const { return m_customImagesHasBeenSet; } + + /** + *

    A list of custom SageMaker images that are configured to run as a JupyterLab + * app.

    + */ + inline void SetCustomImages(const Aws::Vector& value) { m_customImagesHasBeenSet = true; m_customImages = value; } + + /** + *

    A list of custom SageMaker images that are configured to run as a JupyterLab + * app.

    + */ + inline void SetCustomImages(Aws::Vector&& value) { m_customImagesHasBeenSet = true; m_customImages = std::move(value); } + + /** + *

    A list of custom SageMaker images that are configured to run as a JupyterLab + * app.

    + */ + inline JupyterLabAppSettings& WithCustomImages(const Aws::Vector& value) { SetCustomImages(value); return *this;} + + /** + *

    A list of custom SageMaker images that are configured to run as a JupyterLab + * app.

    + */ + inline JupyterLabAppSettings& WithCustomImages(Aws::Vector&& value) { SetCustomImages(std::move(value)); return *this;} + + /** + *

    A list of custom SageMaker images that are configured to run as a JupyterLab + * app.

    + */ + inline JupyterLabAppSettings& AddCustomImages(const CustomImage& value) { m_customImagesHasBeenSet = true; m_customImages.push_back(value); return *this; } + + /** + *

    A list of custom SageMaker images that are configured to run as a JupyterLab + * app.

    + */ + inline JupyterLabAppSettings& AddCustomImages(CustomImage&& value) { m_customImagesHasBeenSet = true; m_customImages.push_back(std::move(value)); return *this; } + + + /** + *

    The Amazon Resource Name (ARN) of the lifecycle configurations attached to + * the user profile or domain. To remove a lifecycle config, you must set + * LifecycleConfigArns to an empty list.

    + */ + inline const Aws::Vector& GetLifecycleConfigArns() const{ return m_lifecycleConfigArns; } + + /** + *

    The Amazon Resource Name (ARN) of the lifecycle configurations attached to + * the user profile or domain. To remove a lifecycle config, you must set + * LifecycleConfigArns to an empty list.

    + */ + inline bool LifecycleConfigArnsHasBeenSet() const { return m_lifecycleConfigArnsHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the lifecycle configurations attached to + * the user profile or domain. To remove a lifecycle config, you must set + * LifecycleConfigArns to an empty list.

    + */ + inline void SetLifecycleConfigArns(const Aws::Vector& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns = value; } + + /** + *

    The Amazon Resource Name (ARN) of the lifecycle configurations attached to + * the user profile or domain. To remove a lifecycle config, you must set + * LifecycleConfigArns to an empty list.

    + */ + inline void SetLifecycleConfigArns(Aws::Vector&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the lifecycle configurations attached to + * the user profile or domain. To remove a lifecycle config, you must set + * LifecycleConfigArns to an empty list.

    + */ + inline JupyterLabAppSettings& WithLifecycleConfigArns(const Aws::Vector& value) { SetLifecycleConfigArns(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the lifecycle configurations attached to + * the user profile or domain. To remove a lifecycle config, you must set + * LifecycleConfigArns to an empty list.

    + */ + inline JupyterLabAppSettings& WithLifecycleConfigArns(Aws::Vector&& value) { SetLifecycleConfigArns(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the lifecycle configurations attached to + * the user profile or domain. To remove a lifecycle config, you must set + * LifecycleConfigArns to an empty list.

    + */ + inline JupyterLabAppSettings& AddLifecycleConfigArns(const Aws::String& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(value); return *this; } + + /** + *

    The Amazon Resource Name (ARN) of the lifecycle configurations attached to + * the user profile or domain. To remove a lifecycle config, you must set + * LifecycleConfigArns to an empty list.

    + */ + inline JupyterLabAppSettings& AddLifecycleConfigArns(Aws::String&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(std::move(value)); return *this; } + + /** + *

    The Amazon Resource Name (ARN) of the lifecycle configurations attached to + * the user profile or domain. To remove a lifecycle config, you must set + * LifecycleConfigArns to an empty list.

    + */ + inline JupyterLabAppSettings& AddLifecycleConfigArns(const char* value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(value); return *this; } + + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline const Aws::Vector& GetCodeRepositories() const{ return m_codeRepositories; } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline bool CodeRepositoriesHasBeenSet() const { return m_codeRepositoriesHasBeenSet; } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline void SetCodeRepositories(const Aws::Vector& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories = value; } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline void SetCodeRepositories(Aws::Vector&& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories = std::move(value); } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline JupyterLabAppSettings& WithCodeRepositories(const Aws::Vector& value) { SetCodeRepositories(value); return *this;} + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline JupyterLabAppSettings& WithCodeRepositories(Aws::Vector&& value) { SetCodeRepositories(std::move(value)); return *this;} + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline JupyterLabAppSettings& AddCodeRepositories(const CodeRepository& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories.push_back(value); return *this; } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline JupyterLabAppSettings& AddCodeRepositories(CodeRepository&& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories.push_back(std::move(value)); return *this; } + + private: + + ResourceSpec m_defaultResourceSpec; + bool m_defaultResourceSpecHasBeenSet = false; + + Aws::Vector m_customImages; + bool m_customImagesHasBeenSet = false; + + Aws::Vector m_lifecycleConfigArns; + bool m_lifecycleConfigArnsHasBeenSet = false; + + Aws::Vector m_codeRepositories; + bool m_codeRepositoriesHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettings.h new file mode 100644 index 00000000000..c8267c2d48b --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettings.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    The collection of ownership settings for a space.

    See Also:

    + * AWS + * API Reference

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

    The user profile who is the owner of the private space.

    + */ + inline const Aws::String& GetOwnerUserProfileName() const{ return m_ownerUserProfileName; } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline bool OwnerUserProfileNameHasBeenSet() const { return m_ownerUserProfileNameHasBeenSet; } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline void SetOwnerUserProfileName(const Aws::String& value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName = value; } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline void SetOwnerUserProfileName(Aws::String&& value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName = std::move(value); } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline void SetOwnerUserProfileName(const char* value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName.assign(value); } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline OwnershipSettings& WithOwnerUserProfileName(const Aws::String& value) { SetOwnerUserProfileName(value); return *this;} + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline OwnershipSettings& WithOwnerUserProfileName(Aws::String&& value) { SetOwnerUserProfileName(std::move(value)); return *this;} + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline OwnershipSettings& WithOwnerUserProfileName(const char* value) { SetOwnerUserProfileName(value); return *this;} + + private: + + Aws::String m_ownerUserProfileName; + bool m_ownerUserProfileNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettingsSummary.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettingsSummary.h new file mode 100644 index 00000000000..0ff7dda76f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettingsSummary.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    Specifies summary information about the ownership settings.

    See + * Also:

    AWS + * API Reference

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

    The user profile who is the owner of the private space.

    + */ + inline const Aws::String& GetOwnerUserProfileName() const{ return m_ownerUserProfileName; } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline bool OwnerUserProfileNameHasBeenSet() const { return m_ownerUserProfileNameHasBeenSet; } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline void SetOwnerUserProfileName(const Aws::String& value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName = value; } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline void SetOwnerUserProfileName(Aws::String&& value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName = std::move(value); } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline void SetOwnerUserProfileName(const char* value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName.assign(value); } + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline OwnershipSettingsSummary& WithOwnerUserProfileName(const Aws::String& value) { SetOwnerUserProfileName(value); return *this;} + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline OwnershipSettingsSummary& WithOwnerUserProfileName(Aws::String&& value) { SetOwnerUserProfileName(std::move(value)); return *this;} + + /** + *

    The user profile who is the owner of the private space.

    + */ + inline OwnershipSettingsSummary& WithOwnerUserProfileName(const char* value) { SetOwnerUserProfileName(value); return *this;} + + private: + + Aws::String m_ownerUserProfileName; + bool m_ownerUserProfileNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SharingType.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SharingType.h new file mode 100644 index 00000000000..fb3df3de7db --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SharingType.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 SageMaker +{ +namespace Model +{ + enum class SharingType + { + NOT_SET, + Private, + Shared + }; + +namespace SharingTypeMapper +{ +AWS_SAGEMAKER_API SharingType GetSharingTypeForName(const Aws::String& name); + +AWS_SAGEMAKER_API Aws::String GetNameForSharingType(SharingType value); +} // namespace SharingTypeMapper +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceCodeEditorAppSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceCodeEditorAppSettings.h new file mode 100644 index 00000000000..4437e7d5d16 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceCodeEditorAppSettings.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 +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    The application settings for a Code Editor space.

    See Also:

    + * AWS + * API Reference

    + */ + class SpaceCodeEditorAppSettings + { + public: + AWS_SAGEMAKER_API SpaceCodeEditorAppSettings(); + AWS_SAGEMAKER_API SpaceCodeEditorAppSettings(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API SpaceCodeEditorAppSettings& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const ResourceSpec& GetDefaultResourceSpec() const{ return m_defaultResourceSpec; } + + + inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; } + + + inline void SetDefaultResourceSpec(const ResourceSpec& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = value; } + + + inline void SetDefaultResourceSpec(ResourceSpec&& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = std::move(value); } + + + inline SpaceCodeEditorAppSettings& WithDefaultResourceSpec(const ResourceSpec& value) { SetDefaultResourceSpec(value); return *this;} + + + inline SpaceCodeEditorAppSettings& WithDefaultResourceSpec(ResourceSpec&& value) { SetDefaultResourceSpec(std::move(value)); return *this;} + + private: + + ResourceSpec m_defaultResourceSpec; + bool m_defaultResourceSpecHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceDetails.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceDetails.h index a19905589f7..f57c5c2fc80 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceDetails.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceDetails.h @@ -8,6 +8,9 @@ #include #include #include +#include +#include +#include #include namespace Aws @@ -213,6 +216,140 @@ namespace Model */ inline SpaceDetails& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + + /** + *

    The name of the space that appears in the Studio UI.

    + */ + inline const Aws::String& GetSpaceDisplayName() const{ return m_spaceDisplayName; } + + /** + *

    The name of the space that appears in the Studio UI.

    + */ + inline bool SpaceDisplayNameHasBeenSet() const { return m_spaceDisplayNameHasBeenSet; } + + /** + *

    The name of the space that appears in the Studio UI.

    + */ + inline void SetSpaceDisplayName(const Aws::String& value) { m_spaceDisplayNameHasBeenSet = true; m_spaceDisplayName = value; } + + /** + *

    The name of the space that appears in the Studio UI.

    + */ + inline void SetSpaceDisplayName(Aws::String&& value) { m_spaceDisplayNameHasBeenSet = true; m_spaceDisplayName = std::move(value); } + + /** + *

    The name of the space that appears in the Studio UI.

    + */ + inline void SetSpaceDisplayName(const char* value) { m_spaceDisplayNameHasBeenSet = true; m_spaceDisplayName.assign(value); } + + /** + *

    The name of the space that appears in the Studio UI.

    + */ + inline SpaceDetails& WithSpaceDisplayName(const Aws::String& value) { SetSpaceDisplayName(value); return *this;} + + /** + *

    The name of the space that appears in the Studio UI.

    + */ + inline SpaceDetails& WithSpaceDisplayName(Aws::String&& value) { SetSpaceDisplayName(std::move(value)); return *this;} + + /** + *

    The name of the space that appears in the Studio UI.

    + */ + inline SpaceDetails& WithSpaceDisplayName(const char* value) { SetSpaceDisplayName(value); return *this;} + + + /** + *

    Specifies summary information about the space settings.

    + */ + inline const SpaceSettingsSummary& GetSpaceSettingsSummary() const{ return m_spaceSettingsSummary; } + + /** + *

    Specifies summary information about the space settings.

    + */ + inline bool SpaceSettingsSummaryHasBeenSet() const { return m_spaceSettingsSummaryHasBeenSet; } + + /** + *

    Specifies summary information about the space settings.

    + */ + inline void SetSpaceSettingsSummary(const SpaceSettingsSummary& value) { m_spaceSettingsSummaryHasBeenSet = true; m_spaceSettingsSummary = value; } + + /** + *

    Specifies summary information about the space settings.

    + */ + inline void SetSpaceSettingsSummary(SpaceSettingsSummary&& value) { m_spaceSettingsSummaryHasBeenSet = true; m_spaceSettingsSummary = std::move(value); } + + /** + *

    Specifies summary information about the space settings.

    + */ + inline SpaceDetails& WithSpaceSettingsSummary(const SpaceSettingsSummary& value) { SetSpaceSettingsSummary(value); return *this;} + + /** + *

    Specifies summary information about the space settings.

    + */ + inline SpaceDetails& WithSpaceSettingsSummary(SpaceSettingsSummary&& value) { SetSpaceSettingsSummary(std::move(value)); return *this;} + + + /** + *

    Specifies summary information about the space sharing settings.

    + */ + inline const SpaceSharingSettingsSummary& GetSpaceSharingSettingsSummary() const{ return m_spaceSharingSettingsSummary; } + + /** + *

    Specifies summary information about the space sharing settings.

    + */ + inline bool SpaceSharingSettingsSummaryHasBeenSet() const { return m_spaceSharingSettingsSummaryHasBeenSet; } + + /** + *

    Specifies summary information about the space sharing settings.

    + */ + inline void SetSpaceSharingSettingsSummary(const SpaceSharingSettingsSummary& value) { m_spaceSharingSettingsSummaryHasBeenSet = true; m_spaceSharingSettingsSummary = value; } + + /** + *

    Specifies summary information about the space sharing settings.

    + */ + inline void SetSpaceSharingSettingsSummary(SpaceSharingSettingsSummary&& value) { m_spaceSharingSettingsSummaryHasBeenSet = true; m_spaceSharingSettingsSummary = std::move(value); } + + /** + *

    Specifies summary information about the space sharing settings.

    + */ + inline SpaceDetails& WithSpaceSharingSettingsSummary(const SpaceSharingSettingsSummary& value) { SetSpaceSharingSettingsSummary(value); return *this;} + + /** + *

    Specifies summary information about the space sharing settings.

    + */ + inline SpaceDetails& WithSpaceSharingSettingsSummary(SpaceSharingSettingsSummary&& value) { SetSpaceSharingSettingsSummary(std::move(value)); return *this;} + + + /** + *

    Specifies summary information about the ownership settings.

    + */ + inline const OwnershipSettingsSummary& GetOwnershipSettingsSummary() const{ return m_ownershipSettingsSummary; } + + /** + *

    Specifies summary information about the ownership settings.

    + */ + inline bool OwnershipSettingsSummaryHasBeenSet() const { return m_ownershipSettingsSummaryHasBeenSet; } + + /** + *

    Specifies summary information about the ownership settings.

    + */ + inline void SetOwnershipSettingsSummary(const OwnershipSettingsSummary& value) { m_ownershipSettingsSummaryHasBeenSet = true; m_ownershipSettingsSummary = value; } + + /** + *

    Specifies summary information about the ownership settings.

    + */ + inline void SetOwnershipSettingsSummary(OwnershipSettingsSummary&& value) { m_ownershipSettingsSummaryHasBeenSet = true; m_ownershipSettingsSummary = std::move(value); } + + /** + *

    Specifies summary information about the ownership settings.

    + */ + inline SpaceDetails& WithOwnershipSettingsSummary(const OwnershipSettingsSummary& value) { SetOwnershipSettingsSummary(value); return *this;} + + /** + *

    Specifies summary information about the ownership settings.

    + */ + inline SpaceDetails& WithOwnershipSettingsSummary(OwnershipSettingsSummary&& value) { SetOwnershipSettingsSummary(std::move(value)); return *this;} + private: Aws::String m_domainId; @@ -229,6 +366,18 @@ namespace Model Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; + + Aws::String m_spaceDisplayName; + bool m_spaceDisplayNameHasBeenSet = false; + + SpaceSettingsSummary m_spaceSettingsSummary; + bool m_spaceSettingsSummaryHasBeenSet = false; + + SpaceSharingSettingsSummary m_spaceSharingSettingsSummary; + bool m_spaceSharingSettingsSummaryHasBeenSet = false; + + OwnershipSettingsSummary m_ownershipSettingsSummary; + bool m_ownershipSettingsSummaryHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceJupyterLabAppSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceJupyterLabAppSettings.h new file mode 100644 index 00000000000..cdd3a199a22 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceJupyterLabAppSettings.h @@ -0,0 +1,121 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    The settings for the JupyterLab application within a space.

    See + * Also:

    AWS + * API Reference

    + */ + class SpaceJupyterLabAppSettings + { + public: + AWS_SAGEMAKER_API SpaceJupyterLabAppSettings(); + AWS_SAGEMAKER_API SpaceJupyterLabAppSettings(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API SpaceJupyterLabAppSettings& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const ResourceSpec& GetDefaultResourceSpec() const{ return m_defaultResourceSpec; } + + + inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; } + + + inline void SetDefaultResourceSpec(const ResourceSpec& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = value; } + + + inline void SetDefaultResourceSpec(ResourceSpec&& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = std::move(value); } + + + inline SpaceJupyterLabAppSettings& WithDefaultResourceSpec(const ResourceSpec& value) { SetDefaultResourceSpec(value); return *this;} + + + inline SpaceJupyterLabAppSettings& WithDefaultResourceSpec(ResourceSpec&& value) { SetDefaultResourceSpec(std::move(value)); return *this;} + + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline const Aws::Vector& GetCodeRepositories() const{ return m_codeRepositories; } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline bool CodeRepositoriesHasBeenSet() const { return m_codeRepositoriesHasBeenSet; } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline void SetCodeRepositories(const Aws::Vector& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories = value; } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline void SetCodeRepositories(Aws::Vector&& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories = std::move(value); } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline SpaceJupyterLabAppSettings& WithCodeRepositories(const Aws::Vector& value) { SetCodeRepositories(value); return *this;} + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline SpaceJupyterLabAppSettings& WithCodeRepositories(Aws::Vector&& value) { SetCodeRepositories(std::move(value)); return *this;} + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline SpaceJupyterLabAppSettings& AddCodeRepositories(const CodeRepository& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories.push_back(value); return *this; } + + /** + *

    A list of Git repositories that SageMaker automatically displays to users for + * cloning in the JupyterLab application.

    + */ + inline SpaceJupyterLabAppSettings& AddCodeRepositories(CodeRepository&& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories.push_back(std::move(value)); return *this; } + + private: + + ResourceSpec m_defaultResourceSpec; + bool m_defaultResourceSpecHasBeenSet = false; + + Aws::Vector m_codeRepositories; + bool m_codeRepositoriesHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettings.h index aa899092b67..ad1e10d08ba 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettings.h @@ -7,6 +7,12 @@ #include #include #include +#include +#include +#include +#include +#include +#include #include namespace Aws @@ -75,6 +81,187 @@ namespace Model inline SpaceSettings& WithKernelGatewayAppSettings(KernelGatewayAppSettings&& value) { SetKernelGatewayAppSettings(std::move(value)); return *this;} + + /** + *

    The settings for the JupyterLab application.

    + */ + inline const SpaceJupyterLabAppSettings& GetJupyterLabAppSettings() const{ return m_jupyterLabAppSettings; } + + /** + *

    The settings for the JupyterLab application.

    + */ + inline bool JupyterLabAppSettingsHasBeenSet() const { return m_jupyterLabAppSettingsHasBeenSet; } + + /** + *

    The settings for the JupyterLab application.

    + */ + inline void SetJupyterLabAppSettings(const SpaceJupyterLabAppSettings& value) { m_jupyterLabAppSettingsHasBeenSet = true; m_jupyterLabAppSettings = value; } + + /** + *

    The settings for the JupyterLab application.

    + */ + inline void SetJupyterLabAppSettings(SpaceJupyterLabAppSettings&& value) { m_jupyterLabAppSettingsHasBeenSet = true; m_jupyterLabAppSettings = std::move(value); } + + /** + *

    The settings for the JupyterLab application.

    + */ + inline SpaceSettings& WithJupyterLabAppSettings(const SpaceJupyterLabAppSettings& value) { SetJupyterLabAppSettings(value); return *this;} + + /** + *

    The settings for the JupyterLab application.

    + */ + inline SpaceSettings& WithJupyterLabAppSettings(SpaceJupyterLabAppSettings&& value) { SetJupyterLabAppSettings(std::move(value)); return *this;} + + + /** + *

    The Code Editor application settings.

    + */ + inline const SpaceCodeEditorAppSettings& GetCodeEditorAppSettings() const{ return m_codeEditorAppSettings; } + + /** + *

    The Code Editor application settings.

    + */ + inline bool CodeEditorAppSettingsHasBeenSet() const { return m_codeEditorAppSettingsHasBeenSet; } + + /** + *

    The Code Editor application settings.

    + */ + inline void SetCodeEditorAppSettings(const SpaceCodeEditorAppSettings& value) { m_codeEditorAppSettingsHasBeenSet = true; m_codeEditorAppSettings = value; } + + /** + *

    The Code Editor application settings.

    + */ + inline void SetCodeEditorAppSettings(SpaceCodeEditorAppSettings&& value) { m_codeEditorAppSettingsHasBeenSet = true; m_codeEditorAppSettings = std::move(value); } + + /** + *

    The Code Editor application settings.

    + */ + inline SpaceSettings& WithCodeEditorAppSettings(const SpaceCodeEditorAppSettings& value) { SetCodeEditorAppSettings(value); return *this;} + + /** + *

    The Code Editor application settings.

    + */ + inline SpaceSettings& WithCodeEditorAppSettings(SpaceCodeEditorAppSettings&& value) { SetCodeEditorAppSettings(std::move(value)); return *this;} + + + /** + *

    The storage settings for a private space.

    + */ + inline const SpaceStorageSettings& GetSpaceStorageSettings() const{ return m_spaceStorageSettings; } + + /** + *

    The storage settings for a private space.

    + */ + inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; } + + /** + *

    The storage settings for a private space.

    + */ + inline void SetSpaceStorageSettings(const SpaceStorageSettings& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = value; } + + /** + *

    The storage settings for a private space.

    + */ + inline void SetSpaceStorageSettings(SpaceStorageSettings&& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = std::move(value); } + + /** + *

    The storage settings for a private space.

    + */ + inline SpaceSettings& WithSpaceStorageSettings(const SpaceStorageSettings& value) { SetSpaceStorageSettings(value); return *this;} + + /** + *

    The storage settings for a private space.

    + */ + inline SpaceSettings& WithSpaceStorageSettings(SpaceStorageSettings&& value) { SetSpaceStorageSettings(std::move(value)); return *this;} + + + /** + *

    The type of app created within the space.

    + */ + inline const AppType& GetAppType() const{ return m_appType; } + + /** + *

    The type of app created within the space.

    + */ + inline bool AppTypeHasBeenSet() const { return m_appTypeHasBeenSet; } + + /** + *

    The type of app created within the space.

    + */ + inline void SetAppType(const AppType& value) { m_appTypeHasBeenSet = true; m_appType = value; } + + /** + *

    The type of app created within the space.

    + */ + inline void SetAppType(AppType&& value) { m_appTypeHasBeenSet = true; m_appType = std::move(value); } + + /** + *

    The type of app created within the space.

    + */ + inline SpaceSettings& WithAppType(const AppType& value) { SetAppType(value); return *this;} + + /** + *

    The type of app created within the space.

    + */ + inline SpaceSettings& WithAppType(AppType&& value) { SetAppType(std::move(value)); return *this;} + + + /** + *

    A file system, created by you, that you assign to a space for an Amazon + * SageMaker Domain. Permitted users can access this file system in Amazon + * SageMaker Studio.

    + */ + inline const Aws::Vector& GetCustomFileSystems() const{ return m_customFileSystems; } + + /** + *

    A file system, created by you, that you assign to a space for an Amazon + * SageMaker Domain. Permitted users can access this file system in Amazon + * SageMaker Studio.

    + */ + inline bool CustomFileSystemsHasBeenSet() const { return m_customFileSystemsHasBeenSet; } + + /** + *

    A file system, created by you, that you assign to a space for an Amazon + * SageMaker Domain. Permitted users can access this file system in Amazon + * SageMaker Studio.

    + */ + inline void SetCustomFileSystems(const Aws::Vector& value) { m_customFileSystemsHasBeenSet = true; m_customFileSystems = value; } + + /** + *

    A file system, created by you, that you assign to a space for an Amazon + * SageMaker Domain. Permitted users can access this file system in Amazon + * SageMaker Studio.

    + */ + inline void SetCustomFileSystems(Aws::Vector&& value) { m_customFileSystemsHasBeenSet = true; m_customFileSystems = std::move(value); } + + /** + *

    A file system, created by you, that you assign to a space for an Amazon + * SageMaker Domain. Permitted users can access this file system in Amazon + * SageMaker Studio.

    + */ + inline SpaceSettings& WithCustomFileSystems(const Aws::Vector& value) { SetCustomFileSystems(value); return *this;} + + /** + *

    A file system, created by you, that you assign to a space for an Amazon + * SageMaker Domain. Permitted users can access this file system in Amazon + * SageMaker Studio.

    + */ + inline SpaceSettings& WithCustomFileSystems(Aws::Vector&& value) { SetCustomFileSystems(std::move(value)); return *this;} + + /** + *

    A file system, created by you, that you assign to a space for an Amazon + * SageMaker Domain. Permitted users can access this file system in Amazon + * SageMaker Studio.

    + */ + inline SpaceSettings& AddCustomFileSystems(const CustomFileSystem& value) { m_customFileSystemsHasBeenSet = true; m_customFileSystems.push_back(value); return *this; } + + /** + *

    A file system, created by you, that you assign to a space for an Amazon + * SageMaker Domain. Permitted users can access this file system in Amazon + * SageMaker Studio.

    + */ + inline SpaceSettings& AddCustomFileSystems(CustomFileSystem&& value) { m_customFileSystemsHasBeenSet = true; m_customFileSystems.push_back(std::move(value)); return *this; } + private: JupyterServerAppSettings m_jupyterServerAppSettings; @@ -82,6 +269,21 @@ namespace Model KernelGatewayAppSettings m_kernelGatewayAppSettings; bool m_kernelGatewayAppSettingsHasBeenSet = false; + + SpaceJupyterLabAppSettings m_jupyterLabAppSettings; + bool m_jupyterLabAppSettingsHasBeenSet = false; + + SpaceCodeEditorAppSettings m_codeEditorAppSettings; + bool m_codeEditorAppSettingsHasBeenSet = false; + + SpaceStorageSettings m_spaceStorageSettings; + bool m_spaceStorageSettingsHasBeenSet = false; + + AppType m_appType; + bool m_appTypeHasBeenSet = false; + + Aws::Vector m_customFileSystems; + bool m_customFileSystemsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettingsSummary.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettingsSummary.h new file mode 100644 index 00000000000..fbf86ff4c41 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettingsSummary.h @@ -0,0 +1,114 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    Specifies summary information about the space settings.

    See + * Also:

    AWS + * API Reference

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

    The type of app created within the space.

    + */ + inline const AppType& GetAppType() const{ return m_appType; } + + /** + *

    The type of app created within the space.

    + */ + inline bool AppTypeHasBeenSet() const { return m_appTypeHasBeenSet; } + + /** + *

    The type of app created within the space.

    + */ + inline void SetAppType(const AppType& value) { m_appTypeHasBeenSet = true; m_appType = value; } + + /** + *

    The type of app created within the space.

    + */ + inline void SetAppType(AppType&& value) { m_appTypeHasBeenSet = true; m_appType = std::move(value); } + + /** + *

    The type of app created within the space.

    + */ + inline SpaceSettingsSummary& WithAppType(const AppType& value) { SetAppType(value); return *this;} + + /** + *

    The type of app created within the space.

    + */ + inline SpaceSettingsSummary& WithAppType(AppType&& value) { SetAppType(std::move(value)); return *this;} + + + /** + *

    The storage settings for a private space.

    + */ + inline const SpaceStorageSettings& GetSpaceStorageSettings() const{ return m_spaceStorageSettings; } + + /** + *

    The storage settings for a private space.

    + */ + inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; } + + /** + *

    The storage settings for a private space.

    + */ + inline void SetSpaceStorageSettings(const SpaceStorageSettings& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = value; } + + /** + *

    The storage settings for a private space.

    + */ + inline void SetSpaceStorageSettings(SpaceStorageSettings&& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = std::move(value); } + + /** + *

    The storage settings for a private space.

    + */ + inline SpaceSettingsSummary& WithSpaceStorageSettings(const SpaceStorageSettings& value) { SetSpaceStorageSettings(value); return *this;} + + /** + *

    The storage settings for a private space.

    + */ + inline SpaceSettingsSummary& WithSpaceStorageSettings(SpaceStorageSettings&& value) { SetSpaceStorageSettings(std::move(value)); return *this;} + + private: + + AppType m_appType; + bool m_appTypeHasBeenSet = false; + + SpaceStorageSettings m_spaceStorageSettings; + bool m_spaceStorageSettingsHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSharingSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSharingSettings.h new file mode 100644 index 00000000000..47669f95944 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSharingSettings.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 SageMaker +{ +namespace Model +{ + + /** + *

    A collection of space sharing settings.

    See Also:

    AWS + * API Reference

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

    Specifies the sharing type of the space.

    + */ + inline const SharingType& GetSharingType() const{ return m_sharingType; } + + /** + *

    Specifies the sharing type of the space.

    + */ + inline bool SharingTypeHasBeenSet() const { return m_sharingTypeHasBeenSet; } + + /** + *

    Specifies the sharing type of the space.

    + */ + inline void SetSharingType(const SharingType& value) { m_sharingTypeHasBeenSet = true; m_sharingType = value; } + + /** + *

    Specifies the sharing type of the space.

    + */ + inline void SetSharingType(SharingType&& value) { m_sharingTypeHasBeenSet = true; m_sharingType = std::move(value); } + + /** + *

    Specifies the sharing type of the space.

    + */ + inline SpaceSharingSettings& WithSharingType(const SharingType& value) { SetSharingType(value); return *this;} + + /** + *

    Specifies the sharing type of the space.

    + */ + inline SpaceSharingSettings& WithSharingType(SharingType&& value) { SetSharingType(std::move(value)); return *this;} + + private: + + SharingType m_sharingType; + bool m_sharingTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSharingSettingsSummary.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSharingSettingsSummary.h new file mode 100644 index 00000000000..c9d2b51bc3f --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSharingSettingsSummary.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    Specifies summary information about the space sharing settings.

    See + * Also:

    AWS + * API Reference

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

    Specifies the sharing type of the space.

    + */ + inline const SharingType& GetSharingType() const{ return m_sharingType; } + + /** + *

    Specifies the sharing type of the space.

    + */ + inline bool SharingTypeHasBeenSet() const { return m_sharingTypeHasBeenSet; } + + /** + *

    Specifies the sharing type of the space.

    + */ + inline void SetSharingType(const SharingType& value) { m_sharingTypeHasBeenSet = true; m_sharingType = value; } + + /** + *

    Specifies the sharing type of the space.

    + */ + inline void SetSharingType(SharingType&& value) { m_sharingTypeHasBeenSet = true; m_sharingType = std::move(value); } + + /** + *

    Specifies the sharing type of the space.

    + */ + inline SpaceSharingSettingsSummary& WithSharingType(const SharingType& value) { SetSharingType(value); return *this;} + + /** + *

    Specifies the sharing type of the space.

    + */ + inline SpaceSharingSettingsSummary& WithSharingType(SharingType&& value) { SetSharingType(std::move(value)); return *this;} + + private: + + SharingType m_sharingType; + bool m_sharingTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceStorageSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceStorageSettings.h new file mode 100644 index 00000000000..8d75ae19b7a --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceStorageSettings.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 SageMaker +{ +namespace Model +{ + + /** + *

    The storage settings for a private space.

    See Also:

    AWS + * API Reference

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

    A collection of EBS storage settings for a private space.

    + */ + inline const EbsStorageSettings& GetEbsStorageSettings() const{ return m_ebsStorageSettings; } + + /** + *

    A collection of EBS storage settings for a private space.

    + */ + inline bool EbsStorageSettingsHasBeenSet() const { return m_ebsStorageSettingsHasBeenSet; } + + /** + *

    A collection of EBS storage settings for a private space.

    + */ + inline void SetEbsStorageSettings(const EbsStorageSettings& value) { m_ebsStorageSettingsHasBeenSet = true; m_ebsStorageSettings = value; } + + /** + *

    A collection of EBS storage settings for a private space.

    + */ + inline void SetEbsStorageSettings(EbsStorageSettings&& value) { m_ebsStorageSettingsHasBeenSet = true; m_ebsStorageSettings = std::move(value); } + + /** + *

    A collection of EBS storage settings for a private space.

    + */ + inline SpaceStorageSettings& WithEbsStorageSettings(const EbsStorageSettings& value) { SetEbsStorageSettings(value); return *this;} + + /** + *

    A collection of EBS storage settings for a private space.

    + */ + inline SpaceStorageSettings& WithEbsStorageSettings(EbsStorageSettings&& value) { SetEbsStorageSettings(std::move(value)); return *this;} + + private: + + EbsStorageSettings m_ebsStorageSettings; + bool m_ebsStorageSettingsHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StudioLifecycleConfigAppType.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StudioLifecycleConfigAppType.h index 33633f52d6f..a0df11f25eb 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StudioLifecycleConfigAppType.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StudioLifecycleConfigAppType.h @@ -17,7 +17,9 @@ namespace Model { NOT_SET, JupyterServer, - KernelGateway + KernelGateway, + JupyterLab, + CodeEditor }; namespace StudioLifecycleConfigAppTypeMapper diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateAppImageConfigRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateAppImageConfigRequest.h index 7763bc928ec..34ea2963578 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateAppImageConfigRequest.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateAppImageConfigRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -106,6 +107,37 @@ namespace Model */ inline UpdateAppImageConfigRequest& WithKernelGatewayImageConfig(KernelGatewayImageConfig&& value) { SetKernelGatewayImageConfig(std::move(value)); return *this;} + + /** + *

    The JupyterLab app running on the image.

    + */ + inline const JupyterLabAppImageConfig& GetJupyterLabAppImageConfig() const{ return m_jupyterLabAppImageConfig; } + + /** + *

    The JupyterLab app running on the image.

    + */ + inline bool JupyterLabAppImageConfigHasBeenSet() const { return m_jupyterLabAppImageConfigHasBeenSet; } + + /** + *

    The JupyterLab app running on the image.

    + */ + inline void SetJupyterLabAppImageConfig(const JupyterLabAppImageConfig& value) { m_jupyterLabAppImageConfigHasBeenSet = true; m_jupyterLabAppImageConfig = value; } + + /** + *

    The JupyterLab app running on the image.

    + */ + inline void SetJupyterLabAppImageConfig(JupyterLabAppImageConfig&& value) { m_jupyterLabAppImageConfigHasBeenSet = true; m_jupyterLabAppImageConfig = std::move(value); } + + /** + *

    The JupyterLab app running on the image.

    + */ + inline UpdateAppImageConfigRequest& WithJupyterLabAppImageConfig(const JupyterLabAppImageConfig& value) { SetJupyterLabAppImageConfig(value); return *this;} + + /** + *

    The JupyterLab app running on the image.

    + */ + inline UpdateAppImageConfigRequest& WithJupyterLabAppImageConfig(JupyterLabAppImageConfig&& value) { SetJupyterLabAppImageConfig(std::move(value)); return *this;} + private: Aws::String m_appImageConfigName; @@ -113,6 +145,9 @@ namespace Model KernelGatewayImageConfig m_kernelGatewayImageConfig; bool m_kernelGatewayImageConfigHasBeenSet = false; + + JupyterLabAppImageConfig m_jupyterLabAppImageConfig; + bool m_jupyterLabAppImageConfigHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateSpaceRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateSpaceRequest.h index 13661e85511..687b11fc4ce 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateSpaceRequest.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateSpaceRequest.h @@ -147,6 +147,47 @@ namespace Model */ inline UpdateSpaceRequest& WithSpaceSettings(SpaceSettings&& value) { SetSpaceSettings(std::move(value)); return *this;} + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline const Aws::String& GetSpaceDisplayName() const{ return m_spaceDisplayName; } + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline bool SpaceDisplayNameHasBeenSet() const { return m_spaceDisplayNameHasBeenSet; } + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline void SetSpaceDisplayName(const Aws::String& value) { m_spaceDisplayNameHasBeenSet = true; m_spaceDisplayName = value; } + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline void SetSpaceDisplayName(Aws::String&& value) { m_spaceDisplayNameHasBeenSet = true; m_spaceDisplayName = std::move(value); } + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline void SetSpaceDisplayName(const char* value) { m_spaceDisplayNameHasBeenSet = true; m_spaceDisplayName.assign(value); } + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline UpdateSpaceRequest& WithSpaceDisplayName(const Aws::String& value) { SetSpaceDisplayName(value); return *this;} + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline UpdateSpaceRequest& WithSpaceDisplayName(Aws::String&& value) { SetSpaceDisplayName(std::move(value)); return *this;} + + /** + *

    The name of the space that appears in the Amazon SageMaker Studio UI.

    + */ + inline UpdateSpaceRequest& WithSpaceDisplayName(const char* value) { SetSpaceDisplayName(value); return *this;} + private: Aws::String m_domainId; @@ -157,6 +198,9 @@ namespace Model SpaceSettings m_spaceSettings; bool m_spaceSettingsHasBeenSet = false; + + Aws::String m_spaceDisplayName; + bool m_spaceDisplayNameHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UserSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UserSettings.h index 0330c0cbd26..212e85dbcdf 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UserSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UserSettings.h @@ -14,7 +14,12 @@ #include #include #include +#include +#include +#include #include +#include +#include #include namespace Aws @@ -449,6 +454,99 @@ namespace Model inline UserSettings& WithCanvasAppSettings(CanvasAppSettings&& value) { SetCanvasAppSettings(std::move(value)); return *this;} + /** + *

    The settings for the JupyterLab application.

    + */ + inline const JupyterLabAppSettings& GetJupyterLabAppSettings() const{ return m_jupyterLabAppSettings; } + + /** + *

    The settings for the JupyterLab application.

    + */ + inline bool JupyterLabAppSettingsHasBeenSet() const { return m_jupyterLabAppSettingsHasBeenSet; } + + /** + *

    The settings for the JupyterLab application.

    + */ + inline void SetJupyterLabAppSettings(const JupyterLabAppSettings& value) { m_jupyterLabAppSettingsHasBeenSet = true; m_jupyterLabAppSettings = value; } + + /** + *

    The settings for the JupyterLab application.

    + */ + inline void SetJupyterLabAppSettings(JupyterLabAppSettings&& value) { m_jupyterLabAppSettingsHasBeenSet = true; m_jupyterLabAppSettings = std::move(value); } + + /** + *

    The settings for the JupyterLab application.

    + */ + inline UserSettings& WithJupyterLabAppSettings(const JupyterLabAppSettings& value) { SetJupyterLabAppSettings(value); return *this;} + + /** + *

    The settings for the JupyterLab application.

    + */ + inline UserSettings& WithJupyterLabAppSettings(JupyterLabAppSettings&& value) { SetJupyterLabAppSettings(std::move(value)); return *this;} + + + /** + *

    The Code Editor application settings.

    + */ + inline const CodeEditorAppSettings& GetCodeEditorAppSettings() const{ return m_codeEditorAppSettings; } + + /** + *

    The Code Editor application settings.

    + */ + inline bool CodeEditorAppSettingsHasBeenSet() const { return m_codeEditorAppSettingsHasBeenSet; } + + /** + *

    The Code Editor application settings.

    + */ + inline void SetCodeEditorAppSettings(const CodeEditorAppSettings& value) { m_codeEditorAppSettingsHasBeenSet = true; m_codeEditorAppSettings = value; } + + /** + *

    The Code Editor application settings.

    + */ + inline void SetCodeEditorAppSettings(CodeEditorAppSettings&& value) { m_codeEditorAppSettingsHasBeenSet = true; m_codeEditorAppSettings = std::move(value); } + + /** + *

    The Code Editor application settings.

    + */ + inline UserSettings& WithCodeEditorAppSettings(const CodeEditorAppSettings& value) { SetCodeEditorAppSettings(value); return *this;} + + /** + *

    The Code Editor application settings.

    + */ + inline UserSettings& WithCodeEditorAppSettings(CodeEditorAppSettings&& value) { SetCodeEditorAppSettings(std::move(value)); return *this;} + + + /** + *

    The storage settings for a private space.

    + */ + inline const DefaultSpaceStorageSettings& GetSpaceStorageSettings() const{ return m_spaceStorageSettings; } + + /** + *

    The storage settings for a private space.

    + */ + inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; } + + /** + *

    The storage settings for a private space.

    + */ + inline void SetSpaceStorageSettings(const DefaultSpaceStorageSettings& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = value; } + + /** + *

    The storage settings for a private space.

    + */ + inline void SetSpaceStorageSettings(DefaultSpaceStorageSettings&& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = std::move(value); } + + /** + *

    The storage settings for a private space.

    + */ + inline UserSettings& WithSpaceStorageSettings(const DefaultSpaceStorageSettings& value) { SetSpaceStorageSettings(value); return *this;} + + /** + *

    The storage settings for a private space.

    + */ + inline UserSettings& WithSpaceStorageSettings(DefaultSpaceStorageSettings&& value) { SetSpaceStorageSettings(std::move(value)); return *this;} + + /** *

    The default experience that the user is directed to when accessing the * domain. The supported values are:

    • studio::: @@ -572,6 +670,86 @@ namespace Model */ inline UserSettings& WithStudioWebPortal(StudioWebPortal&& value) { SetStudioWebPortal(std::move(value)); return *this;} + + /** + *

      Details about the POSIX identity that is used for file system operations.

      + */ + inline const CustomPosixUserConfig& GetCustomPosixUserConfig() const{ return m_customPosixUserConfig; } + + /** + *

      Details about the POSIX identity that is used for file system operations.

      + */ + inline bool CustomPosixUserConfigHasBeenSet() const { return m_customPosixUserConfigHasBeenSet; } + + /** + *

      Details about the POSIX identity that is used for file system operations.

      + */ + inline void SetCustomPosixUserConfig(const CustomPosixUserConfig& value) { m_customPosixUserConfigHasBeenSet = true; m_customPosixUserConfig = value; } + + /** + *

      Details about the POSIX identity that is used for file system operations.

      + */ + inline void SetCustomPosixUserConfig(CustomPosixUserConfig&& value) { m_customPosixUserConfigHasBeenSet = true; m_customPosixUserConfig = std::move(value); } + + /** + *

      Details about the POSIX identity that is used for file system operations.

      + */ + inline UserSettings& WithCustomPosixUserConfig(const CustomPosixUserConfig& value) { SetCustomPosixUserConfig(value); return *this;} + + /** + *

      Details about the POSIX identity that is used for file system operations.

      + */ + inline UserSettings& WithCustomPosixUserConfig(CustomPosixUserConfig&& value) { SetCustomPosixUserConfig(std::move(value)); return *this;} + + + /** + *

      The settings for assigning a custom file system to a user profile. Permitted + * users can access this file system in Amazon SageMaker Studio.

      + */ + inline const Aws::Vector& GetCustomFileSystemConfigs() const{ return m_customFileSystemConfigs; } + + /** + *

      The settings for assigning a custom file system to a user profile. Permitted + * users can access this file system in Amazon SageMaker Studio.

      + */ + inline bool CustomFileSystemConfigsHasBeenSet() const { return m_customFileSystemConfigsHasBeenSet; } + + /** + *

      The settings for assigning a custom file system to a user profile. Permitted + * users can access this file system in Amazon SageMaker Studio.

      + */ + inline void SetCustomFileSystemConfigs(const Aws::Vector& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs = value; } + + /** + *

      The settings for assigning a custom file system to a user profile. Permitted + * users can access this file system in Amazon SageMaker Studio.

      + */ + inline void SetCustomFileSystemConfigs(Aws::Vector&& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs = std::move(value); } + + /** + *

      The settings for assigning a custom file system to a user profile. Permitted + * users can access this file system in Amazon SageMaker Studio.

      + */ + inline UserSettings& WithCustomFileSystemConfigs(const Aws::Vector& value) { SetCustomFileSystemConfigs(value); return *this;} + + /** + *

      The settings for assigning a custom file system to a user profile. Permitted + * users can access this file system in Amazon SageMaker Studio.

      + */ + inline UserSettings& WithCustomFileSystemConfigs(Aws::Vector&& value) { SetCustomFileSystemConfigs(std::move(value)); return *this;} + + /** + *

      The settings for assigning a custom file system to a user profile. Permitted + * users can access this file system in Amazon SageMaker Studio.

      + */ + inline UserSettings& AddCustomFileSystemConfigs(const CustomFileSystemConfig& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs.push_back(value); return *this; } + + /** + *

      The settings for assigning a custom file system to a user profile. Permitted + * users can access this file system in Amazon SageMaker Studio.

      + */ + inline UserSettings& AddCustomFileSystemConfigs(CustomFileSystemConfig&& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs.push_back(std::move(value)); return *this; } + private: Aws::String m_executionRole; @@ -601,11 +779,26 @@ namespace Model CanvasAppSettings m_canvasAppSettings; bool m_canvasAppSettingsHasBeenSet = false; + JupyterLabAppSettings m_jupyterLabAppSettings; + bool m_jupyterLabAppSettingsHasBeenSet = false; + + CodeEditorAppSettings m_codeEditorAppSettings; + bool m_codeEditorAppSettingsHasBeenSet = false; + + DefaultSpaceStorageSettings m_spaceStorageSettings; + bool m_spaceStorageSettingsHasBeenSet = false; + Aws::String m_defaultLandingUri; bool m_defaultLandingUriHasBeenSet = false; StudioWebPortal m_studioWebPortal; bool m_studioWebPortalHasBeenSet = false; + + CustomPosixUserConfig m_customPosixUserConfig; + bool m_customPosixUserConfigHasBeenSet = false; + + Aws::Vector m_customFileSystemConfigs; + bool m_customFileSystemConfigsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppDetails.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppDetails.cpp index b0efb7052a0..d46a0d3c12c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppDetails.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppDetails.cpp @@ -27,7 +27,8 @@ AppDetails::AppDetails() : m_status(AppStatus::NOT_SET), m_statusHasBeenSet(false), m_creationTimeHasBeenSet(false), - m_spaceNameHasBeenSet(false) + m_spaceNameHasBeenSet(false), + m_resourceSpecHasBeenSet(false) { } @@ -40,7 +41,8 @@ AppDetails::AppDetails(JsonView jsonValue) : m_status(AppStatus::NOT_SET), m_statusHasBeenSet(false), m_creationTimeHasBeenSet(false), - m_spaceNameHasBeenSet(false) + m_spaceNameHasBeenSet(false), + m_resourceSpecHasBeenSet(false) { *this = jsonValue; } @@ -96,6 +98,13 @@ AppDetails& AppDetails::operator =(JsonView jsonValue) m_spaceNameHasBeenSet = true; } + if(jsonValue.ValueExists("ResourceSpec")) + { + m_resourceSpec = jsonValue.GetObject("ResourceSpec"); + + m_resourceSpecHasBeenSet = true; + } + return *this; } @@ -142,6 +151,12 @@ JsonValue AppDetails::Jsonize() const } + if(m_resourceSpecHasBeenSet) + { + payload.WithObject("ResourceSpec", m_resourceSpec.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppImageConfigDetails.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppImageConfigDetails.cpp index 14b4e976ef2..2c4977ef3cf 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppImageConfigDetails.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppImageConfigDetails.cpp @@ -23,7 +23,8 @@ AppImageConfigDetails::AppImageConfigDetails() : m_appImageConfigNameHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastModifiedTimeHasBeenSet(false), - m_kernelGatewayImageConfigHasBeenSet(false) + m_kernelGatewayImageConfigHasBeenSet(false), + m_jupyterLabAppImageConfigHasBeenSet(false) { } @@ -32,7 +33,8 @@ AppImageConfigDetails::AppImageConfigDetails(JsonView jsonValue) : m_appImageConfigNameHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastModifiedTimeHasBeenSet(false), - m_kernelGatewayImageConfigHasBeenSet(false) + m_kernelGatewayImageConfigHasBeenSet(false), + m_jupyterLabAppImageConfigHasBeenSet(false) { *this = jsonValue; } @@ -74,6 +76,13 @@ AppImageConfigDetails& AppImageConfigDetails::operator =(JsonView jsonValue) m_kernelGatewayImageConfigHasBeenSet = true; } + if(jsonValue.ValueExists("JupyterLabAppImageConfig")) + { + m_jupyterLabAppImageConfig = jsonValue.GetObject("JupyterLabAppImageConfig"); + + m_jupyterLabAppImageConfigHasBeenSet = true; + } + return *this; } @@ -109,6 +118,12 @@ JsonValue AppImageConfigDetails::Jsonize() const } + if(m_jupyterLabAppImageConfigHasBeenSet) + { + payload.WithObject("JupyterLabAppImageConfig", m_jupyterLabAppImageConfig.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppType.cpp index 81a249aca41..e19f416ad88 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppType.cpp @@ -25,6 +25,8 @@ namespace Aws static const int TensorBoard_HASH = HashingUtils::HashString("TensorBoard"); static const int RStudioServerPro_HASH = HashingUtils::HashString("RStudioServerPro"); static const int RSessionGateway_HASH = HashingUtils::HashString("RSessionGateway"); + static const int JupyterLab_HASH = HashingUtils::HashString("JupyterLab"); + static const int CodeEditor_HASH = HashingUtils::HashString("CodeEditor"); AppType GetAppTypeForName(const Aws::String& name) @@ -50,6 +52,14 @@ namespace Aws { return AppType::RSessionGateway; } + else if (hashCode == JupyterLab_HASH) + { + return AppType::JupyterLab; + } + else if (hashCode == CodeEditor_HASH) + { + return AppType::CodeEditor; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -76,6 +86,10 @@ namespace Aws return "RStudioServerPro"; case AppType::RSessionGateway: return "RSessionGateway"; + case AppType::JupyterLab: + return "JupyterLab"; + case AppType::CodeEditor: + return "CodeEditor"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeEditorAppSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeEditorAppSettings.cpp new file mode 100644 index 00000000000..5cfefd3e582 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeEditorAppSettings.cpp @@ -0,0 +1,82 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +CodeEditorAppSettings::CodeEditorAppSettings() : + m_defaultResourceSpecHasBeenSet(false), + m_lifecycleConfigArnsHasBeenSet(false) +{ +} + +CodeEditorAppSettings::CodeEditorAppSettings(JsonView jsonValue) : + m_defaultResourceSpecHasBeenSet(false), + m_lifecycleConfigArnsHasBeenSet(false) +{ + *this = jsonValue; +} + +CodeEditorAppSettings& CodeEditorAppSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DefaultResourceSpec")) + { + m_defaultResourceSpec = jsonValue.GetObject("DefaultResourceSpec"); + + m_defaultResourceSpecHasBeenSet = true; + } + + if(jsonValue.ValueExists("LifecycleConfigArns")) + { + Aws::Utils::Array lifecycleConfigArnsJsonList = jsonValue.GetArray("LifecycleConfigArns"); + for(unsigned lifecycleConfigArnsIndex = 0; lifecycleConfigArnsIndex < lifecycleConfigArnsJsonList.GetLength(); ++lifecycleConfigArnsIndex) + { + m_lifecycleConfigArns.push_back(lifecycleConfigArnsJsonList[lifecycleConfigArnsIndex].AsString()); + } + m_lifecycleConfigArnsHasBeenSet = true; + } + + return *this; +} + +JsonValue CodeEditorAppSettings::Jsonize() const +{ + JsonValue payload; + + if(m_defaultResourceSpecHasBeenSet) + { + payload.WithObject("DefaultResourceSpec", m_defaultResourceSpec.Jsonize()); + + } + + if(m_lifecycleConfigArnsHasBeenSet) + { + Aws::Utils::Array lifecycleConfigArnsJsonList(m_lifecycleConfigArns.size()); + for(unsigned lifecycleConfigArnsIndex = 0; lifecycleConfigArnsIndex < lifecycleConfigArnsJsonList.GetLength(); ++lifecycleConfigArnsIndex) + { + lifecycleConfigArnsJsonList[lifecycleConfigArnsIndex].AsString(m_lifecycleConfigArns[lifecycleConfigArnsIndex]); + } + payload.WithArray("LifecycleConfigArns", std::move(lifecycleConfigArnsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerConfig.cpp new file mode 100644 index 00000000000..843d0f00f4d --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerConfig.cpp @@ -0,0 +1,113 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +ContainerConfig::ContainerConfig() : + m_containerArgumentsHasBeenSet(false), + m_containerEntrypointHasBeenSet(false), + m_containerEnvironmentVariablesHasBeenSet(false) +{ +} + +ContainerConfig::ContainerConfig(JsonView jsonValue) : + m_containerArgumentsHasBeenSet(false), + m_containerEntrypointHasBeenSet(false), + m_containerEnvironmentVariablesHasBeenSet(false) +{ + *this = jsonValue; +} + +ContainerConfig& ContainerConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ContainerArguments")) + { + Aws::Utils::Array containerArgumentsJsonList = jsonValue.GetArray("ContainerArguments"); + for(unsigned containerArgumentsIndex = 0; containerArgumentsIndex < containerArgumentsJsonList.GetLength(); ++containerArgumentsIndex) + { + m_containerArguments.push_back(containerArgumentsJsonList[containerArgumentsIndex].AsString()); + } + m_containerArgumentsHasBeenSet = true; + } + + if(jsonValue.ValueExists("ContainerEntrypoint")) + { + Aws::Utils::Array containerEntrypointJsonList = jsonValue.GetArray("ContainerEntrypoint"); + for(unsigned containerEntrypointIndex = 0; containerEntrypointIndex < containerEntrypointJsonList.GetLength(); ++containerEntrypointIndex) + { + m_containerEntrypoint.push_back(containerEntrypointJsonList[containerEntrypointIndex].AsString()); + } + m_containerEntrypointHasBeenSet = true; + } + + if(jsonValue.ValueExists("ContainerEnvironmentVariables")) + { + Aws::Map containerEnvironmentVariablesJsonMap = jsonValue.GetObject("ContainerEnvironmentVariables").GetAllObjects(); + for(auto& containerEnvironmentVariablesItem : containerEnvironmentVariablesJsonMap) + { + m_containerEnvironmentVariables[containerEnvironmentVariablesItem.first] = containerEnvironmentVariablesItem.second.AsString(); + } + m_containerEnvironmentVariablesHasBeenSet = true; + } + + return *this; +} + +JsonValue ContainerConfig::Jsonize() const +{ + JsonValue payload; + + if(m_containerArgumentsHasBeenSet) + { + Aws::Utils::Array containerArgumentsJsonList(m_containerArguments.size()); + for(unsigned containerArgumentsIndex = 0; containerArgumentsIndex < containerArgumentsJsonList.GetLength(); ++containerArgumentsIndex) + { + containerArgumentsJsonList[containerArgumentsIndex].AsString(m_containerArguments[containerArgumentsIndex]); + } + payload.WithArray("ContainerArguments", std::move(containerArgumentsJsonList)); + + } + + if(m_containerEntrypointHasBeenSet) + { + Aws::Utils::Array containerEntrypointJsonList(m_containerEntrypoint.size()); + for(unsigned containerEntrypointIndex = 0; containerEntrypointIndex < containerEntrypointJsonList.GetLength(); ++containerEntrypointIndex) + { + containerEntrypointJsonList[containerEntrypointIndex].AsString(m_containerEntrypoint[containerEntrypointIndex]); + } + payload.WithArray("ContainerEntrypoint", std::move(containerEntrypointJsonList)); + + } + + if(m_containerEnvironmentVariablesHasBeenSet) + { + JsonValue containerEnvironmentVariablesJsonMap; + for(auto& containerEnvironmentVariablesItem : m_containerEnvironmentVariables) + { + containerEnvironmentVariablesJsonMap.WithString(containerEnvironmentVariablesItem.first, containerEnvironmentVariablesItem.second); + } + payload.WithObject("ContainerEnvironmentVariables", std::move(containerEnvironmentVariablesJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateAppImageConfigRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateAppImageConfigRequest.cpp index cd12210c4ce..53a8e85ed7b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateAppImageConfigRequest.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateAppImageConfigRequest.cpp @@ -15,7 +15,8 @@ using namespace Aws::Utils; CreateAppImageConfigRequest::CreateAppImageConfigRequest() : m_appImageConfigNameHasBeenSet(false), m_tagsHasBeenSet(false), - m_kernelGatewayImageConfigHasBeenSet(false) + m_kernelGatewayImageConfigHasBeenSet(false), + m_jupyterLabAppImageConfigHasBeenSet(false) { } @@ -46,6 +47,12 @@ Aws::String CreateAppImageConfigRequest::SerializePayload() const } + if(m_jupyterLabAppImageConfigHasBeenSet) + { + payload.WithObject("JupyterLabAppImageConfig", m_jupyterLabAppImageConfig.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateSpaceRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateSpaceRequest.cpp index a9a67bb5629..64832d63c42 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateSpaceRequest.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateSpaceRequest.cpp @@ -16,7 +16,10 @@ CreateSpaceRequest::CreateSpaceRequest() : m_domainIdHasBeenSet(false), m_spaceNameHasBeenSet(false), m_tagsHasBeenSet(false), - m_spaceSettingsHasBeenSet(false) + m_spaceSettingsHasBeenSet(false), + m_spaceDisplayNameHasBeenSet(false), + m_ownershipSettingsHasBeenSet(false), + m_spaceSharingSettingsHasBeenSet(false) { } @@ -53,6 +56,24 @@ Aws::String CreateSpaceRequest::SerializePayload() const } + if(m_spaceDisplayNameHasBeenSet) + { + payload.WithString("SpaceDisplayName", m_spaceDisplayName); + + } + + if(m_ownershipSettingsHasBeenSet) + { + payload.WithObject("OwnershipSettings", m_ownershipSettings.Jsonize()); + + } + + if(m_spaceSharingSettingsHasBeenSet) + { + payload.WithObject("SpaceSharingSettings", m_spaceSharingSettings.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CustomFileSystem.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CustomFileSystem.cpp new file mode 100644 index 00000000000..ad925423717 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CustomFileSystem.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 SageMaker +{ +namespace Model +{ + +CustomFileSystem::CustomFileSystem() : + m_eFSFileSystemHasBeenSet(false) +{ +} + +CustomFileSystem::CustomFileSystem(JsonView jsonValue) : + m_eFSFileSystemHasBeenSet(false) +{ + *this = jsonValue; +} + +CustomFileSystem& CustomFileSystem::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("EFSFileSystem")) + { + m_eFSFileSystem = jsonValue.GetObject("EFSFileSystem"); + + m_eFSFileSystemHasBeenSet = true; + } + + return *this; +} + +JsonValue CustomFileSystem::Jsonize() const +{ + JsonValue payload; + + if(m_eFSFileSystemHasBeenSet) + { + payload.WithObject("EFSFileSystem", m_eFSFileSystem.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CustomFileSystemConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CustomFileSystemConfig.cpp new file mode 100644 index 00000000000..51a6104c81c --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CustomFileSystemConfig.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 SageMaker +{ +namespace Model +{ + +CustomFileSystemConfig::CustomFileSystemConfig() : + m_eFSFileSystemConfigHasBeenSet(false) +{ +} + +CustomFileSystemConfig::CustomFileSystemConfig(JsonView jsonValue) : + m_eFSFileSystemConfigHasBeenSet(false) +{ + *this = jsonValue; +} + +CustomFileSystemConfig& CustomFileSystemConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("EFSFileSystemConfig")) + { + m_eFSFileSystemConfig = jsonValue.GetObject("EFSFileSystemConfig"); + + m_eFSFileSystemConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue CustomFileSystemConfig::Jsonize() const +{ + JsonValue payload; + + if(m_eFSFileSystemConfigHasBeenSet) + { + payload.WithObject("EFSFileSystemConfig", m_eFSFileSystemConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CustomPosixUserConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CustomPosixUserConfig.cpp new file mode 100644 index 00000000000..a75bde31b77 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CustomPosixUserConfig.cpp @@ -0,0 +1,78 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +CustomPosixUserConfig::CustomPosixUserConfig() : + m_uid(0), + m_uidHasBeenSet(false), + m_gid(0), + m_gidHasBeenSet(false) +{ +} + +CustomPosixUserConfig::CustomPosixUserConfig(JsonView jsonValue) : + m_uid(0), + m_uidHasBeenSet(false), + m_gid(0), + m_gidHasBeenSet(false) +{ + *this = jsonValue; +} + +CustomPosixUserConfig& CustomPosixUserConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Uid")) + { + m_uid = jsonValue.GetInt64("Uid"); + + m_uidHasBeenSet = true; + } + + if(jsonValue.ValueExists("Gid")) + { + m_gid = jsonValue.GetInt64("Gid"); + + m_gidHasBeenSet = true; + } + + return *this; +} + +JsonValue CustomPosixUserConfig::Jsonize() const +{ + JsonValue payload; + + if(m_uidHasBeenSet) + { + payload.WithInt64("Uid", m_uid); + + } + + if(m_gidHasBeenSet) + { + payload.WithInt64("Gid", m_gid); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultEbsStorageSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultEbsStorageSettings.cpp new file mode 100644 index 00000000000..de72f61e6b0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultEbsStorageSettings.cpp @@ -0,0 +1,78 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +DefaultEbsStorageSettings::DefaultEbsStorageSettings() : + m_defaultEbsVolumeSizeInGb(0), + m_defaultEbsVolumeSizeInGbHasBeenSet(false), + m_maximumEbsVolumeSizeInGb(0), + m_maximumEbsVolumeSizeInGbHasBeenSet(false) +{ +} + +DefaultEbsStorageSettings::DefaultEbsStorageSettings(JsonView jsonValue) : + m_defaultEbsVolumeSizeInGb(0), + m_defaultEbsVolumeSizeInGbHasBeenSet(false), + m_maximumEbsVolumeSizeInGb(0), + m_maximumEbsVolumeSizeInGbHasBeenSet(false) +{ + *this = jsonValue; +} + +DefaultEbsStorageSettings& DefaultEbsStorageSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DefaultEbsVolumeSizeInGb")) + { + m_defaultEbsVolumeSizeInGb = jsonValue.GetInteger("DefaultEbsVolumeSizeInGb"); + + m_defaultEbsVolumeSizeInGbHasBeenSet = true; + } + + if(jsonValue.ValueExists("MaximumEbsVolumeSizeInGb")) + { + m_maximumEbsVolumeSizeInGb = jsonValue.GetInteger("MaximumEbsVolumeSizeInGb"); + + m_maximumEbsVolumeSizeInGbHasBeenSet = true; + } + + return *this; +} + +JsonValue DefaultEbsStorageSettings::Jsonize() const +{ + JsonValue payload; + + if(m_defaultEbsVolumeSizeInGbHasBeenSet) + { + payload.WithInteger("DefaultEbsVolumeSizeInGb", m_defaultEbsVolumeSizeInGb); + + } + + if(m_maximumEbsVolumeSizeInGbHasBeenSet) + { + payload.WithInteger("MaximumEbsVolumeSizeInGb", m_maximumEbsVolumeSizeInGb); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultSpaceStorageSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultSpaceStorageSettings.cpp new file mode 100644 index 00000000000..14db16ad70a --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultSpaceStorageSettings.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 SageMaker +{ +namespace Model +{ + +DefaultSpaceStorageSettings::DefaultSpaceStorageSettings() : + m_defaultEbsStorageSettingsHasBeenSet(false) +{ +} + +DefaultSpaceStorageSettings::DefaultSpaceStorageSettings(JsonView jsonValue) : + m_defaultEbsStorageSettingsHasBeenSet(false) +{ + *this = jsonValue; +} + +DefaultSpaceStorageSettings& DefaultSpaceStorageSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DefaultEbsStorageSettings")) + { + m_defaultEbsStorageSettings = jsonValue.GetObject("DefaultEbsStorageSettings"); + + m_defaultEbsStorageSettingsHasBeenSet = true; + } + + return *this; +} + +JsonValue DefaultSpaceStorageSettings::Jsonize() const +{ + JsonValue payload; + + if(m_defaultEbsStorageSettingsHasBeenSet) + { + payload.WithObject("DefaultEbsStorageSettings", m_defaultEbsStorageSettings.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeAppImageConfigResult.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeAppImageConfigResult.cpp index 8f10cc0ef34..e836fa685c8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeAppImageConfigResult.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeAppImageConfigResult.cpp @@ -59,6 +59,12 @@ DescribeAppImageConfigResult& DescribeAppImageConfigResult::operator =(const Aws } + if(jsonValue.ValueExists("JupyterLabAppImageConfig")) + { + m_jupyterLabAppImageConfig = jsonValue.GetObject("JupyterLabAppImageConfig"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeSpaceResult.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeSpaceResult.cpp index 39132aec8e7..15291b14089 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeSpaceResult.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeSpaceResult.cpp @@ -91,6 +91,24 @@ DescribeSpaceResult& DescribeSpaceResult::operator =(const Aws::AmazonWebService } + if(jsonValue.ValueExists("SpaceDisplayName")) + { + m_spaceDisplayName = jsonValue.GetString("SpaceDisplayName"); + + } + + if(jsonValue.ValueExists("OwnershipSettings")) + { + m_ownershipSettings = jsonValue.GetObject("OwnershipSettings"); + + } + + if(jsonValue.ValueExists("SpaceSharingSettings")) + { + m_spaceSharingSettings = jsonValue.GetObject("SpaceSharingSettings"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/EFSFileSystem.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/EFSFileSystem.cpp new file mode 100644 index 00000000000..114fb2b90b1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/EFSFileSystem.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 SageMaker +{ +namespace Model +{ + +EFSFileSystem::EFSFileSystem() : + m_fileSystemIdHasBeenSet(false) +{ +} + +EFSFileSystem::EFSFileSystem(JsonView jsonValue) : + m_fileSystemIdHasBeenSet(false) +{ + *this = jsonValue; +} + +EFSFileSystem& EFSFileSystem::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("FileSystemId")) + { + m_fileSystemId = jsonValue.GetString("FileSystemId"); + + m_fileSystemIdHasBeenSet = true; + } + + return *this; +} + +JsonValue EFSFileSystem::Jsonize() const +{ + JsonValue payload; + + if(m_fileSystemIdHasBeenSet) + { + payload.WithString("FileSystemId", m_fileSystemId); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/EFSFileSystemConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/EFSFileSystemConfig.cpp new file mode 100644 index 00000000000..11df867689e --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/EFSFileSystemConfig.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 SageMaker +{ +namespace Model +{ + +EFSFileSystemConfig::EFSFileSystemConfig() : + m_fileSystemIdHasBeenSet(false), + m_fileSystemPathHasBeenSet(false) +{ +} + +EFSFileSystemConfig::EFSFileSystemConfig(JsonView jsonValue) : + m_fileSystemIdHasBeenSet(false), + m_fileSystemPathHasBeenSet(false) +{ + *this = jsonValue; +} + +EFSFileSystemConfig& EFSFileSystemConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("FileSystemId")) + { + m_fileSystemId = jsonValue.GetString("FileSystemId"); + + m_fileSystemIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("FileSystemPath")) + { + m_fileSystemPath = jsonValue.GetString("FileSystemPath"); + + m_fileSystemPathHasBeenSet = true; + } + + return *this; +} + +JsonValue EFSFileSystemConfig::Jsonize() const +{ + JsonValue payload; + + if(m_fileSystemIdHasBeenSet) + { + payload.WithString("FileSystemId", m_fileSystemId); + + } + + if(m_fileSystemPathHasBeenSet) + { + payload.WithString("FileSystemPath", m_fileSystemPath); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/EbsStorageSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/EbsStorageSettings.cpp new file mode 100644 index 00000000000..0cd3a7f29e1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/EbsStorageSettings.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + +EbsStorageSettings::EbsStorageSettings() : + m_ebsVolumeSizeInGb(0), + m_ebsVolumeSizeInGbHasBeenSet(false) +{ +} + +EbsStorageSettings::EbsStorageSettings(JsonView jsonValue) : + m_ebsVolumeSizeInGb(0), + m_ebsVolumeSizeInGbHasBeenSet(false) +{ + *this = jsonValue; +} + +EbsStorageSettings& EbsStorageSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("EbsVolumeSizeInGb")) + { + m_ebsVolumeSizeInGb = jsonValue.GetInteger("EbsVolumeSizeInGb"); + + m_ebsVolumeSizeInGbHasBeenSet = true; + } + + return *this; +} + +JsonValue EbsStorageSettings::Jsonize() const +{ + JsonValue payload; + + if(m_ebsVolumeSizeInGbHasBeenSet) + { + payload.WithInteger("EbsVolumeSizeInGb", m_ebsVolumeSizeInGb); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/JupyterLabAppImageConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/JupyterLabAppImageConfig.cpp new file mode 100644 index 00000000000..bedb5a11445 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/JupyterLabAppImageConfig.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 SageMaker +{ +namespace Model +{ + +JupyterLabAppImageConfig::JupyterLabAppImageConfig() : + m_containerConfigHasBeenSet(false) +{ +} + +JupyterLabAppImageConfig::JupyterLabAppImageConfig(JsonView jsonValue) : + m_containerConfigHasBeenSet(false) +{ + *this = jsonValue; +} + +JupyterLabAppImageConfig& JupyterLabAppImageConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ContainerConfig")) + { + m_containerConfig = jsonValue.GetObject("ContainerConfig"); + + m_containerConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue JupyterLabAppImageConfig::Jsonize() const +{ + JsonValue payload; + + if(m_containerConfigHasBeenSet) + { + payload.WithObject("ContainerConfig", m_containerConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/JupyterLabAppSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/JupyterLabAppSettings.cpp new file mode 100644 index 00000000000..93dee37c3bb --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/JupyterLabAppSettings.cpp @@ -0,0 +1,128 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +JupyterLabAppSettings::JupyterLabAppSettings() : + m_defaultResourceSpecHasBeenSet(false), + m_customImagesHasBeenSet(false), + m_lifecycleConfigArnsHasBeenSet(false), + m_codeRepositoriesHasBeenSet(false) +{ +} + +JupyterLabAppSettings::JupyterLabAppSettings(JsonView jsonValue) : + m_defaultResourceSpecHasBeenSet(false), + m_customImagesHasBeenSet(false), + m_lifecycleConfigArnsHasBeenSet(false), + m_codeRepositoriesHasBeenSet(false) +{ + *this = jsonValue; +} + +JupyterLabAppSettings& JupyterLabAppSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DefaultResourceSpec")) + { + m_defaultResourceSpec = jsonValue.GetObject("DefaultResourceSpec"); + + m_defaultResourceSpecHasBeenSet = true; + } + + if(jsonValue.ValueExists("CustomImages")) + { + Aws::Utils::Array customImagesJsonList = jsonValue.GetArray("CustomImages"); + for(unsigned customImagesIndex = 0; customImagesIndex < customImagesJsonList.GetLength(); ++customImagesIndex) + { + m_customImages.push_back(customImagesJsonList[customImagesIndex].AsObject()); + } + m_customImagesHasBeenSet = true; + } + + if(jsonValue.ValueExists("LifecycleConfigArns")) + { + Aws::Utils::Array lifecycleConfigArnsJsonList = jsonValue.GetArray("LifecycleConfigArns"); + for(unsigned lifecycleConfigArnsIndex = 0; lifecycleConfigArnsIndex < lifecycleConfigArnsJsonList.GetLength(); ++lifecycleConfigArnsIndex) + { + m_lifecycleConfigArns.push_back(lifecycleConfigArnsJsonList[lifecycleConfigArnsIndex].AsString()); + } + m_lifecycleConfigArnsHasBeenSet = true; + } + + if(jsonValue.ValueExists("CodeRepositories")) + { + Aws::Utils::Array codeRepositoriesJsonList = jsonValue.GetArray("CodeRepositories"); + for(unsigned codeRepositoriesIndex = 0; codeRepositoriesIndex < codeRepositoriesJsonList.GetLength(); ++codeRepositoriesIndex) + { + m_codeRepositories.push_back(codeRepositoriesJsonList[codeRepositoriesIndex].AsObject()); + } + m_codeRepositoriesHasBeenSet = true; + } + + return *this; +} + +JsonValue JupyterLabAppSettings::Jsonize() const +{ + JsonValue payload; + + if(m_defaultResourceSpecHasBeenSet) + { + payload.WithObject("DefaultResourceSpec", m_defaultResourceSpec.Jsonize()); + + } + + if(m_customImagesHasBeenSet) + { + Aws::Utils::Array customImagesJsonList(m_customImages.size()); + for(unsigned customImagesIndex = 0; customImagesIndex < customImagesJsonList.GetLength(); ++customImagesIndex) + { + customImagesJsonList[customImagesIndex].AsObject(m_customImages[customImagesIndex].Jsonize()); + } + payload.WithArray("CustomImages", std::move(customImagesJsonList)); + + } + + if(m_lifecycleConfigArnsHasBeenSet) + { + Aws::Utils::Array lifecycleConfigArnsJsonList(m_lifecycleConfigArns.size()); + for(unsigned lifecycleConfigArnsIndex = 0; lifecycleConfigArnsIndex < lifecycleConfigArnsJsonList.GetLength(); ++lifecycleConfigArnsIndex) + { + lifecycleConfigArnsJsonList[lifecycleConfigArnsIndex].AsString(m_lifecycleConfigArns[lifecycleConfigArnsIndex]); + } + payload.WithArray("LifecycleConfigArns", std::move(lifecycleConfigArnsJsonList)); + + } + + if(m_codeRepositoriesHasBeenSet) + { + Aws::Utils::Array codeRepositoriesJsonList(m_codeRepositories.size()); + for(unsigned codeRepositoriesIndex = 0; codeRepositoriesIndex < codeRepositoriesJsonList.GetLength(); ++codeRepositoriesIndex) + { + codeRepositoriesJsonList[codeRepositoriesIndex].AsObject(m_codeRepositories[codeRepositoriesIndex].Jsonize()); + } + payload.WithArray("CodeRepositories", std::move(codeRepositoriesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OwnershipSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OwnershipSettings.cpp new file mode 100644 index 00000000000..bb0957d64c2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OwnershipSettings.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 SageMaker +{ +namespace Model +{ + +OwnershipSettings::OwnershipSettings() : + m_ownerUserProfileNameHasBeenSet(false) +{ +} + +OwnershipSettings::OwnershipSettings(JsonView jsonValue) : + m_ownerUserProfileNameHasBeenSet(false) +{ + *this = jsonValue; +} + +OwnershipSettings& OwnershipSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("OwnerUserProfileName")) + { + m_ownerUserProfileName = jsonValue.GetString("OwnerUserProfileName"); + + m_ownerUserProfileNameHasBeenSet = true; + } + + return *this; +} + +JsonValue OwnershipSettings::Jsonize() const +{ + JsonValue payload; + + if(m_ownerUserProfileNameHasBeenSet) + { + payload.WithString("OwnerUserProfileName", m_ownerUserProfileName); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OwnershipSettingsSummary.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OwnershipSettingsSummary.cpp new file mode 100644 index 00000000000..2cce20c40f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OwnershipSettingsSummary.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 SageMaker +{ +namespace Model +{ + +OwnershipSettingsSummary::OwnershipSettingsSummary() : + m_ownerUserProfileNameHasBeenSet(false) +{ +} + +OwnershipSettingsSummary::OwnershipSettingsSummary(JsonView jsonValue) : + m_ownerUserProfileNameHasBeenSet(false) +{ + *this = jsonValue; +} + +OwnershipSettingsSummary& OwnershipSettingsSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("OwnerUserProfileName")) + { + m_ownerUserProfileName = jsonValue.GetString("OwnerUserProfileName"); + + m_ownerUserProfileNameHasBeenSet = true; + } + + return *this; +} + +JsonValue OwnershipSettingsSummary::Jsonize() const +{ + JsonValue payload; + + if(m_ownerUserProfileNameHasBeenSet) + { + payload.WithString("OwnerUserProfileName", m_ownerUserProfileName); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SharingType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SharingType.cpp new file mode 100644 index 00000000000..b486bde5d06 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SharingType.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 SageMaker + { + namespace Model + { + namespace SharingTypeMapper + { + + static const int Private_HASH = HashingUtils::HashString("Private"); + static const int Shared_HASH = HashingUtils::HashString("Shared"); + + + SharingType GetSharingTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Private_HASH) + { + return SharingType::Private; + } + else if (hashCode == Shared_HASH) + { + return SharingType::Shared; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SharingType::NOT_SET; + } + + Aws::String GetNameForSharingType(SharingType enumValue) + { + switch(enumValue) + { + case SharingType::NOT_SET: + return {}; + case SharingType::Private: + return "Private"; + case SharingType::Shared: + return "Shared"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SharingTypeMapper + } // namespace Model + } // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceCodeEditorAppSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceCodeEditorAppSettings.cpp new file mode 100644 index 00000000000..17c88724c2b --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceCodeEditorAppSettings.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 SageMaker +{ +namespace Model +{ + +SpaceCodeEditorAppSettings::SpaceCodeEditorAppSettings() : + m_defaultResourceSpecHasBeenSet(false) +{ +} + +SpaceCodeEditorAppSettings::SpaceCodeEditorAppSettings(JsonView jsonValue) : + m_defaultResourceSpecHasBeenSet(false) +{ + *this = jsonValue; +} + +SpaceCodeEditorAppSettings& SpaceCodeEditorAppSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DefaultResourceSpec")) + { + m_defaultResourceSpec = jsonValue.GetObject("DefaultResourceSpec"); + + m_defaultResourceSpecHasBeenSet = true; + } + + return *this; +} + +JsonValue SpaceCodeEditorAppSettings::Jsonize() const +{ + JsonValue payload; + + if(m_defaultResourceSpecHasBeenSet) + { + payload.WithObject("DefaultResourceSpec", m_defaultResourceSpec.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceDetails.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceDetails.cpp index 9539607fa0c..6cabf4ff373 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceDetails.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceDetails.cpp @@ -24,7 +24,11 @@ SpaceDetails::SpaceDetails() : m_status(SpaceStatus::NOT_SET), m_statusHasBeenSet(false), m_creationTimeHasBeenSet(false), - m_lastModifiedTimeHasBeenSet(false) + m_lastModifiedTimeHasBeenSet(false), + m_spaceDisplayNameHasBeenSet(false), + m_spaceSettingsSummaryHasBeenSet(false), + m_spaceSharingSettingsSummaryHasBeenSet(false), + m_ownershipSettingsSummaryHasBeenSet(false) { } @@ -34,7 +38,11 @@ SpaceDetails::SpaceDetails(JsonView jsonValue) : m_status(SpaceStatus::NOT_SET), m_statusHasBeenSet(false), m_creationTimeHasBeenSet(false), - m_lastModifiedTimeHasBeenSet(false) + m_lastModifiedTimeHasBeenSet(false), + m_spaceDisplayNameHasBeenSet(false), + m_spaceSettingsSummaryHasBeenSet(false), + m_spaceSharingSettingsSummaryHasBeenSet(false), + m_ownershipSettingsSummaryHasBeenSet(false) { *this = jsonValue; } @@ -76,6 +84,34 @@ SpaceDetails& SpaceDetails::operator =(JsonView jsonValue) m_lastModifiedTimeHasBeenSet = true; } + if(jsonValue.ValueExists("SpaceDisplayName")) + { + m_spaceDisplayName = jsonValue.GetString("SpaceDisplayName"); + + m_spaceDisplayNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("SpaceSettingsSummary")) + { + m_spaceSettingsSummary = jsonValue.GetObject("SpaceSettingsSummary"); + + m_spaceSettingsSummaryHasBeenSet = true; + } + + if(jsonValue.ValueExists("SpaceSharingSettingsSummary")) + { + m_spaceSharingSettingsSummary = jsonValue.GetObject("SpaceSharingSettingsSummary"); + + m_spaceSharingSettingsSummaryHasBeenSet = true; + } + + if(jsonValue.ValueExists("OwnershipSettingsSummary")) + { + m_ownershipSettingsSummary = jsonValue.GetObject("OwnershipSettingsSummary"); + + m_ownershipSettingsSummaryHasBeenSet = true; + } + return *this; } @@ -110,6 +146,30 @@ JsonValue SpaceDetails::Jsonize() const payload.WithDouble("LastModifiedTime", m_lastModifiedTime.SecondsWithMSPrecision()); } + if(m_spaceDisplayNameHasBeenSet) + { + payload.WithString("SpaceDisplayName", m_spaceDisplayName); + + } + + if(m_spaceSettingsSummaryHasBeenSet) + { + payload.WithObject("SpaceSettingsSummary", m_spaceSettingsSummary.Jsonize()); + + } + + if(m_spaceSharingSettingsSummaryHasBeenSet) + { + payload.WithObject("SpaceSharingSettingsSummary", m_spaceSharingSettingsSummary.Jsonize()); + + } + + if(m_ownershipSettingsSummaryHasBeenSet) + { + payload.WithObject("OwnershipSettingsSummary", m_ownershipSettingsSummary.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceJupyterLabAppSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceJupyterLabAppSettings.cpp new file mode 100644 index 00000000000..5d8a8e95cf2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceJupyterLabAppSettings.cpp @@ -0,0 +1,82 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +SpaceJupyterLabAppSettings::SpaceJupyterLabAppSettings() : + m_defaultResourceSpecHasBeenSet(false), + m_codeRepositoriesHasBeenSet(false) +{ +} + +SpaceJupyterLabAppSettings::SpaceJupyterLabAppSettings(JsonView jsonValue) : + m_defaultResourceSpecHasBeenSet(false), + m_codeRepositoriesHasBeenSet(false) +{ + *this = jsonValue; +} + +SpaceJupyterLabAppSettings& SpaceJupyterLabAppSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DefaultResourceSpec")) + { + m_defaultResourceSpec = jsonValue.GetObject("DefaultResourceSpec"); + + m_defaultResourceSpecHasBeenSet = true; + } + + if(jsonValue.ValueExists("CodeRepositories")) + { + Aws::Utils::Array codeRepositoriesJsonList = jsonValue.GetArray("CodeRepositories"); + for(unsigned codeRepositoriesIndex = 0; codeRepositoriesIndex < codeRepositoriesJsonList.GetLength(); ++codeRepositoriesIndex) + { + m_codeRepositories.push_back(codeRepositoriesJsonList[codeRepositoriesIndex].AsObject()); + } + m_codeRepositoriesHasBeenSet = true; + } + + return *this; +} + +JsonValue SpaceJupyterLabAppSettings::Jsonize() const +{ + JsonValue payload; + + if(m_defaultResourceSpecHasBeenSet) + { + payload.WithObject("DefaultResourceSpec", m_defaultResourceSpec.Jsonize()); + + } + + if(m_codeRepositoriesHasBeenSet) + { + Aws::Utils::Array codeRepositoriesJsonList(m_codeRepositories.size()); + for(unsigned codeRepositoriesIndex = 0; codeRepositoriesIndex < codeRepositoriesJsonList.GetLength(); ++codeRepositoriesIndex) + { + codeRepositoriesJsonList[codeRepositoriesIndex].AsObject(m_codeRepositories[codeRepositoriesIndex].Jsonize()); + } + payload.WithArray("CodeRepositories", std::move(codeRepositoriesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSettings.cpp index abc1b140300..eae48124a00 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSettings.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSettings.cpp @@ -20,13 +20,25 @@ namespace Model SpaceSettings::SpaceSettings() : m_jupyterServerAppSettingsHasBeenSet(false), - m_kernelGatewayAppSettingsHasBeenSet(false) + m_kernelGatewayAppSettingsHasBeenSet(false), + m_jupyterLabAppSettingsHasBeenSet(false), + m_codeEditorAppSettingsHasBeenSet(false), + m_spaceStorageSettingsHasBeenSet(false), + m_appType(AppType::NOT_SET), + m_appTypeHasBeenSet(false), + m_customFileSystemsHasBeenSet(false) { } SpaceSettings::SpaceSettings(JsonView jsonValue) : m_jupyterServerAppSettingsHasBeenSet(false), - m_kernelGatewayAppSettingsHasBeenSet(false) + m_kernelGatewayAppSettingsHasBeenSet(false), + m_jupyterLabAppSettingsHasBeenSet(false), + m_codeEditorAppSettingsHasBeenSet(false), + m_spaceStorageSettingsHasBeenSet(false), + m_appType(AppType::NOT_SET), + m_appTypeHasBeenSet(false), + m_customFileSystemsHasBeenSet(false) { *this = jsonValue; } @@ -47,6 +59,44 @@ SpaceSettings& SpaceSettings::operator =(JsonView jsonValue) m_kernelGatewayAppSettingsHasBeenSet = true; } + if(jsonValue.ValueExists("JupyterLabAppSettings")) + { + m_jupyterLabAppSettings = jsonValue.GetObject("JupyterLabAppSettings"); + + m_jupyterLabAppSettingsHasBeenSet = true; + } + + if(jsonValue.ValueExists("CodeEditorAppSettings")) + { + m_codeEditorAppSettings = jsonValue.GetObject("CodeEditorAppSettings"); + + m_codeEditorAppSettingsHasBeenSet = true; + } + + if(jsonValue.ValueExists("SpaceStorageSettings")) + { + m_spaceStorageSettings = jsonValue.GetObject("SpaceStorageSettings"); + + m_spaceStorageSettingsHasBeenSet = true; + } + + if(jsonValue.ValueExists("AppType")) + { + m_appType = AppTypeMapper::GetAppTypeForName(jsonValue.GetString("AppType")); + + m_appTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("CustomFileSystems")) + { + Aws::Utils::Array customFileSystemsJsonList = jsonValue.GetArray("CustomFileSystems"); + for(unsigned customFileSystemsIndex = 0; customFileSystemsIndex < customFileSystemsJsonList.GetLength(); ++customFileSystemsIndex) + { + m_customFileSystems.push_back(customFileSystemsJsonList[customFileSystemsIndex].AsObject()); + } + m_customFileSystemsHasBeenSet = true; + } + return *this; } @@ -66,6 +116,40 @@ JsonValue SpaceSettings::Jsonize() const } + if(m_jupyterLabAppSettingsHasBeenSet) + { + payload.WithObject("JupyterLabAppSettings", m_jupyterLabAppSettings.Jsonize()); + + } + + if(m_codeEditorAppSettingsHasBeenSet) + { + payload.WithObject("CodeEditorAppSettings", m_codeEditorAppSettings.Jsonize()); + + } + + if(m_spaceStorageSettingsHasBeenSet) + { + payload.WithObject("SpaceStorageSettings", m_spaceStorageSettings.Jsonize()); + + } + + if(m_appTypeHasBeenSet) + { + payload.WithString("AppType", AppTypeMapper::GetNameForAppType(m_appType)); + } + + if(m_customFileSystemsHasBeenSet) + { + Aws::Utils::Array customFileSystemsJsonList(m_customFileSystems.size()); + for(unsigned customFileSystemsIndex = 0; customFileSystemsIndex < customFileSystemsJsonList.GetLength(); ++customFileSystemsIndex) + { + customFileSystemsJsonList[customFileSystemsIndex].AsObject(m_customFileSystems[customFileSystemsIndex].Jsonize()); + } + payload.WithArray("CustomFileSystems", std::move(customFileSystemsJsonList)); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSettingsSummary.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSettingsSummary.cpp new file mode 100644 index 00000000000..2a9ee6dfc68 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSettingsSummary.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + +SpaceSettingsSummary::SpaceSettingsSummary() : + m_appType(AppType::NOT_SET), + m_appTypeHasBeenSet(false), + m_spaceStorageSettingsHasBeenSet(false) +{ +} + +SpaceSettingsSummary::SpaceSettingsSummary(JsonView jsonValue) : + m_appType(AppType::NOT_SET), + m_appTypeHasBeenSet(false), + m_spaceStorageSettingsHasBeenSet(false) +{ + *this = jsonValue; +} + +SpaceSettingsSummary& SpaceSettingsSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AppType")) + { + m_appType = AppTypeMapper::GetAppTypeForName(jsonValue.GetString("AppType")); + + m_appTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("SpaceStorageSettings")) + { + m_spaceStorageSettings = jsonValue.GetObject("SpaceStorageSettings"); + + m_spaceStorageSettingsHasBeenSet = true; + } + + return *this; +} + +JsonValue SpaceSettingsSummary::Jsonize() const +{ + JsonValue payload; + + if(m_appTypeHasBeenSet) + { + payload.WithString("AppType", AppTypeMapper::GetNameForAppType(m_appType)); + } + + if(m_spaceStorageSettingsHasBeenSet) + { + payload.WithObject("SpaceStorageSettings", m_spaceStorageSettings.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSharingSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSharingSettings.cpp new file mode 100644 index 00000000000..aa896e5fa6f --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSharingSettings.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 SageMaker +{ +namespace Model +{ + +SpaceSharingSettings::SpaceSharingSettings() : + m_sharingType(SharingType::NOT_SET), + m_sharingTypeHasBeenSet(false) +{ +} + +SpaceSharingSettings::SpaceSharingSettings(JsonView jsonValue) : + m_sharingType(SharingType::NOT_SET), + m_sharingTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +SpaceSharingSettings& SpaceSharingSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("SharingType")) + { + m_sharingType = SharingTypeMapper::GetSharingTypeForName(jsonValue.GetString("SharingType")); + + m_sharingTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue SpaceSharingSettings::Jsonize() const +{ + JsonValue payload; + + if(m_sharingTypeHasBeenSet) + { + payload.WithString("SharingType", SharingTypeMapper::GetNameForSharingType(m_sharingType)); + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSharingSettingsSummary.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSharingSettingsSummary.cpp new file mode 100644 index 00000000000..1bac4dfc504 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSharingSettingsSummary.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 SageMaker +{ +namespace Model +{ + +SpaceSharingSettingsSummary::SpaceSharingSettingsSummary() : + m_sharingType(SharingType::NOT_SET), + m_sharingTypeHasBeenSet(false) +{ +} + +SpaceSharingSettingsSummary::SpaceSharingSettingsSummary(JsonView jsonValue) : + m_sharingType(SharingType::NOT_SET), + m_sharingTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +SpaceSharingSettingsSummary& SpaceSharingSettingsSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("SharingType")) + { + m_sharingType = SharingTypeMapper::GetSharingTypeForName(jsonValue.GetString("SharingType")); + + m_sharingTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue SpaceSharingSettingsSummary::Jsonize() const +{ + JsonValue payload; + + if(m_sharingTypeHasBeenSet) + { + payload.WithString("SharingType", SharingTypeMapper::GetNameForSharingType(m_sharingType)); + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceStorageSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceStorageSettings.cpp new file mode 100644 index 00000000000..7d5320cb281 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceStorageSettings.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 SageMaker +{ +namespace Model +{ + +SpaceStorageSettings::SpaceStorageSettings() : + m_ebsStorageSettingsHasBeenSet(false) +{ +} + +SpaceStorageSettings::SpaceStorageSettings(JsonView jsonValue) : + m_ebsStorageSettingsHasBeenSet(false) +{ + *this = jsonValue; +} + +SpaceStorageSettings& SpaceStorageSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("EbsStorageSettings")) + { + m_ebsStorageSettings = jsonValue.GetObject("EbsStorageSettings"); + + m_ebsStorageSettingsHasBeenSet = true; + } + + return *this; +} + +JsonValue SpaceStorageSettings::Jsonize() const +{ + JsonValue payload; + + if(m_ebsStorageSettingsHasBeenSet) + { + payload.WithObject("EbsStorageSettings", m_ebsStorageSettings.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigAppType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigAppType.cpp index 821bbe74086..ef1555e2db3 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigAppType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigAppType.cpp @@ -22,6 +22,8 @@ namespace Aws static const int JupyterServer_HASH = HashingUtils::HashString("JupyterServer"); static const int KernelGateway_HASH = HashingUtils::HashString("KernelGateway"); + static const int JupyterLab_HASH = HashingUtils::HashString("JupyterLab"); + static const int CodeEditor_HASH = HashingUtils::HashString("CodeEditor"); StudioLifecycleConfigAppType GetStudioLifecycleConfigAppTypeForName(const Aws::String& name) @@ -35,6 +37,14 @@ namespace Aws { return StudioLifecycleConfigAppType::KernelGateway; } + else if (hashCode == JupyterLab_HASH) + { + return StudioLifecycleConfigAppType::JupyterLab; + } + else if (hashCode == CodeEditor_HASH) + { + return StudioLifecycleConfigAppType::CodeEditor; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -55,6 +65,10 @@ namespace Aws return "JupyterServer"; case StudioLifecycleConfigAppType::KernelGateway: return "KernelGateway"; + case StudioLifecycleConfigAppType::JupyterLab: + return "JupyterLab"; + case StudioLifecycleConfigAppType::CodeEditor: + return "CodeEditor"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateAppImageConfigRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateAppImageConfigRequest.cpp index cba6437779d..7145b85b4ef 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateAppImageConfigRequest.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateAppImageConfigRequest.cpp @@ -14,7 +14,8 @@ using namespace Aws::Utils; UpdateAppImageConfigRequest::UpdateAppImageConfigRequest() : m_appImageConfigNameHasBeenSet(false), - m_kernelGatewayImageConfigHasBeenSet(false) + m_kernelGatewayImageConfigHasBeenSet(false), + m_jupyterLabAppImageConfigHasBeenSet(false) { } @@ -34,6 +35,12 @@ Aws::String UpdateAppImageConfigRequest::SerializePayload() const } + if(m_jupyterLabAppImageConfigHasBeenSet) + { + payload.WithObject("JupyterLabAppImageConfig", m_jupyterLabAppImageConfig.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateSpaceRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateSpaceRequest.cpp index 1d9df170dbe..a15f4aa24b0 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateSpaceRequest.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateSpaceRequest.cpp @@ -15,7 +15,8 @@ using namespace Aws::Utils; UpdateSpaceRequest::UpdateSpaceRequest() : m_domainIdHasBeenSet(false), m_spaceNameHasBeenSet(false), - m_spaceSettingsHasBeenSet(false) + m_spaceSettingsHasBeenSet(false), + m_spaceDisplayNameHasBeenSet(false) { } @@ -41,6 +42,12 @@ Aws::String UpdateSpaceRequest::SerializePayload() const } + if(m_spaceDisplayNameHasBeenSet) + { + payload.WithString("SpaceDisplayName", m_spaceDisplayName); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/UserSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/UserSettings.cpp index 93a1f7efb7c..f7259beffae 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/UserSettings.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/UserSettings.cpp @@ -28,9 +28,14 @@ UserSettings::UserSettings() : m_rStudioServerProAppSettingsHasBeenSet(false), m_rSessionAppSettingsHasBeenSet(false), m_canvasAppSettingsHasBeenSet(false), + m_jupyterLabAppSettingsHasBeenSet(false), + m_codeEditorAppSettingsHasBeenSet(false), + m_spaceStorageSettingsHasBeenSet(false), m_defaultLandingUriHasBeenSet(false), m_studioWebPortal(StudioWebPortal::NOT_SET), - m_studioWebPortalHasBeenSet(false) + m_studioWebPortalHasBeenSet(false), + m_customPosixUserConfigHasBeenSet(false), + m_customFileSystemConfigsHasBeenSet(false) { } @@ -44,9 +49,14 @@ UserSettings::UserSettings(JsonView jsonValue) : m_rStudioServerProAppSettingsHasBeenSet(false), m_rSessionAppSettingsHasBeenSet(false), m_canvasAppSettingsHasBeenSet(false), + m_jupyterLabAppSettingsHasBeenSet(false), + m_codeEditorAppSettingsHasBeenSet(false), + m_spaceStorageSettingsHasBeenSet(false), m_defaultLandingUriHasBeenSet(false), m_studioWebPortal(StudioWebPortal::NOT_SET), - m_studioWebPortalHasBeenSet(false) + m_studioWebPortalHasBeenSet(false), + m_customPosixUserConfigHasBeenSet(false), + m_customFileSystemConfigsHasBeenSet(false) { *this = jsonValue; } @@ -119,6 +129,27 @@ UserSettings& UserSettings::operator =(JsonView jsonValue) m_canvasAppSettingsHasBeenSet = true; } + if(jsonValue.ValueExists("JupyterLabAppSettings")) + { + m_jupyterLabAppSettings = jsonValue.GetObject("JupyterLabAppSettings"); + + m_jupyterLabAppSettingsHasBeenSet = true; + } + + if(jsonValue.ValueExists("CodeEditorAppSettings")) + { + m_codeEditorAppSettings = jsonValue.GetObject("CodeEditorAppSettings"); + + m_codeEditorAppSettingsHasBeenSet = true; + } + + if(jsonValue.ValueExists("SpaceStorageSettings")) + { + m_spaceStorageSettings = jsonValue.GetObject("SpaceStorageSettings"); + + m_spaceStorageSettingsHasBeenSet = true; + } + if(jsonValue.ValueExists("DefaultLandingUri")) { m_defaultLandingUri = jsonValue.GetString("DefaultLandingUri"); @@ -133,6 +164,23 @@ UserSettings& UserSettings::operator =(JsonView jsonValue) m_studioWebPortalHasBeenSet = true; } + if(jsonValue.ValueExists("CustomPosixUserConfig")) + { + m_customPosixUserConfig = jsonValue.GetObject("CustomPosixUserConfig"); + + m_customPosixUserConfigHasBeenSet = true; + } + + if(jsonValue.ValueExists("CustomFileSystemConfigs")) + { + Aws::Utils::Array customFileSystemConfigsJsonList = jsonValue.GetArray("CustomFileSystemConfigs"); + for(unsigned customFileSystemConfigsIndex = 0; customFileSystemConfigsIndex < customFileSystemConfigsJsonList.GetLength(); ++customFileSystemConfigsIndex) + { + m_customFileSystemConfigs.push_back(customFileSystemConfigsJsonList[customFileSystemConfigsIndex].AsObject()); + } + m_customFileSystemConfigsHasBeenSet = true; + } + return *this; } @@ -199,6 +247,24 @@ JsonValue UserSettings::Jsonize() const } + if(m_jupyterLabAppSettingsHasBeenSet) + { + payload.WithObject("JupyterLabAppSettings", m_jupyterLabAppSettings.Jsonize()); + + } + + if(m_codeEditorAppSettingsHasBeenSet) + { + payload.WithObject("CodeEditorAppSettings", m_codeEditorAppSettings.Jsonize()); + + } + + if(m_spaceStorageSettingsHasBeenSet) + { + payload.WithObject("SpaceStorageSettings", m_spaceStorageSettings.Jsonize()); + + } + if(m_defaultLandingUriHasBeenSet) { payload.WithString("DefaultLandingUri", m_defaultLandingUri); @@ -210,6 +276,23 @@ JsonValue UserSettings::Jsonize() const payload.WithString("StudioWebPortal", StudioWebPortalMapper::GetNameForStudioWebPortal(m_studioWebPortal)); } + if(m_customPosixUserConfigHasBeenSet) + { + payload.WithObject("CustomPosixUserConfig", m_customPosixUserConfig.Jsonize()); + + } + + if(m_customFileSystemConfigsHasBeenSet) + { + Aws::Utils::Array customFileSystemConfigsJsonList(m_customFileSystemConfigs.size()); + for(unsigned customFileSystemConfigsIndex = 0; customFileSystemConfigsIndex < customFileSystemConfigsJsonList.GetLength(); ++customFileSystemConfigsIndex) + { + customFileSystemConfigsJsonList[customFileSystemConfigsIndex].AsObject(m_customFileSystemConfigs[customFileSystemConfigsIndex].Jsonize()); + } + payload.WithArray("CustomFileSystemConfigs", std::move(customFileSystemConfigsJsonList)); + + } + return payload; } 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 d480a6d6026..f0e94a60c43 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.214" +#define AWS_SDK_VERSION_STRING "1.11.215" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 214 +#define AWS_SDK_VERSION_PATCH 215 diff --git a/tools/code-generation/api-descriptions/arc-zonal-shift-2022-10-30.normal.json b/tools/code-generation/api-descriptions/arc-zonal-shift-2022-10-30.normal.json index 33984bfb3a0..c04fb3b03b2 100644 --- a/tools/code-generation/api-descriptions/arc-zonal-shift-2022-10-30.normal.json +++ b/tools/code-generation/api-descriptions/arc-zonal-shift-2022-10-30.normal.json @@ -29,7 +29,46 @@ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ], - "documentation":"

      Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've started for a resource in your AWS account in an AWS Region.

      " + "documentation":"

      Cancel a zonal shift in Amazon Route 53 Application Recovery Controller. To cancel the zonal shift, specify the zonal shift ID.

      A zonal shift can be one that you've started for a resource in your Amazon Web Services account in an Amazon Web Services Region, or it can be a zonal shift started by a practice run with zonal autoshift.

      " + }, + "CreatePracticeRunConfiguration":{ + "name":"CreatePracticeRunConfiguration", + "http":{ + "method":"POST", + "requestUri":"/configuration", + "responseCode":201 + }, + "input":{"shape":"CreatePracticeRunConfigurationRequest"}, + "output":{"shape":"CreatePracticeRunConfigurationResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

      A practice run configuration for zonal autoshift is required when you enable zonal autoshift. A practice run configuration includes specifications for blocked dates and blocked time windows, and for Amazon CloudWatch alarms that you create to use with practice runs. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from starting.

      For more information, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.

      " + }, + "DeletePracticeRunConfiguration":{ + "name":"DeletePracticeRunConfiguration", + "http":{ + "method":"DELETE", + "requestUri":"/configuration/{resourceIdentifier}", + "responseCode":200 + }, + "input":{"shape":"DeletePracticeRunConfigurationRequest"}, + "output":{"shape":"DeletePracticeRunConfigurationResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

      Deletes the practice run configuration for a resource. Before you can delete a practice run configuration for a resource., you must disable zonal autoshift for the resource. Practice runs must be configured for zonal autoshift to be enabled.

      ", + "idempotent":true }, "GetManagedResource":{ "name":"GetManagedResource", @@ -47,7 +86,24 @@ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ], - "documentation":"

      Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this AWS Region. Resources that are registered for zonal shifts are managed resources in Route 53 ARC.

      At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      " + "documentation":"

      Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this Amazon Web Services Region. Resources that are registered for zonal shifts are managed resources in Route 53 ARC. You can start zonal shifts and configure zonal autoshift for managed resources.

      At this time, you can only start a zonal shift or configure zonal autoshift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      " + }, + "ListAutoshifts":{ + "name":"ListAutoshifts", + "http":{ + "method":"GET", + "requestUri":"/autoshifts", + "responseCode":200 + }, + "input":{"shape":"ListAutoshiftsRequest"}, + "output":{"shape":"ListAutoshiftsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

      Returns the active autoshifts for a specified resource.

      " }, "ListManagedResources":{ "name":"ListManagedResources", @@ -64,7 +120,7 @@ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ], - "documentation":"

      Lists all the resources in your AWS account in this AWS Region that are managed for zonal shifts in Amazon Route 53 Application Recovery Controller, and information about them. The information includes their Amazon Resource Names (ARNs), the Availability Zones the resources are deployed in, and the resource name.

      " + "documentation":"

      Lists all the resources in your Amazon Web Services account in this Amazon Web Services Region that are managed for zonal shifts in Amazon Route 53 Application Recovery Controller, and information about them. The information includes the zonal autoshift status for the resource, as well as the Amazon Resource Name (ARN), the Availability Zones that each resource is deployed in, and the resource name.

      " }, "ListZonalShifts":{ "name":"ListZonalShifts", @@ -81,7 +137,7 @@ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ], - "documentation":"

      Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this AWS Region.

      " + "documentation":"

      Lists all active and completed zonal shifts in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account in this Amazon Web Services Region. ListZonalShifts returns customer-started zonal shifts, as well as practice run zonal shifts that Route 53 ARC started on your behalf for zonal autoshift.

      The ListZonalShifts operation does not list autoshifts. For more information about listing autoshifts, see \">ListAutoshifts.

      " }, "StartZonalShift":{ "name":"StartZonalShift", @@ -100,7 +156,46 @@ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ], - "documentation":"

      You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in a AWS Region, to help your application recover immediately, for example, from a developer's bad code deployment or from an AWS infrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources in your account in an AWS Region. Resources are automatically registered with Route 53 ARC by AWS services.

      At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      When you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes, for existing, in-progress connections in the Availability Zone to complete.

      For more information, see Zonal shift in the Amazon Route 53 Application Recovery Controller Developer Guide.

      " + "documentation":"

      You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in an Amazon Web Services Region, to help your application recover immediately, for example, from a developer's bad code deployment or from an Amazon Web Services infrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources in your Amazon Web Services account in an Amazon Web Services Region. Resources are automatically registered with Route 53 ARC by Amazon Web Services services.

      At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      When you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes, for existing, in-progress connections in the Availability Zone to complete.

      For more information, see Zonal shift in the Amazon Route 53 Application Recovery Controller Developer Guide.

      " + }, + "UpdatePracticeRunConfiguration":{ + "name":"UpdatePracticeRunConfiguration", + "http":{ + "method":"PATCH", + "requestUri":"/configuration/{resourceIdentifier}", + "responseCode":200 + }, + "input":{"shape":"UpdatePracticeRunConfigurationRequest"}, + "output":{"shape":"UpdatePracticeRunConfigurationResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

      Update a practice run configuration to change one or more of the following: add, change, or remove the blocking alarm; change the outcome alarm; or add, change, or remove blocking dates or time windows.

      " + }, + "UpdateZonalAutoshiftConfiguration":{ + "name":"UpdateZonalAutoshiftConfiguration", + "http":{ + "method":"PUT", + "requestUri":"/managedresources/{resourceIdentifier}", + "responseCode":200 + }, + "input":{"shape":"UpdateZonalAutoshiftConfigurationRequest"}, + "output":{"shape":"UpdateZonalAutoshiftConfigurationResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

      You can update the zonal autoshift status for a resource, to enable or disable zonal autoshift. When zonal autoshift is ENABLED, Amazon Web Services shifts away resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.

      ", + "idempotent":true }, "UpdateZonalShift":{ "name":"UpdateZonalShift", @@ -119,7 +214,7 @@ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ], - "documentation":"

      Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account. You can update a zonal shift to set a new expiration, or edit or replace the comment for the zonal shift.

      " + "documentation":"

      Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account. You can update a zonal shift to set a new expiration, or edit or replace the comment for the zonal shift.

      " } }, "shapes":{ @@ -147,6 +242,79 @@ "key":{"shape":"AvailabilityZone"}, "value":{"shape":"Weight"} }, + "AutoshiftAppliedStatus":{ + "type":"string", + "enum":[ + "APPLIED", + "NOT_APPLIED" + ] + }, + "AutoshiftExecutionStatus":{ + "type":"string", + "enum":[ + "ACTIVE", + "COMPLETED" + ] + }, + "AutoshiftInResource":{ + "type":"structure", + "required":[ + "appliedStatus", + "awayFrom", + "startTime" + ], + "members":{ + "appliedStatus":{ + "shape":"AutoshiftAppliedStatus", + "documentation":"

      The appliedStatus field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus field for an autoshift for a resource can have one of two values: APPLIED or NOT_APPLIED. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED.

      The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.

      For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.

      " + }, + "awayFrom":{ + "shape":"AvailabilityZone", + "documentation":"

      The Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.

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

      The time (UTC) when the autoshift started.

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

      A complex structure that lists an autoshift that is currently active for a managed resource and information about the autoshift.

      For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.

      " + }, + "AutoshiftSummaries":{ + "type":"list", + "member":{"shape":"AutoshiftSummary"} + }, + "AutoshiftSummary":{ + "type":"structure", + "required":[ + "awayFrom", + "endTime", + "startTime", + "status" + ], + "members":{ + "awayFrom":{ + "shape":"AvailabilityZone", + "documentation":"

      The Availability Zone that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.

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

      The time (in UTC) when the autoshift ended.

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

      The time (in UTC) when the autoshift started.

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

      The status for an autoshift.

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

      Information about an autoshift. Amazon Web Services starts an autoshift to temporarily move traffic for a resource away from an Availability Zone in an Amazon Web Services Region when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers. You can configure zonal autoshift in Route 53 ARC for managed resources in your Amazon Web Services account in a Region. Supported Amazon Web Services resources are automatically registered with Route 53 ARC.

      Autoshifts are temporary. When the Availability Zone recovers, Amazon Web Services ends the autoshift, and traffic for the resource is no longer directed to the other Availability Zones in the Region.

      You can stop an autoshift for a resource by disabling zonal autoshift.

      " + }, + "AutoshiftsInResource":{ + "type":"list", + "member":{"shape":"AutoshiftInResource"} + }, "AvailabilityZone":{ "type":"string", "max":20, @@ -156,6 +324,30 @@ "type":"list", "member":{"shape":"AvailabilityZone"} }, + "BlockedDate":{ + "type":"string", + "max":10, + "min":10, + "pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$" + }, + "BlockedDates":{ + "type":"list", + "member":{"shape":"BlockedDate"}, + "max":15, + "min":0 + }, + "BlockedWindow":{ + "type":"string", + "max":19, + "min":19, + "pattern":"^(Mon|Tue|Wed|Thu|Fri|Sat|Sun):[0-9]{2}:[0-9]{2}-(Mon|Tue|Wed|Thu|Fri|Sat|Sun):[0-9]{2}:[0-9]{2}$" + }, + "BlockedWindows":{ + "type":"list", + "member":{"shape":"BlockedWindow"}, + "max":15, + "min":0 + }, "CancelZonalShiftRequest":{ "type":"structure", "required":["zonalShiftId"], @@ -197,9 +389,130 @@ "enum":[ "ZonalShiftAlreadyExists", "ZonalShiftStatusNotActive", - "SimultaneousZonalShiftsConflict" + "SimultaneousZonalShiftsConflict", + "PracticeConfigurationAlreadyExists", + "AutoShiftEnabled", + "PracticeConfigurationDoesNotExist" ] }, + "ControlCondition":{ + "type":"structure", + "required":[ + "alarmIdentifier", + "type" + ], + "members":{ + "alarmIdentifier":{ + "shape":"ResourceArn", + "documentation":"

      The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

      " + }, + "type":{ + "shape":"ControlConditionType", + "documentation":"

      The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

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

      A control condition is an alarm that you specify for a practice run. When you configure practice runs with zonal autoshift for a resource, you specify Amazon CloudWatch alarms, which you create in CloudWatch to use with the practice run. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from starting.

      Control condition alarms do not apply for autoshifts.

      For more information, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.

      " + }, + "ControlConditionType":{ + "type":"string", + "enum":["CLOUDWATCH"] + }, + "ControlConditions":{ + "type":"list", + "member":{"shape":"ControlCondition"}, + "max":1, + "min":1 + }, + "CreatePracticeRunConfigurationRequest":{ + "type":"structure", + "required":[ + "outcomeAlarms", + "resourceIdentifier" + ], + "members":{ + "blockedDates":{ + "shape":"BlockedDates", + "documentation":"

      Optionally, you can block Route 53 ARC from starting practice runs for a resource on specific calendar dates.

      The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Separate multiple blocked dates with spaces.

      For example, if you have an application update scheduled to launch on May 1, 2024, and you don't want practice runs to shift traffic away at that time, you could set a blocked date for 2024-05-01.

      " + }, + "blockedWindows":{ + "shape":"BlockedWindows", + "documentation":"

      Optionally, you can block Route 53 ARC from starting practice runs for specific windows of days and times.

      The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple blocked windows with spaces.

      For example, say you run business report summaries three days a week. For this scenario, you might set the following recurring days and times as blocked windows, for example: MON-20:30-21:30 WED-20:30-21:30 FRI-20:30-21:30.

      " + }, + "blockingAlarms":{ + "shape":"ControlConditions", + "documentation":"

      An Amazon CloudWatch alarm that you can specify for zonal autoshift practice runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, and ends a practice run that's in progress, when the alarm is in an ALARM state.

      " + }, + "outcomeAlarms":{ + "shape":"ControlConditions", + "documentation":"

      The outcome alarm for practice runs is a required Amazon CloudWatch alarm that you specify that ends a practice run when the alarm is in an ALARM state.

      Configure the alarm to monitor the health of your application when traffic is shifted away from an Availability Zone during each weekly practice run. You should configure the alarm to go into an ALARM state if your application is impacted by the zonal shift, and you want to stop the zonal shift, to let traffic for the resource return to the Availability Zone.

      " + }, + "resourceIdentifier":{ + "shape":"ResourceIdentifier", + "documentation":"

      The identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      " + } + } + }, + "CreatePracticeRunConfigurationResponse":{ + "type":"structure", + "required":[ + "arn", + "name", + "practiceRunConfiguration", + "zonalAutoshiftStatus" + ], + "members":{ + "arn":{ + "shape":"ResourceArn", + "documentation":"

      The Amazon Resource Name (ARN) of the resource that you configured the practice run for.

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

      The name of the resource that you configured the practice run for.

      " + }, + "practiceRunConfiguration":{ + "shape":"PracticeRunConfiguration", + "documentation":"

      A practice run configuration for a resource. Configurations include the outcome alarm that you specify for practice runs, and, optionally, a blocking alarm and blocking dates and windows.

      " + }, + "zonalAutoshiftStatus":{ + "shape":"ZonalAutoshiftStatus", + "documentation":"

      The status for zonal autoshift for a resource. When you specify the autoshift status as ENABLED, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.

      When you enable zonal autoshift, you must also configure practice runs for the resource.

      " + } + } + }, + "DeletePracticeRunConfigurationRequest":{ + "type":"structure", + "required":["resourceIdentifier"], + "members":{ + "resourceIdentifier":{ + "shape":"ResourceIdentifier", + "documentation":"

      The identifier for the resource that you want to delete the practice run configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.

      ", + "location":"uri", + "locationName":"resourceIdentifier" + } + } + }, + "DeletePracticeRunConfigurationResponse":{ + "type":"structure", + "required":[ + "arn", + "name", + "zonalAutoshiftStatus" + ], + "members":{ + "arn":{ + "shape":"ResourceArn", + "documentation":"

      The Amazon Resource Name (ARN) of the resource that you deleted the practice run for.

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

      The name of the resource that you deleted the practice run for.

      " + }, + "zonalAutoshiftStatus":{ + "shape":"ZonalAutoshiftStatus", + "documentation":"

      The status of zonal autoshift for the resource.

      " + } + } + }, "ExpiresIn":{ "type":"string", "max":5, @@ -213,7 +526,7 @@ "members":{ "resourceIdentifier":{ "shape":"ResourceIdentifier", - "documentation":"

      The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      ", + "documentation":"

      The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      ", "location":"uri", "locationName":"resourceIdentifier" } @@ -234,10 +547,22 @@ "shape":"ResourceArn", "documentation":"

      The Amazon Resource Name (ARN) for the resource.

      " }, + "autoshifts":{ + "shape":"AutoshiftsInResource", + "documentation":"

      An array of the autoshifts that are active for the resource.

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

      The name of the resource.

      " }, + "practiceRunConfiguration":{ + "shape":"PracticeRunConfiguration", + "documentation":"

      The practice run configuration for zonal autoshift that's associated with the resource.

      " + }, + "zonalAutoshiftStatus":{ + "shape":"ZonalAutoshiftStatus", + "documentation":"

      The status for zonal autoshift for a resource. When the autoshift status is ENABLED, Amazon Web Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.

      " + }, "zonalShifts":{ "shape":"ZonalShiftsInResource", "documentation":"

      The zonal shifts that are currently active for a resource.

      " @@ -254,6 +579,42 @@ "exception":true, "fault":true }, + "ListAutoshiftsRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"MaxResults", + "documentation":"

      The number of objects that you want to return with this call.

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

      Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

      ", + "location":"querystring", + "locationName":"nextToken" + }, + "status":{ + "shape":"AutoshiftExecutionStatus", + "documentation":"

      The status of the autoshift.

      ", + "location":"querystring", + "locationName":"status" + } + } + }, + "ListAutoshiftsResponse":{ + "type":"structure", + "members":{ + "items":{ + "shape":"AutoshiftSummaries", + "documentation":"

      The items in the response list.

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

      Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

      " + } + } + }, "ListManagedResourcesRequest":{ "type":"structure", "members":{ @@ -300,9 +661,15 @@ "location":"querystring", "locationName":"nextToken" }, + "resourceIdentifier":{ + "shape":"ResourceIdentifier", + "documentation":"

      The identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon Resource Name (ARN) for the resource.

      ", + "location":"querystring", + "locationName":"resourceIdentifier" + }, "status":{ "shape":"ZonalShiftStatus", - "documentation":"

      A status for a zonal shift.

      The Status for a zonal shift can have one of the following values:

      • ACTIVE: The zonal shift is started and active.

      • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

      • CANCELED: The zonal shift was canceled.

      ", + "documentation":"

      A status for a zonal shift.

      The Status for a zonal shift can have one of the following values:

      • ACTIVE: The zonal shift has been started and active.

      • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

      • CANCELED: The zonal shift was canceled.

      ", "location":"querystring", "locationName":"status" } @@ -329,10 +696,18 @@ "type":"structure", "required":["availabilityZones"], "members":{ + "appliedWeights":{ + "shape":"AppliedWeights", + "documentation":"

      A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.

      " + }, "arn":{ "shape":"ResourceArn", "documentation":"

      The Amazon Resource Name (ARN) for the managed resource.

      " }, + "autoshifts":{ + "shape":"AutoshiftsInResource", + "documentation":"

      An array of the autoshifts that have been completed for a resource.

      " + }, "availabilityZones":{ "shape":"AvailabilityZones", "documentation":"

      The Availability Zones that a resource is deployed in.

      " @@ -340,9 +715,21 @@ "name":{ "shape":"ResourceName", "documentation":"

      The name of the managed resource.

      " + }, + "practiceRunStatus":{ + "shape":"ZonalAutoshiftStatus", + "documentation":"

      This status tracks whether a practice run configuration exists for a resource. When you configure a practice run for a resource so that a practice run configuration exists, Route 53 ARC sets this value to ENABLED. If a you have not configured a practice run for the resource, or delete a practice run configuration, Route 53 ARC sets the value to DISABLED.

      Route 53 ARC updates this status; you can't set a practice run status to ENABLED or DISABLED.

      " + }, + "zonalAutoshiftStatus":{ + "shape":"ZonalAutoshiftStatus", + "documentation":"

      The status of autoshift for a resource. When you configure zonal autoshift for a resource, you can set the value of the status to ENABLED or DISABLED.

      " + }, + "zonalShifts":{ + "shape":"ZonalShiftsInResource", + "documentation":"

      An array of the zonal shifts for a resource.

      " } }, - "documentation":"

      A complex structure for a managed resource in an account.

      A managed resource is a Network Load Balancer or Application Load Balancer that has been registered with Route 53 ARC by Elastic Load Balancing. You can start a zonal shift in Route 53 ARC for a managed resource to temporarily move traffic for the resource away from an Availability Zone in an AWS Region.

      At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      " + "documentation":"

      A complex structure for a managed resource in an Amazon Web Services account with information about zonal shifts and autoshifts.

      A managed resource is a load balancer that has been registered with Route 53 ARC by Elastic Load Balancing. You can start a zonal shift in Route 53 ARC for a managed resource to temporarily move traffic for the resource away from an Availability Zone in an Amazon Web Services Region. You can also configure zonal autoshift for a managed resource.

      At this time, managed resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      " }, "MaxResults":{ "type":"integer", @@ -350,6 +737,38 @@ "max":100, "min":1 }, + "PracticeRunConfiguration":{ + "type":"structure", + "required":["outcomeAlarms"], + "members":{ + "blockedDates":{ + "shape":"BlockedDates", + "documentation":"

      An array of one or more dates that you can specify when Amazon Web Services does not start practice runs for a resource.

      Specify blocked dates, in UTC, in the format YYYY-MM-DD, separated by spaces.

      " + }, + "blockedWindows":{ + "shape":"BlockedWindows", + "documentation":"

      An array of one or more windows of days and times that you can block Route 53 ARC from starting practice runs for a resource.

      Specify the blocked windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

      " + }, + "blockingAlarms":{ + "shape":"ControlConditions", + "documentation":"

      The blocking alarm for practice runs is an optional alarm that you can specify that blocks practice runs when the alarm is in an ALARM state.

      " + }, + "outcomeAlarms":{ + "shape":"ControlConditions", + "documentation":"

      The outcome alarm for practice runs is an alarm that you specify that ends a practice run when the alarm is in an ALARM state.

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

      A practice run configuration for a resource includes the Amazon CloudWatch alarms that you've specified for a practice run, as well as any blocked dates or blocked windows for the practice run.

      You can update or delete a practice run configuration. Before you delete a practice run configuration, you must disable zonal autoshift for the resource. A practice run configuration is required when zonal autoshift is enabled.

      " + }, + "PracticeRunOutcome":{ + "type":"string", + "enum":[ + "FAILED", + "INTERRUPTED", + "PENDING", + "SUCCEEDED" + ] + }, "ResourceArn":{ "type":"string", "max":1024, @@ -391,7 +810,7 @@ "members":{ "awayFrom":{ "shape":"AvailabilityZone", - "documentation":"

      The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the AWS Region.

      " + "documentation":"

      The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

      " }, "comment":{ "shape":"ZonalShiftComment", @@ -399,11 +818,11 @@ }, "expiresIn":{ "shape":"ExpiresIn", - "documentation":"

      The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).

      If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.

      To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:

       <ul> <li> <p> <b>A lowercase letter m:</b> To specify that the value is in minutes.</p> </li> <li> <p> <b>A lowercase letter h:</b> To specify that the value is in hours.</p> </li> </ul> <p>For example: <code>20h</code> means the zonal shift expires in 20 hours. <code>120m</code> means the zonal shift expires in 120 minutes (2 hours).</p> 
      " + "documentation":"

      The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).

      If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.

      To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:

      • A lowercase letter m: To specify that the value is in minutes.

      • A lowercase letter h: To specify that the value is in hours.

      For example: 20h means the zonal shift expires in 20 hours. 120m means the zonal shift expires in 120 minutes (2 hours).

      " }, "resourceIdentifier":{ "shape":"ResourceIdentifier", - "documentation":"

      The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      " + "documentation":"

      The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      " } } }, @@ -420,6 +839,97 @@ }, "exception":true }, + "UpdatePracticeRunConfigurationRequest":{ + "type":"structure", + "required":["resourceIdentifier"], + "members":{ + "blockedDates":{ + "shape":"BlockedDates", + "documentation":"

      Add, change, or remove blocked dates for a practice run in zonal autoshift.

      Optionally, you can block practice runs for specific calendar dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Separate multiple blocked dates with spaces.

      For example, if you have an application update scheduled to launch on May 1, 2024, and you don't want practice runs to shift traffic away at that time, you could set a blocked date for 2024-05-01.

      " + }, + "blockedWindows":{ + "shape":"BlockedWindows", + "documentation":"

      Add, change, or remove windows of days and times for when you can, optionally, block Route 53 ARC from starting a practice run for a resource.

      The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple blocked windows with spaces.

      For example, say you run business report summaries three days a week. For this scenario, you might set the following recurring days and times as blocked windows, for example: MON-20:30-21:30 WED-20:30-21:30 FRI-20:30-21:30.

      " + }, + "blockingAlarms":{ + "shape":"ControlConditions", + "documentation":"

      Add, change, or remove the Amazon CloudWatch alarm that you optionally specify as the blocking alarm for practice runs.

      " + }, + "outcomeAlarms":{ + "shape":"ControlConditions", + "documentation":"

      Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice runs.

      " + }, + "resourceIdentifier":{ + "shape":"ResourceIdentifier", + "documentation":"

      The identifier for the resource that you want to update the practice run configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.

      ", + "location":"uri", + "locationName":"resourceIdentifier" + } + } + }, + "UpdatePracticeRunConfigurationResponse":{ + "type":"structure", + "required":[ + "arn", + "name", + "practiceRunConfiguration", + "zonalAutoshiftStatus" + ], + "members":{ + "arn":{ + "shape":"ResourceArn", + "documentation":"

      The Amazon Resource Name (ARN) of the resource that you updated the practice run for.

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

      The name of the resource that you updated the practice run for.

      " + }, + "practiceRunConfiguration":{ + "shape":"PracticeRunConfiguration", + "documentation":"

      The practice run configuration that was updated.

      " + }, + "zonalAutoshiftStatus":{ + "shape":"ZonalAutoshiftStatus", + "documentation":"

      The zonal autoshift status for the resource that you updated the practice run for.

      " + } + } + }, + "UpdateZonalAutoshiftConfigurationRequest":{ + "type":"structure", + "required":[ + "resourceIdentifier", + "zonalAutoshiftStatus" + ], + "members":{ + "resourceIdentifier":{ + "shape":"ResourceIdentifier", + "documentation":"

      The identifier for the resource that you want to update the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.

      ", + "location":"uri", + "locationName":"resourceIdentifier" + }, + "zonalAutoshiftStatus":{ + "shape":"ZonalAutoshiftStatus", + "documentation":"

      The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.

      " + } + } + }, + "UpdateZonalAutoshiftConfigurationResponse":{ + "type":"structure", + "required":[ + "resourceIdentifier", + "zonalAutoshiftStatus" + ], + "members":{ + "resourceIdentifier":{ + "shape":"ResourceIdentifier", + "documentation":"

      The identifier for the resource that you updated the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.

      " + }, + "zonalAutoshiftStatus":{ + "shape":"ZonalAutoshiftStatus", + "documentation":"

      The zonal autoshift status for the resource that you updated the zonal autoshift configuration for.

      " + } + } + }, "UpdateZonalShiftRequest":{ "type":"structure", "required":["zonalShiftId"], @@ -453,7 +963,7 @@ "documentation":"

      The reason for the validation exception.

      " } }, - "documentation":"

      The input fails to satisfy the constraints specified by an AWS service.

      ", + "documentation":"

      The input fails to satisfy the constraints specified by an Amazon Web Services service.

      ", "error":{ "httpStatusCode":400, "senderFault":true @@ -469,7 +979,10 @@ "InvalidToken", "InvalidResourceIdentifier", "InvalidAz", - "UnsupportedAz" + "UnsupportedAz", + "InvalidAlarmCondition", + "InvalidConditionType", + "InvalidPracticeBlocker" ] }, "Weight":{ @@ -478,6 +991,13 @@ "max":1.0, "min":0.0 }, + "ZonalAutoshiftStatus":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, "ZonalShift":{ "type":"structure", "required":[ @@ -492,7 +1012,7 @@ "members":{ "awayFrom":{ "shape":"AvailabilityZone", - "documentation":"

      The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the AWS Region.

      " + "documentation":"

      The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

      " }, "comment":{ "shape":"ZonalShiftComment", @@ -500,19 +1020,19 @@ }, "expiryTime":{ "shape":"ExpiryTime", - "documentation":"

      The expiry time (expiration time) for the zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

      When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift, for example, if you're ready to restore traffic to the Availability Zone. Or you can update the zonal shift to specify another length of time to expire in.

      " + "documentation":"

      The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

      When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.

      " }, "resourceIdentifier":{ "shape":"ResourceIdentifier", - "documentation":"

      The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      " + "documentation":"

      The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      " }, "startTime":{ "shape":"StartTime", - "documentation":"

      The time (UTC) when the zonal shift is started.

      " + "documentation":"

      The time (UTC) when the zonal shift starts.

      " }, "status":{ "shape":"ZonalShiftStatus", - "documentation":"

      A status for a zonal shift.

      The Status for a zonal shift can have one of the following values:

      • ACTIVE: The zonal shift is started and active.

      • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

      • CANCELED: The zonal shift was canceled.

      " + "documentation":"

      A status for a zonal shift.

      The Status for a zonal shift can have one of the following values:

      • ACTIVE: The zonal shift has been started and active.

      • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

      • CANCELED: The zonal shift was canceled.

      " }, "zonalShiftId":{ "shape":"ZonalShiftId", @@ -545,11 +1065,11 @@ "members":{ "appliedStatus":{ "shape":"AppliedStatus", - "documentation":"

      An appliedStatus for a zonal shift for a resource can have one of two values: APPLIED or NOT_APPLIED.

      " + "documentation":"

      The appliedStatus field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus field for an autoshift for a resource can have one of two values: APPLIED or NOT_APPLIED. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED.

      The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.

      For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.

      " }, "awayFrom":{ "shape":"AvailabilityZone", - "documentation":"

      The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the AWS Region.

      " + "documentation":"

      The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

      " }, "comment":{ "shape":"ZonalShiftComment", @@ -557,7 +1077,11 @@ }, "expiryTime":{ "shape":"ExpiryTime", - "documentation":"

      The expiry time (expiration time) for the zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

      When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift, for example, if you're ready to restore traffic to the Availability Zone. Or you can update the zonal shift to specify another length of time to expire in.

      " + "documentation":"

      The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

      When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.

      " + }, + "practiceRunOutcome":{ + "shape":"PracticeRunOutcome", + "documentation":"

      The outcome, or end state, returned for a practice run. The following values can be returned:

      • PENDING: Outcome value when a practice run is in progress.

      • SUCCEEDED: Outcome value when the outcome alarm specified for the practice run configuration does not go into an ALARM state during the practice run, and the practice run was not interrupted before it completed the expected 30 minute zonal shift.

      • INTERRUPTED: Outcome value when the practice run was stopped before the expected 30 minute zonal shift duration, or there was another problem with the practice run that created an inconclusive outcome.

      • FAILED: Outcome value when the outcome alarm specified for the practice run configuration goes into an ALARM state during the practice run, and the practice run was not interrupted before it completed.

      For more information about practice run outcomes, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.

      " }, "resourceIdentifier":{ "shape":"ResourceIdentifier", @@ -565,7 +1089,7 @@ }, "startTime":{ "shape":"StartTime", - "documentation":"

      The time (UTC) when the zonal shift is started.

      " + "documentation":"

      The time (UTC) when the zonal shift starts.

      " }, "zonalShiftId":{ "shape":"ZonalShiftId", @@ -600,7 +1124,7 @@ "members":{ "awayFrom":{ "shape":"AvailabilityZone", - "documentation":"

      The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the AWS Region.

      " + "documentation":"

      The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

      " }, "comment":{ "shape":"ZonalShiftComment", @@ -608,7 +1132,11 @@ }, "expiryTime":{ "shape":"ExpiryTime", - "documentation":"

      The expiry time (expiration time) for the zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

      When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift, for example, if you're ready to restore traffic to the Availability Zone. Or you can update the zonal shift to specify another length of time to expire in.

      " + "documentation":"

      The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

      When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.

      " + }, + "practiceRunOutcome":{ + "shape":"PracticeRunOutcome", + "documentation":"

      The outcome, or end state, of a practice run. The following values can be returned:

      • PENDING: Outcome value when the practice run is in progress.

      • SUCCEEDED: Outcome value when the outcome alarm specified for the practice run configuration does not go into an ALARM state during the practice run, and the practice run was not interrupted before it completed.

      • INTERRUPTED: Outcome value when the practice run did not run for the expected 30 minutes or there was another problem with the practice run that created an inconclusive outcome.

      • FAILED: Outcome value when the outcome alarm specified for the practice run configuration goes into an ALARM state during the practice run, and the practice run was not interrupted before it completed.

      For more information about practice run outcomes, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.

      " }, "resourceIdentifier":{ "shape":"ResourceIdentifier", @@ -616,23 +1144,23 @@ }, "startTime":{ "shape":"StartTime", - "documentation":"

      The time (UTC) when the zonal shift is started.

      " + "documentation":"

      The time (UTC) when the zonal shift starts.

      " }, "status":{ "shape":"ZonalShiftStatus", - "documentation":"

      A status for a zonal shift.

      The Status for a zonal shift can have one of the following values:

      • ACTIVE: The zonal shift is started and active.

      • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

      • CANCELED: The zonal shift was canceled.

      " + "documentation":"

      A status for a zonal shift.

      The Status for a zonal shift can have one of the following values:

      • ACTIVE: The zonal shift has been started and active.

      • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

      • CANCELED: The zonal shift was canceled.

      " }, "zonalShiftId":{ "shape":"ZonalShiftId", "documentation":"

      The identifier of a zonal shift.

      " } }, - "documentation":"

      You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in a AWS Region. A zonal shift helps your application recover immediately, for example, from a developer's bad code deployment or from an AWS infrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources in your account in an AWS Region. Supported AWS resources are automatically registered with Route 53 ARC.

      Zonal shifts are temporary. A zonal shift can be active for up to three days (72 hours).

      When you start a zonal shift, you specify how long you want it to be active, which Amazon Route 53 Application Recovery Controller converts to an expiry time (expiration time). You can cancel a zonal shift, for example, if you're ready to restore traffic to the Availability Zone. Or you can extend the zonal shift by updating the expiration so the zonal shift is active longer.

      " + "documentation":"

      Lists information about zonal shifts in Amazon Route 53 Application Recovery Controller, including zonal shifts that you start yourself and zonal shifts that Route 53 ARC starts on your behalf for practice runs with zonal autoshift.

      Zonal shifts are temporary, including customer-started zonal shifts and the zonal autoshift practice run zonal shifts that Route 53 ARC starts weekly, on your behalf. A zonal shift that a customer starts can be active for up to three days (72 hours). A practice run zonal shift has a 30 minute duration.

      " }, "ZonalShiftsInResource":{ "type":"list", "member":{"shape":"ZonalShiftInResource"} } }, - "documentation":"

      This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application Recovery Controller. This guide is for developers who need detailed information about zonal shift API actions, data types, and errors.

      Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller and is subject to change.

      Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource away from an Availability Zone. Starting a zonal shift helps your application recover immediately, for example, from a developer's bad code deployment or from an AWS infrastructure failure in a single Availability Zone, reducing the impact and time lost from an issue in one zone.

      Supported AWS resources are automatically registered with Route 53 ARC. Resources that are registered for zonal shifts in Route 53 ARC are managed resources in Route 53 ARC. You can start a zonal shift for any managed resource in your account in a Region. At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      Zonal shifts are temporary. You must specify an expiration when you start a zonal shift, of up to three days initially. If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.

      For more information about using zonal shift, see the Amazon Route 53 Application Recovery Controller Developer Guide.

      " + "documentation":"

      Welcome to the Zonal Shift API Reference Guide for Amazon Route 53 Application Recovery Controller (Route 53 ARC).

      You can start a zonal shift to move traffic for a load balancer resource away from an Availability Zone to help your application recover quickly from an impairment in an Availability Zone. For example, you can recover your application from a developer's bad code deployment or from an Amazon Web Services infrastructure failure in a single Availability Zone.

      You can also configure zonal autoshift for a load balancer resource. Zonal autoshift is a capability in Route 53 ARC where Amazon Web Services shifts away application resource traffic from an Availability Zone, on your behalf, to help reduce your time to recovery during events. Amazon Web Services shifts away traffic for resources that are enabled for zonal autoshift whenever Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.

      To ensure that zonal autoshift is safe for your application, you must also configure practice runs when you enable zonal autoshift for a resource. Practice runs start weekly zonal shifts for a resource, to shift traffic for the resource out of an Availability Zone. Practice runs make sure, on a regular basis, that you have enough capacity in all the Availability Zones in an Amazon Web Services Region for your application to continue to operate normally when traffic for a resource is shifted away from one Availability Zone.

      You must prescale resource capacity in all Availability Zones in the Region where your application is deployed, before you configure practice runs or enable zonal autoshift for a resource. You should not rely on scaling on demand when an autoshift or practice run starts.

      For more information about using zonal shift and zonal autoshift, see the Amazon Route 53 Application Recovery Controller Developer Guide.

      " } diff --git a/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json b/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json index 7dc078e97b4..f37c3b5a709 100644 --- a/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json +++ b/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json @@ -8359,6 +8359,34 @@ "max":255, "min":1 }, + "DataQualityAnalyzerResult":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"NameString", + "documentation":"

      The name of the data quality analyzer.

      " + }, + "Description":{ + "shape":"DataQualityRuleResultDescription", + "documentation":"

      A description of the data quality analyzer.

      " + }, + "EvaluationMessage":{ + "shape":"DataQualityRuleResultDescription", + "documentation":"

      An evaluation message.

      " + }, + "EvaluatedMetrics":{ + "shape":"EvaluatedMetricsMap", + "documentation":"

      A map of metrics associated with the evaluation of the analyzer.

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

      Describes the result of the evaluation of a data quality analyzer.

      " + }, + "DataQualityAnalyzerResults":{ + "type":"list", + "member":{"shape":"DataQualityAnalyzerResult"}, + "max":2000, + "min":0 + }, "DataQualityEvaluationRunAdditionalRunOptions":{ "type":"structure", "members":{ @@ -8373,6 +8401,54 @@ }, "documentation":"

      Additional run options you can specify for an evaluation run.

      " }, + "DataQualityMetricValues":{ + "type":"structure", + "members":{ + "ActualValue":{ + "shape":"NullableDouble", + "documentation":"

      The actual value of the data quality metric.

      " + }, + "ExpectedValue":{ + "shape":"NullableDouble", + "documentation":"

      The expected value of the data quality metric according to the analysis of historical data.

      " + }, + "LowerLimit":{ + "shape":"NullableDouble", + "documentation":"

      The lower limit of the data quality metric value according to the analysis of historical data.

      " + }, + "UpperLimit":{ + "shape":"NullableDouble", + "documentation":"

      The upper limit of the data quality metric value according to the analysis of historical data.

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

      Describes the data quality metric value according to the analysis of historical data.

      " + }, + "DataQualityObservation":{ + "type":"structure", + "members":{ + "Description":{ + "shape":"DataQualityObservationDescription", + "documentation":"

      A description of the data quality observation.

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

      An object of type MetricBasedObservation representing the observation that is based on evaluated data quality metrics.

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

      Describes the observation generated after evaluating the rules and analyzers.

      " + }, + "DataQualityObservationDescription":{ + "type":"string", + "max":2048, + "min":0, + "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" + }, + "DataQualityObservations":{ + "type":"list", + "member":{"shape":"DataQualityObservation"}, + "max":50, + "min":0 + }, "DataQualityResult":{ "type":"structure", "members":{ @@ -8419,6 +8495,14 @@ "RuleResults":{ "shape":"DataQualityRuleResults", "documentation":"

      A list of DataQualityRuleResult objects representing the results for each rule.

      " + }, + "AnalyzerResults":{ + "shape":"DataQualityAnalyzerResults", + "documentation":"

      A list of DataQualityAnalyzerResult objects representing the results for each analyzer.

      " + }, + "Observations":{ + "shape":"DataQualityObservations", + "documentation":"

      A list of DataQualityObservation objects representing the observations generated after evaluating the rules and analyzers.

      " } }, "documentation":"

      Describes a data quality result.

      " @@ -8548,11 +8632,11 @@ "documentation":"

      The name of the data quality rule.

      " }, "Description":{ - "shape":"DescriptionString", + "shape":"DataQualityRuleResultDescription", "documentation":"

      A description of the data quality rule.

      " }, "EvaluationMessage":{ - "shape":"DescriptionString", + "shape":"DataQualityRuleResultDescription", "documentation":"

      An evaluation message.

      " }, "Result":{ @@ -8566,6 +8650,12 @@ }, "documentation":"

      Describes the result of the evaluation of a data quality rule.

      " }, + "DataQualityRuleResultDescription":{ + "type":"string", + "max":2048, + "min":0, + "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" + }, "DataQualityRuleResultStatus":{ "type":"string", "enum":[ @@ -8578,7 +8668,7 @@ "type":"list", "member":{"shape":"DataQualityRuleResult"}, "max":2000, - "min":1 + "min":0 }, "DataQualityRulesetEvaluationRunDescription":{ "type":"structure", @@ -11190,6 +11280,14 @@ "RuleResults":{ "shape":"DataQualityRuleResults", "documentation":"

      A list of DataQualityRuleResult objects representing the results for each rule.

      " + }, + "AnalyzerResults":{ + "shape":"DataQualityAnalyzerResults", + "documentation":"

      A list of DataQualityAnalyzerResult objects representing the results for each analyzer.

      " + }, + "Observations":{ + "shape":"DataQualityObservations", + "documentation":"

      A list of DataQualityObservation objects representing the observations generated after evaluating the rules and analyzers.

      " } } }, @@ -15650,6 +15748,24 @@ "min":1, "pattern":"[a-zA-Z0-9+-=._./@]+" }, + "MetricBasedObservation":{ + "type":"structure", + "members":{ + "MetricName":{ + "shape":"NameString", + "documentation":"

      The name of the data quality metric used for generating the observation.

      " + }, + "MetricValues":{ + "shape":"DataQualityMetricValues", + "documentation":"

      An object of type DataQualityMetricValues representing the analysis of the data quality metric value.

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

      A list of new data quality rules generated as part of the observation based on the data quality metric value.

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

      Describes the metric based observation generated based on evaluated data quality metrics.

      " + }, "MicrosoftSQLServerCatalogSource":{ "type":"structure", "required":[ @@ -15785,6 +15901,10 @@ "type":"list", "member":{"shape":"NameString"} }, + "NewRules":{ + "type":"list", + "member":{"shape":"NameString"} + }, "NoScheduleException":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json index c71a2e26b39..77691fb7246 100644 --- a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json +++ b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json @@ -4375,7 +4375,8 @@ "SpaceName":{ "shape":"SpaceName", "documentation":"

      The name of the space.

      " - } + }, + "ResourceSpec":{"shape":"ResourceSpec"} }, "documentation":"

      Details about an Amazon SageMaker app.

      " }, @@ -4406,6 +4407,10 @@ "KernelGatewayImageConfig":{ "shape":"KernelGatewayImageConfig", "documentation":"

      The configuration for the file system and kernels in the SageMaker image.

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

      The configuration for the file system and the runtime, such as the environment variables and entry point.

      " } }, "documentation":"

      The configuration for running a SageMaker image as a KernelGateway app.

      " @@ -4559,7 +4564,9 @@ "KernelGateway", "TensorBoard", "RStudioServerPro", - "RSessionGateway" + "RSessionGateway", + "JupyterLab", + "CodeEditor" ] }, "ApprovalDescription":{ @@ -7047,6 +7054,17 @@ "max":2, "min":1 }, + "CodeEditorAppSettings":{ + "type":"structure", + "members":{ + "DefaultResourceSpec":{"shape":"ResourceSpec"}, + "LifecycleConfigArns":{ + "shape":"LifecycleConfigArns", + "documentation":"

      The Amazon Resource Name (ARN) of the Code Editor application lifecycle configuration.

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

      The Code Editor application settings.

      For more information about Code Editor, see Get started with Code Editor in Amazon SageMaker.

      " + }, "CodeRepositories":{ "type":"list", "member":{"shape":"CodeRepository"}, @@ -7388,6 +7406,24 @@ "max":100, "min":1 }, + "ContainerConfig":{ + "type":"structure", + "members":{ + "ContainerArguments":{ + "shape":"CustomImageContainerArguments", + "documentation":"

      The arguments for the container when you're running the application.

      " + }, + "ContainerEntrypoint":{ + "shape":"CustomImageContainerEntrypoint", + "documentation":"

      The entrypoint used to run the application in the container.

      " + }, + "ContainerEnvironmentVariables":{ + "shape":"CustomImageContainerEnvironmentVariables", + "documentation":"

      The environment variables to set in the container

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

      The configuration used to run the application image container.

      " + }, "ContainerDefinition":{ "type":"structure", "members":{ @@ -7733,6 +7769,10 @@ "KernelGatewayImageConfig":{ "shape":"KernelGatewayImageConfig", "documentation":"

      The KernelGatewayImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel will be shown to users before the image starts. Once the image runs, all kernels are visible in JupyterLab.

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

      The JupyterLabAppImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel is shown to users before the image starts. After the image runs, all kernels are visible in JupyterLab.

      " } } }, @@ -9843,6 +9883,18 @@ "SpaceSettings":{ "shape":"SpaceSettings", "documentation":"

      A collection of space settings.

      " + }, + "SpaceDisplayName":{ + "shape":"NonEmptyString64", + "documentation":"

      The name of the space that appears in the SageMaker Studio UI.

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

      A collection of ownership settings.

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

      A collection of space sharing settings.

      " } } }, @@ -10297,6 +10349,38 @@ "max":10, "min":1 }, + "CustomFileSystem":{ + "type":"structure", + "members":{ + "EFSFileSystem":{ + "shape":"EFSFileSystem", + "documentation":"

      A custom file system in Amazon EFS.

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

      A file system, created by you, that you assign to a user profile or space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.

      ", + "union":true + }, + "CustomFileSystemConfig":{ + "type":"structure", + "members":{ + "EFSFileSystemConfig":{ + "shape":"EFSFileSystemConfig", + "documentation":"

      The settings for a custom Amazon EFS file system.

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

      The settings for assigning a custom file system to a user profile or space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.

      ", + "union":true + }, + "CustomFileSystemConfigs":{ + "type":"list", + "member":{"shape":"CustomFileSystemConfig"}, + "max":2 + }, + "CustomFileSystems":{ + "type":"list", + "member":{"shape":"CustomFileSystem"}, + "max":1 + }, "CustomImage":{ "type":"structure", "required":[ @@ -10320,11 +10404,45 @@ }, "documentation":"

      A custom SageMaker image. For more information, see Bring your own SageMaker image.

      " }, + "CustomImageContainerArguments":{ + "type":"list", + "member":{"shape":"NonEmptyString64"}, + "max":50 + }, + "CustomImageContainerEntrypoint":{ + "type":"list", + "member":{"shape":"NonEmptyString256"}, + "max":1 + }, + "CustomImageContainerEnvironmentVariables":{ + "type":"map", + "key":{"shape":"NonEmptyString256"}, + "value":{"shape":"String256"}, + "max":25 + }, "CustomImages":{ "type":"list", "member":{"shape":"CustomImage"}, "max":200 }, + "CustomPosixUserConfig":{ + "type":"structure", + "required":[ + "Uid", + "Gid" + ], + "members":{ + "Uid":{ + "shape":"Uid", + "documentation":"

      The POSIX user ID.

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

      The POSIX group ID.

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

      Details about the POSIX identity that is used for file system operations.

      " + }, "CustomerMetadataKey":{ "type":"string", "max":128, @@ -10692,6 +10810,24 @@ "max":20, "min":0 }, + "DefaultEbsStorageSettings":{ + "type":"structure", + "required":[ + "DefaultEbsVolumeSizeInGb", + "MaximumEbsVolumeSizeInGb" + ], + "members":{ + "DefaultEbsVolumeSizeInGb":{ + "shape":"SpaceEbsVolumeSizeInGb", + "documentation":"

      The default size of the EBS storage volume for a private space.

      " + }, + "MaximumEbsVolumeSizeInGb":{ + "shape":"SpaceEbsVolumeSizeInGb", + "documentation":"

      The maximum size of the EBS storage volume for a private space.

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

      A collection of default EBS storage settings that applies to private spaces created within a domain or user profile.

      " + }, "DefaultGid":{ "type":"integer", "max":65535, @@ -10713,6 +10849,16 @@ }, "documentation":"

      A collection of settings that apply to spaces created in the Domain.

      " }, + "DefaultSpaceStorageSettings":{ + "type":"structure", + "members":{ + "DefaultEbsStorageSettings":{ + "shape":"DefaultEbsStorageSettings", + "documentation":"

      The default EBS storage settings for a private space.

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

      The default storage settings for a private space.

      " + }, "DefaultUid":{ "type":"integer", "max":65535, @@ -11730,6 +11876,10 @@ "KernelGatewayImageConfig":{ "shape":"KernelGatewayImageConfig", "documentation":"

      The configuration of a KernelGateway app.

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

      The configuration of the JupyterLab app.

      " } } }, @@ -15132,6 +15282,18 @@ "Url":{ "shape":"String1024", "documentation":"

      Returns the URL of the space. If the space is created with Amazon Web Services IAM Identity Center (Successor to Amazon Web Services Single Sign-On) authentication, users can navigate to the URL after appending the respective redirect parameter for the application type to be federated through Amazon Web Services IAM Identity Center.

      The following application types are supported:

      • Studio Classic: &redirect=JupyterServer

      • JupyterLab: &redirect=JupyterLab

      " + }, + "SpaceDisplayName":{ + "shape":"NonEmptyString64", + "documentation":"

      The name of the space that appears in the Amazon SageMaker Studio UI.

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

      The collection of ownership settings for a space.

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

      The collection of space sharing settings for a space.

      " } } }, @@ -16334,6 +16496,32 @@ }, "documentation":"

      An object with the recommended values for you to specify when creating an autoscaling policy.

      " }, + "EFSFileSystem":{ + "type":"structure", + "required":["FileSystemId"], + "members":{ + "FileSystemId":{ + "shape":"FileSystemId", + "documentation":"

      The ID of your Amazon EFS file system.

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

      A file system, created by you in Amazon EFS, that you assign to a user profile or space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.

      " + }, + "EFSFileSystemConfig":{ + "type":"structure", + "required":["FileSystemId"], + "members":{ + "FileSystemId":{ + "shape":"FileSystemId", + "documentation":"

      The ID of your Amazon EFS file system.

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

      The path to the file system directory that is accessible in Amazon SageMaker Studio. Permitted users can access only this directory and below.

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

      The settings for assigning a custom Amazon EFS file system to a user profile or space for an Amazon SageMaker Domain.

      " + }, "EMRStepMetadata":{ "type":"structure", "members":{ @@ -16356,6 +16544,17 @@ }, "documentation":"

      The configurations and outcomes of an Amazon EMR step execution.

      " }, + "EbsStorageSettings":{ + "type":"structure", + "required":["EbsVolumeSizeInGb"], + "members":{ + "EbsVolumeSizeInGb":{ + "shape":"SpaceEbsVolumeSizeInGb", + "documentation":"

      The size of an EBS storage volume for a private space.

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

      A collection of EBS storage settings that applies to private spaces.

      " + }, "Edge":{ "type":"structure", "members":{ @@ -17742,7 +17941,13 @@ "FileSystemId":{ "type":"string", "min":11, - "pattern":".*" + "pattern":"^(fs-[0-9a-f]{8,})$" + }, + "FileSystemPath":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^\\/\\S*$" }, "FileSystemType":{ "type":"string", @@ -18220,6 +18425,11 @@ } } }, + "Gid":{ + "type":"long", + "max":4000000, + "min":1001 + }, "GitConfig":{ "type":"structure", "required":["RepositoryUrl"], @@ -20642,6 +20852,32 @@ "max":63, "min":0 }, + "JupyterLabAppImageConfig":{ + "type":"structure", + "members":{ + "ContainerConfig":{"shape":"ContainerConfig"} + }, + "documentation":"

      The configuration for the file system and kernels in a SageMaker image running as a JupyterLab app.

      " + }, + "JupyterLabAppSettings":{ + "type":"structure", + "members":{ + "DefaultResourceSpec":{"shape":"ResourceSpec"}, + "CustomImages":{ + "shape":"CustomImages", + "documentation":"

      A list of custom SageMaker images that are configured to run as a JupyterLab app.

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

      The Amazon Resource Name (ARN) of the lifecycle configurations attached to the user profile or domain. To remove a lifecycle config, you must set LifecycleConfigArns to an empty list.

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

      A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.

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

      The settings for the JupyterLab application.

      " + }, "JupyterServerAppSettings":{ "type":"structure", "members":{ @@ -27797,6 +28033,16 @@ "max":8192, "pattern":".*" }, + "NonEmptyString256":{ + "type":"string", + "max":256, + "pattern":"^(?!\\s*$).+" + }, + "NonEmptyString64":{ + "type":"string", + "max":64, + "pattern":"^(?!\\s*$).+" + }, "NotebookInstanceAcceleratorType":{ "type":"string", "enum":[ @@ -28353,6 +28599,27 @@ "max":50, "min":0 }, + "OwnershipSettings":{ + "type":"structure", + "required":["OwnerUserProfileName"], + "members":{ + "OwnerUserProfileName":{ + "shape":"UserProfileName", + "documentation":"

      The user profile who is the owner of the private space.

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

      The collection of ownership settings for a space.

      " + }, + "OwnershipSettingsSummary":{ + "type":"structure", + "members":{ + "OwnerUserProfileName":{ + "shape":"UserProfileName", + "documentation":"

      The user profile who is the owner of the private space.

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

      Specifies summary information about the ownership settings.

      " + }, "PaginationToken":{ "type":"string", "max":8192, @@ -32201,6 +32468,13 @@ }, "documentation":"

      Specifies options for sharing Amazon SageMaker Studio notebooks. These settings are specified as part of DefaultUserSettings when the CreateDomain API is called, and as part of UserSettings when the CreateUserProfile API is called. When SharingSettings is not specified, notebook sharing isn't allowed.

      " }, + "SharingType":{ + "type":"string", + "enum":[ + "Private", + "Shared" + ] + }, "ShuffleConfig":{ "type":"structure", "required":["Seed"], @@ -32382,6 +32656,13 @@ "max":256, "pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:space/.*" }, + "SpaceCodeEditorAppSettings":{ + "type":"structure", + "members":{ + "DefaultResourceSpec":{"shape":"ResourceSpec"} + }, + "documentation":"

      The application settings for a Code Editor space.

      " + }, "SpaceDetails":{ "type":"structure", "members":{ @@ -32404,10 +32685,42 @@ "LastModifiedTime":{ "shape":"LastModifiedTime", "documentation":"

      The last modified time.

      " + }, + "SpaceDisplayName":{ + "shape":"NonEmptyString64", + "documentation":"

      The name of the space that appears in the Studio UI.

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

      Specifies summary information about the space settings.

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

      Specifies summary information about the space sharing settings.

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

      Specifies summary information about the ownership settings.

      " } }, "documentation":"

      The space's details.

      " }, + "SpaceEbsVolumeSizeInGb":{ + "type":"integer", + "max":16384, + "min":5 + }, + "SpaceJupyterLabAppSettings":{ + "type":"structure", + "members":{ + "DefaultResourceSpec":{"shape":"ResourceSpec"}, + "CodeRepositories":{ + "shape":"CodeRepositories", + "documentation":"

      A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.

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

      The settings for the JupyterLab application within a space.

      " + }, "SpaceList":{ "type":"list", "member":{"shape":"SpaceDetails"} @@ -32421,10 +32734,65 @@ "type":"structure", "members":{ "JupyterServerAppSettings":{"shape":"JupyterServerAppSettings"}, - "KernelGatewayAppSettings":{"shape":"KernelGatewayAppSettings"} + "KernelGatewayAppSettings":{"shape":"KernelGatewayAppSettings"}, + "JupyterLabAppSettings":{ + "shape":"SpaceJupyterLabAppSettings", + "documentation":"

      The settings for the JupyterLab application.

      " + }, + "CodeEditorAppSettings":{ + "shape":"SpaceCodeEditorAppSettings", + "documentation":"

      The Code Editor application settings.

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

      The storage settings for a private space.

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

      The type of app created within the space.

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

      A file system, created by you, that you assign to a space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.

      " + } }, "documentation":"

      A collection of space settings.

      " }, + "SpaceSettingsSummary":{ + "type":"structure", + "members":{ + "AppType":{ + "shape":"AppType", + "documentation":"

      The type of app created within the space.

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

      The storage settings for a private space.

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

      Specifies summary information about the space settings.

      " + }, + "SpaceSharingSettings":{ + "type":"structure", + "required":["SharingType"], + "members":{ + "SharingType":{ + "shape":"SharingType", + "documentation":"

      Specifies the sharing type of the space.

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

      A collection of space sharing settings.

      " + }, + "SpaceSharingSettingsSummary":{ + "type":"structure", + "members":{ + "SharingType":{ + "shape":"SharingType", + "documentation":"

      Specifies the sharing type of the space.

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

      Specifies summary information about the space sharing settings.

      " + }, "SpaceSortKey":{ "type":"string", "enum":[ @@ -32444,6 +32812,16 @@ "Delete_Failed" ] }, + "SpaceStorageSettings":{ + "type":"structure", + "members":{ + "EbsStorageSettings":{ + "shape":"EbsStorageSettings", + "documentation":"

      A collection of EBS storage settings for a private space.

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

      The storage settings for a private space.

      " + }, "SpawnRate":{ "type":"integer", "min":0 @@ -32902,7 +33280,9 @@ "type":"string", "enum":[ "JupyterServer", - "KernelGateway" + "KernelGateway", + "JupyterLab", + "CodeEditor" ] }, "StudioLifecycleConfigArn":{ @@ -34962,6 +35342,11 @@ }, "documentation":"

      Container for user interface template information.

      " }, + "Uid":{ + "type":"long", + "max":4000000, + "min":10000 + }, "UpdateActionRequest":{ "type":"structure", "required":["ActionName"], @@ -35008,6 +35393,10 @@ "KernelGatewayImageConfig":{ "shape":"KernelGatewayImageConfig", "documentation":"

      The new KernelGateway app to run on the image.

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

      The JupyterLab app running on the image.

      " } } }, @@ -35951,6 +36340,10 @@ "SpaceSettings":{ "shape":"SpaceSettings", "documentation":"

      A collection of space settings.

      " + }, + "SpaceDisplayName":{ + "shape":"NonEmptyString64", + "documentation":"

      The name of the space that appears in the Amazon SageMaker Studio UI.

      " } } }, @@ -36296,6 +36689,18 @@ "shape":"CanvasAppSettings", "documentation":"

      The Canvas app settings.

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

      The settings for the JupyterLab application.

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

      The Code Editor application settings.

      " + }, + "SpaceStorageSettings":{ + "shape":"DefaultSpaceStorageSettings", + "documentation":"

      The storage settings for a private space.

      " + }, "DefaultLandingUri":{ "shape":"LandingUri", "documentation":"

      The default experience that the user is directed to when accessing the domain. The supported values are:

      • studio::: Indicates that Studio is the default experience. This value can only be passed if StudioWebPortal is set to ENABLED.

      • app:JupyterServer:: Indicates that Studio Classic is the default experience.

      " @@ -36303,6 +36708,14 @@ "StudioWebPortal":{ "shape":"StudioWebPortal", "documentation":"

      Whether the user can access Studio. If this value is set to DISABLED, the user cannot access Studio, even if that is the default experience for the domain.

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

      Details about the POSIX identity that is used for file system operations.

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

      The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.

      " } }, "documentation":"

      A collection of settings that apply to users in a domain. These settings are specified when the CreateUserProfile API is called, and as DefaultUserSettings when the CreateDomain API is called.

      SecurityGroups is aggregated when specified in both calls. For all other settings in UserSettings, the values specified in CreateUserProfile take precedence over those specified in CreateDomain.

      " diff --git a/tools/code-generation/endpoints/arc-zonal-shift-2022-10-30.endpoint-rule-set.json b/tools/code-generation/endpoints/arc-zonal-shift-2022-10-30.endpoint-rule-set.json index 59d231630f3..dcb0d610569 100644 --- a/tools/code-generation/endpoints/arc-zonal-shift-2022-10-30.endpoint-rule-set.json +++ b/tools/code-generation/endpoints/arc-zonal-shift-2022-10-30.endpoint-rule-set.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -59,7 +58,6 @@ }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [ @@ -87,13 +85,14 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [ @@ -106,7 +105,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -120,7 +118,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -143,7 +140,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -178,11 +174,9 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -193,16 +187,19 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -216,14 +213,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -232,15 +227,14 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -251,16 +245,19 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -274,7 +271,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -294,11 +290,9 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -309,20 +303,22 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -333,18 +329,22 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } - ] + ], + "type": "tree" } ] } \ No newline at end of file