Skip to content

Commit

Permalink
This release includes support to add tags when creating a stream
Browse files Browse the repository at this point in the history
AWS End User Messaging SMS-Voice V2 has added support for resource policies. Use the three new APIs to create, view, edit, and delete resource policies.
Adding `HiddenInstanceTypes` and `HiddenSageMakerImageVersionAliases` attribute to SageMaker API
Add support for Cross Region Inference in Bedrock Model Evaluations.
Releasing minor partitional endpoint updates
  • Loading branch information
aws-sdk-cpp-automation committed Sep 24, 2024
1 parent 3b602d8 commit a35dba1
Show file tree
Hide file tree
Showing 72 changed files with 2,240 additions and 176 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.411
1.11.412
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ namespace Model
///@{
/**
* <p>Specify the models you want to use in your model evaluation job. Automatic
* model evaluation jobs support a single model, and model evaluation job that use
* human workers support two models.</p>
* model evaluation jobs support a single model or <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference
* profile</a>, and model evaluation job that use human workers support two models
* or inference profiles.</p>
*/
inline const EvaluationInferenceConfig& GetInferenceConfig() const{ return m_inferenceConfig; }
inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ namespace Model
{

/**
* <p>Contains the ARN of the Amazon Bedrock models specified in your model
* evaluation job. Each Amazon Bedrock model supports different
* <code>inferenceParams</code>. To learn more about supported inference parameters
* for Amazon Bedrock models, see <a
* <p>Contains the ARN of the Amazon Bedrock model or <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference
* profile</a> specified in your model evaluation job. Each Amazon Bedrock model
* supports different <code>inferenceParams</code>. To learn more about supported
* inference parameters for Amazon Bedrock models, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference
* parameters for foundation models</a>.</p> <p>The <code>inferenceParams</code>
* are specified using JSON. To successfully insert JSON as string make sure that
Expand All @@ -49,7 +50,7 @@ namespace Model

///@{
/**
* <p>The ARN of the Amazon Bedrock model specified.</p>
* <p>The ARN of the Amazon Bedrock model or inference profile specified.</p>
*/
inline const Aws::String& GetModelIdentifier() const{ return m_modelIdentifier; }
inline bool ModelIdentifierHasBeenSet() const { return m_modelIdentifierHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ namespace Model

///@{
/**
* <p>Defines the Amazon Bedrock model and inference parameters you want used.</p>
* <p>Defines the Amazon Bedrock model or inference profile and inference
* parameters you want used.</p>
*/
inline const EvaluationBedrockModel& GetBedrockModel() const{ return m_bedrockModel; }
inline bool BedrockModelHasBeenSet() const { return m_bedrockModelHasBeenSet; }
Expand Down
180 changes: 107 additions & 73 deletions generated/src/aws-cpp-sdk-budgets/source/BudgetsEndpointRules.cpp

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,13 @@ namespace Kinesis
* Amazon Web Services Support</a>.</p> <p>You can use <a>DescribeStreamSummary</a>
* to check the stream status, which is returned in <code>StreamStatus</code>.</p>
* <p> <a>CreateStream</a> has a limit of five transactions per second per
* account.</p><p><h3>See Also:</h3> <a
* account.</p> <p>You can add tags to the stream when making a
* <code>CreateStream</code> request by setting the <code>Tags</code> parameter. If
* you pass <code>Tags</code> parameter, in addition to having
* <code>kinesis:createStream</code> permission, you must also have
* <code>kinesis:addTagsToStream</code> permission for the stream that will be
* created. Tags will take effect from the <code>CREATING</code> status of the
* stream. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/CreateStream">AWS
* API Reference</a></p>
*/
Expand Down Expand Up @@ -1117,13 +1123,13 @@ namespace Kinesis
* every shard you subscribe to. This rate is unaffected by the total number of
* consumers that read from the same stream.</p> <p>You can register up to 20
* consumers per stream. A given consumer can only be registered with one stream at
* a time.</p> <p>For an example of how to use this operations, see <a
* href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
* Using the Kinesis Data Streams API</a>.</p> <p>The use of this operation has a
* limit of five transactions per second per account. Also, only 5 consumers can be
* created simultaneously. In other words, you cannot have more than 5 consumers in
* a <code>CREATING</code> status at the same time. Registering a 6th consumer
* while there are 5 in a <code>CREATING</code> status results in a
* a time.</p> <p>For an example of how to use this operation, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced
* Fan-Out Using the Kinesis Data Streams API</a>.</p> <p>The use of this operation
* has a limit of five transactions per second per account. Also, only 5 consumers
* can be created simultaneously. In other words, you cannot have more than 5
* consumers in a <code>CREATING</code> status at the same time. Registering a 6th
* consumer while there are 5 in a <code>CREATING</code> status results in a
* <code>LimitExceededException</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/RegisterStreamConsumer">AWS
* API Reference</a></p>
Expand Down Expand Up @@ -1358,9 +1364,9 @@ namespace Kinesis
* seconds or more after a successful call, the second call takes over the
* subscription and the previous connection expires or fails with a
* <code>ResourceInUseException</code>.</p> <p>For an example of how to use this
* operations, see <a
* href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
* Using the Kinesis Data Streams API</a>.</p><p><h3>See Also:</h3> <a
* operation, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced
* Fan-Out Using the Kinesis Data Streams API</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/SubscribeToShard">AWS
* API Reference</a></p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <aws/kinesis/KinesisRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/kinesis/model/StreamModeDetails.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>

namespace Aws
Expand Down Expand Up @@ -83,6 +84,25 @@ namespace Model
inline CreateStreamRequest& WithStreamModeDetails(const StreamModeDetails& value) { SetStreamModeDetails(value); return *this;}
inline CreateStreamRequest& WithStreamModeDetails(StreamModeDetails&& value) { SetStreamModeDetails(std::move(value)); return *this;}
///@}

///@{
/**
* <p>A set of up to 10 key-value pairs to use to create the tags.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline CreateStreamRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline CreateStreamRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline CreateStreamRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
inline CreateStreamRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreateStreamRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreateStreamRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline CreateStreamRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreateStreamRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreateStreamRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
///@}
private:

Aws::String m_streamName;
Expand All @@ -93,6 +113,9 @@ namespace Model

StreamModeDetails m_streamModeDetails;
bool m_streamModeDetailsHasBeenSet = false;

Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet = false;
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ CreateStreamRequest::CreateStreamRequest() :
m_streamNameHasBeenSet(false),
m_shardCount(0),
m_shardCountHasBeenSet(false),
m_streamModeDetailsHasBeenSet(false)
m_streamModeDetailsHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}

Expand All @@ -42,6 +43,17 @@ Aws::String CreateStreamRequest::SerializePayload() const

}

if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("Tags", std::move(tagsJsonMap));

}

return payload.View().WriteReadable();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,33 @@ namespace PinpointSMSVoiceV2
return SubmitAsync(&PinpointSMSVoiceV2Client::DeleteRegistrationFieldValue, request, handler, context);
}

/**
* <p>Deletes the resource-based policy document attached to the AWS End User
* Messaging SMS and Voice resource. A shared resource can be a Pool, Opt-out list,
* Sender Id, or Phone number.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteResourcePolicy">AWS
* API Reference</a></p>
*/
virtual Model::DeleteResourcePolicyOutcome DeleteResourcePolicy(const Model::DeleteResourcePolicyRequest& request) const;

/**
* A Callable wrapper for DeleteResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests.
*/
template<typename DeleteResourcePolicyRequestT = Model::DeleteResourcePolicyRequest>
Model::DeleteResourcePolicyOutcomeCallable DeleteResourcePolicyCallable(const DeleteResourcePolicyRequestT& request) const
{
return SubmitCallable(&PinpointSMSVoiceV2Client::DeleteResourcePolicy, request);
}

/**
* An Async wrapper for DeleteResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished.
*/
template<typename DeleteResourcePolicyRequestT = Model::DeleteResourcePolicyRequest>
void DeleteResourcePolicyAsync(const DeleteResourcePolicyRequestT& request, const DeleteResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
{
return SubmitAsync(&PinpointSMSVoiceV2Client::DeleteResourcePolicy, request, handler, context);
}

/**
* <p>Deletes an account-level monthly spending limit override for sending text
* messages. Deleting a spend limit override will set the
Expand Down Expand Up @@ -1613,6 +1640,33 @@ namespace PinpointSMSVoiceV2
return SubmitAsync(&PinpointSMSVoiceV2Client::GetProtectConfigurationCountryRuleSet, request, handler, context);
}

/**
* <p>Retrieves the JSON text of the resource-based policy document attached to the
* AWS End User Messaging SMS and Voice resource. A shared resource can be a Pool,
* Opt-out list, Sender Id, or Phone number.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/GetResourcePolicy">AWS
* API Reference</a></p>
*/
virtual Model::GetResourcePolicyOutcome GetResourcePolicy(const Model::GetResourcePolicyRequest& request) const;

/**
* A Callable wrapper for GetResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests.
*/
template<typename GetResourcePolicyRequestT = Model::GetResourcePolicyRequest>
Model::GetResourcePolicyOutcomeCallable GetResourcePolicyCallable(const GetResourcePolicyRequestT& request) const
{
return SubmitCallable(&PinpointSMSVoiceV2Client::GetResourcePolicy, request);
}

/**
* An Async wrapper for GetResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished.
*/
template<typename GetResourcePolicyRequestT = Model::GetResourcePolicyRequest>
void GetResourcePolicyAsync(const GetResourcePolicyRequestT& request, const GetResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
{
return SubmitAsync(&PinpointSMSVoiceV2Client::GetResourcePolicy, request, handler, context);
}

/**
* <p>Lists all associated origination identities in your pool.</p> <p>If you
* specify filters, the output includes information for only those origination
Expand Down Expand Up @@ -1776,6 +1830,37 @@ namespace PinpointSMSVoiceV2
return SubmitAsync(&PinpointSMSVoiceV2Client::PutRegistrationFieldValue, request, handler, context);
}

/**
* <p>Attaches a resource-based policy to a AWS End User Messaging SMS and Voice
* resource(phone number, sender Id, phone poll, or opt-out list) that is used for
* sharing the resource. A shared resource can be a Pool, Opt-out list, Sender Id,
* or Phone number. For more information about resource-based policies, see <a
* href="https://docs.aws.amazon.com/sms-voice/latest/userguide/shared-resources.html">Working
* with shared resources</a> in the <i>AWS End User Messaging SMS User Guide</i>.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/PutResourcePolicy">AWS
* API Reference</a></p>
*/
virtual Model::PutResourcePolicyOutcome PutResourcePolicy(const Model::PutResourcePolicyRequest& request) const;

/**
* A Callable wrapper for PutResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests.
*/
template<typename PutResourcePolicyRequestT = Model::PutResourcePolicyRequest>
Model::PutResourcePolicyOutcomeCallable PutResourcePolicyCallable(const PutResourcePolicyRequestT& request) const
{
return SubmitCallable(&PinpointSMSVoiceV2Client::PutResourcePolicy, request);
}

/**
* An Async wrapper for PutResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished.
*/
template<typename PutResourcePolicyRequestT = Model::PutResourcePolicyRequest>
void PutResourcePolicyAsync(const PutResourcePolicyRequestT& request, const PutResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
{
return SubmitAsync(&PinpointSMSVoiceV2Client::PutResourcePolicy, request, handler, context);
}

/**
* <p>Releases an existing origination phone number in your account. Once released,
* a phone number is no longer available for sending messages.</p> <p>If the
Expand Down
Loading

0 comments on commit a35dba1

Please sign in to comment.