Skip to content

Commit 6ce0586

Browse files
Update SDK models
1 parent fd3e4cb commit 6ce0586

39 files changed

+1357
-122
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[workspace]
22
resolver = "2"
33
exclude = [
4-
"examples/lambda",
54
"examples/webassembly",
65
"examples/test-utils",
6+
"examples/lambda",
77
"examples/examples",
88
"examples/cross_service",
99
"tests/webassembly",

aws-models/emr-serverless.json

Lines changed: 126 additions & 68 deletions
Large diffs are not rendered by default.

aws-models/sagemaker.json

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5549,6 +5549,17 @@
55495549
"smithy.api#documentation": "<p>The SageMaker Canvas application settings.</p>"
55505550
}
55515551
},
5552+
"com.amazonaws.sagemaker#CapacityReservationPreference": {
5553+
"type": "enum",
5554+
"members": {
5555+
"CAPACITY_RESERVATIONS_ONLY": {
5556+
"target": "smithy.api#Unit",
5557+
"traits": {
5558+
"smithy.api#enumValue": "capacity-reservations-only"
5559+
}
5560+
}
5561+
}
5562+
},
55525563
"com.amazonaws.sagemaker#CapacitySize": {
55535564
"type": "structure",
55545565
"members": {
@@ -29114,6 +29125,47 @@
2911429125
"smithy.api#documentation": "<p>A collection of EBS storage settings that apply to both private and shared spaces.</p>"
2911529126
}
2911629127
},
29128+
"com.amazonaws.sagemaker#Ec2CapacityReservation": {
29129+
"type": "structure",
29130+
"members": {
29131+
"Ec2CapacityReservationId": {
29132+
"target": "com.amazonaws.sagemaker#Ec2CapacityReservationId",
29133+
"traits": {
29134+
"smithy.api#documentation": "<p>The unique identifier for an EC2 capacity reservation that's part of the ML capacity reservation.</p>"
29135+
}
29136+
},
29137+
"TotalInstanceCount": {
29138+
"target": "com.amazonaws.sagemaker#TaskCount",
29139+
"traits": {
29140+
"smithy.api#documentation": "<p>The number of instances that you allocated to the EC2 capacity reservation.</p>"
29141+
}
29142+
},
29143+
"AvailableInstanceCount": {
29144+
"target": "com.amazonaws.sagemaker#TaskCount",
29145+
"traits": {
29146+
"smithy.api#documentation": "<p>The number of instances that are currently available in the EC2 capacity reservation.</p>"
29147+
}
29148+
},
29149+
"UsedByCurrentEndpoint": {
29150+
"target": "com.amazonaws.sagemaker#TaskCount",
29151+
"traits": {
29152+
"smithy.api#documentation": "<p>The number of instances from the EC2 capacity reservation that are being used by the endpoint.</p>"
29153+
}
29154+
}
29155+
},
29156+
"traits": {
29157+
"smithy.api#documentation": "<p>The EC2 capacity reservations that are shared to an ML capacity reservation.</p>"
29158+
}
29159+
},
29160+
"com.amazonaws.sagemaker#Ec2CapacityReservationId": {
29161+
"type": "string"
29162+
},
29163+
"com.amazonaws.sagemaker#Ec2CapacityReservationsList": {
29164+
"type": "list",
29165+
"member": {
29166+
"target": "com.amazonaws.sagemaker#Ec2CapacityReservation"
29167+
}
29168+
},
2911729169
"com.amazonaws.sagemaker#Edge": {
2911829170
"type": "structure",
2911929171
"members": {
@@ -47678,6 +47730,16 @@
4767847730
"smithy.api#pattern": "^1|2$"
4767947731
}
4768047732
},
47733+
"com.amazonaws.sagemaker#MlReservationArn": {
47734+
"type": "string",
47735+
"traits": {
47736+
"smithy.api#length": {
47737+
"min": 20,
47738+
"max": 258
47739+
},
47740+
"smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:ml-reservation/"
47741+
}
47742+
},
4768147743
"com.amazonaws.sagemaker#MlTools": {
4768247744
"type": "enum",
4768347745
"members": {
@@ -56467,6 +56529,12 @@
5646756529
"traits": {
5646856530
"smithy.api#documentation": "<p>Specifies an option from a collection of preconfigured Amazon Machine Image (AMI) images. Each image is configured by Amazon Web Services with a set of software and driver versions. Amazon Web Services optimizes these configurations for different machine learning workloads.</p> <p>By selecting an AMI version, you can ensure that your inference environment is compatible with specific software requirements, such as CUDA driver versions, Linux kernel versions, or Amazon Web Services Neuron driver versions.</p> <p>The AMI version names, and their configurations, are the following:</p> <dl> <dt>al2-ami-sagemaker-inference-gpu-2</dt> <dd> <ul> <li> <p>Accelerator: GPU</p> </li> <li> <p>NVIDIA driver version: 535</p> </li> <li> <p>CUDA version: 12.2</p> </li> </ul> </dd> <dt>al2-ami-sagemaker-inference-gpu-2-1</dt> <dd> <ul> <li> <p>Accelerator: GPU</p> </li> <li> <p>NVIDIA driver version: 535</p> </li> <li> <p>CUDA version: 12.2</p> </li> <li> <p>NVIDIA Container Toolkit with disabled CUDA-compat mounting</p> </li> </ul> </dd> <dt>al2-ami-sagemaker-inference-gpu-3-1</dt> <dd> <ul> <li> <p>Accelerator: GPU</p> </li> <li> <p>NVIDIA driver version: 550</p> </li> <li> <p>CUDA version: 12.4</p> </li> <li> <p>NVIDIA Container Toolkit with disabled CUDA-compat mounting</p> </li> </ul> </dd> <dt>al2-ami-sagemaker-inference-neuron-2</dt> <dd> <ul> <li> <p>Accelerator: Inferentia2 and Trainium</p> </li> <li> <p>Neuron driver version: 2.19</p> </li> </ul> </dd> </dl>"
5646956531
}
56532+
},
56533+
"CapacityReservationConfig": {
56534+
"target": "com.amazonaws.sagemaker#ProductionVariantCapacityReservationConfig",
56535+
"traits": {
56536+
"smithy.api#documentation": "<p>Settings for the capacity reservation for the compute instances that SageMaker AI reserves for an endpoint. </p>"
56537+
}
5647056538
}
5647156539
},
5647256540
"traits": {
@@ -56514,6 +56582,70 @@
5651456582
}
5651556583
}
5651656584
},
56585+
"com.amazonaws.sagemaker#ProductionVariantCapacityReservationConfig": {
56586+
"type": "structure",
56587+
"members": {
56588+
"CapacityReservationPreference": {
56589+
"target": "com.amazonaws.sagemaker#CapacityReservationPreference",
56590+
"traits": {
56591+
"smithy.api#documentation": "<p>Options that you can choose for the capacity reservation. SageMaker AI supports the following options:</p> <dl> <dt>capacity-reservations-only</dt> <dd> <p>SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.</p> </dd> </dl>"
56592+
}
56593+
},
56594+
"MlReservationArn": {
56595+
"target": "com.amazonaws.sagemaker#MlReservationArn",
56596+
"traits": {
56597+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) that uniquely identifies the ML capacity reservation that SageMaker AI applies when it deploys the endpoint.</p>"
56598+
}
56599+
}
56600+
},
56601+
"traits": {
56602+
"smithy.api#documentation": "<p>Settings for the capacity reservation for the compute instances that SageMaker AI reserves for an endpoint. </p>"
56603+
}
56604+
},
56605+
"com.amazonaws.sagemaker#ProductionVariantCapacityReservationSummary": {
56606+
"type": "structure",
56607+
"members": {
56608+
"MlReservationArn": {
56609+
"target": "com.amazonaws.sagemaker#MlReservationArn",
56610+
"traits": {
56611+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) that uniquely identifies the ML capacity reservation that SageMaker AI applies when it deploys the endpoint.</p>"
56612+
}
56613+
},
56614+
"CapacityReservationPreference": {
56615+
"target": "com.amazonaws.sagemaker#CapacityReservationPreference",
56616+
"traits": {
56617+
"smithy.api#documentation": "<p>The option that you chose for the capacity reservation. SageMaker AI supports the following options:</p> <dl> <dt>capacity-reservations-only</dt> <dd> <p>SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.</p> </dd> </dl>"
56618+
}
56619+
},
56620+
"TotalInstanceCount": {
56621+
"target": "com.amazonaws.sagemaker#TaskCount",
56622+
"traits": {
56623+
"smithy.api#documentation": "<p>The number of instances that you allocated to the ML capacity reservation.</p>"
56624+
}
56625+
},
56626+
"AvailableInstanceCount": {
56627+
"target": "com.amazonaws.sagemaker#TaskCount",
56628+
"traits": {
56629+
"smithy.api#documentation": "<p>The number of instances that are currently available in the ML capacity reservation.</p>"
56630+
}
56631+
},
56632+
"UsedByCurrentEndpoint": {
56633+
"target": "com.amazonaws.sagemaker#TaskCount",
56634+
"traits": {
56635+
"smithy.api#documentation": "<p>The number of instances from the ML capacity reservation that are being used by the endpoint.</p>"
56636+
}
56637+
},
56638+
"Ec2CapacityReservations": {
56639+
"target": "com.amazonaws.sagemaker#Ec2CapacityReservationsList",
56640+
"traits": {
56641+
"smithy.api#documentation": "<p>The EC2 capacity reservations that are shared to this ML capacity reservation, if any.</p>"
56642+
}
56643+
}
56644+
},
56645+
"traits": {
56646+
"smithy.api#documentation": "<p>Details about an ML capacity reservation.</p>"
56647+
}
56648+
},
5651756649
"com.amazonaws.sagemaker#ProductionVariantContainerStartupHealthCheckTimeoutInSeconds": {
5651856650
"type": "integer",
5651956651
"traits": {
@@ -58149,6 +58281,12 @@
5814958281
"traits": {
5815058282
"smithy.api#documentation": "<p>Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.</p>"
5815158283
}
58284+
},
58285+
"CapacityReservationConfig": {
58286+
"target": "com.amazonaws.sagemaker#ProductionVariantCapacityReservationSummary",
58287+
"traits": {
58288+
"smithy.api#documentation": "<p>Settings for the capacity reservation for the compute instances that SageMaker AI reserves for an endpoint. </p>"
58289+
}
5815258290
}
5815358291
},
5815458292
"traits": {
@@ -72913,6 +73051,12 @@
7291373051
"traits": {
7291473052
"smithy.api#documentation": "<p>The location where Amazon S3 stores temporary execution data and other artifacts for the project that corresponds to the domain.</p>"
7291573053
}
73054+
},
73055+
"SingleSignOnApplicationArn": {
73056+
"target": "com.amazonaws.sagemaker#SingleSignOnApplicationArn",
73057+
"traits": {
73058+
"smithy.api#documentation": "<p>The ARN of the application managed by SageMaker AI and SageMaker Unified Studio in the Amazon Web Services IAM Identity Center.</p>"
73059+
}
7291673060
}
7291773061
},
7291873062
"traits": {

aws-models/sdk-endpoints.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38883,6 +38883,11 @@
3888338883
}
3888438884
}
3888538885
},
38886+
"license-manager" : {
38887+
"endpoints" : {
38888+
"eu-isoe-west-1" : { }
38889+
}
38890+
},
3888638891
"logs" : {
3888738892
"endpoints" : {
3888838893
"eu-isoe-west-1" : { }

examples/examples/sagemaker/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99
[dependencies]
1010
thiserror = "1.0"
1111
aws-config= { version = "1.6.3", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
12-
aws-sdk-sagemaker= { version = "1.131.0", path = "../../../sdk/sagemaker" }
12+
aws-sdk-sagemaker= { version = "1.132.0", path = "../../../sdk/sagemaker" }
1313
aws-smithy-types-convert= { version = "0.60.9", path = "../../../sdk/aws-smithy-types-convert", features = ["convert-chrono"] }
1414

1515
[dependencies.clap]

sdk/emrserverless/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
22
[package]
33
name = "aws-sdk-emrserverless"
4-
version = "1.76.0"
4+
version = "1.77.0"
55
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
66
description = "AWS SDK for EMR Serverless"
77
edition = "2021"

sdk/emrserverless/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ your project, add the following to your **Cargo.toml** file:
1919
```toml
2020
[dependencies]
2121
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
22-
aws-sdk-emrserverless = "1.76.0"
22+
aws-sdk-emrserverless = "1.77.0"
2323
tokio = { version = "1", features = ["full"] }
2424
```
2525

sdk/emrserverless/src/client/start_job_run.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ impl super::Client {
66
/// - [`application_id(impl Into<String>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::set_application_id):<br>required: **true**<br><p>The ID of the application on which to run the job.</p><br>
77
/// - [`client_token(impl Into<String>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::set_client_token):<br>required: **true**<br><p>The client idempotency token of the job run to start. Its value must be unique for each request.</p><br>
88
/// - [`execution_role_arn(impl Into<String>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::execution_role_arn) / [`set_execution_role_arn(Option<String>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::set_execution_role_arn):<br>required: **true**<br><p>The execution role ARN for the job run.</p><br>
9+
/// - [`execution_iam_policy(JobRunExecutionIamPolicy)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::execution_iam_policy) / [`set_execution_iam_policy(Option<JobRunExecutionIamPolicy>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::set_execution_iam_policy):<br>required: **false**<br><p>You can pass an optional IAM policy. The resulting job IAM role permissions will be an intersection of this policy and the policy associated with your job execution role.</p><br>
910
/// - [`job_driver(JobDriver)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::job_driver) / [`set_job_driver(Option<JobDriver>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::set_job_driver):<br>required: **false**<br><p>The job driver for the job run.</p><br>
1011
/// - [`configuration_overrides(ConfigurationOverrides)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::configuration_overrides) / [`set_configuration_overrides(Option<ConfigurationOverrides>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::set_configuration_overrides):<br>required: **false**<br><p>The configuration overrides for the job run.</p><br>
1112
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::start_job_run::builders::StartJobRunFluentBuilder::set_tags):<br>required: **false**<br><p>The tags assigned to the job run.</p><br>

sdk/emrserverless/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//! ```toml
3838
//! [dependencies]
3939
//! aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
40-
//! aws-sdk-emrserverless = "1.76.0"
40+
//! aws-sdk-emrserverless = "1.77.0"
4141
//! tokio = { version = "1", features = ["full"] }
4242
//! ```
4343
//!

sdk/emrserverless/src/operation/start_job_run/_start_job_run_input.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ pub struct StartJobRunInput {
99
pub client_token: ::std::option::Option<::std::string::String>,
1010
/// <p>The execution role ARN for the job run.</p>
1111
pub execution_role_arn: ::std::option::Option<::std::string::String>,
12+
/// <p>You can pass an optional IAM policy. The resulting job IAM role permissions will be an intersection of this policy and the policy associated with your job execution role.</p>
13+
pub execution_iam_policy: ::std::option::Option<crate::types::JobRunExecutionIamPolicy>,
1214
/// <p>The job driver for the job run.</p>
1315
pub job_driver: ::std::option::Option<crate::types::JobDriver>,
1416
/// <p>The configuration overrides for the job run.</p>
@@ -37,6 +39,10 @@ impl StartJobRunInput {
3739
pub fn execution_role_arn(&self) -> ::std::option::Option<&str> {
3840
self.execution_role_arn.as_deref()
3941
}
42+
/// <p>You can pass an optional IAM policy. The resulting job IAM role permissions will be an intersection of this policy and the policy associated with your job execution role.</p>
43+
pub fn execution_iam_policy(&self) -> ::std::option::Option<&crate::types::JobRunExecutionIamPolicy> {
44+
self.execution_iam_policy.as_ref()
45+
}
4046
/// <p>The job driver for the job run.</p>
4147
pub fn job_driver(&self) -> ::std::option::Option<&crate::types::JobDriver> {
4248
self.job_driver.as_ref()
@@ -80,6 +86,7 @@ pub struct StartJobRunInputBuilder {
8086
pub(crate) application_id: ::std::option::Option<::std::string::String>,
8187
pub(crate) client_token: ::std::option::Option<::std::string::String>,
8288
pub(crate) execution_role_arn: ::std::option::Option<::std::string::String>,
89+
pub(crate) execution_iam_policy: ::std::option::Option<crate::types::JobRunExecutionIamPolicy>,
8390
pub(crate) job_driver: ::std::option::Option<crate::types::JobDriver>,
8491
pub(crate) configuration_overrides: ::std::option::Option<crate::types::ConfigurationOverrides>,
8592
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
@@ -134,6 +141,20 @@ impl StartJobRunInputBuilder {
134141
pub fn get_execution_role_arn(&self) -> &::std::option::Option<::std::string::String> {
135142
&self.execution_role_arn
136143
}
144+
/// <p>You can pass an optional IAM policy. The resulting job IAM role permissions will be an intersection of this policy and the policy associated with your job execution role.</p>
145+
pub fn execution_iam_policy(mut self, input: crate::types::JobRunExecutionIamPolicy) -> Self {
146+
self.execution_iam_policy = ::std::option::Option::Some(input);
147+
self
148+
}
149+
/// <p>You can pass an optional IAM policy. The resulting job IAM role permissions will be an intersection of this policy and the policy associated with your job execution role.</p>
150+
pub fn set_execution_iam_policy(mut self, input: ::std::option::Option<crate::types::JobRunExecutionIamPolicy>) -> Self {
151+
self.execution_iam_policy = input;
152+
self
153+
}
154+
/// <p>You can pass an optional IAM policy. The resulting job IAM role permissions will be an intersection of this policy and the policy associated with your job execution role.</p>
155+
pub fn get_execution_iam_policy(&self) -> &::std::option::Option<crate::types::JobRunExecutionIamPolicy> {
156+
&self.execution_iam_policy
157+
}
137158
/// <p>The job driver for the job run.</p>
138159
pub fn job_driver(mut self, input: crate::types::JobDriver) -> Self {
139160
self.job_driver = ::std::option::Option::Some(input);
@@ -244,6 +265,7 @@ impl StartJobRunInputBuilder {
244265
application_id: self.application_id,
245266
client_token: self.client_token,
246267
execution_role_arn: self.execution_role_arn,
268+
execution_iam_policy: self.execution_iam_policy,
247269
job_driver: self.job_driver,
248270
configuration_overrides: self.configuration_overrides,
249271
tags: self.tags,

0 commit comments

Comments
 (0)