diff --git a/VERSION b/VERSION index e8cf023c279..8aabde74500 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.397 \ No newline at end of file +1.11.398 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-appsync/include/aws/appsync/model/FieldLogLevel.h b/generated/src/aws-cpp-sdk-appsync/include/aws/appsync/model/FieldLogLevel.h index 99af5dcdb60..35a946699ba 100644 --- a/generated/src/aws-cpp-sdk-appsync/include/aws/appsync/model/FieldLogLevel.h +++ b/generated/src/aws-cpp-sdk-appsync/include/aws/appsync/model/FieldLogLevel.h @@ -18,7 +18,9 @@ namespace Model NOT_SET, NONE, ERROR_, - ALL + ALL, + INFO, + DEBUG_ }; namespace FieldLogLevelMapper diff --git a/generated/src/aws-cpp-sdk-appsync/include/aws/appsync/model/LogConfig.h b/generated/src/aws-cpp-sdk-appsync/include/aws/appsync/model/LogConfig.h index 38798f58205..58ac36ffa98 100644 --- a/generated/src/aws-cpp-sdk-appsync/include/aws/appsync/model/LogConfig.h +++ b/generated/src/aws-cpp-sdk-appsync/include/aws/appsync/model/LogConfig.h @@ -40,16 +40,27 @@ namespace Model ///@{ /** - *

The field logging level. Values can be NONE, ERROR, or ALL.

+ *

The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.

+ * */ inline const FieldLogLevel& GetFieldLogLevel() const{ return m_fieldLogLevel; } inline bool FieldLogLevelHasBeenSet() const { return m_fieldLogLevelHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/FieldLogLevel.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/FieldLogLevel.cpp index 5177955a5c1..c38509220c0 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/FieldLogLevel.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/FieldLogLevel.cpp @@ -23,6 +23,8 @@ namespace Aws static const int NONE_HASH = HashingUtils::HashString("NONE"); static const int ERROR__HASH = HashingUtils::HashString("ERROR"); static const int ALL_HASH = HashingUtils::HashString("ALL"); + static const int INFO_HASH = HashingUtils::HashString("INFO"); + static const int DEBUG__HASH = HashingUtils::HashString("DEBUG"); FieldLogLevel GetFieldLogLevelForName(const Aws::String& name) @@ -40,6 +42,14 @@ namespace Aws { return FieldLogLevel::ALL; } + else if (hashCode == INFO_HASH) + { + return FieldLogLevel::INFO; + } + else if (hashCode == DEBUG__HASH) + { + return FieldLogLevel::DEBUG_; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -62,6 +72,10 @@ namespace Aws return "ERROR"; case FieldLogLevel::ALL: return "ALL"; + case FieldLogLevel::INFO: + return "INFO"; + case FieldLogLevel::DEBUG_: + return "DEBUG"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h index 706b0862334..a4f4a69da3a 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h @@ -124,10 +124,12 @@ namespace BedrockAgent * orchestration and to use advanced prompts, include a * promptOverrideConfiguration object. For more information, see Advanced - * prompts.

  • If you agent fails to be created, the response + * prompts.

  • If your agent fails to be created, the response * returns a list of failureReasons alongside a list of - * recommendedActions for you to troubleshoot.

  • - *

    See Also:

    recommendedActions for you to troubleshoot.

  • The + * agent instructions will not be honored if your agent has only one knowledge + * base, uses default prompts, has no action group, and user input is disabled.

    + *
  • See Also:

    AWS * API Reference

    */ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ParsingConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ParsingConfiguration.h index 30c7157fddf..b7166c0ac11 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ParsingConfiguration.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ParsingConfiguration.h @@ -37,8 +37,10 @@ namespace Model * anthropic.claude-3-sonnet-20240229-v1:0

  • *

    Anthropic Claude 3 Haiku - * anthropic.claude-3-haiku-20240307-v1:0

  • You can - * get the ARN of a model with the action. Standard model usage charges apply for - * the foundation model parsing strategy.

    See Also:

    ListFoundationModels + * action. Standard model usage charges apply for the foundation model parsing + * strategy.

    See Also:

    AWS * API Reference

    */ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptMetadataEntry.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptMetadataEntry.h new file mode 100644 index 00000000000..77ff1e751ef --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptMetadataEntry.h @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgent +{ +namespace Model +{ + + /** + *

    Contains a key-value pair that defines a metadata tag and value to attach to + * a prompt variant. For more information, see Create + * a prompt using Prompt management.

    See Also:

    AWS + * API Reference

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

    The key of a metadata tag for a prompt variant.

    + */ + inline const Aws::String& GetKey() const{ return m_key; } + inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } + inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } + inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } + inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } + inline PromptMetadataEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;} + inline PromptMetadataEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} + inline PromptMetadataEntry& WithKey(const char* value) { SetKey(value); return *this;} + ///@} + + ///@{ + /** + *

    The value of a metadata tag for a prompt variant.

    + */ + inline const Aws::String& GetValue() const{ return m_value; } + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } + inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } + inline PromptMetadataEntry& WithValue(const Aws::String& value) { SetValue(value); return *this;} + inline PromptMetadataEntry& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} + inline PromptMetadataEntry& WithValue(const char* value) { SetValue(value); return *this;} + ///@} + private: + + Aws::String m_key; + bool m_keyHasBeenSet = false; + + Aws::String m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptVariant.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptVariant.h index e93a117e485..c8c989e69a4 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptVariant.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptVariant.h @@ -6,9 +6,11 @@ #pragma once #include #include +#include #include #include #include +#include #include namespace Aws @@ -52,6 +54,23 @@ namespace Model inline PromptVariant& WithInferenceConfiguration(PromptInferenceConfiguration&& value) { SetInferenceConfiguration(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    An array of objects, each containing a key-value pair that defines a metadata + * tag and value to attach to a prompt variant. For more information, see Create + * a prompt using Prompt management.

    + */ + inline const Aws::Vector& GetMetadata() const{ return m_metadata; } + inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } + inline void SetMetadata(const Aws::Vector& value) { m_metadataHasBeenSet = true; m_metadata = value; } + inline void SetMetadata(Aws::Vector&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } + inline PromptVariant& WithMetadata(const Aws::Vector& value) { SetMetadata(value); return *this;} + inline PromptVariant& WithMetadata(Aws::Vector&& value) { SetMetadata(std::move(value)); return *this;} + inline PromptVariant& AddMetadata(const PromptMetadataEntry& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; } + inline PromptVariant& AddMetadata(PromptMetadataEntry&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    The unique identifier of the model with which to run inference on the @@ -109,6 +128,9 @@ namespace Model PromptInferenceConfiguration m_inferenceConfiguration; bool m_inferenceConfigurationHasBeenSet = false; + Aws::Vector m_metadata; + bool m_metadataHasBeenSet = false; + Aws::String m_modelId; bool m_modelIdHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptMetadataEntry.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptMetadataEntry.cpp new file mode 100644 index 00000000000..0d17c80f37d --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptMetadataEntry.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgent +{ +namespace Model +{ + +PromptMetadataEntry::PromptMetadataEntry() : + m_keyHasBeenSet(false), + m_valueHasBeenSet(false) +{ +} + +PromptMetadataEntry::PromptMetadataEntry(JsonView jsonValue) + : PromptMetadataEntry() +{ + *this = jsonValue; +} + +PromptMetadataEntry& PromptMetadataEntry::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("key")) + { + m_key = jsonValue.GetString("key"); + + m_keyHasBeenSet = true; + } + + if(jsonValue.ValueExists("value")) + { + m_value = jsonValue.GetString("value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue PromptMetadataEntry::Jsonize() const +{ + JsonValue payload; + + if(m_keyHasBeenSet) + { + payload.WithString("key", m_key); + + } + + if(m_valueHasBeenSet) + { + payload.WithString("value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptVariant.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptVariant.cpp index b84a31956a8..4a105d31baf 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptVariant.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptVariant.cpp @@ -20,6 +20,7 @@ namespace Model PromptVariant::PromptVariant() : m_inferenceConfigurationHasBeenSet(false), + m_metadataHasBeenSet(false), m_modelIdHasBeenSet(false), m_nameHasBeenSet(false), m_templateConfigurationHasBeenSet(false), @@ -43,6 +44,16 @@ PromptVariant& PromptVariant::operator =(JsonView jsonValue) m_inferenceConfigurationHasBeenSet = true; } + if(jsonValue.ValueExists("metadata")) + { + Aws::Utils::Array metadataJsonList = jsonValue.GetArray("metadata"); + for(unsigned metadataIndex = 0; metadataIndex < metadataJsonList.GetLength(); ++metadataIndex) + { + m_metadata.push_back(metadataJsonList[metadataIndex].AsObject()); + } + m_metadataHasBeenSet = true; + } + if(jsonValue.ValueExists("modelId")) { m_modelId = jsonValue.GetString("modelId"); @@ -84,6 +95,17 @@ JsonValue PromptVariant::Jsonize() const } + if(m_metadataHasBeenSet) + { + Aws::Utils::Array metadataJsonList(m_metadata.size()); + for(unsigned metadataIndex = 0; metadataIndex < metadataJsonList.GetLength(); ++metadataIndex) + { + metadataJsonList[metadataIndex].AsObject(m_metadata[metadataIndex].Jsonize()); + } + payload.WithArray("metadata", std::move(metadataJsonList)); + + } + if(m_modelIdHasBeenSet) { payload.WithString("modelId", m_modelId); diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/CreateKxScalingGroupRequest.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/CreateKxScalingGroupRequest.h index c53d8cd7450..699a34e396e 100644 --- a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/CreateKxScalingGroupRequest.h +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/CreateKxScalingGroupRequest.h @@ -81,16 +81,20 @@ namespace Model /** *

    The memory and CPU capabilities of the scaling group host on which FinSpace * Managed kdb clusters will be placed.

    You can add one of the following - * values:

    • kx.sg.4xlarge – The host type with a - * configuration of 108 GiB memory and 16 vCPUs.

    • - * kx.sg.8xlarge – The host type with a configuration of 216 GiB - * memory and 32 vCPUs.

    • kx.sg.16xlarge – The host - * type with a configuration of 432 GiB memory and 64 vCPUs.

    • - * kx.sg.32xlarge – The host type with a configuration of 864 GiB - * memory and 128 vCPUs.

    • kx.sg1.16xlarge – The host - * type with a configuration of 1949 GiB memory and 64 vCPUs.

    • - * kx.sg1.24xlarge – The host type with a configuration of 2948 GiB - * memory and 96 vCPUs.

    + * values:

    • kx.sg.large – The host type with a + * configuration of 16 GiB memory and 2 vCPUs.

    • + * kx.sg.xlarge – The host type with a configuration of 32 GiB memory + * and 4 vCPUs.

    • kx.sg.2xlarge – The host type with + * a configuration of 64 GiB memory and 8 vCPUs.

    • + * kx.sg.4xlarge – The host type with a configuration of 108 GiB + * memory and 16 vCPUs.

    • kx.sg.8xlarge – The host + * type with a configuration of 216 GiB memory and 32 vCPUs.

    • + * kx.sg.16xlarge – The host type with a configuration of 432 GiB + * memory and 64 vCPUs.

    • kx.sg.32xlarge – The host + * type with a configuration of 864 GiB memory and 128 vCPUs.

    • + * kx.sg1.16xlarge – The host type with a configuration of 1949 GiB + * memory and 64 vCPUs.

    • kx.sg1.24xlarge – The host + * type with a configuration of 2948 GiB memory and 96 vCPUs.

    */ inline const Aws::String& GetHostType() const{ return m_hostType; } inline bool HostTypeHasBeenSet() const { return m_hostTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/GetKxScalingGroupResult.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/GetKxScalingGroupResult.h index 67ce2faa98e..ec6ac0a2080 100644 --- a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/GetKxScalingGroupResult.h +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/GetKxScalingGroupResult.h @@ -65,16 +65,20 @@ namespace Model /** *

    The memory and CPU capabilities of the scaling group host on which FinSpace * Managed kdb clusters will be placed.

    It can have one of the following - * values:

    • kx.sg.4xlarge – The host type with a - * configuration of 108 GiB memory and 16 vCPUs.

    • - * kx.sg.8xlarge – The host type with a configuration of 216 GiB - * memory and 32 vCPUs.

    • kx.sg.16xlarge – The host - * type with a configuration of 432 GiB memory and 64 vCPUs.

    • - * kx.sg.32xlarge – The host type with a configuration of 864 GiB - * memory and 128 vCPUs.

    • kx.sg1.16xlarge – The host - * type with a configuration of 1949 GiB memory and 64 vCPUs.

    • - * kx.sg1.24xlarge – The host type with a configuration of 2948 GiB - * memory and 96 vCPUs.

    + * values:

    • kx.sg.large – The host type with a + * configuration of 16 GiB memory and 2 vCPUs.

    • + * kx.sg.xlarge – The host type with a configuration of 32 GiB memory + * and 4 vCPUs.

    • kx.sg.2xlarge – The host type with + * a configuration of 64 GiB memory and 8 vCPUs.

    • + * kx.sg.4xlarge – The host type with a configuration of 108 GiB + * memory and 16 vCPUs.

    • kx.sg.8xlarge – The host + * type with a configuration of 216 GiB memory and 32 vCPUs.

    • + * kx.sg.16xlarge – The host type with a configuration of 432 GiB + * memory and 64 vCPUs.

    • kx.sg.32xlarge – The host + * type with a configuration of 864 GiB memory and 128 vCPUs.

    • + * kx.sg1.16xlarge – The host type with a configuration of 1949 GiB + * memory and 64 vCPUs.

    • kx.sg1.24xlarge – The host + * type with a configuration of 2948 GiB memory and 96 vCPUs.

    */ inline const Aws::String& GetHostType() const{ return m_hostType; } inline void SetHostType(const Aws::String& value) { m_hostType = value; } diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxScalingGroup.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxScalingGroup.h index fa571a4c11c..192104e46af 100644 --- a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxScalingGroup.h +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxScalingGroup.h @@ -59,16 +59,20 @@ namespace Model /** *

    The memory and CPU capabilities of the scaling group host on which FinSpace * Managed kdb clusters will be placed.

    You can add one of the following - * values:

    • kx.sg.4xlarge – The host type with a - * configuration of 108 GiB memory and 16 vCPUs.

    • - * kx.sg.8xlarge – The host type with a configuration of 216 GiB - * memory and 32 vCPUs.

    • kx.sg.16xlarge – The host - * type with a configuration of 432 GiB memory and 64 vCPUs.

    • - * kx.sg.32xlarge – The host type with a configuration of 864 GiB - * memory and 128 vCPUs.

    • kx.sg1.16xlarge – The host - * type with a configuration of 1949 GiB memory and 64 vCPUs.

    • - * kx.sg1.24xlarge – The host type with a configuration of 2948 GiB - * memory and 96 vCPUs.

    + * values:

    • kx.sg.large – The host type with a + * configuration of 16 GiB memory and 2 vCPUs.

    • + * kx.sg.xlarge – The host type with a configuration of 32 GiB memory + * and 4 vCPUs.

    • kx.sg.2xlarge – The host type with + * a configuration of 64 GiB memory and 8 vCPUs.

    • + * kx.sg.4xlarge – The host type with a configuration of 108 GiB + * memory and 16 vCPUs.

    • kx.sg.8xlarge – The host + * type with a configuration of 216 GiB memory and 32 vCPUs.

    • + * kx.sg.16xlarge – The host type with a configuration of 432 GiB + * memory and 64 vCPUs.

    • kx.sg.32xlarge – The host + * type with a configuration of 864 GiB memory and 128 vCPUs.

    • + * kx.sg1.16xlarge – The host type with a configuration of 1949 GiB + * memory and 64 vCPUs.

    • kx.sg1.24xlarge – The host + * type with a configuration of 2948 GiB memory and 96 vCPUs.

    */ inline const Aws::String& GetHostType() const{ return m_hostType; } inline bool HostTypeHasBeenSet() const { return m_hostTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/FISClient.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/FISClient.h index 923623add07..1433508a1e6 100644 --- a/generated/src/aws-cpp-sdk-fis/include/aws/fis/FISClient.h +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/FISClient.h @@ -302,6 +302,32 @@ namespace FIS return SubmitAsync(&FISClient::GetExperimentTemplate, request, handler, context); } + /** + *

    Gets information about the specified safety lever.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::GetSafetyLeverOutcome GetSafetyLever(const Model::GetSafetyLeverRequest& request) const; + + /** + * A Callable wrapper for GetSafetyLever that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetSafetyLeverOutcomeCallable GetSafetyLeverCallable(const GetSafetyLeverRequestT& request) const + { + return SubmitCallable(&FISClient::GetSafetyLever, request); + } + + /** + * An Async wrapper for GetSafetyLever that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetSafetyLeverAsync(const GetSafetyLeverRequestT& request, const GetSafetyLeverResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&FISClient::GetSafetyLever, request, handler, context); + } + /** *

    Gets information about the specified target account configuration of the * experiment template.

    See Also:

    Updates the specified safety lever state.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateSafetyLeverStateOutcome UpdateSafetyLeverState(const Model::UpdateSafetyLeverStateRequest& request) const; + + /** + * A Callable wrapper for UpdateSafetyLeverState that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateSafetyLeverStateOutcomeCallable UpdateSafetyLeverStateCallable(const UpdateSafetyLeverStateRequestT& request) const + { + return SubmitCallable(&FISClient::UpdateSafetyLeverState, request); + } + + /** + * An Async wrapper for UpdateSafetyLeverState that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateSafetyLeverStateAsync(const UpdateSafetyLeverStateRequestT& request, const UpdateSafetyLeverStateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&FISClient::UpdateSafetyLeverState, request, handler, context); + } + /** *

    Updates the target account configuration for the specified experiment * template.

    See Also:

    #include #include +#include #include #include #include @@ -41,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -94,6 +96,7 @@ namespace Aws class GetExperimentRequest; class GetExperimentTargetAccountConfigurationRequest; class GetExperimentTemplateRequest; + class GetSafetyLeverRequest; class GetTargetAccountConfigurationRequest; class GetTargetResourceTypeRequest; class ListActionsRequest; @@ -109,6 +112,7 @@ namespace Aws class TagResourceRequest; class UntagResourceRequest; class UpdateExperimentTemplateRequest; + class UpdateSafetyLeverStateRequest; class UpdateTargetAccountConfigurationRequest; /* End of service model forward declarations required in FISClient header */ @@ -121,6 +125,7 @@ namespace Aws typedef Aws::Utils::Outcome GetExperimentOutcome; typedef Aws::Utils::Outcome GetExperimentTargetAccountConfigurationOutcome; typedef Aws::Utils::Outcome GetExperimentTemplateOutcome; + typedef Aws::Utils::Outcome GetSafetyLeverOutcome; typedef Aws::Utils::Outcome GetTargetAccountConfigurationOutcome; typedef Aws::Utils::Outcome GetTargetResourceTypeOutcome; typedef Aws::Utils::Outcome ListActionsOutcome; @@ -136,6 +141,7 @@ namespace Aws typedef Aws::Utils::Outcome TagResourceOutcome; typedef Aws::Utils::Outcome UntagResourceOutcome; typedef Aws::Utils::Outcome UpdateExperimentTemplateOutcome; + typedef Aws::Utils::Outcome UpdateSafetyLeverStateOutcome; typedef Aws::Utils::Outcome UpdateTargetAccountConfigurationOutcome; /* End of service model Outcome class definitions */ @@ -148,6 +154,7 @@ namespace Aws typedef std::future GetExperimentOutcomeCallable; typedef std::future GetExperimentTargetAccountConfigurationOutcomeCallable; typedef std::future GetExperimentTemplateOutcomeCallable; + typedef std::future GetSafetyLeverOutcomeCallable; typedef std::future GetTargetAccountConfigurationOutcomeCallable; typedef std::future GetTargetResourceTypeOutcomeCallable; typedef std::future ListActionsOutcomeCallable; @@ -163,6 +170,7 @@ namespace Aws typedef std::future TagResourceOutcomeCallable; typedef std::future UntagResourceOutcomeCallable; typedef std::future UpdateExperimentTemplateOutcomeCallable; + typedef std::future UpdateSafetyLeverStateOutcomeCallable; typedef std::future UpdateTargetAccountConfigurationOutcomeCallable; /* End of service model Outcome callable definitions */ } // namespace Model @@ -178,6 +186,7 @@ namespace Aws typedef std::function&) > GetExperimentResponseReceivedHandler; typedef std::function&) > GetExperimentTargetAccountConfigurationResponseReceivedHandler; typedef std::function&) > GetExperimentTemplateResponseReceivedHandler; + typedef std::function&) > GetSafetyLeverResponseReceivedHandler; typedef std::function&) > GetTargetAccountConfigurationResponseReceivedHandler; typedef std::function&) > GetTargetResourceTypeResponseReceivedHandler; typedef std::function&) > ListActionsResponseReceivedHandler; @@ -193,6 +202,7 @@ namespace Aws typedef std::function&) > TagResourceResponseReceivedHandler; typedef std::function&) > UntagResourceResponseReceivedHandler; typedef std::function&) > UpdateExperimentTemplateResponseReceivedHandler; + typedef std::function&) > UpdateSafetyLeverStateResponseReceivedHandler; typedef std::function&) > UpdateTargetAccountConfigurationResponseReceivedHandler; /* End of service model async handlers definitions */ } // namespace FIS diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/ExperimentStatus.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/ExperimentStatus.h index 594eb12a422..0b9c5ec66ec 100644 --- a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/ExperimentStatus.h +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/ExperimentStatus.h @@ -22,7 +22,8 @@ namespace Model completed, stopping, stopped, - failed + failed, + cancelled }; namespace ExperimentStatusMapper diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/GetSafetyLeverRequest.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/GetSafetyLeverRequest.h new file mode 100644 index 00000000000..b293b09d496 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/GetSafetyLeverRequest.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace FIS +{ +namespace Model +{ + + /** + */ + class GetSafetyLeverRequest : public FISRequest + { + public: + AWS_FIS_API GetSafetyLeverRequest(); + + // 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 "GetSafetyLever"; } + + AWS_FIS_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The ID of the safety lever.

    + */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline GetSafetyLeverRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline GetSafetyLeverRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline GetSafetyLeverRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/GetSafetyLeverResult.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/GetSafetyLeverResult.h new file mode 100644 index 00000000000..4e33e266fdd --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/GetSafetyLeverResult.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace FIS +{ +namespace Model +{ + class GetSafetyLeverResult + { + public: + AWS_FIS_API GetSafetyLeverResult(); + AWS_FIS_API GetSafetyLeverResult(const Aws::AmazonWebServiceResult& result); + AWS_FIS_API GetSafetyLeverResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    Information about the safety lever.

    + */ + inline const SafetyLever& GetSafetyLever() const{ return m_safetyLever; } + inline void SetSafetyLever(const SafetyLever& value) { m_safetyLever = value; } + inline void SetSafetyLever(SafetyLever&& value) { m_safetyLever = std::move(value); } + inline GetSafetyLeverResult& WithSafetyLever(const SafetyLever& value) { SetSafetyLever(value); return *this;} + inline GetSafetyLeverResult& WithSafetyLever(SafetyLever&& value) { SetSafetyLever(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetSafetyLeverResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetSafetyLeverResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetSafetyLeverResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + SafetyLever m_safetyLever; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLever.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLever.h new file mode 100644 index 00000000000..d8c09403aab --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLever.h @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace FIS +{ +namespace Model +{ + + /** + *

    Describes a safety lever.

    See Also:

    AWS API + * Reference

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

    The ID of the safety lever.

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

    The Amazon Resource Name (ARN) of the safety lever.

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

    The state of the safety lever.

    + */ + inline const SafetyLeverState& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const SafetyLeverState& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(SafetyLeverState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline SafetyLever& WithState(const SafetyLeverState& value) { SetState(value); return *this;} + inline SafetyLever& WithState(SafetyLeverState&& value) { SetState(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + SafetyLeverState m_state; + bool m_stateHasBeenSet = false; + }; + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLeverState.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLeverState.h new file mode 100644 index 00000000000..694b0710b31 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLeverState.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace FIS +{ +namespace Model +{ + + /** + *

    Describes the state of the safety lever.

    See Also:

    AWS + * API Reference

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

    The state of the safety lever.

    + */ + inline const SafetyLeverStatus& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const SafetyLeverStatus& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(SafetyLeverStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline SafetyLeverState& WithStatus(const SafetyLeverStatus& value) { SetStatus(value); return *this;} + inline SafetyLeverState& WithStatus(SafetyLeverStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The reason for the state of the safety lever.

    + */ + inline const Aws::String& GetReason() const{ return m_reason; } + inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } + inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } + inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } + inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } + inline SafetyLeverState& WithReason(const Aws::String& value) { SetReason(value); return *this;} + inline SafetyLeverState& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} + inline SafetyLeverState& WithReason(const char* value) { SetReason(value); return *this;} + ///@} + private: + + SafetyLeverStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_reason; + bool m_reasonHasBeenSet = false; + }; + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLeverStatus.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLeverStatus.h new file mode 100644 index 00000000000..a1816bfd365 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLeverStatus.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 FIS +{ +namespace Model +{ + enum class SafetyLeverStatus + { + NOT_SET, + disengaged, + engaged, + engaging + }; + +namespace SafetyLeverStatusMapper +{ +AWS_FIS_API SafetyLeverStatus GetSafetyLeverStatusForName(const Aws::String& name); + +AWS_FIS_API Aws::String GetNameForSafetyLeverStatus(SafetyLeverStatus value); +} // namespace SafetyLeverStatusMapper +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLeverStatusInput.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLeverStatusInput.h new file mode 100644 index 00000000000..2e76a100680 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/SafetyLeverStatusInput.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 FIS +{ +namespace Model +{ + enum class SafetyLeverStatusInput + { + NOT_SET, + disengaged, + engaged + }; + +namespace SafetyLeverStatusInputMapper +{ +AWS_FIS_API SafetyLeverStatusInput GetSafetyLeverStatusInputForName(const Aws::String& name); + +AWS_FIS_API Aws::String GetNameForSafetyLeverStatusInput(SafetyLeverStatusInput value); +} // namespace SafetyLeverStatusInputMapper +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/UpdateSafetyLeverStateInput.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/UpdateSafetyLeverStateInput.h new file mode 100644 index 00000000000..ca95ccfe4f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/UpdateSafetyLeverStateInput.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace FIS +{ +namespace Model +{ + + /** + *

    Specifies a state for a safety lever.

    See Also:

    AWS + * API Reference

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

    The updated state of the safety lever.

    + */ + inline const SafetyLeverStatusInput& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const SafetyLeverStatusInput& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(SafetyLeverStatusInput&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline UpdateSafetyLeverStateInput& WithStatus(const SafetyLeverStatusInput& value) { SetStatus(value); return *this;} + inline UpdateSafetyLeverStateInput& WithStatus(SafetyLeverStatusInput&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The reason for updating the state of the safety lever.

    + */ + inline const Aws::String& GetReason() const{ return m_reason; } + inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } + inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } + inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } + inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } + inline UpdateSafetyLeverStateInput& WithReason(const Aws::String& value) { SetReason(value); return *this;} + inline UpdateSafetyLeverStateInput& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} + inline UpdateSafetyLeverStateInput& WithReason(const char* value) { SetReason(value); return *this;} + ///@} + private: + + SafetyLeverStatusInput m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_reason; + bool m_reasonHasBeenSet = false; + }; + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/UpdateSafetyLeverStateRequest.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/UpdateSafetyLeverStateRequest.h new file mode 100644 index 00000000000..65f60471711 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/UpdateSafetyLeverStateRequest.h @@ -0,0 +1,72 @@ +/** + * 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 FIS +{ +namespace Model +{ + + /** + */ + class UpdateSafetyLeverStateRequest : public FISRequest + { + public: + AWS_FIS_API UpdateSafetyLeverStateRequest(); + + // 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 "UpdateSafetyLeverState"; } + + AWS_FIS_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The ID of the safety lever.

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

    The state of the safety lever.

    + */ + inline const UpdateSafetyLeverStateInput& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const UpdateSafetyLeverStateInput& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(UpdateSafetyLeverStateInput&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline UpdateSafetyLeverStateRequest& WithState(const UpdateSafetyLeverStateInput& value) { SetState(value); return *this;} + inline UpdateSafetyLeverStateRequest& WithState(UpdateSafetyLeverStateInput&& value) { SetState(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + UpdateSafetyLeverStateInput m_state; + bool m_stateHasBeenSet = false; + }; + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/UpdateSafetyLeverStateResult.h b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/UpdateSafetyLeverStateResult.h new file mode 100644 index 00000000000..2675f3aaffc --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/include/aws/fis/model/UpdateSafetyLeverStateResult.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace FIS +{ +namespace Model +{ + class UpdateSafetyLeverStateResult + { + public: + AWS_FIS_API UpdateSafetyLeverStateResult(); + AWS_FIS_API UpdateSafetyLeverStateResult(const Aws::AmazonWebServiceResult& result); + AWS_FIS_API UpdateSafetyLeverStateResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    Information about the safety lever.

    + */ + inline const SafetyLever& GetSafetyLever() const{ return m_safetyLever; } + inline void SetSafetyLever(const SafetyLever& value) { m_safetyLever = value; } + inline void SetSafetyLever(SafetyLever&& value) { m_safetyLever = std::move(value); } + inline UpdateSafetyLeverStateResult& WithSafetyLever(const SafetyLever& value) { SetSafetyLever(value); return *this;} + inline UpdateSafetyLeverStateResult& WithSafetyLever(SafetyLever&& value) { SetSafetyLever(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateSafetyLeverStateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateSafetyLeverStateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateSafetyLeverStateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + SafetyLever m_safetyLever; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/source/FISClient.cpp b/generated/src/aws-cpp-sdk-fis/source/FISClient.cpp index 0db5f1e4f46..62affacaa50 100644 --- a/generated/src/aws-cpp-sdk-fis/source/FISClient.cpp +++ b/generated/src/aws-cpp-sdk-fis/source/FISClient.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -44,6 +45,7 @@ #include #include #include +#include #include #include @@ -482,6 +484,39 @@ GetExperimentTemplateOutcome FISClient::GetExperimentTemplate(const GetExperimen {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetSafetyLeverOutcome FISClient::GetSafetyLever(const GetSafetyLeverRequest& request) const +{ + AWS_OPERATION_GUARD(GetSafetyLever); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSafetyLever, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetSafetyLever", "Required field: Id, is not set"); + return GetSafetyLeverOutcome(Aws::Client::AWSError(FISErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSafetyLever, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetSafetyLever, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSafetyLever", + {{ 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( + [&]()-> GetSafetyLeverOutcome { + 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, GetSafetyLever, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/safetyLevers/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return GetSafetyLeverOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetTargetAccountConfigurationOutcome FISClient::GetTargetAccountConfiguration(const GetTargetAccountConfigurationRequest& request) const { AWS_OPERATION_GUARD(GetTargetAccountConfiguration); @@ -962,6 +997,40 @@ UpdateExperimentTemplateOutcome FISClient::UpdateExperimentTemplate(const Update {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateSafetyLeverStateOutcome FISClient::UpdateSafetyLeverState(const UpdateSafetyLeverStateRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateSafetyLeverState); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateSafetyLeverState, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateSafetyLeverState", "Required field: Id, is not set"); + return UpdateSafetyLeverStateOutcome(Aws::Client::AWSError(FISErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateSafetyLeverState, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateSafetyLeverState, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateSafetyLeverState", + {{ 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( + [&]()-> UpdateSafetyLeverStateOutcome { + 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, UpdateSafetyLeverState, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/safetyLevers/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/state"); + return UpdateSafetyLeverStateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateTargetAccountConfigurationOutcome FISClient::UpdateTargetAccountConfiguration(const UpdateTargetAccountConfigurationRequest& request) const { AWS_OPERATION_GUARD(UpdateTargetAccountConfiguration); diff --git a/generated/src/aws-cpp-sdk-fis/source/model/ExperimentStatus.cpp b/generated/src/aws-cpp-sdk-fis/source/model/ExperimentStatus.cpp index 52cefc99153..c20214ef3ff 100644 --- a/generated/src/aws-cpp-sdk-fis/source/model/ExperimentStatus.cpp +++ b/generated/src/aws-cpp-sdk-fis/source/model/ExperimentStatus.cpp @@ -27,6 +27,7 @@ namespace Aws static const int stopping_HASH = HashingUtils::HashString("stopping"); static const int stopped_HASH = HashingUtils::HashString("stopped"); static const int failed_HASH = HashingUtils::HashString("failed"); + static const int cancelled_HASH = HashingUtils::HashString("cancelled"); ExperimentStatus GetExperimentStatusForName(const Aws::String& name) @@ -60,6 +61,10 @@ namespace Aws { return ExperimentStatus::failed; } + else if (hashCode == cancelled_HASH) + { + return ExperimentStatus::cancelled; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -90,6 +95,8 @@ namespace Aws return "stopped"; case ExperimentStatus::failed: return "failed"; + case ExperimentStatus::cancelled: + return "cancelled"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-fis/source/model/GetSafetyLeverRequest.cpp b/generated/src/aws-cpp-sdk-fis/source/model/GetSafetyLeverRequest.cpp new file mode 100644 index 00000000000..95d8189cb48 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/source/model/GetSafetyLeverRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::FIS::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetSafetyLeverRequest::GetSafetyLeverRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetSafetyLeverRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-fis/source/model/GetSafetyLeverResult.cpp b/generated/src/aws-cpp-sdk-fis/source/model/GetSafetyLeverResult.cpp new file mode 100644 index 00000000000..155f35c08cd --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/source/model/GetSafetyLeverResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::FIS::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetSafetyLeverResult::GetSafetyLeverResult() +{ +} + +GetSafetyLeverResult::GetSafetyLeverResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetSafetyLeverResult& GetSafetyLeverResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("safetyLever")) + { + m_safetyLever = jsonValue.GetObject("safetyLever"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-fis/source/model/SafetyLever.cpp b/generated/src/aws-cpp-sdk-fis/source/model/SafetyLever.cpp new file mode 100644 index 00000000000..d5ccd986b57 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/source/model/SafetyLever.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace FIS +{ +namespace Model +{ + +SafetyLever::SafetyLever() : + m_idHasBeenSet(false), + m_arnHasBeenSet(false), + m_stateHasBeenSet(false) +{ +} + +SafetyLever::SafetyLever(JsonView jsonValue) + : SafetyLever() +{ + *this = jsonValue; +} + +SafetyLever& SafetyLever::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("state")) + { + m_state = jsonValue.GetObject("state"); + + m_stateHasBeenSet = true; + } + + return *this; +} + +JsonValue SafetyLever::Jsonize() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + if(m_stateHasBeenSet) + { + payload.WithObject("state", m_state.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/source/model/SafetyLeverState.cpp b/generated/src/aws-cpp-sdk-fis/source/model/SafetyLeverState.cpp new file mode 100644 index 00000000000..4fca7db1f5f --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/source/model/SafetyLeverState.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace FIS +{ +namespace Model +{ + +SafetyLeverState::SafetyLeverState() : + m_status(SafetyLeverStatus::NOT_SET), + m_statusHasBeenSet(false), + m_reasonHasBeenSet(false) +{ +} + +SafetyLeverState::SafetyLeverState(JsonView jsonValue) + : SafetyLeverState() +{ + *this = jsonValue; +} + +SafetyLeverState& SafetyLeverState::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("status")) + { + m_status = SafetyLeverStatusMapper::GetSafetyLeverStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("reason")) + { + m_reason = jsonValue.GetString("reason"); + + m_reasonHasBeenSet = true; + } + + return *this; +} + +JsonValue SafetyLeverState::Jsonize() const +{ + JsonValue payload; + + if(m_statusHasBeenSet) + { + payload.WithString("status", SafetyLeverStatusMapper::GetNameForSafetyLeverStatus(m_status)); + } + + if(m_reasonHasBeenSet) + { + payload.WithString("reason", m_reason); + + } + + return payload; +} + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/source/model/SafetyLeverStatus.cpp b/generated/src/aws-cpp-sdk-fis/source/model/SafetyLeverStatus.cpp new file mode 100644 index 00000000000..4136f1267b0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/source/model/SafetyLeverStatus.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 FIS + { + namespace Model + { + namespace SafetyLeverStatusMapper + { + + static const int disengaged_HASH = HashingUtils::HashString("disengaged"); + static const int engaged_HASH = HashingUtils::HashString("engaged"); + static const int engaging_HASH = HashingUtils::HashString("engaging"); + + + SafetyLeverStatus GetSafetyLeverStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == disengaged_HASH) + { + return SafetyLeverStatus::disengaged; + } + else if (hashCode == engaged_HASH) + { + return SafetyLeverStatus::engaged; + } + else if (hashCode == engaging_HASH) + { + return SafetyLeverStatus::engaging; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SafetyLeverStatus::NOT_SET; + } + + Aws::String GetNameForSafetyLeverStatus(SafetyLeverStatus enumValue) + { + switch(enumValue) + { + case SafetyLeverStatus::NOT_SET: + return {}; + case SafetyLeverStatus::disengaged: + return "disengaged"; + case SafetyLeverStatus::engaged: + return "engaged"; + case SafetyLeverStatus::engaging: + return "engaging"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SafetyLeverStatusMapper + } // namespace Model + } // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/source/model/SafetyLeverStatusInput.cpp b/generated/src/aws-cpp-sdk-fis/source/model/SafetyLeverStatusInput.cpp new file mode 100644 index 00000000000..6aa2c0cc405 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/source/model/SafetyLeverStatusInput.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 FIS + { + namespace Model + { + namespace SafetyLeverStatusInputMapper + { + + static const int disengaged_HASH = HashingUtils::HashString("disengaged"); + static const int engaged_HASH = HashingUtils::HashString("engaged"); + + + SafetyLeverStatusInput GetSafetyLeverStatusInputForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == disengaged_HASH) + { + return SafetyLeverStatusInput::disengaged; + } + else if (hashCode == engaged_HASH) + { + return SafetyLeverStatusInput::engaged; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SafetyLeverStatusInput::NOT_SET; + } + + Aws::String GetNameForSafetyLeverStatusInput(SafetyLeverStatusInput enumValue) + { + switch(enumValue) + { + case SafetyLeverStatusInput::NOT_SET: + return {}; + case SafetyLeverStatusInput::disengaged: + return "disengaged"; + case SafetyLeverStatusInput::engaged: + return "engaged"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SafetyLeverStatusInputMapper + } // namespace Model + } // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/source/model/UpdateSafetyLeverStateInput.cpp b/generated/src/aws-cpp-sdk-fis/source/model/UpdateSafetyLeverStateInput.cpp new file mode 100644 index 00000000000..d96932340f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/source/model/UpdateSafetyLeverStateInput.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace FIS +{ +namespace Model +{ + +UpdateSafetyLeverStateInput::UpdateSafetyLeverStateInput() : + m_status(SafetyLeverStatusInput::NOT_SET), + m_statusHasBeenSet(false), + m_reasonHasBeenSet(false) +{ +} + +UpdateSafetyLeverStateInput::UpdateSafetyLeverStateInput(JsonView jsonValue) + : UpdateSafetyLeverStateInput() +{ + *this = jsonValue; +} + +UpdateSafetyLeverStateInput& UpdateSafetyLeverStateInput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("status")) + { + m_status = SafetyLeverStatusInputMapper::GetSafetyLeverStatusInputForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("reason")) + { + m_reason = jsonValue.GetString("reason"); + + m_reasonHasBeenSet = true; + } + + return *this; +} + +JsonValue UpdateSafetyLeverStateInput::Jsonize() const +{ + JsonValue payload; + + if(m_statusHasBeenSet) + { + payload.WithString("status", SafetyLeverStatusInputMapper::GetNameForSafetyLeverStatusInput(m_status)); + } + + if(m_reasonHasBeenSet) + { + payload.WithString("reason", m_reason); + + } + + return payload; +} + +} // namespace Model +} // namespace FIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-fis/source/model/UpdateSafetyLeverStateRequest.cpp b/generated/src/aws-cpp-sdk-fis/source/model/UpdateSafetyLeverStateRequest.cpp new file mode 100644 index 00000000000..2b0ad90572a --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/source/model/UpdateSafetyLeverStateRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::FIS::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateSafetyLeverStateRequest::UpdateSafetyLeverStateRequest() : + m_idHasBeenSet(false), + m_stateHasBeenSet(false) +{ +} + +Aws::String UpdateSafetyLeverStateRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_stateHasBeenSet) + { + payload.WithObject("state", m_state.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-fis/source/model/UpdateSafetyLeverStateResult.cpp b/generated/src/aws-cpp-sdk-fis/source/model/UpdateSafetyLeverStateResult.cpp new file mode 100644 index 00000000000..c77894619e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-fis/source/model/UpdateSafetyLeverStateResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::FIS::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateSafetyLeverStateResult::UpdateSafetyLeverStateResult() +{ +} + +UpdateSafetyLeverStateResult::UpdateSafetyLeverStateResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateSafetyLeverStateResult& UpdateSafetyLeverStateResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("safetyLever")) + { + m_safetyLever = jsonValue.GetObject("safetyLever"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/CloudWatchLogsClient.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/CloudWatchLogsClient.h index 3b12a07cbae..48bdc7ee54b 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/CloudWatchLogsClient.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/CloudWatchLogsClient.h @@ -864,6 +864,35 @@ namespace CloudWatchLogs return SubmitAsync(&CloudWatchLogsClient::DescribeAccountPolicies, request, handler, context); } + /** + *

    Use this operation to return the valid and default values that are used when + * creating delivery sources, delivery destinations, and deliveries. For more + * information about deliveries, see CreateDelivery.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::DescribeConfigurationTemplatesOutcome DescribeConfigurationTemplates(const Model::DescribeConfigurationTemplatesRequest& request = {}) const; + + /** + * A Callable wrapper for DescribeConfigurationTemplates that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DescribeConfigurationTemplatesOutcomeCallable DescribeConfigurationTemplatesCallable(const DescribeConfigurationTemplatesRequestT& request = {}) const + { + return SubmitCallable(&CloudWatchLogsClient::DescribeConfigurationTemplates, request); + } + + /** + * An Async wrapper for DescribeConfigurationTemplates that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DescribeConfigurationTemplatesAsync(const DescribeConfigurationTemplatesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const DescribeConfigurationTemplatesRequestT& request = {}) const + { + return SubmitAsync(&CloudWatchLogsClient::DescribeConfigurationTemplates, request, handler, context); + } + /** *

    Retrieves a list of the deliveries that have been created in the account.

    *

    A delivery is a connection between a Use this operation to update the configuration of a delivery + * to change either the S3 path pattern or the format of the delivered logs. You + * can't use this operation to change the source or destination of the + * delivery.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateDeliveryConfigurationOutcome UpdateDeliveryConfiguration(const Model::UpdateDeliveryConfigurationRequest& request) const; + + /** + * A Callable wrapper for UpdateDeliveryConfiguration that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateDeliveryConfigurationOutcomeCallable UpdateDeliveryConfigurationCallable(const UpdateDeliveryConfigurationRequestT& request) const + { + return SubmitCallable(&CloudWatchLogsClient::UpdateDeliveryConfiguration, request); + } + + /** + * An Async wrapper for UpdateDeliveryConfiguration that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateDeliveryConfigurationAsync(const UpdateDeliveryConfigurationRequestT& request, const UpdateDeliveryConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CloudWatchLogsClient::UpdateDeliveryConfiguration, request, handler, context); + } + /** *

    Updates an existing log anomaly detector.

    See Also:

    AWS diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/CloudWatchLogsServiceClientModel.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/CloudWatchLogsServiceClientModel.h index ef53e37c1c2..dcd4e923a88 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/CloudWatchLogsServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/CloudWatchLogsServiceClientModel.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -61,6 +62,7 @@ #include #include #include +#include #include #include #include @@ -71,6 +73,7 @@ #include #include #include +#include #include #include #include @@ -143,6 +146,7 @@ namespace Aws class DeleteRetentionPolicyRequest; class DeleteSubscriptionFilterRequest; class DescribeAccountPoliciesRequest; + class DescribeConfigurationTemplatesRequest; class DescribeDeliveriesRequest; class DescribeDeliveryDestinationsRequest; class DescribeDeliverySourcesRequest; @@ -190,6 +194,7 @@ namespace Aws class TestMetricFilterRequest; class UntagResourceRequest; class UpdateAnomalyRequest; + class UpdateDeliveryConfigurationRequest; class UpdateLogAnomalyDetectorRequest; /* End of service model forward declarations required in CloudWatchLogsClient header */ @@ -217,6 +222,7 @@ namespace Aws typedef Aws::Utils::Outcome DeleteRetentionPolicyOutcome; typedef Aws::Utils::Outcome DeleteSubscriptionFilterOutcome; typedef Aws::Utils::Outcome DescribeAccountPoliciesOutcome; + typedef Aws::Utils::Outcome DescribeConfigurationTemplatesOutcome; typedef Aws::Utils::Outcome DescribeDeliveriesOutcome; typedef Aws::Utils::Outcome DescribeDeliveryDestinationsOutcome; typedef Aws::Utils::Outcome DescribeDeliverySourcesOutcome; @@ -264,6 +270,7 @@ namespace Aws typedef Aws::Utils::Outcome TestMetricFilterOutcome; typedef Aws::Utils::Outcome UntagResourceOutcome; typedef Aws::Utils::Outcome UpdateAnomalyOutcome; + typedef Aws::Utils::Outcome UpdateDeliveryConfigurationOutcome; typedef Aws::Utils::Outcome UpdateLogAnomalyDetectorOutcome; /* End of service model Outcome class definitions */ @@ -291,6 +298,7 @@ namespace Aws typedef std::future DeleteRetentionPolicyOutcomeCallable; typedef std::future DeleteSubscriptionFilterOutcomeCallable; typedef std::future DescribeAccountPoliciesOutcomeCallable; + typedef std::future DescribeConfigurationTemplatesOutcomeCallable; typedef std::future DescribeDeliveriesOutcomeCallable; typedef std::future DescribeDeliveryDestinationsOutcomeCallable; typedef std::future DescribeDeliverySourcesOutcomeCallable; @@ -338,6 +346,7 @@ namespace Aws typedef std::future TestMetricFilterOutcomeCallable; typedef std::future UntagResourceOutcomeCallable; typedef std::future UpdateAnomalyOutcomeCallable; + typedef std::future UpdateDeliveryConfigurationOutcomeCallable; typedef std::future UpdateLogAnomalyDetectorOutcomeCallable; /* End of service model Outcome callable definitions */ } // namespace Model @@ -368,6 +377,7 @@ namespace Aws typedef std::function&) > DeleteRetentionPolicyResponseReceivedHandler; typedef std::function&) > DeleteSubscriptionFilterResponseReceivedHandler; typedef std::function&) > DescribeAccountPoliciesResponseReceivedHandler; + typedef std::function&) > DescribeConfigurationTemplatesResponseReceivedHandler; typedef std::function&) > DescribeDeliveriesResponseReceivedHandler; typedef std::function&) > DescribeDeliveryDestinationsResponseReceivedHandler; typedef std::function&) > DescribeDeliverySourcesResponseReceivedHandler; @@ -415,6 +425,7 @@ namespace Aws typedef std::function&) > TestMetricFilterResponseReceivedHandler; typedef std::function&) > UntagResourceResponseReceivedHandler; typedef std::function&) > UpdateAnomalyResponseReceivedHandler; + typedef std::function&) > UpdateDeliveryConfigurationResponseReceivedHandler; typedef std::function&) > UpdateLogAnomalyDetectorResponseReceivedHandler; /* End of service model async handlers definitions */ } // namespace CloudWatchLogs diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/ConfigurationTemplate.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/ConfigurationTemplate.h new file mode 100644 index 00000000000..e0d30f6cf67 --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/ConfigurationTemplate.h @@ -0,0 +1,243 @@ +/** + * 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 Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace CloudWatchLogs +{ +namespace Model +{ + + /** + *

    A structure containing information about the deafult settings and available + * settings that you can use to configure a delivery + * or a delivery + * destination.

    See Also:

    AWS + * API Reference

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

    A string specifying which service this configuration template applies to. For + * more information about supported services see Enable + * logging from Amazon Web Services services..

    + */ + inline const Aws::String& GetService() const{ return m_service; } + inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } + inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; } + inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } + inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); } + inline ConfigurationTemplate& WithService(const Aws::String& value) { SetService(value); return *this;} + inline ConfigurationTemplate& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;} + inline ConfigurationTemplate& WithService(const char* value) { SetService(value); return *this;} + ///@} + + ///@{ + /** + *

    A string specifying which log type this configuration template applies + * to.

    + */ + inline const Aws::String& GetLogType() const{ return m_logType; } + inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; } + inline void SetLogType(const Aws::String& value) { m_logTypeHasBeenSet = true; m_logType = value; } + inline void SetLogType(Aws::String&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); } + inline void SetLogType(const char* value) { m_logTypeHasBeenSet = true; m_logType.assign(value); } + inline ConfigurationTemplate& WithLogType(const Aws::String& value) { SetLogType(value); return *this;} + inline ConfigurationTemplate& WithLogType(Aws::String&& value) { SetLogType(std::move(value)); return *this;} + inline ConfigurationTemplate& WithLogType(const char* value) { SetLogType(value); return *this;} + ///@} + + ///@{ + /** + *

    A string specifying which resource type this configuration template applies + * to.

    + */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + inline ConfigurationTemplate& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + inline ConfigurationTemplate& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + inline ConfigurationTemplate& WithResourceType(const char* value) { SetResourceType(value); return *this;} + ///@} + + ///@{ + /** + *

    A string specifying which destination type this configuration template + * applies to.

    + */ + inline const DeliveryDestinationType& GetDeliveryDestinationType() const{ return m_deliveryDestinationType; } + inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; } + inline void SetDeliveryDestinationType(const DeliveryDestinationType& value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = value; } + inline void SetDeliveryDestinationType(DeliveryDestinationType&& value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = std::move(value); } + inline ConfigurationTemplate& WithDeliveryDestinationType(const DeliveryDestinationType& value) { SetDeliveryDestinationType(value); return *this;} + inline ConfigurationTemplate& WithDeliveryDestinationType(DeliveryDestinationType&& value) { SetDeliveryDestinationType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    A mapping that displays the default value of each property within a + * delivery’s configuration, if it is not specified in the request.

    + */ + inline const ConfigurationTemplateDeliveryConfigValues& GetDefaultDeliveryConfigValues() const{ return m_defaultDeliveryConfigValues; } + inline bool DefaultDeliveryConfigValuesHasBeenSet() const { return m_defaultDeliveryConfigValuesHasBeenSet; } + inline void SetDefaultDeliveryConfigValues(const ConfigurationTemplateDeliveryConfigValues& value) { m_defaultDeliveryConfigValuesHasBeenSet = true; m_defaultDeliveryConfigValues = value; } + inline void SetDefaultDeliveryConfigValues(ConfigurationTemplateDeliveryConfigValues&& value) { m_defaultDeliveryConfigValuesHasBeenSet = true; m_defaultDeliveryConfigValues = std::move(value); } + inline ConfigurationTemplate& WithDefaultDeliveryConfigValues(const ConfigurationTemplateDeliveryConfigValues& value) { SetDefaultDeliveryConfigValues(value); return *this;} + inline ConfigurationTemplate& WithDefaultDeliveryConfigValues(ConfigurationTemplateDeliveryConfigValues&& value) { SetDefaultDeliveryConfigValues(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The allowed fields that a caller can use in the recordFields + * parameter of a CreateDelivery + * or UpdateDeliveryConfiguration + * operation.

    + */ + inline const Aws::Vector& GetAllowedFields() const{ return m_allowedFields; } + inline bool AllowedFieldsHasBeenSet() const { return m_allowedFieldsHasBeenSet; } + inline void SetAllowedFields(const Aws::Vector& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields = value; } + inline void SetAllowedFields(Aws::Vector&& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields = std::move(value); } + inline ConfigurationTemplate& WithAllowedFields(const Aws::Vector& value) { SetAllowedFields(value); return *this;} + inline ConfigurationTemplate& WithAllowedFields(Aws::Vector&& value) { SetAllowedFields(std::move(value)); return *this;} + inline ConfigurationTemplate& AddAllowedFields(const RecordField& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields.push_back(value); return *this; } + inline ConfigurationTemplate& AddAllowedFields(RecordField&& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The list of delivery destination output formats that are supported by this + * log source.

    + */ + inline const Aws::Vector& GetAllowedOutputFormats() const{ return m_allowedOutputFormats; } + inline bool AllowedOutputFormatsHasBeenSet() const { return m_allowedOutputFormatsHasBeenSet; } + inline void SetAllowedOutputFormats(const Aws::Vector& value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats = value; } + inline void SetAllowedOutputFormats(Aws::Vector&& value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats = std::move(value); } + inline ConfigurationTemplate& WithAllowedOutputFormats(const Aws::Vector& value) { SetAllowedOutputFormats(value); return *this;} + inline ConfigurationTemplate& WithAllowedOutputFormats(Aws::Vector&& value) { SetAllowedOutputFormats(std::move(value)); return *this;} + inline ConfigurationTemplate& AddAllowedOutputFormats(const OutputFormat& value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats.push_back(value); return *this; } + inline ConfigurationTemplate& AddAllowedOutputFormats(OutputFormat&& value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The action permissions that a caller needs to have to be able to successfully + * create a delivery source on the desired resource type when calling PutDeliverySource.

    + */ + inline const Aws::String& GetAllowedActionForAllowVendedLogsDeliveryForResource() const{ return m_allowedActionForAllowVendedLogsDeliveryForResource; } + inline bool AllowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet() const { return m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet; } + inline void SetAllowedActionForAllowVendedLogsDeliveryForResource(const Aws::String& value) { m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true; m_allowedActionForAllowVendedLogsDeliveryForResource = value; } + inline void SetAllowedActionForAllowVendedLogsDeliveryForResource(Aws::String&& value) { m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true; m_allowedActionForAllowVendedLogsDeliveryForResource = std::move(value); } + inline void SetAllowedActionForAllowVendedLogsDeliveryForResource(const char* value) { m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true; m_allowedActionForAllowVendedLogsDeliveryForResource.assign(value); } + inline ConfigurationTemplate& WithAllowedActionForAllowVendedLogsDeliveryForResource(const Aws::String& value) { SetAllowedActionForAllowVendedLogsDeliveryForResource(value); return *this;} + inline ConfigurationTemplate& WithAllowedActionForAllowVendedLogsDeliveryForResource(Aws::String&& value) { SetAllowedActionForAllowVendedLogsDeliveryForResource(std::move(value)); return *this;} + inline ConfigurationTemplate& WithAllowedActionForAllowVendedLogsDeliveryForResource(const char* value) { SetAllowedActionForAllowVendedLogsDeliveryForResource(value); return *this;} + ///@} + + ///@{ + /** + *

    The valid values that a caller can use as field delimiters when calling CreateDelivery + * or UpdateDeliveryConfiguration + * on a delivery that delivers in Plain, W3C, or + * Raw format.

    + */ + inline const Aws::Vector& GetAllowedFieldDelimiters() const{ return m_allowedFieldDelimiters; } + inline bool AllowedFieldDelimitersHasBeenSet() const { return m_allowedFieldDelimitersHasBeenSet; } + inline void SetAllowedFieldDelimiters(const Aws::Vector& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters = value; } + inline void SetAllowedFieldDelimiters(Aws::Vector&& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters = std::move(value); } + inline ConfigurationTemplate& WithAllowedFieldDelimiters(const Aws::Vector& value) { SetAllowedFieldDelimiters(value); return *this;} + inline ConfigurationTemplate& WithAllowedFieldDelimiters(Aws::Vector&& value) { SetAllowedFieldDelimiters(std::move(value)); return *this;} + inline ConfigurationTemplate& AddAllowedFieldDelimiters(const Aws::String& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters.push_back(value); return *this; } + inline ConfigurationTemplate& AddAllowedFieldDelimiters(Aws::String&& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters.push_back(std::move(value)); return *this; } + inline ConfigurationTemplate& AddAllowedFieldDelimiters(const char* value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The list of variable fields that can be used in the suffix path of a delivery + * that delivers to an S3 bucket.

    + */ + inline const Aws::Vector& GetAllowedSuffixPathFields() const{ return m_allowedSuffixPathFields; } + inline bool AllowedSuffixPathFieldsHasBeenSet() const { return m_allowedSuffixPathFieldsHasBeenSet; } + inline void SetAllowedSuffixPathFields(const Aws::Vector& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields = value; } + inline void SetAllowedSuffixPathFields(Aws::Vector&& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields = std::move(value); } + inline ConfigurationTemplate& WithAllowedSuffixPathFields(const Aws::Vector& value) { SetAllowedSuffixPathFields(value); return *this;} + inline ConfigurationTemplate& WithAllowedSuffixPathFields(Aws::Vector&& value) { SetAllowedSuffixPathFields(std::move(value)); return *this;} + inline ConfigurationTemplate& AddAllowedSuffixPathFields(const Aws::String& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields.push_back(value); return *this; } + inline ConfigurationTemplate& AddAllowedSuffixPathFields(Aws::String&& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields.push_back(std::move(value)); return *this; } + inline ConfigurationTemplate& AddAllowedSuffixPathFields(const char* value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields.push_back(value); return *this; } + ///@} + private: + + Aws::String m_service; + bool m_serviceHasBeenSet = false; + + Aws::String m_logType; + bool m_logTypeHasBeenSet = false; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + + DeliveryDestinationType m_deliveryDestinationType; + bool m_deliveryDestinationTypeHasBeenSet = false; + + ConfigurationTemplateDeliveryConfigValues m_defaultDeliveryConfigValues; + bool m_defaultDeliveryConfigValuesHasBeenSet = false; + + Aws::Vector m_allowedFields; + bool m_allowedFieldsHasBeenSet = false; + + Aws::Vector m_allowedOutputFormats; + bool m_allowedOutputFormatsHasBeenSet = false; + + Aws::String m_allowedActionForAllowVendedLogsDeliveryForResource; + bool m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = false; + + Aws::Vector m_allowedFieldDelimiters; + bool m_allowedFieldDelimitersHasBeenSet = false; + + Aws::Vector m_allowedSuffixPathFields; + bool m_allowedSuffixPathFieldsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/ConfigurationTemplateDeliveryConfigValues.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/ConfigurationTemplateDeliveryConfigValues.h new file mode 100644 index 00000000000..ef63ad7dd5f --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/ConfigurationTemplateDeliveryConfigValues.h @@ -0,0 +1,108 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace CloudWatchLogs +{ +namespace Model +{ + + /** + *

    This structure contains the default values that are used for each + * configuration parameter when you use CreateDelivery + * to create a deliver under the current service type, resource type, and log + * type.

    See Also:

    AWS + * API Reference

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

    The default record fields that will be delivered when a list of record fields + * is not provided in a CreateDelivery + * operation.

    + */ + inline const Aws::Vector& GetRecordFields() const{ return m_recordFields; } + inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; } + inline void SetRecordFields(const Aws::Vector& value) { m_recordFieldsHasBeenSet = true; m_recordFields = value; } + inline void SetRecordFields(Aws::Vector&& value) { m_recordFieldsHasBeenSet = true; m_recordFields = std::move(value); } + inline ConfigurationTemplateDeliveryConfigValues& WithRecordFields(const Aws::Vector& value) { SetRecordFields(value); return *this;} + inline ConfigurationTemplateDeliveryConfigValues& WithRecordFields(Aws::Vector&& value) { SetRecordFields(std::move(value)); return *this;} + inline ConfigurationTemplateDeliveryConfigValues& AddRecordFields(const Aws::String& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; } + inline ConfigurationTemplateDeliveryConfigValues& AddRecordFields(Aws::String&& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(std::move(value)); return *this; } + inline ConfigurationTemplateDeliveryConfigValues& AddRecordFields(const char* value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The default field delimiter that is used in a CreateDelivery + * operation when the field delimiter is not specified in that operation. The field + * delimiter is used only when the final output delivery is in Plain, + * W3C, or Raw format.

    + */ + inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; } + inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; } + inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; } + inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); } + inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); } + inline ConfigurationTemplateDeliveryConfigValues& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;} + inline ConfigurationTemplateDeliveryConfigValues& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;} + inline ConfigurationTemplateDeliveryConfigValues& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;} + ///@} + + ///@{ + /** + *

    The delivery parameters that are used when you create a delivery to a + * delivery destination that is an S3 Bucket.

    + */ + inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const{ return m_s3DeliveryConfiguration; } + inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; } + inline void SetS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = value; } + inline void SetS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = std::move(value); } + inline ConfigurationTemplateDeliveryConfigValues& WithS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { SetS3DeliveryConfiguration(value); return *this;} + inline ConfigurationTemplateDeliveryConfigValues& WithS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { SetS3DeliveryConfiguration(std::move(value)); return *this;} + ///@} + private: + + Aws::Vector m_recordFields; + bool m_recordFieldsHasBeenSet = false; + + Aws::String m_fieldDelimiter; + bool m_fieldDelimiterHasBeenSet = false; + + S3DeliveryConfiguration m_s3DeliveryConfiguration; + bool m_s3DeliveryConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/CreateDeliveryRequest.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/CreateDeliveryRequest.h index 562b7453dd9..6a7206dc4e6 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/CreateDeliveryRequest.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/CreateDeliveryRequest.h @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include #include @@ -63,6 +65,52 @@ namespace Model inline CreateDeliveryRequest& WithDeliveryDestinationArn(const char* value) { SetDeliveryDestinationArn(value); return *this;} ///@} + ///@{ + /** + *

    The list of record fields to be delivered to the destination, in order. If + * the delivery’s log source has mandatory fields, they must be included in this + * list.

    + */ + inline const Aws::Vector& GetRecordFields() const{ return m_recordFields; } + inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; } + inline void SetRecordFields(const Aws::Vector& value) { m_recordFieldsHasBeenSet = true; m_recordFields = value; } + inline void SetRecordFields(Aws::Vector&& value) { m_recordFieldsHasBeenSet = true; m_recordFields = std::move(value); } + inline CreateDeliveryRequest& WithRecordFields(const Aws::Vector& value) { SetRecordFields(value); return *this;} + inline CreateDeliveryRequest& WithRecordFields(Aws::Vector&& value) { SetRecordFields(std::move(value)); return *this;} + inline CreateDeliveryRequest& AddRecordFields(const Aws::String& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; } + inline CreateDeliveryRequest& AddRecordFields(Aws::String&& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(std::move(value)); return *this; } + inline CreateDeliveryRequest& AddRecordFields(const char* value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The field delimiter to use between record fields when the final output format + * of a delivery is in Plain, W3C, or Raw + * format.

    + */ + inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; } + inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; } + inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; } + inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); } + inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); } + inline CreateDeliveryRequest& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;} + inline CreateDeliveryRequest& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;} + inline CreateDeliveryRequest& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;} + ///@} + + ///@{ + /** + *

    This structure contains parameters that are valid only when the delivery’s + * delivery destination is an S3 bucket.

    + */ + inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const{ return m_s3DeliveryConfiguration; } + inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; } + inline void SetS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = value; } + inline void SetS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = std::move(value); } + inline CreateDeliveryRequest& WithS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { SetS3DeliveryConfiguration(value); return *this;} + inline CreateDeliveryRequest& WithS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { SetS3DeliveryConfiguration(std::move(value)); return *this;} + ///@} + ///@{ /** *

    An optional list of key-value pairs to associate with the resource.

    @@ -92,6 +140,15 @@ namespace Model Aws::String m_deliveryDestinationArn; bool m_deliveryDestinationArnHasBeenSet = false; + Aws::Vector m_recordFields; + bool m_recordFieldsHasBeenSet = false; + + Aws::String m_fieldDelimiter; + bool m_fieldDelimiterHasBeenSet = false; + + S3DeliveryConfiguration m_s3DeliveryConfiguration; + bool m_s3DeliveryConfigurationHasBeenSet = false; + Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/Delivery.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/Delivery.h index a0fb9603f83..71bc981ac4a 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/Delivery.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/Delivery.h @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include #include @@ -115,6 +117,50 @@ namespace Model inline Delivery& WithDeliveryDestinationType(DeliveryDestinationType&& value) { SetDeliveryDestinationType(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    The record fields used in this delivery.

    + */ + inline const Aws::Vector& GetRecordFields() const{ return m_recordFields; } + inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; } + inline void SetRecordFields(const Aws::Vector& value) { m_recordFieldsHasBeenSet = true; m_recordFields = value; } + inline void SetRecordFields(Aws::Vector&& value) { m_recordFieldsHasBeenSet = true; m_recordFields = std::move(value); } + inline Delivery& WithRecordFields(const Aws::Vector& value) { SetRecordFields(value); return *this;} + inline Delivery& WithRecordFields(Aws::Vector&& value) { SetRecordFields(std::move(value)); return *this;} + inline Delivery& AddRecordFields(const Aws::String& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; } + inline Delivery& AddRecordFields(Aws::String&& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(std::move(value)); return *this; } + inline Delivery& AddRecordFields(const char* value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The field delimiter that is used between record fields when the final output + * format of a delivery is in Plain, W3C, or + * Raw format.

    + */ + inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; } + inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; } + inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; } + inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); } + inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); } + inline Delivery& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;} + inline Delivery& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;} + inline Delivery& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;} + ///@} + + ///@{ + /** + *

    This structure contains delivery configurations that apply only when the + * delivery destination resource is an S3 bucket.

    + */ + inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const{ return m_s3DeliveryConfiguration; } + inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; } + inline void SetS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = value; } + inline void SetS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = std::move(value); } + inline Delivery& WithS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { SetS3DeliveryConfiguration(value); return *this;} + inline Delivery& WithS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { SetS3DeliveryConfiguration(std::move(value)); return *this;} + ///@} + ///@{ /** *

    The tags that have been assigned to this delivery.

    @@ -150,6 +196,15 @@ namespace Model DeliveryDestinationType m_deliveryDestinationType; bool m_deliveryDestinationTypeHasBeenSet = false; + Aws::Vector m_recordFields; + bool m_recordFieldsHasBeenSet = false; + + Aws::String m_fieldDelimiter; + bool m_fieldDelimiterHasBeenSet = false; + + S3DeliveryConfiguration m_s3DeliveryConfiguration; + bool m_s3DeliveryConfigurationHasBeenSet = false; + Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/DescribeConfigurationTemplatesRequest.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/DescribeConfigurationTemplatesRequest.h new file mode 100644 index 00000000000..c3ac3aebe1e --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/DescribeConfigurationTemplatesRequest.h @@ -0,0 +1,148 @@ +/** + * 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 CloudWatchLogs +{ +namespace Model +{ + + /** + */ + class DescribeConfigurationTemplatesRequest : public CloudWatchLogsRequest + { + public: + AWS_CLOUDWATCHLOGS_API DescribeConfigurationTemplatesRequest(); + + // 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 "DescribeConfigurationTemplates"; } + + AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; + + AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    Use this parameter to filter the response to include only the configuration + * templates that apply to the Amazon Web Services service that you specify + * here.

    + */ + inline const Aws::String& GetService() const{ return m_service; } + inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } + inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; } + inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } + inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); } + inline DescribeConfigurationTemplatesRequest& WithService(const Aws::String& value) { SetService(value); return *this;} + inline DescribeConfigurationTemplatesRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;} + inline DescribeConfigurationTemplatesRequest& WithService(const char* value) { SetService(value); return *this;} + ///@} + + ///@{ + /** + *

    Use this parameter to filter the response to include only the configuration + * templates that apply to the log types that you specify here.

    + */ + inline const Aws::Vector& GetLogTypes() const{ return m_logTypes; } + inline bool LogTypesHasBeenSet() const { return m_logTypesHasBeenSet; } + inline void SetLogTypes(const Aws::Vector& value) { m_logTypesHasBeenSet = true; m_logTypes = value; } + inline void SetLogTypes(Aws::Vector&& value) { m_logTypesHasBeenSet = true; m_logTypes = std::move(value); } + inline DescribeConfigurationTemplatesRequest& WithLogTypes(const Aws::Vector& value) { SetLogTypes(value); return *this;} + inline DescribeConfigurationTemplatesRequest& WithLogTypes(Aws::Vector&& value) { SetLogTypes(std::move(value)); return *this;} + inline DescribeConfigurationTemplatesRequest& AddLogTypes(const Aws::String& value) { m_logTypesHasBeenSet = true; m_logTypes.push_back(value); return *this; } + inline DescribeConfigurationTemplatesRequest& AddLogTypes(Aws::String&& value) { m_logTypesHasBeenSet = true; m_logTypes.push_back(std::move(value)); return *this; } + inline DescribeConfigurationTemplatesRequest& AddLogTypes(const char* value) { m_logTypesHasBeenSet = true; m_logTypes.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    Use this parameter to filter the response to include only the configuration + * templates that apply to the resource types that you specify here.

    + */ + inline const Aws::Vector& GetResourceTypes() const{ return m_resourceTypes; } + inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; } + inline void SetResourceTypes(const Aws::Vector& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; } + inline void SetResourceTypes(Aws::Vector&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); } + inline DescribeConfigurationTemplatesRequest& WithResourceTypes(const Aws::Vector& value) { SetResourceTypes(value); return *this;} + inline DescribeConfigurationTemplatesRequest& WithResourceTypes(Aws::Vector&& value) { SetResourceTypes(std::move(value)); return *this;} + inline DescribeConfigurationTemplatesRequest& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; } + inline DescribeConfigurationTemplatesRequest& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; } + inline DescribeConfigurationTemplatesRequest& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    Use this parameter to filter the response to include only the configuration + * templates that apply to the delivery destination types that you specify + * here.

    + */ + inline const Aws::Vector& GetDeliveryDestinationTypes() const{ return m_deliveryDestinationTypes; } + inline bool DeliveryDestinationTypesHasBeenSet() const { return m_deliveryDestinationTypesHasBeenSet; } + inline void SetDeliveryDestinationTypes(const Aws::Vector& value) { m_deliveryDestinationTypesHasBeenSet = true; m_deliveryDestinationTypes = value; } + inline void SetDeliveryDestinationTypes(Aws::Vector&& value) { m_deliveryDestinationTypesHasBeenSet = true; m_deliveryDestinationTypes = std::move(value); } + inline DescribeConfigurationTemplatesRequest& WithDeliveryDestinationTypes(const Aws::Vector& value) { SetDeliveryDestinationTypes(value); return *this;} + inline DescribeConfigurationTemplatesRequest& WithDeliveryDestinationTypes(Aws::Vector&& value) { SetDeliveryDestinationTypes(std::move(value)); return *this;} + inline DescribeConfigurationTemplatesRequest& AddDeliveryDestinationTypes(const DeliveryDestinationType& value) { m_deliveryDestinationTypesHasBeenSet = true; m_deliveryDestinationTypes.push_back(value); return *this; } + inline DescribeConfigurationTemplatesRequest& AddDeliveryDestinationTypes(DeliveryDestinationType&& value) { m_deliveryDestinationTypesHasBeenSet = true; m_deliveryDestinationTypes.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline DescribeConfigurationTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline DescribeConfigurationTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline DescribeConfigurationTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

    Use this parameter to limit the number of configuration templates that are + * returned in the response.

    + */ + inline int GetLimit() const{ return m_limit; } + inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } + inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } + inline DescribeConfigurationTemplatesRequest& WithLimit(int value) { SetLimit(value); return *this;} + ///@} + private: + + Aws::String m_service; + bool m_serviceHasBeenSet = false; + + Aws::Vector m_logTypes; + bool m_logTypesHasBeenSet = false; + + Aws::Vector m_resourceTypes; + bool m_resourceTypesHasBeenSet = false; + + Aws::Vector m_deliveryDestinationTypes; + bool m_deliveryDestinationTypesHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_limit; + bool m_limitHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/DescribeConfigurationTemplatesResult.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/DescribeConfigurationTemplatesResult.h new file mode 100644 index 00000000000..f436e2b04bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/DescribeConfigurationTemplatesResult.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace CloudWatchLogs +{ +namespace Model +{ + class DescribeConfigurationTemplatesResult + { + public: + AWS_CLOUDWATCHLOGS_API DescribeConfigurationTemplatesResult(); + AWS_CLOUDWATCHLOGS_API DescribeConfigurationTemplatesResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDWATCHLOGS_API DescribeConfigurationTemplatesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    An array of objects, where each object describes one configuration template + * that matches the filters that you specified in the request.

    + */ + inline const Aws::Vector& GetConfigurationTemplates() const{ return m_configurationTemplates; } + inline void SetConfigurationTemplates(const Aws::Vector& value) { m_configurationTemplates = value; } + inline void SetConfigurationTemplates(Aws::Vector&& value) { m_configurationTemplates = std::move(value); } + inline DescribeConfigurationTemplatesResult& WithConfigurationTemplates(const Aws::Vector& value) { SetConfigurationTemplates(value); return *this;} + inline DescribeConfigurationTemplatesResult& WithConfigurationTemplates(Aws::Vector&& value) { SetConfigurationTemplates(std::move(value)); return *this;} + inline DescribeConfigurationTemplatesResult& AddConfigurationTemplates(const ConfigurationTemplate& value) { m_configurationTemplates.push_back(value); return *this; } + inline DescribeConfigurationTemplatesResult& AddConfigurationTemplates(ConfigurationTemplate&& value) { m_configurationTemplates.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline DescribeConfigurationTemplatesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline DescribeConfigurationTemplatesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline DescribeConfigurationTemplatesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DescribeConfigurationTemplatesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DescribeConfigurationTemplatesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DescribeConfigurationTemplatesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_configurationTemplates; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/Entity.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/Entity.h index 894452a9412..61f0d9159d7 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/Entity.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/Entity.h @@ -25,7 +25,7 @@ namespace Model { /** - *

    Reserved for future use.

    See Also:

    Reserved for internal use.

    See Also:

    AWS API * Reference

    */ @@ -40,7 +40,7 @@ namespace Model ///@{ /** - *

    Reserved for future use.

    + *

    Reserved for internal use.

    */ inline const Aws::Map& GetKeyAttributes() const{ return m_keyAttributes; } inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; } @@ -59,7 +59,7 @@ namespace Model ///@{ /** - *

    Reserved for future use.

    + *

    Reserved for internal use.

    */ inline const Aws::Map& GetAttributes() const{ return m_attributes; } inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/PutLogEventsRequest.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/PutLogEventsRequest.h index f6ab70309e5..66e8ce8cc6f 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/PutLogEventsRequest.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/PutLogEventsRequest.h @@ -101,7 +101,7 @@ namespace Model ///@{ /** - *

    Reserved for future use.

    + *

    Reserved for internal use.

    */ inline const Entity& GetEntity() const{ return m_entity; } inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/PutLogEventsResult.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/PutLogEventsResult.h index b498dd7ad87..e1dd312e0f8 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/PutLogEventsResult.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/PutLogEventsResult.h @@ -66,7 +66,7 @@ namespace Model ///@{ /** - *

    Reserved for future use.

    + *

    Reserved for internal use.

    */ inline const RejectedEntityInfo& GetRejectedEntityInfo() const{ return m_rejectedEntityInfo; } inline void SetRejectedEntityInfo(const RejectedEntityInfo& value) { m_rejectedEntityInfo = value; } diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/RecordField.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/RecordField.h new file mode 100644 index 00000000000..7afbe5688c0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/RecordField.h @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace CloudWatchLogs +{ +namespace Model +{ + + /** + *

    A structure that represents a valid record field header and whether it is + * mandatory.

    See Also:

    AWS + * API Reference

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

    The name to use when specifying this record field in a CreateDelivery + * or UpdateDeliveryConfiguration + * operation.

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

    If this is true, the record field must be present in the + * recordFields parameter provided to a CreateDelivery + * or UpdateDeliveryConfiguration + * operation.

    + */ + inline bool GetMandatory() const{ return m_mandatory; } + inline bool MandatoryHasBeenSet() const { return m_mandatoryHasBeenSet; } + inline void SetMandatory(bool value) { m_mandatoryHasBeenSet = true; m_mandatory = value; } + inline RecordField& WithMandatory(bool value) { SetMandatory(value); return *this;} + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + bool m_mandatory; + bool m_mandatoryHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/RejectedEntityInfo.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/RejectedEntityInfo.h index e034a2d78fd..41085202cd3 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/RejectedEntityInfo.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/RejectedEntityInfo.h @@ -24,7 +24,7 @@ namespace Model { /** - *

    Reserved for future use.

    See Also:

    Reserved for internal use.

    See Also:

    AWS * API Reference

    */ @@ -39,7 +39,7 @@ namespace Model ///@{ /** - *

    Reserved for future use.

    + *

    Reserved for internal use.

    */ inline const EntityRejectionErrorType& GetErrorType() const{ return m_errorType; } inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/S3DeliveryConfiguration.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/S3DeliveryConfiguration.h new file mode 100644 index 00000000000..f4713ca8415 --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/S3DeliveryConfiguration.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace CloudWatchLogs +{ +namespace Model +{ + + /** + *

    This structure contains delivery configurations that apply only when the + * delivery destination resource is an S3 bucket.

    See Also:

    AWS + * API Reference

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

    This string allows re-configuring the S3 object prefix to contain either + * static or variable sections. The valid variables to use in the suffix path will + * vary by each log source. See ConfigurationTemplate$allowedSuffixPathFields for + * more info on what values are supported in the suffix path for each log + * source.

    + */ + inline const Aws::String& GetSuffixPath() const{ return m_suffixPath; } + inline bool SuffixPathHasBeenSet() const { return m_suffixPathHasBeenSet; } + inline void SetSuffixPath(const Aws::String& value) { m_suffixPathHasBeenSet = true; m_suffixPath = value; } + inline void SetSuffixPath(Aws::String&& value) { m_suffixPathHasBeenSet = true; m_suffixPath = std::move(value); } + inline void SetSuffixPath(const char* value) { m_suffixPathHasBeenSet = true; m_suffixPath.assign(value); } + inline S3DeliveryConfiguration& WithSuffixPath(const Aws::String& value) { SetSuffixPath(value); return *this;} + inline S3DeliveryConfiguration& WithSuffixPath(Aws::String&& value) { SetSuffixPath(std::move(value)); return *this;} + inline S3DeliveryConfiguration& WithSuffixPath(const char* value) { SetSuffixPath(value); return *this;} + ///@} + + ///@{ + /** + *

    This parameter causes the S3 objects that contain delivered logs to use a + * prefix structure that allows for integration with Apache Hive.

    + */ + inline bool GetEnableHiveCompatiblePath() const{ return m_enableHiveCompatiblePath; } + inline bool EnableHiveCompatiblePathHasBeenSet() const { return m_enableHiveCompatiblePathHasBeenSet; } + inline void SetEnableHiveCompatiblePath(bool value) { m_enableHiveCompatiblePathHasBeenSet = true; m_enableHiveCompatiblePath = value; } + inline S3DeliveryConfiguration& WithEnableHiveCompatiblePath(bool value) { SetEnableHiveCompatiblePath(value); return *this;} + ///@} + private: + + Aws::String m_suffixPath; + bool m_suffixPathHasBeenSet = false; + + bool m_enableHiveCompatiblePath; + bool m_enableHiveCompatiblePathHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/UpdateDeliveryConfigurationRequest.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/UpdateDeliveryConfigurationRequest.h new file mode 100644 index 00000000000..a2da3de9a55 --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/UpdateDeliveryConfigurationRequest.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace CloudWatchLogs +{ +namespace Model +{ + + /** + */ + class UpdateDeliveryConfigurationRequest : public CloudWatchLogsRequest + { + public: + AWS_CLOUDWATCHLOGS_API UpdateDeliveryConfigurationRequest(); + + // 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 "UpdateDeliveryConfiguration"; } + + AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; + + AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The ID of the delivery to be updated by this request.

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

    The list of record fields to be delivered to the destination, in order. If + * the delivery’s log source has mandatory fields, they must be included in this + * list.

    + */ + inline const Aws::Vector& GetRecordFields() const{ return m_recordFields; } + inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; } + inline void SetRecordFields(const Aws::Vector& value) { m_recordFieldsHasBeenSet = true; m_recordFields = value; } + inline void SetRecordFields(Aws::Vector&& value) { m_recordFieldsHasBeenSet = true; m_recordFields = std::move(value); } + inline UpdateDeliveryConfigurationRequest& WithRecordFields(const Aws::Vector& value) { SetRecordFields(value); return *this;} + inline UpdateDeliveryConfigurationRequest& WithRecordFields(Aws::Vector&& value) { SetRecordFields(std::move(value)); return *this;} + inline UpdateDeliveryConfigurationRequest& AddRecordFields(const Aws::String& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; } + inline UpdateDeliveryConfigurationRequest& AddRecordFields(Aws::String&& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(std::move(value)); return *this; } + inline UpdateDeliveryConfigurationRequest& AddRecordFields(const char* value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The field delimiter to use between record fields when the final output format + * of a delivery is in Plain, W3C, or Raw + * format.

    + */ + inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; } + inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; } + inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; } + inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); } + inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); } + inline UpdateDeliveryConfigurationRequest& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;} + inline UpdateDeliveryConfigurationRequest& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;} + inline UpdateDeliveryConfigurationRequest& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;} + ///@} + + ///@{ + /** + *

    This structure contains parameters that are valid only when the delivery’s + * delivery destination is an S3 bucket.

    + */ + inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const{ return m_s3DeliveryConfiguration; } + inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; } + inline void SetS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = value; } + inline void SetS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = std::move(value); } + inline UpdateDeliveryConfigurationRequest& WithS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { SetS3DeliveryConfiguration(value); return *this;} + inline UpdateDeliveryConfigurationRequest& WithS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { SetS3DeliveryConfiguration(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::Vector m_recordFields; + bool m_recordFieldsHasBeenSet = false; + + Aws::String m_fieldDelimiter; + bool m_fieldDelimiterHasBeenSet = false; + + S3DeliveryConfiguration m_s3DeliveryConfiguration; + bool m_s3DeliveryConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/UpdateDeliveryConfigurationResult.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/UpdateDeliveryConfigurationResult.h new file mode 100644 index 00000000000..5c35e0c40ea --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/UpdateDeliveryConfigurationResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace CloudWatchLogs +{ +namespace Model +{ + class UpdateDeliveryConfigurationResult + { + public: + AWS_CLOUDWATCHLOGS_API UpdateDeliveryConfigurationResult(); + AWS_CLOUDWATCHLOGS_API UpdateDeliveryConfigurationResult(const Aws::AmazonWebServiceResult& result); + AWS_CLOUDWATCHLOGS_API UpdateDeliveryConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateDeliveryConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateDeliveryConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateDeliveryConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsClient.cpp b/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsClient.cpp index 9855fbb4463..3be8d20aefc 100644 --- a/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsClient.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsClient.cpp @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -92,6 +93,7 @@ #include #include #include +#include #include #include @@ -834,6 +836,32 @@ DescribeAccountPoliciesOutcome CloudWatchLogsClient::DescribeAccountPolicies(con {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeConfigurationTemplatesOutcome CloudWatchLogsClient::DescribeConfigurationTemplates(const DescribeConfigurationTemplatesRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeConfigurationTemplates); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeConfigurationTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeConfigurationTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeConfigurationTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeConfigurationTemplates", + {{ 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( + [&]()-> DescribeConfigurationTemplatesOutcome { + 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, DescribeConfigurationTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeConfigurationTemplatesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeDeliveriesOutcome CloudWatchLogsClient::DescribeDeliveries(const DescribeDeliveriesRequest& request) const { AWS_OPERATION_GUARD(DescribeDeliveries); @@ -2061,6 +2089,32 @@ UpdateAnomalyOutcome CloudWatchLogsClient::UpdateAnomaly(const UpdateAnomalyRequ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateDeliveryConfigurationOutcome CloudWatchLogsClient::UpdateDeliveryConfiguration(const UpdateDeliveryConfigurationRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateDeliveryConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDeliveryConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDeliveryConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateDeliveryConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDeliveryConfiguration", + {{ 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( + [&]()-> UpdateDeliveryConfigurationOutcome { + 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, UpdateDeliveryConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateDeliveryConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateLogAnomalyDetectorOutcome CloudWatchLogsClient::UpdateLogAnomalyDetector(const UpdateLogAnomalyDetectorRequest& request) const { AWS_OPERATION_GUARD(UpdateLogAnomalyDetector); diff --git a/generated/src/aws-cpp-sdk-logs/source/model/ConfigurationTemplate.cpp b/generated/src/aws-cpp-sdk-logs/source/model/ConfigurationTemplate.cpp new file mode 100644 index 00000000000..87a3d8108ea --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/source/model/ConfigurationTemplate.cpp @@ -0,0 +1,217 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudWatchLogs +{ +namespace Model +{ + +ConfigurationTemplate::ConfigurationTemplate() : + m_serviceHasBeenSet(false), + m_logTypeHasBeenSet(false), + m_resourceTypeHasBeenSet(false), + m_deliveryDestinationType(DeliveryDestinationType::NOT_SET), + m_deliveryDestinationTypeHasBeenSet(false), + m_defaultDeliveryConfigValuesHasBeenSet(false), + m_allowedFieldsHasBeenSet(false), + m_allowedOutputFormatsHasBeenSet(false), + m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet(false), + m_allowedFieldDelimitersHasBeenSet(false), + m_allowedSuffixPathFieldsHasBeenSet(false) +{ +} + +ConfigurationTemplate::ConfigurationTemplate(JsonView jsonValue) + : ConfigurationTemplate() +{ + *this = jsonValue; +} + +ConfigurationTemplate& ConfigurationTemplate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("service")) + { + m_service = jsonValue.GetString("service"); + + m_serviceHasBeenSet = true; + } + + if(jsonValue.ValueExists("logType")) + { + m_logType = jsonValue.GetString("logType"); + + m_logTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceType")) + { + m_resourceType = jsonValue.GetString("resourceType"); + + m_resourceTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("deliveryDestinationType")) + { + m_deliveryDestinationType = DeliveryDestinationTypeMapper::GetDeliveryDestinationTypeForName(jsonValue.GetString("deliveryDestinationType")); + + m_deliveryDestinationTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("defaultDeliveryConfigValues")) + { + m_defaultDeliveryConfigValues = jsonValue.GetObject("defaultDeliveryConfigValues"); + + m_defaultDeliveryConfigValuesHasBeenSet = true; + } + + if(jsonValue.ValueExists("allowedFields")) + { + Aws::Utils::Array allowedFieldsJsonList = jsonValue.GetArray("allowedFields"); + for(unsigned allowedFieldsIndex = 0; allowedFieldsIndex < allowedFieldsJsonList.GetLength(); ++allowedFieldsIndex) + { + m_allowedFields.push_back(allowedFieldsJsonList[allowedFieldsIndex].AsObject()); + } + m_allowedFieldsHasBeenSet = true; + } + + if(jsonValue.ValueExists("allowedOutputFormats")) + { + Aws::Utils::Array allowedOutputFormatsJsonList = jsonValue.GetArray("allowedOutputFormats"); + for(unsigned allowedOutputFormatsIndex = 0; allowedOutputFormatsIndex < allowedOutputFormatsJsonList.GetLength(); ++allowedOutputFormatsIndex) + { + m_allowedOutputFormats.push_back(OutputFormatMapper::GetOutputFormatForName(allowedOutputFormatsJsonList[allowedOutputFormatsIndex].AsString())); + } + m_allowedOutputFormatsHasBeenSet = true; + } + + if(jsonValue.ValueExists("allowedActionForAllowVendedLogsDeliveryForResource")) + { + m_allowedActionForAllowVendedLogsDeliveryForResource = jsonValue.GetString("allowedActionForAllowVendedLogsDeliveryForResource"); + + m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true; + } + + if(jsonValue.ValueExists("allowedFieldDelimiters")) + { + Aws::Utils::Array allowedFieldDelimitersJsonList = jsonValue.GetArray("allowedFieldDelimiters"); + for(unsigned allowedFieldDelimitersIndex = 0; allowedFieldDelimitersIndex < allowedFieldDelimitersJsonList.GetLength(); ++allowedFieldDelimitersIndex) + { + m_allowedFieldDelimiters.push_back(allowedFieldDelimitersJsonList[allowedFieldDelimitersIndex].AsString()); + } + m_allowedFieldDelimitersHasBeenSet = true; + } + + if(jsonValue.ValueExists("allowedSuffixPathFields")) + { + Aws::Utils::Array allowedSuffixPathFieldsJsonList = jsonValue.GetArray("allowedSuffixPathFields"); + for(unsigned allowedSuffixPathFieldsIndex = 0; allowedSuffixPathFieldsIndex < allowedSuffixPathFieldsJsonList.GetLength(); ++allowedSuffixPathFieldsIndex) + { + m_allowedSuffixPathFields.push_back(allowedSuffixPathFieldsJsonList[allowedSuffixPathFieldsIndex].AsString()); + } + m_allowedSuffixPathFieldsHasBeenSet = true; + } + + return *this; +} + +JsonValue ConfigurationTemplate::Jsonize() const +{ + JsonValue payload; + + if(m_serviceHasBeenSet) + { + payload.WithString("service", m_service); + + } + + if(m_logTypeHasBeenSet) + { + payload.WithString("logType", m_logType); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("resourceType", m_resourceType); + + } + + if(m_deliveryDestinationTypeHasBeenSet) + { + payload.WithString("deliveryDestinationType", DeliveryDestinationTypeMapper::GetNameForDeliveryDestinationType(m_deliveryDestinationType)); + } + + if(m_defaultDeliveryConfigValuesHasBeenSet) + { + payload.WithObject("defaultDeliveryConfigValues", m_defaultDeliveryConfigValues.Jsonize()); + + } + + if(m_allowedFieldsHasBeenSet) + { + Aws::Utils::Array allowedFieldsJsonList(m_allowedFields.size()); + for(unsigned allowedFieldsIndex = 0; allowedFieldsIndex < allowedFieldsJsonList.GetLength(); ++allowedFieldsIndex) + { + allowedFieldsJsonList[allowedFieldsIndex].AsObject(m_allowedFields[allowedFieldsIndex].Jsonize()); + } + payload.WithArray("allowedFields", std::move(allowedFieldsJsonList)); + + } + + if(m_allowedOutputFormatsHasBeenSet) + { + Aws::Utils::Array allowedOutputFormatsJsonList(m_allowedOutputFormats.size()); + for(unsigned allowedOutputFormatsIndex = 0; allowedOutputFormatsIndex < allowedOutputFormatsJsonList.GetLength(); ++allowedOutputFormatsIndex) + { + allowedOutputFormatsJsonList[allowedOutputFormatsIndex].AsString(OutputFormatMapper::GetNameForOutputFormat(m_allowedOutputFormats[allowedOutputFormatsIndex])); + } + payload.WithArray("allowedOutputFormats", std::move(allowedOutputFormatsJsonList)); + + } + + if(m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet) + { + payload.WithString("allowedActionForAllowVendedLogsDeliveryForResource", m_allowedActionForAllowVendedLogsDeliveryForResource); + + } + + if(m_allowedFieldDelimitersHasBeenSet) + { + Aws::Utils::Array allowedFieldDelimitersJsonList(m_allowedFieldDelimiters.size()); + for(unsigned allowedFieldDelimitersIndex = 0; allowedFieldDelimitersIndex < allowedFieldDelimitersJsonList.GetLength(); ++allowedFieldDelimitersIndex) + { + allowedFieldDelimitersJsonList[allowedFieldDelimitersIndex].AsString(m_allowedFieldDelimiters[allowedFieldDelimitersIndex]); + } + payload.WithArray("allowedFieldDelimiters", std::move(allowedFieldDelimitersJsonList)); + + } + + if(m_allowedSuffixPathFieldsHasBeenSet) + { + Aws::Utils::Array allowedSuffixPathFieldsJsonList(m_allowedSuffixPathFields.size()); + for(unsigned allowedSuffixPathFieldsIndex = 0; allowedSuffixPathFieldsIndex < allowedSuffixPathFieldsJsonList.GetLength(); ++allowedSuffixPathFieldsIndex) + { + allowedSuffixPathFieldsJsonList[allowedSuffixPathFieldsIndex].AsString(m_allowedSuffixPathFields[allowedSuffixPathFieldsIndex]); + } + payload.WithArray("allowedSuffixPathFields", std::move(allowedSuffixPathFieldsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/source/model/ConfigurationTemplateDeliveryConfigValues.cpp b/generated/src/aws-cpp-sdk-logs/source/model/ConfigurationTemplateDeliveryConfigValues.cpp new file mode 100644 index 00000000000..c82f3ea6fa8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/source/model/ConfigurationTemplateDeliveryConfigValues.cpp @@ -0,0 +1,95 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudWatchLogs +{ +namespace Model +{ + +ConfigurationTemplateDeliveryConfigValues::ConfigurationTemplateDeliveryConfigValues() : + m_recordFieldsHasBeenSet(false), + m_fieldDelimiterHasBeenSet(false), + m_s3DeliveryConfigurationHasBeenSet(false) +{ +} + +ConfigurationTemplateDeliveryConfigValues::ConfigurationTemplateDeliveryConfigValues(JsonView jsonValue) + : ConfigurationTemplateDeliveryConfigValues() +{ + *this = jsonValue; +} + +ConfigurationTemplateDeliveryConfigValues& ConfigurationTemplateDeliveryConfigValues::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("recordFields")) + { + Aws::Utils::Array recordFieldsJsonList = jsonValue.GetArray("recordFields"); + for(unsigned recordFieldsIndex = 0; recordFieldsIndex < recordFieldsJsonList.GetLength(); ++recordFieldsIndex) + { + m_recordFields.push_back(recordFieldsJsonList[recordFieldsIndex].AsString()); + } + m_recordFieldsHasBeenSet = true; + } + + if(jsonValue.ValueExists("fieldDelimiter")) + { + m_fieldDelimiter = jsonValue.GetString("fieldDelimiter"); + + m_fieldDelimiterHasBeenSet = true; + } + + if(jsonValue.ValueExists("s3DeliveryConfiguration")) + { + m_s3DeliveryConfiguration = jsonValue.GetObject("s3DeliveryConfiguration"); + + m_s3DeliveryConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue ConfigurationTemplateDeliveryConfigValues::Jsonize() const +{ + JsonValue payload; + + if(m_recordFieldsHasBeenSet) + { + Aws::Utils::Array recordFieldsJsonList(m_recordFields.size()); + for(unsigned recordFieldsIndex = 0; recordFieldsIndex < recordFieldsJsonList.GetLength(); ++recordFieldsIndex) + { + recordFieldsJsonList[recordFieldsIndex].AsString(m_recordFields[recordFieldsIndex]); + } + payload.WithArray("recordFields", std::move(recordFieldsJsonList)); + + } + + if(m_fieldDelimiterHasBeenSet) + { + payload.WithString("fieldDelimiter", m_fieldDelimiter); + + } + + if(m_s3DeliveryConfigurationHasBeenSet) + { + payload.WithObject("s3DeliveryConfiguration", m_s3DeliveryConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/source/model/CreateDeliveryRequest.cpp b/generated/src/aws-cpp-sdk-logs/source/model/CreateDeliveryRequest.cpp index 78b6732b83b..a56ce5e5d3b 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/CreateDeliveryRequest.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/CreateDeliveryRequest.cpp @@ -15,6 +15,9 @@ using namespace Aws::Utils; CreateDeliveryRequest::CreateDeliveryRequest() : m_deliverySourceNameHasBeenSet(false), m_deliveryDestinationArnHasBeenSet(false), + m_recordFieldsHasBeenSet(false), + m_fieldDelimiterHasBeenSet(false), + m_s3DeliveryConfigurationHasBeenSet(false), m_tagsHasBeenSet(false) { } @@ -35,6 +38,29 @@ Aws::String CreateDeliveryRequest::SerializePayload() const } + if(m_recordFieldsHasBeenSet) + { + Aws::Utils::Array recordFieldsJsonList(m_recordFields.size()); + for(unsigned recordFieldsIndex = 0; recordFieldsIndex < recordFieldsJsonList.GetLength(); ++recordFieldsIndex) + { + recordFieldsJsonList[recordFieldsIndex].AsString(m_recordFields[recordFieldsIndex]); + } + payload.WithArray("recordFields", std::move(recordFieldsJsonList)); + + } + + if(m_fieldDelimiterHasBeenSet) + { + payload.WithString("fieldDelimiter", m_fieldDelimiter); + + } + + if(m_s3DeliveryConfigurationHasBeenSet) + { + payload.WithObject("s3DeliveryConfiguration", m_s3DeliveryConfiguration.Jsonize()); + + } + if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/Delivery.cpp b/generated/src/aws-cpp-sdk-logs/source/model/Delivery.cpp index a722702f9fe..2f3785d92cb 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/Delivery.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/Delivery.cpp @@ -25,6 +25,9 @@ Delivery::Delivery() : m_deliveryDestinationArnHasBeenSet(false), m_deliveryDestinationType(DeliveryDestinationType::NOT_SET), m_deliveryDestinationTypeHasBeenSet(false), + m_recordFieldsHasBeenSet(false), + m_fieldDelimiterHasBeenSet(false), + m_s3DeliveryConfigurationHasBeenSet(false), m_tagsHasBeenSet(false) { } @@ -72,6 +75,30 @@ Delivery& Delivery::operator =(JsonView jsonValue) m_deliveryDestinationTypeHasBeenSet = true; } + if(jsonValue.ValueExists("recordFields")) + { + Aws::Utils::Array recordFieldsJsonList = jsonValue.GetArray("recordFields"); + for(unsigned recordFieldsIndex = 0; recordFieldsIndex < recordFieldsJsonList.GetLength(); ++recordFieldsIndex) + { + m_recordFields.push_back(recordFieldsJsonList[recordFieldsIndex].AsString()); + } + m_recordFieldsHasBeenSet = true; + } + + if(jsonValue.ValueExists("fieldDelimiter")) + { + m_fieldDelimiter = jsonValue.GetString("fieldDelimiter"); + + m_fieldDelimiterHasBeenSet = true; + } + + if(jsonValue.ValueExists("s3DeliveryConfiguration")) + { + m_s3DeliveryConfiguration = jsonValue.GetObject("s3DeliveryConfiguration"); + + m_s3DeliveryConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("tags")) { Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); @@ -118,6 +145,29 @@ JsonValue Delivery::Jsonize() const payload.WithString("deliveryDestinationType", DeliveryDestinationTypeMapper::GetNameForDeliveryDestinationType(m_deliveryDestinationType)); } + if(m_recordFieldsHasBeenSet) + { + Aws::Utils::Array recordFieldsJsonList(m_recordFields.size()); + for(unsigned recordFieldsIndex = 0; recordFieldsIndex < recordFieldsJsonList.GetLength(); ++recordFieldsIndex) + { + recordFieldsJsonList[recordFieldsIndex].AsString(m_recordFields[recordFieldsIndex]); + } + payload.WithArray("recordFields", std::move(recordFieldsJsonList)); + + } + + if(m_fieldDelimiterHasBeenSet) + { + payload.WithString("fieldDelimiter", m_fieldDelimiter); + + } + + if(m_s3DeliveryConfigurationHasBeenSet) + { + payload.WithObject("s3DeliveryConfiguration", m_s3DeliveryConfiguration.Jsonize()); + + } + if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/DescribeConfigurationTemplatesRequest.cpp b/generated/src/aws-cpp-sdk-logs/source/model/DescribeConfigurationTemplatesRequest.cpp new file mode 100644 index 00000000000..78bc5f82724 --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/source/model/DescribeConfigurationTemplatesRequest.cpp @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::CloudWatchLogs::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeConfigurationTemplatesRequest::DescribeConfigurationTemplatesRequest() : + m_serviceHasBeenSet(false), + m_logTypesHasBeenSet(false), + m_resourceTypesHasBeenSet(false), + m_deliveryDestinationTypesHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_limit(0), + m_limitHasBeenSet(false) +{ +} + +Aws::String DescribeConfigurationTemplatesRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_serviceHasBeenSet) + { + payload.WithString("service", m_service); + + } + + if(m_logTypesHasBeenSet) + { + Aws::Utils::Array logTypesJsonList(m_logTypes.size()); + for(unsigned logTypesIndex = 0; logTypesIndex < logTypesJsonList.GetLength(); ++logTypesIndex) + { + logTypesJsonList[logTypesIndex].AsString(m_logTypes[logTypesIndex]); + } + payload.WithArray("logTypes", std::move(logTypesJsonList)); + + } + + if(m_resourceTypesHasBeenSet) + { + Aws::Utils::Array resourceTypesJsonList(m_resourceTypes.size()); + for(unsigned resourceTypesIndex = 0; resourceTypesIndex < resourceTypesJsonList.GetLength(); ++resourceTypesIndex) + { + resourceTypesJsonList[resourceTypesIndex].AsString(m_resourceTypes[resourceTypesIndex]); + } + payload.WithArray("resourceTypes", std::move(resourceTypesJsonList)); + + } + + if(m_deliveryDestinationTypesHasBeenSet) + { + Aws::Utils::Array deliveryDestinationTypesJsonList(m_deliveryDestinationTypes.size()); + for(unsigned deliveryDestinationTypesIndex = 0; deliveryDestinationTypesIndex < deliveryDestinationTypesJsonList.GetLength(); ++deliveryDestinationTypesIndex) + { + deliveryDestinationTypesJsonList[deliveryDestinationTypesIndex].AsString(DeliveryDestinationTypeMapper::GetNameForDeliveryDestinationType(m_deliveryDestinationTypes[deliveryDestinationTypesIndex])); + } + payload.WithArray("deliveryDestinationTypes", std::move(deliveryDestinationTypesJsonList)); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("nextToken", m_nextToken); + + } + + if(m_limitHasBeenSet) + { + payload.WithInteger("limit", m_limit); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DescribeConfigurationTemplatesRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Logs_20140328.DescribeConfigurationTemplates")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-logs/source/model/DescribeConfigurationTemplatesResult.cpp b/generated/src/aws-cpp-sdk-logs/source/model/DescribeConfigurationTemplatesResult.cpp new file mode 100644 index 00000000000..248679765ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/source/model/DescribeConfigurationTemplatesResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudWatchLogs::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeConfigurationTemplatesResult::DescribeConfigurationTemplatesResult() +{ +} + +DescribeConfigurationTemplatesResult::DescribeConfigurationTemplatesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DescribeConfigurationTemplatesResult& DescribeConfigurationTemplatesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("configurationTemplates")) + { + Aws::Utils::Array configurationTemplatesJsonList = jsonValue.GetArray("configurationTemplates"); + for(unsigned configurationTemplatesIndex = 0; configurationTemplatesIndex < configurationTemplatesJsonList.GetLength(); ++configurationTemplatesIndex) + { + m_configurationTemplates.push_back(configurationTemplatesJsonList[configurationTemplatesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-logs/source/model/RecordField.cpp b/generated/src/aws-cpp-sdk-logs/source/model/RecordField.cpp new file mode 100644 index 00000000000..f14b77114ef --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/source/model/RecordField.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudWatchLogs +{ +namespace Model +{ + +RecordField::RecordField() : + m_nameHasBeenSet(false), + m_mandatory(false), + m_mandatoryHasBeenSet(false) +{ +} + +RecordField::RecordField(JsonView jsonValue) + : RecordField() +{ + *this = jsonValue; +} + +RecordField& RecordField::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("mandatory")) + { + m_mandatory = jsonValue.GetBool("mandatory"); + + m_mandatoryHasBeenSet = true; + } + + return *this; +} + +JsonValue RecordField::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_mandatoryHasBeenSet) + { + payload.WithBool("mandatory", m_mandatory); + + } + + return payload; +} + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/source/model/S3DeliveryConfiguration.cpp b/generated/src/aws-cpp-sdk-logs/source/model/S3DeliveryConfiguration.cpp new file mode 100644 index 00000000000..c1e690af94c --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/source/model/S3DeliveryConfiguration.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudWatchLogs +{ +namespace Model +{ + +S3DeliveryConfiguration::S3DeliveryConfiguration() : + m_suffixPathHasBeenSet(false), + m_enableHiveCompatiblePath(false), + m_enableHiveCompatiblePathHasBeenSet(false) +{ +} + +S3DeliveryConfiguration::S3DeliveryConfiguration(JsonView jsonValue) + : S3DeliveryConfiguration() +{ + *this = jsonValue; +} + +S3DeliveryConfiguration& S3DeliveryConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("suffixPath")) + { + m_suffixPath = jsonValue.GetString("suffixPath"); + + m_suffixPathHasBeenSet = true; + } + + if(jsonValue.ValueExists("enableHiveCompatiblePath")) + { + m_enableHiveCompatiblePath = jsonValue.GetBool("enableHiveCompatiblePath"); + + m_enableHiveCompatiblePathHasBeenSet = true; + } + + return *this; +} + +JsonValue S3DeliveryConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_suffixPathHasBeenSet) + { + payload.WithString("suffixPath", m_suffixPath); + + } + + if(m_enableHiveCompatiblePathHasBeenSet) + { + payload.WithBool("enableHiveCompatiblePath", m_enableHiveCompatiblePath); + + } + + return payload; +} + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/source/model/UpdateDeliveryConfigurationRequest.cpp b/generated/src/aws-cpp-sdk-logs/source/model/UpdateDeliveryConfigurationRequest.cpp new file mode 100644 index 00000000000..64f4ed48674 --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/source/model/UpdateDeliveryConfigurationRequest.cpp @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::CloudWatchLogs::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateDeliveryConfigurationRequest::UpdateDeliveryConfigurationRequest() : + m_idHasBeenSet(false), + m_recordFieldsHasBeenSet(false), + m_fieldDelimiterHasBeenSet(false), + m_s3DeliveryConfigurationHasBeenSet(false) +{ +} + +Aws::String UpdateDeliveryConfigurationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_recordFieldsHasBeenSet) + { + Aws::Utils::Array recordFieldsJsonList(m_recordFields.size()); + for(unsigned recordFieldsIndex = 0; recordFieldsIndex < recordFieldsJsonList.GetLength(); ++recordFieldsIndex) + { + recordFieldsJsonList[recordFieldsIndex].AsString(m_recordFields[recordFieldsIndex]); + } + payload.WithArray("recordFields", std::move(recordFieldsJsonList)); + + } + + if(m_fieldDelimiterHasBeenSet) + { + payload.WithString("fieldDelimiter", m_fieldDelimiter); + + } + + if(m_s3DeliveryConfigurationHasBeenSet) + { + payload.WithObject("s3DeliveryConfiguration", m_s3DeliveryConfiguration.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection UpdateDeliveryConfigurationRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Logs_20140328.UpdateDeliveryConfiguration")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-logs/source/model/UpdateDeliveryConfigurationResult.cpp b/generated/src/aws-cpp-sdk-logs/source/model/UpdateDeliveryConfigurationResult.cpp new file mode 100644 index 00000000000..25963aba0a7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/source/model/UpdateDeliveryConfigurationResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::CloudWatchLogs::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateDeliveryConfigurationResult::UpdateDeliveryConfigurationResult() +{ +} + +UpdateDeliveryConfigurationResult::UpdateDeliveryConfigurationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateDeliveryConfigurationResult& UpdateDeliveryConfigurationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/S3ControlClient.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/S3ControlClient.h index 93e757b8c05..29196b0ce26 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/S3ControlClient.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/S3ControlClient.h @@ -1414,7 +1414,9 @@ namespace S3Control *

    Retrieves the S3 Access Grants instance for a Region in your account.

    *
    Permissions

    You must have the * s3:GetAccessGrantsInstance permission to use this operation.

    - *

    See Also:

    GetAccessGrantsInstance is not supported for + * cross-account access. You can only call the API from the account that owns the + * S3 Access Grants instance.

    See Also:

    AWS * API Reference

    */ @@ -2622,6 +2624,35 @@ namespace S3Control return SubmitAsync(&S3ControlClient::ListAccessPointsForObjectLambda, request, handler, context); } + /** + *

    Returns a list of the access grants that were given to the caller using S3 + * Access Grants and that allow the caller to access the S3 data of the Amazon Web + * Services account specified in the request.

    Permissions
    + *

    You must have the s3:ListCallerAccessGrants permission to use + * this operation.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListCallerAccessGrantsOutcome ListCallerAccessGrants(const Model::ListCallerAccessGrantsRequest& request) const; + + /** + * A Callable wrapper for ListCallerAccessGrants that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListCallerAccessGrantsOutcomeCallable ListCallerAccessGrantsCallable(const ListCallerAccessGrantsRequestT& request) const + { + return SubmitCallable(&S3ControlClient::ListCallerAccessGrants, request); + } + + /** + * An Async wrapper for ListCallerAccessGrants that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListCallerAccessGrantsAsync(const ListCallerAccessGrantsRequestT& request, const ListCallerAccessGrantsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&S3ControlClient::ListCallerAccessGrants, request, handler, context); + } + /** *

    Lists current S3 Batch Operations jobs as well as the jobs that have ended * within the last 90 days for the Amazon Web Services account making the request. diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/S3ControlServiceClientModel.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/S3ControlServiceClientModel.h index 2e500c3e335..7c3340eeee4 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/S3ControlServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/S3ControlServiceClientModel.h @@ -64,6 +64,7 @@ #include #include #include +#include #include #include #include @@ -185,6 +186,7 @@ namespace Aws class ListAccessGrantsLocationsRequest; class ListAccessPointsRequest; class ListAccessPointsForObjectLambdaRequest; + class ListCallerAccessGrantsRequest; class ListJobsRequest; class ListMultiRegionAccessPointsRequest; class ListRegionalBucketsRequest; @@ -280,6 +282,7 @@ namespace Aws typedef Aws::Utils::Outcome ListAccessGrantsLocationsOutcome; typedef Aws::Utils::Outcome ListAccessPointsOutcome; typedef Aws::Utils::Outcome ListAccessPointsForObjectLambdaOutcome; + typedef Aws::Utils::Outcome ListCallerAccessGrantsOutcome; typedef Aws::Utils::Outcome ListJobsOutcome; typedef Aws::Utils::Outcome ListMultiRegionAccessPointsOutcome; typedef Aws::Utils::Outcome ListRegionalBucketsOutcome; @@ -375,6 +378,7 @@ namespace Aws typedef std::future ListAccessGrantsLocationsOutcomeCallable; typedef std::future ListAccessPointsOutcomeCallable; typedef std::future ListAccessPointsForObjectLambdaOutcomeCallable; + typedef std::future ListCallerAccessGrantsOutcomeCallable; typedef std::future ListJobsOutcomeCallable; typedef std::future ListMultiRegionAccessPointsOutcomeCallable; typedef std::future ListRegionalBucketsOutcomeCallable; @@ -473,6 +477,7 @@ namespace Aws typedef std::function&) > ListAccessGrantsLocationsResponseReceivedHandler; typedef std::function&) > ListAccessPointsResponseReceivedHandler; typedef std::function&) > ListAccessPointsForObjectLambdaResponseReceivedHandler; + typedef std::function&) > ListCallerAccessGrantsResponseReceivedHandler; typedef std::function&) > ListJobsResponseReceivedHandler; typedef std::function&) > ListMultiRegionAccessPointsResponseReceivedHandler; typedef std::function&) > ListRegionalBucketsResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AccessPoint.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AccessPoint.h index b9daff69ad7..f280866f17c 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AccessPoint.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AccessPoint.h @@ -74,7 +74,8 @@ namespace Model /** *

    The virtual private cloud (VPC) configuration for this access point, if one * exists.

    This element is empty if this access point is an Amazon S3 - * on Outposts access point that is used by other Amazon Web Services.

    + * on Outposts access point that is used by other Amazon Web Servicesservices.

    + * */ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AssociateAccessGrantsIdentityCenterRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AssociateAccessGrantsIdentityCenterRequest.h index 2b4d488c80a..ec5ae291353 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AssociateAccessGrantsIdentityCenterRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/AssociateAccessGrantsIdentityCenterRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantRequest.h index 46c729803b2..3c0c8e65795 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantRequest.h @@ -48,7 +48,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsInstanceRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsInstanceRequest.h index 11053bcf7ec..34ccef55ece 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsInstanceRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsInstanceRequest.h @@ -44,7 +44,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsInstanceResult.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsInstanceResult.h index 32229ba9af1..0ef9d3e9df3 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsInstanceResult.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsInstanceResult.h @@ -60,7 +60,13 @@ namespace Model ///@{ /** - *

    The Amazon Resource Name (ARN) of the S3 Access Grants instance.

    + *

    The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center + * instance that you are associating with your S3 Access Grants instance. An IAM + * Identity Center instance is your corporate identity directory that you added to + * the IAM Identity Center. You can use the ListInstances + * API operation to retrieve a list of your Identity Center instances and their + * ARNs.

    */ inline const Aws::String& GetAccessGrantsInstanceArn() const{ return m_accessGrantsInstanceArn; } inline void SetAccessGrantsInstanceArn(const Aws::String& value) { m_accessGrantsInstanceArn = value; } @@ -71,21 +77,40 @@ namespace Model inline CreateAccessGrantsInstanceResult& WithAccessGrantsInstanceArn(const char* value) { SetAccessGrantsInstanceArn(value); return *this;} ///@} + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center + * instance that you are associating with your S3 Access Grants instance. An IAM + * Identity Center instance is your corporate identity directory that you added to + * the IAM Identity Center. You can use the ListInstances + * API operation to retrieve a list of your Identity Center instances and their + * ARNs.

    + */ + inline const Aws::String& GetIdentityCenterInstanceArn() const{ return m_identityCenterInstanceArn; } + inline void SetIdentityCenterInstanceArn(const Aws::String& value) { m_identityCenterInstanceArn = value; } + inline void SetIdentityCenterInstanceArn(Aws::String&& value) { m_identityCenterInstanceArn = std::move(value); } + inline void SetIdentityCenterInstanceArn(const char* value) { m_identityCenterInstanceArn.assign(value); } + inline CreateAccessGrantsInstanceResult& WithIdentityCenterInstanceArn(const Aws::String& value) { SetIdentityCenterInstanceArn(value); return *this;} + inline CreateAccessGrantsInstanceResult& WithIdentityCenterInstanceArn(Aws::String&& value) { SetIdentityCenterInstanceArn(std::move(value)); return *this;} + inline CreateAccessGrantsInstanceResult& WithIdentityCenterInstanceArn(const char* value) { SetIdentityCenterInstanceArn(value); return *this;} + ///@} + ///@{ /** *

    If you associated your S3 Access Grants instance with an Amazon Web Services * IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) * of the IAM Identity Center instance application; a subresource of the original - * Identity Center instance passed in the request. S3 Access Grants creates this - * Identity Center application for this specific S3 Access Grants instance.

    + * Identity Center instance. S3 Access Grants creates this Identity Center + * application for the specific S3 Access Grants instance.

    */ - inline const Aws::String& GetIdentityCenterArn() const{ return m_identityCenterArn; } - inline void SetIdentityCenterArn(const Aws::String& value) { m_identityCenterArn = value; } - inline void SetIdentityCenterArn(Aws::String&& value) { m_identityCenterArn = std::move(value); } - inline void SetIdentityCenterArn(const char* value) { m_identityCenterArn.assign(value); } - inline CreateAccessGrantsInstanceResult& WithIdentityCenterArn(const Aws::String& value) { SetIdentityCenterArn(value); return *this;} - inline CreateAccessGrantsInstanceResult& WithIdentityCenterArn(Aws::String&& value) { SetIdentityCenterArn(std::move(value)); return *this;} - inline CreateAccessGrantsInstanceResult& WithIdentityCenterArn(const char* value) { SetIdentityCenterArn(value); return *this;} + inline const Aws::String& GetIdentityCenterApplicationArn() const{ return m_identityCenterApplicationArn; } + inline void SetIdentityCenterApplicationArn(const Aws::String& value) { m_identityCenterApplicationArn = value; } + inline void SetIdentityCenterApplicationArn(Aws::String&& value) { m_identityCenterApplicationArn = std::move(value); } + inline void SetIdentityCenterApplicationArn(const char* value) { m_identityCenterApplicationArn.assign(value); } + inline CreateAccessGrantsInstanceResult& WithIdentityCenterApplicationArn(const Aws::String& value) { SetIdentityCenterApplicationArn(value); return *this;} + inline CreateAccessGrantsInstanceResult& WithIdentityCenterApplicationArn(Aws::String&& value) { SetIdentityCenterApplicationArn(std::move(value)); return *this;} + inline CreateAccessGrantsInstanceResult& WithIdentityCenterApplicationArn(const char* value) { SetIdentityCenterApplicationArn(value); return *this;} ///@} ///@{ @@ -106,7 +131,9 @@ namespace Model Aws::String m_accessGrantsInstanceArn; - Aws::String m_identityCenterArn; + Aws::String m_identityCenterInstanceArn; + + Aws::String m_identityCenterApplicationArn; Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsLocationRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsLocationRequest.h index 6c06ae83520..4f9cf00c6a6 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsLocationRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/CreateAccessGrantsLocationRequest.h @@ -44,7 +44,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantRequest.h index 6fa84c793ff..e72bd90e725 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsInstanceRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsInstanceRequest.h index 61173e5324d..6f423c4d3df 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsInstanceRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsInstanceRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsInstanceResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsInstanceResourcePolicyRequest.h index a404ad56516..f2be98e15da 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsInstanceResourcePolicyRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsInstanceResourcePolicyRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsLocationRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsLocationRequest.h index a61078848d7..fc12243f45f 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsLocationRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DeleteAccessGrantsLocationRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DissociateAccessGrantsIdentityCenterRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DissociateAccessGrantsIdentityCenterRequest.h index 7b840aa3e41..d320800cb3b 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DissociateAccessGrantsIdentityCenterRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/DissociateAccessGrantsIdentityCenterRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/EncryptionConfiguration.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/EncryptionConfiguration.h index 37617045e90..abba553633d 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/EncryptionConfiguration.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/EncryptionConfiguration.h @@ -24,7 +24,11 @@ namespace Model /** *

    Specifies encryption-related information for an Amazon S3 bucket that is a - * destination for replicated objects.

    This is not supported by + * destination for replicated objects. If you're specifying a customer managed KMS + * key, we recommend using a fully qualified KMS key ARN. If you use a KMS key + * alias instead, then KMS resolves the key within the requester’s account. This + * behavior can result in data that's encrypted with a KMS key that belongs to the + * requester, and not the bucket owner.

    This is not supported by * Amazon S3 on Outposts buckets.

    See Also:

    AWS * API Reference

    diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantRequest.h index 05c84c031fc..baa04d81b5f 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceRequest.h index 7aab9532afb..09e6bb2262d 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceResourcePolicyRequest.h index b4621229653..b46a8dc75ec 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceResourcePolicyRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceResourcePolicyRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceResult.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceResult.h index dc0fb77e69f..002623a10ed 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceResult.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsInstanceResult.h @@ -60,22 +60,40 @@ namespace Model inline GetAccessGrantsInstanceResult& WithAccessGrantsInstanceId(const char* value) { SetAccessGrantsInstanceId(value); return *this;} ///@} + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center + * instance that you are associating with your S3 Access Grants instance. An IAM + * Identity Center instance is your corporate identity directory that you added to + * the IAM Identity Center. You can use the ListInstances + * API operation to retrieve a list of your Identity Center instances and their + * ARNs.

    + */ + inline const Aws::String& GetIdentityCenterInstanceArn() const{ return m_identityCenterInstanceArn; } + inline void SetIdentityCenterInstanceArn(const Aws::String& value) { m_identityCenterInstanceArn = value; } + inline void SetIdentityCenterInstanceArn(Aws::String&& value) { m_identityCenterInstanceArn = std::move(value); } + inline void SetIdentityCenterInstanceArn(const char* value) { m_identityCenterInstanceArn.assign(value); } + inline GetAccessGrantsInstanceResult& WithIdentityCenterInstanceArn(const Aws::String& value) { SetIdentityCenterInstanceArn(value); return *this;} + inline GetAccessGrantsInstanceResult& WithIdentityCenterInstanceArn(Aws::String&& value) { SetIdentityCenterInstanceArn(std::move(value)); return *this;} + inline GetAccessGrantsInstanceResult& WithIdentityCenterInstanceArn(const char* value) { SetIdentityCenterInstanceArn(value); return *this;} + ///@} + ///@{ /** *

    If you associated your S3 Access Grants instance with an Amazon Web Services * IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) - * of the Amazon Web Services IAM Identity Center instance application; a - * subresource of the original Identity Center instance. S3 Access Grants creates - * this Identity Center application for the specific S3 Access Grants instance. - *

    + * of the IAM Identity Center instance application; a subresource of the original + * Identity Center instance. S3 Access Grants creates this Identity Center + * application for the specific S3 Access Grants instance.

    */ - inline const Aws::String& GetIdentityCenterArn() const{ return m_identityCenterArn; } - inline void SetIdentityCenterArn(const Aws::String& value) { m_identityCenterArn = value; } - inline void SetIdentityCenterArn(Aws::String&& value) { m_identityCenterArn = std::move(value); } - inline void SetIdentityCenterArn(const char* value) { m_identityCenterArn.assign(value); } - inline GetAccessGrantsInstanceResult& WithIdentityCenterArn(const Aws::String& value) { SetIdentityCenterArn(value); return *this;} - inline GetAccessGrantsInstanceResult& WithIdentityCenterArn(Aws::String&& value) { SetIdentityCenterArn(std::move(value)); return *this;} - inline GetAccessGrantsInstanceResult& WithIdentityCenterArn(const char* value) { SetIdentityCenterArn(value); return *this;} + inline const Aws::String& GetIdentityCenterApplicationArn() const{ return m_identityCenterApplicationArn; } + inline void SetIdentityCenterApplicationArn(const Aws::String& value) { m_identityCenterApplicationArn = value; } + inline void SetIdentityCenterApplicationArn(Aws::String&& value) { m_identityCenterApplicationArn = std::move(value); } + inline void SetIdentityCenterApplicationArn(const char* value) { m_identityCenterApplicationArn.assign(value); } + inline GetAccessGrantsInstanceResult& WithIdentityCenterApplicationArn(const Aws::String& value) { SetIdentityCenterApplicationArn(value); return *this;} + inline GetAccessGrantsInstanceResult& WithIdentityCenterApplicationArn(Aws::String&& value) { SetIdentityCenterApplicationArn(std::move(value)); return *this;} + inline GetAccessGrantsInstanceResult& WithIdentityCenterApplicationArn(const char* value) { SetIdentityCenterApplicationArn(value); return *this;} ///@} ///@{ @@ -105,7 +123,9 @@ namespace Model Aws::String m_accessGrantsInstanceId; - Aws::String m_identityCenterArn; + Aws::String m_identityCenterInstanceArn; + + Aws::String m_identityCenterApplicationArn; Aws::Utils::DateTime m_createdAt; diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsLocationRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsLocationRequest.h index d09620c1f5d..7b3958cf07d 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsLocationRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessGrantsLocationRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessPointResult.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessPointResult.h index 5bbe5ed355a..b82c559d432 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessPointResult.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetAccessPointResult.h @@ -85,7 +85,7 @@ namespace Model *

    Contains the virtual private cloud (VPC) configuration for the specified * access point.

    This element is empty if this access point is an * Amazon S3 on Outposts access point that is used by other Amazon Web - * Services.

    + * Servicesservices.

    */ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfiguration = value; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetDataAccessRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetDataAccessRequest.h index db88abdc201..4eaf506d598 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetDataAccessRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/GetDataAccessRequest.h @@ -51,7 +51,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/KeyNameConstraint.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/KeyNameConstraint.h index 4c106d01f47..b11b6a11218 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/KeyNameConstraint.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/KeyNameConstraint.h @@ -44,7 +44,8 @@ namespace Model ///@{ /** *

    If provided, the generated manifest includes objects where the specified - * string appears at the start of the object key string.

    + * string appears at the start of the object key string. Each KeyNameConstraint + * filter accepts an array of strings with a length of 1 string.

    */ inline const Aws::Vector& GetMatchAnyPrefix() const{ return m_matchAnyPrefix; } inline bool MatchAnyPrefixHasBeenSet() const { return m_matchAnyPrefixHasBeenSet; } @@ -60,7 +61,8 @@ namespace Model ///@{ /** *

    If provided, the generated manifest includes objects where the specified - * string appears at the end of the object key string.

    + * string appears at the end of the object key string. Each KeyNameConstraint + * filter accepts an array of strings with a length of 1 string.

    */ inline const Aws::Vector& GetMatchAnySuffix() const{ return m_matchAnySuffix; } inline bool MatchAnySuffixHasBeenSet() const { return m_matchAnySuffixHasBeenSet; } @@ -76,7 +78,8 @@ namespace Model ///@{ /** *

    If provided, the generated manifest includes objects where the specified - * string appears anywhere within the object key string.

    + * string appears anywhere within the object key string. Each KeyNameConstraint + * filter accepts an array of strings with a length of 1 string.

    */ inline const Aws::Vector& GetMatchAnySubstring() const{ return m_matchAnySubstring; } inline bool MatchAnySubstringHasBeenSet() const { return m_matchAnySubstringHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsInstanceEntry.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsInstanceEntry.h index ea85cdef50f..75a62523bd6 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsInstanceEntry.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsInstanceEntry.h @@ -80,6 +80,26 @@ namespace Model inline ListAccessGrantsInstanceEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center + * instance that you are associating with your S3 Access Grants instance. An IAM + * Identity Center instance is your corporate identity directory that you added to + * the IAM Identity Center. You can use the ListInstances + * API operation to retrieve a list of your Identity Center instances and their + * ARNs.

    + */ + inline const Aws::String& GetIdentityCenterInstanceArn() const{ return m_identityCenterInstanceArn; } + inline bool IdentityCenterInstanceArnHasBeenSet() const { return m_identityCenterInstanceArnHasBeenSet; } + inline void SetIdentityCenterInstanceArn(const Aws::String& value) { m_identityCenterInstanceArnHasBeenSet = true; m_identityCenterInstanceArn = value; } + inline void SetIdentityCenterInstanceArn(Aws::String&& value) { m_identityCenterInstanceArnHasBeenSet = true; m_identityCenterInstanceArn = std::move(value); } + inline void SetIdentityCenterInstanceArn(const char* value) { m_identityCenterInstanceArnHasBeenSet = true; m_identityCenterInstanceArn.assign(value); } + inline ListAccessGrantsInstanceEntry& WithIdentityCenterInstanceArn(const Aws::String& value) { SetIdentityCenterInstanceArn(value); return *this;} + inline ListAccessGrantsInstanceEntry& WithIdentityCenterInstanceArn(Aws::String&& value) { SetIdentityCenterInstanceArn(std::move(value)); return *this;} + inline ListAccessGrantsInstanceEntry& WithIdentityCenterInstanceArn(const char* value) { SetIdentityCenterInstanceArn(value); return *this;} + ///@} + ///@{ /** *

    If you associated your S3 Access Grants instance with an Amazon Web Services @@ -88,14 +108,14 @@ namespace Model * Identity Center instance. S3 Access Grants creates this Identity Center * application for the specific S3 Access Grants instance.

    */ - inline const Aws::String& GetIdentityCenterArn() const{ return m_identityCenterArn; } - inline bool IdentityCenterArnHasBeenSet() const { return m_identityCenterArnHasBeenSet; } - inline void SetIdentityCenterArn(const Aws::String& value) { m_identityCenterArnHasBeenSet = true; m_identityCenterArn = value; } - inline void SetIdentityCenterArn(Aws::String&& value) { m_identityCenterArnHasBeenSet = true; m_identityCenterArn = std::move(value); } - inline void SetIdentityCenterArn(const char* value) { m_identityCenterArnHasBeenSet = true; m_identityCenterArn.assign(value); } - inline ListAccessGrantsInstanceEntry& WithIdentityCenterArn(const Aws::String& value) { SetIdentityCenterArn(value); return *this;} - inline ListAccessGrantsInstanceEntry& WithIdentityCenterArn(Aws::String&& value) { SetIdentityCenterArn(std::move(value)); return *this;} - inline ListAccessGrantsInstanceEntry& WithIdentityCenterArn(const char* value) { SetIdentityCenterArn(value); return *this;} + inline const Aws::String& GetIdentityCenterApplicationArn() const{ return m_identityCenterApplicationArn; } + inline bool IdentityCenterApplicationArnHasBeenSet() const { return m_identityCenterApplicationArnHasBeenSet; } + inline void SetIdentityCenterApplicationArn(const Aws::String& value) { m_identityCenterApplicationArnHasBeenSet = true; m_identityCenterApplicationArn = value; } + inline void SetIdentityCenterApplicationArn(Aws::String&& value) { m_identityCenterApplicationArnHasBeenSet = true; m_identityCenterApplicationArn = std::move(value); } + inline void SetIdentityCenterApplicationArn(const char* value) { m_identityCenterApplicationArnHasBeenSet = true; m_identityCenterApplicationArn.assign(value); } + inline ListAccessGrantsInstanceEntry& WithIdentityCenterApplicationArn(const Aws::String& value) { SetIdentityCenterApplicationArn(value); return *this;} + inline ListAccessGrantsInstanceEntry& WithIdentityCenterApplicationArn(Aws::String&& value) { SetIdentityCenterApplicationArn(std::move(value)); return *this;} + inline ListAccessGrantsInstanceEntry& WithIdentityCenterApplicationArn(const char* value) { SetIdentityCenterApplicationArn(value); return *this;} ///@} private: @@ -108,8 +128,11 @@ namespace Model Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; - Aws::String m_identityCenterArn; - bool m_identityCenterArnHasBeenSet = false; + Aws::String m_identityCenterInstanceArn; + bool m_identityCenterInstanceArnHasBeenSet = false; + + Aws::String m_identityCenterApplicationArn; + bool m_identityCenterApplicationArnHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsInstancesRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsInstancesRequest.h index a6c1ab03c54..93eafdf8724 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsInstancesRequest.h @@ -48,7 +48,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsLocationsRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsLocationsRequest.h index 9b385af7c8e..0979449c0b2 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsLocationsRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsLocationsRequest.h @@ -48,7 +48,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsRequest.h index f7f3d70583f..c58c0a2d139 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListAccessGrantsRequest.h @@ -50,7 +50,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListCallerAccessGrantsEntry.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListCallerAccessGrantsEntry.h new file mode 100644 index 00000000000..74cb56e48a9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListCallerAccessGrantsEntry.h @@ -0,0 +1,104 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace S3Control +{ +namespace Model +{ + + /** + *

    Part of ListCallerAccessGrantsResult. Each entry includes the + * permission level (READ, WRITE, or READWRITE) and the grant scope of the access + * grant. If the grant also includes an application ARN, the grantee can only + * access the S3 data through this application.

    See Also:

    AWS + * API Reference

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

    The type of permission granted, which can be one of the following values:

    + *
    • READ - Grants read-only access to the S3 data.

      + *
    • WRITE - Grants write-only access to the S3 data.

      + *
    • READWRITE - Grants both read and write access to the + * S3 data.

    + */ + inline const Permission& GetPermission() const{ return m_permission; } + inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; } + inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; } + inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); } + inline ListCallerAccessGrantsEntry& WithPermission(const Permission& value) { SetPermission(value); return *this;} + inline ListCallerAccessGrantsEntry& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The S3 path of the data to which you have been granted access.

    + */ + inline const Aws::String& GetGrantScope() const{ return m_grantScope; } + inline bool GrantScopeHasBeenSet() const { return m_grantScopeHasBeenSet; } + inline void SetGrantScope(const Aws::String& value) { m_grantScopeHasBeenSet = true; m_grantScope = value; } + inline void SetGrantScope(Aws::String&& value) { m_grantScopeHasBeenSet = true; m_grantScope = std::move(value); } + inline void SetGrantScope(const char* value) { m_grantScopeHasBeenSet = true; m_grantScope.assign(value); } + inline ListCallerAccessGrantsEntry& WithGrantScope(const Aws::String& value) { SetGrantScope(value); return *this;} + inline ListCallerAccessGrantsEntry& WithGrantScope(Aws::String&& value) { SetGrantScope(std::move(value)); return *this;} + inline ListCallerAccessGrantsEntry& WithGrantScope(const char* value) { SetGrantScope(value); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center + * application associated with your Identity Center instance. If the grant includes + * an application ARN, the grantee can only access the S3 data through this + * application.

    + */ + inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; } + inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; } + inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; } + inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); } + inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); } + inline ListCallerAccessGrantsEntry& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;} + inline ListCallerAccessGrantsEntry& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;} + inline ListCallerAccessGrantsEntry& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;} + ///@} + private: + + Permission m_permission; + bool m_permissionHasBeenSet = false; + + Aws::String m_grantScope; + bool m_grantScopeHasBeenSet = false; + + Aws::String m_applicationArn; + bool m_applicationArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace S3Control +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListCallerAccessGrantsRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListCallerAccessGrantsRequest.h new file mode 100644 index 00000000000..f7ae5615942 --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListCallerAccessGrantsRequest.h @@ -0,0 +1,141 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace S3Control +{ +namespace Model +{ + + /** + */ + class ListCallerAccessGrantsRequest : public S3ControlRequest + { + public: + AWS_S3CONTROL_API ListCallerAccessGrantsRequest(); + + // 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 "ListCallerAccessGrants"; } + + AWS_S3CONTROL_API Aws::String SerializePayload() const override; + + AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; } + + /** + * Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation. + */ + AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override; + + ///@{ + /** + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

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

    The S3 path of the data that you would like to access. Must start with + * s3://. You can optionally pass only the beginning characters of a + * path, and S3 Access Grants will search for all applicable grants for the path + * fragment.

    + */ + inline const Aws::String& GetGrantScope() const{ return m_grantScope; } + inline bool GrantScopeHasBeenSet() const { return m_grantScopeHasBeenSet; } + inline void SetGrantScope(const Aws::String& value) { m_grantScopeHasBeenSet = true; m_grantScope = value; } + inline void SetGrantScope(Aws::String&& value) { m_grantScopeHasBeenSet = true; m_grantScope = std::move(value); } + inline void SetGrantScope(const char* value) { m_grantScopeHasBeenSet = true; m_grantScope.assign(value); } + inline ListCallerAccessGrantsRequest& WithGrantScope(const Aws::String& value) { SetGrantScope(value); return *this;} + inline ListCallerAccessGrantsRequest& WithGrantScope(Aws::String&& value) { SetGrantScope(std::move(value)); return *this;} + inline ListCallerAccessGrantsRequest& WithGrantScope(const char* value) { SetGrantScope(value); return *this;} + ///@} + + ///@{ + /** + *

    A pagination token to request the next page of results. Pass this value into + * a subsequent List Caller Access Grants request in order to retrieve + * the next page of results.

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

    The maximum number of access grants that you would like returned in the + * List Caller Access Grants response. If the results include the + * pagination token NextToken, make another call using the + * NextToken to determine if there are more results.

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

    If this optional parameter is passed in the request, a filter is applied to + * the results. The results will include only the access grants for the caller's + * Identity Center application or for any other applications + * (ALL).

    + */ + inline bool GetAllowedByApplication() const{ return m_allowedByApplication; } + inline bool AllowedByApplicationHasBeenSet() const { return m_allowedByApplicationHasBeenSet; } + inline void SetAllowedByApplication(bool value) { m_allowedByApplicationHasBeenSet = true; m_allowedByApplication = value; } + inline ListCallerAccessGrantsRequest& WithAllowedByApplication(bool value) { SetAllowedByApplication(value); return *this;} + ///@} + private: + + Aws::String m_accountId; + bool m_accountIdHasBeenSet = false; + + Aws::String m_grantScope; + bool m_grantScopeHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + bool m_allowedByApplication; + bool m_allowedByApplicationHasBeenSet = false; + }; + +} // namespace Model +} // namespace S3Control +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListCallerAccessGrantsResult.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListCallerAccessGrantsResult.h new file mode 100644 index 00000000000..f54be216dfa --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/ListCallerAccessGrantsResult.h @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace S3Control +{ +namespace Model +{ + class ListCallerAccessGrantsResult + { + public: + AWS_S3CONTROL_API ListCallerAccessGrantsResult(); + AWS_S3CONTROL_API ListCallerAccessGrantsResult(const Aws::AmazonWebServiceResult& result); + AWS_S3CONTROL_API ListCallerAccessGrantsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    A pagination token that you can use to request the next page of results. Pass + * this value into a subsequent List Caller Access Grants request in + * order to retrieve the next page of results.

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

    A list of the caller's access grants that were created using S3 Access Grants + * and that grant the caller access to the S3 data of the Amazon Web Services + * account ID that was specified in the request.

    + */ + inline const Aws::Vector& GetCallerAccessGrantsList() const{ return m_callerAccessGrantsList; } + inline void SetCallerAccessGrantsList(const Aws::Vector& value) { m_callerAccessGrantsList = value; } + inline void SetCallerAccessGrantsList(Aws::Vector&& value) { m_callerAccessGrantsList = std::move(value); } + inline ListCallerAccessGrantsResult& WithCallerAccessGrantsList(const Aws::Vector& value) { SetCallerAccessGrantsList(value); return *this;} + inline ListCallerAccessGrantsResult& WithCallerAccessGrantsList(Aws::Vector&& value) { SetCallerAccessGrantsList(std::move(value)); return *this;} + inline ListCallerAccessGrantsResult& AddCallerAccessGrantsList(const ListCallerAccessGrantsEntry& value) { m_callerAccessGrantsList.push_back(value); return *this; } + inline ListCallerAccessGrantsResult& AddCallerAccessGrantsList(ListCallerAccessGrantsEntry&& value) { m_callerAccessGrantsList.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListCallerAccessGrantsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListCallerAccessGrantsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListCallerAccessGrantsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_nextToken; + + Aws::Vector m_callerAccessGrantsList; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace S3Control +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PublicAccessBlockConfiguration.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PublicAccessBlockConfiguration.h index d3310ae05e1..d649dfc5c98 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PublicAccessBlockConfiguration.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PublicAccessBlockConfiguration.h @@ -91,12 +91,12 @@ namespace Model /** *

    Specifies whether Amazon S3 should restrict public bucket policies for * buckets in this account. Setting this element to TRUE restricts - * access to buckets with public policies to only Amazon Web Service principals and - * authorized users within this account.

    Enabling this setting doesn't - * affect previously stored bucket policies, except that public and cross-account - * access within any public bucket policy, including non-public delegation to - * specific accounts, is blocked.

    This property is not supported for Amazon - * S3 on Outposts.

    + * access to buckets with public policies to only Amazon Web Servicesservice + * principals and authorized users within this account.

    Enabling this + * setting doesn't affect previously stored bucket policies, except that public and + * cross-account access within any public bucket policy, including non-public + * delegation to specific accounts, is blocked.

    This property is not + * supported for Amazon S3 on Outposts.

    */ inline bool GetRestrictPublicBuckets() const{ return m_restrictPublicBuckets; } inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PutAccessGrantsInstanceResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PutAccessGrantsInstanceResourcePolicyRequest.h index 2afa904c8da..9799d4f7f62 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PutAccessGrantsInstanceResourcePolicyRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/PutAccessGrantsInstanceResourcePolicyRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/S3JobManifestGenerator.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/S3JobManifestGenerator.h index e00b531c026..9dc2b9a887b 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/S3JobManifestGenerator.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/S3JobManifestGenerator.h @@ -58,9 +58,10 @@ namespace Model ///@{ /** - *

    The source bucket used by the ManifestGenerator.

    Directory - * buckets - Directory buckets aren't supported as the source buckets used by - * S3JobManifestGenerator to generate the job manifest.

    + *

    The ARN of the source bucket used by the ManifestGenerator.

    + * Directory buckets - Directory buckets aren't supported as the source + * buckets used by S3JobManifestGenerator to generate the job + * manifest.

    */ inline const Aws::String& GetSourceBucket() const{ return m_sourceBucket; } inline bool SourceBucketHasBeenSet() const { return m_sourceBucketHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/UpdateAccessGrantsLocationRequest.h b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/UpdateAccessGrantsLocationRequest.h index fbaa6753d32..76fe4c85d76 100644 --- a/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/UpdateAccessGrantsLocationRequest.h +++ b/generated/src/aws-cpp-sdk-s3control/include/aws/s3control/model/UpdateAccessGrantsLocationRequest.h @@ -42,7 +42,7 @@ namespace Model ///@{ /** - *

    The ID of the Amazon Web Services account that is making this request.

    + *

    The Amazon Web Services account ID of the S3 Access Grants instance.

    */ inline const Aws::String& GetAccountId() const{ return m_accountId; } inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-s3control/source/S3ControlClient.cpp b/generated/src/aws-cpp-sdk-s3control/source/S3ControlClient.cpp index 1f8276c875f..6a275265f36 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/S3ControlClient.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/S3ControlClient.cpp @@ -87,6 +87,7 @@ #include #include #include +#include #include #include #include @@ -2939,6 +2940,45 @@ ListAccessPointsForObjectLambdaOutcome S3ControlClient::ListAccessPointsForObjec {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListCallerAccessGrantsOutcome S3ControlClient::ListCallerAccessGrants(const ListCallerAccessGrantsRequest& request) const +{ + AWS_OPERATION_GUARD(ListCallerAccessGrants); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCallerAccessGrants, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AccountIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListCallerAccessGrants", "Required field: AccountId, is not set"); + return ListCallerAccessGrantsOutcome(Aws::Client::AWSError(S3ControlErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AccountId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCallerAccessGrants, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListCallerAccessGrants, 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( + [&]()-> ListCallerAccessGrantsOutcome { + if (request.GetAccountId().size() != 12 || request.GetAccountId().find_first_not_of("0123456789") != Aws::String::npos) + { + AWS_LOGSTREAM_ERROR("ListCallerAccessGrants", "Required field: AccountId has invalid value"); + return ListCallerAccessGrantsOutcome(Aws::Client::AWSError(S3ControlErrors::INVALID_PARAMETER_VALUE, "INVALID_PARAMETER", "AccountId is invalid", false)); + } + 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, ListCallerAccessGrants, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + auto addPrefixErr = endpointResolutionOutcome.GetResult().AddPrefixIfMissing("" + request.GetAccountId() + "."); + AWS_CHECK(SERVICE_NAME, !addPrefixErr, addPrefixErr->GetMessage(), ListCallerAccessGrantsOutcome(addPrefixErr.value())); + endpointResolutionOutcome.GetResult().AddPathSegments("/v20180820/accessgrantsinstance/caller/grants"); + return ListCallerAccessGrantsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListJobsOutcome S3ControlClient::ListJobs(const ListJobsRequest& request) const { AWS_OPERATION_GUARD(ListJobs); diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/CreateAccessGrantsInstanceResult.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/CreateAccessGrantsInstanceResult.cpp index 2dc28e2c033..3cd2b1fe974 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/CreateAccessGrantsInstanceResult.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/CreateAccessGrantsInstanceResult.cpp @@ -47,10 +47,15 @@ CreateAccessGrantsInstanceResult& CreateAccessGrantsInstanceResult::operator =(c { m_accessGrantsInstanceArn = Aws::Utils::Xml::DecodeEscapedXmlText(accessGrantsInstanceArnNode.GetText()); } - XmlNode identityCenterArnNode = resultNode.FirstChild("IdentityCenterArn"); - if(!identityCenterArnNode.IsNull()) + XmlNode identityCenterInstanceArnNode = resultNode.FirstChild("IdentityCenterInstanceArn"); + if(!identityCenterInstanceArnNode.IsNull()) { - m_identityCenterArn = Aws::Utils::Xml::DecodeEscapedXmlText(identityCenterArnNode.GetText()); + m_identityCenterInstanceArn = Aws::Utils::Xml::DecodeEscapedXmlText(identityCenterInstanceArnNode.GetText()); + } + XmlNode identityCenterApplicationArnNode = resultNode.FirstChild("IdentityCenterApplicationArn"); + if(!identityCenterApplicationArnNode.IsNull()) + { + m_identityCenterApplicationArn = Aws::Utils::Xml::DecodeEscapedXmlText(identityCenterApplicationArnNode.GetText()); } } diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/GetAccessGrantsInstanceResult.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/GetAccessGrantsInstanceResult.cpp index f2d79b9430f..72866e71c61 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/GetAccessGrantsInstanceResult.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/GetAccessGrantsInstanceResult.cpp @@ -42,10 +42,15 @@ GetAccessGrantsInstanceResult& GetAccessGrantsInstanceResult::operator =(const A { m_accessGrantsInstanceId = Aws::Utils::Xml::DecodeEscapedXmlText(accessGrantsInstanceIdNode.GetText()); } - XmlNode identityCenterArnNode = resultNode.FirstChild("IdentityCenterArn"); - if(!identityCenterArnNode.IsNull()) + XmlNode identityCenterInstanceArnNode = resultNode.FirstChild("IdentityCenterInstanceArn"); + if(!identityCenterInstanceArnNode.IsNull()) { - m_identityCenterArn = Aws::Utils::Xml::DecodeEscapedXmlText(identityCenterArnNode.GetText()); + m_identityCenterInstanceArn = Aws::Utils::Xml::DecodeEscapedXmlText(identityCenterInstanceArnNode.GetText()); + } + XmlNode identityCenterApplicationArnNode = resultNode.FirstChild("IdentityCenterApplicationArn"); + if(!identityCenterApplicationArnNode.IsNull()) + { + m_identityCenterApplicationArn = Aws::Utils::Xml::DecodeEscapedXmlText(identityCenterApplicationArnNode.GetText()); } XmlNode createdAtNode = resultNode.FirstChild("CreatedAt"); if(!createdAtNode.IsNull()) diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ListAccessGrantsInstanceEntry.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ListAccessGrantsInstanceEntry.cpp index b3265cd0a9e..bf84f97b144 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ListAccessGrantsInstanceEntry.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ListAccessGrantsInstanceEntry.cpp @@ -24,7 +24,8 @@ ListAccessGrantsInstanceEntry::ListAccessGrantsInstanceEntry() : m_accessGrantsInstanceIdHasBeenSet(false), m_accessGrantsInstanceArnHasBeenSet(false), m_createdAtHasBeenSet(false), - m_identityCenterArnHasBeenSet(false) + m_identityCenterInstanceArnHasBeenSet(false), + m_identityCenterApplicationArnHasBeenSet(false) { } @@ -58,11 +59,17 @@ ListAccessGrantsInstanceEntry& ListAccessGrantsInstanceEntry::operator =(const X m_createdAt = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(createdAtNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); m_createdAtHasBeenSet = true; } - XmlNode identityCenterArnNode = resultNode.FirstChild("IdentityCenterArn"); - if(!identityCenterArnNode.IsNull()) + XmlNode identityCenterInstanceArnNode = resultNode.FirstChild("IdentityCenterInstanceArn"); + if(!identityCenterInstanceArnNode.IsNull()) { - m_identityCenterArn = Aws::Utils::Xml::DecodeEscapedXmlText(identityCenterArnNode.GetText()); - m_identityCenterArnHasBeenSet = true; + m_identityCenterInstanceArn = Aws::Utils::Xml::DecodeEscapedXmlText(identityCenterInstanceArnNode.GetText()); + m_identityCenterInstanceArnHasBeenSet = true; + } + XmlNode identityCenterApplicationArnNode = resultNode.FirstChild("IdentityCenterApplicationArn"); + if(!identityCenterApplicationArnNode.IsNull()) + { + m_identityCenterApplicationArn = Aws::Utils::Xml::DecodeEscapedXmlText(identityCenterApplicationArnNode.GetText()); + m_identityCenterApplicationArnHasBeenSet = true; } } @@ -90,10 +97,16 @@ void ListAccessGrantsInstanceEntry::AddToNode(XmlNode& parentNode) const createdAtNode.SetText(m_createdAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } - if(m_identityCenterArnHasBeenSet) + if(m_identityCenterInstanceArnHasBeenSet) + { + XmlNode identityCenterInstanceArnNode = parentNode.CreateChildElement("IdentityCenterInstanceArn"); + identityCenterInstanceArnNode.SetText(m_identityCenterInstanceArn); + } + + if(m_identityCenterApplicationArnHasBeenSet) { - XmlNode identityCenterArnNode = parentNode.CreateChildElement("IdentityCenterArn"); - identityCenterArnNode.SetText(m_identityCenterArn); + XmlNode identityCenterApplicationArnNode = parentNode.CreateChildElement("IdentityCenterApplicationArn"); + identityCenterApplicationArnNode.SetText(m_identityCenterApplicationArn); } } diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ListCallerAccessGrantsEntry.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ListCallerAccessGrantsEntry.cpp new file mode 100644 index 00000000000..04f1f977cd8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ListCallerAccessGrantsEntry.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 S3Control +{ +namespace Model +{ + +ListCallerAccessGrantsEntry::ListCallerAccessGrantsEntry() : + m_permission(Permission::NOT_SET), + m_permissionHasBeenSet(false), + m_grantScopeHasBeenSet(false), + m_applicationArnHasBeenSet(false) +{ +} + +ListCallerAccessGrantsEntry::ListCallerAccessGrantsEntry(const XmlNode& xmlNode) + : ListCallerAccessGrantsEntry() +{ + *this = xmlNode; +} + +ListCallerAccessGrantsEntry& ListCallerAccessGrantsEntry::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode permissionNode = resultNode.FirstChild("Permission"); + if(!permissionNode.IsNull()) + { + m_permission = PermissionMapper::GetPermissionForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(permissionNode.GetText()).c_str()).c_str()); + m_permissionHasBeenSet = true; + } + XmlNode grantScopeNode = resultNode.FirstChild("GrantScope"); + if(!grantScopeNode.IsNull()) + { + m_grantScope = Aws::Utils::Xml::DecodeEscapedXmlText(grantScopeNode.GetText()); + m_grantScopeHasBeenSet = true; + } + XmlNode applicationArnNode = resultNode.FirstChild("ApplicationArn"); + if(!applicationArnNode.IsNull()) + { + m_applicationArn = Aws::Utils::Xml::DecodeEscapedXmlText(applicationArnNode.GetText()); + m_applicationArnHasBeenSet = true; + } + } + + return *this; +} + +void ListCallerAccessGrantsEntry::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + if(m_permissionHasBeenSet) + { + XmlNode permissionNode = parentNode.CreateChildElement("Permission"); + permissionNode.SetText(PermissionMapper::GetNameForPermission(m_permission)); + } + + if(m_grantScopeHasBeenSet) + { + XmlNode grantScopeNode = parentNode.CreateChildElement("GrantScope"); + grantScopeNode.SetText(m_grantScope); + } + + if(m_applicationArnHasBeenSet) + { + XmlNode applicationArnNode = parentNode.CreateChildElement("ApplicationArn"); + applicationArnNode.SetText(m_applicationArn); + } + +} + +} // namespace Model +} // namespace S3Control +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ListCallerAccessGrantsRequest.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ListCallerAccessGrantsRequest.cpp new file mode 100644 index 00000000000..561e32db75c --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ListCallerAccessGrantsRequest.cpp @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::S3Control::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListCallerAccessGrantsRequest::ListCallerAccessGrantsRequest() : + m_accountIdHasBeenSet(false), + m_grantScopeHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_allowedByApplication(false), + m_allowedByApplicationHasBeenSet(false) +{ +} + +Aws::String ListCallerAccessGrantsRequest::SerializePayload() const +{ + return {}; +} + +void ListCallerAccessGrantsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_grantScopeHasBeenSet) + { + ss << m_grantScope; + uri.AddQueryStringParameter("grantscope", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_allowedByApplicationHasBeenSet) + { + ss << m_allowedByApplication; + uri.AddQueryStringParameter("allowedByApplication", ss.str()); + ss.str(""); + } + +} + +Aws::Http::HeaderValueCollection ListCallerAccessGrantsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_accountIdHasBeenSet) + { + ss << m_accountId; + headers.emplace("x-amz-account-id", ss.str()); + ss.str(""); + } + + return headers; +} + +ListCallerAccessGrantsRequest::EndpointParameters ListCallerAccessGrantsRequest::GetEndpointContextParams() const +{ + EndpointParameters parameters; + // Static context parameters + parameters.emplace_back(Aws::String("RequiresAccountId"), true, Aws::Endpoint::EndpointParameter::ParameterOrigin::STATIC_CONTEXT); + // Operation context parameters + if (AccountIdHasBeenSet()) { + parameters.emplace_back(Aws::String("AccountId"), this->GetAccountId(), Aws::Endpoint::EndpointParameter::ParameterOrigin::OPERATION_CONTEXT); + } + return parameters; +} diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ListCallerAccessGrantsResult.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ListCallerAccessGrantsResult.cpp new file mode 100644 index 00000000000..48e8466e078 --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ListCallerAccessGrantsResult.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::S3Control::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +ListCallerAccessGrantsResult::ListCallerAccessGrantsResult() +{ +} + +ListCallerAccessGrantsResult::ListCallerAccessGrantsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListCallerAccessGrantsResult& ListCallerAccessGrantsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + XmlNode nextTokenNode = resultNode.FirstChild("NextToken"); + if(!nextTokenNode.IsNull()) + { + m_nextToken = Aws::Utils::Xml::DecodeEscapedXmlText(nextTokenNode.GetText()); + } + XmlNode callerAccessGrantsListNode = resultNode.FirstChild("CallerAccessGrantsList"); + if(!callerAccessGrantsListNode.IsNull()) + { + XmlNode callerAccessGrantsListMember = callerAccessGrantsListNode.FirstChild("AccessGrant"); + while(!callerAccessGrantsListMember.IsNull()) + { + m_callerAccessGrantsList.push_back(callerAccessGrantsListMember); + callerAccessGrantsListMember = callerAccessGrantsListMember.NextNode("AccessGrant"); + } + + } + } + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + return *this; +} diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 0f84c30d5f3..72b6d78267c 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.397" +#define AWS_SDK_VERSION_STRING "1.11.398" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 397 +#define AWS_SDK_VERSION_PATCH 398 diff --git a/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp b/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp index c8cbab2db08..c3289867629 100644 --- a/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp +++ b/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp @@ -10,8 +10,8 @@ namespace Aws { namespace Endpoint { -const size_t AWSPartitions::PartitionsBlobStrLen = 2564; -const size_t AWSPartitions::PartitionsBlobSize = 2565; +const size_t AWSPartitions::PartitionsBlobStrLen = 2567; +const size_t AWSPartitions::PartitionsBlobSize = 2568; using PartitionsBlobT = Aws::Array; static constexpr PartitionsBlobT PartitionsBlob = {{ @@ -24,100 +24,100 @@ static constexpr PartitionsBlobT PartitionsBlob = {{ 'o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','t','r','u','e',',','"','s','u','p','p', 'o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e', 'g','e','x','"',':','"','^','(','u','s','|','e','u','|','a','p','|','s','a','|','c','a','|','m','e', -'|','a','f','|','i','l',')','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"', -'r','e','g','i','o','n','s','"',':','{','"','a','f','-','s','o','u','t','h','-','1','"',':','{','}', -',','"','a','p','-','e','a','s','t','-','1','"',':','{','}',',','"','a','p','-','n','o','r','t','h', -'e','a','s','t','-','1','"',':','{','}',',','"','a','p','-','n','o','r','t','h','e','a','s','t','-', -'2','"',':','{','}',',','"','a','p','-','n','o','r','t','h','e','a','s','t','-','3','"',':','{','}', -',','"','a','p','-','s','o','u','t','h','-','1','"',':','{','}',',','"','a','p','-','s','o','u','t', -'h','-','2','"',':','{','}',',','"','a','p','-','s','o','u','t','h','e','a','s','t','-','1','"',':', -'{','}',',','"','a','p','-','s','o','u','t','h','e','a','s','t','-','2','"',':','{','}',',','"','a', -'p','-','s','o','u','t','h','e','a','s','t','-','3','"',':','{','}',',','"','a','p','-','s','o','u', -'t','h','e','a','s','t','-','4','"',':','{','}',',','"','a','p','-','s','o','u','t','h','e','a','s', -'t','-','5','"',':','{','}',',','"','a','w','s','-','g','l','o','b','a','l','"',':','{','}',',','"', -'c','a','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','c','a','-','w','e','s','t', -'-','1','"',':','{','}',',','"','e','u','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',', -'"','e','u','-','c','e','n','t','r','a','l','-','2','"',':','{','}',',','"','e','u','-','n','o','r', -'t','h','-','1','"',':','{','}',',','"','e','u','-','s','o','u','t','h','-','1','"',':','{','}',',', -'"','e','u','-','s','o','u','t','h','-','2','"',':','{','}',',','"','e','u','-','w','e','s','t','-', -'1','"',':','{','}',',','"','e','u','-','w','e','s','t','-','2','"',':','{','}',',','"','e','u','-', -'w','e','s','t','-','3','"',':','{','}',',','"','i','l','-','c','e','n','t','r','a','l','-','1','"', -':','{','}',',','"','m','e','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','m','e', -'-','s','o','u','t','h','-','1','"',':','{','}',',','"','s','a','-','e','a','s','t','-','1','"',':', -'{','}',',','"','u','s','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-','e','a','s', -'t','-','2','"',':','{','}',',','"','u','s','-','w','e','s','t','-','1','"',':','{','}',',','"','u', -'s','-','w','e','s','t','-','2','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s', -'-','c','n','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i', -'x','"',':','"','a','m','a','z','o','n','a','w','s','.','c','o','m','.','c','n','"',',','"','d','u', -'a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','a','p','i','.','a','m', -'a','z','o','n','w','e','b','s','e','r','v','i','c','e','s','.','c','o','m','.','c','n','"',',','"', -'i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','c','n', -'-','n','o','r','t','h','w','e','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s', -'-','c','n','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':', -'t','r','u','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}', -',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','c','n','\\','\\','-','\\','\\','w', -'+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','a','w', -'s','-','c','n','-','g','l','o','b','a','l','"',':','{','}',',','"','c','n','-','n','o','r','t','h', -'-','1','"',':','{','}',',','"','c','n','-','n','o','r','t','h','w','e','s','t','-','1','"',':','{', -'}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','u','s','-','g','o','v','"',',','"','o', -'u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"',':','"','a','m','a', -'z','o','n','a','w','s','.','c','o','m','"',',','"','d','u','a','l','S','t','a','c','k','D','n','s', -'S','u','f','f','i','x','"',':','"','a','p','i','.','a','w','s','"',',','"','i','m','p','l','i','c', -'i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','u','s','-','g','o','v','-','w', -'e','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','u','s','-','g','o','v', -'"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','t','r','u', -'e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r', -'e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','g','o','v','\\','\\','-', +'|','a','f','|','i','l','|','m','x',')','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$', +'"',',','"','r','e','g','i','o','n','s','"',':','{','"','a','f','-','s','o','u','t','h','-','1','"', +':','{','}',',','"','a','p','-','e','a','s','t','-','1','"',':','{','}',',','"','a','p','-','n','o', +'r','t','h','e','a','s','t','-','1','"',':','{','}',',','"','a','p','-','n','o','r','t','h','e','a', +'s','t','-','2','"',':','{','}',',','"','a','p','-','n','o','r','t','h','e','a','s','t','-','3','"', +':','{','}',',','"','a','p','-','s','o','u','t','h','-','1','"',':','{','}',',','"','a','p','-','s', +'o','u','t','h','-','2','"',':','{','}',',','"','a','p','-','s','o','u','t','h','e','a','s','t','-', +'1','"',':','{','}',',','"','a','p','-','s','o','u','t','h','e','a','s','t','-','2','"',':','{','}', +',','"','a','p','-','s','o','u','t','h','e','a','s','t','-','3','"',':','{','}',',','"','a','p','-', +'s','o','u','t','h','e','a','s','t','-','4','"',':','{','}',',','"','a','p','-','s','o','u','t','h', +'e','a','s','t','-','5','"',':','{','}',',','"','a','w','s','-','g','l','o','b','a','l','"',':','{', +'}',',','"','c','a','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','c','a','-','w', +'e','s','t','-','1','"',':','{','}',',','"','e','u','-','c','e','n','t','r','a','l','-','1','"',':', +'{','}',',','"','e','u','-','c','e','n','t','r','a','l','-','2','"',':','{','}',',','"','e','u','-', +'n','o','r','t','h','-','1','"',':','{','}',',','"','e','u','-','s','o','u','t','h','-','1','"',':', +'{','}',',','"','e','u','-','s','o','u','t','h','-','2','"',':','{','}',',','"','e','u','-','w','e', +'s','t','-','1','"',':','{','}',',','"','e','u','-','w','e','s','t','-','2','"',':','{','}',',','"', +'e','u','-','w','e','s','t','-','3','"',':','{','}',',','"','i','l','-','c','e','n','t','r','a','l', +'-','1','"',':','{','}',',','"','m','e','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',', +'"','m','e','-','s','o','u','t','h','-','1','"',':','{','}',',','"','s','a','-','e','a','s','t','-', +'1','"',':','{','}',',','"','u','s','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-', +'e','a','s','t','-','2','"',':','{','}',',','"','u','s','-','w','e','s','t','-','1','"',':','{','}', +',','"','u','s','-','w','e','s','t','-','2','"',':','{','}','}','}',',','{','"','i','d','"',':','"', +'a','w','s','-','c','n','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u', +'f','f','i','x','"',':','"','a','m','a','z','o','n','a','w','s','.','c','o','m','.','c','n','"',',', +'"','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','a','p','i', +'.','a','m','a','z','o','n','w','e','b','s','e','r','v','i','c','e','s','.','c','o','m','.','c','n', +'"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':', +'"','c','n','-','n','o','r','t','h','w','e','s','t','-','1','"',',','"','n','a','m','e','"',':','"', +'a','w','s','-','c','n','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c', +'k','"',':','t','r','u','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r', +'u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','c','n','\\','\\','-', '\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{', -'"','a','w','s','-','u','s','-','g','o','v','-','g','l','o','b','a','l','"',':','{','}',',','"','u', -'s','-','g','o','v','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-','g','o','v','-', -'w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','i', -'s','o','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x', -'"',':','"','c','2','s','.','i','c','.','g','o','v','"',',','"','d','u','a','l','S','t','a','c','k', -'D','n','s','S','u','f','f','i','x','"',':','"','c','2','s','.','i','c','.','g','o','v','"',',','"', -'i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','u','s', -'-','i','s','o','-','e','a','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-', -'i','s','o','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':', -'f','a','l','s','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e', -'}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','i','s', -'o','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n', -'s','"',':','{','"','a','w','s','-','i','s','o','-','g','l','o','b','a','l','"',':','{','}',',','"', -'u','s','-','i','s','o','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-','i','s','o', -'-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-', -'i','s','o','-','b','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f', -'f','i','x','"',':','"','s','c','2','s','.','s','g','o','v','.','g','o','v','"',',','"','d','u','a', -'l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','s','c','2','s','.','s','g', -'o','v','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e', -'g','i','o','n','"',':','"','u','s','-','i','s','o','b','-','e','a','s','t','-','1','"',',','"','n', -'a','m','e','"',':','"','a','w','s','-','i','s','o','-','b','"',',','"','s','u','p','p','o','r','t', -'s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u','p','p','o','r', -'t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e', -'x','"',':','"','^','u','s','\\','\\','-','i','s','o','b','\\','\\','-','\\','\\','w','+','\\','\\','-','\\', -'\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','a','w','s','-','i','s','o', -'-','b','-','g','l','o','b','a','l','"',':','{','}',',','"','u','s','-','i','s','o','b','-','e','a', -'s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','i','s','o', -'-','e','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x', -'"',':','"','c','l','o','u','d','.','a','d','c','-','e','.','u','k','"',',','"','d','u','a','l','S', -'t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','l','o','u','d','.','a','d','c', -'-','e','.','u','k','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g', -'i','o','n','"',':','"','e','u','-','i','s','o','e','-','w','e','s','t','-','1','"',',','"','n','a', -'m','e','"',':','"','a','w','s','-','i','s','o','-','e','"',',','"','s','u','p','p','o','r','t','s', -'D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u','p','p','o','r','t', -'s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x', -'"',':','"','^','e','u','\\','\\','-','i','s','o','e','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\', -'d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','e','u','-','i','s','o','e','-', -'w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','i', -'s','o','-','f','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f', -'i','x','"',':','"','c','s','p','.','h','c','i','.','i','c','.','g','o','v','"',',','"','d','u','a', -'l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','s','p','.','h','c','i', -'.','i','c','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R', -'e','g','i','o','n','"',':','"','u','s','-','i','s','o','f','-','s','o','u','t','h','-','1','"',',', -'"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','f','"',',','"','s','u','p','p','o', +'"','a','w','s','-','c','n','-','g','l','o','b','a','l','"',':','{','}',',','"','c','n','-','n','o', +'r','t','h','-','1','"',':','{','}',',','"','c','n','-','n','o','r','t','h','w','e','s','t','-','1', +'"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','u','s','-','g','o','v','"', +',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"',':','"', +'a','m','a','z','o','n','a','w','s','.','c','o','m','"',',','"','d','u','a','l','S','t','a','c','k', +'D','n','s','S','u','f','f','i','x','"',':','"','a','p','i','.','a','w','s','"',',','"','i','m','p', +'l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','u','s','-','g','o', +'v','-','w','e','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','u','s','-', +'g','o','v','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':', +'t','r','u','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}', +',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','g','o','v', +'\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s', +'"',':','{','"','a','w','s','-','u','s','-','g','o','v','-','g','l','o','b','a','l','"',':','{','}', +',','"','u','s','-','g','o','v','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-','g', +'o','v','-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w', +'s','-','i','s','o','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f', +'f','i','x','"',':','"','c','2','s','.','i','c','.','g','o','v','"',',','"','d','u','a','l','S','t', +'a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','2','s','.','i','c','.','g','o','v', +'"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':', +'"','u','s','-','i','s','o','-','e','a','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a', +'w','s','-','i','s','o','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c', +'k','"',':','f','a','l','s','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t', +'r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\', +'-','i','s','o','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g', +'i','o','n','s','"',':','{','"','a','w','s','-','i','s','o','-','g','l','o','b','a','l','"',':','{', +'}',',','"','u','s','-','i','s','o','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-', +'i','s','o','-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a', +'w','s','-','i','s','o','-','b','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s', +'S','u','f','f','i','x','"',':','"','s','c','2','s','.','s','g','o','v','.','g','o','v','"',',','"', +'d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','s','c','2','s', +'.','s','g','o','v','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a', +'l','R','e','g','i','o','n','"',':','"','u','s','-','i','s','o','b','-','e','a','s','t','-','1','"', +',','"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','b','"',',','"','s','u','p','p', +'o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u','p', +'p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R', +'e','g','e','x','"',':','"','^','u','s','\\','\\','-','i','s','o','b','\\','\\','-','\\','\\','w','+','\\', +'\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','a','w','s','-', +'i','s','o','-','b','-','g','l','o','b','a','l','"',':','{','}',',','"','u','s','-','i','s','o','b', +'-','e','a','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-', +'i','s','o','-','e','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f', +'f','i','x','"',':','"','c','l','o','u','d','.','a','d','c','-','e','.','u','k','"',',','"','d','u', +'a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','l','o','u','d','.', +'a','d','c','-','e','.','u','k','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l', +'R','e','g','i','o','n','"',':','"','e','u','-','i','s','o','e','-','w','e','s','t','-','1','"',',', +'"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','e','"',',','"','s','u','p','p','o', 'r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u','p','p', 'o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e', -'g','e','x','"',':','"','^','u','s','\\','\\','-','i','s','o','f','\\','\\','-','\\','\\','w','+','\\','\\', -'-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','}','}',']',',','"','v', -'e','r','s','i','o','n','"',':','"','1','.','1','"','}','\0' +'g','e','x','"',':','"','^','e','u','\\','\\','-','i','s','o','e','\\','\\','-','\\','\\','w','+','\\','\\', +'-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','e','u','-','i','s', +'o','e','-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w', +'s','-','i','s','o','-','f','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S', +'u','f','f','i','x','"',':','"','c','s','p','.','h','c','i','.','i','c','.','g','o','v','"',',','"', +'d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','s','p','.', +'h','c','i','.','i','c','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b', +'a','l','R','e','g','i','o','n','"',':','"','u','s','-','i','s','o','f','-','s','o','u','t','h','-', +'1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','f','"',',','"','s','u', +'p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s', +'u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o', +'n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','i','s','o','f','\\','\\','-','\\','\\','w', +'+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','}','}',']', +',','"','v','e','r','s','i','o','n','"',':','"','1','.','1','"','}','\0' }}; const char* AWSPartitions::GetPartitionsBlob() diff --git a/tools/code-generation/api-descriptions/appsync-2017-07-25.normal.json b/tools/code-generation/api-descriptions/appsync-2017-07-25.normal.json index 184a7c7ab9e..3cda40eb249 100644 --- a/tools/code-generation/api-descriptions/appsync-2017-07-25.normal.json +++ b/tools/code-generation/api-descriptions/appsync-2017-07-25.normal.json @@ -2797,7 +2797,9 @@ "enum":[ "NONE", "ERROR", - "ALL" + "ALL", + "INFO", + "DEBUG" ] }, "FlushApiCacheRequest":{ @@ -3905,7 +3907,7 @@ "members":{ "fieldLogLevel":{ "shape":"FieldLogLevel", - "documentation":"

    The field logging level. Values can be NONE, ERROR, or ALL.

    • NONE: No field-level logs are captured.

    • ERROR: Logs the following information only for the fields that are in error:

      • The error section in the server response.

      • Field-level errors.

      • The generated request/response functions that got resolved for error fields.

    • ALL: The following information is logged for all fields in the query:

      • Field-level tracing information.

      • The generated request/response functions that got resolved for each field.

    " + "documentation":"

    The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.

    • NONE: No field-level logs are captured.

    • ERROR: Logs the following information only for the fields that are in the error category:

      • The error section in the server response.

      • Field-level errors.

      • The generated request/response functions that got resolved for error fields.

    • INFO: Logs the following information only for the fields that are in the info and error categories:

      • Info-level messages.

      • The user messages sent through $util.log.info and console.log.

      • Field-level tracing and mapping logs are not shown.

    • DEBUG: Logs the following information only for the fields that are in the debug, info, and error categories:

      • Debug-level messages.

      • The user messages sent through $util.log.info, $util.log.debug, console.log, and console.debug.

      • Field-level tracing and mapping logs are not shown.

    • ALL: The following information is logged for all fields in the query:

      • Field-level tracing information.

      • The generated request/response functions that were resolved for each field.

    " }, "cloudWatchLogsRoleArn":{ "shape":"String", diff --git a/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json b/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json index 49b332451ed..e1bc04b6997 100644 --- a/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json @@ -50,7 +50,7 @@ {"shape":"ConflictException"}, {"shape":"ServiceQuotaExceededException"} ], - "documentation":"

    Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.

    • Specify the following fields for security purposes.

      • agentResourceRoleArn – The Amazon Resource Name (ARN) of the role with permissions to invoke API operations on an agent.

      • (Optional) customerEncryptionKeyArn – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent.

      • (Optional) idleSessionTTLinSeconds – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent InvokeAgent request begins a new session.

    • To enable your agent to retain conversational context across multiple sessions, include a memoryConfiguration object. For more information, see Configure memory.

    • To override the default prompt behavior for agent orchestration and to use advanced prompts, include a promptOverrideConfiguration object. For more information, see Advanced prompts.

    • If you agent fails to be created, the response returns a list of failureReasons alongside a list of recommendedActions for you to troubleshoot.

    ", + "documentation":"

    Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.

    • Specify the following fields for security purposes.

      • agentResourceRoleArn – The Amazon Resource Name (ARN) of the role with permissions to invoke API operations on an agent.

      • (Optional) customerEncryptionKeyArn – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent.

      • (Optional) idleSessionTTLinSeconds – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent InvokeAgent request begins a new session.

    • To enable your agent to retain conversational context across multiple sessions, include a memoryConfiguration object. For more information, see Configure memory.

    • To override the default prompt behavior for agent orchestration and to use advanced prompts, include a promptOverrideConfiguration object. For more information, see Advanced prompts.

    • If your agent fails to be created, the response returns a list of failureReasons alongside a list of recommendedActions for you to troubleshoot.

    • The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.

    ", "idempotent":true }, "CreateAgentActionGroup":{ @@ -6042,7 +6042,7 @@ "documentation":"

    The parsing strategy for the data source.

    " } }, - "documentation":"

    Settings for parsing document contents. By default, the service converts the contents of each document into text before splitting it into chunks. To improve processing of PDF files with tables and images, you can configure the data source to convert the pages of text into images and use a model to describe the contents of each page.

    To use a model to parse PDF documents, set the parsing strategy to BEDROCK_FOUNDATION_MODEL and specify the model to use by ARN. You can also override the default parsing prompt with instructions for how to interpret images and tables in your documents. The following models are supported.

    • Anthropic Claude 3 Sonnet - anthropic.claude-3-sonnet-20240229-v1:0

    • Anthropic Claude 3 Haiku - anthropic.claude-3-haiku-20240307-v1:0

    You can get the ARN of a model with the action. Standard model usage charges apply for the foundation model parsing strategy.

    " + "documentation":"

    Settings for parsing document contents. By default, the service converts the contents of each document into text before splitting it into chunks. To improve processing of PDF files with tables and images, you can configure the data source to convert the pages of text into images and use a model to describe the contents of each page.

    To use a model to parse PDF documents, set the parsing strategy to BEDROCK_FOUNDATION_MODEL and specify the model to use by ARN. You can also override the default parsing prompt with instructions for how to interpret images and tables in your documents. The following models are supported.

    • Anthropic Claude 3 Sonnet - anthropic.claude-3-sonnet-20240229-v1:0

    • Anthropic Claude 3 Haiku - anthropic.claude-3-haiku-20240307-v1:0

    You can get the ARN of a model with the ListFoundationModels action. Standard model usage charges apply for the foundation model parsing strategy.

    " }, "ParsingPrompt":{ "type":"structure", @@ -6380,6 +6380,46 @@ "min":0, "sensitive":true }, + "PromptMetadataEntry":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{ + "shape":"PromptMetadataKey", + "documentation":"

    The key of a metadata tag for a prompt variant.

    " + }, + "value":{ + "shape":"PromptMetadataValue", + "documentation":"

    The value of a metadata tag for a prompt variant.

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

    Contains a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see Create a prompt using Prompt management.

    ", + "sensitive":true + }, + "PromptMetadataKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^[a-zA-Z0-9\\s._:/=+@-]*$", + "sensitive":true + }, + "PromptMetadataList":{ + "type":"list", + "member":{"shape":"PromptMetadataEntry"}, + "max":50, + "min":0, + "sensitive":true + }, + "PromptMetadataValue":{ + "type":"string", + "max":1024, + "min":0, + "pattern":"^[a-zA-Z0-9\\s._:/=+@-]*$", + "sensitive":true + }, "PromptModelIdentifier":{ "type":"string", "max":2048, @@ -6522,6 +6562,10 @@ "shape":"PromptInferenceConfiguration", "documentation":"

    Contains inference configurations for the prompt variant.

    " }, + "metadata":{ + "shape":"PromptMetadataList", + "documentation":"

    An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see Create a prompt using Prompt management.

    " + }, "modelId":{ "shape":"PromptModelIdentifier", "documentation":"

    The unique identifier of the model with which to run inference on the prompt.

    " diff --git a/tools/code-generation/api-descriptions/finspace-2021-03-12.normal.json b/tools/code-generation/api-descriptions/finspace-2021-03-12.normal.json index 71509febcd1..e1f9fe673cd 100644 --- a/tools/code-generation/api-descriptions/finspace-2021-03-12.normal.json +++ b/tools/code-generation/api-descriptions/finspace-2021-03-12.normal.json @@ -5,12 +5,14 @@ "endpointPrefix":"finspace", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceAbbreviation":"finspace", "serviceFullName":"FinSpace User Environment Management service", "serviceId":"finspace", "signatureVersion":"v4", "signingName":"finspace", - "uid":"finspace-2021-03-12" + "uid":"finspace-2021-03-12", + "auth":["aws.auth#sigv4"] }, "operations":{ "CreateEnvironment":{ @@ -1711,7 +1713,7 @@ }, "hostType":{ "shape":"KxHostType", - "documentation":"

    The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.

    You can add one of the following values:

    • kx.sg.4xlarge – The host type with a configuration of 108 GiB memory and 16 vCPUs.

    • kx.sg.8xlarge – The host type with a configuration of 216 GiB memory and 32 vCPUs.

    • kx.sg.16xlarge – The host type with a configuration of 432 GiB memory and 64 vCPUs.

    • kx.sg.32xlarge – The host type with a configuration of 864 GiB memory and 128 vCPUs.

    • kx.sg1.16xlarge – The host type with a configuration of 1949 GiB memory and 64 vCPUs.

    • kx.sg1.24xlarge – The host type with a configuration of 2948 GiB memory and 96 vCPUs.

    " + "documentation":"

    The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.

    You can add one of the following values:

    • kx.sg.large – The host type with a configuration of 16 GiB memory and 2 vCPUs.

    • kx.sg.xlarge – The host type with a configuration of 32 GiB memory and 4 vCPUs.

    • kx.sg.2xlarge – The host type with a configuration of 64 GiB memory and 8 vCPUs.

    • kx.sg.4xlarge – The host type with a configuration of 108 GiB memory and 16 vCPUs.

    • kx.sg.8xlarge – The host type with a configuration of 216 GiB memory and 32 vCPUs.

    • kx.sg.16xlarge – The host type with a configuration of 432 GiB memory and 64 vCPUs.

    • kx.sg.32xlarge – The host type with a configuration of 864 GiB memory and 128 vCPUs.

    • kx.sg1.16xlarge – The host type with a configuration of 1949 GiB memory and 64 vCPUs.

    • kx.sg1.24xlarge – The host type with a configuration of 2948 GiB memory and 96 vCPUs.

    " }, "availabilityZoneId":{ "shape":"AvailabilityZoneId", @@ -2966,7 +2968,7 @@ }, "hostType":{ "shape":"KxHostType", - "documentation":"

    The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.

    It can have one of the following values:

    • kx.sg.4xlarge – The host type with a configuration of 108 GiB memory and 16 vCPUs.

    • kx.sg.8xlarge – The host type with a configuration of 216 GiB memory and 32 vCPUs.

    • kx.sg.16xlarge – The host type with a configuration of 432 GiB memory and 64 vCPUs.

    • kx.sg.32xlarge – The host type with a configuration of 864 GiB memory and 128 vCPUs.

    • kx.sg1.16xlarge – The host type with a configuration of 1949 GiB memory and 64 vCPUs.

    • kx.sg1.24xlarge – The host type with a configuration of 2948 GiB memory and 96 vCPUs.

    " + "documentation":"

    The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.

    It can have one of the following values:

    • kx.sg.large – The host type with a configuration of 16 GiB memory and 2 vCPUs.

    • kx.sg.xlarge – The host type with a configuration of 32 GiB memory and 4 vCPUs.

    • kx.sg.2xlarge – The host type with a configuration of 64 GiB memory and 8 vCPUs.

    • kx.sg.4xlarge – The host type with a configuration of 108 GiB memory and 16 vCPUs.

    • kx.sg.8xlarge – The host type with a configuration of 216 GiB memory and 32 vCPUs.

    • kx.sg.16xlarge – The host type with a configuration of 432 GiB memory and 64 vCPUs.

    • kx.sg.32xlarge – The host type with a configuration of 864 GiB memory and 128 vCPUs.

    • kx.sg1.16xlarge – The host type with a configuration of 1949 GiB memory and 64 vCPUs.

    • kx.sg1.24xlarge – The host type with a configuration of 2948 GiB memory and 96 vCPUs.

    " }, "clusters":{ "shape":"KxClusterNameList", @@ -3887,7 +3889,7 @@ }, "hostType":{ "shape":"KxHostType", - "documentation":"

    The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.

    You can add one of the following values:

    • kx.sg.4xlarge – The host type with a configuration of 108 GiB memory and 16 vCPUs.

    • kx.sg.8xlarge – The host type with a configuration of 216 GiB memory and 32 vCPUs.

    • kx.sg.16xlarge – The host type with a configuration of 432 GiB memory and 64 vCPUs.

    • kx.sg.32xlarge – The host type with a configuration of 864 GiB memory and 128 vCPUs.

    • kx.sg1.16xlarge – The host type with a configuration of 1949 GiB memory and 64 vCPUs.

    • kx.sg1.24xlarge – The host type with a configuration of 2948 GiB memory and 96 vCPUs.

    " + "documentation":"

    The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.

    You can add one of the following values:

    • kx.sg.large – The host type with a configuration of 16 GiB memory and 2 vCPUs.

    • kx.sg.xlarge – The host type with a configuration of 32 GiB memory and 4 vCPUs.

    • kx.sg.2xlarge – The host type with a configuration of 64 GiB memory and 8 vCPUs.

    • kx.sg.4xlarge – The host type with a configuration of 108 GiB memory and 16 vCPUs.

    • kx.sg.8xlarge – The host type with a configuration of 216 GiB memory and 32 vCPUs.

    • kx.sg.16xlarge – The host type with a configuration of 432 GiB memory and 64 vCPUs.

    • kx.sg.32xlarge – The host type with a configuration of 864 GiB memory and 128 vCPUs.

    • kx.sg1.16xlarge – The host type with a configuration of 1949 GiB memory and 64 vCPUs.

    • kx.sg1.24xlarge – The host type with a configuration of 2948 GiB memory and 96 vCPUs.

    " }, "clusters":{ "shape":"KxClusterNameList", diff --git a/tools/code-generation/api-descriptions/fis-2020-12-01.normal.json b/tools/code-generation/api-descriptions/fis-2020-12-01.normal.json index a0992745a9c..f86d0f467d1 100644 --- a/tools/code-generation/api-descriptions/fis-2020-12-01.normal.json +++ b/tools/code-generation/api-descriptions/fis-2020-12-01.normal.json @@ -139,6 +139,20 @@ ], "documentation":"

    Gets information about the specified experiment template.

    " }, + "GetSafetyLever":{ + "name":"GetSafetyLever", + "http":{ + "method":"GET", + "requestUri":"/safetyLevers/{id}", + "responseCode":200 + }, + "input":{"shape":"GetSafetyLeverRequest"}, + "output":{"shape":"GetSafetyLeverResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Gets information about the specified safety lever.

    " + }, "GetTargetAccountConfiguration":{ "name":"GetTargetAccountConfiguration", "http":{ @@ -351,6 +365,22 @@ ], "documentation":"

    Updates the specified experiment template.

    " }, + "UpdateSafetyLeverState":{ + "name":"UpdateSafetyLeverState", + "http":{ + "method":"PATCH", + "requestUri":"/safetyLevers/{id}/state", + "responseCode":200 + }, + "input":{"shape":"UpdateSafetyLeverStateRequest"}, + "output":{"shape":"UpdateSafetyLeverStateResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Updates the specified safety lever state.

    " + }, "UpdateTargetAccountConfiguration":{ "name":"UpdateTargetAccountConfiguration", "http":{ @@ -1120,7 +1150,8 @@ "completed", "stopping", "stopped", - "failed" + "failed", + "cancelled" ] }, "ExperimentStatusReason":{ @@ -1801,6 +1832,27 @@ } } }, + "GetSafetyLeverRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"SafetyLeverId", + "documentation":"

    The ID of the safety lever.

    ", + "location":"uri", + "locationName":"id" + } + } + }, + "GetSafetyLeverResponse":{ + "type":"structure", + "members":{ + "safetyLever":{ + "shape":"SafetyLever", + "documentation":"

    Information about the safety lever.

    " + } + } + }, "GetTargetAccountConfigurationRequest":{ "type":"structure", "required":[ @@ -2214,6 +2266,59 @@ "min":1, "pattern":"[\\s\\S]+" }, + "SafetyLever":{ + "type":"structure", + "members":{ + "id":{ + "shape":"SafetyLeverId", + "documentation":"

    The ID of the safety lever.

    " + }, + "arn":{ + "shape":"ResourceArn", + "documentation":"

    The Amazon Resource Name (ARN) of the safety lever.

    " + }, + "state":{ + "shape":"SafetyLeverState", + "documentation":"

    The state of the safety lever.

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

    Describes a safety lever.

    " + }, + "SafetyLeverId":{ + "type":"string", + "max":64, + "pattern":"[\\S]+" + }, + "SafetyLeverState":{ + "type":"structure", + "members":{ + "status":{ + "shape":"SafetyLeverStatus", + "documentation":"

    The state of the safety lever.

    " + }, + "reason":{ + "shape":"SafetyLeverStatusReason", + "documentation":"

    The reason for the state of the safety lever.

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

    Describes the state of the safety lever.

    " + }, + "SafetyLeverStatus":{ + "type":"string", + "enum":[ + "disengaged", + "engaged", + "engaging" + ] + }, + "SafetyLeverStatusInput":{ + "type":"string", + "enum":[ + "disengaged", + "engaged" + ] + }, + "SafetyLeverStatusReason":{"type":"string"}, "ServiceQuotaExceededException":{ "type":"structure", "members":{ @@ -2685,6 +2790,52 @@ "key":{"shape":"ExperimentTemplateTargetName"}, "value":{"shape":"UpdateExperimentTemplateTargetInput"} }, + "UpdateSafetyLeverStateInput":{ + "type":"structure", + "required":[ + "status", + "reason" + ], + "members":{ + "status":{ + "shape":"SafetyLeverStatusInput", + "documentation":"

    The updated state of the safety lever.

    " + }, + "reason":{ + "shape":"SafetyLeverStatusReason", + "documentation":"

    The reason for updating the state of the safety lever.

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

    Specifies a state for a safety lever.

    " + }, + "UpdateSafetyLeverStateRequest":{ + "type":"structure", + "required":[ + "id", + "state" + ], + "members":{ + "id":{ + "shape":"SafetyLeverId", + "documentation":"

    The ID of the safety lever.

    ", + "location":"uri", + "locationName":"id" + }, + "state":{ + "shape":"UpdateSafetyLeverStateInput", + "documentation":"

    The state of the safety lever.

    " + } + } + }, + "UpdateSafetyLeverStateResponse":{ + "type":"structure", + "members":{ + "safetyLever":{ + "shape":"SafetyLever", + "documentation":"

    Information about the safety lever.

    " + } + } + }, "UpdateTargetAccountConfigurationRequest":{ "type":"structure", "required":[ diff --git a/tools/code-generation/api-descriptions/logs-2014-03-28.normal.json b/tools/code-generation/api-descriptions/logs-2014-03-28.normal.json index dfbbad77269..f92baf9c9a3 100644 --- a/tools/code-generation/api-descriptions/logs-2014-03-28.normal.json +++ b/tools/code-generation/api-descriptions/logs-2014-03-28.normal.json @@ -375,6 +375,22 @@ ], "documentation":"

    Returns a list of all CloudWatch Logs account policies in the account.

    " }, + "DescribeConfigurationTemplates":{ + "name":"DescribeConfigurationTemplates", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeConfigurationTemplatesRequest"}, + "output":{"shape":"DescribeConfigurationTemplatesResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Use this operation to return the valid and default values that are used when creating delivery sources, delivery destinations, and deliveries. For more information about deliveries, see CreateDelivery.

    " + }, "DescribeDeliveries":{ "name":"DescribeDeliveries", "http":{ @@ -1153,6 +1169,24 @@ ], "documentation":"

    Use this operation to suppress anomaly detection for a specified anomaly or pattern. If you suppress an anomaly, CloudWatch Logs won’t report new occurrences of that anomaly and won't update that anomaly with new data. If you suppress a pattern, CloudWatch Logs won’t report any anomalies related to that pattern.

    You must specify either anomalyId or patternId, but you can't specify both parameters in the same operation.

    If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to stop suppressing, and omit the suppressionType and suppressionPeriod parameters.

    " }, + "UpdateDeliveryConfiguration":{ + "name":"UpdateDeliveryConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateDeliveryConfigurationRequest"}, + "output":{"shape":"UpdateDeliveryConfigurationResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Use this operation to update the configuration of a delivery to change either the S3 path pattern or the format of the delivered logs. You can't use this operation to change the source or destination of the delivery.

    " + }, "UpdateLogAnomalyDetector":{ "name":"UpdateLogAnomalyDetector", "http":{ @@ -1232,6 +1266,15 @@ "documentation":"

    A structure that contains information about one CloudWatch Logs account policy.

    " }, "AccountPolicyDocument":{"type":"string"}, + "AllowedActionForAllowVendedLogsDeliveryForResource":{"type":"string"}, + "AllowedFieldDelimiters":{ + "type":"list", + "member":{"shape":"FieldDelimiter"} + }, + "AllowedFields":{ + "type":"list", + "member":{"shape":"RecordField"} + }, "AmazonResourceName":{ "type":"string", "max":1011, @@ -1448,6 +1491,74 @@ "min":36, "pattern":"\\S{36,128}" }, + "ConfigurationTemplate":{ + "type":"structure", + "members":{ + "service":{ + "shape":"Service", + "documentation":"

    A string specifying which service this configuration template applies to. For more information about supported services see Enable logging from Amazon Web Services services..

    " + }, + "logType":{ + "shape":"LogType", + "documentation":"

    A string specifying which log type this configuration template applies to.

    " + }, + "resourceType":{ + "shape":"ResourceType", + "documentation":"

    A string specifying which resource type this configuration template applies to.

    " + }, + "deliveryDestinationType":{ + "shape":"DeliveryDestinationType", + "documentation":"

    A string specifying which destination type this configuration template applies to.

    " + }, + "defaultDeliveryConfigValues":{ + "shape":"ConfigurationTemplateDeliveryConfigValues", + "documentation":"

    A mapping that displays the default value of each property within a delivery’s configuration, if it is not specified in the request.

    " + }, + "allowedFields":{ + "shape":"AllowedFields", + "documentation":"

    The allowed fields that a caller can use in the recordFields parameter of a CreateDelivery or UpdateDeliveryConfiguration operation.

    " + }, + "allowedOutputFormats":{ + "shape":"OutputFormats", + "documentation":"

    The list of delivery destination output formats that are supported by this log source.

    " + }, + "allowedActionForAllowVendedLogsDeliveryForResource":{ + "shape":"AllowedActionForAllowVendedLogsDeliveryForResource", + "documentation":"

    The action permissions that a caller needs to have to be able to successfully create a delivery source on the desired resource type when calling PutDeliverySource.

    " + }, + "allowedFieldDelimiters":{ + "shape":"AllowedFieldDelimiters", + "documentation":"

    The valid values that a caller can use as field delimiters when calling CreateDelivery or UpdateDeliveryConfiguration on a delivery that delivers in Plain, W3C, or Raw format.

    " + }, + "allowedSuffixPathFields":{ + "shape":"RecordFields", + "documentation":"

    The list of variable fields that can be used in the suffix path of a delivery that delivers to an S3 bucket.

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

    A structure containing information about the deafult settings and available settings that you can use to configure a delivery or a delivery destination.

    " + }, + "ConfigurationTemplateDeliveryConfigValues":{ + "type":"structure", + "members":{ + "recordFields":{ + "shape":"RecordFields", + "documentation":"

    The default record fields that will be delivered when a list of record fields is not provided in a CreateDelivery operation.

    " + }, + "fieldDelimiter":{ + "shape":"FieldDelimiter", + "documentation":"

    The default field delimiter that is used in a CreateDelivery operation when the field delimiter is not specified in that operation. The field delimiter is used only when the final output delivery is in Plain, W3C, or Raw format.

    " + }, + "s3DeliveryConfiguration":{ + "shape":"S3DeliveryConfiguration", + "documentation":"

    The delivery parameters that are used when you create a delivery to a delivery destination that is an S3 Bucket.

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

    This structure contains the default values that are used for each configuration parameter when you use CreateDelivery to create a deliver under the current service type, resource type, and log type.

    " + }, + "ConfigurationTemplates":{ + "type":"list", + "member":{"shape":"ConfigurationTemplate"} + }, "ConflictException":{ "type":"structure", "members":{ @@ -1471,6 +1582,18 @@ "shape":"Arn", "documentation":"

    The ARN of the delivery destination to use for this delivery.

    " }, + "recordFields":{ + "shape":"RecordFields", + "documentation":"

    The list of record fields to be delivered to the destination, in order. If the delivery’s log source has mandatory fields, they must be included in this list.

    " + }, + "fieldDelimiter":{ + "shape":"FieldDelimiter", + "documentation":"

    The field delimiter to use between record fields when the final output format of a delivery is in Plain, W3C, or Raw format.

    " + }, + "s3DeliveryConfiguration":{ + "shape":"S3DeliveryConfiguration", + "documentation":"

    This structure contains parameters that are valid only when the delivery’s delivery destination is an S3 bucket.

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

    An optional list of key-value pairs to associate with the resource.

    For more information about tagging, see Tagging Amazon Web Services resources

    " @@ -1852,6 +1975,18 @@ "shape":"DeliveryDestinationType", "documentation":"

    Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Firehose.

    " }, + "recordFields":{ + "shape":"RecordFields", + "documentation":"

    The record fields used in this delivery.

    " + }, + "fieldDelimiter":{ + "shape":"FieldDelimiter", + "documentation":"

    The field delimiter that is used between record fields when the final output format of a delivery is in Plain, W3C, or Raw format.

    " + }, + "s3DeliveryConfiguration":{ + "shape":"S3DeliveryConfiguration", + "documentation":"

    This structure contains delivery configurations that apply only when the delivery destination resource is an S3 bucket.

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

    The tags that have been assigned to this delivery.

    " @@ -1919,6 +2054,12 @@ "FH" ] }, + "DeliveryDestinationTypes":{ + "type":"list", + "member":{"shape":"DeliveryDestinationType"}, + "max":3, + "min":1 + }, "DeliveryDestinations":{ "type":"list", "member":{"shape":"DeliveryDestination"} @@ -1969,6 +2110,11 @@ "type":"list", "member":{"shape":"DeliverySource"} }, + "DeliverySuffixPath":{ + "type":"string", + "max":256, + "min":1 + }, "Descending":{"type":"boolean"}, "DescribeAccountPoliciesRequest":{ "type":"structure", @@ -1997,6 +2143,42 @@ } } }, + "DescribeConfigurationTemplatesRequest":{ + "type":"structure", + "members":{ + "service":{ + "shape":"Service", + "documentation":"

    Use this parameter to filter the response to include only the configuration templates that apply to the Amazon Web Services service that you specify here.

    " + }, + "logTypes":{ + "shape":"LogTypes", + "documentation":"

    Use this parameter to filter the response to include only the configuration templates that apply to the log types that you specify here.

    " + }, + "resourceTypes":{ + "shape":"ResourceTypes", + "documentation":"

    Use this parameter to filter the response to include only the configuration templates that apply to the resource types that you specify here.

    " + }, + "deliveryDestinationTypes":{ + "shape":"DeliveryDestinationTypes", + "documentation":"

    Use this parameter to filter the response to include only the configuration templates that apply to the delivery destination types that you specify here.

    " + }, + "nextToken":{"shape":"NextToken"}, + "limit":{ + "shape":"DescribeLimit", + "documentation":"

    Use this parameter to limit the number of configuration templates that are returned in the response.

    " + } + } + }, + "DescribeConfigurationTemplatesResponse":{ + "type":"structure", + "members":{ + "configurationTemplates":{ + "shape":"ConfigurationTemplates", + "documentation":"

    An array of objects, where each object describes one configuration template that matches the filters that you specified in the request.

    " + }, + "nextToken":{"shape":"NextToken"} + } + }, "DescribeDeliveriesRequest":{ "type":"structure", "members":{ @@ -2450,14 +2632,14 @@ "members":{ "keyAttributes":{ "shape":"EntityKeyAttributes", - "documentation":"

    Reserved for future use.

    " + "documentation":"

    Reserved for internal use.

    " }, "attributes":{ "shape":"EntityAttributes", - "documentation":"

    Reserved for future use.

    " + "documentation":"

    Reserved for internal use.

    " } }, - "documentation":"

    Reserved for future use.

    " + "documentation":"

    Reserved for internal use.

    " }, "EntityAttributes":{ "type":"map", @@ -2644,6 +2826,16 @@ "value":{"shape":"Value"} }, "Field":{"type":"string"}, + "FieldDelimiter":{ + "type":"string", + "max":5, + "min":0 + }, + "FieldHeader":{ + "type":"string", + "max":64, + "min":1 + }, "FilterCount":{"type":"integer"}, "FilterLogEventsRequest":{ "type":"structure", @@ -3510,6 +3702,12 @@ "min":1, "pattern":"[\\w]*" }, + "LogTypes":{ + "type":"list", + "member":{"shape":"LogType"}, + "max":10, + "min":1 + }, "MalformedQueryException":{ "type":"structure", "members":{ @@ -3654,6 +3852,10 @@ "parquet" ] }, + "OutputFormats":{ + "type":"list", + "member":{"shape":"OutputFormat"} + }, "OutputLogEvent":{ "type":"structure", "members":{ @@ -3997,7 +4199,7 @@ }, "entity":{ "shape":"Entity", - "documentation":"

    Reserved for future use.

    " + "documentation":"

    Reserved for internal use.

    " } } }, @@ -4014,7 +4216,7 @@ }, "rejectedEntityInfo":{ "shape":"RejectedEntityInfo", - "documentation":"

    Reserved for future use.

    " + "documentation":"

    Reserved for internal use.

    " } } }, @@ -4303,16 +4505,36 @@ "max":10000, "min":0 }, + "RecordField":{ + "type":"structure", + "members":{ + "name":{ + "shape":"FieldHeader", + "documentation":"

    The name to use when specifying this record field in a CreateDelivery or UpdateDeliveryConfiguration operation.

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

    If this is true, the record field must be present in the recordFields parameter provided to a CreateDelivery or UpdateDeliveryConfiguration operation.

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

    A structure that represents a valid record field header and whether it is mandatory.

    " + }, + "RecordFields":{ + "type":"list", + "member":{"shape":"FieldHeader"}, + "max":128, + "min":0 + }, "RejectedEntityInfo":{ "type":"structure", "required":["errorType"], "members":{ "errorType":{ "shape":"EntityRejectionErrorType", - "documentation":"

    Reserved for future use.

    " + "documentation":"

    Reserved for internal use.

    " } }, - "documentation":"

    Reserved for future use.

    " + "documentation":"

    Reserved for internal use.

    " }, "RejectedLogEventsInfo":{ "type":"structure", @@ -4383,6 +4605,18 @@ }, "documentation":"

    A policy enabling one or more entities to put logs to a log group in this account.

    " }, + "ResourceType":{ + "type":"string", + "max":255, + "min":1, + "pattern":"[\\w-_]*" + }, + "ResourceTypes":{ + "type":"list", + "member":{"shape":"ResourceType"}, + "max":10, + "min":1 + }, "ResultField":{ "type":"structure", "members":{ @@ -4405,6 +4639,21 @@ "type":"string", "min":1 }, + "S3DeliveryConfiguration":{ + "type":"structure", + "members":{ + "suffixPath":{ + "shape":"DeliverySuffixPath", + "documentation":"

    This string allows re-configuring the S3 object prefix to contain either static or variable sections. The valid variables to use in the suffix path will vary by each log source. See ConfigurationTemplate$allowedSuffixPathFields for more info on what values are supported in the suffix path for each log source.

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

    This parameter causes the S3 objects that contain delivered logs to use a prefix structure that allows for integration with Apache Hive.

    ", + "box":true + } + }, + "documentation":"

    This structure contains delivery configurations that apply only when the delivery destination resource is an S3 bucket.

    " + }, "Scope":{ "type":"string", "enum":["ALL"] @@ -4436,7 +4685,7 @@ "type":"string", "max":255, "min":1, - "pattern":"[\\w]*" + "pattern":"[\\w_-]*" }, "ServiceQuotaExceededException":{ "type":"structure", @@ -4916,6 +5165,33 @@ } } }, + "UpdateDeliveryConfigurationRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"DeliveryId", + "documentation":"

    The ID of the delivery to be updated by this request.

    " + }, + "recordFields":{ + "shape":"RecordFields", + "documentation":"

    The list of record fields to be delivered to the destination, in order. If the delivery’s log source has mandatory fields, they must be included in this list.

    " + }, + "fieldDelimiter":{ + "shape":"FieldDelimiter", + "documentation":"

    The field delimiter to use between record fields when the final output format of a delivery is in Plain, W3C, or Raw format.

    " + }, + "s3DeliveryConfiguration":{ + "shape":"S3DeliveryConfiguration", + "documentation":"

    This structure contains parameters that are valid only when the delivery’s delivery destination is an S3 bucket.

    " + } + } + }, + "UpdateDeliveryConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateLogAnomalyDetectorRequest":{ "type":"structure", "required":[ diff --git a/tools/code-generation/api-descriptions/s3control-2018-08-20.normal.json b/tools/code-generation/api-descriptions/s3control-2018-08-20.normal.json index 080d0aae70d..9a18ab4c165 100755 --- a/tools/code-generation/api-descriptions/s3control-2018-08-20.normal.json +++ b/tools/code-generation/api-descriptions/s3control-2018-08-20.normal.json @@ -4,11 +4,13 @@ "apiVersion":"2018-08-20", "endpointPrefix":"s3-control", "protocol":"rest-xml", + "protocols":["rest-xml"], "serviceFullName":"AWS S3 Control", "serviceId":"S3 Control", "signatureVersion":"s3v4", "signingName":"s3", - "uid":"s3control-2018-08-20" + "uid":"s3control-2018-08-20", + "auth":["aws.auth#sigv4"] }, "operations":{ "AssociateAccessGrantsIdentityCenter":{ @@ -600,7 +602,7 @@ }, "input":{"shape":"GetAccessGrantsInstanceRequest"}, "output":{"shape":"GetAccessGrantsInstanceResult"}, - "documentation":"

    Retrieves the S3 Access Grants instance for a Region in your account.

    Permissions

    You must have the s3:GetAccessGrantsInstance permission to use this operation.

    ", + "documentation":"

    Retrieves the S3 Access Grants instance for a Region in your account.

    Permissions

    You must have the s3:GetAccessGrantsInstance permission to use this operation.

    GetAccessGrantsInstance is not supported for cross-account access. You can only call the API from the account that owns the S3 Access Grants instance.

    ", "endpoint":{ "hostPrefix":"{AccountId}." }, @@ -1124,6 +1126,23 @@ "RequiresAccountId":{"value":true} } }, + "ListCallerAccessGrants":{ + "name":"ListCallerAccessGrants", + "http":{ + "method":"GET", + "requestUri":"/v20180820/accessgrantsinstance/caller/grants" + }, + "input":{"shape":"ListCallerAccessGrantsRequest"}, + "output":{"shape":"ListCallerAccessGrantsResult"}, + "documentation":"

    Returns a list of the access grants that were given to the caller using S3 Access Grants and that allow the caller to access the S3 data of the Amazon Web Services account specified in the request.

    Permissions

    You must have the s3:ListCallerAccessGrants permission to use this operation.

    ", + "endpoint":{ + "hostPrefix":"{AccountId}." + }, + "httpChecksumRequired":true, + "staticContextParams":{ + "RequiresAccountId":{"value":true} + } + }, "ListJobs":{ "name":"ListJobs", "http":{ @@ -1746,7 +1765,7 @@ }, "VpcConfiguration":{ "shape":"VpcConfiguration", - "documentation":"

    The virtual private cloud (VPC) configuration for this access point, if one exists.

    This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services.

    " + "documentation":"

    The virtual private cloud (VPC) configuration for this access point, if one exists.

    This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Servicesservices.

    " }, "Bucket":{ "shape":"BucketName", @@ -1859,7 +1878,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -2087,6 +2106,13 @@ "locationName":"Arn" } }, + "CallerAccessGrantsList":{ + "type":"list", + "member":{ + "shape":"ListCallerAccessGrantsEntry", + "locationName":"AccessGrant" + } + }, "CloudWatchMetrics":{ "type":"structure", "required":["IsEnabled"], @@ -2118,7 +2144,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -2201,7 +2227,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -2230,11 +2256,21 @@ }, "AccessGrantsInstanceArn":{ "shape":"AccessGrantsInstanceArn", - "documentation":"

    The Amazon Resource Name (ARN) of the S3 Access Grants instance.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance that you are associating with your S3 Access Grants instance. An IAM Identity Center instance is your corporate identity directory that you added to the IAM Identity Center. You can use the ListInstances API operation to retrieve a list of your Identity Center instances and their ARNs.

    " }, "IdentityCenterArn":{ "shape":"IdentityCenterArn", - "documentation":"

    If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance passed in the request. S3 Access Grants creates this Identity Center application for this specific S3 Access Grants instance.

    " + "documentation":"

    If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance. S3 Access Grants creates this Identity Center application for the specific S3 Access Grants instance.

    ", + "deprecated":true, + "deprecatedMessage":"IdentityCenterArn has been deprecated. Use IdentityCenterInstanceArn or IdentityCenterApplicationArn." + }, + "IdentityCenterInstanceArn":{ + "shape":"IdentityCenterArn", + "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance that you are associating with your S3 Access Grants instance. An IAM Identity Center instance is your corporate identity directory that you added to the IAM Identity Center. You can use the ListInstances API operation to retrieve a list of your Identity Center instances and their ARNs.

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

    If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance. S3 Access Grants creates this Identity Center application for the specific S3 Access Grants instance.

    " } } }, @@ -2248,7 +2284,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -2672,7 +2708,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -2692,7 +2728,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -2706,7 +2742,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -2723,7 +2759,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -3247,7 +3283,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -3270,7 +3306,7 @@ "box":true } }, - "documentation":"

    Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects.

    This is not supported by Amazon S3 on Outposts buckets.

    " + "documentation":"

    Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects. If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner.

    This is not supported by Amazon S3 on Outposts buckets.

    " }, "Endpoints":{ "type":"map", @@ -3375,7 +3411,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -3472,7 +3508,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -3486,7 +3522,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -3524,7 +3560,17 @@ }, "IdentityCenterArn":{ "shape":"IdentityCenterArn", - "documentation":"

    If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance application; a subresource of the original Identity Center instance. S3 Access Grants creates this Identity Center application for the specific S3 Access Grants instance.

    " + "documentation":"

    If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance. S3 Access Grants creates this Identity Center application for the specific S3 Access Grants instance.

    ", + "deprecated":true, + "deprecatedMessage":"IdentityCenterArn has been deprecated. Use IdentityCenterInstanceArn or IdentityCenterApplicationArn." + }, + "IdentityCenterInstanceArn":{ + "shape":"IdentityCenterArn", + "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance that you are associating with your S3 Access Grants instance. An IAM Identity Center instance is your corporate identity directory that you added to the IAM Identity Center. You can use the ListInstances API operation to retrieve a list of your Identity Center instances and their ARNs.

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

    If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance. S3 Access Grants creates this Identity Center application for the specific S3 Access Grants instance.

    " }, "CreatedAt":{ "shape":"CreationTimestamp", @@ -3541,7 +3587,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -3824,7 +3870,7 @@ }, "VpcConfiguration":{ "shape":"VpcConfiguration", - "documentation":"

    Contains the virtual private cloud (VPC) configuration for the specified access point.

    This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services.

    " + "documentation":"

    Contains the virtual private cloud (VPC) configuration for the specified access point.

    This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Servicesservices.

    " }, "PublicAccessBlockConfiguration":{"shape":"PublicAccessBlockConfiguration"}, "CreationDate":{ @@ -4071,7 +4117,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -4452,7 +4498,7 @@ "type":"string", "max":1224, "min":10, - "pattern":"arn:[^:]+:sso:.*$" + "pattern":"arn:[^:]+:sso::\\d{12}:application/.*$" }, "IdentityCenterArn":{ "type":"string", @@ -4997,15 +5043,15 @@ "members":{ "MatchAnyPrefix":{ "shape":"NonEmptyMaxLength1024StringList", - "documentation":"

    If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.

    " + "documentation":"

    If provided, the generated manifest includes objects where the specified string appears at the start of the object key string. Each KeyNameConstraint filter accepts an array of strings with a length of 1 string.

    " }, "MatchAnySuffix":{ "shape":"NonEmptyMaxLength1024StringList", - "documentation":"

    If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.

    " + "documentation":"

    If provided, the generated manifest includes objects where the specified string appears at the end of the object key string. Each KeyNameConstraint filter accepts an array of strings with a length of 1 string.

    " }, "MatchAnySubstring":{ "shape":"NonEmptyMaxLength1024StringList", - "documentation":"

    If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.

    " + "documentation":"

    If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string. Each KeyNameConstraint filter accepts an array of strings with a length of 1 string.

    " } }, "documentation":"

    If provided, the generated manifest includes only source bucket objects whose object keys match the string constraints specified for MatchAnyPrefix, MatchAnySuffix, and MatchAnySubstring.

    " @@ -5215,6 +5261,16 @@ }, "IdentityCenterArn":{ "shape":"IdentityCenterArn", + "documentation":"

    If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance. S3 Access Grants creates this Identity Center application for the specific S3 Access Grants instance.

    ", + "deprecated":true, + "deprecatedMessage":"IdentityCenterArn has been deprecated. Use IdentityCenterInstanceArn or IdentityCenterApplicationArn." + }, + "IdentityCenterInstanceArn":{ + "shape":"IdentityCenterArn", + "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance that you are associating with your S3 Access Grants instance. An IAM Identity Center instance is your corporate identity directory that you added to the IAM Identity Center. You can use the ListInstances API operation to retrieve a list of your Identity Center instances and their ARNs.

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

    If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance. S3 Access Grants creates this Identity Center application for the specific S3 Access Grants instance.

    " } }, @@ -5226,7 +5282,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -5291,7 +5347,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -5336,7 +5392,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -5484,6 +5540,75 @@ } } }, + "ListCallerAccessGrantsEntry":{ + "type":"structure", + "members":{ + "Permission":{ + "shape":"Permission", + "documentation":"

    The type of permission granted, which can be one of the following values:

    • READ - Grants read-only access to the S3 data.

    • WRITE - Grants write-only access to the S3 data.

    • READWRITE - Grants both read and write access to the S3 data.

    " + }, + "GrantScope":{ + "shape":"S3Prefix", + "documentation":"

    The S3 path of the data to which you have been granted access.

    " + }, + "ApplicationArn":{ + "shape":"IdentityCenterApplicationArn", + "documentation":"

    The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.

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

    Part of ListCallerAccessGrantsResult. Each entry includes the permission level (READ, WRITE, or READWRITE) and the grant scope of the access grant. If the grant also includes an application ARN, the grantee can only access the S3 data through this application.

    " + }, + "ListCallerAccessGrantsRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{ + "shape":"AccountId", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", + "contextParam":{"name":"AccountId"}, + "hostLabel":true, + "location":"header", + "locationName":"x-amz-account-id" + }, + "GrantScope":{ + "shape":"S3Prefix", + "documentation":"

    The S3 path of the data that you would like to access. Must start with s3://. You can optionally pass only the beginning characters of a path, and S3 Access Grants will search for all applicable grants for the path fragment.

    ", + "location":"querystring", + "locationName":"grantscope" + }, + "NextToken":{ + "shape":"ContinuationToken", + "documentation":"

    A pagination token to request the next page of results. Pass this value into a subsequent List Caller Access Grants request in order to retrieve the next page of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of access grants that you would like returned in the List Caller Access Grants response. If the results include the pagination token NextToken, make another call using the NextToken to determine if there are more results.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "AllowedByApplication":{ + "shape":"Boolean", + "documentation":"

    If this optional parameter is passed in the request, a filter is applied to the results. The results will include only the access grants for the caller's Identity Center application or for any other applications (ALL).

    ", + "location":"querystring", + "locationName":"allowedByApplication" + } + } + }, + "ListCallerAccessGrantsResult":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"ContinuationToken", + "documentation":"

    A pagination token that you can use to request the next page of results. Pass this value into a subsequent List Caller Access Grants request in order to retrieve the next page of results.

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

    A list of the caller's access grants that were created using S3 Access Grants and that grant the caller access to the S3 data of the Amazon Web Services account ID that was specified in the request.

    " + } + } + }, "ListJobsRequest":{ "type":"structure", "required":["AccountId"], @@ -6373,7 +6498,7 @@ }, "RestrictPublicBuckets":{ "shape":"Setting", - "documentation":"

    Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account. Setting this element to TRUE restricts access to buckets with public policies to only Amazon Web Service principals and authorized users within this account.

    Enabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.

    This property is not supported for Amazon S3 on Outposts.

    ", + "documentation":"

    Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account. Setting this element to TRUE restricts access to buckets with public policies to only Amazon Web Servicesservice principals and authorized users within this account.

    Enabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.

    This property is not supported for Amazon S3 on Outposts.

    ", "locationName":"RestrictPublicBuckets" } }, @@ -6389,7 +6514,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", @@ -7455,7 +7580,7 @@ }, "SourceBucket":{ "shape":"S3BucketArnString", - "documentation":"

    The source bucket used by the ManifestGenerator.

    Directory buckets - Directory buckets aren't supported as the source buckets used by S3JobManifestGenerator to generate the job manifest.

    " + "documentation":"

    The ARN of the source bucket used by the ManifestGenerator.

    Directory buckets - Directory buckets aren't supported as the source buckets used by S3JobManifestGenerator to generate the job manifest.

    " }, "ManifestOutputLocation":{ "shape":"S3ManifestOutputLocation", @@ -8404,7 +8529,7 @@ "members":{ "AccountId":{ "shape":"AccountId", - "documentation":"

    The ID of the Amazon Web Services account that is making this request.

    ", + "documentation":"

    The Amazon Web Services account ID of the S3 Access Grants instance.

    ", "contextParam":{"name":"AccountId"}, "hostLabel":true, "location":"header", diff --git a/tools/code-generation/partitions/partitions.json b/tools/code-generation/partitions/partitions.json index 712d31e3fe5..a2f0680888e 100644 --- a/tools/code-generation/partitions/partitions.json +++ b/tools/code-generation/partitions/partitions.json @@ -9,7 +9,7 @@ "supportsDualStack" : true, "supportsFIPS" : true }, - "regionRegex" : "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + "regionRegex" : "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", "regions" : { "af-south-1" : { "description" : "Africa (Cape Town)"