From c6311a18bf4973cb7062b190cf9b9b3bc8165100 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Wed, 31 Jan 2024 19:11:04 +0000 Subject: [PATCH] This release adds an optional Duration parameter to StateManager Associations. This allows customers to specify how long an apply-only-on-cron association execution should run. Once the specified Duration is out all the ongoing cancellable commands or automations are cancelled. Update page size limits for GetJobRuns and GetTriggers APIs. CloudFormation IaC generator allows you to scan existing resources in your account and select resources to generate a template for a new or existing CloudFormation stack. This release enables unhealthy target draining intervals for Network Load Balancers. --- VERSION | 2 +- .../aws/cloudformation/CloudFormationClient.h | 299 +++++ .../aws/cloudformation/CloudFormationErrors.h | 5 + .../CloudFormationServiceClientModel.h | 54 + .../model/CreateGeneratedTemplateRequest.h | 250 ++++ .../model/CreateGeneratedTemplateResult.h | 96 ++ .../cloudformation/model/CreateStackRequest.h | 16 +- .../model/DeleteGeneratedTemplateRequest.h | 87 ++ .../model/DescribeGeneratedTemplateRequest.h | 87 ++ .../model/DescribeGeneratedTemplateResult.h | 519 +++++++++ .../model/DescribeResourceScanRequest.h | 87 ++ .../model/DescribeResourceScanResult.h | 404 +++++++ .../model/GeneratedTemplateDeletionPolicy.h | 31 + .../model/GeneratedTemplateResourceStatus.h | 33 + .../model/GeneratedTemplateStatus.h | 37 + .../GeneratedTemplateUpdateReplacePolicy.h | 31 + .../model/GetGeneratedTemplateRequest.h | 174 +++ .../model/GetGeneratedTemplateResult.h | 182 +++ .../model/ListGeneratedTemplatesRequest.h | 127 ++ .../model/ListGeneratedTemplatesResult.h | 164 +++ .../ListResourceScanRelatedResourcesRequest.h | 225 ++++ .../ListResourceScanRelatedResourcesResult.h | 171 +++ .../model/ListResourceScanResourcesRequest.h | 371 ++++++ .../model/ListResourceScanResourcesResult.h | 171 +++ .../model/ListResourceScansRequest.h | 123 ++ .../model/ListResourceScansResult.h | 164 +++ .../cloudformation/model/ResourceDefinition.h | 355 ++++++ .../aws/cloudformation/model/ResourceDetail.h | 524 +++++++++ .../cloudformation/model/ResourceScanStatus.h | 33 + .../model/ResourceScanSummary.h | 295 +++++ .../cloudformation/model/ScannedResource.h | 334 ++++++ .../model/ScannedResourceIdentifier.h | 311 +++++ .../model/StackSetOperationPreferences.h | 18 + .../model/StartResourceScanRequest.h | 103 ++ .../model/StartResourceScanResult.h | 124 ++ .../model/TemplateConfiguration.h | 206 ++++ .../aws/cloudformation/model/TemplateFormat.h | 31 + .../cloudformation/model/TemplateProgress.h | 141 +++ .../cloudformation/model/TemplateSummary.h | 410 +++++++ .../model/UpdateGeneratedTemplateRequest.h | 316 +++++ .../model/UpdateGeneratedTemplateResult.h | 124 ++ .../aws/cloudformation/model/WarningDetail.h | 235 ++++ .../cloudformation/model/WarningProperty.h | 175 +++ .../aws/cloudformation/model/WarningType.h | 32 + .../source/CloudFormationClient.cpp | 297 +++++ .../source/CloudFormationErrors.cpp | 107 +- .../model/CreateGeneratedTemplateRequest.cpp | 58 + .../model/CreateGeneratedTemplateResult.cpp | 54 + .../model/DeleteGeneratedTemplateRequest.cpp | 35 + .../DescribeGeneratedTemplateRequest.cpp | 35 + .../model/DescribeGeneratedTemplateResult.cpp | 114 ++ .../model/DescribeResourceScanRequest.cpp | 35 + .../model/DescribeResourceScanResult.cpp | 108 ++ .../model/GeneratedTemplateDeletionPolicy.cpp | 72 ++ .../model/GeneratedTemplateResourceStatus.cpp | 86 ++ .../source/model/GeneratedTemplateStatus.cpp | 114 ++ .../GeneratedTemplateUpdateReplacePolicy.cpp | 72 ++ .../model/GetGeneratedTemplateRequest.cpp | 42 + .../model/GetGeneratedTemplateResult.cpp | 61 + .../model/ListGeneratedTemplatesRequest.cpp | 42 + .../model/ListGeneratedTemplatesResult.cpp | 65 ++ ...istResourceScanRelatedResourcesRequest.cpp | 59 + ...ListResourceScanRelatedResourcesResult.cpp | 65 ++ .../ListResourceScanResourcesRequest.cpp | 72 ++ .../model/ListResourceScanResourcesResult.cpp | 65 ++ .../source/model/ListResourceScansRequest.cpp | 42 + .../source/model/ListResourceScansResult.cpp | 65 ++ .../source/model/ResourceDefinition.cpp | 131 +++ .../source/model/ResourceDetail.cpp | 202 ++++ .../source/model/ResourceScanStatus.cpp | 86 ++ .../source/model/ResourceScanSummary.cpp | 159 +++ .../source/model/ScannedResource.cpp | 133 +++ .../model/ScannedResourceIdentifier.cpp | 114 ++ .../source/model/StartResourceScanRequest.cpp | 35 + .../source/model/StartResourceScanResult.cpp | 54 + .../source/model/TemplateConfiguration.cpp | 91 ++ .../source/model/TemplateFormat.cpp | 72 ++ .../source/model/TemplateProgress.cpp | 129 +++ .../source/model/TemplateSummary.cpp | 176 +++ .../model/UpdateGeneratedTemplateRequest.cpp | 77 ++ .../model/UpdateGeneratedTemplateResult.cpp | 54 + .../source/model/WarningDetail.cpp | 107 ++ .../source/model/WarningProperty.cpp | 106 ++ .../source/model/WarningType.cpp | 79 ++ .../model/CreateLoadBalancerRequest.h | 208 ++-- .../model/SourceIpConditionConfig.h | 27 +- .../model/TargetGroupAttribute.h | 72 +- .../model/TargetHealthStateEnum.h | 1 + .../source/model/TargetHealthStateEnum.cpp | 7 + .../include/aws/glue/model/JobCommand.h | 32 +- .../include/aws/ssm/SSMClient.h | 6 +- .../include/aws/ssm/model/Association.h | 32 + .../aws/ssm/model/AssociationDescription.h | 32 + .../aws/ssm/model/AssociationVersionInfo.h | 32 + .../CreateAssociationBatchRequestEntry.h | 72 ++ .../aws/ssm/model/CreateAssociationRequest.h | 72 ++ .../aws/ssm/model/DescribeDocumentRequest.h | 32 +- .../aws/ssm/model/DocumentIdentifier.h | 32 +- .../include/aws/ssm/model/DocumentRequires.h | 32 +- .../aws/ssm/model/DocumentVersionInfo.h | 48 +- .../aws/ssm/model/GetConnectionStatusResult.h | 15 +- .../aws/ssm/model/GetDocumentRequest.h | 32 +- .../include/aws/ssm/model/GetDocumentResult.h | 42 +- .../include/aws/ssm/model/ParameterHistory.h | 24 +- .../include/aws/ssm/model/ParameterMetadata.h | 24 +- .../aws/ssm/model/PatchComplianceData.h | 32 +- .../aws/ssm/model/UpdateAssociationRequest.h | 72 ++ .../aws/ssm/model/UpdateDocumentRequest.h | 32 +- .../source/model/Association.cpp | 17 + .../source/model/AssociationDescription.cpp | 17 + .../source/model/AssociationVersionInfo.cpp | 17 + .../CreateAssociationBatchRequestEntry.cpp | 17 + .../source/model/CreateAssociationRequest.cpp | 8 + .../source/model/UpdateAssociationRequest.cpp | 8 + .../include/aws/core/VersionConfig.h | 4 +- .../cloudformation-2010-05-15.normal.json | 1031 ++++++++++++++++- ...sticloadbalancingv2-2015-12-01.normal.json | 9 +- .../glue-2017-03-31.normal.json | 24 +- .../ssm-2014-11-06.normal.json | 60 +- 119 files changed, 13078 insertions(+), 391 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateGeneratedTemplateRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateGeneratedTemplateResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DeleteGeneratedTemplateRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeGeneratedTemplateRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeGeneratedTemplateResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeResourceScanRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeResourceScanResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateDeletionPolicy.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateResourceStatus.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateStatus.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateUpdateReplacePolicy.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GetGeneratedTemplateRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GetGeneratedTemplateResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListGeneratedTemplatesRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListGeneratedTemplatesResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanRelatedResourcesRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanRelatedResourcesResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanResourcesRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanResourcesResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScansRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScansResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceDefinition.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceDetail.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceScanStatus.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceScanSummary.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ScannedResource.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ScannedResourceIdentifier.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StartResourceScanRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StartResourceScanResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateFormat.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateProgress.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateSummary.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/UpdateGeneratedTemplateRequest.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/UpdateGeneratedTemplateResult.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningDetail.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningProperty.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningType.h create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/CreateGeneratedTemplateRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/CreateGeneratedTemplateResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/DeleteGeneratedTemplateRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeGeneratedTemplateRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeGeneratedTemplateResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeResourceScanRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeResourceScanResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateDeletionPolicy.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateResourceStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateUpdateReplacePolicy.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/GetGeneratedTemplateRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/GetGeneratedTemplateResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ListGeneratedTemplatesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ListGeneratedTemplatesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanRelatedResourcesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanRelatedResourcesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanResourcesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanResourcesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScansRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScansResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceDefinition.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceDetail.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceScanStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceScanSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ScannedResource.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/ScannedResourceIdentifier.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/StartResourceScanRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/StartResourceScanResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateFormat.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateProgress.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/UpdateGeneratedTemplateRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/UpdateGeneratedTemplateResult.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/WarningDetail.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/WarningProperty.cpp create mode 100644 generated/src/aws-cpp-sdk-cloudformation/source/model/WarningType.cpp diff --git a/VERSION b/VERSION index 4808e17a2f1..c9258a50841 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.254 \ No newline at end of file +1.11.255 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationClient.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationClient.h index 40493fcec7f..fd976e5f857 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationClient.h +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationClient.h @@ -303,6 +303,33 @@ namespace CloudFormation return SubmitAsync(&CloudFormationClient::CreateChangeSet, request, handler, context); } + /** + *

Creates a template from existing resources that are not already managed with + * CloudFormation. You can check the status of the template generation using the + * DescribeGeneratedTemplate API action.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateGeneratedTemplateOutcome CreateGeneratedTemplate(const Model::CreateGeneratedTemplateRequest& request) const; + + /** + * A Callable wrapper for CreateGeneratedTemplate that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateGeneratedTemplateOutcomeCallable CreateGeneratedTemplateCallable(const CreateGeneratedTemplateRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::CreateGeneratedTemplate, request); + } + + /** + * An Async wrapper for CreateGeneratedTemplate that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateGeneratedTemplateAsync(const CreateGeneratedTemplateRequestT& request, const CreateGeneratedTemplateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::CreateGeneratedTemplate, request, handler, context); + } + /** *

Creates a stack as specified in the template. After the call completes * successfully, the stack creation starts. You can check the status of the stack @@ -474,6 +501,31 @@ namespace CloudFormation return SubmitAsync(&CloudFormationClient::DeleteChangeSet, request, handler, context); } + /** + *

Deleted a generated template.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteGeneratedTemplateOutcome DeleteGeneratedTemplate(const Model::DeleteGeneratedTemplateRequest& request) const; + + /** + * A Callable wrapper for DeleteGeneratedTemplate that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteGeneratedTemplateOutcomeCallable DeleteGeneratedTemplateCallable(const DeleteGeneratedTemplateRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::DeleteGeneratedTemplate, request); + } + + /** + * An Async wrapper for DeleteGeneratedTemplate that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteGeneratedTemplateAsync(const DeleteGeneratedTemplateRequestT& request, const DeleteGeneratedTemplateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::DeleteGeneratedTemplate, request, handler, context); + } + /** *

Deletes a specified stack. Once the call completes successfully, stack * deletion starts. Deleted stacks don't show up in the DescribeStacks @@ -679,6 +731,35 @@ namespace CloudFormation return SubmitAsync(&CloudFormationClient::DescribeChangeSetHooks, request, handler, context); } + /** + *

Describes a generated template. The output includes details about the + * progress of the creation of a generated template started by a + * CreateGeneratedTemplate API action or the update of a generated + * template started with an UpdateGeneratedTemplate API + * action.

See Also:

AWS + * API Reference

+ */ + virtual Model::DescribeGeneratedTemplateOutcome DescribeGeneratedTemplate(const Model::DescribeGeneratedTemplateRequest& request) const; + + /** + * A Callable wrapper for DescribeGeneratedTemplate that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DescribeGeneratedTemplateOutcomeCallable DescribeGeneratedTemplateCallable(const DescribeGeneratedTemplateRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::DescribeGeneratedTemplate, request); + } + + /** + * An Async wrapper for DescribeGeneratedTemplate that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DescribeGeneratedTemplateAsync(const DescribeGeneratedTemplateRequestT& request, const DescribeGeneratedTemplateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::DescribeGeneratedTemplate, request, handler, context); + } + /** *

Retrieves information about the account's OrganizationAccess * status. This API can be called either by the management account or the delegated @@ -742,6 +823,31 @@ namespace CloudFormation return SubmitAsync(&CloudFormationClient::DescribePublisher, request, handler, context); } + /** + *

Describes details of a resource scan.

See Also:

AWS + * API Reference

+ */ + virtual Model::DescribeResourceScanOutcome DescribeResourceScan(const Model::DescribeResourceScanRequest& request) const; + + /** + * A Callable wrapper for DescribeResourceScan that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DescribeResourceScanOutcomeCallable DescribeResourceScanCallable(const DescribeResourceScanRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::DescribeResourceScan, request); + } + + /** + * An Async wrapper for DescribeResourceScan that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DescribeResourceScanAsync(const DescribeResourceScanRequestT& request, const DescribeResourceScanResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::DescribeResourceScan, request, handler, context); + } + /** *

Returns information about a stack drift detection operation. A stack drift * detection operation detects whether a stack's actual configuration differs, or @@ -1284,6 +1390,36 @@ namespace CloudFormation return SubmitAsync(&CloudFormationClient::ExecuteChangeSet, request, handler, context); } + /** + *

Retrieves a generated template. If the template is in an + * InProgress or Pending status then the template + * returned will be the template when the template was last in a + * Complete status. If the template has not yet been in a + * Complete status then an empty template will be + * returned.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetGeneratedTemplateOutcome GetGeneratedTemplate(const Model::GetGeneratedTemplateRequest& request) const; + + /** + * A Callable wrapper for GetGeneratedTemplate that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetGeneratedTemplateOutcomeCallable GetGeneratedTemplateCallable(const GetGeneratedTemplateRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::GetGeneratedTemplate, request); + } + + /** + * An Async wrapper for GetGeneratedTemplate that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetGeneratedTemplateAsync(const GetGeneratedTemplateRequestT& request, const GetGeneratedTemplateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::GetGeneratedTemplate, request, handler, context); + } + /** *

Returns the stack policy for a specified stack. If a stack doesn't have a * policy, a null value is returned.

See Also:

Lists your generated templates in this Region.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListGeneratedTemplatesOutcome ListGeneratedTemplates(const Model::ListGeneratedTemplatesRequest& request) const; + + /** + * A Callable wrapper for ListGeneratedTemplates that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListGeneratedTemplatesOutcomeCallable ListGeneratedTemplatesCallable(const ListGeneratedTemplatesRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::ListGeneratedTemplates, request); + } + + /** + * An Async wrapper for ListGeneratedTemplates that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListGeneratedTemplatesAsync(const ListGeneratedTemplatesRequestT& request, const ListGeneratedTemplatesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::ListGeneratedTemplates, request, handler, context); + } + /** *

Lists all stacks that are importing an exported output value. To modify or * remove an exported output value, first use this action to see which stacks are @@ -1490,6 +1651,88 @@ namespace CloudFormation return SubmitAsync(&CloudFormationClient::ListImports, request, handler, context); } + /** + *

Lists the related resources for a list of resources from a resource scan. The + * response indicates whether each returned resource is already managed by + * CloudFormation.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListResourceScanRelatedResourcesOutcome ListResourceScanRelatedResources(const Model::ListResourceScanRelatedResourcesRequest& request) const; + + /** + * A Callable wrapper for ListResourceScanRelatedResources that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListResourceScanRelatedResourcesOutcomeCallable ListResourceScanRelatedResourcesCallable(const ListResourceScanRelatedResourcesRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::ListResourceScanRelatedResources, request); + } + + /** + * An Async wrapper for ListResourceScanRelatedResources that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListResourceScanRelatedResourcesAsync(const ListResourceScanRelatedResourcesRequestT& request, const ListResourceScanRelatedResourcesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::ListResourceScanRelatedResources, request, handler, context); + } + + /** + *

Lists the resources from a resource scan. The results can be filtered by + * resource identifier, resource type prefix, tag key, and tag value. Only + * resources that match all specified filters are returned. The response indicates + * whether each returned resource is already managed by + * CloudFormation.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListResourceScanResourcesOutcome ListResourceScanResources(const Model::ListResourceScanResourcesRequest& request) const; + + /** + * A Callable wrapper for ListResourceScanResources that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListResourceScanResourcesOutcomeCallable ListResourceScanResourcesCallable(const ListResourceScanResourcesRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::ListResourceScanResources, request); + } + + /** + * An Async wrapper for ListResourceScanResources that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListResourceScanResourcesAsync(const ListResourceScanResourcesRequestT& request, const ListResourceScanResourcesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::ListResourceScanResources, request, handler, context); + } + + /** + *

List the resource scans from newest to oldest. By default it will return up + * to 10 resource scans.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListResourceScansOutcome ListResourceScans(const Model::ListResourceScansRequest& request) const; + + /** + * A Callable wrapper for ListResourceScans that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListResourceScansOutcomeCallable ListResourceScansCallable(const ListResourceScansRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::ListResourceScans, request); + } + + /** + * An Async wrapper for ListResourceScans that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListResourceScansAsync(const ListResourceScansRequestT& request, const ListResourceScansResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::ListResourceScans, request, handler, context); + } + /** *

Returns drift information for resources in a stack instance.

* ListStackInstanceResourceDrifts returns drift information for the @@ -2065,6 +2308,33 @@ namespace CloudFormation return SubmitAsync(&CloudFormationClient::SignalResource, request, handler, context); } + /** + *

Starts a scan of the resources in this account in this Region. You can the + * status of a scan using the ListResourceScans API + * action.

See Also:

AWS + * API Reference

+ */ + virtual Model::StartResourceScanOutcome StartResourceScan(const Model::StartResourceScanRequest& request) const; + + /** + * A Callable wrapper for StartResourceScan that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StartResourceScanOutcomeCallable StartResourceScanCallable(const StartResourceScanRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::StartResourceScan, request); + } + + /** + * An Async wrapper for StartResourceScan that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StartResourceScanAsync(const StartResourceScanRequestT& request, const StartResourceScanResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::StartResourceScan, request, handler, context); + } + /** *

Stops an in-progress operation on a stack set and its associated stack * instances. StackSets will cancel all the unstarted stack instance deployments @@ -2138,6 +2408,35 @@ namespace CloudFormation return SubmitAsync(&CloudFormationClient::TestType, request, handler, context); } + /** + *

Updates a generated template. This can be used to change the name, add and + * remove resources, refresh resources, and change the DeletionPolicy + * and UpdateReplacePolicy settings. You can check the status of the + * update to the generated template using the + * DescribeGeneratedTemplate API action.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateGeneratedTemplateOutcome UpdateGeneratedTemplate(const Model::UpdateGeneratedTemplateRequest& request) const; + + /** + * A Callable wrapper for UpdateGeneratedTemplate that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateGeneratedTemplateOutcomeCallable UpdateGeneratedTemplateCallable(const UpdateGeneratedTemplateRequestT& request) const + { + return SubmitCallable(&CloudFormationClient::UpdateGeneratedTemplate, request); + } + + /** + * An Async wrapper for UpdateGeneratedTemplate that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateGeneratedTemplateAsync(const UpdateGeneratedTemplateRequestT& request, const UpdateGeneratedTemplateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudFormationClient::UpdateGeneratedTemplate, request, handler, context); + } + /** *

Updates a stack as specified in the template. After the call completes * successfully, the stack update starts. You can check the status of the stack diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationErrors.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationErrors.h index 2f656142d98..ea83ad16345 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationErrors.h +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationErrors.h @@ -49,8 +49,10 @@ enum class CloudFormationErrors ALREADY_EXISTS= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, CHANGE_SET_NOT_FOUND, + CONCURRENT_RESOURCES_LIMIT_EXCEEDED, CREATED_BUT_MODIFIED, C_F_N_REGISTRY, + GENERATED_TEMPLATE_NOT_FOUND, INSUFFICIENT_CAPABILITIES, INVALID_CHANGE_SET_STATUS, INVALID_OPERATION, @@ -61,6 +63,9 @@ enum class CloudFormationErrors OPERATION_IN_PROGRESS, OPERATION_NOT_FOUND, OPERATION_STATUS_CHECK_FAILED, + RESOURCE_SCAN_IN_PROGRESS, + RESOURCE_SCAN_LIMIT_EXCEEDED, + RESOURCE_SCAN_NOT_FOUND, STACK_INSTANCE_NOT_FOUND, STACK_NOT_FOUND, STACK_SET_NOT_EMPTY, diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationServiceClientModel.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationServiceClientModel.h index 1c4d565c346..186492f3a18 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/CloudFormationServiceClientModel.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -35,8 +36,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -53,13 +56,18 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include +#include +#include +#include #include #include #include @@ -77,8 +85,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -131,12 +141,14 @@ namespace Aws class CancelUpdateStackRequest; class ContinueUpdateRollbackRequest; class CreateChangeSetRequest; + class CreateGeneratedTemplateRequest; class CreateStackRequest; class CreateStackInstancesRequest; class CreateStackSetRequest; class DeactivateOrganizationsAccessRequest; class DeactivateTypeRequest; class DeleteChangeSetRequest; + class DeleteGeneratedTemplateRequest; class DeleteStackRequest; class DeleteStackInstancesRequest; class DeleteStackSetRequest; @@ -144,8 +156,10 @@ namespace Aws class DescribeAccountLimitsRequest; class DescribeChangeSetRequest; class DescribeChangeSetHooksRequest; + class DescribeGeneratedTemplateRequest; class DescribeOrganizationsAccessRequest; class DescribePublisherRequest; + class DescribeResourceScanRequest; class DescribeStackDriftDetectionStatusRequest; class DescribeStackEventsRequest; class DescribeStackInstanceRequest; @@ -162,13 +176,18 @@ namespace Aws class DetectStackSetDriftRequest; class EstimateTemplateCostRequest; class ExecuteChangeSetRequest; + class GetGeneratedTemplateRequest; class GetStackPolicyRequest; class GetTemplateRequest; class GetTemplateSummaryRequest; class ImportStacksToStackSetRequest; class ListChangeSetsRequest; class ListExportsRequest; + class ListGeneratedTemplatesRequest; class ListImportsRequest; + class ListResourceScanRelatedResourcesRequest; + class ListResourceScanResourcesRequest; + class ListResourceScansRequest; class ListStackInstanceResourceDriftsRequest; class ListStackInstancesRequest; class ListStackResourcesRequest; @@ -188,8 +207,10 @@ namespace Aws class SetTypeConfigurationRequest; class SetTypeDefaultVersionRequest; class SignalResourceRequest; + class StartResourceScanRequest; class StopStackSetOperationRequest; class TestTypeRequest; + class UpdateGeneratedTemplateRequest; class UpdateStackRequest; class UpdateStackInstancesRequest; class UpdateStackSetRequest; @@ -204,12 +225,14 @@ namespace Aws typedef Aws::Utils::Outcome CancelUpdateStackOutcome; typedef Aws::Utils::Outcome ContinueUpdateRollbackOutcome; typedef Aws::Utils::Outcome CreateChangeSetOutcome; + typedef Aws::Utils::Outcome CreateGeneratedTemplateOutcome; typedef Aws::Utils::Outcome CreateStackOutcome; typedef Aws::Utils::Outcome CreateStackInstancesOutcome; typedef Aws::Utils::Outcome CreateStackSetOutcome; typedef Aws::Utils::Outcome DeactivateOrganizationsAccessOutcome; typedef Aws::Utils::Outcome DeactivateTypeOutcome; typedef Aws::Utils::Outcome DeleteChangeSetOutcome; + typedef Aws::Utils::Outcome DeleteGeneratedTemplateOutcome; typedef Aws::Utils::Outcome DeleteStackOutcome; typedef Aws::Utils::Outcome DeleteStackInstancesOutcome; typedef Aws::Utils::Outcome DeleteStackSetOutcome; @@ -217,8 +240,10 @@ namespace Aws typedef Aws::Utils::Outcome DescribeAccountLimitsOutcome; typedef Aws::Utils::Outcome DescribeChangeSetOutcome; typedef Aws::Utils::Outcome DescribeChangeSetHooksOutcome; + typedef Aws::Utils::Outcome DescribeGeneratedTemplateOutcome; typedef Aws::Utils::Outcome DescribeOrganizationsAccessOutcome; typedef Aws::Utils::Outcome DescribePublisherOutcome; + typedef Aws::Utils::Outcome DescribeResourceScanOutcome; typedef Aws::Utils::Outcome DescribeStackDriftDetectionStatusOutcome; typedef Aws::Utils::Outcome DescribeStackEventsOutcome; typedef Aws::Utils::Outcome DescribeStackInstanceOutcome; @@ -235,13 +260,18 @@ namespace Aws typedef Aws::Utils::Outcome DetectStackSetDriftOutcome; typedef Aws::Utils::Outcome EstimateTemplateCostOutcome; typedef Aws::Utils::Outcome ExecuteChangeSetOutcome; + typedef Aws::Utils::Outcome GetGeneratedTemplateOutcome; typedef Aws::Utils::Outcome GetStackPolicyOutcome; typedef Aws::Utils::Outcome GetTemplateOutcome; typedef Aws::Utils::Outcome GetTemplateSummaryOutcome; typedef Aws::Utils::Outcome ImportStacksToStackSetOutcome; typedef Aws::Utils::Outcome ListChangeSetsOutcome; typedef Aws::Utils::Outcome ListExportsOutcome; + typedef Aws::Utils::Outcome ListGeneratedTemplatesOutcome; typedef Aws::Utils::Outcome ListImportsOutcome; + typedef Aws::Utils::Outcome ListResourceScanRelatedResourcesOutcome; + typedef Aws::Utils::Outcome ListResourceScanResourcesOutcome; + typedef Aws::Utils::Outcome ListResourceScansOutcome; typedef Aws::Utils::Outcome ListStackInstanceResourceDriftsOutcome; typedef Aws::Utils::Outcome ListStackInstancesOutcome; typedef Aws::Utils::Outcome ListStackResourcesOutcome; @@ -261,8 +291,10 @@ namespace Aws typedef Aws::Utils::Outcome SetTypeConfigurationOutcome; typedef Aws::Utils::Outcome SetTypeDefaultVersionOutcome; typedef Aws::Utils::Outcome SignalResourceOutcome; + typedef Aws::Utils::Outcome StartResourceScanOutcome; typedef Aws::Utils::Outcome StopStackSetOperationOutcome; typedef Aws::Utils::Outcome TestTypeOutcome; + typedef Aws::Utils::Outcome UpdateGeneratedTemplateOutcome; typedef Aws::Utils::Outcome UpdateStackOutcome; typedef Aws::Utils::Outcome UpdateStackInstancesOutcome; typedef Aws::Utils::Outcome UpdateStackSetOutcome; @@ -277,12 +309,14 @@ namespace Aws typedef std::future CancelUpdateStackOutcomeCallable; typedef std::future ContinueUpdateRollbackOutcomeCallable; typedef std::future CreateChangeSetOutcomeCallable; + typedef std::future CreateGeneratedTemplateOutcomeCallable; typedef std::future CreateStackOutcomeCallable; typedef std::future CreateStackInstancesOutcomeCallable; typedef std::future CreateStackSetOutcomeCallable; typedef std::future DeactivateOrganizationsAccessOutcomeCallable; typedef std::future DeactivateTypeOutcomeCallable; typedef std::future DeleteChangeSetOutcomeCallable; + typedef std::future DeleteGeneratedTemplateOutcomeCallable; typedef std::future DeleteStackOutcomeCallable; typedef std::future DeleteStackInstancesOutcomeCallable; typedef std::future DeleteStackSetOutcomeCallable; @@ -290,8 +324,10 @@ namespace Aws typedef std::future DescribeAccountLimitsOutcomeCallable; typedef std::future DescribeChangeSetOutcomeCallable; typedef std::future DescribeChangeSetHooksOutcomeCallable; + typedef std::future DescribeGeneratedTemplateOutcomeCallable; typedef std::future DescribeOrganizationsAccessOutcomeCallable; typedef std::future DescribePublisherOutcomeCallable; + typedef std::future DescribeResourceScanOutcomeCallable; typedef std::future DescribeStackDriftDetectionStatusOutcomeCallable; typedef std::future DescribeStackEventsOutcomeCallable; typedef std::future DescribeStackInstanceOutcomeCallable; @@ -308,13 +344,18 @@ namespace Aws typedef std::future DetectStackSetDriftOutcomeCallable; typedef std::future EstimateTemplateCostOutcomeCallable; typedef std::future ExecuteChangeSetOutcomeCallable; + typedef std::future GetGeneratedTemplateOutcomeCallable; typedef std::future GetStackPolicyOutcomeCallable; typedef std::future GetTemplateOutcomeCallable; typedef std::future GetTemplateSummaryOutcomeCallable; typedef std::future ImportStacksToStackSetOutcomeCallable; typedef std::future ListChangeSetsOutcomeCallable; typedef std::future ListExportsOutcomeCallable; + typedef std::future ListGeneratedTemplatesOutcomeCallable; typedef std::future ListImportsOutcomeCallable; + typedef std::future ListResourceScanRelatedResourcesOutcomeCallable; + typedef std::future ListResourceScanResourcesOutcomeCallable; + typedef std::future ListResourceScansOutcomeCallable; typedef std::future ListStackInstanceResourceDriftsOutcomeCallable; typedef std::future ListStackInstancesOutcomeCallable; typedef std::future ListStackResourcesOutcomeCallable; @@ -334,8 +375,10 @@ namespace Aws typedef std::future SetTypeConfigurationOutcomeCallable; typedef std::future SetTypeDefaultVersionOutcomeCallable; typedef std::future SignalResourceOutcomeCallable; + typedef std::future StartResourceScanOutcomeCallable; typedef std::future StopStackSetOperationOutcomeCallable; typedef std::future TestTypeOutcomeCallable; + typedef std::future UpdateGeneratedTemplateOutcomeCallable; typedef std::future UpdateStackOutcomeCallable; typedef std::future UpdateStackInstancesOutcomeCallable; typedef std::future UpdateStackSetOutcomeCallable; @@ -353,12 +396,14 @@ namespace Aws typedef std::function&) > CancelUpdateStackResponseReceivedHandler; typedef std::function&) > ContinueUpdateRollbackResponseReceivedHandler; typedef std::function&) > CreateChangeSetResponseReceivedHandler; + typedef std::function&) > CreateGeneratedTemplateResponseReceivedHandler; typedef std::function&) > CreateStackResponseReceivedHandler; typedef std::function&) > CreateStackInstancesResponseReceivedHandler; typedef std::function&) > CreateStackSetResponseReceivedHandler; typedef std::function&) > DeactivateOrganizationsAccessResponseReceivedHandler; typedef std::function&) > DeactivateTypeResponseReceivedHandler; typedef std::function&) > DeleteChangeSetResponseReceivedHandler; + typedef std::function&) > DeleteGeneratedTemplateResponseReceivedHandler; typedef std::function&) > DeleteStackResponseReceivedHandler; typedef std::function&) > DeleteStackInstancesResponseReceivedHandler; typedef std::function&) > DeleteStackSetResponseReceivedHandler; @@ -366,8 +411,10 @@ namespace Aws typedef std::function&) > DescribeAccountLimitsResponseReceivedHandler; typedef std::function&) > DescribeChangeSetResponseReceivedHandler; typedef std::function&) > DescribeChangeSetHooksResponseReceivedHandler; + typedef std::function&) > DescribeGeneratedTemplateResponseReceivedHandler; typedef std::function&) > DescribeOrganizationsAccessResponseReceivedHandler; typedef std::function&) > DescribePublisherResponseReceivedHandler; + typedef std::function&) > DescribeResourceScanResponseReceivedHandler; typedef std::function&) > DescribeStackDriftDetectionStatusResponseReceivedHandler; typedef std::function&) > DescribeStackEventsResponseReceivedHandler; typedef std::function&) > DescribeStackInstanceResponseReceivedHandler; @@ -384,13 +431,18 @@ namespace Aws typedef std::function&) > DetectStackSetDriftResponseReceivedHandler; typedef std::function&) > EstimateTemplateCostResponseReceivedHandler; typedef std::function&) > ExecuteChangeSetResponseReceivedHandler; + typedef std::function&) > GetGeneratedTemplateResponseReceivedHandler; typedef std::function&) > GetStackPolicyResponseReceivedHandler; typedef std::function&) > GetTemplateResponseReceivedHandler; typedef std::function&) > GetTemplateSummaryResponseReceivedHandler; typedef std::function&) > ImportStacksToStackSetResponseReceivedHandler; typedef std::function&) > ListChangeSetsResponseReceivedHandler; typedef std::function&) > ListExportsResponseReceivedHandler; + typedef std::function&) > ListGeneratedTemplatesResponseReceivedHandler; typedef std::function&) > ListImportsResponseReceivedHandler; + typedef std::function&) > ListResourceScanRelatedResourcesResponseReceivedHandler; + typedef std::function&) > ListResourceScanResourcesResponseReceivedHandler; + typedef std::function&) > ListResourceScansResponseReceivedHandler; typedef std::function&) > ListStackInstanceResourceDriftsResponseReceivedHandler; typedef std::function&) > ListStackInstancesResponseReceivedHandler; typedef std::function&) > ListStackResourcesResponseReceivedHandler; @@ -410,8 +462,10 @@ namespace Aws typedef std::function&) > SetTypeConfigurationResponseReceivedHandler; typedef std::function&) > SetTypeDefaultVersionResponseReceivedHandler; typedef std::function&) > SignalResourceResponseReceivedHandler; + typedef std::function&) > StartResourceScanResponseReceivedHandler; typedef std::function&) > StopStackSetOperationResponseReceivedHandler; typedef std::function&) > TestTypeResponseReceivedHandler; + typedef std::function&) > UpdateGeneratedTemplateResponseReceivedHandler; typedef std::function&) > UpdateStackResponseReceivedHandler; typedef std::function&) > UpdateStackInstancesResponseReceivedHandler; typedef std::function&) > UpdateStackSetResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateGeneratedTemplateRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateGeneratedTemplateRequest.h new file mode 100644 index 00000000000..17786704a92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateGeneratedTemplateRequest.h @@ -0,0 +1,250 @@ +/** + * 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 CloudFormation +{ +namespace Model +{ + + /** + */ + class CreateGeneratedTemplateRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API CreateGeneratedTemplateRequest(); + + // 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 "CreateGeneratedTemplate"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

An optional list of resources to be included in the generated template.

+ *

If no resources are specified,the template will be created without any + * resources. Resources can be added to the template using the + * UpdateGeneratedTemplate API action.

+ */ + inline const Aws::Vector& GetResources() const{ return m_resources; } + + /** + *

An optional list of resources to be included in the generated template.

+ *

If no resources are specified,the template will be created without any + * resources. Resources can be added to the template using the + * UpdateGeneratedTemplate API action.

+ */ + inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } + + /** + *

An optional list of resources to be included in the generated template.

+ *

If no resources are specified,the template will be created without any + * resources. Resources can be added to the template using the + * UpdateGeneratedTemplate API action.

+ */ + inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } + + /** + *

An optional list of resources to be included in the generated template.

+ *

If no resources are specified,the template will be created without any + * resources. Resources can be added to the template using the + * UpdateGeneratedTemplate API action.

+ */ + inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } + + /** + *

An optional list of resources to be included in the generated template.

+ *

If no resources are specified,the template will be created without any + * resources. Resources can be added to the template using the + * UpdateGeneratedTemplate API action.

+ */ + inline CreateGeneratedTemplateRequest& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} + + /** + *

An optional list of resources to be included in the generated template.

+ *

If no resources are specified,the template will be created without any + * resources. Resources can be added to the template using the + * UpdateGeneratedTemplate API action.

+ */ + inline CreateGeneratedTemplateRequest& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} + + /** + *

An optional list of resources to be included in the generated template.

+ *

If no resources are specified,the template will be created without any + * resources. Resources can be added to the template using the + * UpdateGeneratedTemplate API action.

+ */ + inline CreateGeneratedTemplateRequest& AddResources(const ResourceDefinition& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } + + /** + *

An optional list of resources to be included in the generated template.

+ *

If no resources are specified,the template will be created without any + * resources. Resources can be added to the template using the + * UpdateGeneratedTemplate API action.

+ */ + inline CreateGeneratedTemplateRequest& AddResources(ResourceDefinition&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } + + + /** + *

The name assigned to the generated template.

+ */ + inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; } + + /** + *

The name assigned to the generated template.

+ */ + inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; } + + /** + *

The name assigned to the generated template.

+ */ + inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; } + + /** + *

The name assigned to the generated template.

+ */ + inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); } + + /** + *

The name assigned to the generated template.

+ */ + inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); } + + /** + *

The name assigned to the generated template.

+ */ + inline CreateGeneratedTemplateRequest& WithGeneratedTemplateName(const Aws::String& value) { SetGeneratedTemplateName(value); return *this;} + + /** + *

The name assigned to the generated template.

+ */ + inline CreateGeneratedTemplateRequest& WithGeneratedTemplateName(Aws::String&& value) { SetGeneratedTemplateName(std::move(value)); return *this;} + + /** + *

The name assigned to the generated template.

+ */ + inline CreateGeneratedTemplateRequest& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;} + + + /** + *

An optional name or ARN of a stack to use as the base stack for the generated + * template.

+ */ + inline const Aws::String& GetStackName() const{ return m_stackName; } + + /** + *

An optional name or ARN of a stack to use as the base stack for the generated + * template.

+ */ + inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; } + + /** + *

An optional name or ARN of a stack to use as the base stack for the generated + * template.

+ */ + inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; } + + /** + *

An optional name or ARN of a stack to use as the base stack for the generated + * template.

+ */ + inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); } + + /** + *

An optional name or ARN of a stack to use as the base stack for the generated + * template.

+ */ + inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); } + + /** + *

An optional name or ARN of a stack to use as the base stack for the generated + * template.

+ */ + inline CreateGeneratedTemplateRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;} + + /** + *

An optional name or ARN of a stack to use as the base stack for the generated + * template.

+ */ + inline CreateGeneratedTemplateRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;} + + /** + *

An optional name or ARN of a stack to use as the base stack for the generated + * template.

+ */ + inline CreateGeneratedTemplateRequest& WithStackName(const char* value) { SetStackName(value); return *this;} + + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline CreateGeneratedTemplateRequest& WithTemplateConfiguration(const TemplateConfiguration& value) { SetTemplateConfiguration(value); return *this;} + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline CreateGeneratedTemplateRequest& WithTemplateConfiguration(TemplateConfiguration&& value) { SetTemplateConfiguration(std::move(value)); return *this;} + + private: + + Aws::Vector m_resources; + bool m_resourcesHasBeenSet = false; + + Aws::String m_generatedTemplateName; + bool m_generatedTemplateNameHasBeenSet = false; + + Aws::String m_stackName; + bool m_stackNameHasBeenSet = false; + + TemplateConfiguration m_templateConfiguration; + bool m_templateConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateGeneratedTemplateResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateGeneratedTemplateResult.h new file mode 100644 index 00000000000..0dfe1e69833 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateGeneratedTemplateResult.h @@ -0,0 +1,96 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class CreateGeneratedTemplateResult + { + public: + AWS_CLOUDFORMATION_API CreateGeneratedTemplateResult(); + AWS_CLOUDFORMATION_API CreateGeneratedTemplateResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API CreateGeneratedTemplateResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the generated template.

+ */ + inline const Aws::String& GetGeneratedTemplateId() const{ return m_generatedTemplateId; } + + /** + *

The ID of the generated template.

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

The ID of the generated template.

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

The ID of the generated template.

+ */ + inline void SetGeneratedTemplateId(const char* value) { m_generatedTemplateId.assign(value); } + + /** + *

The ID of the generated template.

+ */ + inline CreateGeneratedTemplateResult& WithGeneratedTemplateId(const Aws::String& value) { SetGeneratedTemplateId(value); return *this;} + + /** + *

The ID of the generated template.

+ */ + inline CreateGeneratedTemplateResult& WithGeneratedTemplateId(Aws::String&& value) { SetGeneratedTemplateId(std::move(value)); return *this;} + + /** + *

The ID of the generated template.

+ */ + inline CreateGeneratedTemplateResult& WithGeneratedTemplateId(const char* value) { SetGeneratedTemplateId(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline CreateGeneratedTemplateResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline CreateGeneratedTemplateResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::String m_generatedTemplateId; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateStackRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateStackRequest.h index 7d422f8c46e..cf357049cab 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateStackRequest.h +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateStackRequest.h @@ -421,29 +421,29 @@ namespace Model /** *

The amount of time that can pass before the stack status becomes - * CREATE_FAILED; if DisableRollback is not set or is set to - * false, the stack will be rolled back.

+ * CREATE_FAILED; if DisableRollback is not set or is set + * to false, the stack will be rolled back.

*/ inline int GetTimeoutInMinutes() const{ return m_timeoutInMinutes; } /** *

The amount of time that can pass before the stack status becomes - * CREATE_FAILED; if DisableRollback is not set or is set to - * false, the stack will be rolled back.

+ * CREATE_FAILED; if DisableRollback is not set or is set + * to false, the stack will be rolled back.

*/ inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; } /** *

The amount of time that can pass before the stack status becomes - * CREATE_FAILED; if DisableRollback is not set or is set to - * false, the stack will be rolled back.

+ * CREATE_FAILED; if DisableRollback is not set or is set + * to false, the stack will be rolled back.

*/ inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; } /** *

The amount of time that can pass before the stack status becomes - * CREATE_FAILED; if DisableRollback is not set or is set to - * false, the stack will be rolled back.

+ * CREATE_FAILED; if DisableRollback is not set or is set + * to false, the stack will be rolled back.

*/ inline CreateStackRequest& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DeleteGeneratedTemplateRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DeleteGeneratedTemplateRequest.h new file mode 100644 index 00000000000..234a6790786 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DeleteGeneratedTemplateRequest.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + + /** + */ + class DeleteGeneratedTemplateRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API DeleteGeneratedTemplateRequest(); + + // 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 "DeleteGeneratedTemplate"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline DeleteGeneratedTemplateRequest& WithGeneratedTemplateName(const Aws::String& value) { SetGeneratedTemplateName(value); return *this;} + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline DeleteGeneratedTemplateRequest& WithGeneratedTemplateName(Aws::String&& value) { SetGeneratedTemplateName(std::move(value)); return *this;} + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline DeleteGeneratedTemplateRequest& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;} + + private: + + Aws::String m_generatedTemplateName; + bool m_generatedTemplateNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeGeneratedTemplateRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeGeneratedTemplateRequest.h new file mode 100644 index 00000000000..a5714a016da --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeGeneratedTemplateRequest.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + + /** + */ + class DescribeGeneratedTemplateRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API DescribeGeneratedTemplateRequest(); + + // 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 "DescribeGeneratedTemplate"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline DescribeGeneratedTemplateRequest& WithGeneratedTemplateName(const Aws::String& value) { SetGeneratedTemplateName(value); return *this;} + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline DescribeGeneratedTemplateRequest& WithGeneratedTemplateName(Aws::String&& value) { SetGeneratedTemplateName(std::move(value)); return *this;} + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline DescribeGeneratedTemplateRequest& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;} + + private: + + Aws::String m_generatedTemplateName; + bool m_generatedTemplateNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeGeneratedTemplateResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeGeneratedTemplateResult.h new file mode 100644 index 00000000000..3730f8acf7f --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeGeneratedTemplateResult.h @@ -0,0 +1,519 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class DescribeGeneratedTemplateResult + { + public: + AWS_CLOUDFORMATION_API DescribeGeneratedTemplateResult(); + AWS_CLOUDFORMATION_API DescribeGeneratedTemplateResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API DescribeGeneratedTemplateResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline const Aws::String& GetGeneratedTemplateId() const{ return m_generatedTemplateId; } + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

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

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

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

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline void SetGeneratedTemplateId(const char* value) { m_generatedTemplateId.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline DescribeGeneratedTemplateResult& WithGeneratedTemplateId(const Aws::String& value) { SetGeneratedTemplateId(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline DescribeGeneratedTemplateResult& WithGeneratedTemplateId(Aws::String&& value) { SetGeneratedTemplateId(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline DescribeGeneratedTemplateResult& WithGeneratedTemplateId(const char* value) { SetGeneratedTemplateId(value); return *this;} + + + /** + *

The name of the generated template.

+ */ + inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; } + + /** + *

The name of the generated template.

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

The name of the generated template.

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

The name of the generated template.

+ */ + inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateName.assign(value); } + + /** + *

The name of the generated template.

+ */ + inline DescribeGeneratedTemplateResult& WithGeneratedTemplateName(const Aws::String& value) { SetGeneratedTemplateName(value); return *this;} + + /** + *

The name of the generated template.

+ */ + inline DescribeGeneratedTemplateResult& WithGeneratedTemplateName(Aws::String&& value) { SetGeneratedTemplateName(std::move(value)); return *this;} + + /** + *

The name of the generated template.

+ */ + inline DescribeGeneratedTemplateResult& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;} + + + /** + *

A list of objects describing the details of the resources in the template + * generation.

+ */ + inline const Aws::Vector& GetResources() const{ return m_resources; } + + /** + *

A list of objects describing the details of the resources in the template + * generation.

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

A list of objects describing the details of the resources in the template + * generation.

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

A list of objects describing the details of the resources in the template + * generation.

+ */ + inline DescribeGeneratedTemplateResult& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} + + /** + *

A list of objects describing the details of the resources in the template + * generation.

+ */ + inline DescribeGeneratedTemplateResult& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} + + /** + *

A list of objects describing the details of the resources in the template + * generation.

+ */ + inline DescribeGeneratedTemplateResult& AddResources(const ResourceDetail& value) { m_resources.push_back(value); return *this; } + + /** + *

A list of objects describing the details of the resources in the template + * generation.

+ */ + inline DescribeGeneratedTemplateResult& AddResources(ResourceDetail&& value) { m_resources.push_back(std::move(value)); return *this; } + + + /** + *

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

+ */ + inline DescribeGeneratedTemplateResult& WithStatus(GeneratedTemplateStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline const Aws::String& GetStatusReason() const{ return m_statusReason; } + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

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

The reason for the current template generation status. This will provide more + * details if a failure happened.

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

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline void SetStatusReason(const char* value) { m_statusReason.assign(value); } + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline DescribeGeneratedTemplateResult& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline DescribeGeneratedTemplateResult& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline DescribeGeneratedTemplateResult& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} + + + /** + *

The time the generated template was created.

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

The time the generated template was created.

+ */ + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } + + /** + *

The time the generated template was created.

+ */ + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } + + /** + *

The time the generated template was created.

+ */ + inline DescribeGeneratedTemplateResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + + /** + *

The time the generated template was created.

+ */ + inline DescribeGeneratedTemplateResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + + + /** + *

The time the generated template was last updated.

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

The time the generated template was last updated.

+ */ + inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTime = value; } + + /** + *

The time the generated template was last updated.

+ */ + inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTime = std::move(value); } + + /** + *

The time the generated template was last updated.

+ */ + inline DescribeGeneratedTemplateResult& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} + + /** + *

The time the generated template was last updated.

+ */ + inline DescribeGeneratedTemplateResult& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} + + + /** + *

An object describing the progress of the template generation.

+ */ + inline const TemplateProgress& GetProgress() const{ return m_progress; } + + /** + *

An object describing the progress of the template generation.

+ */ + inline void SetProgress(const TemplateProgress& value) { m_progress = value; } + + /** + *

An object describing the progress of the template generation.

+ */ + inline void SetProgress(TemplateProgress&& value) { m_progress = std::move(value); } + + /** + *

An object describing the progress of the template generation.

+ */ + inline DescribeGeneratedTemplateResult& WithProgress(const TemplateProgress& value) { SetProgress(value); return *this;} + + /** + *

An object describing the progress of the template generation.

+ */ + inline DescribeGeneratedTemplateResult& WithProgress(TemplateProgress&& value) { SetProgress(std::move(value)); return *this;} + + + /** + *

The stack ARN of the base stack if a base stack was provided when generating + * the template.

+ */ + inline const Aws::String& GetStackId() const{ return m_stackId; } + + /** + *

The stack ARN of the base stack if a base stack was provided when generating + * the template.

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

The stack ARN of the base stack if a base stack was provided when generating + * the template.

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

The stack ARN of the base stack if a base stack was provided when generating + * the template.

+ */ + inline void SetStackId(const char* value) { m_stackId.assign(value); } + + /** + *

The stack ARN of the base stack if a base stack was provided when generating + * the template.

+ */ + inline DescribeGeneratedTemplateResult& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} + + /** + *

The stack ARN of the base stack if a base stack was provided when generating + * the template.

+ */ + inline DescribeGeneratedTemplateResult& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} + + /** + *

The stack ARN of the base stack if a base stack was provided when generating + * the template.

+ */ + inline DescribeGeneratedTemplateResult& WithStackId(const char* value) { SetStackId(value); return *this;} + + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfiguration = value; } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfiguration = std::move(value); } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline DescribeGeneratedTemplateResult& WithTemplateConfiguration(const TemplateConfiguration& value) { SetTemplateConfiguration(value); return *this;} + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline DescribeGeneratedTemplateResult& WithTemplateConfiguration(TemplateConfiguration&& value) { SetTemplateConfiguration(std::move(value)); return *this;} + + + /** + *

The number of warnings generated for this template. The warnings are found in + * the details of each of the resources in the template.

+ */ + inline int GetTotalWarnings() const{ return m_totalWarnings; } + + /** + *

The number of warnings generated for this template. The warnings are found in + * the details of each of the resources in the template.

+ */ + inline void SetTotalWarnings(int value) { m_totalWarnings = value; } + + /** + *

The number of warnings generated for this template. The warnings are found in + * the details of each of the resources in the template.

+ */ + inline DescribeGeneratedTemplateResult& WithTotalWarnings(int value) { SetTotalWarnings(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline DescribeGeneratedTemplateResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline DescribeGeneratedTemplateResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::String m_generatedTemplateId; + + Aws::String m_generatedTemplateName; + + Aws::Vector m_resources; + + GeneratedTemplateStatus m_status; + + Aws::String m_statusReason; + + Aws::Utils::DateTime m_creationTime; + + Aws::Utils::DateTime m_lastUpdatedTime; + + TemplateProgress m_progress; + + Aws::String m_stackId; + + TemplateConfiguration m_templateConfiguration; + + int m_totalWarnings; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeResourceScanRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeResourceScanRequest.h new file mode 100644 index 00000000000..4d1cc536965 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeResourceScanRequest.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + + /** + */ + class DescribeResourceScanRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API DescribeResourceScanRequest(); + + // 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 "DescribeResourceScan"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline const Aws::String& GetResourceScanId() const{ return m_resourceScanId; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline bool ResourceScanIdHasBeenSet() const { return m_resourceScanIdHasBeenSet; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(const Aws::String& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = value; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(Aws::String&& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = std::move(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(const char* value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline DescribeResourceScanRequest& WithResourceScanId(const Aws::String& value) { SetResourceScanId(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline DescribeResourceScanRequest& WithResourceScanId(Aws::String&& value) { SetResourceScanId(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline DescribeResourceScanRequest& WithResourceScanId(const char* value) { SetResourceScanId(value); return *this;} + + private: + + Aws::String m_resourceScanId; + bool m_resourceScanIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeResourceScanResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeResourceScanResult.h new file mode 100644 index 00000000000..7ca0cedb5af --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/DescribeResourceScanResult.h @@ -0,0 +1,404 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class DescribeResourceScanResult + { + public: + AWS_CLOUDFORMATION_API DescribeResourceScanResult(); + AWS_CLOUDFORMATION_API DescribeResourceScanResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API DescribeResourceScanResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline const Aws::String& GetResourceScanId() const{ return m_resourceScanId; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

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

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

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

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline void SetResourceScanId(const char* value) { m_resourceScanId.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline DescribeResourceScanResult& WithResourceScanId(const Aws::String& value) { SetResourceScanId(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline DescribeResourceScanResult& WithResourceScanId(Aws::String&& value) { SetResourceScanId(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline DescribeResourceScanResult& WithResourceScanId(const char* value) { SetResourceScanId(value); return *this;} + + + /** + *

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

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

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

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

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

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

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

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

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

+ *
+ */ + inline DescribeResourceScanResult& WithStatus(ResourceScanStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline const Aws::String& GetStatusReason() const{ return m_statusReason; } + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

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

The reason for the resource scan status, providing more information if a + * failure happened.

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

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline void SetStatusReason(const char* value) { m_statusReason.assign(value); } + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline DescribeResourceScanResult& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline DescribeResourceScanResult& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline DescribeResourceScanResult& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} + + + /** + *

The time that the resource scan was started.

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

The time that the resource scan was started.

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

The time that the resource scan was started.

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

The time that the resource scan was started.

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

The time that the resource scan was started.

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

The time that the resource scan was finished.

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

The time that the resource scan was finished.

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

The time that the resource scan was finished.

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

The time that the resource scan was finished.

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

The time that the resource scan was finished.

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

The percentage of the resource scan that has been completed.

+ */ + inline double GetPercentageCompleted() const{ return m_percentageCompleted; } + + /** + *

The percentage of the resource scan that has been completed.

+ */ + inline void SetPercentageCompleted(double value) { m_percentageCompleted = value; } + + /** + *

The percentage of the resource scan that has been completed.

+ */ + inline DescribeResourceScanResult& WithPercentageCompleted(double value) { SetPercentageCompleted(value); return *this;} + + + /** + *

The list of resource types for the specified scan. Resource types are only + * available for scans with a Status set to COMPLETE or + * FAILED .

+ */ + inline const Aws::Vector& GetResourceTypes() const{ return m_resourceTypes; } + + /** + *

The list of resource types for the specified scan. Resource types are only + * available for scans with a Status set to COMPLETE or + * FAILED .

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

The list of resource types for the specified scan. Resource types are only + * available for scans with a Status set to COMPLETE or + * FAILED .

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

The list of resource types for the specified scan. Resource types are only + * available for scans with a Status set to COMPLETE or + * FAILED .

+ */ + inline DescribeResourceScanResult& WithResourceTypes(const Aws::Vector& value) { SetResourceTypes(value); return *this;} + + /** + *

The list of resource types for the specified scan. Resource types are only + * available for scans with a Status set to COMPLETE or + * FAILED .

+ */ + inline DescribeResourceScanResult& WithResourceTypes(Aws::Vector&& value) { SetResourceTypes(std::move(value)); return *this;} + + /** + *

The list of resource types for the specified scan. Resource types are only + * available for scans with a Status set to COMPLETE or + * FAILED .

+ */ + inline DescribeResourceScanResult& AddResourceTypes(const Aws::String& value) { m_resourceTypes.push_back(value); return *this; } + + /** + *

The list of resource types for the specified scan. Resource types are only + * available for scans with a Status set to COMPLETE or + * FAILED .

+ */ + inline DescribeResourceScanResult& AddResourceTypes(Aws::String&& value) { m_resourceTypes.push_back(std::move(value)); return *this; } + + /** + *

The list of resource types for the specified scan. Resource types are only + * available for scans with a Status set to COMPLETE or + * FAILED .

+ */ + inline DescribeResourceScanResult& AddResourceTypes(const char* value) { m_resourceTypes.push_back(value); return *this; } + + + /** + *

The number of resources that were listed. This is only available for scans + * with a Status set to COMPLETE, EXPIRED, + * or FAILED .

+ */ + inline int GetResourcesScanned() const{ return m_resourcesScanned; } + + /** + *

The number of resources that were listed. This is only available for scans + * with a Status set to COMPLETE, EXPIRED, + * or FAILED .

+ */ + inline void SetResourcesScanned(int value) { m_resourcesScanned = value; } + + /** + *

The number of resources that were listed. This is only available for scans + * with a Status set to COMPLETE, EXPIRED, + * or FAILED .

+ */ + inline DescribeResourceScanResult& WithResourcesScanned(int value) { SetResourcesScanned(value); return *this;} + + + /** + *

The number of resources that were read. This is only available for scans with + * a Status set to COMPLETE, EXPIRED, or + * FAILED .

This field may be 0 if the resource scan + * failed with a ResourceScanLimitExceededException.

+ */ + inline int GetResourcesRead() const{ return m_resourcesRead; } + + /** + *

The number of resources that were read. This is only available for scans with + * a Status set to COMPLETE, EXPIRED, or + * FAILED .

This field may be 0 if the resource scan + * failed with a ResourceScanLimitExceededException.

+ */ + inline void SetResourcesRead(int value) { m_resourcesRead = value; } + + /** + *

The number of resources that were read. This is only available for scans with + * a Status set to COMPLETE, EXPIRED, or + * FAILED .

This field may be 0 if the resource scan + * failed with a ResourceScanLimitExceededException.

+ */ + inline DescribeResourceScanResult& WithResourcesRead(int value) { SetResourcesRead(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline DescribeResourceScanResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline DescribeResourceScanResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::String m_resourceScanId; + + ResourceScanStatus m_status; + + Aws::String m_statusReason; + + Aws::Utils::DateTime m_startTime; + + Aws::Utils::DateTime m_endTime; + + double m_percentageCompleted; + + Aws::Vector m_resourceTypes; + + int m_resourcesScanned; + + int m_resourcesRead; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateDeletionPolicy.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateDeletionPolicy.h new file mode 100644 index 00000000000..d05092ff50e --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateDeletionPolicy.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 CloudFormation +{ +namespace Model +{ + enum class GeneratedTemplateDeletionPolicy + { + NOT_SET, + DELETE_, + RETAIN + }; + +namespace GeneratedTemplateDeletionPolicyMapper +{ +AWS_CLOUDFORMATION_API GeneratedTemplateDeletionPolicy GetGeneratedTemplateDeletionPolicyForName(const Aws::String& name); + +AWS_CLOUDFORMATION_API Aws::String GetNameForGeneratedTemplateDeletionPolicy(GeneratedTemplateDeletionPolicy value); +} // namespace GeneratedTemplateDeletionPolicyMapper +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateResourceStatus.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateResourceStatus.h new file mode 100644 index 00000000000..48ecd83f3ea --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateResourceStatus.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 CloudFormation +{ +namespace Model +{ + enum class GeneratedTemplateResourceStatus + { + NOT_SET, + PENDING, + IN_PROGRESS, + FAILED, + COMPLETE + }; + +namespace GeneratedTemplateResourceStatusMapper +{ +AWS_CLOUDFORMATION_API GeneratedTemplateResourceStatus GetGeneratedTemplateResourceStatusForName(const Aws::String& name); + +AWS_CLOUDFORMATION_API Aws::String GetNameForGeneratedTemplateResourceStatus(GeneratedTemplateResourceStatus value); +} // namespace GeneratedTemplateResourceStatusMapper +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateStatus.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateStatus.h new file mode 100644 index 00000000000..fb452feaeda --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateStatus.h @@ -0,0 +1,37 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + enum class GeneratedTemplateStatus + { + NOT_SET, + CREATE_PENDING, + UPDATE_PENDING, + DELETE_PENDING, + CREATE_IN_PROGRESS, + UPDATE_IN_PROGRESS, + DELETE_IN_PROGRESS, + FAILED, + COMPLETE + }; + +namespace GeneratedTemplateStatusMapper +{ +AWS_CLOUDFORMATION_API GeneratedTemplateStatus GetGeneratedTemplateStatusForName(const Aws::String& name); + +AWS_CLOUDFORMATION_API Aws::String GetNameForGeneratedTemplateStatus(GeneratedTemplateStatus value); +} // namespace GeneratedTemplateStatusMapper +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateUpdateReplacePolicy.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateUpdateReplacePolicy.h new file mode 100644 index 00000000000..6d3ccd3d4e9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GeneratedTemplateUpdateReplacePolicy.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 CloudFormation +{ +namespace Model +{ + enum class GeneratedTemplateUpdateReplacePolicy + { + NOT_SET, + DELETE_, + RETAIN + }; + +namespace GeneratedTemplateUpdateReplacePolicyMapper +{ +AWS_CLOUDFORMATION_API GeneratedTemplateUpdateReplacePolicy GetGeneratedTemplateUpdateReplacePolicyForName(const Aws::String& name); + +AWS_CLOUDFORMATION_API Aws::String GetNameForGeneratedTemplateUpdateReplacePolicy(GeneratedTemplateUpdateReplacePolicy value); +} // namespace GeneratedTemplateUpdateReplacePolicyMapper +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GetGeneratedTemplateRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GetGeneratedTemplateRequest.h new file mode 100644 index 00000000000..550787d620c --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GetGeneratedTemplateRequest.h @@ -0,0 +1,174 @@ +/** + * 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 CloudFormation +{ +namespace Model +{ + + /** + */ + class GetGeneratedTemplateRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API GetGeneratedTemplateRequest(); + + // 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 "GetGeneratedTemplate"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

The language to use to retrieve for the generated template. Supported values + * are:

  • JSON

  • YAML + *

+ */ + inline const TemplateFormat& GetFormat() const{ return m_format; } + + /** + *

The language to use to retrieve for the generated template. Supported values + * are:

  • JSON

  • YAML + *

+ */ + inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } + + /** + *

The language to use to retrieve for the generated template. Supported values + * are:

  • JSON

  • YAML + *

+ */ + inline void SetFormat(const TemplateFormat& value) { m_formatHasBeenSet = true; m_format = value; } + + /** + *

The language to use to retrieve for the generated template. Supported values + * are:

  • JSON

  • YAML + *

+ */ + inline void SetFormat(TemplateFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } + + /** + *

The language to use to retrieve for the generated template. Supported values + * are:

  • JSON

  • YAML + *

+ */ + inline GetGeneratedTemplateRequest& WithFormat(const TemplateFormat& value) { SetFormat(value); return *this;} + + /** + *

The language to use to retrieve for the generated template. Supported values + * are:

  • JSON

  • YAML + *

+ */ + inline GetGeneratedTemplateRequest& WithFormat(TemplateFormat&& value) { SetFormat(std::move(value)); return *this;} + + + /** + *

The name or Amazon Resource Name (ARN) of the generated template. The format + * is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; } + + /** + *

The name or Amazon Resource Name (ARN) of the generated template. The format + * is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; } + + /** + *

The name or Amazon Resource Name (ARN) of the generated template. The format + * is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; } + + /** + *

The name or Amazon Resource Name (ARN) of the generated template. The format + * is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); } + + /** + *

The name or Amazon Resource Name (ARN) of the generated template. The format + * is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); } + + /** + *

The name or Amazon Resource Name (ARN) of the generated template. The format + * is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline GetGeneratedTemplateRequest& WithGeneratedTemplateName(const Aws::String& value) { SetGeneratedTemplateName(value); return *this;} + + /** + *

The name or Amazon Resource Name (ARN) of the generated template. The format + * is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline GetGeneratedTemplateRequest& WithGeneratedTemplateName(Aws::String&& value) { SetGeneratedTemplateName(std::move(value)); return *this;} + + /** + *

The name or Amazon Resource Name (ARN) of the generated template. The format + * is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline GetGeneratedTemplateRequest& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;} + + private: + + TemplateFormat m_format; + bool m_formatHasBeenSet = false; + + Aws::String m_generatedTemplateName; + bool m_generatedTemplateNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GetGeneratedTemplateResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GetGeneratedTemplateResult.h new file mode 100644 index 00000000000..e38732d06b9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/GetGeneratedTemplateResult.h @@ -0,0 +1,182 @@ +/** + * 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 Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class GetGeneratedTemplateResult + { + public: + AWS_CLOUDFORMATION_API GetGeneratedTemplateResult(); + AWS_CLOUDFORMATION_API GetGeneratedTemplateResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API GetGeneratedTemplateResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

+ */ + inline GetGeneratedTemplateResult& WithStatus(GeneratedTemplateStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The template body of the generated template, in the language specified by the + * Language parameter.

+ */ + inline const Aws::String& GetTemplateBody() const{ return m_templateBody; } + + /** + *

The template body of the generated template, in the language specified by the + * Language parameter.

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

The template body of the generated template, in the language specified by the + * Language parameter.

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

The template body of the generated template, in the language specified by the + * Language parameter.

+ */ + inline void SetTemplateBody(const char* value) { m_templateBody.assign(value); } + + /** + *

The template body of the generated template, in the language specified by the + * Language parameter.

+ */ + inline GetGeneratedTemplateResult& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;} + + /** + *

The template body of the generated template, in the language specified by the + * Language parameter.

+ */ + inline GetGeneratedTemplateResult& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;} + + /** + *

The template body of the generated template, in the language specified by the + * Language parameter.

+ */ + inline GetGeneratedTemplateResult& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline GetGeneratedTemplateResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline GetGeneratedTemplateResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + GeneratedTemplateStatus m_status; + + Aws::String m_templateBody; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListGeneratedTemplatesRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListGeneratedTemplatesRequest.h new file mode 100644 index 00000000000..4f16cc27920 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListGeneratedTemplatesRequest.h @@ -0,0 +1,127 @@ +/** + * 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 CloudFormation +{ +namespace Model +{ + + /** + */ + class ListGeneratedTemplatesRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API ListGeneratedTemplatesRequest(); + + // 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 "ListGeneratedTemplates"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListGeneratedTemplates API action will return at most 50 results in + * each response. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListGeneratedTemplates API action will return at most 50 results in + * each response. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListGeneratedTemplates API action will return at most 50 results in + * each response. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListGeneratedTemplates API action will return at most 50 results in + * each response. The maximum value is 100.

+ */ + inline ListGeneratedTemplatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListGeneratedTemplatesResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListGeneratedTemplatesResult.h new file mode 100644 index 00000000000..776fd71a89c --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListGeneratedTemplatesResult.h @@ -0,0 +1,164 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class ListGeneratedTemplatesResult + { + public: + AWS_CLOUDFORMATION_API ListGeneratedTemplatesResult(); + AWS_CLOUDFORMATION_API ListGeneratedTemplatesResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API ListGeneratedTemplatesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list of summaries of the generated templates.

+ */ + inline const Aws::Vector& GetSummaries() const{ return m_summaries; } + + /** + *

A list of summaries of the generated templates.

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

A list of summaries of the generated templates.

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

A list of summaries of the generated templates.

+ */ + inline ListGeneratedTemplatesResult& WithSummaries(const Aws::Vector& value) { SetSummaries(value); return *this;} + + /** + *

A list of summaries of the generated templates.

+ */ + inline ListGeneratedTemplatesResult& WithSummaries(Aws::Vector&& value) { SetSummaries(std::move(value)); return *this;} + + /** + *

A list of summaries of the generated templates.

+ */ + inline ListGeneratedTemplatesResult& AddSummaries(const TemplateSummary& value) { m_summaries.push_back(value); return *this; } + + /** + *

A list of summaries of the generated templates.

+ */ + inline ListGeneratedTemplatesResult& AddSummaries(TemplateSummary&& value) { m_summaries.push_back(std::move(value)); return *this; } + + + /** + *

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListGeneratedTemplates again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListGeneratedTemplates again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListGeneratedTemplates again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListGeneratedTemplates again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListGeneratedTemplates again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListGeneratedTemplates again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListGeneratedTemplates again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

+ */ + inline ListGeneratedTemplatesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline ListGeneratedTemplatesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline ListGeneratedTemplatesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::Vector m_summaries; + + Aws::String m_nextToken; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanRelatedResourcesRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanRelatedResourcesRequest.h new file mode 100644 index 00000000000..51353a192a4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanRelatedResourcesRequest.h @@ -0,0 +1,225 @@ +/** + * 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 CloudFormation +{ +namespace Model +{ + + /** + */ + class ListResourceScanRelatedResourcesRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API ListResourceScanRelatedResourcesRequest(); + + // 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 "ListResourceScanRelatedResources"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline const Aws::String& GetResourceScanId() const{ return m_resourceScanId; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline bool ResourceScanIdHasBeenSet() const { return m_resourceScanIdHasBeenSet; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(const Aws::String& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = value; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(Aws::String&& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = std::move(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(const char* value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline ListResourceScanRelatedResourcesRequest& WithResourceScanId(const Aws::String& value) { SetResourceScanId(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline ListResourceScanRelatedResourcesRequest& WithResourceScanId(Aws::String&& value) { SetResourceScanId(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline ListResourceScanRelatedResourcesRequest& WithResourceScanId(const char* value) { SetResourceScanId(value); return *this;} + + + /** + *

The list of resources for which you want to get the related resources. Up to + * 100 resources can be provided.

+ */ + inline const Aws::Vector& GetResources() const{ return m_resources; } + + /** + *

The list of resources for which you want to get the related resources. Up to + * 100 resources can be provided.

+ */ + inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } + + /** + *

The list of resources for which you want to get the related resources. Up to + * 100 resources can be provided.

+ */ + inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } + + /** + *

The list of resources for which you want to get the related resources. Up to + * 100 resources can be provided.

+ */ + inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } + + /** + *

The list of resources for which you want to get the related resources. Up to + * 100 resources can be provided.

+ */ + inline ListResourceScanRelatedResourcesRequest& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} + + /** + *

The list of resources for which you want to get the related resources. Up to + * 100 resources can be provided.

+ */ + inline ListResourceScanRelatedResourcesRequest& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} + + /** + *

The list of resources for which you want to get the related resources. Up to + * 100 resources can be provided.

+ */ + inline ListResourceScanRelatedResourcesRequest& AddResources(const ScannedResourceIdentifier& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } + + /** + *

The list of resources for which you want to get the related resources. Up to + * 100 resources can be provided.

+ */ + inline ListResourceScanRelatedResourcesRequest& AddResources(ScannedResourceIdentifier&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } + + + /** + *

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListResourceScanRelatedResources API action will return up to 100 + * results in each response. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListResourceScanRelatedResources API action will return up to 100 + * results in each response. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListResourceScanRelatedResources API action will return up to 100 + * results in each response. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListResourceScanRelatedResources API action will return up to 100 + * results in each response. The maximum value is 100.

+ */ + inline ListResourceScanRelatedResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_resourceScanId; + bool m_resourceScanIdHasBeenSet = false; + + Aws::Vector m_resources; + bool m_resourcesHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanRelatedResourcesResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanRelatedResourcesResult.h new file mode 100644 index 00000000000..93cbd5fb38d --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanRelatedResourcesResult.h @@ -0,0 +1,171 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class ListResourceScanRelatedResourcesResult + { + public: + AWS_CLOUDFORMATION_API ListResourceScanRelatedResourcesResult(); + AWS_CLOUDFORMATION_API ListResourceScanRelatedResourcesResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API ListResourceScanRelatedResourcesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

List of up to MaxResults resources in the specified resource + * scan related to the specified resources.

+ */ + inline const Aws::Vector& GetRelatedResources() const{ return m_relatedResources; } + + /** + *

List of up to MaxResults resources in the specified resource + * scan related to the specified resources.

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

List of up to MaxResults resources in the specified resource + * scan related to the specified resources.

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

List of up to MaxResults resources in the specified resource + * scan related to the specified resources.

+ */ + inline ListResourceScanRelatedResourcesResult& WithRelatedResources(const Aws::Vector& value) { SetRelatedResources(value); return *this;} + + /** + *

List of up to MaxResults resources in the specified resource + * scan related to the specified resources.

+ */ + inline ListResourceScanRelatedResourcesResult& WithRelatedResources(Aws::Vector&& value) { SetRelatedResources(std::move(value)); return *this;} + + /** + *

List of up to MaxResults resources in the specified resource + * scan related to the specified resources.

+ */ + inline ListResourceScanRelatedResourcesResult& AddRelatedResources(const ScannedResource& value) { m_relatedResources.push_back(value); return *this; } + + /** + *

List of up to MaxResults resources in the specified resource + * scan related to the specified resources.

+ */ + inline ListResourceScanRelatedResourcesResult& AddRelatedResources(ScannedResource&& value) { m_relatedResources.push_back(std::move(value)); return *this; } + + + /** + *

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanRelatedResources again and use that value for + * the NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanRelatedResources again and use that value for + * the NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanRelatedResources again and use that value for + * the NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanRelatedResources again and use that value for + * the NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanRelatedResources again and use that value for + * the NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanRelatedResources again and use that value for + * the NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanRelatedResources again and use that value for + * the NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

+ */ + inline ListResourceScanRelatedResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline ListResourceScanRelatedResourcesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline ListResourceScanRelatedResourcesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::Vector m_relatedResources; + + Aws::String m_nextToken; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanResourcesRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanResourcesRequest.h new file mode 100644 index 00000000000..2a20b6825da --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanResourcesRequest.h @@ -0,0 +1,371 @@ +/** + * 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 CloudFormation +{ +namespace Model +{ + + /** + */ + class ListResourceScanResourcesRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API ListResourceScanResourcesRequest(); + + // 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 "ListResourceScanResources"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline const Aws::String& GetResourceScanId() const{ return m_resourceScanId; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline bool ResourceScanIdHasBeenSet() const { return m_resourceScanIdHasBeenSet; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(const Aws::String& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = value; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(Aws::String&& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = std::move(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(const char* value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline ListResourceScanResourcesRequest& WithResourceScanId(const Aws::String& value) { SetResourceScanId(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline ListResourceScanResourcesRequest& WithResourceScanId(Aws::String&& value) { SetResourceScanId(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline ListResourceScanResourcesRequest& WithResourceScanId(const char* value) { SetResourceScanId(value); return *this;} + + + /** + *

If specified, the returned resources will have the specified resource + * identifier (or one of them in the case where the resource has multiple + * identifiers).

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

If specified, the returned resources will have the specified resource + * identifier (or one of them in the case where the resource has multiple + * identifiers).

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

If specified, the returned resources will have the specified resource + * identifier (or one of them in the case where the resource has multiple + * identifiers).

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

If specified, the returned resources will have the specified resource + * identifier (or one of them in the case where the resource has multiple + * identifiers).

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

If specified, the returned resources will have the specified resource + * identifier (or one of them in the case where the resource has multiple + * identifiers).

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

If specified, the returned resources will have the specified resource + * identifier (or one of them in the case where the resource has multiple + * identifiers).

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

If specified, the returned resources will have the specified resource + * identifier (or one of them in the case where the resource has multiple + * identifiers).

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

If specified, the returned resources will have the specified resource + * identifier (or one of them in the case where the resource has multiple + * identifiers).

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

If specified, the returned resources will be of any of the resource types + * with the specified prefix.

+ */ + inline const Aws::String& GetResourceTypePrefix() const{ return m_resourceTypePrefix; } + + /** + *

If specified, the returned resources will be of any of the resource types + * with the specified prefix.

+ */ + inline bool ResourceTypePrefixHasBeenSet() const { return m_resourceTypePrefixHasBeenSet; } + + /** + *

If specified, the returned resources will be of any of the resource types + * with the specified prefix.

+ */ + inline void SetResourceTypePrefix(const Aws::String& value) { m_resourceTypePrefixHasBeenSet = true; m_resourceTypePrefix = value; } + + /** + *

If specified, the returned resources will be of any of the resource types + * with the specified prefix.

+ */ + inline void SetResourceTypePrefix(Aws::String&& value) { m_resourceTypePrefixHasBeenSet = true; m_resourceTypePrefix = std::move(value); } + + /** + *

If specified, the returned resources will be of any of the resource types + * with the specified prefix.

+ */ + inline void SetResourceTypePrefix(const char* value) { m_resourceTypePrefixHasBeenSet = true; m_resourceTypePrefix.assign(value); } + + /** + *

If specified, the returned resources will be of any of the resource types + * with the specified prefix.

+ */ + inline ListResourceScanResourcesRequest& WithResourceTypePrefix(const Aws::String& value) { SetResourceTypePrefix(value); return *this;} + + /** + *

If specified, the returned resources will be of any of the resource types + * with the specified prefix.

+ */ + inline ListResourceScanResourcesRequest& WithResourceTypePrefix(Aws::String&& value) { SetResourceTypePrefix(std::move(value)); return *this;} + + /** + *

If specified, the returned resources will be of any of the resource types + * with the specified prefix.

+ */ + inline ListResourceScanResourcesRequest& WithResourceTypePrefix(const char* value) { SetResourceTypePrefix(value); return *this;} + + + /** + *

If specified, the returned resources will have a matching tag key.

+ */ + inline const Aws::String& GetTagKey() const{ return m_tagKey; } + + /** + *

If specified, the returned resources will have a matching tag key.

+ */ + inline bool TagKeyHasBeenSet() const { return m_tagKeyHasBeenSet; } + + /** + *

If specified, the returned resources will have a matching tag key.

+ */ + inline void SetTagKey(const Aws::String& value) { m_tagKeyHasBeenSet = true; m_tagKey = value; } + + /** + *

If specified, the returned resources will have a matching tag key.

+ */ + inline void SetTagKey(Aws::String&& value) { m_tagKeyHasBeenSet = true; m_tagKey = std::move(value); } + + /** + *

If specified, the returned resources will have a matching tag key.

+ */ + inline void SetTagKey(const char* value) { m_tagKeyHasBeenSet = true; m_tagKey.assign(value); } + + /** + *

If specified, the returned resources will have a matching tag key.

+ */ + inline ListResourceScanResourcesRequest& WithTagKey(const Aws::String& value) { SetTagKey(value); return *this;} + + /** + *

If specified, the returned resources will have a matching tag key.

+ */ + inline ListResourceScanResourcesRequest& WithTagKey(Aws::String&& value) { SetTagKey(std::move(value)); return *this;} + + /** + *

If specified, the returned resources will have a matching tag key.

+ */ + inline ListResourceScanResourcesRequest& WithTagKey(const char* value) { SetTagKey(value); return *this;} + + + /** + *

If specified, the returned resources will have a matching tag value.

+ */ + inline const Aws::String& GetTagValue() const{ return m_tagValue; } + + /** + *

If specified, the returned resources will have a matching tag value.

+ */ + inline bool TagValueHasBeenSet() const { return m_tagValueHasBeenSet; } + + /** + *

If specified, the returned resources will have a matching tag value.

+ */ + inline void SetTagValue(const Aws::String& value) { m_tagValueHasBeenSet = true; m_tagValue = value; } + + /** + *

If specified, the returned resources will have a matching tag value.

+ */ + inline void SetTagValue(Aws::String&& value) { m_tagValueHasBeenSet = true; m_tagValue = std::move(value); } + + /** + *

If specified, the returned resources will have a matching tag value.

+ */ + inline void SetTagValue(const char* value) { m_tagValueHasBeenSet = true; m_tagValue.assign(value); } + + /** + *

If specified, the returned resources will have a matching tag value.

+ */ + inline ListResourceScanResourcesRequest& WithTagValue(const Aws::String& value) { SetTagValue(value); return *this;} + + /** + *

If specified, the returned resources will have a matching tag value.

+ */ + inline ListResourceScanResourcesRequest& WithTagValue(Aws::String&& value) { SetTagValue(std::move(value)); return *this;} + + /** + *

If specified, the returned resources will have a matching tag value.

+ */ + inline ListResourceScanResourcesRequest& WithTagValue(const char* value) { SetTagValue(value); return *this;} + + + /** + *

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListResourceScanResources API action will return at most 100 + * results in each response. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListResourceScanResources API action will return at most 100 + * results in each response. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListResourceScanResources API action will return at most 100 + * results in each response. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. By default the + * ListResourceScanResources API action will return at most 100 + * results in each response. The maximum value is 100.

+ */ + inline ListResourceScanResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_resourceScanId; + bool m_resourceScanIdHasBeenSet = false; + + Aws::String m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + + Aws::String m_resourceTypePrefix; + bool m_resourceTypePrefixHasBeenSet = false; + + Aws::String m_tagKey; + bool m_tagKeyHasBeenSet = false; + + Aws::String m_tagValue; + bool m_tagValueHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanResourcesResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanResourcesResult.h new file mode 100644 index 00000000000..d3cd9e25e33 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScanResourcesResult.h @@ -0,0 +1,171 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class ListResourceScanResourcesResult + { + public: + AWS_CLOUDFORMATION_API ListResourceScanResourcesResult(); + AWS_CLOUDFORMATION_API ListResourceScanResourcesResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API ListResourceScanResourcesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

List of up to MaxResults resources in the specified resource + * scan that match all of the specified filters.

+ */ + inline const Aws::Vector& GetResources() const{ return m_resources; } + + /** + *

List of up to MaxResults resources in the specified resource + * scan that match all of the specified filters.

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

List of up to MaxResults resources in the specified resource + * scan that match all of the specified filters.

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

List of up to MaxResults resources in the specified resource + * scan that match all of the specified filters.

+ */ + inline ListResourceScanResourcesResult& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} + + /** + *

List of up to MaxResults resources in the specified resource + * scan that match all of the specified filters.

+ */ + inline ListResourceScanResourcesResult& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} + + /** + *

List of up to MaxResults resources in the specified resource + * scan that match all of the specified filters.

+ */ + inline ListResourceScanResourcesResult& AddResources(const ScannedResource& value) { m_resources.push_back(value); return *this; } + + /** + *

List of up to MaxResults resources in the specified resource + * scan that match all of the specified filters.

+ */ + inline ListResourceScanResourcesResult& AddResources(ScannedResource&& value) { m_resources.push_back(std::move(value)); return *this; } + + + /** + *

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanResources again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanResources again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanResources again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanResources again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanResources again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanResources again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScanResources again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

+ */ + inline ListResourceScanResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline ListResourceScanResourcesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline ListResourceScanResourcesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::Vector m_resources; + + Aws::String m_nextToken; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScansRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScansRequest.h new file mode 100644 index 00000000000..366130b7824 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScansRequest.h @@ -0,0 +1,123 @@ +/** + * 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 CloudFormation +{ +namespace Model +{ + + /** + */ + class ListResourceScansRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API ListResourceScansRequest(); + + // 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 "ListResourceScans"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

A string that identifies the next page of resource scan results.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. The default + * value is 10. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. The default + * value is 10. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. The default + * value is 10. The maximum value is 100.

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

If the number of available results exceeds this maximum, the response + * includes a NextToken value that you can use for the + * NextToken parameter to get the next set of results. The default + * value is 10. The maximum value is 100.

+ */ + inline ListResourceScansRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScansResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScansResult.h new file mode 100644 index 00000000000..40d6ee5a0ac --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ListResourceScansResult.h @@ -0,0 +1,164 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class ListResourceScansResult + { + public: + AWS_CLOUDFORMATION_API ListResourceScansResult(); + AWS_CLOUDFORMATION_API ListResourceScansResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API ListResourceScansResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The list of scans returned.

+ */ + inline const Aws::Vector& GetResourceScanSummaries() const{ return m_resourceScanSummaries; } + + /** + *

The list of scans returned.

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

The list of scans returned.

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

The list of scans returned.

+ */ + inline ListResourceScansResult& WithResourceScanSummaries(const Aws::Vector& value) { SetResourceScanSummaries(value); return *this;} + + /** + *

The list of scans returned.

+ */ + inline ListResourceScansResult& WithResourceScanSummaries(Aws::Vector&& value) { SetResourceScanSummaries(std::move(value)); return *this;} + + /** + *

The list of scans returned.

+ */ + inline ListResourceScansResult& AddResourceScanSummaries(const ResourceScanSummary& value) { m_resourceScanSummaries.push_back(value); return *this; } + + /** + *

The list of scans returned.

+ */ + inline ListResourceScansResult& AddResourceScanSummaries(ResourceScanSummary&& value) { m_resourceScanSummaries.push_back(std::move(value)); return *this; } + + + /** + *

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScans again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScans again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScans again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScans again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScans again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScans again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

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

If the request doesn't return all the remaining results, + * NextToken is set to a token. To retrieve the next set of results, + * call ListResourceScans again and use that value for the + * NextToken parameter. If the request returns all results, + * NextToken is set to an empty string.

+ */ + inline ListResourceScansResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline ListResourceScansResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline ListResourceScansResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::Vector m_resourceScanSummaries; + + Aws::String m_nextToken; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceDefinition.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceDefinition.h new file mode 100644 index 00000000000..0123c80f54d --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceDefinition.h @@ -0,0 +1,355 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

A resource included in a generated template. This data type is used with the + * CreateGeneratedTemplate and UpdateGeneratedTemplate + * API actions.

See Also:

AWS + * API Reference

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

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types in the CloudFormation User Guide + *

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types in the CloudFormation User Guide + *

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types in the CloudFormation User Guide + *

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types in the CloudFormation User Guide + *

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types in the CloudFormation User Guide + *

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types in the CloudFormation User Guide + *

+ */ + inline ResourceDefinition& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types in the CloudFormation User Guide + *

+ */ + inline ResourceDefinition& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types in the CloudFormation User Guide + *

+ */ + inline ResourceDefinition& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + + /** + *

The logical resource id for this resource in the generated template.

+ */ + inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; } + + /** + *

The logical resource id for this resource in the generated template.

+ */ + inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; } + + /** + *

The logical resource id for this resource in the generated template.

+ */ + inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; } + + /** + *

The logical resource id for this resource in the generated template.

+ */ + inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); } + + /** + *

The logical resource id for this resource in the generated template.

+ */ + inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); } + + /** + *

The logical resource id for this resource in the generated template.

+ */ + inline ResourceDefinition& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;} + + /** + *

The logical resource id for this resource in the generated template.

+ */ + inline ResourceDefinition& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;} + + /** + *

The logical resource id for this resource in the generated template.

+ */ + inline ResourceDefinition& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;} + + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDefinition& AddResourceIdentifier(const Aws::String& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDefinition& AddResourceIdentifier(Aws::String&& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDefinition& AddResourceIdentifier(const Aws::String& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDefinition& AddResourceIdentifier(Aws::String&& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDefinition& AddResourceIdentifier(const char* key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDefinition& AddResourceIdentifier(Aws::String&& key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDefinition& AddResourceIdentifier(const char* key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; } + + private: + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + + Aws::String m_logicalResourceId; + bool m_logicalResourceIdHasBeenSet = false; + + Aws::Map m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceDetail.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceDetail.h new file mode 100644 index 00000000000..77a0643f479 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceDetail.h @@ -0,0 +1,524 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

Details about a resource in a generated template

See Also:

+ * AWS + * API Reference

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

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline ResourceDetail& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline ResourceDetail& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline ResourceDetail& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + + /** + *

The logical id for this resource in the final generated template.

+ */ + inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; } + + /** + *

The logical id for this resource in the final generated template.

+ */ + inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; } + + /** + *

The logical id for this resource in the final generated template.

+ */ + inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; } + + /** + *

The logical id for this resource in the final generated template.

+ */ + inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); } + + /** + *

The logical id for this resource in the final generated template.

+ */ + inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); } + + /** + *

The logical id for this resource in the final generated template.

+ */ + inline ResourceDetail& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;} + + /** + *

The logical id for this resource in the final generated template.

+ */ + inline ResourceDetail& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;} + + /** + *

The logical id for this resource in the final generated template.

+ */ + inline ResourceDetail& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;} + + + /** + *

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDetail& AddResourceIdentifier(const Aws::String& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDetail& AddResourceIdentifier(Aws::String&& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDetail& AddResourceIdentifier(const Aws::String& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDetail& AddResourceIdentifier(Aws::String&& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDetail& AddResourceIdentifier(const char* key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDetail& AddResourceIdentifier(Aws::String&& key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the resource in the + * generated template. The key is the name of one of the primary identifiers for + * the resource. (Primary identifiers are specified in the + * primaryIdentifier list in the resource schema.) The value is the + * value of that primary identifier. For example, for a + * AWS::DynamoDB::Table resource, the primary identifiers is + * TableName so the key-value pair could be "TableName": + * "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ResourceDetail& AddResourceIdentifier(const char* key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; } + + + /** + *

Status of the processing of a resource in a generated template.

+ *
InProgress

The resource processing is still in progress.

+ *
Complete

The resource processing is complete.

+ *
Pending

The resource processing is pending.

+ *
Failed

The resource processing has failed.

+ */ + inline const GeneratedTemplateResourceStatus& GetResourceStatus() const{ return m_resourceStatus; } + + /** + *

Status of the processing of a resource in a generated template.

+ *
InProgress

The resource processing is still in progress.

+ *
Complete

The resource processing is complete.

+ *
Pending

The resource processing is pending.

+ *
Failed

The resource processing has failed.

+ */ + inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; } + + /** + *

Status of the processing of a resource in a generated template.

+ *
InProgress

The resource processing is still in progress.

+ *
Complete

The resource processing is complete.

+ *
Pending

The resource processing is pending.

+ *
Failed

The resource processing has failed.

+ */ + inline void SetResourceStatus(const GeneratedTemplateResourceStatus& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; } + + /** + *

Status of the processing of a resource in a generated template.

+ *
InProgress

The resource processing is still in progress.

+ *
Complete

The resource processing is complete.

+ *
Pending

The resource processing is pending.

+ *
Failed

The resource processing has failed.

+ */ + inline void SetResourceStatus(GeneratedTemplateResourceStatus&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::move(value); } + + /** + *

Status of the processing of a resource in a generated template.

+ *
InProgress

The resource processing is still in progress.

+ *
Complete

The resource processing is complete.

+ *
Pending

The resource processing is pending.

+ *
Failed

The resource processing has failed.

+ */ + inline ResourceDetail& WithResourceStatus(const GeneratedTemplateResourceStatus& value) { SetResourceStatus(value); return *this;} + + /** + *

Status of the processing of a resource in a generated template.

+ *
InProgress

The resource processing is still in progress.

+ *
Complete

The resource processing is complete.

+ *
Pending

The resource processing is pending.

+ *
Failed

The resource processing has failed.

+ */ + inline ResourceDetail& WithResourceStatus(GeneratedTemplateResourceStatus&& value) { SetResourceStatus(std::move(value)); return *this;} + + + /** + *

The reason for the resource detail, providing more information if a failure + * happened.

+ */ + inline const Aws::String& GetResourceStatusReason() const{ return m_resourceStatusReason; } + + /** + *

The reason for the resource detail, providing more information if a failure + * happened.

+ */ + inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; } + + /** + *

The reason for the resource detail, providing more information if a failure + * happened.

+ */ + inline void SetResourceStatusReason(const Aws::String& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = value; } + + /** + *

The reason for the resource detail, providing more information if a failure + * happened.

+ */ + inline void SetResourceStatusReason(Aws::String&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = std::move(value); } + + /** + *

The reason for the resource detail, providing more information if a failure + * happened.

+ */ + inline void SetResourceStatusReason(const char* value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason.assign(value); } + + /** + *

The reason for the resource detail, providing more information if a failure + * happened.

+ */ + inline ResourceDetail& WithResourceStatusReason(const Aws::String& value) { SetResourceStatusReason(value); return *this;} + + /** + *

The reason for the resource detail, providing more information if a failure + * happened.

+ */ + inline ResourceDetail& WithResourceStatusReason(Aws::String&& value) { SetResourceStatusReason(std::move(value)); return *this;} + + /** + *

The reason for the resource detail, providing more information if a failure + * happened.

+ */ + inline ResourceDetail& WithResourceStatusReason(const char* value) { SetResourceStatusReason(value); return *this;} + + + /** + *

The warnings generated for this resource.

+ */ + inline const Aws::Vector& GetWarnings() const{ return m_warnings; } + + /** + *

The warnings generated for this resource.

+ */ + inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; } + + /** + *

The warnings generated for this resource.

+ */ + inline void SetWarnings(const Aws::Vector& value) { m_warningsHasBeenSet = true; m_warnings = value; } + + /** + *

The warnings generated for this resource.

+ */ + inline void SetWarnings(Aws::Vector&& value) { m_warningsHasBeenSet = true; m_warnings = std::move(value); } + + /** + *

The warnings generated for this resource.

+ */ + inline ResourceDetail& WithWarnings(const Aws::Vector& value) { SetWarnings(value); return *this;} + + /** + *

The warnings generated for this resource.

+ */ + inline ResourceDetail& WithWarnings(Aws::Vector&& value) { SetWarnings(std::move(value)); return *this;} + + /** + *

The warnings generated for this resource.

+ */ + inline ResourceDetail& AddWarnings(const WarningDetail& value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; } + + /** + *

The warnings generated for this resource.

+ */ + inline ResourceDetail& AddWarnings(WarningDetail&& value) { m_warningsHasBeenSet = true; m_warnings.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + + Aws::String m_logicalResourceId; + bool m_logicalResourceIdHasBeenSet = false; + + Aws::Map m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + + GeneratedTemplateResourceStatus m_resourceStatus; + bool m_resourceStatusHasBeenSet = false; + + Aws::String m_resourceStatusReason; + bool m_resourceStatusReasonHasBeenSet = false; + + Aws::Vector m_warnings; + bool m_warningsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceScanStatus.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceScanStatus.h new file mode 100644 index 00000000000..89dd453dd72 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceScanStatus.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 CloudFormation +{ +namespace Model +{ + enum class ResourceScanStatus + { + NOT_SET, + IN_PROGRESS, + FAILED, + COMPLETE, + EXPIRED + }; + +namespace ResourceScanStatusMapper +{ +AWS_CLOUDFORMATION_API ResourceScanStatus GetResourceScanStatusForName(const Aws::String& name); + +AWS_CLOUDFORMATION_API Aws::String GetNameForResourceScanStatus(ResourceScanStatus value); +} // namespace ResourceScanStatusMapper +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceScanSummary.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceScanSummary.h new file mode 100644 index 00000000000..69563b48835 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ResourceScanSummary.h @@ -0,0 +1,295 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

A summary of the resource scan. This is returned by the + * ListResourceScan API action.

See Also:

AWS + * API Reference

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

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline const Aws::String& GetResourceScanId() const{ return m_resourceScanId; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline bool ResourceScanIdHasBeenSet() const { return m_resourceScanIdHasBeenSet; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(const Aws::String& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = value; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(Aws::String&& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = std::move(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline void SetResourceScanId(const char* value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline ResourceScanSummary& WithResourceScanId(const Aws::String& value) { SetResourceScanId(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline ResourceScanSummary& WithResourceScanId(Aws::String&& value) { SetResourceScanId(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan.

+ */ + inline ResourceScanSummary& WithResourceScanId(const char* value) { SetResourceScanId(value); return *this;} + + + /** + *

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

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

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

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

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

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

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

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

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

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

Status of the resource scan.

INPROGRESS

The + * resource scan is still in progress.

COMPLETE

The + * resource scan is complete.

EXPIRED

The resource scan + * has expired.

FAILED

The resource scan has failed.

+ *
+ */ + inline ResourceScanSummary& WithStatus(ResourceScanStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline const Aws::String& GetStatusReason() const{ return m_statusReason; } + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline ResourceScanSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline ResourceScanSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} + + /** + *

The reason for the resource scan status, providing more information if a + * failure happened.

+ */ + inline ResourceScanSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} + + + /** + *

The time that the resource scan was started.

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

The time that the resource scan was started.

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

The time that the resource scan was started.

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

The time that the resource scan was started.

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

The time that the resource scan was started.

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

The time that the resource scan was started.

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

The time that the resource scan was finished.

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

The time that the resource scan was finished.

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

The time that the resource scan was finished.

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

The time that the resource scan was finished.

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

The time that the resource scan was finished.

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

The time that the resource scan was finished.

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

The percentage of the resource scan that has been completed.

+ */ + inline double GetPercentageCompleted() const{ return m_percentageCompleted; } + + /** + *

The percentage of the resource scan that has been completed.

+ */ + inline bool PercentageCompletedHasBeenSet() const { return m_percentageCompletedHasBeenSet; } + + /** + *

The percentage of the resource scan that has been completed.

+ */ + inline void SetPercentageCompleted(double value) { m_percentageCompletedHasBeenSet = true; m_percentageCompleted = value; } + + /** + *

The percentage of the resource scan that has been completed.

+ */ + inline ResourceScanSummary& WithPercentageCompleted(double value) { SetPercentageCompleted(value); return *this;} + + private: + + Aws::String m_resourceScanId; + bool m_resourceScanIdHasBeenSet = false; + + ResourceScanStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_statusReason; + bool m_statusReasonHasBeenSet = false; + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet = false; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet = false; + + double m_percentageCompleted; + bool m_percentageCompletedHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ScannedResource.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ScannedResource.h new file mode 100644 index 00000000000..1c011b39ecf --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ScannedResource.h @@ -0,0 +1,334 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

A scanned resource returned by ListResourceScanResources or + * ListResourceScanRelatedResources.

See Also:

AWS + * API Reference

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

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline ScannedResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline ScannedResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline ScannedResource& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + + /** + *

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResource& AddResourceIdentifier(const Aws::String& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResource& AddResourceIdentifier(Aws::String&& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResource& AddResourceIdentifier(const Aws::String& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResource& AddResourceIdentifier(Aws::String&& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResource& AddResourceIdentifier(const char* key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResource& AddResourceIdentifier(Aws::String&& key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies for the scanned resource. + * The key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResource& AddResourceIdentifier(const char* key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; } + + + /** + *

If true, the resource is managed by a CloudFormation stack.

+ */ + inline bool GetManagedByStack() const{ return m_managedByStack; } + + /** + *

If true, the resource is managed by a CloudFormation stack.

+ */ + inline bool ManagedByStackHasBeenSet() const { return m_managedByStackHasBeenSet; } + + /** + *

If true, the resource is managed by a CloudFormation stack.

+ */ + inline void SetManagedByStack(bool value) { m_managedByStackHasBeenSet = true; m_managedByStack = value; } + + /** + *

If true, the resource is managed by a CloudFormation stack.

+ */ + inline ScannedResource& WithManagedByStack(bool value) { SetManagedByStack(value); return *this;} + + private: + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + + Aws::Map m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + + bool m_managedByStack; + bool m_managedByStackHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ScannedResourceIdentifier.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ScannedResourceIdentifier.h new file mode 100644 index 00000000000..a5e9d876752 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/ScannedResourceIdentifier.h @@ -0,0 +1,311 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

Identifies a scanned resource. This is used with the + * ListResourceScanRelatedResources API action.

See + * Also:

AWS + * API Reference

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

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline ScannedResourceIdentifier& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline ScannedResourceIdentifier& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

The type of the resource, such as AWS::DynamoDB::Table. For the + * list of supported resources, see IaC + * generator supported resource types In the CloudFormation User Guide + *

+ */ + inline ScannedResourceIdentifier& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

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

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResourceIdentifier& AddResourceIdentifier(const Aws::String& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResourceIdentifier& AddResourceIdentifier(Aws::String&& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResourceIdentifier& AddResourceIdentifier(const Aws::String& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResourceIdentifier& AddResourceIdentifier(Aws::String&& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResourceIdentifier& AddResourceIdentifier(const char* key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResourceIdentifier& AddResourceIdentifier(Aws::String&& key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; } + + /** + *

A list of up to 256 key-value pairs that identifies the scanned resource. The + * key is the name of one of the primary identifiers for the resource. (Primary + * identifiers are specified in the primaryIdentifier list in the + * resource schema.) The value is the value of that primary identifier. For + * example, for a AWS::DynamoDB::Table resource, the primary + * identifiers is TableName so the key-value pair could be + * "TableName": "MyDDBTable". For more information, see primaryIdentifier + * in the CloudFormation Command Line Interface User guide for extension + * development.

+ */ + inline ScannedResourceIdentifier& AddResourceIdentifier(const char* key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; } + + private: + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + + Aws::Map m_resourceIdentifier; + bool m_resourceIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StackSetOperationPreferences.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StackSetOperationPreferences.h index 08c771bbaed..1b0a3a4689a 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StackSetOperationPreferences.h +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StackSetOperationPreferences.h @@ -85,46 +85,64 @@ namespace Model /** *

The order of the Regions where you want to perform the stack operation.

+ *

RegionOrder isn't followed if + * AutoDeployment is enabled.

*/ inline const Aws::Vector& GetRegionOrder() const{ return m_regionOrder; } /** *

The order of the Regions where you want to perform the stack operation.

+ *

RegionOrder isn't followed if + * AutoDeployment is enabled.

*/ inline bool RegionOrderHasBeenSet() const { return m_regionOrderHasBeenSet; } /** *

The order of the Regions where you want to perform the stack operation.

+ *

RegionOrder isn't followed if + * AutoDeployment is enabled.

*/ inline void SetRegionOrder(const Aws::Vector& value) { m_regionOrderHasBeenSet = true; m_regionOrder = value; } /** *

The order of the Regions where you want to perform the stack operation.

+ *

RegionOrder isn't followed if + * AutoDeployment is enabled.

*/ inline void SetRegionOrder(Aws::Vector&& value) { m_regionOrderHasBeenSet = true; m_regionOrder = std::move(value); } /** *

The order of the Regions where you want to perform the stack operation.

+ *

RegionOrder isn't followed if + * AutoDeployment is enabled.

*/ inline StackSetOperationPreferences& WithRegionOrder(const Aws::Vector& value) { SetRegionOrder(value); return *this;} /** *

The order of the Regions where you want to perform the stack operation.

+ *

RegionOrder isn't followed if + * AutoDeployment is enabled.

*/ inline StackSetOperationPreferences& WithRegionOrder(Aws::Vector&& value) { SetRegionOrder(std::move(value)); return *this;} /** *

The order of the Regions where you want to perform the stack operation.

+ *

RegionOrder isn't followed if + * AutoDeployment is enabled.

*/ inline StackSetOperationPreferences& AddRegionOrder(const Aws::String& value) { m_regionOrderHasBeenSet = true; m_regionOrder.push_back(value); return *this; } /** *

The order of the Regions where you want to perform the stack operation.

+ *

RegionOrder isn't followed if + * AutoDeployment is enabled.

*/ inline StackSetOperationPreferences& AddRegionOrder(Aws::String&& value) { m_regionOrderHasBeenSet = true; m_regionOrder.push_back(std::move(value)); return *this; } /** *

The order of the Regions where you want to perform the stack operation.

+ *

RegionOrder isn't followed if + * AutoDeployment is enabled.

*/ inline StackSetOperationPreferences& AddRegionOrder(const char* value) { m_regionOrderHasBeenSet = true; m_regionOrder.push_back(value); return *this; } diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StartResourceScanRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StartResourceScanRequest.h new file mode 100644 index 00000000000..cf79b00aca4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StartResourceScanRequest.h @@ -0,0 +1,103 @@ +/** + * 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 CloudFormation +{ +namespace Model +{ + + /** + */ + class StartResourceScanRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API StartResourceScanRequest(); + + // 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 "StartResourceScan"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

A unique identifier for this StartResourceScan request. Specify + * this token if you plan to retry requests so that CloudFormation knows that + * you're not attempting to start a new resource scan.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

A unique identifier for this StartResourceScan request. Specify + * this token if you plan to retry requests so that CloudFormation knows that + * you're not attempting to start a new resource scan.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

A unique identifier for this StartResourceScan request. Specify + * this token if you plan to retry requests so that CloudFormation knows that + * you're not attempting to start a new resource scan.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

A unique identifier for this StartResourceScan request. Specify + * this token if you plan to retry requests so that CloudFormation knows that + * you're not attempting to start a new resource scan.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

A unique identifier for this StartResourceScan request. Specify + * this token if you plan to retry requests so that CloudFormation knows that + * you're not attempting to start a new resource scan.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

A unique identifier for this StartResourceScan request. Specify + * this token if you plan to retry requests so that CloudFormation knows that + * you're not attempting to start a new resource scan.

+ */ + inline StartResourceScanRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

A unique identifier for this StartResourceScan request. Specify + * this token if you plan to retry requests so that CloudFormation knows that + * you're not attempting to start a new resource scan.

+ */ + inline StartResourceScanRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

A unique identifier for this StartResourceScan request. Specify + * this token if you plan to retry requests so that CloudFormation knows that + * you're not attempting to start a new resource scan.

+ */ + inline StartResourceScanRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + private: + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StartResourceScanResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StartResourceScanResult.h new file mode 100644 index 00000000000..9fb59f663ca --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/StartResourceScanResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class StartResourceScanResult + { + public: + AWS_CLOUDFORMATION_API StartResourceScanResult(); + AWS_CLOUDFORMATION_API StartResourceScanResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API StartResourceScanResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline const Aws::String& GetResourceScanId() const{ return m_resourceScanId; } + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

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

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

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

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline void SetResourceScanId(const char* value) { m_resourceScanId.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline StartResourceScanResult& WithResourceScanId(const Aws::String& value) { SetResourceScanId(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline StartResourceScanResult& WithResourceScanId(Aws::String&& value) { SetResourceScanId(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the resource scan. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. + * An example is + * arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 + * .

+ */ + inline StartResourceScanResult& WithResourceScanId(const char* value) { SetResourceScanId(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline StartResourceScanResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline StartResourceScanResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::String m_resourceScanId; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateConfiguration.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateConfiguration.h new file mode 100644 index 00000000000..30821a63511 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateConfiguration.h @@ -0,0 +1,206 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

The configuration details of a generated template.

See Also:

+ * AWS + * API Reference

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

The DeletionPolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the stack is deleted.

  • RETAIN + * - retain all resources when the stack is deleted.

For more + * information, see + * DeletionPolicy attribute in the CloudFormation User + * Guide.

+ */ + inline const GeneratedTemplateDeletionPolicy& GetDeletionPolicy() const{ return m_deletionPolicy; } + + /** + *

The DeletionPolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the stack is deleted.

  • RETAIN + * - retain all resources when the stack is deleted.

For more + * information, see + * DeletionPolicy attribute in the CloudFormation User + * Guide.

+ */ + inline bool DeletionPolicyHasBeenSet() const { return m_deletionPolicyHasBeenSet; } + + /** + *

The DeletionPolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the stack is deleted.

  • RETAIN + * - retain all resources when the stack is deleted.

For more + * information, see + * DeletionPolicy attribute in the CloudFormation User + * Guide.

+ */ + inline void SetDeletionPolicy(const GeneratedTemplateDeletionPolicy& value) { m_deletionPolicyHasBeenSet = true; m_deletionPolicy = value; } + + /** + *

The DeletionPolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the stack is deleted.

  • RETAIN + * - retain all resources when the stack is deleted.

For more + * information, see + * DeletionPolicy attribute in the CloudFormation User + * Guide.

+ */ + inline void SetDeletionPolicy(GeneratedTemplateDeletionPolicy&& value) { m_deletionPolicyHasBeenSet = true; m_deletionPolicy = std::move(value); } + + /** + *

The DeletionPolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the stack is deleted.

  • RETAIN + * - retain all resources when the stack is deleted.

For more + * information, see + * DeletionPolicy attribute in the CloudFormation User + * Guide.

+ */ + inline TemplateConfiguration& WithDeletionPolicy(const GeneratedTemplateDeletionPolicy& value) { SetDeletionPolicy(value); return *this;} + + /** + *

The DeletionPolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the stack is deleted.

  • RETAIN + * - retain all resources when the stack is deleted.

For more + * information, see + * DeletionPolicy attribute in the CloudFormation User + * Guide.

+ */ + inline TemplateConfiguration& WithDeletionPolicy(GeneratedTemplateDeletionPolicy&& value) { SetDeletionPolicy(std::move(value)); return *this;} + + + /** + *

The UpdateReplacePolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the resource is replaced during an update operation.

    + *
  • RETAIN - retain all resources when the resource is + * replaced during an update operation.

For more information, + * see + * UpdateReplacePolicy attribute in the CloudFormation User + * Guide.

+ */ + inline const GeneratedTemplateUpdateReplacePolicy& GetUpdateReplacePolicy() const{ return m_updateReplacePolicy; } + + /** + *

The UpdateReplacePolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the resource is replaced during an update operation.

    + *
  • RETAIN - retain all resources when the resource is + * replaced during an update operation.

For more information, + * see + * UpdateReplacePolicy attribute in the CloudFormation User + * Guide.

+ */ + inline bool UpdateReplacePolicyHasBeenSet() const { return m_updateReplacePolicyHasBeenSet; } + + /** + *

The UpdateReplacePolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the resource is replaced during an update operation.

    + *
  • RETAIN - retain all resources when the resource is + * replaced during an update operation.

For more information, + * see + * UpdateReplacePolicy attribute in the CloudFormation User + * Guide.

+ */ + inline void SetUpdateReplacePolicy(const GeneratedTemplateUpdateReplacePolicy& value) { m_updateReplacePolicyHasBeenSet = true; m_updateReplacePolicy = value; } + + /** + *

The UpdateReplacePolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the resource is replaced during an update operation.

    + *
  • RETAIN - retain all resources when the resource is + * replaced during an update operation.

For more information, + * see + * UpdateReplacePolicy attribute in the CloudFormation User + * Guide.

+ */ + inline void SetUpdateReplacePolicy(GeneratedTemplateUpdateReplacePolicy&& value) { m_updateReplacePolicyHasBeenSet = true; m_updateReplacePolicy = std::move(value); } + + /** + *

The UpdateReplacePolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the resource is replaced during an update operation.

    + *
  • RETAIN - retain all resources when the resource is + * replaced during an update operation.

For more information, + * see + * UpdateReplacePolicy attribute in the CloudFormation User + * Guide.

+ */ + inline TemplateConfiguration& WithUpdateReplacePolicy(const GeneratedTemplateUpdateReplacePolicy& value) { SetUpdateReplacePolicy(value); return *this;} + + /** + *

The UpdateReplacePolicy assigned to resources in the generated + * template. Supported values are:

  • DELETE - delete + * all resources when the resource is replaced during an update operation.

    + *
  • RETAIN - retain all resources when the resource is + * replaced during an update operation.

For more information, + * see + * UpdateReplacePolicy attribute in the CloudFormation User + * Guide.

+ */ + inline TemplateConfiguration& WithUpdateReplacePolicy(GeneratedTemplateUpdateReplacePolicy&& value) { SetUpdateReplacePolicy(std::move(value)); return *this;} + + private: + + GeneratedTemplateDeletionPolicy m_deletionPolicy; + bool m_deletionPolicyHasBeenSet = false; + + GeneratedTemplateUpdateReplacePolicy m_updateReplacePolicy; + bool m_updateReplacePolicyHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateFormat.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateFormat.h new file mode 100644 index 00000000000..55afdf40eb6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateFormat.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 CloudFormation +{ +namespace Model +{ + enum class TemplateFormat + { + NOT_SET, + JSON, + YAML + }; + +namespace TemplateFormatMapper +{ +AWS_CLOUDFORMATION_API TemplateFormat GetTemplateFormatForName(const Aws::String& name); + +AWS_CLOUDFORMATION_API Aws::String GetNameForTemplateFormat(TemplateFormat value); +} // namespace TemplateFormatMapper +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateProgress.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateProgress.h new file mode 100644 index 00000000000..53450b97f9f --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateProgress.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 + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

A summary of the progress of the template generation.

See + * Also:

AWS + * API Reference

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

The number of resources that succeeded the template generation.

+ */ + inline int GetResourcesSucceeded() const{ return m_resourcesSucceeded; } + + /** + *

The number of resources that succeeded the template generation.

+ */ + inline bool ResourcesSucceededHasBeenSet() const { return m_resourcesSucceededHasBeenSet; } + + /** + *

The number of resources that succeeded the template generation.

+ */ + inline void SetResourcesSucceeded(int value) { m_resourcesSucceededHasBeenSet = true; m_resourcesSucceeded = value; } + + /** + *

The number of resources that succeeded the template generation.

+ */ + inline TemplateProgress& WithResourcesSucceeded(int value) { SetResourcesSucceeded(value); return *this;} + + + /** + *

The number of resources that failed the template generation.

+ */ + inline int GetResourcesFailed() const{ return m_resourcesFailed; } + + /** + *

The number of resources that failed the template generation.

+ */ + inline bool ResourcesFailedHasBeenSet() const { return m_resourcesFailedHasBeenSet; } + + /** + *

The number of resources that failed the template generation.

+ */ + inline void SetResourcesFailed(int value) { m_resourcesFailedHasBeenSet = true; m_resourcesFailed = value; } + + /** + *

The number of resources that failed the template generation.

+ */ + inline TemplateProgress& WithResourcesFailed(int value) { SetResourcesFailed(value); return *this;} + + + /** + *

The number of resources that are in-process for the template generation.

+ */ + inline int GetResourcesProcessing() const{ return m_resourcesProcessing; } + + /** + *

The number of resources that are in-process for the template generation.

+ */ + inline bool ResourcesProcessingHasBeenSet() const { return m_resourcesProcessingHasBeenSet; } + + /** + *

The number of resources that are in-process for the template generation.

+ */ + inline void SetResourcesProcessing(int value) { m_resourcesProcessingHasBeenSet = true; m_resourcesProcessing = value; } + + /** + *

The number of resources that are in-process for the template generation.

+ */ + inline TemplateProgress& WithResourcesProcessing(int value) { SetResourcesProcessing(value); return *this;} + + + /** + *

The number of resources that are still pending the template generation.

+ */ + inline int GetResourcesPending() const{ return m_resourcesPending; } + + /** + *

The number of resources that are still pending the template generation.

+ */ + inline bool ResourcesPendingHasBeenSet() const { return m_resourcesPendingHasBeenSet; } + + /** + *

The number of resources that are still pending the template generation.

+ */ + inline void SetResourcesPending(int value) { m_resourcesPendingHasBeenSet = true; m_resourcesPending = value; } + + /** + *

The number of resources that are still pending the template generation.

+ */ + inline TemplateProgress& WithResourcesPending(int value) { SetResourcesPending(value); return *this;} + + private: + + int m_resourcesSucceeded; + bool m_resourcesSucceededHasBeenSet = false; + + int m_resourcesFailed; + bool m_resourcesFailedHasBeenSet = false; + + int m_resourcesProcessing; + bool m_resourcesProcessingHasBeenSet = false; + + int m_resourcesPending; + bool m_resourcesPendingHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateSummary.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateSummary.h new file mode 100644 index 00000000000..5caa1ea6408 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/TemplateSummary.h @@ -0,0 +1,410 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

The summary of a generated template.

See Also:

AWS + * API Reference

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

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline const Aws::String& GetGeneratedTemplateId() const{ return m_generatedTemplateId; } + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline bool GeneratedTemplateIdHasBeenSet() const { return m_generatedTemplateIdHasBeenSet; } + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline void SetGeneratedTemplateId(const Aws::String& value) { m_generatedTemplateIdHasBeenSet = true; m_generatedTemplateId = value; } + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline void SetGeneratedTemplateId(Aws::String&& value) { m_generatedTemplateIdHasBeenSet = true; m_generatedTemplateId = std::move(value); } + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline void SetGeneratedTemplateId(const char* value) { m_generatedTemplateIdHasBeenSet = true; m_generatedTemplateId.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline TemplateSummary& WithGeneratedTemplateId(const Aws::String& value) { SetGeneratedTemplateId(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline TemplateSummary& WithGeneratedTemplateId(Aws::String&& value) { SetGeneratedTemplateId(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline TemplateSummary& WithGeneratedTemplateId(const char* value) { SetGeneratedTemplateId(value); return *this;} + + + /** + *

The name of the generated template.

+ */ + inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; } + + /** + *

The name of the generated template.

+ */ + inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; } + + /** + *

The name of the generated template.

+ */ + inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; } + + /** + *

The name of the generated template.

+ */ + inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); } + + /** + *

The name of the generated template.

+ */ + inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); } + + /** + *

The name of the generated template.

+ */ + inline TemplateSummary& WithGeneratedTemplateName(const Aws::String& value) { SetGeneratedTemplateName(value); return *this;} + + /** + *

The name of the generated template.

+ */ + inline TemplateSummary& WithGeneratedTemplateName(Aws::String&& value) { SetGeneratedTemplateName(std::move(value)); return *this;} + + /** + *

The name of the generated template.

+ */ + inline TemplateSummary& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;} + + + /** + *

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

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

The status of the template generation. Supported values are:

  • + *

    CreatePending - the creation of the template is pending.

    + *
  • CreateInProgress - the creation of the template is + * in progress.

  • DeletePending - the deletion of the + * template is pending.

  • DeleteInProgress - the + * deletion of the template is in progress.

  • + * UpdatePending - the update of the template is pending.

  • + *
  • UpdateInProgress - the update of the template is in + * progress.

  • Failed - the template operation + * failed.

  • Complete - the template operation is + * complete.

+ */ + inline TemplateSummary& WithStatus(GeneratedTemplateStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline const Aws::String& GetStatusReason() const{ return m_statusReason; } + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline TemplateSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline TemplateSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} + + /** + *

The reason for the current template generation status. This will provide more + * details if a failure happened.

+ */ + inline TemplateSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} + + + /** + *

The time the generated template was created.

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

The time the generated template was created.

+ */ + inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } + + /** + *

The time the generated template was created.

+ */ + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } + + /** + *

The time the generated template was created.

+ */ + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } + + /** + *

The time the generated template was created.

+ */ + inline TemplateSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + + /** + *

The time the generated template was created.

+ */ + inline TemplateSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + + + /** + *

The time the generated template was last updated.

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

The time the generated template was last updated.

+ */ + inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } + + /** + *

The time the generated template was last updated.

+ */ + inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } + + /** + *

The time the generated template was last updated.

+ */ + inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } + + /** + *

The time the generated template was last updated.

+ */ + inline TemplateSummary& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} + + /** + *

The time the generated template was last updated.

+ */ + inline TemplateSummary& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} + + + /** + *

The number of resources in the generated template. This is a total of + * resources in pending, in-progress, completed, and failed states.

+ */ + inline int GetNumberOfResources() const{ return m_numberOfResources; } + + /** + *

The number of resources in the generated template. This is a total of + * resources in pending, in-progress, completed, and failed states.

+ */ + inline bool NumberOfResourcesHasBeenSet() const { return m_numberOfResourcesHasBeenSet; } + + /** + *

The number of resources in the generated template. This is a total of + * resources in pending, in-progress, completed, and failed states.

+ */ + inline void SetNumberOfResources(int value) { m_numberOfResourcesHasBeenSet = true; m_numberOfResources = value; } + + /** + *

The number of resources in the generated template. This is a total of + * resources in pending, in-progress, completed, and failed states.

+ */ + inline TemplateSummary& WithNumberOfResources(int value) { SetNumberOfResources(value); return *this;} + + private: + + Aws::String m_generatedTemplateId; + bool m_generatedTemplateIdHasBeenSet = false; + + Aws::String m_generatedTemplateName; + bool m_generatedTemplateNameHasBeenSet = false; + + GeneratedTemplateStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_statusReason; + bool m_statusReasonHasBeenSet = false; + + Aws::Utils::DateTime m_creationTime; + bool m_creationTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastUpdatedTime; + bool m_lastUpdatedTimeHasBeenSet = false; + + int m_numberOfResources; + bool m_numberOfResourcesHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/UpdateGeneratedTemplateRequest.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/UpdateGeneratedTemplateRequest.h new file mode 100644 index 00000000000..dfd873e0785 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/UpdateGeneratedTemplateRequest.h @@ -0,0 +1,316 @@ +/** + * 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 CloudFormation +{ +namespace Model +{ + + /** + */ + class UpdateGeneratedTemplateRequest : public CloudFormationRequest + { + public: + AWS_CLOUDFORMATION_API UpdateGeneratedTemplateRequest(); + + // 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 "UpdateGeneratedTemplate"; } + + AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; + + protected: + AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); } + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline UpdateGeneratedTemplateRequest& WithGeneratedTemplateName(const Aws::String& value) { SetGeneratedTemplateName(value); return *this;} + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline UpdateGeneratedTemplateRequest& WithGeneratedTemplateName(Aws::String&& value) { SetGeneratedTemplateName(std::move(value)); return *this;} + + /** + *

The name or Amazon Resource Name (ARN) of a generated template.

+ */ + inline UpdateGeneratedTemplateRequest& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;} + + + /** + *

An optional new name to assign to the generated template.

+ */ + inline const Aws::String& GetNewGeneratedTemplateName() const{ return m_newGeneratedTemplateName; } + + /** + *

An optional new name to assign to the generated template.

+ */ + inline bool NewGeneratedTemplateNameHasBeenSet() const { return m_newGeneratedTemplateNameHasBeenSet; } + + /** + *

An optional new name to assign to the generated template.

+ */ + inline void SetNewGeneratedTemplateName(const Aws::String& value) { m_newGeneratedTemplateNameHasBeenSet = true; m_newGeneratedTemplateName = value; } + + /** + *

An optional new name to assign to the generated template.

+ */ + inline void SetNewGeneratedTemplateName(Aws::String&& value) { m_newGeneratedTemplateNameHasBeenSet = true; m_newGeneratedTemplateName = std::move(value); } + + /** + *

An optional new name to assign to the generated template.

+ */ + inline void SetNewGeneratedTemplateName(const char* value) { m_newGeneratedTemplateNameHasBeenSet = true; m_newGeneratedTemplateName.assign(value); } + + /** + *

An optional new name to assign to the generated template.

+ */ + inline UpdateGeneratedTemplateRequest& WithNewGeneratedTemplateName(const Aws::String& value) { SetNewGeneratedTemplateName(value); return *this;} + + /** + *

An optional new name to assign to the generated template.

+ */ + inline UpdateGeneratedTemplateRequest& WithNewGeneratedTemplateName(Aws::String&& value) { SetNewGeneratedTemplateName(std::move(value)); return *this;} + + /** + *

An optional new name to assign to the generated template.

+ */ + inline UpdateGeneratedTemplateRequest& WithNewGeneratedTemplateName(const char* value) { SetNewGeneratedTemplateName(value); return *this;} + + + /** + *

An optional list of resources to be added to the generated template.

+ */ + inline const Aws::Vector& GetAddResources() const{ return m_addResources; } + + /** + *

An optional list of resources to be added to the generated template.

+ */ + inline bool AddResourcesHasBeenSet() const { return m_addResourcesHasBeenSet; } + + /** + *

An optional list of resources to be added to the generated template.

+ */ + inline void SetAddResources(const Aws::Vector& value) { m_addResourcesHasBeenSet = true; m_addResources = value; } + + /** + *

An optional list of resources to be added to the generated template.

+ */ + inline void SetAddResources(Aws::Vector&& value) { m_addResourcesHasBeenSet = true; m_addResources = std::move(value); } + + /** + *

An optional list of resources to be added to the generated template.

+ */ + inline UpdateGeneratedTemplateRequest& WithAddResources(const Aws::Vector& value) { SetAddResources(value); return *this;} + + /** + *

An optional list of resources to be added to the generated template.

+ */ + inline UpdateGeneratedTemplateRequest& WithAddResources(Aws::Vector&& value) { SetAddResources(std::move(value)); return *this;} + + /** + *

An optional list of resources to be added to the generated template.

+ */ + inline UpdateGeneratedTemplateRequest& AddAddResources(const ResourceDefinition& value) { m_addResourcesHasBeenSet = true; m_addResources.push_back(value); return *this; } + + /** + *

An optional list of resources to be added to the generated template.

+ */ + inline UpdateGeneratedTemplateRequest& AddAddResources(ResourceDefinition&& value) { m_addResourcesHasBeenSet = true; m_addResources.push_back(std::move(value)); return *this; } + + + /** + *

A list of logical ids for resources to remove from the generated + * template.

+ */ + inline const Aws::Vector& GetRemoveResources() const{ return m_removeResources; } + + /** + *

A list of logical ids for resources to remove from the generated + * template.

+ */ + inline bool RemoveResourcesHasBeenSet() const { return m_removeResourcesHasBeenSet; } + + /** + *

A list of logical ids for resources to remove from the generated + * template.

+ */ + inline void SetRemoveResources(const Aws::Vector& value) { m_removeResourcesHasBeenSet = true; m_removeResources = value; } + + /** + *

A list of logical ids for resources to remove from the generated + * template.

+ */ + inline void SetRemoveResources(Aws::Vector&& value) { m_removeResourcesHasBeenSet = true; m_removeResources = std::move(value); } + + /** + *

A list of logical ids for resources to remove from the generated + * template.

+ */ + inline UpdateGeneratedTemplateRequest& WithRemoveResources(const Aws::Vector& value) { SetRemoveResources(value); return *this;} + + /** + *

A list of logical ids for resources to remove from the generated + * template.

+ */ + inline UpdateGeneratedTemplateRequest& WithRemoveResources(Aws::Vector&& value) { SetRemoveResources(std::move(value)); return *this;} + + /** + *

A list of logical ids for resources to remove from the generated + * template.

+ */ + inline UpdateGeneratedTemplateRequest& AddRemoveResources(const Aws::String& value) { m_removeResourcesHasBeenSet = true; m_removeResources.push_back(value); return *this; } + + /** + *

A list of logical ids for resources to remove from the generated + * template.

+ */ + inline UpdateGeneratedTemplateRequest& AddRemoveResources(Aws::String&& value) { m_removeResourcesHasBeenSet = true; m_removeResources.push_back(std::move(value)); return *this; } + + /** + *

A list of logical ids for resources to remove from the generated + * template.

+ */ + inline UpdateGeneratedTemplateRequest& AddRemoveResources(const char* value) { m_removeResourcesHasBeenSet = true; m_removeResources.push_back(value); return *this; } + + + /** + *

If true, update the resource properties in the generated + * template with their current live state. This feature is useful when the resource + * properties in your generated a template does not reflect the live state of the + * resource properties. This happens when a user update the resource properties + * after generating a template.

+ */ + inline bool GetRefreshAllResources() const{ return m_refreshAllResources; } + + /** + *

If true, update the resource properties in the generated + * template with their current live state. This feature is useful when the resource + * properties in your generated a template does not reflect the live state of the + * resource properties. This happens when a user update the resource properties + * after generating a template.

+ */ + inline bool RefreshAllResourcesHasBeenSet() const { return m_refreshAllResourcesHasBeenSet; } + + /** + *

If true, update the resource properties in the generated + * template with their current live state. This feature is useful when the resource + * properties in your generated a template does not reflect the live state of the + * resource properties. This happens when a user update the resource properties + * after generating a template.

+ */ + inline void SetRefreshAllResources(bool value) { m_refreshAllResourcesHasBeenSet = true; m_refreshAllResources = value; } + + /** + *

If true, update the resource properties in the generated + * template with their current live state. This feature is useful when the resource + * properties in your generated a template does not reflect the live state of the + * resource properties. This happens when a user update the resource properties + * after generating a template.

+ */ + inline UpdateGeneratedTemplateRequest& WithRefreshAllResources(bool value) { SetRefreshAllResources(value); return *this;} + + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); } + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline UpdateGeneratedTemplateRequest& WithTemplateConfiguration(const TemplateConfiguration& value) { SetTemplateConfiguration(value); return *this;} + + /** + *

The configuration details of the generated template, including the + * DeletionPolicy and UpdateReplacePolicy.

+ */ + inline UpdateGeneratedTemplateRequest& WithTemplateConfiguration(TemplateConfiguration&& value) { SetTemplateConfiguration(std::move(value)); return *this;} + + private: + + Aws::String m_generatedTemplateName; + bool m_generatedTemplateNameHasBeenSet = false; + + Aws::String m_newGeneratedTemplateName; + bool m_newGeneratedTemplateNameHasBeenSet = false; + + Aws::Vector m_addResources; + bool m_addResourcesHasBeenSet = false; + + Aws::Vector m_removeResources; + bool m_removeResourcesHasBeenSet = false; + + bool m_refreshAllResources; + bool m_refreshAllResourcesHasBeenSet = false; + + TemplateConfiguration m_templateConfiguration; + bool m_templateConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/UpdateGeneratedTemplateResult.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/UpdateGeneratedTemplateResult.h new file mode 100644 index 00000000000..7b238c375f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/UpdateGeneratedTemplateResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + class UpdateGeneratedTemplateResult + { + public: + AWS_CLOUDFORMATION_API UpdateGeneratedTemplateResult(); + AWS_CLOUDFORMATION_API UpdateGeneratedTemplateResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDFORMATION_API UpdateGeneratedTemplateResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline const Aws::String& GetGeneratedTemplateId() const{ return m_generatedTemplateId; } + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

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

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

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

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline void SetGeneratedTemplateId(const char* value) { m_generatedTemplateId.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline UpdateGeneratedTemplateResult& WithGeneratedTemplateId(const Aws::String& value) { SetGeneratedTemplateId(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline UpdateGeneratedTemplateResult& WithGeneratedTemplateId(Aws::String&& value) { SetGeneratedTemplateId(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of the generated template. The format is + * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. + * For example, + * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc + * .

+ */ + inline UpdateGeneratedTemplateResult& WithGeneratedTemplateId(const char* value) { SetGeneratedTemplateId(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline UpdateGeneratedTemplateResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline UpdateGeneratedTemplateResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::String m_generatedTemplateId; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningDetail.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningDetail.h new file mode 100644 index 00000000000..e0a528b0893 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningDetail.h @@ -0,0 +1,235 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

The warnings generated for a specific resource for this generated + * template.

See Also:

AWS + * API Reference

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

The type of this warning. For more information, see IaC + * generator and write-only properties in the CloudFormation User + * Guide.

  • MUTUALLY_EXCLUSIVE_PROPERTIES - The + * resource requires mutually-exclusive write-only properties. The IaC generator + * selects one set of mutually exclusive properties and converts the included + * properties into parameters. The parameter names have a suffix OneOf + * and the parameter descriptions indicate that the corresponding property can be + * replaced with other exclusive properties.

  • + * UNSUPPORTED_PROPERTIES - Unsupported properties are present in the + * resource. One example of unsupported properties would be a required write-only + * property that is an array, because a parameter cannot be an array. Another + * example is an optional write-only property.

  • + * MUTUALLY_EXCLUSIVE_TYPES - One or more required write-only + * properties are found in the resource, and the type of that property can be any + * of several types.

Currently the resource and property + * reference documentation does not indicate if a property uses a type of + * oneOf or anyOf. You need to look at the resource + * provider schema.

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

The type of this warning. For more information, see IaC + * generator and write-only properties in the CloudFormation User + * Guide.

  • MUTUALLY_EXCLUSIVE_PROPERTIES - The + * resource requires mutually-exclusive write-only properties. The IaC generator + * selects one set of mutually exclusive properties and converts the included + * properties into parameters. The parameter names have a suffix OneOf + * and the parameter descriptions indicate that the corresponding property can be + * replaced with other exclusive properties.

  • + * UNSUPPORTED_PROPERTIES - Unsupported properties are present in the + * resource. One example of unsupported properties would be a required write-only + * property that is an array, because a parameter cannot be an array. Another + * example is an optional write-only property.

  • + * MUTUALLY_EXCLUSIVE_TYPES - One or more required write-only + * properties are found in the resource, and the type of that property can be any + * of several types.

Currently the resource and property + * reference documentation does not indicate if a property uses a type of + * oneOf or anyOf. You need to look at the resource + * provider schema.

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

The type of this warning. For more information, see IaC + * generator and write-only properties in the CloudFormation User + * Guide.

  • MUTUALLY_EXCLUSIVE_PROPERTIES - The + * resource requires mutually-exclusive write-only properties. The IaC generator + * selects one set of mutually exclusive properties and converts the included + * properties into parameters. The parameter names have a suffix OneOf + * and the parameter descriptions indicate that the corresponding property can be + * replaced with other exclusive properties.

  • + * UNSUPPORTED_PROPERTIES - Unsupported properties are present in the + * resource. One example of unsupported properties would be a required write-only + * property that is an array, because a parameter cannot be an array. Another + * example is an optional write-only property.

  • + * MUTUALLY_EXCLUSIVE_TYPES - One or more required write-only + * properties are found in the resource, and the type of that property can be any + * of several types.

Currently the resource and property + * reference documentation does not indicate if a property uses a type of + * oneOf or anyOf. You need to look at the resource + * provider schema.

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

The type of this warning. For more information, see IaC + * generator and write-only properties in the CloudFormation User + * Guide.

  • MUTUALLY_EXCLUSIVE_PROPERTIES - The + * resource requires mutually-exclusive write-only properties. The IaC generator + * selects one set of mutually exclusive properties and converts the included + * properties into parameters. The parameter names have a suffix OneOf + * and the parameter descriptions indicate that the corresponding property can be + * replaced with other exclusive properties.

  • + * UNSUPPORTED_PROPERTIES - Unsupported properties are present in the + * resource. One example of unsupported properties would be a required write-only + * property that is an array, because a parameter cannot be an array. Another + * example is an optional write-only property.

  • + * MUTUALLY_EXCLUSIVE_TYPES - One or more required write-only + * properties are found in the resource, and the type of that property can be any + * of several types.

Currently the resource and property + * reference documentation does not indicate if a property uses a type of + * oneOf or anyOf. You need to look at the resource + * provider schema.

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

The type of this warning. For more information, see IaC + * generator and write-only properties in the CloudFormation User + * Guide.

  • MUTUALLY_EXCLUSIVE_PROPERTIES - The + * resource requires mutually-exclusive write-only properties. The IaC generator + * selects one set of mutually exclusive properties and converts the included + * properties into parameters. The parameter names have a suffix OneOf + * and the parameter descriptions indicate that the corresponding property can be + * replaced with other exclusive properties.

  • + * UNSUPPORTED_PROPERTIES - Unsupported properties are present in the + * resource. One example of unsupported properties would be a required write-only + * property that is an array, because a parameter cannot be an array. Another + * example is an optional write-only property.

  • + * MUTUALLY_EXCLUSIVE_TYPES - One or more required write-only + * properties are found in the resource, and the type of that property can be any + * of several types.

Currently the resource and property + * reference documentation does not indicate if a property uses a type of + * oneOf or anyOf. You need to look at the resource + * provider schema.

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

The type of this warning. For more information, see IaC + * generator and write-only properties in the CloudFormation User + * Guide.

  • MUTUALLY_EXCLUSIVE_PROPERTIES - The + * resource requires mutually-exclusive write-only properties. The IaC generator + * selects one set of mutually exclusive properties and converts the included + * properties into parameters. The parameter names have a suffix OneOf + * and the parameter descriptions indicate that the corresponding property can be + * replaced with other exclusive properties.

  • + * UNSUPPORTED_PROPERTIES - Unsupported properties are present in the + * resource. One example of unsupported properties would be a required write-only + * property that is an array, because a parameter cannot be an array. Another + * example is an optional write-only property.

  • + * MUTUALLY_EXCLUSIVE_TYPES - One or more required write-only + * properties are found in the resource, and the type of that property can be any + * of several types.

Currently the resource and property + * reference documentation does not indicate if a property uses a type of + * oneOf or anyOf. You need to look at the resource + * provider schema.

+ */ + inline WarningDetail& WithType(WarningType&& value) { SetType(std::move(value)); return *this;} + + + /** + *

The properties of the resource that are impacted by this warning.

+ */ + inline const Aws::Vector& GetProperties() const{ return m_properties; } + + /** + *

The properties of the resource that are impacted by this warning.

+ */ + inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } + + /** + *

The properties of the resource that are impacted by this warning.

+ */ + inline void SetProperties(const Aws::Vector& value) { m_propertiesHasBeenSet = true; m_properties = value; } + + /** + *

The properties of the resource that are impacted by this warning.

+ */ + inline void SetProperties(Aws::Vector&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } + + /** + *

The properties of the resource that are impacted by this warning.

+ */ + inline WarningDetail& WithProperties(const Aws::Vector& value) { SetProperties(value); return *this;} + + /** + *

The properties of the resource that are impacted by this warning.

+ */ + inline WarningDetail& WithProperties(Aws::Vector&& value) { SetProperties(std::move(value)); return *this;} + + /** + *

The properties of the resource that are impacted by this warning.

+ */ + inline WarningDetail& AddProperties(const WarningProperty& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; } + + /** + *

The properties of the resource that are impacted by this warning.

+ */ + inline WarningDetail& AddProperties(WarningProperty&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; } + + private: + + WarningType m_type; + bool m_typeHasBeenSet = false; + + Aws::Vector m_properties; + bool m_propertiesHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningProperty.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningProperty.h new file mode 100644 index 00000000000..568f97292a2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningProperty.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 +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudFormation +{ +namespace Model +{ + + /** + *

A specific property that is impacted by a warning.

See Also:

+ * AWS + * API Reference

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

The path of the property. For example, if this is for the + * S3Bucket member of the Code property, the property + * path would be Code/S3Bucket.

+ */ + inline const Aws::String& GetPropertyPath() const{ return m_propertyPath; } + + /** + *

The path of the property. For example, if this is for the + * S3Bucket member of the Code property, the property + * path would be Code/S3Bucket.

+ */ + inline bool PropertyPathHasBeenSet() const { return m_propertyPathHasBeenSet; } + + /** + *

The path of the property. For example, if this is for the + * S3Bucket member of the Code property, the property + * path would be Code/S3Bucket.

+ */ + inline void SetPropertyPath(const Aws::String& value) { m_propertyPathHasBeenSet = true; m_propertyPath = value; } + + /** + *

The path of the property. For example, if this is for the + * S3Bucket member of the Code property, the property + * path would be Code/S3Bucket.

+ */ + inline void SetPropertyPath(Aws::String&& value) { m_propertyPathHasBeenSet = true; m_propertyPath = std::move(value); } + + /** + *

The path of the property. For example, if this is for the + * S3Bucket member of the Code property, the property + * path would be Code/S3Bucket.

+ */ + inline void SetPropertyPath(const char* value) { m_propertyPathHasBeenSet = true; m_propertyPath.assign(value); } + + /** + *

The path of the property. For example, if this is for the + * S3Bucket member of the Code property, the property + * path would be Code/S3Bucket.

+ */ + inline WarningProperty& WithPropertyPath(const Aws::String& value) { SetPropertyPath(value); return *this;} + + /** + *

The path of the property. For example, if this is for the + * S3Bucket member of the Code property, the property + * path would be Code/S3Bucket.

+ */ + inline WarningProperty& WithPropertyPath(Aws::String&& value) { SetPropertyPath(std::move(value)); return *this;} + + /** + *

The path of the property. For example, if this is for the + * S3Bucket member of the Code property, the property + * path would be Code/S3Bucket.

+ */ + inline WarningProperty& WithPropertyPath(const char* value) { SetPropertyPath(value); return *this;} + + + /** + *

If true, the specified property is required.

+ */ + inline bool GetRequired() const{ return m_required; } + + /** + *

If true, the specified property is required.

+ */ + inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; } + + /** + *

If true, the specified property is required.

+ */ + inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; } + + /** + *

If true, the specified property is required.

+ */ + inline WarningProperty& WithRequired(bool value) { SetRequired(value); return *this;} + + + /** + *

The description of the property from the resource provider schema.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the property from the resource provider schema.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the property from the resource provider schema.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the property from the resource provider schema.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the property from the resource provider schema.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the property from the resource provider schema.

+ */ + inline WarningProperty& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the property from the resource provider schema.

+ */ + inline WarningProperty& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the property from the resource provider schema.

+ */ + inline WarningProperty& WithDescription(const char* value) { SetDescription(value); return *this;} + + private: + + Aws::String m_propertyPath; + bool m_propertyPathHasBeenSet = false; + + bool m_required; + bool m_requiredHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningType.h b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningType.h new file mode 100644 index 00000000000..ef10f6339c7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/WarningType.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + enum class WarningType + { + NOT_SET, + MUTUALLY_EXCLUSIVE_PROPERTIES, + UNSUPPORTED_PROPERTIES, + MUTUALLY_EXCLUSIVE_TYPES + }; + +namespace WarningTypeMapper +{ +AWS_CLOUDFORMATION_API WarningType GetWarningTypeForName(const Aws::String& name); + +AWS_CLOUDFORMATION_API Aws::String GetNameForWarningType(WarningType value); +} // namespace WarningTypeMapper +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationClient.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationClient.cpp index 256bdafaa8e..133bdf738ad 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationClient.cpp @@ -27,12 +27,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -40,8 +42,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -58,13 +62,18 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include +#include +#include +#include #include #include #include @@ -84,8 +93,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -403,6 +414,32 @@ CreateChangeSetOutcome CloudFormationClient::CreateChangeSet(const CreateChangeS {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateGeneratedTemplateOutcome CloudFormationClient::CreateGeneratedTemplate(const CreateGeneratedTemplateRequest& request) const +{ + AWS_OPERATION_GUARD(CreateGeneratedTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateGeneratedTemplateOutcome { + 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, CreateGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateGeneratedTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateStackOutcome CloudFormationClient::CreateStack(const CreateStackRequest& request) const { AWS_OPERATION_GUARD(CreateStack); @@ -559,6 +596,32 @@ DeleteChangeSetOutcome CloudFormationClient::DeleteChangeSet(const DeleteChangeS {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteGeneratedTemplateOutcome CloudFormationClient::DeleteGeneratedTemplate(const DeleteGeneratedTemplateRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteGeneratedTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteGeneratedTemplateOutcome { + 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, DeleteGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteGeneratedTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteStackOutcome CloudFormationClient::DeleteStack(const DeleteStackRequest& request) const { AWS_OPERATION_GUARD(DeleteStack); @@ -741,6 +804,32 @@ DescribeChangeSetHooksOutcome CloudFormationClient::DescribeChangeSetHooks(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeGeneratedTemplateOutcome CloudFormationClient::DescribeGeneratedTemplate(const DescribeGeneratedTemplateRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeGeneratedTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeGeneratedTemplateOutcome { + 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, DescribeGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeGeneratedTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeOrganizationsAccessOutcome CloudFormationClient::DescribeOrganizationsAccess(const DescribeOrganizationsAccessRequest& request) const { AWS_OPERATION_GUARD(DescribeOrganizationsAccess); @@ -793,6 +882,32 @@ DescribePublisherOutcome CloudFormationClient::DescribePublisher(const DescribeP {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeResourceScanOutcome CloudFormationClient::DescribeResourceScan(const DescribeResourceScanRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeResourceScan); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeResourceScan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeResourceScan, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeResourceScan, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeResourceScanOutcome { + 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, DescribeResourceScan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeResourceScanOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeStackDriftDetectionStatusOutcome CloudFormationClient::DescribeStackDriftDetectionStatus(const DescribeStackDriftDetectionStatusRequest& request) const { AWS_OPERATION_GUARD(DescribeStackDriftDetectionStatus); @@ -1209,6 +1324,32 @@ ExecuteChangeSetOutcome CloudFormationClient::ExecuteChangeSet(const ExecuteChan {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetGeneratedTemplateOutcome CloudFormationClient::GetGeneratedTemplate(const GetGeneratedTemplateRequest& request) const +{ + AWS_OPERATION_GUARD(GetGeneratedTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetGeneratedTemplateOutcome { + 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, GetGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetGeneratedTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetStackPolicyOutcome CloudFormationClient::GetStackPolicy(const GetStackPolicyRequest& request) const { AWS_OPERATION_GUARD(GetStackPolicy); @@ -1365,6 +1506,32 @@ ListExportsOutcome CloudFormationClient::ListExports(const ListExportsRequest& r {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListGeneratedTemplatesOutcome CloudFormationClient::ListGeneratedTemplates(const ListGeneratedTemplatesRequest& request) const +{ + AWS_OPERATION_GUARD(ListGeneratedTemplates); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListGeneratedTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListGeneratedTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListGeneratedTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListGeneratedTemplatesOutcome { + 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, ListGeneratedTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListGeneratedTemplatesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListImportsOutcome CloudFormationClient::ListImports(const ListImportsRequest& request) const { AWS_OPERATION_GUARD(ListImports); @@ -1391,6 +1558,84 @@ ListImportsOutcome CloudFormationClient::ListImports(const ListImportsRequest& r {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListResourceScanRelatedResourcesOutcome CloudFormationClient::ListResourceScanRelatedResources(const ListResourceScanRelatedResourcesRequest& request) const +{ + AWS_OPERATION_GUARD(ListResourceScanRelatedResources); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListResourceScanRelatedResources, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListResourceScanRelatedResources, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListResourceScanRelatedResources, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListResourceScanRelatedResourcesOutcome { + 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, ListResourceScanRelatedResources, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListResourceScanRelatedResourcesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListResourceScanResourcesOutcome CloudFormationClient::ListResourceScanResources(const ListResourceScanResourcesRequest& request) const +{ + AWS_OPERATION_GUARD(ListResourceScanResources); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListResourceScanResources, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListResourceScanResources, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListResourceScanResources, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListResourceScanResourcesOutcome { + 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, ListResourceScanResources, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListResourceScanResourcesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListResourceScansOutcome CloudFormationClient::ListResourceScans(const ListResourceScansRequest& request) const +{ + AWS_OPERATION_GUARD(ListResourceScans); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListResourceScans, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListResourceScans, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListResourceScans, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListResourceScansOutcome { + 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, ListResourceScans, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListResourceScansOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListStackInstanceResourceDriftsOutcome CloudFormationClient::ListStackInstanceResourceDrifts(const ListStackInstanceResourceDriftsRequest& request) const { AWS_OPERATION_GUARD(ListStackInstanceResourceDrifts); @@ -1885,6 +2130,32 @@ SignalResourceOutcome CloudFormationClient::SignalResource(const SignalResourceR {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +StartResourceScanOutcome CloudFormationClient::StartResourceScan(const StartResourceScanRequest& request) const +{ + AWS_OPERATION_GUARD(StartResourceScan); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartResourceScan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartResourceScan, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StartResourceScan, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StartResourceScanOutcome { + 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, StartResourceScan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartResourceScanOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + StopStackSetOperationOutcome CloudFormationClient::StopStackSetOperation(const StopStackSetOperationRequest& request) const { AWS_OPERATION_GUARD(StopStackSetOperation); @@ -1937,6 +2208,32 @@ TestTypeOutcome CloudFormationClient::TestType(const TestTypeRequest& request) c {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateGeneratedTemplateOutcome CloudFormationClient::UpdateGeneratedTemplate(const UpdateGeneratedTemplateRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateGeneratedTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateGeneratedTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateGeneratedTemplateOutcome { + 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, UpdateGeneratedTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateGeneratedTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateStackOutcome CloudFormationClient::UpdateStack(const UpdateStackRequest& request) const { AWS_OPERATION_GUARD(UpdateStack); diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationErrors.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationErrors.cpp index 864dba6f819..1def577d970 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationErrors.cpp @@ -18,57 +18,98 @@ namespace CloudFormation namespace CloudFormationErrorMapper { -static const int STACK_INSTANCE_NOT_FOUND_HASH = HashingUtils::HashString("StackInstanceNotFoundException"); -static const int TYPE_CONFIGURATION_NOT_FOUND_HASH = HashingUtils::HashString("TypeConfigurationNotFoundException"); static const int STACK_SET_NOT_FOUND_HASH = HashingUtils::HashString("StackSetNotFoundException"); -static const int OPERATION_STATUS_CHECK_FAILED_HASH = HashingUtils::HashString("ConditionalCheckFailed"); static const int C_F_N_REGISTRY_HASH = HashingUtils::HashString("CFNRegistryException"); static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static const int OPERATION_NOT_FOUND_HASH = HashingUtils::HashString("OperationNotFoundException"); +static const int RESOURCE_SCAN_NOT_FOUND_HASH = HashingUtils::HashString("ResourceScanNotFound"); +static const int INSUFFICIENT_CAPABILITIES_HASH = HashingUtils::HashString("InsufficientCapabilitiesException"); +static const int RESOURCE_SCAN_IN_PROGRESS_HASH = HashingUtils::HashString("ResourceScanInProgress"); +static const int CONCURRENT_RESOURCES_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ConcurrentResourcesLimitExceeded"); +static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); +static const int TOKEN_ALREADY_EXISTS_HASH = HashingUtils::HashString("TokenAlreadyExistsException"); +static const int STACK_SET_NOT_EMPTY_HASH = HashingUtils::HashString("StackSetNotEmptyException"); +static const int INVALID_STATE_TRANSITION_HASH = HashingUtils::HashString("InvalidStateTransition"); +static const int STACK_INSTANCE_NOT_FOUND_HASH = HashingUtils::HashString("StackInstanceNotFoundException"); +static const int TYPE_CONFIGURATION_NOT_FOUND_HASH = HashingUtils::HashString("TypeConfigurationNotFoundException"); +static const int OPERATION_STATUS_CHECK_FAILED_HASH = HashingUtils::HashString("ConditionalCheckFailed"); static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); static const int OPERATION_IN_PROGRESS_HASH = HashingUtils::HashString("OperationInProgressException"); static const int CHANGE_SET_NOT_FOUND_HASH = HashingUtils::HashString("ChangeSetNotFound"); static const int OPERATION_ID_ALREADY_EXISTS_HASH = HashingUtils::HashString("OperationIdAlreadyExistsException"); static const int STALE_REQUEST_HASH = HashingUtils::HashString("StaleRequestException"); -static const int OPERATION_NOT_FOUND_HASH = HashingUtils::HashString("OperationNotFoundException"); +static const int GENERATED_TEMPLATE_NOT_FOUND_HASH = HashingUtils::HashString("GeneratedTemplateNotFound"); static const int TYPE_NOT_FOUND_HASH = HashingUtils::HashString("TypeNotFoundException"); static const int INVALID_CHANGE_SET_STATUS_HASH = HashingUtils::HashString("InvalidChangeSetStatus"); static const int STACK_NOT_FOUND_HASH = HashingUtils::HashString("StackNotFoundException"); -static const int INSUFFICIENT_CAPABILITIES_HASH = HashingUtils::HashString("InsufficientCapabilitiesException"); static const int CREATED_BUT_MODIFIED_HASH = HashingUtils::HashString("CreatedButModifiedException"); -static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); -static const int TOKEN_ALREADY_EXISTS_HASH = HashingUtils::HashString("TokenAlreadyExistsException"); +static const int RESOURCE_SCAN_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceScanLimitExceeded"); static const int NAME_ALREADY_EXISTS_HASH = HashingUtils::HashString("NameAlreadyExistsException"); -static const int STACK_SET_NOT_EMPTY_HASH = HashingUtils::HashString("StackSetNotEmptyException"); -static const int INVALID_STATE_TRANSITION_HASH = HashingUtils::HashString("InvalidStateTransition"); AWSError GetErrorForName(const char* errorName) { int hashCode = HashingUtils::HashString(errorName); - if (hashCode == STACK_INSTANCE_NOT_FOUND_HASH) + if (hashCode == STACK_SET_NOT_FOUND_HASH) { - return AWSError(static_cast(CloudFormationErrors::STACK_INSTANCE_NOT_FOUND), RetryableType::NOT_RETRYABLE); + return AWSError(static_cast(CloudFormationErrors::STACK_SET_NOT_FOUND), RetryableType::NOT_RETRYABLE); } - else if (hashCode == TYPE_CONFIGURATION_NOT_FOUND_HASH) + else if (hashCode == C_F_N_REGISTRY_HASH) { - return AWSError(static_cast(CloudFormationErrors::TYPE_CONFIGURATION_NOT_FOUND), RetryableType::NOT_RETRYABLE); + return AWSError(static_cast(CloudFormationErrors::C_F_N_REGISTRY), RetryableType::NOT_RETRYABLE); } - else if (hashCode == STACK_SET_NOT_FOUND_HASH) + else if (hashCode == LIMIT_EXCEEDED_HASH) { - return AWSError(static_cast(CloudFormationErrors::STACK_SET_NOT_FOUND), RetryableType::NOT_RETRYABLE); + return AWSError(static_cast(CloudFormationErrors::LIMIT_EXCEEDED), RetryableType::RETRYABLE); } - else if (hashCode == OPERATION_STATUS_CHECK_FAILED_HASH) + else if (hashCode == OPERATION_NOT_FOUND_HASH) { - return AWSError(static_cast(CloudFormationErrors::OPERATION_STATUS_CHECK_FAILED), RetryableType::NOT_RETRYABLE); + return AWSError(static_cast(CloudFormationErrors::OPERATION_NOT_FOUND), RetryableType::NOT_RETRYABLE); } - else if (hashCode == C_F_N_REGISTRY_HASH) + else if (hashCode == RESOURCE_SCAN_NOT_FOUND_HASH) { - return AWSError(static_cast(CloudFormationErrors::C_F_N_REGISTRY), RetryableType::NOT_RETRYABLE); + return AWSError(static_cast(CloudFormationErrors::RESOURCE_SCAN_NOT_FOUND), RetryableType::NOT_RETRYABLE); } - else if (hashCode == LIMIT_EXCEEDED_HASH) + else if (hashCode == INSUFFICIENT_CAPABILITIES_HASH) { - return AWSError(static_cast(CloudFormationErrors::LIMIT_EXCEEDED), RetryableType::RETRYABLE); + return AWSError(static_cast(CloudFormationErrors::INSUFFICIENT_CAPABILITIES), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == RESOURCE_SCAN_IN_PROGRESS_HASH) + { + return AWSError(static_cast(CloudFormationErrors::RESOURCE_SCAN_IN_PROGRESS), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == CONCURRENT_RESOURCES_LIMIT_EXCEEDED_HASH) + { + return AWSError(static_cast(CloudFormationErrors::CONCURRENT_RESOURCES_LIMIT_EXCEEDED), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == INVALID_OPERATION_HASH) + { + return AWSError(static_cast(CloudFormationErrors::INVALID_OPERATION), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == TOKEN_ALREADY_EXISTS_HASH) + { + return AWSError(static_cast(CloudFormationErrors::TOKEN_ALREADY_EXISTS), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == STACK_SET_NOT_EMPTY_HASH) + { + return AWSError(static_cast(CloudFormationErrors::STACK_SET_NOT_EMPTY), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == INVALID_STATE_TRANSITION_HASH) + { + return AWSError(static_cast(CloudFormationErrors::INVALID_STATE_TRANSITION), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == STACK_INSTANCE_NOT_FOUND_HASH) + { + return AWSError(static_cast(CloudFormationErrors::STACK_INSTANCE_NOT_FOUND), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == TYPE_CONFIGURATION_NOT_FOUND_HASH) + { + return AWSError(static_cast(CloudFormationErrors::TYPE_CONFIGURATION_NOT_FOUND), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == OPERATION_STATUS_CHECK_FAILED_HASH) + { + return AWSError(static_cast(CloudFormationErrors::OPERATION_STATUS_CHECK_FAILED), RetryableType::NOT_RETRYABLE); } else if (hashCode == ALREADY_EXISTS_HASH) { @@ -90,9 +131,9 @@ AWSError GetErrorForName(const char* errorName) { return AWSError(static_cast(CloudFormationErrors::STALE_REQUEST), RetryableType::NOT_RETRYABLE); } - else if (hashCode == OPERATION_NOT_FOUND_HASH) + else if (hashCode == GENERATED_TEMPLATE_NOT_FOUND_HASH) { - return AWSError(static_cast(CloudFormationErrors::OPERATION_NOT_FOUND), RetryableType::NOT_RETRYABLE); + return AWSError(static_cast(CloudFormationErrors::GENERATED_TEMPLATE_NOT_FOUND), RetryableType::NOT_RETRYABLE); } else if (hashCode == TYPE_NOT_FOUND_HASH) { @@ -106,34 +147,18 @@ AWSError GetErrorForName(const char* errorName) { return AWSError(static_cast(CloudFormationErrors::STACK_NOT_FOUND), RetryableType::NOT_RETRYABLE); } - else if (hashCode == INSUFFICIENT_CAPABILITIES_HASH) - { - return AWSError(static_cast(CloudFormationErrors::INSUFFICIENT_CAPABILITIES), RetryableType::NOT_RETRYABLE); - } else if (hashCode == CREATED_BUT_MODIFIED_HASH) { return AWSError(static_cast(CloudFormationErrors::CREATED_BUT_MODIFIED), RetryableType::NOT_RETRYABLE); } - else if (hashCode == INVALID_OPERATION_HASH) - { - return AWSError(static_cast(CloudFormationErrors::INVALID_OPERATION), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == TOKEN_ALREADY_EXISTS_HASH) + else if (hashCode == RESOURCE_SCAN_LIMIT_EXCEEDED_HASH) { - return AWSError(static_cast(CloudFormationErrors::TOKEN_ALREADY_EXISTS), RetryableType::NOT_RETRYABLE); + return AWSError(static_cast(CloudFormationErrors::RESOURCE_SCAN_LIMIT_EXCEEDED), RetryableType::NOT_RETRYABLE); } else if (hashCode == NAME_ALREADY_EXISTS_HASH) { return AWSError(static_cast(CloudFormationErrors::NAME_ALREADY_EXISTS), RetryableType::NOT_RETRYABLE); } - else if (hashCode == STACK_SET_NOT_EMPTY_HASH) - { - return AWSError(static_cast(CloudFormationErrors::STACK_SET_NOT_EMPTY), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == INVALID_STATE_TRANSITION_HASH) - { - return AWSError(static_cast(CloudFormationErrors::INVALID_STATE_TRANSITION), RetryableType::NOT_RETRYABLE); - } return AWSError(CoreErrors::UNKNOWN, false); } diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/CreateGeneratedTemplateRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/CreateGeneratedTemplateRequest.cpp new file mode 100644 index 00000000000..aab6fb4ca4e --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/CreateGeneratedTemplateRequest.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils; + +CreateGeneratedTemplateRequest::CreateGeneratedTemplateRequest() : + m_resourcesHasBeenSet(false), + m_generatedTemplateNameHasBeenSet(false), + m_stackNameHasBeenSet(false), + m_templateConfigurationHasBeenSet(false) +{ +} + +Aws::String CreateGeneratedTemplateRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=CreateGeneratedTemplate&"; + if(m_resourcesHasBeenSet) + { + unsigned resourcesCount = 1; + for(auto& item : m_resources) + { + item.OutputToStream(ss, "Resources.member.", resourcesCount, ""); + resourcesCount++; + } + } + + if(m_generatedTemplateNameHasBeenSet) + { + ss << "GeneratedTemplateName=" << StringUtils::URLEncode(m_generatedTemplateName.c_str()) << "&"; + } + + if(m_stackNameHasBeenSet) + { + ss << "StackName=" << StringUtils::URLEncode(m_stackName.c_str()) << "&"; + } + + if(m_templateConfigurationHasBeenSet) + { + m_templateConfiguration.OutputToStream(ss, "TemplateConfiguration"); + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void CreateGeneratedTemplateRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/CreateGeneratedTemplateResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/CreateGeneratedTemplateResult.cpp new file mode 100644 index 00000000000..f72b1958dc9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/CreateGeneratedTemplateResult.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +CreateGeneratedTemplateResult::CreateGeneratedTemplateResult() +{ +} + +CreateGeneratedTemplateResult::CreateGeneratedTemplateResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateGeneratedTemplateResult& CreateGeneratedTemplateResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "CreateGeneratedTemplateResult")) + { + resultNode = rootNode.FirstChild("CreateGeneratedTemplateResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode generatedTemplateIdNode = resultNode.FirstChild("GeneratedTemplateId"); + if(!generatedTemplateIdNode.IsNull()) + { + m_generatedTemplateId = Aws::Utils::Xml::DecodeEscapedXmlText(generatedTemplateIdNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::CreateGeneratedTemplateResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/DeleteGeneratedTemplateRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/DeleteGeneratedTemplateRequest.cpp new file mode 100644 index 00000000000..214821512df --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/DeleteGeneratedTemplateRequest.cpp @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils; + +DeleteGeneratedTemplateRequest::DeleteGeneratedTemplateRequest() : + m_generatedTemplateNameHasBeenSet(false) +{ +} + +Aws::String DeleteGeneratedTemplateRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=DeleteGeneratedTemplate&"; + if(m_generatedTemplateNameHasBeenSet) + { + ss << "GeneratedTemplateName=" << StringUtils::URLEncode(m_generatedTemplateName.c_str()) << "&"; + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void DeleteGeneratedTemplateRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeGeneratedTemplateRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeGeneratedTemplateRequest.cpp new file mode 100644 index 00000000000..e809ee8ff6b --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeGeneratedTemplateRequest.cpp @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils; + +DescribeGeneratedTemplateRequest::DescribeGeneratedTemplateRequest() : + m_generatedTemplateNameHasBeenSet(false) +{ +} + +Aws::String DescribeGeneratedTemplateRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=DescribeGeneratedTemplate&"; + if(m_generatedTemplateNameHasBeenSet) + { + ss << "GeneratedTemplateName=" << StringUtils::URLEncode(m_generatedTemplateName.c_str()) << "&"; + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void DescribeGeneratedTemplateRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeGeneratedTemplateResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeGeneratedTemplateResult.cpp new file mode 100644 index 00000000000..76742c66870 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeGeneratedTemplateResult.cpp @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +DescribeGeneratedTemplateResult::DescribeGeneratedTemplateResult() : + m_status(GeneratedTemplateStatus::NOT_SET), + m_totalWarnings(0) +{ +} + +DescribeGeneratedTemplateResult::DescribeGeneratedTemplateResult(const Aws::AmazonWebServiceResult& result) : + m_status(GeneratedTemplateStatus::NOT_SET), + m_totalWarnings(0) +{ + *this = result; +} + +DescribeGeneratedTemplateResult& DescribeGeneratedTemplateResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeGeneratedTemplateResult")) + { + resultNode = rootNode.FirstChild("DescribeGeneratedTemplateResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode generatedTemplateIdNode = resultNode.FirstChild("GeneratedTemplateId"); + if(!generatedTemplateIdNode.IsNull()) + { + m_generatedTemplateId = Aws::Utils::Xml::DecodeEscapedXmlText(generatedTemplateIdNode.GetText()); + } + XmlNode generatedTemplateNameNode = resultNode.FirstChild("GeneratedTemplateName"); + if(!generatedTemplateNameNode.IsNull()) + { + m_generatedTemplateName = Aws::Utils::Xml::DecodeEscapedXmlText(generatedTemplateNameNode.GetText()); + } + XmlNode resourcesNode = resultNode.FirstChild("Resources"); + if(!resourcesNode.IsNull()) + { + XmlNode resourcesMember = resourcesNode.FirstChild("member"); + while(!resourcesMember.IsNull()) + { + m_resources.push_back(resourcesMember); + resourcesMember = resourcesMember.NextNode("member"); + } + + } + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_status = GeneratedTemplateStatusMapper::GetGeneratedTemplateStatusForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()).c_str()).c_str()); + } + XmlNode statusReasonNode = resultNode.FirstChild("StatusReason"); + if(!statusReasonNode.IsNull()) + { + m_statusReason = Aws::Utils::Xml::DecodeEscapedXmlText(statusReasonNode.GetText()); + } + XmlNode creationTimeNode = resultNode.FirstChild("CreationTime"); + if(!creationTimeNode.IsNull()) + { + m_creationTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(creationTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + } + XmlNode lastUpdatedTimeNode = resultNode.FirstChild("LastUpdatedTime"); + if(!lastUpdatedTimeNode.IsNull()) + { + m_lastUpdatedTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(lastUpdatedTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + } + XmlNode progressNode = resultNode.FirstChild("Progress"); + if(!progressNode.IsNull()) + { + m_progress = progressNode; + } + XmlNode stackIdNode = resultNode.FirstChild("StackId"); + if(!stackIdNode.IsNull()) + { + m_stackId = Aws::Utils::Xml::DecodeEscapedXmlText(stackIdNode.GetText()); + } + XmlNode templateConfigurationNode = resultNode.FirstChild("TemplateConfiguration"); + if(!templateConfigurationNode.IsNull()) + { + m_templateConfiguration = templateConfigurationNode; + } + XmlNode totalWarningsNode = resultNode.FirstChild("TotalWarnings"); + if(!totalWarningsNode.IsNull()) + { + m_totalWarnings = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(totalWarningsNode.GetText()).c_str()).c_str()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::DescribeGeneratedTemplateResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeResourceScanRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeResourceScanRequest.cpp new file mode 100644 index 00000000000..cf31a8f0573 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeResourceScanRequest.cpp @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils; + +DescribeResourceScanRequest::DescribeResourceScanRequest() : + m_resourceScanIdHasBeenSet(false) +{ +} + +Aws::String DescribeResourceScanRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=DescribeResourceScan&"; + if(m_resourceScanIdHasBeenSet) + { + ss << "ResourceScanId=" << StringUtils::URLEncode(m_resourceScanId.c_str()) << "&"; + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void DescribeResourceScanRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeResourceScanResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeResourceScanResult.cpp new file mode 100644 index 00000000000..83ed663dd15 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/DescribeResourceScanResult.cpp @@ -0,0 +1,108 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +DescribeResourceScanResult::DescribeResourceScanResult() : + m_status(ResourceScanStatus::NOT_SET), + m_percentageCompleted(0.0), + m_resourcesScanned(0), + m_resourcesRead(0) +{ +} + +DescribeResourceScanResult::DescribeResourceScanResult(const Aws::AmazonWebServiceResult& result) : + m_status(ResourceScanStatus::NOT_SET), + m_percentageCompleted(0.0), + m_resourcesScanned(0), + m_resourcesRead(0) +{ + *this = result; +} + +DescribeResourceScanResult& DescribeResourceScanResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeResourceScanResult")) + { + resultNode = rootNode.FirstChild("DescribeResourceScanResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode resourceScanIdNode = resultNode.FirstChild("ResourceScanId"); + if(!resourceScanIdNode.IsNull()) + { + m_resourceScanId = Aws::Utils::Xml::DecodeEscapedXmlText(resourceScanIdNode.GetText()); + } + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_status = ResourceScanStatusMapper::GetResourceScanStatusForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()).c_str()).c_str()); + } + XmlNode statusReasonNode = resultNode.FirstChild("StatusReason"); + if(!statusReasonNode.IsNull()) + { + m_statusReason = Aws::Utils::Xml::DecodeEscapedXmlText(statusReasonNode.GetText()); + } + XmlNode startTimeNode = resultNode.FirstChild("StartTime"); + if(!startTimeNode.IsNull()) + { + m_startTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(startTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + } + XmlNode endTimeNode = resultNode.FirstChild("EndTime"); + if(!endTimeNode.IsNull()) + { + m_endTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(endTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + } + XmlNode percentageCompletedNode = resultNode.FirstChild("PercentageCompleted"); + if(!percentageCompletedNode.IsNull()) + { + m_percentageCompleted = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(percentageCompletedNode.GetText()).c_str()).c_str()); + } + XmlNode resourceTypesNode = resultNode.FirstChild("ResourceTypes"); + if(!resourceTypesNode.IsNull()) + { + XmlNode resourceTypesMember = resourceTypesNode.FirstChild("member"); + while(!resourceTypesMember.IsNull()) + { + m_resourceTypes.push_back(resourceTypesMember.GetText()); + resourceTypesMember = resourceTypesMember.NextNode("member"); + } + + } + XmlNode resourcesScannedNode = resultNode.FirstChild("ResourcesScanned"); + if(!resourcesScannedNode.IsNull()) + { + m_resourcesScanned = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(resourcesScannedNode.GetText()).c_str()).c_str()); + } + XmlNode resourcesReadNode = resultNode.FirstChild("ResourcesRead"); + if(!resourcesReadNode.IsNull()) + { + m_resourcesRead = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(resourcesReadNode.GetText()).c_str()).c_str()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::DescribeResourceScanResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateDeletionPolicy.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateDeletionPolicy.cpp new file mode 100644 index 00000000000..d8ba031d59b --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateDeletionPolicy.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 CloudFormation + { + namespace Model + { + namespace GeneratedTemplateDeletionPolicyMapper + { + + static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static const int RETAIN_HASH = HashingUtils::HashString("RETAIN"); + + + GeneratedTemplateDeletionPolicy GetGeneratedTemplateDeletionPolicyForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == DELETE__HASH) + { + return GeneratedTemplateDeletionPolicy::DELETE_; + } + else if (hashCode == RETAIN_HASH) + { + return GeneratedTemplateDeletionPolicy::RETAIN; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GeneratedTemplateDeletionPolicy::NOT_SET; + } + + Aws::String GetNameForGeneratedTemplateDeletionPolicy(GeneratedTemplateDeletionPolicy enumValue) + { + switch(enumValue) + { + case GeneratedTemplateDeletionPolicy::NOT_SET: + return {}; + case GeneratedTemplateDeletionPolicy::DELETE_: + return "DELETE"; + case GeneratedTemplateDeletionPolicy::RETAIN: + return "RETAIN"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GeneratedTemplateDeletionPolicyMapper + } // namespace Model + } // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateResourceStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateResourceStatus.cpp new file mode 100644 index 00000000000..57502001ba3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateResourceStatus.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 CloudFormation + { + namespace Model + { + namespace GeneratedTemplateResourceStatusMapper + { + + static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); + + + GeneratedTemplateResourceStatus GetGeneratedTemplateResourceStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PENDING_HASH) + { + return GeneratedTemplateResourceStatus::PENDING; + } + else if (hashCode == IN_PROGRESS_HASH) + { + return GeneratedTemplateResourceStatus::IN_PROGRESS; + } + else if (hashCode == FAILED_HASH) + { + return GeneratedTemplateResourceStatus::FAILED; + } + else if (hashCode == COMPLETE_HASH) + { + return GeneratedTemplateResourceStatus::COMPLETE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GeneratedTemplateResourceStatus::NOT_SET; + } + + Aws::String GetNameForGeneratedTemplateResourceStatus(GeneratedTemplateResourceStatus enumValue) + { + switch(enumValue) + { + case GeneratedTemplateResourceStatus::NOT_SET: + return {}; + case GeneratedTemplateResourceStatus::PENDING: + return "PENDING"; + case GeneratedTemplateResourceStatus::IN_PROGRESS: + return "IN_PROGRESS"; + case GeneratedTemplateResourceStatus::FAILED: + return "FAILED"; + case GeneratedTemplateResourceStatus::COMPLETE: + return "COMPLETE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GeneratedTemplateResourceStatusMapper + } // namespace Model + } // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateStatus.cpp new file mode 100644 index 00000000000..64a19a21e89 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateStatus.cpp @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace CloudFormation + { + namespace Model + { + namespace GeneratedTemplateStatusMapper + { + + static const int CREATE_PENDING_HASH = HashingUtils::HashString("CREATE_PENDING"); + static const int UPDATE_PENDING_HASH = HashingUtils::HashString("UPDATE_PENDING"); + static const int DELETE_PENDING_HASH = HashingUtils::HashString("DELETE_PENDING"); + static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); + static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); + static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); + + + GeneratedTemplateStatus GetGeneratedTemplateStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CREATE_PENDING_HASH) + { + return GeneratedTemplateStatus::CREATE_PENDING; + } + else if (hashCode == UPDATE_PENDING_HASH) + { + return GeneratedTemplateStatus::UPDATE_PENDING; + } + else if (hashCode == DELETE_PENDING_HASH) + { + return GeneratedTemplateStatus::DELETE_PENDING; + } + else if (hashCode == CREATE_IN_PROGRESS_HASH) + { + return GeneratedTemplateStatus::CREATE_IN_PROGRESS; + } + else if (hashCode == UPDATE_IN_PROGRESS_HASH) + { + return GeneratedTemplateStatus::UPDATE_IN_PROGRESS; + } + else if (hashCode == DELETE_IN_PROGRESS_HASH) + { + return GeneratedTemplateStatus::DELETE_IN_PROGRESS; + } + else if (hashCode == FAILED_HASH) + { + return GeneratedTemplateStatus::FAILED; + } + else if (hashCode == COMPLETE_HASH) + { + return GeneratedTemplateStatus::COMPLETE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GeneratedTemplateStatus::NOT_SET; + } + + Aws::String GetNameForGeneratedTemplateStatus(GeneratedTemplateStatus enumValue) + { + switch(enumValue) + { + case GeneratedTemplateStatus::NOT_SET: + return {}; + case GeneratedTemplateStatus::CREATE_PENDING: + return "CREATE_PENDING"; + case GeneratedTemplateStatus::UPDATE_PENDING: + return "UPDATE_PENDING"; + case GeneratedTemplateStatus::DELETE_PENDING: + return "DELETE_PENDING"; + case GeneratedTemplateStatus::CREATE_IN_PROGRESS: + return "CREATE_IN_PROGRESS"; + case GeneratedTemplateStatus::UPDATE_IN_PROGRESS: + return "UPDATE_IN_PROGRESS"; + case GeneratedTemplateStatus::DELETE_IN_PROGRESS: + return "DELETE_IN_PROGRESS"; + case GeneratedTemplateStatus::FAILED: + return "FAILED"; + case GeneratedTemplateStatus::COMPLETE: + return "COMPLETE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GeneratedTemplateStatusMapper + } // namespace Model + } // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateUpdateReplacePolicy.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateUpdateReplacePolicy.cpp new file mode 100644 index 00000000000..f1d83aa108b --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/GeneratedTemplateUpdateReplacePolicy.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 CloudFormation + { + namespace Model + { + namespace GeneratedTemplateUpdateReplacePolicyMapper + { + + static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static const int RETAIN_HASH = HashingUtils::HashString("RETAIN"); + + + GeneratedTemplateUpdateReplacePolicy GetGeneratedTemplateUpdateReplacePolicyForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == DELETE__HASH) + { + return GeneratedTemplateUpdateReplacePolicy::DELETE_; + } + else if (hashCode == RETAIN_HASH) + { + return GeneratedTemplateUpdateReplacePolicy::RETAIN; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GeneratedTemplateUpdateReplacePolicy::NOT_SET; + } + + Aws::String GetNameForGeneratedTemplateUpdateReplacePolicy(GeneratedTemplateUpdateReplacePolicy enumValue) + { + switch(enumValue) + { + case GeneratedTemplateUpdateReplacePolicy::NOT_SET: + return {}; + case GeneratedTemplateUpdateReplacePolicy::DELETE_: + return "DELETE"; + case GeneratedTemplateUpdateReplacePolicy::RETAIN: + return "RETAIN"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GeneratedTemplateUpdateReplacePolicyMapper + } // namespace Model + } // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/GetGeneratedTemplateRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/GetGeneratedTemplateRequest.cpp new file mode 100644 index 00000000000..28194193b57 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/GetGeneratedTemplateRequest.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils; + +GetGeneratedTemplateRequest::GetGeneratedTemplateRequest() : + m_format(TemplateFormat::NOT_SET), + m_formatHasBeenSet(false), + m_generatedTemplateNameHasBeenSet(false) +{ +} + +Aws::String GetGeneratedTemplateRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=GetGeneratedTemplate&"; + if(m_formatHasBeenSet) + { + ss << "Format=" << TemplateFormatMapper::GetNameForTemplateFormat(m_format) << "&"; + } + + if(m_generatedTemplateNameHasBeenSet) + { + ss << "GeneratedTemplateName=" << StringUtils::URLEncode(m_generatedTemplateName.c_str()) << "&"; + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void GetGeneratedTemplateRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/GetGeneratedTemplateResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/GetGeneratedTemplateResult.cpp new file mode 100644 index 00000000000..fc591716ffb --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/GetGeneratedTemplateResult.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +GetGeneratedTemplateResult::GetGeneratedTemplateResult() : + m_status(GeneratedTemplateStatus::NOT_SET) +{ +} + +GetGeneratedTemplateResult::GetGeneratedTemplateResult(const Aws::AmazonWebServiceResult& result) : + m_status(GeneratedTemplateStatus::NOT_SET) +{ + *this = result; +} + +GetGeneratedTemplateResult& GetGeneratedTemplateResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "GetGeneratedTemplateResult")) + { + resultNode = rootNode.FirstChild("GetGeneratedTemplateResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_status = GeneratedTemplateStatusMapper::GetGeneratedTemplateStatusForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()).c_str()).c_str()); + } + XmlNode templateBodyNode = resultNode.FirstChild("TemplateBody"); + if(!templateBodyNode.IsNull()) + { + m_templateBody = Aws::Utils::Xml::DecodeEscapedXmlText(templateBodyNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::GetGeneratedTemplateResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ListGeneratedTemplatesRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListGeneratedTemplatesRequest.cpp new file mode 100644 index 00000000000..5b1e4930bc6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListGeneratedTemplatesRequest.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils; + +ListGeneratedTemplatesRequest::ListGeneratedTemplatesRequest() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListGeneratedTemplatesRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=ListGeneratedTemplates&"; + if(m_nextTokenHasBeenSet) + { + ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&"; + } + + if(m_maxResultsHasBeenSet) + { + ss << "MaxResults=" << m_maxResults << "&"; + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void ListGeneratedTemplatesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ListGeneratedTemplatesResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListGeneratedTemplatesResult.cpp new file mode 100644 index 00000000000..584ffe9a153 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListGeneratedTemplatesResult.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 +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +ListGeneratedTemplatesResult::ListGeneratedTemplatesResult() +{ +} + +ListGeneratedTemplatesResult::ListGeneratedTemplatesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListGeneratedTemplatesResult& ListGeneratedTemplatesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "ListGeneratedTemplatesResult")) + { + resultNode = rootNode.FirstChild("ListGeneratedTemplatesResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode summariesNode = resultNode.FirstChild("Summaries"); + if(!summariesNode.IsNull()) + { + XmlNode summariesMember = summariesNode.FirstChild("member"); + while(!summariesMember.IsNull()) + { + m_summaries.push_back(summariesMember); + summariesMember = summariesMember.NextNode("member"); + } + + } + XmlNode nextTokenNode = resultNode.FirstChild("NextToken"); + if(!nextTokenNode.IsNull()) + { + m_nextToken = Aws::Utils::Xml::DecodeEscapedXmlText(nextTokenNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::ListGeneratedTemplatesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanRelatedResourcesRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanRelatedResourcesRequest.cpp new file mode 100644 index 00000000000..ea1d263f379 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanRelatedResourcesRequest.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::CloudFormation::Model; +using namespace Aws::Utils; + +ListResourceScanRelatedResourcesRequest::ListResourceScanRelatedResourcesRequest() : + m_resourceScanIdHasBeenSet(false), + m_resourcesHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListResourceScanRelatedResourcesRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=ListResourceScanRelatedResources&"; + if(m_resourceScanIdHasBeenSet) + { + ss << "ResourceScanId=" << StringUtils::URLEncode(m_resourceScanId.c_str()) << "&"; + } + + if(m_resourcesHasBeenSet) + { + unsigned resourcesCount = 1; + for(auto& item : m_resources) + { + item.OutputToStream(ss, "Resources.member.", resourcesCount, ""); + resourcesCount++; + } + } + + if(m_nextTokenHasBeenSet) + { + ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&"; + } + + if(m_maxResultsHasBeenSet) + { + ss << "MaxResults=" << m_maxResults << "&"; + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void ListResourceScanRelatedResourcesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanRelatedResourcesResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanRelatedResourcesResult.cpp new file mode 100644 index 00000000000..5a1ff434f27 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanRelatedResourcesResult.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 +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +ListResourceScanRelatedResourcesResult::ListResourceScanRelatedResourcesResult() +{ +} + +ListResourceScanRelatedResourcesResult::ListResourceScanRelatedResourcesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListResourceScanRelatedResourcesResult& ListResourceScanRelatedResourcesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "ListResourceScanRelatedResourcesResult")) + { + resultNode = rootNode.FirstChild("ListResourceScanRelatedResourcesResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode relatedResourcesNode = resultNode.FirstChild("RelatedResources"); + if(!relatedResourcesNode.IsNull()) + { + XmlNode relatedResourcesMember = relatedResourcesNode.FirstChild("member"); + while(!relatedResourcesMember.IsNull()) + { + m_relatedResources.push_back(relatedResourcesMember); + relatedResourcesMember = relatedResourcesMember.NextNode("member"); + } + + } + XmlNode nextTokenNode = resultNode.FirstChild("NextToken"); + if(!nextTokenNode.IsNull()) + { + m_nextToken = Aws::Utils::Xml::DecodeEscapedXmlText(nextTokenNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::ListResourceScanRelatedResourcesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanResourcesRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanResourcesRequest.cpp new file mode 100644 index 00000000000..0dd4900095f --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanResourcesRequest.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils; + +ListResourceScanResourcesRequest::ListResourceScanResourcesRequest() : + m_resourceScanIdHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false), + m_resourceTypePrefixHasBeenSet(false), + m_tagKeyHasBeenSet(false), + m_tagValueHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListResourceScanResourcesRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=ListResourceScanResources&"; + if(m_resourceScanIdHasBeenSet) + { + ss << "ResourceScanId=" << StringUtils::URLEncode(m_resourceScanId.c_str()) << "&"; + } + + if(m_resourceIdentifierHasBeenSet) + { + ss << "ResourceIdentifier=" << StringUtils::URLEncode(m_resourceIdentifier.c_str()) << "&"; + } + + if(m_resourceTypePrefixHasBeenSet) + { + ss << "ResourceTypePrefix=" << StringUtils::URLEncode(m_resourceTypePrefix.c_str()) << "&"; + } + + if(m_tagKeyHasBeenSet) + { + ss << "TagKey=" << StringUtils::URLEncode(m_tagKey.c_str()) << "&"; + } + + if(m_tagValueHasBeenSet) + { + ss << "TagValue=" << StringUtils::URLEncode(m_tagValue.c_str()) << "&"; + } + + if(m_nextTokenHasBeenSet) + { + ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&"; + } + + if(m_maxResultsHasBeenSet) + { + ss << "MaxResults=" << m_maxResults << "&"; + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void ListResourceScanResourcesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanResourcesResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanResourcesResult.cpp new file mode 100644 index 00000000000..f604656f1fa --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScanResourcesResult.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 +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +ListResourceScanResourcesResult::ListResourceScanResourcesResult() +{ +} + +ListResourceScanResourcesResult::ListResourceScanResourcesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListResourceScanResourcesResult& ListResourceScanResourcesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "ListResourceScanResourcesResult")) + { + resultNode = rootNode.FirstChild("ListResourceScanResourcesResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode resourcesNode = resultNode.FirstChild("Resources"); + if(!resourcesNode.IsNull()) + { + XmlNode resourcesMember = resourcesNode.FirstChild("member"); + while(!resourcesMember.IsNull()) + { + m_resources.push_back(resourcesMember); + resourcesMember = resourcesMember.NextNode("member"); + } + + } + XmlNode nextTokenNode = resultNode.FirstChild("NextToken"); + if(!nextTokenNode.IsNull()) + { + m_nextToken = Aws::Utils::Xml::DecodeEscapedXmlText(nextTokenNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::ListResourceScanResourcesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScansRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScansRequest.cpp new file mode 100644 index 00000000000..a6a997a484f --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScansRequest.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils; + +ListResourceScansRequest::ListResourceScansRequest() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListResourceScansRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=ListResourceScans&"; + if(m_nextTokenHasBeenSet) + { + ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&"; + } + + if(m_maxResultsHasBeenSet) + { + ss << "MaxResults=" << m_maxResults << "&"; + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void ListResourceScansRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScansResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScansResult.cpp new file mode 100644 index 00000000000..0e67bbe73c0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ListResourceScansResult.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 +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +ListResourceScansResult::ListResourceScansResult() +{ +} + +ListResourceScansResult::ListResourceScansResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListResourceScansResult& ListResourceScansResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "ListResourceScansResult")) + { + resultNode = rootNode.FirstChild("ListResourceScansResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode resourceScanSummariesNode = resultNode.FirstChild("ResourceScanSummaries"); + if(!resourceScanSummariesNode.IsNull()) + { + XmlNode resourceScanSummariesMember = resourceScanSummariesNode.FirstChild("member"); + while(!resourceScanSummariesMember.IsNull()) + { + m_resourceScanSummaries.push_back(resourceScanSummariesMember); + resourceScanSummariesMember = resourceScanSummariesMember.NextNode("member"); + } + + } + XmlNode nextTokenNode = resultNode.FirstChild("NextToken"); + if(!nextTokenNode.IsNull()) + { + m_nextToken = Aws::Utils::Xml::DecodeEscapedXmlText(nextTokenNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::ListResourceScansResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceDefinition.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceDefinition.cpp new file mode 100644 index 00000000000..e0038fe32e1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceDefinition.cpp @@ -0,0 +1,131 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +ResourceDefinition::ResourceDefinition() : + m_resourceTypeHasBeenSet(false), + m_logicalResourceIdHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false) +{ +} + +ResourceDefinition::ResourceDefinition(const XmlNode& xmlNode) : + m_resourceTypeHasBeenSet(false), + m_logicalResourceIdHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false) +{ + *this = xmlNode; +} + +ResourceDefinition& ResourceDefinition::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode resourceTypeNode = resultNode.FirstChild("ResourceType"); + if(!resourceTypeNode.IsNull()) + { + m_resourceType = Aws::Utils::Xml::DecodeEscapedXmlText(resourceTypeNode.GetText()); + m_resourceTypeHasBeenSet = true; + } + XmlNode logicalResourceIdNode = resultNode.FirstChild("LogicalResourceId"); + if(!logicalResourceIdNode.IsNull()) + { + m_logicalResourceId = Aws::Utils::Xml::DecodeEscapedXmlText(logicalResourceIdNode.GetText()); + m_logicalResourceIdHasBeenSet = true; + } + XmlNode resourceIdentifierNode = resultNode.FirstChild("ResourceIdentifier"); + + if(!resourceIdentifierNode.IsNull()) + { + XmlNode resourceIdentifierEntry = resourceIdentifierNode.FirstChild("entry"); + while(!resourceIdentifierEntry.IsNull()) + { + XmlNode keyNode = resourceIdentifierEntry.FirstChild("key"); + XmlNode valueNode = resourceIdentifierEntry.FirstChild("value"); + m_resourceIdentifier[keyNode.GetText()] = + valueNode.GetText(); + resourceIdentifierEntry = resourceIdentifierEntry.NextNode("entry"); + } + + m_resourceIdentifierHasBeenSet = true; + } + } + + return *this; +} + +void ResourceDefinition::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_resourceTypeHasBeenSet) + { + oStream << location << index << locationValue << ".ResourceType=" << StringUtils::URLEncode(m_resourceType.c_str()) << "&"; + } + + if(m_logicalResourceIdHasBeenSet) + { + oStream << location << index << locationValue << ".LogicalResourceId=" << StringUtils::URLEncode(m_logicalResourceId.c_str()) << "&"; + } + + if(m_resourceIdentifierHasBeenSet) + { + unsigned resourceIdentifierIdx = 1; + for(auto& item : m_resourceIdentifier) + { + oStream << location << index << locationValue << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << index << locationValue << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + resourceIdentifierIdx++; + } + } + +} + +void ResourceDefinition::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_resourceTypeHasBeenSet) + { + oStream << location << ".ResourceType=" << StringUtils::URLEncode(m_resourceType.c_str()) << "&"; + } + if(m_logicalResourceIdHasBeenSet) + { + oStream << location << ".LogicalResourceId=" << StringUtils::URLEncode(m_logicalResourceId.c_str()) << "&"; + } + if(m_resourceIdentifierHasBeenSet) + { + unsigned resourceIdentifierIdx = 1; + for(auto& item : m_resourceIdentifier) + { + oStream << location << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + resourceIdentifierIdx++; + } + + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceDetail.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceDetail.cpp new file mode 100644 index 00000000000..16cace1095e --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceDetail.cpp @@ -0,0 +1,202 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +ResourceDetail::ResourceDetail() : + m_resourceTypeHasBeenSet(false), + m_logicalResourceIdHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false), + m_resourceStatus(GeneratedTemplateResourceStatus::NOT_SET), + m_resourceStatusHasBeenSet(false), + m_resourceStatusReasonHasBeenSet(false), + m_warningsHasBeenSet(false) +{ +} + +ResourceDetail::ResourceDetail(const XmlNode& xmlNode) : + m_resourceTypeHasBeenSet(false), + m_logicalResourceIdHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false), + m_resourceStatus(GeneratedTemplateResourceStatus::NOT_SET), + m_resourceStatusHasBeenSet(false), + m_resourceStatusReasonHasBeenSet(false), + m_warningsHasBeenSet(false) +{ + *this = xmlNode; +} + +ResourceDetail& ResourceDetail::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode resourceTypeNode = resultNode.FirstChild("ResourceType"); + if(!resourceTypeNode.IsNull()) + { + m_resourceType = Aws::Utils::Xml::DecodeEscapedXmlText(resourceTypeNode.GetText()); + m_resourceTypeHasBeenSet = true; + } + XmlNode logicalResourceIdNode = resultNode.FirstChild("LogicalResourceId"); + if(!logicalResourceIdNode.IsNull()) + { + m_logicalResourceId = Aws::Utils::Xml::DecodeEscapedXmlText(logicalResourceIdNode.GetText()); + m_logicalResourceIdHasBeenSet = true; + } + XmlNode resourceIdentifierNode = resultNode.FirstChild("ResourceIdentifier"); + + if(!resourceIdentifierNode.IsNull()) + { + XmlNode resourceIdentifierEntry = resourceIdentifierNode.FirstChild("entry"); + while(!resourceIdentifierEntry.IsNull()) + { + XmlNode keyNode = resourceIdentifierEntry.FirstChild("key"); + XmlNode valueNode = resourceIdentifierEntry.FirstChild("value"); + m_resourceIdentifier[keyNode.GetText()] = + valueNode.GetText(); + resourceIdentifierEntry = resourceIdentifierEntry.NextNode("entry"); + } + + m_resourceIdentifierHasBeenSet = true; + } + XmlNode resourceStatusNode = resultNode.FirstChild("ResourceStatus"); + if(!resourceStatusNode.IsNull()) + { + m_resourceStatus = GeneratedTemplateResourceStatusMapper::GetGeneratedTemplateResourceStatusForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(resourceStatusNode.GetText()).c_str()).c_str()); + m_resourceStatusHasBeenSet = true; + } + XmlNode resourceStatusReasonNode = resultNode.FirstChild("ResourceStatusReason"); + if(!resourceStatusReasonNode.IsNull()) + { + m_resourceStatusReason = Aws::Utils::Xml::DecodeEscapedXmlText(resourceStatusReasonNode.GetText()); + m_resourceStatusReasonHasBeenSet = true; + } + XmlNode warningsNode = resultNode.FirstChild("Warnings"); + if(!warningsNode.IsNull()) + { + XmlNode warningsMember = warningsNode.FirstChild("member"); + while(!warningsMember.IsNull()) + { + m_warnings.push_back(warningsMember); + warningsMember = warningsMember.NextNode("member"); + } + + m_warningsHasBeenSet = true; + } + } + + return *this; +} + +void ResourceDetail::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_resourceTypeHasBeenSet) + { + oStream << location << index << locationValue << ".ResourceType=" << StringUtils::URLEncode(m_resourceType.c_str()) << "&"; + } + + if(m_logicalResourceIdHasBeenSet) + { + oStream << location << index << locationValue << ".LogicalResourceId=" << StringUtils::URLEncode(m_logicalResourceId.c_str()) << "&"; + } + + if(m_resourceIdentifierHasBeenSet) + { + unsigned resourceIdentifierIdx = 1; + for(auto& item : m_resourceIdentifier) + { + oStream << location << index << locationValue << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << index << locationValue << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + resourceIdentifierIdx++; + } + } + + if(m_resourceStatusHasBeenSet) + { + oStream << location << index << locationValue << ".ResourceStatus=" << GeneratedTemplateResourceStatusMapper::GetNameForGeneratedTemplateResourceStatus(m_resourceStatus) << "&"; + } + + if(m_resourceStatusReasonHasBeenSet) + { + oStream << location << index << locationValue << ".ResourceStatusReason=" << StringUtils::URLEncode(m_resourceStatusReason.c_str()) << "&"; + } + + if(m_warningsHasBeenSet) + { + unsigned warningsIdx = 1; + for(auto& item : m_warnings) + { + Aws::StringStream warningsSs; + warningsSs << location << index << locationValue << ".Warnings.member." << warningsIdx++; + item.OutputToStream(oStream, warningsSs.str().c_str()); + } + } + +} + +void ResourceDetail::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_resourceTypeHasBeenSet) + { + oStream << location << ".ResourceType=" << StringUtils::URLEncode(m_resourceType.c_str()) << "&"; + } + if(m_logicalResourceIdHasBeenSet) + { + oStream << location << ".LogicalResourceId=" << StringUtils::URLEncode(m_logicalResourceId.c_str()) << "&"; + } + if(m_resourceIdentifierHasBeenSet) + { + unsigned resourceIdentifierIdx = 1; + for(auto& item : m_resourceIdentifier) + { + oStream << location << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + resourceIdentifierIdx++; + } + + } + if(m_resourceStatusHasBeenSet) + { + oStream << location << ".ResourceStatus=" << GeneratedTemplateResourceStatusMapper::GetNameForGeneratedTemplateResourceStatus(m_resourceStatus) << "&"; + } + if(m_resourceStatusReasonHasBeenSet) + { + oStream << location << ".ResourceStatusReason=" << StringUtils::URLEncode(m_resourceStatusReason.c_str()) << "&"; + } + if(m_warningsHasBeenSet) + { + unsigned warningsIdx = 1; + for(auto& item : m_warnings) + { + Aws::StringStream warningsSs; + warningsSs << location << ".Warnings.member." << warningsIdx++; + item.OutputToStream(oStream, warningsSs.str().c_str()); + } + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceScanStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceScanStatus.cpp new file mode 100644 index 00000000000..839d143df3e --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceScanStatus.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 CloudFormation + { + namespace Model + { + namespace ResourceScanStatusMapper + { + + static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); + static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + + + ResourceScanStatus GetResourceScanStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == IN_PROGRESS_HASH) + { + return ResourceScanStatus::IN_PROGRESS; + } + else if (hashCode == FAILED_HASH) + { + return ResourceScanStatus::FAILED; + } + else if (hashCode == COMPLETE_HASH) + { + return ResourceScanStatus::COMPLETE; + } + else if (hashCode == EXPIRED_HASH) + { + return ResourceScanStatus::EXPIRED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ResourceScanStatus::NOT_SET; + } + + Aws::String GetNameForResourceScanStatus(ResourceScanStatus enumValue) + { + switch(enumValue) + { + case ResourceScanStatus::NOT_SET: + return {}; + case ResourceScanStatus::IN_PROGRESS: + return "IN_PROGRESS"; + case ResourceScanStatus::FAILED: + return "FAILED"; + case ResourceScanStatus::COMPLETE: + return "COMPLETE"; + case ResourceScanStatus::EXPIRED: + return "EXPIRED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ResourceScanStatusMapper + } // namespace Model + } // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceScanSummary.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceScanSummary.cpp new file mode 100644 index 00000000000..a9b418b0fff --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceScanSummary.cpp @@ -0,0 +1,159 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +ResourceScanSummary::ResourceScanSummary() : + m_resourceScanIdHasBeenSet(false), + m_status(ResourceScanStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusReasonHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_percentageCompleted(0.0), + m_percentageCompletedHasBeenSet(false) +{ +} + +ResourceScanSummary::ResourceScanSummary(const XmlNode& xmlNode) : + m_resourceScanIdHasBeenSet(false), + m_status(ResourceScanStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusReasonHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_percentageCompleted(0.0), + m_percentageCompletedHasBeenSet(false) +{ + *this = xmlNode; +} + +ResourceScanSummary& ResourceScanSummary::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode resourceScanIdNode = resultNode.FirstChild("ResourceScanId"); + if(!resourceScanIdNode.IsNull()) + { + m_resourceScanId = Aws::Utils::Xml::DecodeEscapedXmlText(resourceScanIdNode.GetText()); + m_resourceScanIdHasBeenSet = true; + } + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_status = ResourceScanStatusMapper::GetResourceScanStatusForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()).c_str()).c_str()); + m_statusHasBeenSet = true; + } + XmlNode statusReasonNode = resultNode.FirstChild("StatusReason"); + if(!statusReasonNode.IsNull()) + { + m_statusReason = Aws::Utils::Xml::DecodeEscapedXmlText(statusReasonNode.GetText()); + m_statusReasonHasBeenSet = true; + } + XmlNode startTimeNode = resultNode.FirstChild("StartTime"); + if(!startTimeNode.IsNull()) + { + m_startTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(startTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_startTimeHasBeenSet = true; + } + XmlNode endTimeNode = resultNode.FirstChild("EndTime"); + if(!endTimeNode.IsNull()) + { + m_endTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(endTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_endTimeHasBeenSet = true; + } + XmlNode percentageCompletedNode = resultNode.FirstChild("PercentageCompleted"); + if(!percentageCompletedNode.IsNull()) + { + m_percentageCompleted = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(percentageCompletedNode.GetText()).c_str()).c_str()); + m_percentageCompletedHasBeenSet = true; + } + } + + return *this; +} + +void ResourceScanSummary::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_resourceScanIdHasBeenSet) + { + oStream << location << index << locationValue << ".ResourceScanId=" << StringUtils::URLEncode(m_resourceScanId.c_str()) << "&"; + } + + if(m_statusHasBeenSet) + { + oStream << location << index << locationValue << ".Status=" << ResourceScanStatusMapper::GetNameForResourceScanStatus(m_status) << "&"; + } + + if(m_statusReasonHasBeenSet) + { + oStream << location << index << locationValue << ".StatusReason=" << StringUtils::URLEncode(m_statusReason.c_str()) << "&"; + } + + if(m_startTimeHasBeenSet) + { + oStream << location << index << locationValue << ".StartTime=" << StringUtils::URLEncode(m_startTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + + if(m_endTimeHasBeenSet) + { + oStream << location << index << locationValue << ".EndTime=" << StringUtils::URLEncode(m_endTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + + if(m_percentageCompletedHasBeenSet) + { + oStream << location << index << locationValue << ".PercentageCompleted=" << StringUtils::URLEncode(m_percentageCompleted) << "&"; + } + +} + +void ResourceScanSummary::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_resourceScanIdHasBeenSet) + { + oStream << location << ".ResourceScanId=" << StringUtils::URLEncode(m_resourceScanId.c_str()) << "&"; + } + if(m_statusHasBeenSet) + { + oStream << location << ".Status=" << ResourceScanStatusMapper::GetNameForResourceScanStatus(m_status) << "&"; + } + if(m_statusReasonHasBeenSet) + { + oStream << location << ".StatusReason=" << StringUtils::URLEncode(m_statusReason.c_str()) << "&"; + } + if(m_startTimeHasBeenSet) + { + oStream << location << ".StartTime=" << StringUtils::URLEncode(m_startTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + if(m_endTimeHasBeenSet) + { + oStream << location << ".EndTime=" << StringUtils::URLEncode(m_endTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + if(m_percentageCompletedHasBeenSet) + { + oStream << location << ".PercentageCompleted=" << StringUtils::URLEncode(m_percentageCompleted) << "&"; + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ScannedResource.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ScannedResource.cpp new file mode 100644 index 00000000000..2aca5409053 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ScannedResource.cpp @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +ScannedResource::ScannedResource() : + m_resourceTypeHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false), + m_managedByStack(false), + m_managedByStackHasBeenSet(false) +{ +} + +ScannedResource::ScannedResource(const XmlNode& xmlNode) : + m_resourceTypeHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false), + m_managedByStack(false), + m_managedByStackHasBeenSet(false) +{ + *this = xmlNode; +} + +ScannedResource& ScannedResource::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode resourceTypeNode = resultNode.FirstChild("ResourceType"); + if(!resourceTypeNode.IsNull()) + { + m_resourceType = Aws::Utils::Xml::DecodeEscapedXmlText(resourceTypeNode.GetText()); + m_resourceTypeHasBeenSet = true; + } + XmlNode resourceIdentifierNode = resultNode.FirstChild("ResourceIdentifier"); + + if(!resourceIdentifierNode.IsNull()) + { + XmlNode resourceIdentifierEntry = resourceIdentifierNode.FirstChild("entry"); + while(!resourceIdentifierEntry.IsNull()) + { + XmlNode keyNode = resourceIdentifierEntry.FirstChild("key"); + XmlNode valueNode = resourceIdentifierEntry.FirstChild("value"); + m_resourceIdentifier[keyNode.GetText()] = + valueNode.GetText(); + resourceIdentifierEntry = resourceIdentifierEntry.NextNode("entry"); + } + + m_resourceIdentifierHasBeenSet = true; + } + XmlNode managedByStackNode = resultNode.FirstChild("ManagedByStack"); + if(!managedByStackNode.IsNull()) + { + m_managedByStack = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(managedByStackNode.GetText()).c_str()).c_str()); + m_managedByStackHasBeenSet = true; + } + } + + return *this; +} + +void ScannedResource::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_resourceTypeHasBeenSet) + { + oStream << location << index << locationValue << ".ResourceType=" << StringUtils::URLEncode(m_resourceType.c_str()) << "&"; + } + + if(m_resourceIdentifierHasBeenSet) + { + unsigned resourceIdentifierIdx = 1; + for(auto& item : m_resourceIdentifier) + { + oStream << location << index << locationValue << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << index << locationValue << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + resourceIdentifierIdx++; + } + } + + if(m_managedByStackHasBeenSet) + { + oStream << location << index << locationValue << ".ManagedByStack=" << std::boolalpha << m_managedByStack << "&"; + } + +} + +void ScannedResource::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_resourceTypeHasBeenSet) + { + oStream << location << ".ResourceType=" << StringUtils::URLEncode(m_resourceType.c_str()) << "&"; + } + if(m_resourceIdentifierHasBeenSet) + { + unsigned resourceIdentifierIdx = 1; + for(auto& item : m_resourceIdentifier) + { + oStream << location << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + resourceIdentifierIdx++; + } + + } + if(m_managedByStackHasBeenSet) + { + oStream << location << ".ManagedByStack=" << std::boolalpha << m_managedByStack << "&"; + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ScannedResourceIdentifier.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ScannedResourceIdentifier.cpp new file mode 100644 index 00000000000..3bfa612146c --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ScannedResourceIdentifier.cpp @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +ScannedResourceIdentifier::ScannedResourceIdentifier() : + m_resourceTypeHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false) +{ +} + +ScannedResourceIdentifier::ScannedResourceIdentifier(const XmlNode& xmlNode) : + m_resourceTypeHasBeenSet(false), + m_resourceIdentifierHasBeenSet(false) +{ + *this = xmlNode; +} + +ScannedResourceIdentifier& ScannedResourceIdentifier::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode resourceTypeNode = resultNode.FirstChild("ResourceType"); + if(!resourceTypeNode.IsNull()) + { + m_resourceType = Aws::Utils::Xml::DecodeEscapedXmlText(resourceTypeNode.GetText()); + m_resourceTypeHasBeenSet = true; + } + XmlNode resourceIdentifierNode = resultNode.FirstChild("ResourceIdentifier"); + + if(!resourceIdentifierNode.IsNull()) + { + XmlNode resourceIdentifierEntry = resourceIdentifierNode.FirstChild("entry"); + while(!resourceIdentifierEntry.IsNull()) + { + XmlNode keyNode = resourceIdentifierEntry.FirstChild("key"); + XmlNode valueNode = resourceIdentifierEntry.FirstChild("value"); + m_resourceIdentifier[keyNode.GetText()] = + valueNode.GetText(); + resourceIdentifierEntry = resourceIdentifierEntry.NextNode("entry"); + } + + m_resourceIdentifierHasBeenSet = true; + } + } + + return *this; +} + +void ScannedResourceIdentifier::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_resourceTypeHasBeenSet) + { + oStream << location << index << locationValue << ".ResourceType=" << StringUtils::URLEncode(m_resourceType.c_str()) << "&"; + } + + if(m_resourceIdentifierHasBeenSet) + { + unsigned resourceIdentifierIdx = 1; + for(auto& item : m_resourceIdentifier) + { + oStream << location << index << locationValue << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << index << locationValue << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + resourceIdentifierIdx++; + } + } + +} + +void ScannedResourceIdentifier::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_resourceTypeHasBeenSet) + { + oStream << location << ".ResourceType=" << StringUtils::URLEncode(m_resourceType.c_str()) << "&"; + } + if(m_resourceIdentifierHasBeenSet) + { + unsigned resourceIdentifierIdx = 1; + for(auto& item : m_resourceIdentifier) + { + oStream << location << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << ".ResourceIdentifier.entry." << resourceIdentifierIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + resourceIdentifierIdx++; + } + + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StartResourceScanRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StartResourceScanRequest.cpp new file mode 100644 index 00000000000..30911fb214d --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StartResourceScanRequest.cpp @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils; + +StartResourceScanRequest::StartResourceScanRequest() : + m_clientRequestTokenHasBeenSet(false) +{ +} + +Aws::String StartResourceScanRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=StartResourceScan&"; + if(m_clientRequestTokenHasBeenSet) + { + ss << "ClientRequestToken=" << StringUtils::URLEncode(m_clientRequestToken.c_str()) << "&"; + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void StartResourceScanRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StartResourceScanResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StartResourceScanResult.cpp new file mode 100644 index 00000000000..ea96fe5dd39 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StartResourceScanResult.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +StartResourceScanResult::StartResourceScanResult() +{ +} + +StartResourceScanResult::StartResourceScanResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StartResourceScanResult& StartResourceScanResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "StartResourceScanResult")) + { + resultNode = rootNode.FirstChild("StartResourceScanResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode resourceScanIdNode = resultNode.FirstChild("ResourceScanId"); + if(!resourceScanIdNode.IsNull()) + { + m_resourceScanId = Aws::Utils::Xml::DecodeEscapedXmlText(resourceScanIdNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::StartResourceScanResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateConfiguration.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateConfiguration.cpp new file mode 100644 index 00000000000..cee494f3dce --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateConfiguration.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +TemplateConfiguration::TemplateConfiguration() : + m_deletionPolicy(GeneratedTemplateDeletionPolicy::NOT_SET), + m_deletionPolicyHasBeenSet(false), + m_updateReplacePolicy(GeneratedTemplateUpdateReplacePolicy::NOT_SET), + m_updateReplacePolicyHasBeenSet(false) +{ +} + +TemplateConfiguration::TemplateConfiguration(const XmlNode& xmlNode) : + m_deletionPolicy(GeneratedTemplateDeletionPolicy::NOT_SET), + m_deletionPolicyHasBeenSet(false), + m_updateReplacePolicy(GeneratedTemplateUpdateReplacePolicy::NOT_SET), + m_updateReplacePolicyHasBeenSet(false) +{ + *this = xmlNode; +} + +TemplateConfiguration& TemplateConfiguration::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode deletionPolicyNode = resultNode.FirstChild("DeletionPolicy"); + if(!deletionPolicyNode.IsNull()) + { + m_deletionPolicy = GeneratedTemplateDeletionPolicyMapper::GetGeneratedTemplateDeletionPolicyForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(deletionPolicyNode.GetText()).c_str()).c_str()); + m_deletionPolicyHasBeenSet = true; + } + XmlNode updateReplacePolicyNode = resultNode.FirstChild("UpdateReplacePolicy"); + if(!updateReplacePolicyNode.IsNull()) + { + m_updateReplacePolicy = GeneratedTemplateUpdateReplacePolicyMapper::GetGeneratedTemplateUpdateReplacePolicyForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(updateReplacePolicyNode.GetText()).c_str()).c_str()); + m_updateReplacePolicyHasBeenSet = true; + } + } + + return *this; +} + +void TemplateConfiguration::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_deletionPolicyHasBeenSet) + { + oStream << location << index << locationValue << ".DeletionPolicy=" << GeneratedTemplateDeletionPolicyMapper::GetNameForGeneratedTemplateDeletionPolicy(m_deletionPolicy) << "&"; + } + + if(m_updateReplacePolicyHasBeenSet) + { + oStream << location << index << locationValue << ".UpdateReplacePolicy=" << GeneratedTemplateUpdateReplacePolicyMapper::GetNameForGeneratedTemplateUpdateReplacePolicy(m_updateReplacePolicy) << "&"; + } + +} + +void TemplateConfiguration::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_deletionPolicyHasBeenSet) + { + oStream << location << ".DeletionPolicy=" << GeneratedTemplateDeletionPolicyMapper::GetNameForGeneratedTemplateDeletionPolicy(m_deletionPolicy) << "&"; + } + if(m_updateReplacePolicyHasBeenSet) + { + oStream << location << ".UpdateReplacePolicy=" << GeneratedTemplateUpdateReplacePolicyMapper::GetNameForGeneratedTemplateUpdateReplacePolicy(m_updateReplacePolicy) << "&"; + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateFormat.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateFormat.cpp new file mode 100644 index 00000000000..78fa43f69c3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateFormat.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 CloudFormation + { + namespace Model + { + namespace TemplateFormatMapper + { + + static const int JSON_HASH = HashingUtils::HashString("JSON"); + static const int YAML_HASH = HashingUtils::HashString("YAML"); + + + TemplateFormat GetTemplateFormatForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == JSON_HASH) + { + return TemplateFormat::JSON; + } + else if (hashCode == YAML_HASH) + { + return TemplateFormat::YAML; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return TemplateFormat::NOT_SET; + } + + Aws::String GetNameForTemplateFormat(TemplateFormat enumValue) + { + switch(enumValue) + { + case TemplateFormat::NOT_SET: + return {}; + case TemplateFormat::JSON: + return "JSON"; + case TemplateFormat::YAML: + return "YAML"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace TemplateFormatMapper + } // namespace Model + } // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateProgress.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateProgress.cpp new file mode 100644 index 00000000000..7f50ce1e99c --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateProgress.cpp @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +TemplateProgress::TemplateProgress() : + m_resourcesSucceeded(0), + m_resourcesSucceededHasBeenSet(false), + m_resourcesFailed(0), + m_resourcesFailedHasBeenSet(false), + m_resourcesProcessing(0), + m_resourcesProcessingHasBeenSet(false), + m_resourcesPending(0), + m_resourcesPendingHasBeenSet(false) +{ +} + +TemplateProgress::TemplateProgress(const XmlNode& xmlNode) : + m_resourcesSucceeded(0), + m_resourcesSucceededHasBeenSet(false), + m_resourcesFailed(0), + m_resourcesFailedHasBeenSet(false), + m_resourcesProcessing(0), + m_resourcesProcessingHasBeenSet(false), + m_resourcesPending(0), + m_resourcesPendingHasBeenSet(false) +{ + *this = xmlNode; +} + +TemplateProgress& TemplateProgress::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode resourcesSucceededNode = resultNode.FirstChild("ResourcesSucceeded"); + if(!resourcesSucceededNode.IsNull()) + { + m_resourcesSucceeded = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(resourcesSucceededNode.GetText()).c_str()).c_str()); + m_resourcesSucceededHasBeenSet = true; + } + XmlNode resourcesFailedNode = resultNode.FirstChild("ResourcesFailed"); + if(!resourcesFailedNode.IsNull()) + { + m_resourcesFailed = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(resourcesFailedNode.GetText()).c_str()).c_str()); + m_resourcesFailedHasBeenSet = true; + } + XmlNode resourcesProcessingNode = resultNode.FirstChild("ResourcesProcessing"); + if(!resourcesProcessingNode.IsNull()) + { + m_resourcesProcessing = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(resourcesProcessingNode.GetText()).c_str()).c_str()); + m_resourcesProcessingHasBeenSet = true; + } + XmlNode resourcesPendingNode = resultNode.FirstChild("ResourcesPending"); + if(!resourcesPendingNode.IsNull()) + { + m_resourcesPending = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(resourcesPendingNode.GetText()).c_str()).c_str()); + m_resourcesPendingHasBeenSet = true; + } + } + + return *this; +} + +void TemplateProgress::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_resourcesSucceededHasBeenSet) + { + oStream << location << index << locationValue << ".ResourcesSucceeded=" << m_resourcesSucceeded << "&"; + } + + if(m_resourcesFailedHasBeenSet) + { + oStream << location << index << locationValue << ".ResourcesFailed=" << m_resourcesFailed << "&"; + } + + if(m_resourcesProcessingHasBeenSet) + { + oStream << location << index << locationValue << ".ResourcesProcessing=" << m_resourcesProcessing << "&"; + } + + if(m_resourcesPendingHasBeenSet) + { + oStream << location << index << locationValue << ".ResourcesPending=" << m_resourcesPending << "&"; + } + +} + +void TemplateProgress::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_resourcesSucceededHasBeenSet) + { + oStream << location << ".ResourcesSucceeded=" << m_resourcesSucceeded << "&"; + } + if(m_resourcesFailedHasBeenSet) + { + oStream << location << ".ResourcesFailed=" << m_resourcesFailed << "&"; + } + if(m_resourcesProcessingHasBeenSet) + { + oStream << location << ".ResourcesProcessing=" << m_resourcesProcessing << "&"; + } + if(m_resourcesPendingHasBeenSet) + { + oStream << location << ".ResourcesPending=" << m_resourcesPending << "&"; + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateSummary.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateSummary.cpp new file mode 100644 index 00000000000..d25269839f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateSummary.cpp @@ -0,0 +1,176 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +TemplateSummary::TemplateSummary() : + m_generatedTemplateIdHasBeenSet(false), + m_generatedTemplateNameHasBeenSet(false), + m_status(GeneratedTemplateStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusReasonHasBeenSet(false), + m_creationTimeHasBeenSet(false), + m_lastUpdatedTimeHasBeenSet(false), + m_numberOfResources(0), + m_numberOfResourcesHasBeenSet(false) +{ +} + +TemplateSummary::TemplateSummary(const XmlNode& xmlNode) : + m_generatedTemplateIdHasBeenSet(false), + m_generatedTemplateNameHasBeenSet(false), + m_status(GeneratedTemplateStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusReasonHasBeenSet(false), + m_creationTimeHasBeenSet(false), + m_lastUpdatedTimeHasBeenSet(false), + m_numberOfResources(0), + m_numberOfResourcesHasBeenSet(false) +{ + *this = xmlNode; +} + +TemplateSummary& TemplateSummary::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode generatedTemplateIdNode = resultNode.FirstChild("GeneratedTemplateId"); + if(!generatedTemplateIdNode.IsNull()) + { + m_generatedTemplateId = Aws::Utils::Xml::DecodeEscapedXmlText(generatedTemplateIdNode.GetText()); + m_generatedTemplateIdHasBeenSet = true; + } + XmlNode generatedTemplateNameNode = resultNode.FirstChild("GeneratedTemplateName"); + if(!generatedTemplateNameNode.IsNull()) + { + m_generatedTemplateName = Aws::Utils::Xml::DecodeEscapedXmlText(generatedTemplateNameNode.GetText()); + m_generatedTemplateNameHasBeenSet = true; + } + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_status = GeneratedTemplateStatusMapper::GetGeneratedTemplateStatusForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()).c_str()).c_str()); + m_statusHasBeenSet = true; + } + XmlNode statusReasonNode = resultNode.FirstChild("StatusReason"); + if(!statusReasonNode.IsNull()) + { + m_statusReason = Aws::Utils::Xml::DecodeEscapedXmlText(statusReasonNode.GetText()); + m_statusReasonHasBeenSet = true; + } + XmlNode creationTimeNode = resultNode.FirstChild("CreationTime"); + if(!creationTimeNode.IsNull()) + { + m_creationTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(creationTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_creationTimeHasBeenSet = true; + } + XmlNode lastUpdatedTimeNode = resultNode.FirstChild("LastUpdatedTime"); + if(!lastUpdatedTimeNode.IsNull()) + { + m_lastUpdatedTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(lastUpdatedTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); + m_lastUpdatedTimeHasBeenSet = true; + } + XmlNode numberOfResourcesNode = resultNode.FirstChild("NumberOfResources"); + if(!numberOfResourcesNode.IsNull()) + { + m_numberOfResources = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(numberOfResourcesNode.GetText()).c_str()).c_str()); + m_numberOfResourcesHasBeenSet = true; + } + } + + return *this; +} + +void TemplateSummary::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_generatedTemplateIdHasBeenSet) + { + oStream << location << index << locationValue << ".GeneratedTemplateId=" << StringUtils::URLEncode(m_generatedTemplateId.c_str()) << "&"; + } + + if(m_generatedTemplateNameHasBeenSet) + { + oStream << location << index << locationValue << ".GeneratedTemplateName=" << StringUtils::URLEncode(m_generatedTemplateName.c_str()) << "&"; + } + + if(m_statusHasBeenSet) + { + oStream << location << index << locationValue << ".Status=" << GeneratedTemplateStatusMapper::GetNameForGeneratedTemplateStatus(m_status) << "&"; + } + + if(m_statusReasonHasBeenSet) + { + oStream << location << index << locationValue << ".StatusReason=" << StringUtils::URLEncode(m_statusReason.c_str()) << "&"; + } + + if(m_creationTimeHasBeenSet) + { + oStream << location << index << locationValue << ".CreationTime=" << StringUtils::URLEncode(m_creationTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + + if(m_lastUpdatedTimeHasBeenSet) + { + oStream << location << index << locationValue << ".LastUpdatedTime=" << StringUtils::URLEncode(m_lastUpdatedTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + + if(m_numberOfResourcesHasBeenSet) + { + oStream << location << index << locationValue << ".NumberOfResources=" << m_numberOfResources << "&"; + } + +} + +void TemplateSummary::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_generatedTemplateIdHasBeenSet) + { + oStream << location << ".GeneratedTemplateId=" << StringUtils::URLEncode(m_generatedTemplateId.c_str()) << "&"; + } + if(m_generatedTemplateNameHasBeenSet) + { + oStream << location << ".GeneratedTemplateName=" << StringUtils::URLEncode(m_generatedTemplateName.c_str()) << "&"; + } + if(m_statusHasBeenSet) + { + oStream << location << ".Status=" << GeneratedTemplateStatusMapper::GetNameForGeneratedTemplateStatus(m_status) << "&"; + } + if(m_statusReasonHasBeenSet) + { + oStream << location << ".StatusReason=" << StringUtils::URLEncode(m_statusReason.c_str()) << "&"; + } + if(m_creationTimeHasBeenSet) + { + oStream << location << ".CreationTime=" << StringUtils::URLEncode(m_creationTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + if(m_lastUpdatedTimeHasBeenSet) + { + oStream << location << ".LastUpdatedTime=" << StringUtils::URLEncode(m_lastUpdatedTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; + } + if(m_numberOfResourcesHasBeenSet) + { + oStream << location << ".NumberOfResources=" << m_numberOfResources << "&"; + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/UpdateGeneratedTemplateRequest.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/UpdateGeneratedTemplateRequest.cpp new file mode 100644 index 00000000000..72ea83c2e48 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/UpdateGeneratedTemplateRequest.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::CloudFormation::Model; +using namespace Aws::Utils; + +UpdateGeneratedTemplateRequest::UpdateGeneratedTemplateRequest() : + m_generatedTemplateNameHasBeenSet(false), + m_newGeneratedTemplateNameHasBeenSet(false), + m_addResourcesHasBeenSet(false), + m_removeResourcesHasBeenSet(false), + m_refreshAllResources(false), + m_refreshAllResourcesHasBeenSet(false), + m_templateConfigurationHasBeenSet(false) +{ +} + +Aws::String UpdateGeneratedTemplateRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=UpdateGeneratedTemplate&"; + if(m_generatedTemplateNameHasBeenSet) + { + ss << "GeneratedTemplateName=" << StringUtils::URLEncode(m_generatedTemplateName.c_str()) << "&"; + } + + if(m_newGeneratedTemplateNameHasBeenSet) + { + ss << "NewGeneratedTemplateName=" << StringUtils::URLEncode(m_newGeneratedTemplateName.c_str()) << "&"; + } + + if(m_addResourcesHasBeenSet) + { + unsigned addResourcesCount = 1; + for(auto& item : m_addResources) + { + item.OutputToStream(ss, "AddResources.member.", addResourcesCount, ""); + addResourcesCount++; + } + } + + if(m_removeResourcesHasBeenSet) + { + unsigned removeResourcesCount = 1; + for(auto& item : m_removeResources) + { + ss << "RemoveResources.member." << removeResourcesCount << "=" + << StringUtils::URLEncode(item.c_str()) << "&"; + removeResourcesCount++; + } + } + + if(m_refreshAllResourcesHasBeenSet) + { + ss << "RefreshAllResources=" << std::boolalpha << m_refreshAllResources << "&"; + } + + if(m_templateConfigurationHasBeenSet) + { + m_templateConfiguration.OutputToStream(ss, "TemplateConfiguration"); + } + + ss << "Version=2010-05-15"; + return ss.str(); +} + + +void UpdateGeneratedTemplateRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/UpdateGeneratedTemplateResult.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/UpdateGeneratedTemplateResult.cpp new file mode 100644 index 00000000000..173abf8cfb4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/UpdateGeneratedTemplateResult.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudFormation::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +UpdateGeneratedTemplateResult::UpdateGeneratedTemplateResult() +{ +} + +UpdateGeneratedTemplateResult::UpdateGeneratedTemplateResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateGeneratedTemplateResult& UpdateGeneratedTemplateResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "UpdateGeneratedTemplateResult")) + { + resultNode = rootNode.FirstChild("UpdateGeneratedTemplateResult"); + } + + if(!resultNode.IsNull()) + { + XmlNode generatedTemplateIdNode = resultNode.FirstChild("GeneratedTemplateId"); + if(!generatedTemplateIdNode.IsNull()) + { + m_generatedTemplateId = Aws::Utils::Xml::DecodeEscapedXmlText(generatedTemplateIdNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); + m_responseMetadata = responseMetadataNode; + AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::UpdateGeneratedTemplateResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/WarningDetail.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/WarningDetail.cpp new file mode 100644 index 00000000000..ed71c115c87 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/WarningDetail.cpp @@ -0,0 +1,107 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +WarningDetail::WarningDetail() : + m_type(WarningType::NOT_SET), + m_typeHasBeenSet(false), + m_propertiesHasBeenSet(false) +{ +} + +WarningDetail::WarningDetail(const XmlNode& xmlNode) : + m_type(WarningType::NOT_SET), + m_typeHasBeenSet(false), + m_propertiesHasBeenSet(false) +{ + *this = xmlNode; +} + +WarningDetail& WarningDetail::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode typeNode = resultNode.FirstChild("Type"); + if(!typeNode.IsNull()) + { + m_type = WarningTypeMapper::GetWarningTypeForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(typeNode.GetText()).c_str()).c_str()); + m_typeHasBeenSet = true; + } + XmlNode propertiesNode = resultNode.FirstChild("Properties"); + if(!propertiesNode.IsNull()) + { + XmlNode propertiesMember = propertiesNode.FirstChild("member"); + while(!propertiesMember.IsNull()) + { + m_properties.push_back(propertiesMember); + propertiesMember = propertiesMember.NextNode("member"); + } + + m_propertiesHasBeenSet = true; + } + } + + return *this; +} + +void WarningDetail::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_typeHasBeenSet) + { + oStream << location << index << locationValue << ".Type=" << WarningTypeMapper::GetNameForWarningType(m_type) << "&"; + } + + if(m_propertiesHasBeenSet) + { + unsigned propertiesIdx = 1; + for(auto& item : m_properties) + { + Aws::StringStream propertiesSs; + propertiesSs << location << index << locationValue << ".Properties.member." << propertiesIdx++; + item.OutputToStream(oStream, propertiesSs.str().c_str()); + } + } + +} + +void WarningDetail::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_typeHasBeenSet) + { + oStream << location << ".Type=" << WarningTypeMapper::GetNameForWarningType(m_type) << "&"; + } + if(m_propertiesHasBeenSet) + { + unsigned propertiesIdx = 1; + for(auto& item : m_properties) + { + Aws::StringStream propertiesSs; + propertiesSs << location << ".Properties.member." << propertiesIdx++; + item.OutputToStream(oStream, propertiesSs.str().c_str()); + } + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/WarningProperty.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/WarningProperty.cpp new file mode 100644 index 00000000000..b27a28e19d9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/WarningProperty.cpp @@ -0,0 +1,106 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudFormation +{ +namespace Model +{ + +WarningProperty::WarningProperty() : + m_propertyPathHasBeenSet(false), + m_required(false), + m_requiredHasBeenSet(false), + m_descriptionHasBeenSet(false) +{ +} + +WarningProperty::WarningProperty(const XmlNode& xmlNode) : + m_propertyPathHasBeenSet(false), + m_required(false), + m_requiredHasBeenSet(false), + m_descriptionHasBeenSet(false) +{ + *this = xmlNode; +} + +WarningProperty& WarningProperty::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode propertyPathNode = resultNode.FirstChild("PropertyPath"); + if(!propertyPathNode.IsNull()) + { + m_propertyPath = Aws::Utils::Xml::DecodeEscapedXmlText(propertyPathNode.GetText()); + m_propertyPathHasBeenSet = true; + } + XmlNode requiredNode = resultNode.FirstChild("Required"); + if(!requiredNode.IsNull()) + { + m_required = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(requiredNode.GetText()).c_str()).c_str()); + m_requiredHasBeenSet = true; + } + XmlNode descriptionNode = resultNode.FirstChild("Description"); + if(!descriptionNode.IsNull()) + { + m_description = Aws::Utils::Xml::DecodeEscapedXmlText(descriptionNode.GetText()); + m_descriptionHasBeenSet = true; + } + } + + return *this; +} + +void WarningProperty::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_propertyPathHasBeenSet) + { + oStream << location << index << locationValue << ".PropertyPath=" << StringUtils::URLEncode(m_propertyPath.c_str()) << "&"; + } + + if(m_requiredHasBeenSet) + { + oStream << location << index << locationValue << ".Required=" << std::boolalpha << m_required << "&"; + } + + if(m_descriptionHasBeenSet) + { + oStream << location << index << locationValue << ".Description=" << StringUtils::URLEncode(m_description.c_str()) << "&"; + } + +} + +void WarningProperty::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_propertyPathHasBeenSet) + { + oStream << location << ".PropertyPath=" << StringUtils::URLEncode(m_propertyPath.c_str()) << "&"; + } + if(m_requiredHasBeenSet) + { + oStream << location << ".Required=" << std::boolalpha << m_required << "&"; + } + if(m_descriptionHasBeenSet) + { + oStream << location << ".Description=" << StringUtils::URLEncode(m_description.c_str()) << "&"; + } +} + +} // namespace Model +} // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/WarningType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/WarningType.cpp new file mode 100644 index 00000000000..dca671a2b7d --- /dev/null +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/WarningType.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace CloudFormation + { + namespace Model + { + namespace WarningTypeMapper + { + + static const int MUTUALLY_EXCLUSIVE_PROPERTIES_HASH = HashingUtils::HashString("MUTUALLY_EXCLUSIVE_PROPERTIES"); + static const int UNSUPPORTED_PROPERTIES_HASH = HashingUtils::HashString("UNSUPPORTED_PROPERTIES"); + static const int MUTUALLY_EXCLUSIVE_TYPES_HASH = HashingUtils::HashString("MUTUALLY_EXCLUSIVE_TYPES"); + + + WarningType GetWarningTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == MUTUALLY_EXCLUSIVE_PROPERTIES_HASH) + { + return WarningType::MUTUALLY_EXCLUSIVE_PROPERTIES; + } + else if (hashCode == UNSUPPORTED_PROPERTIES_HASH) + { + return WarningType::UNSUPPORTED_PROPERTIES; + } + else if (hashCode == MUTUALLY_EXCLUSIVE_TYPES_HASH) + { + return WarningType::MUTUALLY_EXCLUSIVE_TYPES; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return WarningType::NOT_SET; + } + + Aws::String GetNameForWarningType(WarningType enumValue) + { + switch(enumValue) + { + case WarningType::NOT_SET: + return {}; + case WarningType::MUTUALLY_EXCLUSIVE_PROPERTIES: + return "MUTUALLY_EXCLUSIVE_PROPERTIES"; + case WarningType::UNSUPPORTED_PROPERTIES: + return "UNSUPPORTED_PROPERTIES"; + case WarningType::MUTUALLY_EXCLUSIVE_TYPES: + return "MUTUALLY_EXCLUSIVE_TYPES"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace WarningTypeMapper + } // namespace Model + } // namespace CloudFormation +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CreateLoadBalancerRequest.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CreateLoadBalancerRequest.h index 096d4243135..c4414284a90 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CreateLoadBalancerRequest.h +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/CreateLoadBalancerRequest.h @@ -108,126 +108,126 @@ namespace Model /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both. To specify an Elastic IP address, specify subnet mappings instead of - * subnets.

[Application Load Balancers] You must specify subnets from at - * least two Availability Zones.

[Application Load Balancers on Outposts] - * You must specify one Outpost subnet.

[Application Load Balancers on Local - * Zones] You can specify subnets from one or more Local Zones.

[Network - * Load Balancers] You can specify subnets from one or more Availability Zones.

+ *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both. To + * specify an Elastic IP address, specify subnet mappings instead of subnets.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones.

[Application Load Balancers on Outposts] You must + * specify one Outpost subnet.

[Application Load Balancers on Local Zones] + * You can specify subnets from one or more Local Zones.

[Network Load + * Balancers] You can specify subnets from one or more Availability Zones.

*

[Gateway Load Balancers] You can specify subnets from one or more * Availability Zones.

*/ inline const Aws::Vector& GetSubnets() const{ return m_subnets; } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both. To specify an Elastic IP address, specify subnet mappings instead of - * subnets.

[Application Load Balancers] You must specify subnets from at - * least two Availability Zones.

[Application Load Balancers on Outposts] - * You must specify one Outpost subnet.

[Application Load Balancers on Local - * Zones] You can specify subnets from one or more Local Zones.

[Network - * Load Balancers] You can specify subnets from one or more Availability Zones.

+ *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both. To + * specify an Elastic IP address, specify subnet mappings instead of subnets.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones.

[Application Load Balancers on Outposts] You must + * specify one Outpost subnet.

[Application Load Balancers on Local Zones] + * You can specify subnets from one or more Local Zones.

[Network Load + * Balancers] You can specify subnets from one or more Availability Zones.

*

[Gateway Load Balancers] You can specify subnets from one or more * Availability Zones.

*/ inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both. To specify an Elastic IP address, specify subnet mappings instead of - * subnets.

[Application Load Balancers] You must specify subnets from at - * least two Availability Zones.

[Application Load Balancers on Outposts] - * You must specify one Outpost subnet.

[Application Load Balancers on Local - * Zones] You can specify subnets from one or more Local Zones.

[Network - * Load Balancers] You can specify subnets from one or more Availability Zones.

+ *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both. To + * specify an Elastic IP address, specify subnet mappings instead of subnets.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones.

[Application Load Balancers on Outposts] You must + * specify one Outpost subnet.

[Application Load Balancers on Local Zones] + * You can specify subnets from one or more Local Zones.

[Network Load + * Balancers] You can specify subnets from one or more Availability Zones.

*

[Gateway Load Balancers] You can specify subnets from one or more * Availability Zones.

*/ inline void SetSubnets(const Aws::Vector& value) { m_subnetsHasBeenSet = true; m_subnets = value; } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both. To specify an Elastic IP address, specify subnet mappings instead of - * subnets.

[Application Load Balancers] You must specify subnets from at - * least two Availability Zones.

[Application Load Balancers on Outposts] - * You must specify one Outpost subnet.

[Application Load Balancers on Local - * Zones] You can specify subnets from one or more Local Zones.

[Network - * Load Balancers] You can specify subnets from one or more Availability Zones.

+ *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both. To + * specify an Elastic IP address, specify subnet mappings instead of subnets.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones.

[Application Load Balancers on Outposts] You must + * specify one Outpost subnet.

[Application Load Balancers on Local Zones] + * You can specify subnets from one or more Local Zones.

[Network Load + * Balancers] You can specify subnets from one or more Availability Zones.

*

[Gateway Load Balancers] You can specify subnets from one or more * Availability Zones.

*/ inline void SetSubnets(Aws::Vector&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both. To specify an Elastic IP address, specify subnet mappings instead of - * subnets.

[Application Load Balancers] You must specify subnets from at - * least two Availability Zones.

[Application Load Balancers on Outposts] - * You must specify one Outpost subnet.

[Application Load Balancers on Local - * Zones] You can specify subnets from one or more Local Zones.

[Network - * Load Balancers] You can specify subnets from one or more Availability Zones.

+ *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both. To + * specify an Elastic IP address, specify subnet mappings instead of subnets.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones.

[Application Load Balancers on Outposts] You must + * specify one Outpost subnet.

[Application Load Balancers on Local Zones] + * You can specify subnets from one or more Local Zones.

[Network Load + * Balancers] You can specify subnets from one or more Availability Zones.

*

[Gateway Load Balancers] You can specify subnets from one or more * Availability Zones.

*/ inline CreateLoadBalancerRequest& WithSubnets(const Aws::Vector& value) { SetSubnets(value); return *this;} /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both. To specify an Elastic IP address, specify subnet mappings instead of - * subnets.

[Application Load Balancers] You must specify subnets from at - * least two Availability Zones.

[Application Load Balancers on Outposts] - * You must specify one Outpost subnet.

[Application Load Balancers on Local - * Zones] You can specify subnets from one or more Local Zones.

[Network - * Load Balancers] You can specify subnets from one or more Availability Zones.

+ *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both. To + * specify an Elastic IP address, specify subnet mappings instead of subnets.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones.

[Application Load Balancers on Outposts] You must + * specify one Outpost subnet.

[Application Load Balancers on Local Zones] + * You can specify subnets from one or more Local Zones.

[Network Load + * Balancers] You can specify subnets from one or more Availability Zones.

*

[Gateway Load Balancers] You can specify subnets from one or more * Availability Zones.

*/ inline CreateLoadBalancerRequest& WithSubnets(Aws::Vector&& value) { SetSubnets(std::move(value)); return *this;} /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both. To specify an Elastic IP address, specify subnet mappings instead of - * subnets.

[Application Load Balancers] You must specify subnets from at - * least two Availability Zones.

[Application Load Balancers on Outposts] - * You must specify one Outpost subnet.

[Application Load Balancers on Local - * Zones] You can specify subnets from one or more Local Zones.

[Network - * Load Balancers] You can specify subnets from one or more Availability Zones.

+ *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both. To + * specify an Elastic IP address, specify subnet mappings instead of subnets.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones.

[Application Load Balancers on Outposts] You must + * specify one Outpost subnet.

[Application Load Balancers on Local Zones] + * You can specify subnets from one or more Local Zones.

[Network Load + * Balancers] You can specify subnets from one or more Availability Zones.

*

[Gateway Load Balancers] You can specify subnets from one or more * Availability Zones.

*/ inline CreateLoadBalancerRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both. To specify an Elastic IP address, specify subnet mappings instead of - * subnets.

[Application Load Balancers] You must specify subnets from at - * least two Availability Zones.

[Application Load Balancers on Outposts] - * You must specify one Outpost subnet.

[Application Load Balancers on Local - * Zones] You can specify subnets from one or more Local Zones.

[Network - * Load Balancers] You can specify subnets from one or more Availability Zones.

+ *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both. To + * specify an Elastic IP address, specify subnet mappings instead of subnets.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones.

[Application Load Balancers on Outposts] You must + * specify one Outpost subnet.

[Application Load Balancers on Local Zones] + * You can specify subnets from one or more Local Zones.

[Network Load + * Balancers] You can specify subnets from one or more Availability Zones.

*

[Gateway Load Balancers] You can specify subnets from one or more * Availability Zones.

*/ inline CreateLoadBalancerRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both. To specify an Elastic IP address, specify subnet mappings instead of - * subnets.

[Application Load Balancers] You must specify subnets from at - * least two Availability Zones.

[Application Load Balancers on Outposts] - * You must specify one Outpost subnet.

[Application Load Balancers on Local - * Zones] You can specify subnets from one or more Local Zones.

[Network - * Load Balancers] You can specify subnets from one or more Availability Zones.

+ *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both. To + * specify an Elastic IP address, specify subnet mappings instead of subnets.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones.

[Application Load Balancers on Outposts] You must + * specify one Outpost subnet.

[Application Load Balancers on Local Zones] + * You can specify subnets from one or more Local Zones.

[Network Load + * Balancers] You can specify subnets from one or more Availability Zones.

*

[Gateway Load Balancers] You can specify subnets from one or more * Availability Zones.

*/ @@ -235,10 +235,10 @@ namespace Model /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both.

[Application Load Balancers] You must specify subnets from at least - * two Availability Zones. You cannot specify Elastic IP addresses for your + *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones. You cannot specify Elastic IP addresses for your * subnets.

[Application Load Balancers on Outposts] You must specify one * Outpost subnet.

[Application Load Balancers on Local Zones] You can * specify subnets from one or more Local Zones.

[Network Load Balancers] @@ -254,10 +254,10 @@ namespace Model inline const Aws::Vector& GetSubnetMappings() const{ return m_subnetMappings; } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both.

[Application Load Balancers] You must specify subnets from at least - * two Availability Zones. You cannot specify Elastic IP addresses for your + *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones. You cannot specify Elastic IP addresses for your * subnets.

[Application Load Balancers on Outposts] You must specify one * Outpost subnet.

[Application Load Balancers on Local Zones] You can * specify subnets from one or more Local Zones.

[Network Load Balancers] @@ -273,10 +273,10 @@ namespace Model inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both.

[Application Load Balancers] You must specify subnets from at least - * two Availability Zones. You cannot specify Elastic IP addresses for your + *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones. You cannot specify Elastic IP addresses for your * subnets.

[Application Load Balancers on Outposts] You must specify one * Outpost subnet.

[Application Load Balancers on Local Zones] You can * specify subnets from one or more Local Zones.

[Network Load Balancers] @@ -292,10 +292,10 @@ namespace Model inline void SetSubnetMappings(const Aws::Vector& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both.

[Application Load Balancers] You must specify subnets from at least - * two Availability Zones. You cannot specify Elastic IP addresses for your + *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones. You cannot specify Elastic IP addresses for your * subnets.

[Application Load Balancers on Outposts] You must specify one * Outpost subnet.

[Application Load Balancers on Local Zones] You can * specify subnets from one or more Local Zones.

[Network Load Balancers] @@ -311,10 +311,10 @@ namespace Model inline void SetSubnetMappings(Aws::Vector&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both.

[Application Load Balancers] You must specify subnets from at least - * two Availability Zones. You cannot specify Elastic IP addresses for your + *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones. You cannot specify Elastic IP addresses for your * subnets.

[Application Load Balancers on Outposts] You must specify one * Outpost subnet.

[Application Load Balancers on Local Zones] You can * specify subnets from one or more Local Zones.

[Network Load Balancers] @@ -330,10 +330,10 @@ namespace Model inline CreateLoadBalancerRequest& WithSubnetMappings(const Aws::Vector& value) { SetSubnetMappings(value); return *this;} /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both.

[Application Load Balancers] You must specify subnets from at least - * two Availability Zones. You cannot specify Elastic IP addresses for your + *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones. You cannot specify Elastic IP addresses for your * subnets.

[Application Load Balancers on Outposts] You must specify one * Outpost subnet.

[Application Load Balancers on Local Zones] You can * specify subnets from one or more Local Zones.

[Network Load Balancers] @@ -349,10 +349,10 @@ namespace Model inline CreateLoadBalancerRequest& WithSubnetMappings(Aws::Vector&& value) { SetSubnetMappings(std::move(value)); return *this;} /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both.

[Application Load Balancers] You must specify subnets from at least - * two Availability Zones. You cannot specify Elastic IP addresses for your + *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones. You cannot specify Elastic IP addresses for your * subnets.

[Application Load Balancers on Outposts] You must specify one * Outpost subnet.

[Application Load Balancers on Local Zones] You can * specify subnets from one or more Local Zones.

[Network Load Balancers] @@ -368,10 +368,10 @@ namespace Model inline CreateLoadBalancerRequest& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; } /** - *

The IDs of the public subnets. You can specify only one subnet per - * Availability Zone. You must specify either subnets or subnet mappings, but not - * both.

[Application Load Balancers] You must specify subnets from at least - * two Availability Zones. You cannot specify Elastic IP addresses for your + *

The IDs of the subnets. You can specify only one subnet per Availability + * Zone. You must specify either subnets or subnet mappings, but not both.

+ *

[Application Load Balancers] You must specify subnets from at least two + * Availability Zones. You cannot specify Elastic IP addresses for your * subnets.

[Application Load Balancers on Outposts] You must specify one * Outpost subnet.

[Application Load Balancers on Local Zones] You can * specify subnets from one or more Local Zones.

[Network Load Balancers] diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/SourceIpConditionConfig.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/SourceIpConditionConfig.h index d78c2446cfc..472d9ead100 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/SourceIpConditionConfig.h +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/SourceIpConditionConfig.h @@ -49,7 +49,8 @@ namespace Model * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For - * header, use HttpHeaderConditionConfig.

+ * header, use HttpHeaderConditionConfig.

The total number of values + * must be less than, or equal to five.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } @@ -59,7 +60,8 @@ namespace Model * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For - * header, use HttpHeaderConditionConfig.

+ * header, use HttpHeaderConditionConfig.

The total number of values + * must be less than, or equal to five.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } @@ -69,7 +71,8 @@ namespace Model * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For - * header, use HttpHeaderConditionConfig.

+ * header, use HttpHeaderConditionConfig.

The total number of values + * must be less than, or equal to five.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } @@ -79,7 +82,8 @@ namespace Model * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For - * header, use HttpHeaderConditionConfig.

+ * header, use HttpHeaderConditionConfig.

The total number of values + * must be less than, or equal to five.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } @@ -89,7 +93,8 @@ namespace Model * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For - * header, use HttpHeaderConditionConfig.

+ * header, use HttpHeaderConditionConfig.

The total number of values + * must be less than, or equal to five.

*/ inline SourceIpConditionConfig& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} @@ -99,7 +104,8 @@ namespace Model * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For - * header, use HttpHeaderConditionConfig.

+ * header, use HttpHeaderConditionConfig.

The total number of values + * must be less than, or equal to five.

*/ inline SourceIpConditionConfig& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} @@ -109,7 +115,8 @@ namespace Model * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For - * header, use HttpHeaderConditionConfig.

+ * header, use HttpHeaderConditionConfig.

The total number of values + * must be less than, or equal to five.

*/ inline SourceIpConditionConfig& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } @@ -119,7 +126,8 @@ namespace Model * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For - * header, use HttpHeaderConditionConfig.

+ * header, use HttpHeaderConditionConfig.

The total number of values + * must be less than, or equal to five.

*/ inline SourceIpConditionConfig& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } @@ -129,7 +137,8 @@ namespace Model * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For - * header, use HttpHeaderConditionConfig.

+ * header, use HttpHeaderConditionConfig.

The total number of values + * must be less than, or equal to five.

*/ inline SourceIpConditionConfig& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/TargetGroupAttribute.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/TargetGroupAttribute.h index be800c967fa..b0bda6d5b2d 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/TargetGroupAttribute.h +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/TargetGroupAttribute.h @@ -138,7 +138,14 @@ namespace Model * target_health_state.unhealthy.connection_termination.enabled - * Indicates whether the load balancer terminates connections to unhealthy targets. * The value is true or false. The default is - * true.

The following attributes are supported + * true.

  • + * target_health_state.unhealthy.draining_interval_seconds - The + * amount of time for Elastic Load Balancing to wait before changing the state of + * an unhealthy target from unhealthy.draining to + * unhealthy. The range is 0-360000 seconds. The default value is 0 + * seconds.

    Note: This attribute can only be configured when + * target_health_state.unhealthy.connection_termination.enabled is + * false.

  • The following attributes are supported * only by Gateway Load Balancers:

    • * target_failover.on_deregistration - Indicates how the Gateway Load * Balancer handles existing flows when a target is deregistered. The possible @@ -256,7 +263,14 @@ namespace Model * target_health_state.unhealthy.connection_termination.enabled - * Indicates whether the load balancer terminates connections to unhealthy targets. * The value is true or false. The default is - * true.

    The following attributes are supported + * true.

  • + * target_health_state.unhealthy.draining_interval_seconds - The + * amount of time for Elastic Load Balancing to wait before changing the state of + * an unhealthy target from unhealthy.draining to + * unhealthy. The range is 0-360000 seconds. The default value is 0 + * seconds.

    Note: This attribute can only be configured when + * target_health_state.unhealthy.connection_termination.enabled is + * false.

  • The following attributes are supported * only by Gateway Load Balancers:

    • * target_failover.on_deregistration - Indicates how the Gateway Load * Balancer handles existing flows when a target is deregistered. The possible @@ -374,7 +388,14 @@ namespace Model * target_health_state.unhealthy.connection_termination.enabled - * Indicates whether the load balancer terminates connections to unhealthy targets. * The value is true or false. The default is - * true.

    The following attributes are supported + * true.

  • + * target_health_state.unhealthy.draining_interval_seconds - The + * amount of time for Elastic Load Balancing to wait before changing the state of + * an unhealthy target from unhealthy.draining to + * unhealthy. The range is 0-360000 seconds. The default value is 0 + * seconds.

    Note: This attribute can only be configured when + * target_health_state.unhealthy.connection_termination.enabled is + * false.

  • The following attributes are supported * only by Gateway Load Balancers:

    • * target_failover.on_deregistration - Indicates how the Gateway Load * Balancer handles existing flows when a target is deregistered. The possible @@ -492,7 +513,14 @@ namespace Model * target_health_state.unhealthy.connection_termination.enabled - * Indicates whether the load balancer terminates connections to unhealthy targets. * The value is true or false. The default is - * true.

    The following attributes are supported + * true.

  • + * target_health_state.unhealthy.draining_interval_seconds - The + * amount of time for Elastic Load Balancing to wait before changing the state of + * an unhealthy target from unhealthy.draining to + * unhealthy. The range is 0-360000 seconds. The default value is 0 + * seconds.

    Note: This attribute can only be configured when + * target_health_state.unhealthy.connection_termination.enabled is + * false.

  • The following attributes are supported * only by Gateway Load Balancers:

    • * target_failover.on_deregistration - Indicates how the Gateway Load * Balancer handles existing flows when a target is deregistered. The possible @@ -610,7 +638,14 @@ namespace Model * target_health_state.unhealthy.connection_termination.enabled - * Indicates whether the load balancer terminates connections to unhealthy targets. * The value is true or false. The default is - * true.

    The following attributes are supported + * true.

  • + * target_health_state.unhealthy.draining_interval_seconds - The + * amount of time for Elastic Load Balancing to wait before changing the state of + * an unhealthy target from unhealthy.draining to + * unhealthy. The range is 0-360000 seconds. The default value is 0 + * seconds.

    Note: This attribute can only be configured when + * target_health_state.unhealthy.connection_termination.enabled is + * false.

  • The following attributes are supported * only by Gateway Load Balancers:

    • * target_failover.on_deregistration - Indicates how the Gateway Load * Balancer handles existing flows when a target is deregistered. The possible @@ -728,7 +763,14 @@ namespace Model * target_health_state.unhealthy.connection_termination.enabled - * Indicates whether the load balancer terminates connections to unhealthy targets. * The value is true or false. The default is - * true.

    The following attributes are supported + * true.

  • + * target_health_state.unhealthy.draining_interval_seconds - The + * amount of time for Elastic Load Balancing to wait before changing the state of + * an unhealthy target from unhealthy.draining to + * unhealthy. The range is 0-360000 seconds. The default value is 0 + * seconds.

    Note: This attribute can only be configured when + * target_health_state.unhealthy.connection_termination.enabled is + * false.

  • The following attributes are supported * only by Gateway Load Balancers:

    • * target_failover.on_deregistration - Indicates how the Gateway Load * Balancer handles existing flows when a target is deregistered. The possible @@ -846,7 +888,14 @@ namespace Model * target_health_state.unhealthy.connection_termination.enabled - * Indicates whether the load balancer terminates connections to unhealthy targets. * The value is true or false. The default is - * true.

    The following attributes are supported + * true.

  • + * target_health_state.unhealthy.draining_interval_seconds - The + * amount of time for Elastic Load Balancing to wait before changing the state of + * an unhealthy target from unhealthy.draining to + * unhealthy. The range is 0-360000 seconds. The default value is 0 + * seconds.

    Note: This attribute can only be configured when + * target_health_state.unhealthy.connection_termination.enabled is + * false.

  • The following attributes are supported * only by Gateway Load Balancers:

    • * target_failover.on_deregistration - Indicates how the Gateway Load * Balancer handles existing flows when a target is deregistered. The possible @@ -964,7 +1013,14 @@ namespace Model * target_health_state.unhealthy.connection_termination.enabled - * Indicates whether the load balancer terminates connections to unhealthy targets. * The value is true or false. The default is - * true.

    The following attributes are supported + * true.

  • + * target_health_state.unhealthy.draining_interval_seconds - The + * amount of time for Elastic Load Balancing to wait before changing the state of + * an unhealthy target from unhealthy.draining to + * unhealthy. The range is 0-360000 seconds. The default value is 0 + * seconds.

    Note: This attribute can only be configured when + * target_health_state.unhealthy.connection_termination.enabled is + * false.

  • The following attributes are supported * only by Gateway Load Balancers:

    • * target_failover.on_deregistration - Indicates how the Gateway Load * Balancer handles existing flows when a target is deregistered. The possible diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/TargetHealthStateEnum.h b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/TargetHealthStateEnum.h index 27db9ccb7e3..4471f927478 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/TargetHealthStateEnum.h +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/TargetHealthStateEnum.h @@ -19,6 +19,7 @@ namespace Model initial, healthy, unhealthy, + unhealthy_draining, unused, draining, unavailable diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthStateEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthStateEnum.cpp index 7083a227f91..6e814a12a1f 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthStateEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthStateEnum.cpp @@ -23,6 +23,7 @@ namespace Aws static const int initial_HASH = HashingUtils::HashString("initial"); static const int healthy_HASH = HashingUtils::HashString("healthy"); static const int unhealthy_HASH = HashingUtils::HashString("unhealthy"); + static const int unhealthy_draining_HASH = HashingUtils::HashString("unhealthy.draining"); static const int unused_HASH = HashingUtils::HashString("unused"); static const int draining_HASH = HashingUtils::HashString("draining"); static const int unavailable_HASH = HashingUtils::HashString("unavailable"); @@ -43,6 +44,10 @@ namespace Aws { return TargetHealthStateEnum::unhealthy; } + else if (hashCode == unhealthy_draining_HASH) + { + return TargetHealthStateEnum::unhealthy_draining; + } else if (hashCode == unused_HASH) { return TargetHealthStateEnum::unused; @@ -77,6 +82,8 @@ namespace Aws return "healthy"; case TargetHealthStateEnum::unhealthy: return "unhealthy"; + case TargetHealthStateEnum::unhealthy_draining: + return "unhealthy.draining"; case TargetHealthStateEnum::unused: return "unused"; case TargetHealthStateEnum::draining: diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobCommand.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobCommand.h index edf541a0340..4002b866413 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobCommand.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobCommand.h @@ -212,8 +212,8 @@ namespace Model *

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and * additional libraries available in your environment. This field is not used in * other job types. For supported runtime environment values, see Working - * with Ray jobs in the Glue Developer Guide.

      + * href="https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html">Supported + * Ray runtime environments in the Glue Developer Guide.

      */ inline const Aws::String& GetRuntime() const{ return m_runtime; } @@ -221,8 +221,8 @@ namespace Model *

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and * additional libraries available in your environment. This field is not used in * other job types. For supported runtime environment values, see Working - * with Ray jobs in the Glue Developer Guide.

      + * href="https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html">Supported + * Ray runtime environments in the Glue Developer Guide.

      */ inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; } @@ -230,8 +230,8 @@ namespace Model *

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and * additional libraries available in your environment. This field is not used in * other job types. For supported runtime environment values, see Working - * with Ray jobs in the Glue Developer Guide.

      + * href="https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html">Supported + * Ray runtime environments in the Glue Developer Guide.

      */ inline void SetRuntime(const Aws::String& value) { m_runtimeHasBeenSet = true; m_runtime = value; } @@ -239,8 +239,8 @@ namespace Model *

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and * additional libraries available in your environment. This field is not used in * other job types. For supported runtime environment values, see Working - * with Ray jobs in the Glue Developer Guide.

      + * href="https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html">Supported + * Ray runtime environments in the Glue Developer Guide.

      */ inline void SetRuntime(Aws::String&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); } @@ -248,8 +248,8 @@ namespace Model *

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and * additional libraries available in your environment. This field is not used in * other job types. For supported runtime environment values, see Working - * with Ray jobs in the Glue Developer Guide.

      + * href="https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html">Supported + * Ray runtime environments in the Glue Developer Guide.

      */ inline void SetRuntime(const char* value) { m_runtimeHasBeenSet = true; m_runtime.assign(value); } @@ -257,8 +257,8 @@ namespace Model *

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and * additional libraries available in your environment. This field is not used in * other job types. For supported runtime environment values, see Working - * with Ray jobs in the Glue Developer Guide.

      + * href="https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html">Supported + * Ray runtime environments in the Glue Developer Guide.

      */ inline JobCommand& WithRuntime(const Aws::String& value) { SetRuntime(value); return *this;} @@ -266,8 +266,8 @@ namespace Model *

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and * additional libraries available in your environment. This field is not used in * other job types. For supported runtime environment values, see Working - * with Ray jobs in the Glue Developer Guide.

      + * href="https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html">Supported + * Ray runtime environments in the Glue Developer Guide.

      */ inline JobCommand& WithRuntime(Aws::String&& value) { SetRuntime(std::move(value)); return *this;} @@ -275,8 +275,8 @@ namespace Model *

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and * additional libraries available in your environment. This field is not used in * other job types. For supported runtime environment values, see Working - * with Ray jobs in the Glue Developer Guide.

      + * href="https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html">Supported + * Ray runtime environments in the Glue Developer Guide.

      */ inline JobCommand& WithRuntime(const char* value) { SetRuntime(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/SSMClient.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/SSMClient.h index 626a709273b..f4ee9bb805d 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/SSMClient.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/SSMClient.h @@ -1146,8 +1146,10 @@ namespace SSM } /** - *

      Lists all patches eligible to be included in a patch baseline.

      See - * Also:

      Lists all patches eligible to be included in a patch baseline.

      + *

      Currently, DescribeAvailablePatches supports only the Amazon + * Linux 1, Amazon Linux 2, and Windows Server operating systems.

      + *

      See Also:

      AWS * API Reference

      */ diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/Association.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/Association.h index 86177180b5e..adb092ac57b 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/Association.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/Association.h @@ -566,6 +566,35 @@ namespace Model inline Association& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;} + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline int GetDuration() const{ return m_duration; } + + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } + + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } + + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline Association& WithDuration(int value) { SetDuration(value); return *this;} + + /** *

      A key-value mapping of document parameters to target resources. Both Targets * and TargetMaps can't be specified together.

      @@ -649,6 +678,9 @@ namespace Model int m_scheduleOffset; bool m_scheduleOffsetHasBeenSet = false; + int m_duration; + bool m_durationHasBeenSet = false; + Aws::Vector>> m_targetMaps; bool m_targetMapsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationDescription.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationDescription.h index 24c39e2ab92..7dd487dce9b 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationDescription.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationDescription.h @@ -1265,6 +1265,35 @@ namespace Model inline AssociationDescription& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;} + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline int GetDuration() const{ return m_duration; } + + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } + + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } + + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline AssociationDescription& WithDuration(int value) { SetDuration(value); return *this;} + + /** *

      A key-value mapping of document parameters to target resources. Both Targets * and TargetMaps can't be specified together.

      @@ -1450,6 +1479,9 @@ namespace Model int m_scheduleOffset; bool m_scheduleOffsetHasBeenSet = false; + int m_duration; + bool m_durationHasBeenSet = false; + Aws::Vector>> m_targetMaps; bool m_targetMapsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationVersionInfo.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationVersionInfo.h index 32cdfa5761c..e80b836f73a 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationVersionInfo.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationVersionInfo.h @@ -1046,6 +1046,35 @@ namespace Model inline AssociationVersionInfo& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;} + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline int GetDuration() const{ return m_duration; } + + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } + + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } + + /** + *

      The number of hours that an association can run on specified targets. After + * the resulting cutoff time passes, associations that are currently running are + * cancelled, and no pending executions are started on remaining targets.

      + */ + inline AssociationVersionInfo& WithDuration(int value) { SetDuration(value); return *this;} + + /** *

      A key-value mapping of document parameters to target resources. Both Targets * and TargetMaps can't be specified together.

      @@ -1150,6 +1179,9 @@ namespace Model int m_scheduleOffset; bool m_scheduleOffsetHasBeenSet = false; + int m_duration; + bool m_durationHasBeenSet = false; + Aws::Vector>> m_targetMaps; bool m_targetMapsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationBatchRequestEntry.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationBatchRequestEntry.h index e979a6d85e0..0caeb111b21 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationBatchRequestEntry.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationBatchRequestEntry.h @@ -1146,6 +1146,75 @@ namespace Model inline CreateAssociationBatchRequestEntry& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;} + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is created, but only according to the specified schedule.

      • + *
      + */ + inline int GetDuration() const{ return m_duration; } + + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is created, but only according to the specified schedule.

      • + *
      + */ + inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } + + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is created, but only according to the specified schedule.

      • + *
      + */ + inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } + + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is created, but only according to the specified schedule.

      • + *
      + */ + inline CreateAssociationBatchRequestEntry& WithDuration(int value) { SetDuration(value); return *this;} + + /** *

      A key-value mapping of document parameters to target resources. Both Targets * and TargetMaps can't be specified together.

      @@ -1266,6 +1335,9 @@ namespace Model int m_scheduleOffset; bool m_scheduleOffsetHasBeenSet = false; + int m_duration; + bool m_durationHasBeenSet = false; + Aws::Vector>> m_targetMaps; bool m_targetMapsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationRequest.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationRequest.h index d2c04b4ad73..1163788d4f0 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationRequest.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationRequest.h @@ -1333,6 +1333,75 @@ namespace Model inline CreateAssociationRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;} + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is created, but only according to the specified schedule.

      • + *
      + */ + inline int GetDuration() const{ return m_duration; } + + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is created, but only according to the specified schedule.

      • + *
      + */ + inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } + + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is created, but only according to the specified schedule.

      • + *
      + */ + inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } + + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is created, but only according to the specified schedule.

      • + *
      + */ + inline CreateAssociationRequest& WithDuration(int value) { SetDuration(value); return *this;} + + /** *

      A key-value mapping of document parameters to target resources. Both Targets * and TargetMaps can't be specified together.

      @@ -1526,6 +1595,9 @@ namespace Model int m_scheduleOffset; bool m_scheduleOffsetHasBeenSet = false; + int m_duration; + bool m_durationHasBeenSet = false; + Aws::Vector>> m_targetMaps; bool m_targetMapsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DescribeDocumentRequest.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DescribeDocumentRequest.h index a34c0d94c91..ae3fe34c1a7 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DescribeDocumentRequest.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DescribeDocumentRequest.h @@ -126,57 +126,57 @@ namespace Model /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline DescribeDocumentRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline DescribeDocumentRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline DescribeDocumentRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentIdentifier.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentIdentifier.h index eb631018a67..e67a7ef3357 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentIdentifier.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentIdentifier.h @@ -217,57 +217,57 @@ namespace Model /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline DocumentIdentifier& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline DocumentIdentifier& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline DocumentIdentifier& WithVersionName(const char* value) { SetVersionName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentRequires.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentRequires.h index ea3994a4970..2ff6d9832cd 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentRequires.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentRequires.h @@ -171,57 +171,57 @@ namespace Model /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline DocumentRequires& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline DocumentRequires& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document, and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document, and can't be changed.

      */ inline DocumentRequires& WithVersionName(const char* value) { SetVersionName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentVersionInfo.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentVersionInfo.h index 78ce0ce427b..a72cb09f2a5 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentVersionInfo.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentVersionInfo.h @@ -181,58 +181,58 @@ namespace Model /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline DocumentVersionInfo& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline DocumentVersionInfo& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline DocumentVersionInfo& WithVersionName(const char* value) { SetVersionName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetConnectionStatusResult.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetConnectionStatusResult.h index fa5425624dc..0bd92fa6aa3 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetConnectionStatusResult.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetConnectionStatusResult.h @@ -70,32 +70,27 @@ namespace Model /** - *

      The status of the connection to the managed node. For example, 'Connected' or - * 'Not Connected'.

      + *

      The status of the connection to the managed node.

      */ inline const ConnectionStatus& GetStatus() const{ return m_status; } /** - *

      The status of the connection to the managed node. For example, 'Connected' or - * 'Not Connected'.

      + *

      The status of the connection to the managed node.

      */ inline void SetStatus(const ConnectionStatus& value) { m_status = value; } /** - *

      The status of the connection to the managed node. For example, 'Connected' or - * 'Not Connected'.

      + *

      The status of the connection to the managed node.

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

      The status of the connection to the managed node. For example, 'Connected' or - * 'Not Connected'.

      + *

      The status of the connection to the managed node.

      */ inline GetConnectionStatusResult& WithStatus(const ConnectionStatus& value) { SetStatus(value); return *this;} /** - *

      The status of the connection to the managed node. For example, 'Connected' or - * 'Not Connected'.

      + *

      The status of the connection to the managed node.

      */ inline GetConnectionStatusResult& WithStatus(ConnectionStatus&& value) { SetStatus(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentRequest.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentRequest.h index bf8c5f5ad50..51c6a651358 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentRequest.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentRequest.h @@ -78,57 +78,57 @@ namespace Model /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document and can't be changed.

      */ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document and can't be changed.

      */ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document and can't be changed.

      */ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document and can't be changed.

      */ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document and can't be changed.

      */ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document and can't be changed.

      */ inline GetDocumentRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document and can't be changed.

      */ inline GetDocumentRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

      An optional field specifying the version of the artifact associated with the - * document. For example, "Release 12, Update 6". This value is unique across all - * versions of a document and can't be changed.

      + * document. For example, 12.6. This value is unique across all versions of a + * document and can't be changed.

      */ inline GetDocumentRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentResult.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentResult.h index d7275533bb3..477f93f8649 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentResult.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentResult.h @@ -153,51 +153,51 @@ namespace Model /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

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

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

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

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline void SetVersionName(const char* value) { m_versionName.assign(value); } /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline GetDocumentResult& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline GetDocumentResult& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** - *

      The version of the artifact associated with the document. For example, - * "Release 12, Update 6". This value is unique across all versions of a document, - * and can't be changed.

      + *

      The version of the artifact associated with the document. For example, 12.6. + * This value is unique across all versions of a document, and can't be + * changed.

      */ inline GetDocumentResult& WithVersionName(const char* value) { SetVersionName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/ParameterHistory.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/ParameterHistory.h index 1f4f5db6a5a..6b1cc9af5d3 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/ParameterHistory.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/ParameterHistory.h @@ -115,42 +115,50 @@ namespace Model /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only

      */ inline const Aws::String& GetKeyId() const{ return m_keyId; } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only

      */ inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only

      */ inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only

      */ inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only

      */ inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only

      */ inline ParameterHistory& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;} /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only

      */ inline ParameterHistory& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;} /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only

      */ inline ParameterHistory& WithKeyId(const char* value) { SetKeyId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/ParameterMetadata.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/ParameterMetadata.h index 4aa73712e73..e486ed78510 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/ParameterMetadata.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/ParameterMetadata.h @@ -122,42 +122,50 @@ namespace Model /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only.

      */ inline const Aws::String& GetKeyId() const{ return m_keyId; } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only.

      */ inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only.

      */ inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only.

      */ inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only.

      */ inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); } /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only.

      */ inline ParameterMetadata& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;} /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only.

      */ inline ParameterMetadata& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;} /** - *

      The ID of the query key used for this parameter.

      + *

      The alias of the Key Management Service (KMS) key used to encrypt the + * parameter. Applies to SecureString parameters only.

      */ inline ParameterMetadata& WithKeyId(const char* value) { SetKeyId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/PatchComplianceData.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/PatchComplianceData.h index 3b98f697407..9dfcc1aa70d 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/PatchComplianceData.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/PatchComplianceData.h @@ -315,49 +315,65 @@ namespace Model /** *

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that - * are resolved by the patch.

      + * are resolved by the patch.

      Currently, CVE ID values are reported + * only for patches with a status of Missing or + * Failed.

      */ inline const Aws::String& GetCVEIds() const{ return m_cVEIds; } /** *

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that - * are resolved by the patch.

      + * are resolved by the patch.

      Currently, CVE ID values are reported + * only for patches with a status of Missing or + * Failed.

      */ inline bool CVEIdsHasBeenSet() const { return m_cVEIdsHasBeenSet; } /** *

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that - * are resolved by the patch.

      + * are resolved by the patch.

      Currently, CVE ID values are reported + * only for patches with a status of Missing or + * Failed.

      */ inline void SetCVEIds(const Aws::String& value) { m_cVEIdsHasBeenSet = true; m_cVEIds = value; } /** *

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that - * are resolved by the patch.

      + * are resolved by the patch.

      Currently, CVE ID values are reported + * only for patches with a status of Missing or + * Failed.

      */ inline void SetCVEIds(Aws::String&& value) { m_cVEIdsHasBeenSet = true; m_cVEIds = std::move(value); } /** *

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that - * are resolved by the patch.

      + * are resolved by the patch.

      Currently, CVE ID values are reported + * only for patches with a status of Missing or + * Failed.

      */ inline void SetCVEIds(const char* value) { m_cVEIdsHasBeenSet = true; m_cVEIds.assign(value); } /** *

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that - * are resolved by the patch.

      + * are resolved by the patch.

      Currently, CVE ID values are reported + * only for patches with a status of Missing or + * Failed.

      */ inline PatchComplianceData& WithCVEIds(const Aws::String& value) { SetCVEIds(value); return *this;} /** *

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that - * are resolved by the patch.

      + * are resolved by the patch.

      Currently, CVE ID values are reported + * only for patches with a status of Missing or + * Failed.

      */ inline PatchComplianceData& WithCVEIds(Aws::String&& value) { SetCVEIds(std::move(value)); return *this;} /** *

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that - * are resolved by the patch.

      + * are resolved by the patch.

      Currently, CVE ID values are reported + * only for patches with a status of Missing or + * Failed.

      */ inline PatchComplianceData& WithCVEIds(const char* value) { SetCVEIds(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateAssociationRequest.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateAssociationRequest.h index c766e923954..3cbf00e59c9 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateAssociationRequest.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateAssociationRequest.h @@ -1335,6 +1335,75 @@ namespace Model inline UpdateAssociationRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;} + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is updated, but only according to the specified schedule.

      • + *
      + */ + inline int GetDuration() const{ return m_duration; } + + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is updated, but only according to the specified schedule.

      • + *
      + */ + inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } + + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is updated, but only according to the specified schedule.

      • + *
      + */ + inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } + + /** + *

      The number of hours the association can run before it is canceled. Duration + * applies to associations that are currently running, and any pending and in + * progress commands on all targets. If a target was taken offline for the + * association to run, it is made available again immediately, without a reboot. + *

      The Duration parameter applies only when both these + * conditions are true:

      • The association for which you specify a + * duration is cancelable according to the parameters of the SSM command document + * or Automation runbook associated with this execution.

      • The + * command specifies the ApplyOnlyAtCronInterval + * parameter, which means that the association doesn't run immediately + * after it is updated, but only according to the specified schedule.

      • + *
      + */ + inline UpdateAssociationRequest& WithDuration(int value) { SetDuration(value); return *this;} + + /** *

      A key-value mapping of document parameters to target resources. Both Targets * and TargetMaps can't be specified together.

      @@ -1458,6 +1527,9 @@ namespace Model int m_scheduleOffset; bool m_scheduleOffsetHasBeenSet = false; + int m_duration; + bool m_durationHasBeenSet = false; + Aws::Vector>> m_targetMaps; bool m_targetMapsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentRequest.h b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentRequest.h index a4e5f07069e..cb8d06cfc12 100644 --- a/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentRequest.h +++ b/generated/src/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentRequest.h @@ -235,57 +235,57 @@ namespace Model /** *

      An optional field specifying the version of the artifact you are updating - * with the document. For example, "Release 12, Update 6". This value is unique - * across all versions of a document, and can't be changed.

      + * with the document. For example, 12.6. This value is unique across all versions + * of a document, and can't be changed.

      */ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

      An optional field specifying the version of the artifact you are updating - * with the document. For example, "Release 12, Update 6". This value is unique - * across all versions of a document, and can't be changed.

      + * with the document. For example, 12.6. This value is unique across all versions + * of a document, and can't be changed.

      */ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

      An optional field specifying the version of the artifact you are updating - * with the document. For example, "Release 12, Update 6". This value is unique - * across all versions of a document, and can't be changed.

      + * with the document. For example, 12.6. This value is unique across all versions + * of a document, and can't be changed.

      */ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

      An optional field specifying the version of the artifact you are updating - * with the document. For example, "Release 12, Update 6". This value is unique - * across all versions of a document, and can't be changed.

      + * with the document. For example, 12.6. This value is unique across all versions + * of a document, and can't be changed.

      */ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

      An optional field specifying the version of the artifact you are updating - * with the document. For example, "Release 12, Update 6". This value is unique - * across all versions of a document, and can't be changed.

      + * with the document. For example, 12.6. This value is unique across all versions + * of a document, and can't be changed.

      */ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

      An optional field specifying the version of the artifact you are updating - * with the document. For example, "Release 12, Update 6". This value is unique - * across all versions of a document, and can't be changed.

      + * with the document. For example, 12.6. This value is unique across all versions + * of a document, and can't be changed.

      */ inline UpdateDocumentRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

      An optional field specifying the version of the artifact you are updating - * with the document. For example, "Release 12, Update 6". This value is unique - * across all versions of a document, and can't be changed.

      + * with the document. For example, 12.6. This value is unique across all versions + * of a document, and can't be changed.

      */ inline UpdateDocumentRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

      An optional field specifying the version of the artifact you are updating - * with the document. For example, "Release 12, Update 6". This value is unique - * across all versions of a document, and can't be changed.

      + * with the document. For example, 12.6. This value is unique across all versions + * of a document, and can't be changed.

      */ inline UpdateDocumentRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/Association.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/Association.cpp index 4797796e7ff..1d819046aa6 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/Association.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/Association.cpp @@ -31,6 +31,8 @@ Association::Association() : m_associationNameHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false) { } @@ -48,6 +50,8 @@ Association::Association(JsonView jsonValue) : m_associationNameHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false) { *this = jsonValue; @@ -135,6 +139,13 @@ Association& Association::operator =(JsonView jsonValue) m_scheduleOffsetHasBeenSet = true; } + if(jsonValue.ValueExists("Duration")) + { + m_duration = jsonValue.GetInteger("Duration"); + + m_durationHasBeenSet = true; + } + if(jsonValue.ValueExists("TargetMaps")) { Aws::Utils::Array targetMapsJsonList = jsonValue.GetArray("TargetMaps"); @@ -235,6 +246,12 @@ JsonValue Association::Jsonize() const } + if(m_durationHasBeenSet) + { + payload.WithInteger("Duration", m_duration); + + } + if(m_targetMapsHasBeenSet) { Aws::Utils::Array targetMapsJsonList(m_targetMaps.size()); diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationDescription.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationDescription.cpp index 65235c15128..0200c7ee771 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationDescription.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationDescription.cpp @@ -48,6 +48,8 @@ AssociationDescription::AssociationDescription() : m_targetLocationsHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false), m_alarmConfigurationHasBeenSet(false), m_triggeredAlarmsHasBeenSet(false) @@ -84,6 +86,8 @@ AssociationDescription::AssociationDescription(JsonView jsonValue) : m_targetLocationsHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false), m_alarmConfigurationHasBeenSet(false), m_triggeredAlarmsHasBeenSet(false) @@ -287,6 +291,13 @@ AssociationDescription& AssociationDescription::operator =(JsonView jsonValue) m_scheduleOffsetHasBeenSet = true; } + if(jsonValue.ValueExists("Duration")) + { + m_duration = jsonValue.GetInteger("Duration"); + + m_durationHasBeenSet = true; + } + if(jsonValue.ValueExists("TargetMaps")) { Aws::Utils::Array targetMapsJsonList = jsonValue.GetArray("TargetMaps"); @@ -503,6 +514,12 @@ JsonValue AssociationDescription::Jsonize() const } + if(m_durationHasBeenSet) + { + payload.WithInteger("Duration", m_duration); + + } + if(m_targetMapsHasBeenSet) { Aws::Utils::Array targetMapsJsonList(m_targetMaps.size()); diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationVersionInfo.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationVersionInfo.cpp index 75446d1ba2b..2b2b5a19e2e 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationVersionInfo.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationVersionInfo.cpp @@ -41,6 +41,8 @@ AssociationVersionInfo::AssociationVersionInfo() : m_targetLocationsHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false) { } @@ -68,6 +70,8 @@ AssociationVersionInfo::AssociationVersionInfo(JsonView jsonValue) : m_targetLocationsHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false) { *this = jsonValue; @@ -220,6 +224,13 @@ AssociationVersionInfo& AssociationVersionInfo::operator =(JsonView jsonValue) m_scheduleOffsetHasBeenSet = true; } + if(jsonValue.ValueExists("Duration")) + { + m_duration = jsonValue.GetInteger("Duration"); + + m_durationHasBeenSet = true; + } + if(jsonValue.ValueExists("TargetMaps")) { Aws::Utils::Array targetMapsJsonList = jsonValue.GetArray("TargetMaps"); @@ -380,6 +391,12 @@ JsonValue AssociationVersionInfo::Jsonize() const } + if(m_durationHasBeenSet) + { + payload.WithInteger("Duration", m_duration); + + } + if(m_targetMapsHasBeenSet) { Aws::Utils::Array targetMapsJsonList(m_targetMaps.size()); diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/CreateAssociationBatchRequestEntry.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/CreateAssociationBatchRequestEntry.cpp index 890713c7e3d..62b23e815f9 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/CreateAssociationBatchRequestEntry.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/CreateAssociationBatchRequestEntry.cpp @@ -40,6 +40,8 @@ CreateAssociationBatchRequestEntry::CreateAssociationBatchRequestEntry() : m_targetLocationsHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false), m_alarmConfigurationHasBeenSet(false) { @@ -67,6 +69,8 @@ CreateAssociationBatchRequestEntry::CreateAssociationBatchRequestEntry(JsonView m_targetLocationsHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false), m_alarmConfigurationHasBeenSet(false) { @@ -213,6 +217,13 @@ CreateAssociationBatchRequestEntry& CreateAssociationBatchRequestEntry::operator m_scheduleOffsetHasBeenSet = true; } + if(jsonValue.ValueExists("Duration")) + { + m_duration = jsonValue.GetInteger("Duration"); + + m_durationHasBeenSet = true; + } + if(jsonValue.ValueExists("TargetMaps")) { Aws::Utils::Array targetMapsJsonList = jsonValue.GetArray("TargetMaps"); @@ -375,6 +386,12 @@ JsonValue CreateAssociationBatchRequestEntry::Jsonize() const } + if(m_durationHasBeenSet) + { + payload.WithInteger("Duration", m_duration); + + } + if(m_targetMapsHasBeenSet) { Aws::Utils::Array targetMapsJsonList(m_targetMaps.size()); diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/CreateAssociationRequest.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/CreateAssociationRequest.cpp index f61ec2e8a2a..d928cc48461 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/CreateAssociationRequest.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/CreateAssociationRequest.cpp @@ -34,6 +34,8 @@ CreateAssociationRequest::CreateAssociationRequest() : m_targetLocationsHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false), m_tagsHasBeenSet(false), m_alarmConfigurationHasBeenSet(false) @@ -169,6 +171,12 @@ Aws::String CreateAssociationRequest::SerializePayload() const } + if(m_durationHasBeenSet) + { + payload.WithInteger("Duration", m_duration); + + } + if(m_targetMapsHasBeenSet) { Aws::Utils::Array targetMapsJsonList(m_targetMaps.size()); diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/UpdateAssociationRequest.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/UpdateAssociationRequest.cpp index 076dea0214f..651fff52a2d 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/UpdateAssociationRequest.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/UpdateAssociationRequest.cpp @@ -35,6 +35,8 @@ UpdateAssociationRequest::UpdateAssociationRequest() : m_targetLocationsHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), + m_duration(0), + m_durationHasBeenSet(false), m_targetMapsHasBeenSet(false), m_alarmConfigurationHasBeenSet(false) { @@ -175,6 +177,12 @@ Aws::String UpdateAssociationRequest::SerializePayload() const } + if(m_durationHasBeenSet) + { + payload.WithInteger("Duration", m_duration); + + } + if(m_targetMapsHasBeenSet) { Aws::Utils::Array targetMapsJsonList(m_targetMaps.size()); 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 8feb6202bbb..b885ec55f33 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.254" +#define AWS_SDK_VERSION_STRING "1.11.255" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 254 +#define AWS_SDK_VERSION_PATCH 255 diff --git a/tools/code-generation/api-descriptions/cloudformation-2010-05-15.normal.json b/tools/code-generation/api-descriptions/cloudformation-2010-05-15.normal.json index 495b89aeda5..e022b3538b0 100644 --- a/tools/code-generation/api-descriptions/cloudformation-2010-05-15.normal.json +++ b/tools/code-generation/api-descriptions/cloudformation-2010-05-15.normal.json @@ -109,6 +109,24 @@ ], "documentation":"

      Creates a list of changes that will be applied to a stack so that you can review the changes before executing them. You can create a change set for a stack that doesn't exist or an existing stack. If you create a change set for a stack that doesn't exist, the change set shows all of the resources that CloudFormation will create. If you create a change set for an existing stack, CloudFormation compares the stack's information with the information that you submit in the change set and lists the differences. Use change sets to understand which resources CloudFormation will create or change, and how it will change resources in an existing stack, before you create or update a stack.

      To create a change set for a stack that doesn't exist, for the ChangeSetType parameter, specify CREATE. To create a change set for an existing stack, specify UPDATE for the ChangeSetType parameter. To create a change set for an import operation, specify IMPORT for the ChangeSetType parameter. After the CreateChangeSet call successfully completes, CloudFormation starts creating the change set. To check the status of the change set or to review it, use the DescribeChangeSet action.

      When you are satisfied with the changes the change set will make, execute the change set by using the ExecuteChangeSet action. CloudFormation doesn't make changes until you execute the change set.

      To create a change set for the entire stack hierarchy, set IncludeNestedStacks to True.

      " }, + "CreateGeneratedTemplate":{ + "name":"CreateGeneratedTemplate", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateGeneratedTemplateInput"}, + "output":{ + "shape":"CreateGeneratedTemplateOutput", + "resultWrapper":"CreateGeneratedTemplateResult" + }, + "errors":[ + {"shape":"AlreadyExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"ConcurrentResourcesLimitExceededException"} + ], + "documentation":"

      Creates a template from existing resources that are not already managed with CloudFormation. You can check the status of the template generation using the DescribeGeneratedTemplate API action.

      " + }, "CreateStack":{ "name":"CreateStack", "http":{ @@ -218,6 +236,19 @@ ], "documentation":"

      Deletes the specified change set. Deleting change sets ensures that no one executes the wrong change set.

      If the call successfully completes, CloudFormation successfully deleted the change set.

      If IncludeNestedStacks specifies True during the creation of the nested change set, then DeleteChangeSet will delete all change sets that belong to the stacks hierarchy and will also delete all change sets for nested stacks with the status of REVIEW_IN_PROGRESS.

      " }, + "DeleteGeneratedTemplate":{ + "name":"DeleteGeneratedTemplate", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteGeneratedTemplateInput"}, + "errors":[ + {"shape":"GeneratedTemplateNotFoundException"}, + {"shape":"ConcurrentResourcesLimitExceededException"} + ], + "documentation":"

      Deleted a generated template.

      " + }, "DeleteStack":{ "name":"DeleteStack", "http":{ @@ -330,6 +361,22 @@ ], "documentation":"

      Returns hook-related information for the change set and a list of changes that CloudFormation makes when you run the change set.

      " }, + "DescribeGeneratedTemplate":{ + "name":"DescribeGeneratedTemplate", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeGeneratedTemplateInput"}, + "output":{ + "shape":"DescribeGeneratedTemplateOutput", + "resultWrapper":"DescribeGeneratedTemplateResult" + }, + "errors":[ + {"shape":"GeneratedTemplateNotFoundException"} + ], + "documentation":"

      Describes a generated template. The output includes details about the progress of the creation of a generated template started by a CreateGeneratedTemplate API action or the update of a generated template started with an UpdateGeneratedTemplate API action.

      " + }, "DescribeOrganizationsAccess":{ "name":"DescribeOrganizationsAccess", "http":{ @@ -364,6 +411,22 @@ "documentation":"

      Returns information about a CloudFormation extension publisher.

      If you don't supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account.

      For more information about registering as a publisher, see:

      ", "idempotent":true }, + "DescribeResourceScan":{ + "name":"DescribeResourceScan", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeResourceScanInput"}, + "output":{ + "shape":"DescribeResourceScanOutput", + "resultWrapper":"DescribeResourceScanResult" + }, + "errors":[ + {"shape":"ResourceScanNotFoundException"} + ], + "documentation":"

      Describes details of a resource scan.

      " + }, "DescribeStackDriftDetectionStatus":{ "name":"DescribeStackDriftDetectionStatus", "http":{ @@ -603,6 +666,22 @@ ], "documentation":"

      Updates a stack using the input information that was provided when the specified change set was created. After the call successfully completes, CloudFormation starts updating the stack. Use the DescribeStacks action to view the status of the update.

      When you execute a change set, CloudFormation deletes all other change sets associated with the stack because they aren't valid for the updated stack.

      If a stack policy is associated with the stack, CloudFormation enforces the policy during the update. You can't specify a temporary stack policy that overrides the current policy.

      To create a change set for the entire stack hierarchy, IncludeNestedStacks must have been set to True.

      " }, + "GetGeneratedTemplate":{ + "name":"GetGeneratedTemplate", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetGeneratedTemplateInput"}, + "output":{ + "shape":"GetGeneratedTemplateOutput", + "resultWrapper":"GetGeneratedTemplateResult" + }, + "errors":[ + {"shape":"GeneratedTemplateNotFoundException"} + ], + "documentation":"

      Retrieves a generated template. If the template is in an InProgress or Pending status then the template returned will be the template when the template was last in a Complete status. If the template has not yet been in a Complete status then an empty template will be returned.

      " + }, "GetStackPolicy":{ "name":"GetStackPolicy", "http":{ @@ -696,6 +775,19 @@ }, "documentation":"

      Lists all exported output values in the account and Region in which you call this action. Use this action to see the exported output values that you can import into other stacks. To import values, use the Fn::ImportValue function.

      For more information, see CloudFormation export stack output values.

      " }, + "ListGeneratedTemplates":{ + "name":"ListGeneratedTemplates", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListGeneratedTemplatesInput"}, + "output":{ + "shape":"ListGeneratedTemplatesOutput", + "resultWrapper":"ListGeneratedTemplatesResult" + }, + "documentation":"

      Lists your generated templates in this Region.

      " + }, "ListImports":{ "name":"ListImports", "http":{ @@ -709,6 +801,53 @@ }, "documentation":"

      Lists all stacks that are importing an exported output value. To modify or remove an exported output value, first use this action to see which stacks are using it. To see the exported output values in your account, see ListExports.

      For more information about importing an exported output value, see the Fn::ImportValue function.

      " }, + "ListResourceScanRelatedResources":{ + "name":"ListResourceScanRelatedResources", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResourceScanRelatedResourcesInput"}, + "output":{ + "shape":"ListResourceScanRelatedResourcesOutput", + "resultWrapper":"ListResourceScanRelatedResourcesResult" + }, + "errors":[ + {"shape":"ResourceScanNotFoundException"}, + {"shape":"ResourceScanInProgressException"} + ], + "documentation":"

      Lists the related resources for a list of resources from a resource scan. The response indicates whether each returned resource is already managed by CloudFormation.

      " + }, + "ListResourceScanResources":{ + "name":"ListResourceScanResources", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResourceScanResourcesInput"}, + "output":{ + "shape":"ListResourceScanResourcesOutput", + "resultWrapper":"ListResourceScanResourcesResult" + }, + "errors":[ + {"shape":"ResourceScanNotFoundException"}, + {"shape":"ResourceScanInProgressException"} + ], + "documentation":"

      Lists the resources from a resource scan. The results can be filtered by resource identifier, resource type prefix, tag key, and tag value. Only resources that match all specified filters are returned. The response indicates whether each returned resource is already managed by CloudFormation.

      " + }, + "ListResourceScans":{ + "name":"ListResourceScans", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResourceScansInput"}, + "output":{ + "shape":"ListResourceScansOutput", + "resultWrapper":"ListResourceScansResult" + }, + "documentation":"

      List the resource scans from newest to oldest. By default it will return up to 10 resource scans.

      " + }, "ListStackInstanceResourceDrifts":{ "name":"ListStackInstanceResourceDrifts", "http":{ @@ -1005,6 +1144,23 @@ "input":{"shape":"SignalResourceInput"}, "documentation":"

      Sends a signal to the specified resource with a success or failure status. You can use the SignalResource operation in conjunction with a creation policy or update policy. CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource operation is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.

      " }, + "StartResourceScan":{ + "name":"StartResourceScan", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartResourceScanInput"}, + "output":{ + "shape":"StartResourceScanOutput", + "resultWrapper":"StartResourceScanResult" + }, + "errors":[ + {"shape":"ResourceScanInProgressException"}, + {"shape":"ResourceScanLimitExceededException"} + ], + "documentation":"

      Starts a scan of the resources in this account in this Region. You can the status of a scan using the ListResourceScans API action.

      " + }, "StopStackSetOperation":{ "name":"StopStackSetOperation", "http":{ @@ -1041,6 +1197,24 @@ "documentation":"

      Tests a registered extension to make sure it meets all necessary requirements for being published in the CloudFormation registry.

      • For resource types, this includes passing all contracts tests defined for the type.

      • For modules, this includes determining if the module's model meets all necessary requirements.

      For more information, see Testing your public extension prior to publishing in the CloudFormation CLI User Guide.

      If you don't specify a version, CloudFormation uses the default version of the extension in your account and Region for testing.

      To perform testing, CloudFormation assumes the execution role specified when the type was registered. For more information, see RegisterType.

      Once you've initiated testing on an extension using TestType, you can pass the returned TypeVersionArn into DescribeType to monitor the current test status and test status description for the extension.

      An extension must have a test status of PASSED before it can be published. For more information, see Publishing extensions to make them available for public use in the CloudFormation CLI User Guide.

      ", "idempotent":true }, + "UpdateGeneratedTemplate":{ + "name":"UpdateGeneratedTemplate", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateGeneratedTemplateInput"}, + "output":{ + "shape":"UpdateGeneratedTemplateOutput", + "resultWrapper":"UpdateGeneratedTemplateResult" + }, + "errors":[ + {"shape":"AlreadyExistsException"}, + {"shape":"GeneratedTemplateNotFoundException"}, + {"shape":"LimitExceededException"} + ], + "documentation":"

      Updates a generated template. This can be used to change the name, add and remove resources, refresh resources, and change the DeletionPolicy and UpdateReplacePolicy settings. You can check the status of the update to the generated template using the DescribeGeneratedTemplate API action.

      " + }, "UpdateStack":{ "name":"UpdateStack", "http":{ @@ -1662,6 +1836,18 @@ "SOFT_FAILURE_TOLERANCE" ] }, + "ConcurrentResourcesLimitExceededException":{ + "type":"structure", + "members":{ + }, + "documentation":"

      No more than 5 generated templates can be in an InProgress or Pending status at one time. This error is also returned if a generated template that is in an InProgress or Pending status is attempted to be updated or deleted.

      ", + "error":{ + "code":"ConcurrentResourcesLimitExceeded", + "httpStatusCode":429, + "senderFault":true + }, + "exception":true + }, "ConfigurationSchema":{ "type":"string", "max":60000, @@ -1803,6 +1989,37 @@ }, "documentation":"

      The output for the CreateChangeSet action.

      " }, + "CreateGeneratedTemplateInput":{ + "type":"structure", + "required":["GeneratedTemplateName"], + "members":{ + "Resources":{ + "shape":"ResourceDefinitions", + "documentation":"

      An optional list of resources to be included in the generated template.

      If no resources are specified,the template will be created without any resources. Resources can be added to the template using the UpdateGeneratedTemplate API action.

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

      The name assigned to the generated template.

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

      An optional name or ARN of a stack to use as the base stack for the generated template.

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

      The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.

      " + } + } + }, + "CreateGeneratedTemplateOutput":{ + "type":"structure", + "members":{ + "GeneratedTemplateId":{ + "shape":"GeneratedTemplateId", + "documentation":"

      The ID of the generated template.

      " + } + } + }, "CreateStackInput":{ "type":"structure", "required":["StackName"], @@ -1833,7 +2050,7 @@ }, "TimeoutInMinutes":{ "shape":"TimeoutMinutes", - "documentation":"

      The amount of time that can pass before the stack status becomes CREATE_FAILED; if DisableRollback is not set or is set to false, the stack will be rolled back.

      " + "documentation":"

      The amount of time that can pass before the stack status becomes CREATE_FAILED; if DisableRollback is not set or is set to false, the stack will be rolled back.

      " }, "NotificationARNs":{ "shape":"NotificationARNs", @@ -2085,6 +2302,16 @@ }, "documentation":"

      The output for the DeleteChangeSet action.

      " }, + "DeleteGeneratedTemplateInput":{ + "type":"structure", + "required":["GeneratedTemplateName"], + "members":{ + "GeneratedTemplateName":{ + "shape":"GeneratedTemplateName", + "documentation":"

      The name or Amazon Resource Name (ARN) of a generated template.

      " + } + } + }, "DeleteStackInput":{ "type":"structure", "required":["StackName"], @@ -2423,6 +2650,65 @@ }, "documentation":"

      The output for the DescribeChangeSet action.

      " }, + "DescribeGeneratedTemplateInput":{ + "type":"structure", + "required":["GeneratedTemplateName"], + "members":{ + "GeneratedTemplateName":{ + "shape":"GeneratedTemplateName", + "documentation":"

      The name or Amazon Resource Name (ARN) of a generated template.

      " + } + } + }, + "DescribeGeneratedTemplateOutput":{ + "type":"structure", + "members":{ + "GeneratedTemplateId":{ + "shape":"GeneratedTemplateId", + "documentation":"

      The Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc .

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

      The name of the generated template.

      " + }, + "Resources":{ + "shape":"ResourceDetails", + "documentation":"

      A list of objects describing the details of the resources in the template generation.

      " + }, + "Status":{ + "shape":"GeneratedTemplateStatus", + "documentation":"

      The status of the template generation. Supported values are:

      • CreatePending - the creation of the template is pending.

      • CreateInProgress - the creation of the template is in progress.

      • DeletePending - the deletion of the template is pending.

      • DeleteInProgress - the deletion of the template is in progress.

      • UpdatePending - the update of the template is pending.

      • UpdateInProgress - the update of the template is in progress.

      • Failed - the template operation failed.

      • Complete - the template operation is complete.

      " + }, + "StatusReason":{ + "shape":"TemplateStatusReason", + "documentation":"

      The reason for the current template generation status. This will provide more details if a failure happened.

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

      The time the generated template was created.

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

      The time the generated template was last updated.

      " + }, + "Progress":{ + "shape":"TemplateProgress", + "documentation":"

      An object describing the progress of the template generation.

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

      The stack ARN of the base stack if a base stack was provided when generating the template.

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

      The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.

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

      The number of warnings generated for this template. The warnings are found in the details of each of the resources in the template.

      " + } + } + }, "DescribeOrganizationsAccessInput":{ "type":"structure", "members":{ @@ -2471,6 +2757,57 @@ } } }, + "DescribeResourceScanInput":{ + "type":"structure", + "required":["ResourceScanId"], + "members":{ + "ResourceScanId":{ + "shape":"ResourceScanId", + "documentation":"

      The Amazon Resource Name (ARN) of the resource scan.

      " + } + } + }, + "DescribeResourceScanOutput":{ + "type":"structure", + "members":{ + "ResourceScanId":{ + "shape":"ResourceScanId", + "documentation":"

      The Amazon Resource Name (ARN) of the resource scan. The format is arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. An example is arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 .

      " + }, + "Status":{ + "shape":"ResourceScanStatus", + "documentation":"

      Status of the resource scan.

      INPROGRESS

      The resource scan is still in progress.

      COMPLETE

      The resource scan is complete.

      EXPIRED

      The resource scan has expired.

      FAILED

      The resource scan has failed.

      " + }, + "StatusReason":{ + "shape":"ResourceScanStatusReason", + "documentation":"

      The reason for the resource scan status, providing more information if a failure happened.

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

      The time that the resource scan was started.

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

      The time that the resource scan was finished.

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

      The percentage of the resource scan that has been completed.

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

      The list of resource types for the specified scan. Resource types are only available for scans with a Status set to COMPLETE or FAILED .

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

      The number of resources that were listed. This is only available for scans with a Status set to COMPLETE, EXPIRED, or FAILED .

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

      The number of resources that were read. This is only available for scans with a Status set to COMPLETE, EXPIRED, or FAILED .

      This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException.

      " + } + } + }, "DescribeStackDriftDetectionStatusInput":{ "type":"structure", "required":["StackDriftDetectionId"], @@ -3164,6 +3501,91 @@ "max":100, "min":0 }, + "GeneratedTemplateDeletionPolicy":{ + "type":"string", + "enum":[ + "DELETE", + "RETAIN" + ] + }, + "GeneratedTemplateId":{ + "type":"string", + "max":256, + "min":1 + }, + "GeneratedTemplateName":{ + "type":"string", + "max":128, + "min":1 + }, + "GeneratedTemplateNotFoundException":{ + "type":"structure", + "members":{ + }, + "documentation":"

      The generated template was not found.

      ", + "error":{ + "code":"GeneratedTemplateNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "GeneratedTemplateResourceStatus":{ + "type":"string", + "enum":[ + "PENDING", + "IN_PROGRESS", + "FAILED", + "COMPLETE" + ] + }, + "GeneratedTemplateStatus":{ + "type":"string", + "enum":[ + "CREATE_PENDING", + "UPDATE_PENDING", + "DELETE_PENDING", + "CREATE_IN_PROGRESS", + "UPDATE_IN_PROGRESS", + "DELETE_IN_PROGRESS", + "FAILED", + "COMPLETE" + ] + }, + "GeneratedTemplateUpdateReplacePolicy":{ + "type":"string", + "enum":[ + "DELETE", + "RETAIN" + ] + }, + "GetGeneratedTemplateInput":{ + "type":"structure", + "required":["GeneratedTemplateName"], + "members":{ + "Format":{ + "shape":"TemplateFormat", + "documentation":"

      The language to use to retrieve for the generated template. Supported values are:

      • JSON

      • YAML

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

      The name or Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc .

      " + } + } + }, + "GetGeneratedTemplateOutput":{ + "type":"structure", + "members":{ + "Status":{ + "shape":"GeneratedTemplateStatus", + "documentation":"

      The status of the template generation. Supported values are:

      • CreatePending - the creation of the template is pending.

      • CreateInProgress - the creation of the template is in progress.

      • DeletePending - the deletion of the template is pending.

      • DeleteInProgress - the deletion of the template is in progress.

      • UpdatePending - the update of the template is pending.

      • UpdateInProgress - the update of the template is in progress.

      • Failed - the template operation failed.

      • Complete - the template operation is complete.

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

      The template body of the generated template, in the language specified by the Language parameter.

      " + } + } + }, "GetStackPolicyInput":{ "type":"structure", "required":["StackName"], @@ -3496,6 +3918,19 @@ "IsActivated":{"type":"boolean"}, "IsDefaultConfiguration":{"type":"boolean"}, "IsDefaultVersion":{"type":"boolean"}, + "JazzLogicalResourceIds":{ + "type":"list", + "member":{"shape":"LogicalResourceId"}, + "max":500, + "min":1 + }, + "JazzResourceIdentifierProperties":{ + "type":"map", + "key":{"shape":"JazzResourceIdentifierPropertyKey"}, + "value":{"shape":"JazzResourceIdentifierPropertyValue"} + }, + "JazzResourceIdentifierPropertyKey":{"type":"string"}, + "JazzResourceIdentifierPropertyValue":{"type":"string"}, "Key":{"type":"string"}, "LastUpdatedTime":{"type":"timestamp"}, "LimitExceededException":{ @@ -3550,43 +3985,180 @@ } } }, - "ListExportsOutput":{ + "ListExportsOutput":{ + "type":"structure", + "members":{ + "Exports":{ + "shape":"Exports", + "documentation":"

      The output for the ListExports action.

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

      If the output exceeds 100 exported output values, a string that identifies the next page of exports. If there is no additional page, this value is null.

      " + } + } + }, + "ListGeneratedTemplatesInput":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

      A string that identifies the next page of resource scan results.

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

      If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListGeneratedTemplates API action will return at most 50 results in each response. The maximum value is 100.

      " + } + } + }, + "ListGeneratedTemplatesOutput":{ + "type":"structure", + "members":{ + "Summaries":{ + "shape":"TemplateSummaries", + "documentation":"

      A list of summaries of the generated templates.

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

      If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListGeneratedTemplates again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.

      " + } + } + }, + "ListImportsInput":{ + "type":"structure", + "required":["ExportName"], + "members":{ + "ExportName":{ + "shape":"ExportName", + "documentation":"

      The name of the exported output value. CloudFormation returns the stack names that are importing this value.

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

      A string (provided by the ListImports response output) that identifies the next page of stacks that are importing the specified exported output value.

      " + } + } + }, + "ListImportsOutput":{ + "type":"structure", + "members":{ + "Imports":{ + "shape":"Imports", + "documentation":"

      A list of stack names that are importing the specified exported output value.

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

      A string that identifies the next page of exports. If there is no additional page, this value is null.

      " + } + } + }, + "ListResourceScanRelatedResourcesInput":{ + "type":"structure", + "required":[ + "ResourceScanId", + "Resources" + ], + "members":{ + "ResourceScanId":{ + "shape":"ResourceScanId", + "documentation":"

      The Amazon Resource Name (ARN) of the resource scan.

      " + }, + "Resources":{ + "shape":"ScannedResourceIdentifiers", + "documentation":"

      The list of resources for which you want to get the related resources. Up to 100 resources can be provided.

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

      A string that identifies the next page of resource scan results.

      " + }, + "MaxResults":{ + "shape":"BoxedMaxResults", + "documentation":"

      If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListResourceScanRelatedResources API action will return up to 100 results in each response. The maximum value is 100.

      " + } + } + }, + "ListResourceScanRelatedResourcesOutput":{ + "type":"structure", + "members":{ + "RelatedResources":{ + "shape":"RelatedResources", + "documentation":"

      List of up to MaxResults resources in the specified resource scan related to the specified resources.

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

      If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListResourceScanRelatedResources again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.

      " + } + } + }, + "ListResourceScanResourcesInput":{ + "type":"structure", + "required":["ResourceScanId"], + "members":{ + "ResourceScanId":{ + "shape":"ResourceScanId", + "documentation":"

      The Amazon Resource Name (ARN) of the resource scan.

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

      If specified, the returned resources will have the specified resource identifier (or one of them in the case where the resource has multiple identifiers).

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

      If specified, the returned resources will be of any of the resource types with the specified prefix.

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

      If specified, the returned resources will have a matching tag key.

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

      If specified, the returned resources will have a matching tag value.

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

      A string that identifies the next page of resource scan results.

      " + }, + "MaxResults":{ + "shape":"ResourceScannerMaxResults", + "documentation":"

      If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListResourceScanResources API action will return at most 100 results in each response. The maximum value is 100.

      " + } + } + }, + "ListResourceScanResourcesOutput":{ "type":"structure", "members":{ - "Exports":{ - "shape":"Exports", - "documentation":"

      The output for the ListExports action.

      " + "Resources":{ + "shape":"ScannedResources", + "documentation":"

      List of up to MaxResults resources in the specified resource scan that match all of the specified filters.

      " }, "NextToken":{ "shape":"NextToken", - "documentation":"

      If the output exceeds 100 exported output values, a string that identifies the next page of exports. If there is no additional page, this value is null.

      " + "documentation":"

      If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListResourceScanResources again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.

      " } } }, - "ListImportsInput":{ + "ListResourceScansInput":{ "type":"structure", - "required":["ExportName"], "members":{ - "ExportName":{ - "shape":"ExportName", - "documentation":"

      The name of the exported output value. CloudFormation returns the stack names that are importing this value.

      " - }, "NextToken":{ "shape":"NextToken", - "documentation":"

      A string (provided by the ListImports response output) that identifies the next page of stacks that are importing the specified exported output value.

      " + "documentation":"

      A string that identifies the next page of resource scan results.

      " + }, + "MaxResults":{ + "shape":"ResourceScannerMaxResults", + "documentation":"

      If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. The default value is 10. The maximum value is 100.

      " } } }, - "ListImportsOutput":{ + "ListResourceScansOutput":{ "type":"structure", "members":{ - "Imports":{ - "shape":"Imports", - "documentation":"

      A list of stack names that are importing the specified exported output value.

      " + "ResourceScanSummaries":{ + "shape":"ResourceScanSummaries", + "documentation":"

      The list of scans returned.

      " }, "NextToken":{ "shape":"NextToken", - "documentation":"

      A string that identifies the next page of exports. If there is no additional page, this value is null.

      " + "documentation":"

      If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListResourceScans again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.

      " } } }, @@ -4036,6 +4608,7 @@ "max":100000, "min":1 }, + "ManagedByStack":{"type":"boolean"}, "ManagedExecution":{ "type":"structure", "members":{ @@ -4105,6 +4678,10 @@ "member":{"shape":"NotificationARN"}, "max":5 }, + "NumberOfResources":{ + "type":"integer", + "min":0 + }, "OnFailure":{ "type":"string", "enum":[ @@ -4328,6 +4905,7 @@ "type":"list", "member":{"shape":"Parameter"} }, + "PercentageCompleted":{"type":"double"}, "PermissionModels":{ "type":"string", "enum":[ @@ -4365,6 +4943,7 @@ "pattern":"arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:[0-9]{12}:type/.+" }, "Properties":{"type":"string"}, + "PropertyDescription":{"type":"string"}, "PropertyDifference":{ "type":"structure", "required":[ @@ -4510,6 +5089,7 @@ "members":{ } }, + "RefreshAllResources":{"type":"boolean"}, "Region":{ "type":"string", "pattern":"^[a-zA-Z0-9-]{1,128}$" @@ -4615,6 +5195,10 @@ "HOOK" ] }, + "RelatedResources":{ + "type":"list", + "member":{"shape":"ScannedResource"} + }, "Replacement":{ "type":"string", "enum":[ @@ -4655,6 +5239,7 @@ "type":"list", "member":{"shape":"RequiredActivatedType"} }, + "RequiredProperty":{"type":"boolean"}, "RequiresRecreation":{ "type":"string", "enum":[ @@ -4743,6 +5328,71 @@ "type":"list", "member":{"shape":"ResourceChangeDetail"} }, + "ResourceDefinition":{ + "type":"structure", + "required":[ + "ResourceType", + "ResourceIdentifier" + ], + "members":{ + "ResourceType":{ + "shape":"ResourceType", + "documentation":"

      The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see IaC generator supported resource types in the CloudFormation User Guide

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

      The logical resource id for this resource in the generated template.

      " + }, + "ResourceIdentifier":{ + "shape":"ResourceIdentifierProperties", + "documentation":"

      A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be \"TableName\": \"MyDDBTable\". For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.

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

      A resource included in a generated template. This data type is used with the CreateGeneratedTemplate and UpdateGeneratedTemplate API actions.

      " + }, + "ResourceDefinitions":{ + "type":"list", + "member":{"shape":"ResourceDefinition"}, + "max":500, + "min":1 + }, + "ResourceDetail":{ + "type":"structure", + "members":{ + "ResourceType":{ + "shape":"ResourceType", + "documentation":"

      The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see IaC generator supported resource types In the CloudFormation User Guide

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

      The logical id for this resource in the final generated template.

      " + }, + "ResourceIdentifier":{ + "shape":"ResourceIdentifierProperties", + "documentation":"

      A list of up to 256 key-value pairs that identifies the resource in the generated template. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be \"TableName\": \"MyDDBTable\". For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.

      " + }, + "ResourceStatus":{ + "shape":"GeneratedTemplateResourceStatus", + "documentation":"

      Status of the processing of a resource in a generated template.

      InProgress

      The resource processing is still in progress.

      Complete

      The resource processing is complete.

      Pending

      The resource processing is pending.

      Failed

      The resource processing has failed.

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

      The reason for the resource detail, providing more information if a failure happened.

      " + }, + "Warnings":{ + "shape":"WarningDetails", + "documentation":"

      The warnings generated for this resource.

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

      Details about a resource in a generated template

      " + }, + "ResourceDetails":{ + "type":"list", + "member":{"shape":"ResourceDetail"}, + "max":500, + "min":1 + }, + "ResourceIdentifier":{"type":"string"}, "ResourceIdentifierProperties":{ "type":"map", "key":{"shape":"ResourceIdentifierPropertyKey"}, @@ -4792,6 +5442,91 @@ "min":1 }, "ResourceProperties":{"type":"string"}, + "ResourceScanId":{"type":"string"}, + "ResourceScanInProgressException":{ + "type":"structure", + "members":{ + }, + "documentation":"

      A resource scan is currently in progress. Only one can be run at a time for an account in a Region.

      ", + "error":{ + "code":"ResourceScanInProgress", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ResourceScanLimitExceededException":{ + "type":"structure", + "members":{ + }, + "documentation":"

      The limit on resource scans has been exceeded. Reasons include:

      • Exceeded the daily quota for resource scans.

      • A resource scan recently failed. You must wait 10 minutes before starting a new resource scan.

      • The last resource scan failed after exceeding 100,000 resources. When this happens, you must wait 24 hours before starting a new resource scan.

      ", + "error":{ + "code":"ResourceScanLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ResourceScanNotFoundException":{ + "type":"structure", + "members":{ + }, + "documentation":"

      The resource scan was not found.

      ", + "error":{ + "code":"ResourceScanNotFound", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ResourceScanStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "FAILED", + "COMPLETE", + "EXPIRED" + ] + }, + "ResourceScanStatusReason":{"type":"string"}, + "ResourceScanSummaries":{ + "type":"list", + "member":{"shape":"ResourceScanSummary"} + }, + "ResourceScanSummary":{ + "type":"structure", + "members":{ + "ResourceScanId":{ + "shape":"ResourceScanId", + "documentation":"

      The Amazon Resource Name (ARN) of the resource scan.

      " + }, + "Status":{ + "shape":"ResourceScanStatus", + "documentation":"

      Status of the resource scan.

      INPROGRESS

      The resource scan is still in progress.

      COMPLETE

      The resource scan is complete.

      EXPIRED

      The resource scan has expired.

      FAILED

      The resource scan has failed.

      " + }, + "StatusReason":{ + "shape":"ResourceScanStatusReason", + "documentation":"

      The reason for the resource scan status, providing more information if a failure happened.

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

      The time that the resource scan was started.

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

      The time that the resource scan was finished.

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

      The percentage of the resource scan that has been completed.

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

      A summary of the resource scan. This is returned by the ListResourceScan API action.

      " + }, + "ResourceScannerMaxResults":{ + "type":"integer", + "box":true + }, "ResourceSignalStatus":{ "type":"string", "enum":[ @@ -4882,10 +5617,29 @@ "max":256, "min":1 }, + "ResourceTypePrefix":{"type":"string"}, "ResourceTypes":{ "type":"list", "member":{"shape":"ResourceType"} }, + "ResourcesFailed":{ + "type":"integer", + "min":0 + }, + "ResourcesPending":{ + "type":"integer", + "min":0 + }, + "ResourcesProcessing":{ + "type":"integer", + "min":0 + }, + "ResourcesRead":{"type":"integer"}, + "ResourcesScanned":{"type":"integer"}, + "ResourcesSucceeded":{ + "type":"integer", + "min":0 + }, "ResourcesToImport":{ "type":"list", "member":{"shape":"ResourceToImport"}, @@ -4993,6 +5747,50 @@ "max":4096, "min":1 }, + "ScannedResource":{ + "type":"structure", + "members":{ + "ResourceType":{ + "shape":"ResourceType", + "documentation":"

      The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see IaC generator supported resource types In the CloudFormation User Guide

      " + }, + "ResourceIdentifier":{ + "shape":"JazzResourceIdentifierProperties", + "documentation":"

      A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be \"TableName\": \"MyDDBTable\". For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.

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

      If true, the resource is managed by a CloudFormation stack.

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

      A scanned resource returned by ListResourceScanResources or ListResourceScanRelatedResources.

      " + }, + "ScannedResourceIdentifier":{ + "type":"structure", + "required":[ + "ResourceType", + "ResourceIdentifier" + ], + "members":{ + "ResourceType":{ + "shape":"ResourceType", + "documentation":"

      The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see IaC generator supported resource types In the CloudFormation User Guide

      " + }, + "ResourceIdentifier":{ + "shape":"JazzResourceIdentifierProperties", + "documentation":"

      A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be \"TableName\": \"MyDDBTable\". For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.

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

      Identifies a scanned resource. This is used with the ListResourceScanRelatedResources API action.

      " + }, + "ScannedResourceIdentifiers":{ + "type":"list", + "member":{"shape":"ScannedResourceIdentifier"} + }, + "ScannedResources":{ + "type":"list", + "member":{"shape":"ScannedResource"} + }, "Scope":{ "type":"list", "member":{"shape":"ResourceAttribute"} @@ -6137,7 +6935,7 @@ }, "RegionOrder":{ "shape":"RegionList", - "documentation":"

      The order of the Regions where you want to perform the stack operation.

      " + "documentation":"

      The order of the Regions where you want to perform the stack operation.

      RegionOrder isn't followed if AutoDeployment is enabled.

      " }, "FailureToleranceCount":{ "shape":"FailureToleranceCount", @@ -6435,6 +7233,24 @@ }, "exception":true }, + "StartResourceScanInput":{ + "type":"structure", + "members":{ + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

      A unique identifier for this StartResourceScan request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to start a new resource scan.

      " + } + } + }, + "StartResourceScanOutput":{ + "type":"structure", + "members":{ + "ResourceScanId":{ + "shape":"ResourceScanId", + "documentation":"

      The Amazon Resource Name (ARN) of the resource scan. The format is arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. An example is arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 .

      " + } + } + }, "StatusMessage":{ "type":"string", "max":1024 @@ -6511,7 +7327,28 @@ "type":"string", "min":1 }, + "TemplateConfiguration":{ + "type":"structure", + "members":{ + "DeletionPolicy":{ + "shape":"GeneratedTemplateDeletionPolicy", + "documentation":"

      The DeletionPolicy assigned to resources in the generated template. Supported values are:

      • DELETE - delete all resources when the stack is deleted.

      • RETAIN - retain all resources when the stack is deleted.

      For more information, see DeletionPolicy attribute in the CloudFormation User Guide.

      " + }, + "UpdateReplacePolicy":{ + "shape":"GeneratedTemplateUpdateReplacePolicy", + "documentation":"

      The UpdateReplacePolicy assigned to resources in the generated template. Supported values are:

      • DELETE - delete all resources when the resource is replaced during an update operation.

      • RETAIN - retain all resources when the resource is replaced during an update operation.

      For more information, see UpdateReplacePolicy attribute in the CloudFormation User Guide.

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

      The configuration details of a generated template.

      " + }, "TemplateDescription":{"type":"string"}, + "TemplateFormat":{ + "type":"string", + "enum":[ + "JSON", + "YAML" + ] + }, "TemplateParameter":{ "type":"structure", "members":{ @@ -6538,6 +7375,28 @@ "type":"list", "member":{"shape":"TemplateParameter"} }, + "TemplateProgress":{ + "type":"structure", + "members":{ + "ResourcesSucceeded":{ + "shape":"ResourcesSucceeded", + "documentation":"

      The number of resources that succeeded the template generation.

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

      The number of resources that failed the template generation.

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

      The number of resources that are in-process for the template generation.

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

      The number of resources that are still pending the template generation.

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

      A summary of the progress of the template generation.

      " + }, "TemplateStage":{ "type":"string", "enum":[ @@ -6545,6 +7404,49 @@ "Processed" ] }, + "TemplateStatusReason":{ + "type":"string", + "max":256, + "min":1 + }, + "TemplateSummaries":{ + "type":"list", + "member":{"shape":"TemplateSummary"} + }, + "TemplateSummary":{ + "type":"structure", + "members":{ + "GeneratedTemplateId":{ + "shape":"GeneratedTemplateId", + "documentation":"

      The Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc .

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

      The name of the generated template.

      " + }, + "Status":{ + "shape":"GeneratedTemplateStatus", + "documentation":"

      The status of the template generation. Supported values are:

      • CreatePending - the creation of the template is pending.

      • CreateInProgress - the creation of the template is in progress.

      • DeletePending - the deletion of the template is pending.

      • DeleteInProgress - the deletion of the template is in progress.

      • UpdatePending - the update of the template is pending.

      • UpdateInProgress - the update of the template is in progress.

      • Failed - the template operation failed.

      • Complete - the template operation is complete.

      " + }, + "StatusReason":{ + "shape":"TemplateStatusReason", + "documentation":"

      The reason for the current template generation status. This will provide more details if a failure happened.

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

      The time the generated template was created.

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

      The time the generated template was last updated.

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

      The number of resources in the generated template. This is a total of resources in pending, in-progress, completed, and failed states.

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

      The summary of a generated template.

      " + }, "TemplateSummaryConfig":{ "type":"structure", "members":{ @@ -6628,6 +7530,10 @@ "type":"integer", "min":0 }, + "TotalWarnings":{ + "type":"integer", + "min":0 + }, "TransformName":{"type":"string"}, "TransformsList":{ "type":"list", @@ -6915,6 +7821,45 @@ "type":"list", "member":{"shape":"TypeConfigurationIdentifier"} }, + "UpdateGeneratedTemplateInput":{ + "type":"structure", + "required":["GeneratedTemplateName"], + "members":{ + "GeneratedTemplateName":{ + "shape":"GeneratedTemplateName", + "documentation":"

      The name or Amazon Resource Name (ARN) of a generated template.

      " + }, + "NewGeneratedTemplateName":{ + "shape":"GeneratedTemplateName", + "documentation":"

      An optional new name to assign to the generated template.

      " + }, + "AddResources":{ + "shape":"ResourceDefinitions", + "documentation":"

      An optional list of resources to be added to the generated template.

      " + }, + "RemoveResources":{ + "shape":"JazzLogicalResourceIds", + "documentation":"

      A list of logical ids for resources to remove from the generated template.

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

      If true, update the resource properties in the generated template with their current live state. This feature is useful when the resource properties in your generated a template does not reflect the live state of the resource properties. This happens when a user update the resource properties after generating a template.

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

      The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.

      " + } + } + }, + "UpdateGeneratedTemplateOutput":{ + "type":"structure", + "members":{ + "GeneratedTemplateId":{ + "shape":"GeneratedTemplateId", + "documentation":"

      The Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc .

      " + } + } + }, "UpdateStackInput":{ "type":"structure", "required":["StackName"], @@ -7232,6 +8177,54 @@ "PRIVATE" ] }, + "WarningDetail":{ + "type":"structure", + "members":{ + "Type":{ + "shape":"WarningType", + "documentation":"

      The type of this warning. For more information, see IaC generator and write-only properties in the CloudFormation User Guide.

      • MUTUALLY_EXCLUSIVE_PROPERTIES - The resource requires mutually-exclusive write-only properties. The IaC generator selects one set of mutually exclusive properties and converts the included properties into parameters. The parameter names have a suffix OneOf and the parameter descriptions indicate that the corresponding property can be replaced with other exclusive properties.

      • UNSUPPORTED_PROPERTIES - Unsupported properties are present in the resource. One example of unsupported properties would be a required write-only property that is an array, because a parameter cannot be an array. Another example is an optional write-only property.

      • MUTUALLY_EXCLUSIVE_TYPES - One or more required write-only properties are found in the resource, and the type of that property can be any of several types.

      Currently the resource and property reference documentation does not indicate if a property uses a type of oneOf or anyOf. You need to look at the resource provider schema.

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

      The properties of the resource that are impacted by this warning.

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

      The warnings generated for a specific resource for this generated template.

      " + }, + "WarningDetails":{ + "type":"list", + "member":{"shape":"WarningDetail"} + }, + "WarningProperties":{ + "type":"list", + "member":{"shape":"WarningProperty"} + }, + "WarningProperty":{ + "type":"structure", + "members":{ + "PropertyPath":{ + "shape":"PropertyPath", + "documentation":"

      The path of the property. For example, if this is for the S3Bucket member of the Code property, the property path would be Code/S3Bucket.

      " + }, + "Required":{ + "shape":"RequiredProperty", + "documentation":"

      If true, the specified property is required.

      " + }, + "Description":{ + "shape":"PropertyDescription", + "documentation":"

      The description of the property from the resource provider schema.

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

      A specific property that is impacted by a warning.

      " + }, + "WarningType":{ + "type":"string", + "enum":[ + "MUTUALLY_EXCLUSIVE_PROPERTIES", + "UNSUPPORTED_PROPERTIES", + "MUTUALLY_EXCLUSIVE_TYPES" + ] + }, "Warnings":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/elasticloadbalancingv2-2015-12-01.normal.json b/tools/code-generation/api-descriptions/elasticloadbalancingv2-2015-12-01.normal.json index 2a9ebfe2907..8fe1ed37d5c 100644 --- a/tools/code-generation/api-descriptions/elasticloadbalancingv2-2015-12-01.normal.json +++ b/tools/code-generation/api-descriptions/elasticloadbalancingv2-2015-12-01.normal.json @@ -1352,11 +1352,11 @@ }, "Subnets":{ "shape":"Subnets", - "documentation":"

      The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. To specify an Elastic IP address, specify subnet mappings instead of subnets.

      [Application Load Balancers] You must specify subnets from at least two Availability Zones.

      [Application Load Balancers on Outposts] You must specify one Outpost subnet.

      [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

      [Network Load Balancers] You can specify subnets from one or more Availability Zones.

      [Gateway Load Balancers] You can specify subnets from one or more Availability Zones.

      " + "documentation":"

      The IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. To specify an Elastic IP address, specify subnet mappings instead of subnets.

      [Application Load Balancers] You must specify subnets from at least two Availability Zones.

      [Application Load Balancers on Outposts] You must specify one Outpost subnet.

      [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

      [Network Load Balancers] You can specify subnets from one or more Availability Zones.

      [Gateway Load Balancers] You can specify subnets from one or more Availability Zones.

      " }, "SubnetMappings":{ "shape":"SubnetMappings", - "documentation":"

      The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both.

      [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.

      [Application Load Balancers on Outposts] You must specify one Outpost subnet.

      [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

      [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.

      [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. You cannot specify Elastic IP addresses for your subnets.

      " + "documentation":"

      The IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both.

      [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.

      [Application Load Balancers on Outposts] You must specify one Outpost subnet.

      [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

      [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.

      [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. You cannot specify Elastic IP addresses for your subnets.

      " }, "SecurityGroups":{ "shape":"SecurityGroups", @@ -3549,7 +3549,7 @@ "members":{ "Values":{ "shape":"ListOfString", - "documentation":"

      The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.

      If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.

      " + "documentation":"

      The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.

      If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.

      The total number of values must be less than, or equal to five.

      " } }, "documentation":"

      Information about a source IP condition.

      You can use this condition to route based on the IP address of the source that connects to the load balancer. If a client is behind a proxy, this is the IP address of the proxy not the IP address of the client.

      " @@ -3813,7 +3813,7 @@ "members":{ "Key":{ "shape":"TargetGroupAttributeKey", - "documentation":"

      The name of the attribute.

      The following attributes are supported by all load balancers:

      • deregistration_delay.timeout_seconds - The amount of time, in seconds, for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds. If the target is a Lambda function, this attribute is not supported.

      • stickiness.enabled - Indicates whether target stickiness is enabled. The value is true or false. The default is false.

      • stickiness.type - Indicates the type of stickiness. The possible values are:

        • lb_cookie and app_cookie for Application Load Balancers.

        • source_ip for Network Load Balancers.

        • source_ip_dest_ip and source_ip_dest_ip_proto for Gateway Load Balancers.

      The following attributes are supported by Application Load Balancers and Network Load Balancers:

      • load_balancing.cross_zone.enabled - Indicates whether cross zone load balancing is enabled. The value is true, false or use_load_balancer_configuration. The default is use_load_balancer_configuration.

      • target_group_health.dns_failover.minimum_healthy_targets.count - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are off or an integer from 1 to the maximum number of targets. The default is off.

      • target_group_health.dns_failover.minimum_healthy_targets.percentage - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are off or an integer from 1 to 100. The default is off.

      • target_group_health.unhealthy_state_routing.minimum_healthy_targets.count - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are 1 to the maximum number of targets. The default is 1.

      • target_group_health.unhealthy_state_routing.minimum_healthy_targets.percentage - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are off or an integer from 1 to 100. The default is off.

      The following attributes are supported only if the load balancer is an Application Load Balancer and the target is an instance or an IP address:

      • load_balancing.algorithm.type - The load balancing algorithm determines how the load balancer selects targets when routing requests. The value is round_robin, least_outstanding_requests, or weighted_random. The default is round_robin.

      • load_balancing.algorithm.anomaly_mitigation - Only available when load_balancing.algorithm.type is weighted_random. Indicates whether anomaly mitigation is enabled. The value is on or off. The default is off.

      • slow_start.duration_seconds - The time period, in seconds, during which a newly registered target receives an increasing share of the traffic to the target group. After this time period ends, the target receives its full share of traffic. The range is 30-900 seconds (15 minutes). The default is 0 seconds (disabled).

      • stickiness.app_cookie.cookie_name - Indicates the name of the application-based cookie. Names that start with the following prefixes are not allowed: AWSALB, AWSALBAPP, and AWSALBTG; they're reserved for use by the load balancer.

      • stickiness.app_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the application-based cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).

      • stickiness.lb_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).

      The following attribute is supported only if the load balancer is an Application Load Balancer and the target is a Lambda function:

      • lambda.multi_value_headers.enabled - Indicates whether the request and response headers that are exchanged between the load balancer and the Lambda function include arrays of values or strings. The value is true or false. The default is false. If the value is false and the request contains a duplicate header field name or query parameter key, the load balancer uses the last value sent by the client.

      The following attributes are supported only by Network Load Balancers:

      • deregistration_delay.connection_termination.enabled - Indicates whether the load balancer terminates connections at the end of the deregistration timeout. The value is true or false. For new UDP/TCP_UDP target groups the default is true. Otherwise, the default is false.

      • preserve_client_ip.enabled - Indicates whether client IP preservation is enabled. The value is true or false. The default is disabled if the target group type is IP address and the target group protocol is TCP or TLS. Otherwise, the default is enabled. Client IP preservation cannot be disabled for UDP and TCP_UDP target groups.

      • proxy_protocol_v2.enabled - Indicates whether Proxy Protocol version 2 is enabled. The value is true or false. The default is false.

      • target_health_state.unhealthy.connection_termination.enabled - Indicates whether the load balancer terminates connections to unhealthy targets. The value is true or false. The default is true.

      The following attributes are supported only by Gateway Load Balancers:

      • target_failover.on_deregistration - Indicates how the Gateway Load Balancer handles existing flows when a target is deregistered. The possible values are rebalance and no_rebalance. The default is no_rebalance. The two attributes (target_failover.on_deregistration and target_failover.on_unhealthy) can't be set independently. The value you set for both attributes must be the same.

      • target_failover.on_unhealthy - Indicates how the Gateway Load Balancer handles existing flows when a target is unhealthy. The possible values are rebalance and no_rebalance. The default is no_rebalance. The two attributes (target_failover.on_deregistration and target_failover.on_unhealthy) cannot be set independently. The value you set for both attributes must be the same.

      " + "documentation":"

      The name of the attribute.

      The following attributes are supported by all load balancers:

      • deregistration_delay.timeout_seconds - The amount of time, in seconds, for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds. If the target is a Lambda function, this attribute is not supported.

      • stickiness.enabled - Indicates whether target stickiness is enabled. The value is true or false. The default is false.

      • stickiness.type - Indicates the type of stickiness. The possible values are:

        • lb_cookie and app_cookie for Application Load Balancers.

        • source_ip for Network Load Balancers.

        • source_ip_dest_ip and source_ip_dest_ip_proto for Gateway Load Balancers.

      The following attributes are supported by Application Load Balancers and Network Load Balancers:

      • load_balancing.cross_zone.enabled - Indicates whether cross zone load balancing is enabled. The value is true, false or use_load_balancer_configuration. The default is use_load_balancer_configuration.

      • target_group_health.dns_failover.minimum_healthy_targets.count - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are off or an integer from 1 to the maximum number of targets. The default is off.

      • target_group_health.dns_failover.minimum_healthy_targets.percentage - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are off or an integer from 1 to 100. The default is off.

      • target_group_health.unhealthy_state_routing.minimum_healthy_targets.count - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are 1 to the maximum number of targets. The default is 1.

      • target_group_health.unhealthy_state_routing.minimum_healthy_targets.percentage - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are off or an integer from 1 to 100. The default is off.

      The following attributes are supported only if the load balancer is an Application Load Balancer and the target is an instance or an IP address:

      • load_balancing.algorithm.type - The load balancing algorithm determines how the load balancer selects targets when routing requests. The value is round_robin, least_outstanding_requests, or weighted_random. The default is round_robin.

      • load_balancing.algorithm.anomaly_mitigation - Only available when load_balancing.algorithm.type is weighted_random. Indicates whether anomaly mitigation is enabled. The value is on or off. The default is off.

      • slow_start.duration_seconds - The time period, in seconds, during which a newly registered target receives an increasing share of the traffic to the target group. After this time period ends, the target receives its full share of traffic. The range is 30-900 seconds (15 minutes). The default is 0 seconds (disabled).

      • stickiness.app_cookie.cookie_name - Indicates the name of the application-based cookie. Names that start with the following prefixes are not allowed: AWSALB, AWSALBAPP, and AWSALBTG; they're reserved for use by the load balancer.

      • stickiness.app_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the application-based cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).

      • stickiness.lb_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).

      The following attribute is supported only if the load balancer is an Application Load Balancer and the target is a Lambda function:

      • lambda.multi_value_headers.enabled - Indicates whether the request and response headers that are exchanged between the load balancer and the Lambda function include arrays of values or strings. The value is true or false. The default is false. If the value is false and the request contains a duplicate header field name or query parameter key, the load balancer uses the last value sent by the client.

      The following attributes are supported only by Network Load Balancers:

      • deregistration_delay.connection_termination.enabled - Indicates whether the load balancer terminates connections at the end of the deregistration timeout. The value is true or false. For new UDP/TCP_UDP target groups the default is true. Otherwise, the default is false.

      • preserve_client_ip.enabled - Indicates whether client IP preservation is enabled. The value is true or false. The default is disabled if the target group type is IP address and the target group protocol is TCP or TLS. Otherwise, the default is enabled. Client IP preservation cannot be disabled for UDP and TCP_UDP target groups.

      • proxy_protocol_v2.enabled - Indicates whether Proxy Protocol version 2 is enabled. The value is true or false. The default is false.

      • target_health_state.unhealthy.connection_termination.enabled - Indicates whether the load balancer terminates connections to unhealthy targets. The value is true or false. The default is true.

      • target_health_state.unhealthy.draining_interval_seconds - The amount of time for Elastic Load Balancing to wait before changing the state of an unhealthy target from unhealthy.draining to unhealthy. The range is 0-360000 seconds. The default value is 0 seconds.

        Note: This attribute can only be configured when target_health_state.unhealthy.connection_termination.enabled is false.

      The following attributes are supported only by Gateway Load Balancers:

      • target_failover.on_deregistration - Indicates how the Gateway Load Balancer handles existing flows when a target is deregistered. The possible values are rebalance and no_rebalance. The default is no_rebalance. The two attributes (target_failover.on_deregistration and target_failover.on_unhealthy) can't be set independently. The value you set for both attributes must be the same.

      • target_failover.on_unhealthy - Indicates how the Gateway Load Balancer handles existing flows when a target is unhealthy. The possible values are rebalance and no_rebalance. The default is no_rebalance. The two attributes (target_failover.on_deregistration and target_failover.on_unhealthy) cannot be set independently. The value you set for both attributes must be the same.

      " }, "Value":{ "shape":"TargetGroupAttributeValue", @@ -3962,6 +3962,7 @@ "initial", "healthy", "unhealthy", + "unhealthy.draining", "unused", "draining", "unavailable" 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 f54b2c0981e..c3c9f3a5213 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 @@ -11705,7 +11705,7 @@ "documentation":"

      A continuation token, if this is a continuation call.

      " }, "MaxResults":{ - "shape":"PageSize", + "shape":"OrchestrationPageSize200", "documentation":"

      The maximum size of the response.

      " } } @@ -12840,7 +12840,7 @@ "documentation":"

      The name of the job to retrieve triggers for. The trigger that can start this job is returned, and if there is no such trigger, all triggers are returned.

      " }, "MaxResults":{ - "shape":"PageSize", + "shape":"OrchestrationPageSize200", "documentation":"

      The maximum size of the response.

      " } } @@ -14114,7 +14114,7 @@ }, "Runtime":{ "shape":"RuntimeNameString", - "documentation":"

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment. This field is not used in other job types. For supported runtime environment values, see Working with Ray jobs in the Glue Developer Guide.

      " + "documentation":"

      In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment. This field is not used in other job types. For supported runtime environment values, see Supported Ray runtime environments in the Glue Developer Guide.

      " } }, "documentation":"

      Specifies code that runs when a job is run.

      " @@ -14776,7 +14776,7 @@ "documentation":"

      A continuation token, if this is a continuation request.

      " }, "MaxResults":{ - "shape":"PageSize", + "shape":"OrchestrationPageSize25", "documentation":"

      The maximum size of a list to return.

      " }, "Tags":{ @@ -15372,7 +15372,7 @@ "documentation":"

      The name of the job for which to retrieve triggers. The trigger that can start this job is returned. If there is no such trigger, all triggers are returned.

      " }, "MaxResults":{ - "shape":"PageSize", + "shape":"OrchestrationPageSize200", "documentation":"

      The maximum size of a list to return.

      " }, "Tags":{ @@ -15402,7 +15402,7 @@ "documentation":"

      A continuation token, if this is a continuation request.

      " }, "MaxResults":{ - "shape":"PageSize", + "shape":"OrchestrationPageSize25", "documentation":"

      The maximum size of a list to return.

      " } } @@ -16247,6 +16247,18 @@ "min":1, "pattern":"[\\.\\-_A-Za-z0-9]+" }, + "OrchestrationPageSize200":{ + "type":"integer", + "box":true, + "max":200, + "min":1 + }, + "OrchestrationPageSize25":{ + "type":"integer", + "box":true, + "max":25, + "min":1 + }, "OrchestrationRoleArn":{ "type":"string", "max":2048, diff --git a/tools/code-generation/api-descriptions/ssm-2014-11-06.normal.json b/tools/code-generation/api-descriptions/ssm-2014-11-06.normal.json index 44e6dbde867..8faebf1afe7 100644 --- a/tools/code-generation/api-descriptions/ssm-2014-11-06.normal.json +++ b/tools/code-generation/api-descriptions/ssm-2014-11-06.normal.json @@ -582,7 +582,7 @@ "errors":[ {"shape":"InternalServerError"} ], - "documentation":"

      Lists all patches eligible to be included in a patch baseline.

      " + "documentation":"

      Lists all patches eligible to be included in a patch baseline.

      Currently, DescribeAvailablePatches supports only the Amazon Linux 1, Amazon Linux 2, and Windows Server operating systems.

      " }, "DescribeDocument":{ "name":"DescribeDocument", @@ -2504,6 +2504,11 @@ "documentation":"

      Number of days to wait after the scheduled day to run an association.

      ", "box":true }, + "Duration":{ + "shape":"Duration", + "documentation":"

      The number of hours that an association can run on specified targets. After the resulting cutoff time passes, associations that are currently running are cancelled, and no pending executions are started on remaining targets.

      ", + "box":true + }, "TargetMaps":{ "shape":"TargetMaps", "documentation":"

      A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.

      ", @@ -2633,6 +2638,11 @@ "documentation":"

      Number of days to wait after the scheduled day to run an association.

      ", "box":true }, + "Duration":{ + "shape":"Duration", + "documentation":"

      The number of hours that an association can run on specified targets. After the resulting cutoff time passes, associations that are currently running are cancelled, and no pending executions are started on remaining targets.

      ", + "box":true + }, "TargetMaps":{ "shape":"TargetMaps", "documentation":"

      A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.

      ", @@ -3066,6 +3076,11 @@ "documentation":"

      Number of days to wait after the scheduled day to run an association.

      ", "box":true }, + "Duration":{ + "shape":"Duration", + "documentation":"

      The number of hours that an association can run on specified targets. After the resulting cutoff time passes, associations that are currently running are cancelled, and no pending executions are started on remaining targets.

      ", + "box":true + }, "TargetMaps":{ "shape":"TargetMaps", "documentation":"

      A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.

      ", @@ -4560,6 +4575,11 @@ "documentation":"

      Number of days to wait after the scheduled day to run an association.

      ", "box":true }, + "Duration":{ + "shape":"Duration", + "documentation":"

      The number of hours the association can run before it is canceled. Duration applies to associations that are currently running, and any pending and in progress commands on all targets. If a target was taken offline for the association to run, it is made available again immediately, without a reboot.

      The Duration parameter applies only when both these conditions are true:

      • The association for which you specify a duration is cancelable according to the parameters of the SSM command document or Automation runbook associated with this execution.

      • The command specifies the ApplyOnlyAtCronInterval parameter, which means that the association doesn't run immediately after it is created, but only according to the specified schedule.

      ", + "box":true + }, "TargetMaps":{ "shape":"TargetMaps", "documentation":"

      A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.

      ", @@ -4655,6 +4675,11 @@ "documentation":"

      Number of days to wait after the scheduled day to run an association. For example, if you specified a cron schedule of cron(0 0 ? * THU#2 *), you could specify an offset of 3 to run the association each Sunday after the second Thursday of the month. For more information about cron schedules for associations, see Reference: Cron and rate expressions for Systems Manager in the Amazon Web Services Systems Manager User Guide.

      To use offsets, you must specify the ApplyOnlyAtCronInterval parameter. This option tells the system not to run an association immediately after you create it.

      ", "box":true }, + "Duration":{ + "shape":"Duration", + "documentation":"

      The number of hours the association can run before it is canceled. Duration applies to associations that are currently running, and any pending and in progress commands on all targets. If a target was taken offline for the association to run, it is made available again immediately, without a reboot.

      The Duration parameter applies only when both these conditions are true:

      • The association for which you specify a duration is cancelable according to the parameters of the SSM command document or Automation runbook associated with this execution.

      • The command specifies the ApplyOnlyAtCronInterval parameter, which means that the association doesn't run immediately after it is created, but only according to the specified schedule.

      ", + "box":true + }, "TargetMaps":{ "shape":"TargetMaps", "documentation":"

      A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.

      ", @@ -5726,7 +5751,7 @@ }, "VersionName":{ "shape":"DocumentVersionName", - "documentation":"

      An optional field specifying the version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and can't be changed.

      " + "documentation":"

      An optional field specifying the version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.

      " } } }, @@ -6845,7 +6870,7 @@ }, "VersionName":{ "shape":"DocumentVersionName", - "documentation":"

      An optional field specifying the version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and can't be changed.

      " + "documentation":"

      An optional field specifying the version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.

      " }, "PlatformTypes":{ "shape":"PlatformTypeList", @@ -7026,7 +7051,7 @@ }, "VersionName":{ "shape":"DocumentVersionName", - "documentation":"

      An optional field specifying the version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and can't be changed.

      " + "documentation":"

      An optional field specifying the version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.

      " } }, "documentation":"

      An SSM document required by the current document.

      " @@ -7178,7 +7203,7 @@ }, "VersionName":{ "shape":"DocumentVersionName", - "documentation":"

      The version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and can't be changed.

      " + "documentation":"

      The version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.

      " }, "CreatedDate":{ "shape":"DateTime", @@ -7260,6 +7285,12 @@ "documentation":"

      You can't specify a managed node ID in more than one association.

      ", "exception":true }, + "Duration":{ + "type":"integer", + "box":true, + "max":24, + "min":1 + }, "EffectiveInstanceAssociationMaxResults":{ "type":"integer", "max":5, @@ -7524,7 +7555,7 @@ }, "Status":{ "shape":"ConnectionStatus", - "documentation":"

      The status of the connection to the managed node. For example, 'Connected' or 'Not Connected'.

      " + "documentation":"

      The status of the connection to the managed node.

      " } } }, @@ -7602,7 +7633,7 @@ }, "VersionName":{ "shape":"DocumentVersionName", - "documentation":"

      An optional field specifying the version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document and can't be changed.

      " + "documentation":"

      An optional field specifying the version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document and can't be changed.

      " }, "DocumentVersion":{ "shape":"DocumentVersion", @@ -7631,7 +7662,7 @@ }, "VersionName":{ "shape":"DocumentVersionName", - "documentation":"

      The version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and can't be changed.

      " + "documentation":"

      The version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.

      " }, "DocumentVersion":{ "shape":"DocumentVersion", @@ -12551,7 +12582,7 @@ }, "KeyId":{ "shape":"ParameterKeyId", - "documentation":"

      The ID of the query key used for this parameter.

      " + "documentation":"

      The alias of the Key Management Service (KMS) key used to encrypt the parameter. Applies to SecureString parameters only

      " }, "LastModifiedDate":{ "shape":"DateTime", @@ -12668,7 +12699,7 @@ }, "KeyId":{ "shape":"ParameterKeyId", - "documentation":"

      The ID of the query key used for this parameter.

      " + "documentation":"

      The alias of the Key Management Service (KMS) key used to encrypt the parameter. Applies to SecureString parameters only.

      " }, "LastModifiedDate":{ "shape":"DateTime", @@ -13095,7 +13126,7 @@ }, "CVEIds":{ "shape":"PatchCVEIds", - "documentation":"

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.

      " + "documentation":"

      The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.

      Currently, CVE ID values are reported only for patches with a status of Missing or Failed.

      " } }, "documentation":"

      Information about the state of a patch on a particular managed node as it relates to the patch baseline used to patch the node.

      " @@ -15894,6 +15925,11 @@ "documentation":"

      Number of days to wait after the scheduled day to run an association. For example, if you specified a cron schedule of cron(0 0 ? * THU#2 *), you could specify an offset of 3 to run the association each Sunday after the second Thursday of the month. For more information about cron schedules for associations, see Reference: Cron and rate expressions for Systems Manager in the Amazon Web Services Systems Manager User Guide.

      To use offsets, you must specify the ApplyOnlyAtCronInterval parameter. This option tells the system not to run an association immediately after you create it.

      ", "box":true }, + "Duration":{ + "shape":"Duration", + "documentation":"

      The number of hours the association can run before it is canceled. Duration applies to associations that are currently running, and any pending and in progress commands on all targets. If a target was taken offline for the association to run, it is made available again immediately, without a reboot.

      The Duration parameter applies only when both these conditions are true:

      • The association for which you specify a duration is cancelable according to the parameters of the SSM command document or Automation runbook associated with this execution.

      • The command specifies the ApplyOnlyAtCronInterval parameter, which means that the association doesn't run immediately after it is updated, but only according to the specified schedule.

      ", + "box":true + }, "TargetMaps":{ "shape":"TargetMaps", "documentation":"

      A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.

      ", @@ -16019,7 +16055,7 @@ }, "VersionName":{ "shape":"DocumentVersionName", - "documentation":"

      An optional field specifying the version of the artifact you are updating with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and can't be changed.

      " + "documentation":"

      An optional field specifying the version of the artifact you are updating with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.

      " }, "DocumentVersion":{ "shape":"DocumentVersion",