Skip to content

Commit d0e8048

Browse files
Update SDK models
1 parent b737230 commit d0e8048

File tree

158 files changed

+17652
-1185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+17652
-1185
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[workspace]
22
resolver = "2"
33
exclude = [
4-
"examples/webassembly",
54
"examples/lambda",
5+
"examples/examples",
66
"examples/cross_service",
7+
"examples/webassembly",
78
"examples/test-utils",
8-
"examples/examples",
99
"tests/webassembly",
1010
"tests/no-default-features"
1111
]

aws-models/codeartifact.json

Lines changed: 2045 additions & 579 deletions
Large diffs are not rendered by default.

examples/examples/cloudwatchlogs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ path = "../../test-utils"
3232
version = "0.1.0"
3333

3434
[dev-dependencies]
35-
aws-smithy-mocks-experimental = { version = "0.1.1", path = "../../../sdk/aws-smithy-mocks-experimental" }
35+
aws-smithy-mocks-experimental= { version = "0.1.1", path = "../../../sdk/aws-smithy-mocks-experimental" }

sdk/codeartifact/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-codeartifact"
4-
version = "1.17.0"
4+
version = "1.18.0"
55
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
66
description = "AWS SDK for CodeArtifact"
77
edition = "2021"

sdk/codeartifact/README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,71 @@
22

33
CodeArtifact is a fully managed artifact repository compatible with language-native package managers and build tools such as npm, Apache Maven, pip, and dotnet. You can use CodeArtifact to share packages with development teams and pull packages. Packages can be pulled from both public and CodeArtifact repositories. You can also create an upstream relationship between a CodeArtifact repository and another repository, which effectively merges their contents from the point of view of a package manager client.
44

5-
__CodeArtifact Components__
6-
7-
Use the information in this guide to help you work with the following CodeArtifact components:
8-
- __Repository__: A CodeArtifact repository contains a set of [package versions](https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html#welcome-concepts-package-version), each of which maps to a set of assets, or files. Repositories are polyglot, so a single repository can contain packages of any supported type. Each repository exposes endpoints for fetching and publishing packages using tools like the __ npm __ CLI, the Maven CLI (__ mvn __), Python CLIs (__ pip __ and twine), and NuGet CLIs (nuget and dotnet).
5+
__CodeArtifact concepts__
6+
- __Repository__: A CodeArtifact repository contains a set of [package versions](https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html#welcome-concepts-package-version), each of which maps to a set of assets, or files. Repositories are polyglot, so a single repository can contain packages of any supported type. Each repository exposes endpoints for fetching and publishing packages using tools like the __ npm __ CLI, the Maven CLI (__ mvn __), Python CLIs (__ pip __ and twine), NuGet CLIs (nuget and dotnet), and the Swift package manager (__ swift __).
97
- __Domain__: Repositories are aggregated into a higher-level entity known as a _domain_. All package assets and metadata are stored in the domain, but are consumed through repositories. A given package asset, such as a Maven JAR file, is stored once per domain, no matter how many repositories it's present in. All of the assets and metadata in a domain are encrypted with the same customer master key (CMK) stored in Key Management Service (KMS). Each repository is a member of a single domain and can't be moved to a different domain. The domain allows organizational policy to be applied across multiple repositories, such as which accounts can access repositories in the domain, and which public repositories can be used as sources of packages. Although an organization can have multiple domains, we recommend a single production domain that contains all published artifacts so that teams can find and share packages across their organization.
10-
- __Package__: A _package_ is a bundle of software and the metadata required to resolve dependencies and install the software. CodeArtifact supports [npm](https://docs.aws.amazon.com/codeartifact/latest/ug/using-npm.html), [PyPI](https://docs.aws.amazon.com/codeartifact/latest/ug/using-python.html), [Maven](https://docs.aws.amazon.com/codeartifact/latest/ug/using-maven), and [NuGet](https://docs.aws.amazon.com/codeartifact/latest/ug/using-nuget) package formats. In CodeArtifact, a package consists of:
8+
- __Package__: A _package_ is a bundle of software and the metadata required to resolve dependencies and install the software. CodeArtifact supports [npm](https://docs.aws.amazon.com/codeartifact/latest/ug/using-npm.html), [PyPI](https://docs.aws.amazon.com/codeartifact/latest/ug/using-python.html), [Maven](https://docs.aws.amazon.com/codeartifact/latest/ug/using-maven), [NuGet](https://docs.aws.amazon.com/codeartifact/latest/ug/using-nuget), [Swift](https://docs.aws.amazon.com/codeartifact/latest/ug/using-swift), and [generic](https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic) package formats. In CodeArtifact, a package consists of:
119
- A _name_ (for example, webpack is the name of a popular npm package)
1210
- An optional namespace (for example, @types in @types/node)
1311
- A set of versions (for example, 1.0.0, 1.0.1, 1.0.2, etc.)
1412
- Package-level metadata (for example, npm tags)
1513

14+
- __Package group__: A group of packages that match a specified definition. Package groups can be used to apply configuration to multiple packages that match a defined pattern using package format, package namespace, and package name. You can use package groups to more conveniently configure package origin controls for multiple packages. Package origin controls are used to block or allow ingestion or publishing of new package versions, which protects users from malicious actions known as dependency substitution attacks.
1615
- __Package version__: A version of a package, such as @types/node 12.6.9. The version number format and semantics vary for different package formats. For example, npm package versions must conform to the [Semantic Versioning specification](https://semver.org/). In CodeArtifact, a package version consists of the version identifier, metadata at the package version level, and a set of assets.
1716
- __Upstream repository__: One repository is _upstream_ of another when the package versions in it can be accessed from the repository endpoint of the downstream repository, effectively merging the contents of the two repositories from the point of view of a client. CodeArtifact allows creating an upstream relationship between two repositories.
1817
- __Asset__: An individual file stored in CodeArtifact associated with a package version, such as an npm .tgz file or Maven POM and JAR files.
1918

20-
CodeArtifact supports these operations:
19+
__CodeArtifact supported API operations__
2120
- AssociateExternalConnection: Adds an existing external connection to a repository.
2221
- CopyPackageVersions: Copies package versions from one repository to another repository in the same domain.
23-
- CreateDomain: Creates a domain
22+
- CreateDomain: Creates a domain.
23+
- CreatePackageGroup: Creates a package group.
2424
- CreateRepository: Creates a CodeArtifact repository in a domain.
2525
- DeleteDomain: Deletes a domain. You cannot delete a domain that contains repositories.
2626
- DeleteDomainPermissionsPolicy: Deletes the resource policy that is set on a domain.
2727
- DeletePackage: Deletes a package and all associated package versions.
28+
- DeletePackageGroup: Deletes a package group. Does not delete packages or package versions that are associated with a package group.
2829
- DeletePackageVersions: Deletes versions of a package. After a package has been deleted, it can be republished, but its assets and metadata cannot be restored because they have been permanently removed from storage.
2930
- DeleteRepository: Deletes a repository.
3031
- DeleteRepositoryPermissionsPolicy: Deletes the resource policy that is set on a repository.
3132
- DescribeDomain: Returns a DomainDescription object that contains information about the requested domain.
3233
- DescribePackage: Returns a [PackageDescription](https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDescription.html) object that contains details about a package.
34+
- DescribePackageGroup: Returns a [PackageGroup](https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageGroup.html) object that contains details about a package group.
3335
- DescribePackageVersion: Returns a [PackageVersionDescription](https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html) object that contains details about a package version.
3436
- DescribeRepository: Returns a RepositoryDescription object that contains detailed information about the requested repository.
3537
- DisposePackageVersions: Disposes versions of a package. A package version with the status Disposed cannot be restored because they have been permanently removed from storage.
3638
- DisassociateExternalConnection: Removes an existing external connection from a repository.
39+
- GetAssociatedPackageGroup: Returns the most closely associated package group to the specified package.
3740
- GetAuthorizationToken: Generates a temporary authorization token for accessing repositories in the domain. The token expires the authorization period has passed. The default authorization period is 12 hours and can be customized to any length with a maximum of 12 hours.
3841
- GetDomainPermissionsPolicy: Returns the policy of a resource that is attached to the specified domain.
3942
- GetPackageVersionAsset: Returns the contents of an asset that is in a package version.
4043
- GetPackageVersionReadme: Gets the readme file or descriptive text for a package version.
4144
- GetRepositoryEndpoint: Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:
45+
- generic
4246
- maven
4347
- npm
4448
- nuget
4549
- pypi
50+
- swift
4651

4752
- GetRepositoryPermissionsPolicy: Returns the resource policy that is set on a repository.
53+
- ListAllowedRepositoriesForGroup: Lists the allowed repositories for a package group that has origin configuration set to ALLOW_SPECIFIC_REPOSITORIES.
54+
- ListAssociatedPackages: Returns a list of packages associated with the requested package group.
4855
- ListDomains: Returns a list of DomainSummary objects. Each returned DomainSummary object contains information about a domain.
4956
- ListPackages: Lists the packages in a repository.
57+
- ListPackageGroups: Returns a list of package groups in the requested domain.
5058
- ListPackageVersionAssets: Lists the assets for a given package version.
5159
- ListPackageVersionDependencies: Returns a list of the direct dependencies for a package version.
5260
- ListPackageVersions: Returns a list of package versions for a specified package in a repository.
5361
- ListRepositories: Returns a list of repositories owned by the Amazon Web Services account that called this method.
5462
- ListRepositoriesInDomain: Returns a list of the repositories in a domain.
63+
- ListSubPackageGroups: Returns a list of direct children of the specified package group.
5564
- PublishPackageVersion: Creates a new package version containing one or more assets.
5665
- PutDomainPermissionsPolicy: Attaches a resource policy to a domain.
5766
- PutPackageOriginConfiguration: Sets the package origin configuration for a package, which determine how new versions of the package can be added to a specific repository.
5867
- PutRepositoryPermissionsPolicy: Sets the resource policy on a repository that specifies permissions to access it.
68+
- UpdatePackageGroup: Updates a package group. This API cannot be used to update a package group's origin configuration or pattern.
69+
- UpdatePackageGroupOriginConfiguration: Updates the package origin configuration for a package group.
5970
- UpdatePackageVersionsStatus: Updates the status of one or more versions of a package.
6071
- UpdateRepository: Updates the properties of a repository.
6172

@@ -71,7 +82,7 @@ your project, add the following to your **Cargo.toml** file:
7182
```toml
7283
[dependencies]
7384
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
74-
aws-sdk-codeartifact = "1.17.0"
85+
aws-sdk-codeartifact = "1.18.0"
7586
tokio = { version = "1", features = ["full"] }
7687
```
7788

sdk/codeartifact/src/client.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ mod copy_package_versions;
142142

143143
mod create_domain;
144144

145+
mod create_package_group;
146+
145147
mod create_repository;
146148

147149
/// Operation customization and supporting types.
@@ -177,6 +179,8 @@ mod delete_domain_permissions_policy;
177179

178180
mod delete_package;
179181

182+
mod delete_package_group;
183+
180184
mod delete_package_versions;
181185

182186
mod delete_repository;
@@ -187,6 +191,8 @@ mod describe_domain;
187191

188192
mod describe_package;
189193

194+
mod describe_package_group;
195+
190196
mod describe_package_version;
191197

192198
mod describe_repository;
@@ -195,6 +201,8 @@ mod disassociate_external_connection;
195201

196202
mod dispose_package_versions;
197203

204+
mod get_associated_package_group;
205+
198206
mod get_authorization_token;
199207

200208
mod get_domain_permissions_policy;
@@ -207,8 +215,14 @@ mod get_repository_endpoint;
207215

208216
mod get_repository_permissions_policy;
209217

218+
mod list_allowed_repositories_for_group;
219+
220+
mod list_associated_packages;
221+
210222
mod list_domains;
211223

224+
mod list_package_groups;
225+
212226
mod list_package_version_assets;
213227

214228
mod list_package_version_dependencies;
@@ -221,6 +235,8 @@ mod list_repositories;
221235

222236
mod list_repositories_in_domain;
223237

238+
mod list_sub_package_groups;
239+
224240
mod list_tags_for_resource;
225241

226242
mod publish_package_version;
@@ -235,6 +251,10 @@ mod tag_resource;
235251

236252
mod untag_resource;
237253

254+
mod update_package_group;
255+
256+
mod update_package_group_origin_configuration;
257+
238258
mod update_package_versions_status;
239259

240260
mod update_repository;

sdk/codeartifact/src/client/copy_package_versions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ impl super::Client {
88
/// - [`source_repository(impl Into<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::source_repository) / [`set_source_repository(Option<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::set_source_repository):<br>required: **true**<br><p>The name of the repository that contains the package versions to be copied.</p><br>
99
/// - [`destination_repository(impl Into<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::destination_repository) / [`set_destination_repository(Option<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::set_destination_repository):<br>required: **true**<br><p>The name of the repository into which package versions are copied.</p><br>
1010
/// - [`format(PackageFormat)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::format) / [`set_format(Option<PackageFormat>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::set_format):<br>required: **true**<br><p>The format of the package versions to be copied.</p><br>
11-
/// - [`namespace(impl Into<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::namespace) / [`set_namespace(Option<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::set_namespace):<br>required: **false**<br><p>The namespace of the package versions to be copied. The package version component that specifies its namespace depends on its type. For example:</p> <ul> <li> <p>The namespace of a Maven package version is its <code>groupId</code>. The namespace is required when copying Maven package versions.</p></li> <li> <p>The namespace of an npm package version is its <code>scope</code>.</p></li> <li> <p>Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.</p></li> <li> <p>The namespace of a generic package is its <code>namespace</code>.</p></li> </ul><br>
11+
/// - [`namespace(impl Into<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::namespace) / [`set_namespace(Option<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::set_namespace):<br>required: **false**<br><p>The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example:</p><note> <p>The namespace is required when copying package versions of the following formats:</p> <ul> <li> <p>Maven</p></li> <li> <p>Swift</p></li> <li> <p>generic</p></li> </ul> </note> <ul> <li> <p>The namespace of a Maven package version is its <code>groupId</code>.</p></li> <li> <p>The namespace of an npm or Swift package version is its <code>scope</code>.</p></li> <li> <p>The namespace of a generic package is its <code>namespace</code>.</p></li> <li> <p>Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.</p></li> </ul><br>
1212
/// - [`package(impl Into<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::package) / [`set_package(Option<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::set_package):<br>required: **true**<br><p>The name of the package that contains the versions to be copied.</p><br>
1313
/// - [`versions(impl Into<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::versions) / [`set_versions(Option<Vec::<String>>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::set_versions):<br>required: **false**<br><p>The versions of the package to be copied.</p><note> <p>You must specify <code>versions</code> or <code>versionRevisions</code>. You cannot specify both.</p> </note><br>
1414
/// - [`version_revisions(impl Into<String>, impl Into<String>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::version_revisions) / [`set_version_revisions(Option<HashMap::<String, String>>)`](crate::operation::copy_package_versions::builders::CopyPackageVersionsFluentBuilder::set_version_revisions):<br>required: **false**<br><p>A list of key-value pairs. The keys are package versions and the values are package version revisions. A <code>CopyPackageVersion</code> operation succeeds if the specified versions in the source repository match the specified package version revision.</p><note> <p>You must specify <code>versions</code> or <code>versionRevisions</code>. You cannot specify both.</p> </note><br>

0 commit comments

Comments
 (0)