Skip to content

Commit

Permalink
Import release from smithy-rs v0.21 (#200)
Browse files Browse the repository at this point in the history
* Import release from smithy-rs v0.21

* Update services supported

* Update README
  • Loading branch information
jdisanti authored Aug 19, 2021
1 parent 1bbc4d6 commit dab3b0a
Show file tree
Hide file tree
Showing 891 changed files with 125,184 additions and 31,598 deletions.
3 changes: 3 additions & 0 deletions AWS_SERVICES_SUPPORTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ These services have not yet been manually tested by the SDK team and may not hav
- [x] Amazon Budgets
- [x] Amazon Ce
- [x] Amazon Chime
- [x] Amazon Chime Identity
- [x] Amazon Chime Messaging
- [x] Amazon Cloud9
- [x] Amazon Cloud Directory
- [x] Amazon Cloud Front
Expand Down Expand Up @@ -221,6 +223,7 @@ These services have not yet been manually tested by the SDK team and may not hav
- [x] Amazon Signer
- [x] Amazon SMS
- [x] Amazon Sms-Voice
- [x] Amazon Snow Device Management
- [x] Amazon SSO
- [x] Amazon Sso-Admin
- [x] Amazon Sso-Oidc
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The AWS SDK for Rust [![Docs](https://img.shields.io/badge/docs-v0.0.15--alpha-blue)](https://awslabs.github.io/aws-sdk-rust/) ![MSRV](https://img.shields.io/badge/msrv-1.52.1-red)
# The AWS SDK for Rust [![Docs](https://img.shields.io/badge/docs-v0.0.16--alpha-blue)](https://awslabs.github.io/aws-sdk-rust/) ![MSRV](https://img.shields.io/badge/msrv-1.52.1-red)

This repo contains the new AWS SDK for Rust (the SDK) and its [public roadmap](https://github.com/awslabs/aws-sdk-rust/projects/1)

Expand All @@ -15,7 +15,7 @@ The SDK provides one crate per AWS service. You must add [Tokio](https://crates.

```toml
[dependencies]
aws-sdk-dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.15-alpha", package = "aws-sdk-dynamodb" }
aws-sdk-dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.16-alpha", package = "aws-sdk-dynamodb" }
tokio = { version = "1", features = ["full"] }
```
3. Provide your AWS credentials as environment variables:
Expand Down
2 changes: 1 addition & 1 deletion sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[workspace]
members = [
"migrationhub","accessanalyzer","acmpca","acm","alexaforbusiness","amp","amplify","amplifybackend","apigateway","apigatewaymanagement","apigatewayv2","appconfig","appflow","appintegrations","applicationautoscaling","applicationinsights","applicationcostprofiler","appmesh","apprunner","appstream","appsync","athena","auditmanager","autoscalingplans","autoscaling","backup","batch","braket","budgets","costexplorer","chime","cloud9","clouddirectory","cloudformation","cloudfront","cloudhsm","cloudhsmv2","cloudsearch","cloudsearchdomain","cloudtrail","codeartifact","codebuild","codecommit","codedeploy","codegurureviewer","codeguruprofiler","codepipeline","codestarconnections","codestarnotifications","codestar","cognitoidentity","cognitoidentityprovider","cognitosync","comprehend","comprehendmedical","computeoptimizer","config","connectcontactlens","connect","connectparticipant","costandusagereport","customerprofiles","databrew","dataexchange","datapipeline","datasync","dax","detective","devicefarm","devopsguru","directconnect","applicationdiscovery","dlm","databasemigration","docdb","directory","dynamodb","ebs","ec2instanceconnect","ec2","ecrpublic","ecr","ecs","eks","elasticinference","elasticache","elasticbeanstalk","efs","elasticloadbalancing","elasticloadbalancingv2","emr","elastictranscoder","ses","emrcontainers","marketplaceentitlement","elasticsearch","eventbridge","cloudwatchevents","finspacedata","finspace","firehose","fis","fms","forecast","forecastquery","frauddetector","fsx","gamelift","globalaccelerator","glue","greengrass","greengrassv2","groundstation","guardduty","health","healthlake","honeycode","iam","identitystore","imagebuilder","inspector","iotdataplane","iotjobsdataplane","iot","iot1clickdevices","iot1clickprojects","iotanalytics","iotdeviceadvisor","ioteventsdata","iotevents","iotfleethub","iotsecuretunneling","iotsitewise","iotthingsgraph","iotwireless","ivs","kafka","kendra","kinesisvideoarchivedmedia","kinesisvideomedia","kinesisvideosignaling","kinesis","kinesisanalytics","kinesisanalyticsv2","kinesisvideo","kms","lakeformation","lambda","lexmodelbuilding","licensemanager","lightsail","location","cloudwatchlogs","lookoutequipment","lookoutmetrics","lookoutvision","machinelearning","macie","macie2","managedblockchain","marketplacecatalog","marketplacecommerceanalytics","mediaconnect","mediaconvert","medialive","mediapackagevod","mediapackage","mediastoredata","mediastore","mediatailor","marketplacemetering","mgn","migrationhubconfig","mobile","lexmodelsv2","cloudwatch","mq","mturk","mwaa","neptune","networkfirewall","networkmanager","nimble","opsworks","opsworkscm","organizations","outposts","personalizeevents","personalizeruntime","personalize","pi","pinpointemail","pinpoint","polly","pricing","proton","qldbsession","qldb","quicksight","ram","rdsdata","rds","redshiftdata","redshift","rekognition","resourcegroups","resourcegroupstagging","robomaker","route53recoverycluster","route53recoverycontrolconfig","route53recoveryreadiness","route53","route53domains","route53resolver","lexruntime","lexruntimev2","sagemakerruntime","s3","s3control","s3outposts","sagemakera2iruntime","sagemakeredge","sagemakerfeaturestoreruntime","sagemaker","savingsplans","schemas","secretsmanager","securityhub","serverlessapplicationrepository","servicequotas","servicecatalogappregistry","servicecatalog","servicediscovery","sesv2","shield","signer","pinpointsmsvoice","sms","snowball","sns","sqs","ssmcontacts","ssmincidents","ssm","ssoadmin","ssooidc","sso","sfn","storagegateway","dynamodbstreams","sts","support","swf","synthetics","textract","transcribe","transfer","translate","wafregional","waf","wafv2","wellarchitected","workdocs","worklink","workmail","workmailmessageflow","workspaces","xray","protocol-test-helpers","smithy-async","smithy-client","smithy-eventstream","smithy-http","smithy-http-tower","smithy-json","smithy-query","smithy-types","smithy-xml","aws-auth","aws-auth-providers","aws-endpoint","aws-http","aws-hyper","aws-sig-auth","aws-types","examples/mediapackage","examples/cloudwatch","examples/lambda","examples/autoscalingplans","examples/kms","examples/cognitosync","examples/snowball","examples/applicationautoscaling","examples/eks","examples/route53","examples/sqs","examples/ses","examples/autoscaling","examples/ecr","examples/sts","examples/qldb","examples/rds","examples/sagemaker","examples/rdsdata","examples/s3","examples/cloudwatchlogs","examples/ec2","examples/cloudformation","examples/cognitoidentity","examples/iam","examples/cognitoidentityprovider","examples/polly","examples/sns","examples/ssm","examples/medialive","examples/config","examples/ecs","examples/secretsmanager","examples/ebs","examples/batch","examples/kinesis"
"migrationhub","accessanalyzer","acmpca","acm","alexaforbusiness","amp","amplify","amplifybackend","apigateway","apigatewaymanagement","apigatewayv2","appconfig","appflow","appintegrations","applicationautoscaling","applicationinsights","applicationcostprofiler","appmesh","apprunner","appstream","appsync","athena","auditmanager","autoscalingplans","autoscaling","backup","batch","braket","budgets","costexplorer","chimesdkidentity","chimesdkmessaging","chime","cloud9","clouddirectory","cloudformation","cloudfront","cloudhsm","cloudhsmv2","cloudsearch","cloudsearchdomain","cloudtrail","codeartifact","codebuild","codecommit","codedeploy","codegurureviewer","codeguruprofiler","codepipeline","codestarconnections","codestarnotifications","codestar","cognitoidentity","cognitoidentityprovider","cognitosync","comprehend","comprehendmedical","computeoptimizer","config","connectcontactlens","connect","connectparticipant","costandusagereport","customerprofiles","databrew","dataexchange","datapipeline","datasync","dax","detective","devicefarm","devopsguru","directconnect","applicationdiscovery","dlm","databasemigration","docdb","directory","dynamodb","ebs","ec2instanceconnect","ec2","ecrpublic","ecr","ecs","eks","elasticinference","elasticache","elasticbeanstalk","efs","elasticloadbalancing","elasticloadbalancingv2","emr","elastictranscoder","ses","emrcontainers","marketplaceentitlement","elasticsearch","eventbridge","cloudwatchevents","finspacedata","finspace","firehose","fis","fms","forecast","forecastquery","frauddetector","fsx","gamelift","globalaccelerator","glue","greengrass","greengrassv2","groundstation","guardduty","health","healthlake","honeycode","iam","identitystore","imagebuilder","inspector","iotdataplane","iotjobsdataplane","iot","iot1clickdevices","iot1clickprojects","iotanalytics","iotdeviceadvisor","ioteventsdata","iotevents","iotfleethub","iotsecuretunneling","iotsitewise","iotthingsgraph","iotwireless","ivs","kafka","kendra","kinesisvideoarchivedmedia","kinesisvideomedia","kinesisvideosignaling","kinesis","kinesisanalytics","kinesisanalyticsv2","kinesisvideo","kms","lakeformation","lambda","lexmodelbuilding","licensemanager","lightsail","location","cloudwatchlogs","lookoutequipment","lookoutmetrics","lookoutvision","machinelearning","macie","macie2","managedblockchain","marketplacecatalog","marketplacecommerceanalytics","mediaconnect","mediaconvert","medialive","mediapackagevod","mediapackage","mediastoredata","mediastore","mediatailor","marketplacemetering","mgn","migrationhubconfig","mobile","lexmodelsv2","cloudwatch","mq","mturk","mwaa","neptune","networkfirewall","networkmanager","nimble","opsworks","opsworkscm","organizations","outposts","personalizeevents","personalizeruntime","personalize","pi","pinpointemail","pinpoint","polly","pricing","proton","qldbsession","qldb","quicksight","ram","rdsdata","rds","redshiftdata","redshift","rekognition","resourcegroups","resourcegroupstagging","robomaker","route53recoverycluster","route53recoverycontrolconfig","route53recoveryreadiness","route53","route53domains","route53resolver","lexruntime","lexruntimev2","sagemakerruntime","s3","s3control","s3outposts","sagemakera2iruntime","sagemakeredge","sagemakerfeaturestoreruntime","sagemaker","savingsplans","schemas","secretsmanager","securityhub","serverlessapplicationrepository","servicequotas","servicecatalogappregistry","servicecatalog","servicediscovery","sesv2","shield","signer","pinpointsmsvoice","sms","snowdevicemanagement","snowball","sns","sqs","ssmcontacts","ssmincidents","ssm","ssoadmin","ssooidc","sso","sfn","storagegateway","dynamodbstreams","sts","support","swf","synthetics","textract","transcribe","transfer","translate","wafregional","waf","wafv2","wellarchitected","workdocs","worklink","workmail","workmailmessageflow","workspaces","xray","protocol-test-helpers","smithy-async","smithy-client","smithy-eventstream","smithy-http","smithy-http-tower","smithy-json","smithy-query","smithy-types","smithy-xml","aws-auth","aws-auth-providers","aws-endpoint","aws-http","aws-hyper","aws-sig-auth","aws-sigv4","aws-types","examples/mediapackage","examples/cloudwatch","examples/lambda","examples/autoscalingplans","examples/kms","examples/cognitosync","examples/snowball","examples/applicationautoscaling","examples/eks","examples/route53","examples/sqs","examples/ses","examples/autoscaling","examples/ecr","examples/sts","examples/qldb","examples/rds","examples/sagemaker","examples/dynamodb","examples/rdsdata","examples/s3","examples/cloudwatchlogs","examples/ec2","examples/cloudformation","examples/cognitoidentity","examples/iam","examples/cognitoidentityprovider","examples/polly","examples/sns","examples/ssm","examples/medialive","examples/config","examples/ecs","examples/secretsmanager","examples/ebs","examples/batch","examples/kinesis"
]
2 changes: 1 addition & 1 deletion sdk/accessanalyzer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
[package]
name = "aws-sdk-accessanalyzer"
version = "0.0.15-alpha"
version = "0.0.16-alpha"
description = "<p>AWS IAM Access Analyzer helps identify potential resource-access risks by enabling you to identify\n any policies that grant access to an external principal. It does this by using logic-based\n reasoning to analyze resource-based policies in your AWS environment. An external\n principal can be another AWS account, a root user, an IAM user or role, a federated\n user, an AWS service, or an anonymous user. You can also use Access Analyzer to preview and\n validate public and cross-account access to your resources before deploying permissions\n changes. This guide describes the AWS IAM Access Analyzer operations that you can call\n programmatically. For general information about Access Analyzer, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html\">AWS IAM Access Analyzer</a> in the <b>IAM User Guide</b>.</p>\n <p>To start using Access Analyzer, you first need to create an analyzer.</p>"
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
license = "Apache-2.0"
Expand Down
30 changes: 17 additions & 13 deletions sdk/accessanalyzer/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ pub enum PathElement {
Value(std::string::String),
}
impl PathElement {
pub fn as_index(&self) -> Result<&i32, &Self> {
pub fn as_index(&self) -> std::result::Result<&i32, &Self> {
if let PathElement::Index(val) = &self {
Ok(&val)
} else {
Expand All @@ -1184,7 +1184,7 @@ impl PathElement {
pub fn is_index(&self) -> bool {
self.as_index().is_ok()
}
pub fn as_key(&self) -> Result<&std::string::String, &Self> {
pub fn as_key(&self) -> std::result::Result<&std::string::String, &Self> {
if let PathElement::Key(val) = &self {
Ok(&val)
} else {
Expand All @@ -1194,7 +1194,7 @@ impl PathElement {
pub fn is_key(&self) -> bool {
self.as_key().is_ok()
}
pub fn as_substring(&self) -> Result<&crate::model::Substring, &Self> {
pub fn as_substring(&self) -> std::result::Result<&crate::model::Substring, &Self> {
if let PathElement::Substring(val) = &self {
Ok(&val)
} else {
Expand All @@ -1204,7 +1204,7 @@ impl PathElement {
pub fn is_substring(&self) -> bool {
self.as_substring().is_ok()
}
pub fn as_value(&self) -> Result<&std::string::String, &Self> {
pub fn as_value(&self) -> std::result::Result<&std::string::String, &Self> {
if let PathElement::Value(val) = &self {
Ok(&val)
} else {
Expand Down Expand Up @@ -4708,7 +4708,7 @@ pub enum Configuration {
SqsQueue(crate::model::SqsQueueConfiguration),
}
impl Configuration {
pub fn as_iam_role(&self) -> Result<&crate::model::IamRoleConfiguration, &Self> {
pub fn as_iam_role(&self) -> std::result::Result<&crate::model::IamRoleConfiguration, &Self> {
if let Configuration::IamRole(val) = &self {
Ok(&val)
} else {
Expand All @@ -4718,7 +4718,7 @@ impl Configuration {
pub fn is_iam_role(&self) -> bool {
self.as_iam_role().is_ok()
}
pub fn as_kms_key(&self) -> Result<&crate::model::KmsKeyConfiguration, &Self> {
pub fn as_kms_key(&self) -> std::result::Result<&crate::model::KmsKeyConfiguration, &Self> {
if let Configuration::KmsKey(val) = &self {
Ok(&val)
} else {
Expand All @@ -4728,7 +4728,7 @@ impl Configuration {
pub fn is_kms_key(&self) -> bool {
self.as_kms_key().is_ok()
}
pub fn as_s3_bucket(&self) -> Result<&crate::model::S3BucketConfiguration, &Self> {
pub fn as_s3_bucket(&self) -> std::result::Result<&crate::model::S3BucketConfiguration, &Self> {
if let Configuration::S3Bucket(val) = &self {
Ok(&val)
} else {
Expand All @@ -4740,7 +4740,7 @@ impl Configuration {
}
pub fn as_secrets_manager_secret(
&self,
) -> Result<&crate::model::SecretsManagerSecretConfiguration, &Self> {
) -> std::result::Result<&crate::model::SecretsManagerSecretConfiguration, &Self> {
if let Configuration::SecretsManagerSecret(val) = &self {
Ok(&val)
} else {
Expand All @@ -4750,7 +4750,7 @@ impl Configuration {
pub fn is_secrets_manager_secret(&self) -> bool {
self.as_secrets_manager_secret().is_ok()
}
pub fn as_sqs_queue(&self) -> Result<&crate::model::SqsQueueConfiguration, &Self> {
pub fn as_sqs_queue(&self) -> std::result::Result<&crate::model::SqsQueueConfiguration, &Self> {
if let Configuration::SqsQueue(val) = &self {
Ok(&val)
} else {
Expand Down Expand Up @@ -5076,7 +5076,9 @@ pub enum NetworkOriginConfiguration {
VpcConfiguration(crate::model::VpcConfiguration),
}
impl NetworkOriginConfiguration {
pub fn as_internet_configuration(&self) -> Result<&crate::model::InternetConfiguration, &Self> {
pub fn as_internet_configuration(
&self,
) -> std::result::Result<&crate::model::InternetConfiguration, &Self> {
if let NetworkOriginConfiguration::InternetConfiguration(val) = &self {
Ok(&val)
} else {
Expand All @@ -5086,7 +5088,9 @@ impl NetworkOriginConfiguration {
pub fn is_internet_configuration(&self) -> bool {
self.as_internet_configuration().is_ok()
}
pub fn as_vpc_configuration(&self) -> Result<&crate::model::VpcConfiguration, &Self> {
pub fn as_vpc_configuration(
&self,
) -> std::result::Result<&crate::model::VpcConfiguration, &Self> {
if let NetworkOriginConfiguration::VpcConfiguration(val) = &self {
Ok(&val)
} else {
Expand Down Expand Up @@ -5324,7 +5328,7 @@ pub enum AclGrantee {
Uri(std::string::String),
}
impl AclGrantee {
pub fn as_id(&self) -> Result<&std::string::String, &Self> {
pub fn as_id(&self) -> std::result::Result<&std::string::String, &Self> {
if let AclGrantee::Id(val) = &self {
Ok(&val)
} else {
Expand All @@ -5334,7 +5338,7 @@ impl AclGrantee {
pub fn is_id(&self) -> bool {
self.as_id().is_ok()
}
pub fn as_uri(&self) -> Result<&std::string::String, &Self> {
pub fn as_uri(&self) -> std::result::Result<&std::string::String, &Self> {
if let AclGrantee::Uri(val) = &self {
Ok(&val)
} else {
Expand Down
2 changes: 1 addition & 1 deletion sdk/acm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
[package]
name = "aws-sdk-acm"
version = "0.0.15-alpha"
version = "0.0.16-alpha"
description = "<fullname>Amazon Web Services Certificate Manager</fullname>\n <p>You can use Amazon Web Services Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon Web Services-based websites\n and applications. For more information about using ACM, see the <a href=\"https://docs.aws.amazon.com/acm/latest/userguide/\">Amazon Web Services Certificate Manager User Guide</a>.</p>"
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion sdk/acmpca/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
[package]
name = "aws-sdk-acmpca"
version = "0.0.15-alpha"
version = "0.0.16-alpha"
description = "<p>This is the <i>ACM Private CA API Reference</i>. It provides descriptions,\n\t\t\tsyntax, and usage examples for each of the actions and data types involved in creating\n\t\t\tand managing private certificate authorities (CA) for your organization.</p>\n\t\t <p>The documentation for each action shows the Query API request parameters and the XML\n\t\t\tresponse. Alternatively, you can use one of the AWS SDKs to access an API that's\n\t\t\ttailored to the programming language or platform that you're using. For more\n\t\t\tinformation, see <a href=\"https://aws.amazon.com/tools/#SDKs\">AWS\n\t\t\tSDKs</a>.</p>\n\t\t <note>\n\t\t\t <p>Each ACM Private CA API action has a quota that determines the number of times the action\n\t\t\t\tcan be called per second. For more information, see <a href=\"https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaLimits.html#PcaLimits-api\">API Rate Quotas in ACM Private CA</a>\n\t\t\t\tin the ACM Private CA user guide.</p>\n\t\t </note>"
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
license = "Apache-2.0"
Expand Down
Loading

0 comments on commit dab3b0a

Please sign in to comment.