diff --git a/codegen/sdk-codegen/aws-models/codeartifact.json b/codegen/sdk-codegen/aws-models/codeartifact.json index 09c020f5532..3aef470d06a 100644 --- a/codegen/sdk-codegen/aws-models/codeartifact.json +++ b/codegen/sdk-codegen/aws-models/codeartifact.json @@ -250,6 +250,44 @@ "smithy.api#output": {} } }, + "com.amazonaws.codeartifact#AssociatedPackage": { + "type": "structure", + "members": { + "format": { + "target": "com.amazonaws.codeartifact#PackageFormat", + "traits": { + "smithy.api#documentation": "

A format that specifies the type of the associated package.

" + } + }, + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of the associated package. The package component that specifies its \n namespace depends on its type. For example:

\n " + } + }, + "package": { + "target": "com.amazonaws.codeartifact#PackageName", + "traits": { + "smithy.api#documentation": "

\n The name of the associated package.\n

" + } + }, + "associationType": { + "target": "com.amazonaws.codeartifact#PackageGroupAssociationType", + "traits": { + "smithy.api#documentation": "

Describes the strength of the association between the package and package group. A strong match can be thought of as an \n exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. \n For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior \n in the CodeArtifact User Guide.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n A package associated with a package group.\n

" + } + }, + "com.amazonaws.codeartifact#AssociatedPackageList": { + "type": "list", + "member": { + "target": "com.amazonaws.codeartifact#AssociatedPackage" + } + }, "com.amazonaws.codeartifact#AuthorizationTokenDurationSeconds": { "type": "long", "traits": { @@ -275,6 +313,9 @@ { "target": "com.amazonaws.codeartifact#CreateDomain" }, + { + "target": "com.amazonaws.codeartifact#CreatePackageGroup" + }, { "target": "com.amazonaws.codeartifact#CreateRepository" }, @@ -287,6 +328,9 @@ { "target": "com.amazonaws.codeartifact#DeletePackage" }, + { + "target": "com.amazonaws.codeartifact#DeletePackageGroup" + }, { "target": "com.amazonaws.codeartifact#DeletePackageVersions" }, @@ -302,6 +346,9 @@ { "target": "com.amazonaws.codeartifact#DescribePackage" }, + { + "target": "com.amazonaws.codeartifact#DescribePackageGroup" + }, { "target": "com.amazonaws.codeartifact#DescribePackageVersion" }, @@ -314,6 +361,9 @@ { "target": "com.amazonaws.codeartifact#DisposePackageVersions" }, + { + "target": "com.amazonaws.codeartifact#GetAssociatedPackageGroup" + }, { "target": "com.amazonaws.codeartifact#GetAuthorizationToken" }, @@ -332,9 +382,18 @@ { "target": "com.amazonaws.codeartifact#GetRepositoryPermissionsPolicy" }, + { + "target": "com.amazonaws.codeartifact#ListAllowedRepositoriesForGroup" + }, + { + "target": "com.amazonaws.codeartifact#ListAssociatedPackages" + }, { "target": "com.amazonaws.codeartifact#ListDomains" }, + { + "target": "com.amazonaws.codeartifact#ListPackageGroups" + }, { "target": "com.amazonaws.codeartifact#ListPackages" }, @@ -353,6 +412,9 @@ { "target": "com.amazonaws.codeartifact#ListRepositoriesInDomain" }, + { + "target": "com.amazonaws.codeartifact#ListSubPackageGroups" + }, { "target": "com.amazonaws.codeartifact#ListTagsForResource" }, @@ -374,6 +436,12 @@ { "target": "com.amazonaws.codeartifact#UntagResource" }, + { + "target": "com.amazonaws.codeartifact#UpdatePackageGroup" + }, + { + "target": "com.amazonaws.codeartifact#UpdatePackageGroupOriginConfiguration" + }, { "target": "com.amazonaws.codeartifact#UpdatePackageVersionsStatus" }, @@ -393,7 +461,7 @@ "name": "codeartifact" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

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

\n

\n CodeArtifact Components\n

\n

Use the information in this guide to help you work with the following CodeArtifact components:

\n \n

CodeArtifact supports these operations:

\n ", + "smithy.api#documentation": "

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

\n

\n CodeArtifact concepts\n

\n \n

\n CodeArtifact supported API operations\n

\n ", "smithy.api#title": "CodeArtifact", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -437,7 +505,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -480,7 +547,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -493,7 +561,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -507,7 +574,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -530,7 +596,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -565,7 +630,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -576,14 +640,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -597,14 +663,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -613,11 +677,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -628,14 +692,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -649,7 +715,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -669,7 +734,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -680,14 +744,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -698,9 +764,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -1294,7 +1362,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package versions to be copied. The package version component that specifies its \n namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example:

\n \n

The namespace is required when copying package versions of the following formats:

\n \n
\n ", "smithy.api#httpQuery": "namespace" } }, @@ -1437,6 +1505,108 @@ "smithy.api#output": {} } }, + "com.amazonaws.codeartifact#CreatePackageGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#CreatePackageGroupRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#CreatePackageGroupResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#ConflictException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Creates a package group. For more information about creating package groups, including example CLI commands, see Create a package group in the CodeArtifact User Guide.\n

", + "smithy.api#http": { + "method": "POST", + "uri": "/v1/package-group", + "code": 200 + } + } + }, + "com.amazonaws.codeartifact#CreatePackageGroupRequest": { + "type": "structure", + "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The name of the domain in which you want to create a package group.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", + "traits": { + "smithy.api#documentation": "

The pattern of the package group to create. The pattern is also the identifier of the package group.

", + "smithy.api#required": {} + } + }, + "contactInfo": { + "target": "com.amazonaws.codeartifact#PackageGroupContactInfo", + "traits": { + "smithy.api#documentation": "

\n The contact information for the created package group.\n

" + } + }, + "description": { + "target": "com.amazonaws.codeartifact#Description", + "traits": { + "smithy.api#documentation": "

\n A description of the package group.\n

" + } + }, + "tags": { + "target": "com.amazonaws.codeartifact#TagList", + "traits": { + "smithy.api#documentation": "

One or more tag key-value pairs for the package group.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#CreatePackageGroupResult": { + "type": "structure", + "members": { + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupDescription", + "traits": { + "smithy.api#documentation": "

\n Information about the created package group after processing the request.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.codeartifact#CreateRepository": { "type": "operation", "input": { @@ -1498,7 +1668,7 @@ "repository": { "target": "com.amazonaws.codeartifact#RepositoryName", "traits": { - "smithy.api#documentation": "

The name of the repository to create.

", + "smithy.api#documentation": "

The name of the repository to create.

", "smithy.api#httpQuery": "repository", "smithy.api#required": {} } @@ -1721,7 +1891,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a package and all associated package versions. A deleted package cannot be restored. To delete one or more package versions, use the\n DeletePackageVersions API.

", + "smithy.api#documentation": "

Deletes a package and all associated package versions. A deleted package cannot be restored. To delete one or more package versions, use the\n DeletePackageVersions API.

", "smithy.api#http": { "method": "DELETE", "uri": "/v1/package", @@ -1729,6 +1899,92 @@ } } }, + "com.amazonaws.codeartifact#DeletePackageGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#DeletePackageGroupRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#DeletePackageGroupResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#ConflictException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a package group. \n Deleting a package group does not delete packages or package versions associated with the package group. \n When a package group is deleted, the direct child package groups will become children of the package \n group's direct parent package group. Therefore, if any of the child groups are inheriting any settings \n from the parent, those settings could change.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/package-group", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.codeartifact#DeletePackageGroupRequest": { + "type": "structure", + "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The domain that contains the package group to be deleted.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "packageGroup": { + "target": "com.amazonaws.codeartifact#String", + "traits": { + "smithy.api#documentation": "

The pattern of the package group to be deleted.

", + "smithy.api#httpQuery": "package-group", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#DeletePackageGroupResult": { + "type": "structure", + "members": { + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupDescription", + "traits": { + "smithy.api#documentation": "

\n Information about the deleted package group after processing the request.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.codeartifact#DeletePackageRequest": { "type": "structure", "members": { @@ -1766,7 +2022,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package to delete. The package component that specifies its namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the package to delete. The package component that specifies its namespace depends on its type. For example:

\n \n

The namespace is required when deleting packages of the following formats:

\n \n
\n ", "smithy.api#httpQuery": "namespace" } }, @@ -1868,7 +2124,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package versions to be deleted. The package version component that specifies its \n namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the package versions to be deleted. The package component that specifies its namespace depends on its type. For example:

\n \n

The namespace is required when deleting package versions of the following formats:

\n \n
\n ", "smithy.api#httpQuery": "namespace" } }, @@ -2191,13 +2447,47 @@ } } }, - "com.amazonaws.codeartifact#DescribePackageRequest": { + "com.amazonaws.codeartifact#DescribePackageGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#DescribePackageGroupRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#DescribePackageGroupResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a PackageGroupDescription object that \n contains information about the requested package group.

", + "smithy.api#http": { + "method": "GET", + "uri": "/v1/package-group", + "code": 200 + } + } + }, + "com.amazonaws.codeartifact#DescribePackageGroupRequest": { "type": "structure", "members": { "domain": { "target": "com.amazonaws.codeartifact#DomainName", "traits": { - "smithy.api#documentation": "

The name of the domain that contains the repository that contains the package.

", + "smithy.api#documentation": "

\n The name of the domain that contains the package group. \n

", "smithy.api#httpQuery": "domain", "smithy.api#required": {} } @@ -2209,14 +2499,59 @@ "smithy.api#httpQuery": "domain-owner" } }, - "repository": { - "target": "com.amazonaws.codeartifact#RepositoryName", + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", "traits": { - "smithy.api#documentation": "

The name of the repository that contains the requested package.

", - "smithy.api#httpQuery": "repository", + "smithy.api#documentation": "

The pattern of the requested package group.

", + "smithy.api#httpQuery": "package-group", "smithy.api#required": {} } - }, + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#DescribePackageGroupResult": { + "type": "structure", + "members": { + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupDescription", + "traits": { + "smithy.api#documentation": "

A PackageGroupDescription object \n that contains information about the requested package group.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.codeartifact#DescribePackageRequest": { + "type": "structure", + "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

The name of the domain that contains the repository that contains the package.

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "repository": { + "target": "com.amazonaws.codeartifact#RepositoryName", + "traits": { + "smithy.api#documentation": "

The name of the repository that contains the requested package.

", + "smithy.api#httpQuery": "repository", + "smithy.api#required": {} + } + }, "format": { "target": "com.amazonaws.codeartifact#PackageFormat", "traits": { @@ -2228,7 +2563,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the requested package. The package component that specifies its \n namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the requested package. The package component that specifies its namespace depends on its type. For example:

\n \n

The namespace is required when requesting packages of the following formats:

\n \n
\n ", "smithy.api#httpQuery": "namespace" } }, @@ -2334,7 +2669,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the requested package version. The package version component that specifies its \n namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the requested package version. The package component that specifies its \n namespace depends on its type. For example:

\n \n

The namespace is required when requesting package versions of the following formats:

\n \n
\n ", "smithy.api#httpQuery": "namespace" } }, @@ -2630,7 +2965,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package versions to be disposed. The package version component that specifies its \n namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the package versions to be disposed. The package component that specifies its \n namespace depends on its type. For example:

\n \n

The namespace is required when disposing package versions of the following formats:

\n \n
\n ", "smithy.api#httpQuery": "namespace" } }, @@ -2767,7 +3102,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about how a package originally entered the CodeArtifact domain. For packages published directly to CodeArtifact, the entry point is the repository it was published to. \n For packages ingested from an external repository, the entry point is the external connection that it was ingested from. An external \n connection is a CodeArtifact repository that is connected to an external repository such as the npm registry or NuGet gallery.

" + "smithy.api#documentation": "

Information about how a package originally entered the CodeArtifact domain. For packages published directly to CodeArtifact, the entry point is the repository it was published to. \n For packages ingested from an external repository, the entry point is the external connection that it was ingested from. An external \n connection is a CodeArtifact repository that is connected to an external repository such as the npm registry or NuGet gallery.

\n \n

If a package version exists in a repository and is updated, for example if a package of the same version is added \n with additional assets, the package version's DomainEntryPoint will not change from the original package version's value.

\n
" } }, "com.amazonaws.codeartifact#DomainName": { @@ -2871,6 +3206,103 @@ } } }, + "com.amazonaws.codeartifact#GetAssociatedPackageGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#GetAssociatedPackageGroupRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#GetAssociatedPackageGroupResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns the most closely associated package group to the specified package. This API does not require that the package exist \n in any repository in the domain. As such, GetAssociatedPackageGroup can be used to see which package group's origin configuration \n applies to a package before that package is in a repository. This can be helpful to check if public packages are blocked without ingesting them.

\n

For information package group association and matching, see \n Package group \n definition syntax and matching behavior in the CodeArtifact User Guide.

", + "smithy.api#http": { + "method": "GET", + "uri": "/v1/get-associated-package-group", + "code": 200 + } + } + }, + "com.amazonaws.codeartifact#GetAssociatedPackageGroupRequest": { + "type": "structure", + "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The name of the domain that contains the package from which to get the associated package group.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "format": { + "target": "com.amazonaws.codeartifact#PackageFormat", + "traits": { + "smithy.api#documentation": "

\n The format of the package from which to get the associated package group.\n

", + "smithy.api#httpQuery": "format", + "smithy.api#required": {} + } + }, + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of the package from which to get the associated package group. The package component that specifies its \n namespace depends on its type. For example:

\n \n

The namespace is required when getting associated package groups from packages of the following formats:

\n \n
\n ", + "smithy.api#httpQuery": "namespace" + } + }, + "package": { + "target": "com.amazonaws.codeartifact#PackageName", + "traits": { + "smithy.api#documentation": "

\n The package from which to get the associated package group.\n

", + "smithy.api#httpQuery": "package", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#GetAssociatedPackageGroupResult": { + "type": "structure", + "members": { + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupDescription", + "traits": { + "smithy.api#documentation": "

The package group that is associated with the requested package.

" + } + }, + "associationType": { + "target": "com.amazonaws.codeartifact#PackageGroupAssociationType", + "traits": { + "smithy.api#documentation": "

Describes the strength of the association between the package and package group. A strong match is also known as an \n exact match, and a weak match is known as a relative match.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.codeartifact#GetAuthorizationToken": { "type": "operation", "input": { @@ -2952,7 +3384,8 @@ } }, "traits": { - "smithy.api#output": {} + "smithy.api#output": {}, + "smithy.api#sensitive": {} } }, "com.amazonaws.codeartifact#GetDomainPermissionsPolicy": { @@ -3100,7 +3533,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package version with the requested asset file. The package version component that specifies its \n namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the package version with the requested asset file. The package component that specifies its \n namespace depends on its type. For example:

\n \n

The namespace is required when requesting assets from package versions of the following formats:

\n \n
\n ", "smithy.api#httpQuery": "namespace" } }, @@ -3248,7 +3681,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package version with the requested readme file. The package version component that specifies its \n namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the package version with the requested readme file. The package component that specifies its \n namespace depends on its type. For example:

\n \n

The namespace is required when requesting the readme from package versions of the following formats:

\n \n
\n ", "smithy.api#httpQuery": "namespace" } }, @@ -3285,7 +3718,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package version with the requested readme file. The package version component that specifies its \n namespace depends on its type. For example:

\n " + "smithy.api#documentation": "

The namespace of the package version with the requested readme file. The package component that specifies its \n namespace depends on its type. For example:

\n " } }, "package": { @@ -3343,7 +3776,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each \n package format:\n

\n ", + "smithy.api#documentation": "

\n Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each \n package format:\n

\n ", "smithy.api#http": { "method": "GET", "uri": "/v1/repository/endpoint", @@ -3570,13 +4003,13 @@ "target": "com.amazonaws.codeartifact#LicenseInfo" } }, - "com.amazonaws.codeartifact#ListDomains": { + "com.amazonaws.codeartifact#ListAllowedRepositoriesForGroup": { "type": "operation", "input": { - "target": "com.amazonaws.codeartifact#ListDomainsRequest" + "target": "com.amazonaws.codeartifact#ListAllowedRepositoriesForGroupRequest" }, "output": { - "target": "com.amazonaws.codeartifact#ListDomainsResult" + "target": "com.amazonaws.codeartifact#ListAllowedRepositoriesForGroupResult" }, "errors": [ { @@ -3585,6 +4018,12 @@ { "target": "com.amazonaws.codeartifact#InternalServerException" }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ServiceQuotaExceededException" + }, { "target": "com.amazonaws.codeartifact#ThrottlingException" }, @@ -3593,21 +4032,21 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of DomainSummary objects for all domains owned by the Amazon Web Services account that makes\n this call. Each returned DomainSummary object contains information about a\n domain.

", + "smithy.api#documentation": "

Lists the repositories in the added repositories list of the specified restriction type for a package group. For more information about restriction types \n and added repository lists, see Package group origin controls in the CodeArtifact User Guide.\n

", "smithy.api#http": { - "method": "POST", - "uri": "/v1/domains", + "method": "GET", + "uri": "/v1/package-group-allowed-repositories", "code": 200 }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", - "items": "domains", + "items": "allowedRepositories", "pageSize": "maxResults" } } }, - "com.amazonaws.codeartifact#ListDomainsMaxResults": { + "com.amazonaws.codeartifact#ListAllowedRepositoriesForGroupMaxResults": { "type": "integer", "traits": { "smithy.api#range": { @@ -3616,19 +4055,52 @@ } } }, - "com.amazonaws.codeartifact#ListDomainsRequest": { + "com.amazonaws.codeartifact#ListAllowedRepositoriesForGroupRequest": { "type": "structure", "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The name of the domain that contains the package group from which to list allowed repositories.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", + "traits": { + "smithy.api#documentation": "

The pattern of the package group from which to list allowed repositories.

", + "smithy.api#httpQuery": "package-group", + "smithy.api#required": {} + } + }, + "originRestrictionType": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestrictionType", + "traits": { + "smithy.api#documentation": "

The origin configuration restriction type of which to list allowed repositories.

", + "smithy.api#httpQuery": "originRestrictionType", + "smithy.api#required": {} + } + }, "maxResults": { - "target": "com.amazonaws.codeartifact#ListDomainsMaxResults", + "target": "com.amazonaws.codeartifact#ListAllowedRepositoriesForGroupMaxResults", "traits": { - "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

" + "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", + "smithy.api#httpQuery": "max-results" } }, "nextToken": { "target": "com.amazonaws.codeartifact#PaginationToken", "traits": { - "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

" + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", + "smithy.api#httpQuery": "next-token" } } }, @@ -3636,13 +4108,13 @@ "smithy.api#input": {} } }, - "com.amazonaws.codeartifact#ListDomainsResult": { + "com.amazonaws.codeartifact#ListAllowedRepositoriesForGroupResult": { "type": "structure", "members": { - "domains": { - "target": "com.amazonaws.codeartifact#DomainSummaryList", + "allowedRepositories": { + "target": "com.amazonaws.codeartifact#RepositoryNameList", "traits": { - "smithy.api#documentation": "

\n The returned list of DomainSummary objects.\n

" + "smithy.api#documentation": "

The list of allowed repositories for the package group and origin configuration restriction type.

" } }, "nextToken": { @@ -3656,13 +4128,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.codeartifact#ListPackageVersionAssets": { + "com.amazonaws.codeartifact#ListAssociatedPackages": { "type": "operation", "input": { - "target": "com.amazonaws.codeartifact#ListPackageVersionAssetsRequest" + "target": "com.amazonaws.codeartifact#ListAssociatedPackagesRequest" }, "output": { - "target": "com.amazonaws.codeartifact#ListPackageVersionAssetsResult" + "target": "com.amazonaws.codeartifact#ListAssociatedPackagesResult" }, "errors": [ { @@ -3674,44 +4146,32 @@ { "target": "com.amazonaws.codeartifact#ResourceNotFoundException" }, - { - "target": "com.amazonaws.codeartifact#ThrottlingException" - }, { "target": "com.amazonaws.codeartifact#ValidationException" } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of \n AssetSummary \n objects for assets in a package version.\n

", + "smithy.api#documentation": "

Returns a list of packages associated with the requested package group. For information package group association and matching, see \n Package group \n definition syntax and matching behavior in the CodeArtifact User Guide.

", "smithy.api#http": { - "method": "POST", - "uri": "/v1/package/version/assets", + "method": "GET", + "uri": "/v1/list-associated-packages", "code": 200 }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", - "items": "assets", + "items": "packages", "pageSize": "maxResults" } } }, - "com.amazonaws.codeartifact#ListPackageVersionAssetsMaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 1000 - } - } - }, - "com.amazonaws.codeartifact#ListPackageVersionAssetsRequest": { + "com.amazonaws.codeartifact#ListAssociatedPackagesRequest": { "type": "structure", "members": { "domain": { "target": "com.amazonaws.codeartifact#DomainName", "traits": { - "smithy.api#documentation": "

\n The name of the domain that contains the repository associated with the package version assets.\n

", + "smithy.api#documentation": "

\n The name of the domain that contains the package group from which to list associated packages.\n

", "smithy.api#httpQuery": "domain", "smithy.api#required": {} } @@ -3723,47 +4183,16 @@ "smithy.api#httpQuery": "domain-owner" } }, - "repository": { - "target": "com.amazonaws.codeartifact#RepositoryName", - "traits": { - "smithy.api#documentation": "

\n The name of the repository that contains the package that contains the requested package version assets.\n

", - "smithy.api#httpQuery": "repository", - "smithy.api#required": {} - } - }, - "format": { - "target": "com.amazonaws.codeartifact#PackageFormat", - "traits": { - "smithy.api#documentation": "

\n The format of the package that contains the requested package version assets.\n

", - "smithy.api#httpQuery": "format", - "smithy.api#required": {} - } - }, - "namespace": { - "target": "com.amazonaws.codeartifact#PackageNamespace", - "traits": { - "smithy.api#documentation": "

The namespace of the package version that contains the requested package version assets. The package version component that specifies its \n namespace depends on its type. For example:

\n ", - "smithy.api#httpQuery": "namespace" - } - }, - "package": { - "target": "com.amazonaws.codeartifact#PackageName", - "traits": { - "smithy.api#documentation": "

\n The name of the package that contains the requested package version assets.\n

", - "smithy.api#httpQuery": "package", - "smithy.api#required": {} - } - }, - "packageVersion": { - "target": "com.amazonaws.codeartifact#PackageVersion", + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", "traits": { - "smithy.api#documentation": "

\n A string that contains the package version (for example, 3.5.2).\n

", - "smithy.api#httpQuery": "version", + "smithy.api#documentation": "

\n The pattern of the package group from which to list associated packages.\n

", + "smithy.api#httpQuery": "package-group", "smithy.api#required": {} } }, "maxResults": { - "target": "com.amazonaws.codeartifact#ListPackageVersionAssetsMaxResults", + "target": "com.amazonaws.codeartifact#ListPackagesMaxResults", "traits": { "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", "smithy.api#httpQuery": "max-results" @@ -3775,55 +4204,32 @@ "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", "smithy.api#httpQuery": "next-token" } + }, + "preview": { + "target": "com.amazonaws.codeartifact#BooleanOptional", + "traits": { + "smithy.api#documentation": "

\n When this flag is included, ListAssociatedPackages will return a list of packages that would be associated with a package \n group, even if it does not exist.\n

", + "smithy.api#httpQuery": "preview" + } } }, "traits": { "smithy.api#input": {} } }, - "com.amazonaws.codeartifact#ListPackageVersionAssetsResult": { + "com.amazonaws.codeartifact#ListAssociatedPackagesResult": { "type": "structure", "members": { - "format": { - "target": "com.amazonaws.codeartifact#PackageFormat", - "traits": { - "smithy.api#documentation": "

\n The format of the package that contains the requested package version assets.\n

" - } - }, - "namespace": { - "target": "com.amazonaws.codeartifact#PackageNamespace", + "packages": { + "target": "com.amazonaws.codeartifact#AssociatedPackageList", "traits": { - "smithy.api#documentation": "

The namespace of the package version that contains the requested package version assets. The package version component that specifies its \n namespace depends on its type. For example:

\n " + "smithy.api#documentation": "

\n The list of packages associated with the requested package group.\n

" } }, - "package": { - "target": "com.amazonaws.codeartifact#PackageName", + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", "traits": { - "smithy.api#documentation": "

\n The name of the package that contains the requested package version assets.\n

" - } - }, - "version": { - "target": "com.amazonaws.codeartifact#PackageVersion", - "traits": { - "smithy.api#documentation": "

\n The version of the package associated with the requested assets.\n

" - } - }, - "versionRevision": { - "target": "com.amazonaws.codeartifact#PackageVersionRevision", - "traits": { - "smithy.api#documentation": "

\n The current revision associated with the package version.\n

" - } - }, - "nextToken": { - "target": "com.amazonaws.codeartifact#PaginationToken", - "traits": { - "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" - } - }, - "assets": { - "target": "com.amazonaws.codeartifact#AssetSummaryList", - "traits": { - "smithy.api#documentation": "

\n The returned list of AssetSummary objects.\n

" + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

" } } }, @@ -3831,13 +4237,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.codeartifact#ListPackageVersionDependencies": { + "com.amazonaws.codeartifact#ListDomains": { "type": "operation", "input": { - "target": "com.amazonaws.codeartifact#ListPackageVersionDependenciesRequest" + "target": "com.amazonaws.codeartifact#ListDomainsRequest" }, "output": { - "target": "com.amazonaws.codeartifact#ListPackageVersionDependenciesResult" + "target": "com.amazonaws.codeartifact#ListDomainsResult" }, "errors": [ { @@ -3846,9 +4252,6 @@ { "target": "com.amazonaws.codeartifact#InternalServerException" }, - { - "target": "com.amazonaws.codeartifact#ResourceNotFoundException" - }, { "target": "com.amazonaws.codeartifact#ThrottlingException" }, @@ -3857,76 +4260,42 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the direct dependencies for a package version. The dependencies are returned as \n PackageDependency \n objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package \n format (for example, the package.json file for npm packages and the pom.xml file \n for Maven). Any package version dependencies that are not listed in the configuration file are not returned.\n

", + "smithy.api#documentation": "

Returns a list of DomainSummary objects for all domains owned by the Amazon Web Services account that makes\n this call. Each returned DomainSummary object contains information about a\n domain.

", "smithy.api#http": { "method": "POST", - "uri": "/v1/package/version/dependencies", + "uri": "/v1/domains", "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "domains", + "pageSize": "maxResults" } } }, - "com.amazonaws.codeartifact#ListPackageVersionDependenciesRequest": { + "com.amazonaws.codeartifact#ListDomainsMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.codeartifact#ListDomainsRequest": { "type": "structure", "members": { - "domain": { - "target": "com.amazonaws.codeartifact#DomainName", - "traits": { - "smithy.api#documentation": "

\n The name of the domain that contains the repository that contains the requested package version dependencies.\n

", - "smithy.api#httpQuery": "domain", - "smithy.api#required": {} - } - }, - "domainOwner": { - "target": "com.amazonaws.codeartifact#AccountId", - "traits": { - "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", - "smithy.api#httpQuery": "domain-owner" - } - }, - "repository": { - "target": "com.amazonaws.codeartifact#RepositoryName", - "traits": { - "smithy.api#documentation": "

\n The name of the repository that contains the requested package version.\n

", - "smithy.api#httpQuery": "repository", - "smithy.api#required": {} - } - }, - "format": { - "target": "com.amazonaws.codeartifact#PackageFormat", - "traits": { - "smithy.api#documentation": "

\n The format of the package with the requested dependencies.\n

", - "smithy.api#httpQuery": "format", - "smithy.api#required": {} - } - }, - "namespace": { - "target": "com.amazonaws.codeartifact#PackageNamespace", - "traits": { - "smithy.api#documentation": "

The namespace of the package version with the requested dependencies. The package version component that specifies its \n namespace depends on its type. For example:

\n ", - "smithy.api#httpQuery": "namespace" - } - }, - "package": { - "target": "com.amazonaws.codeartifact#PackageName", - "traits": { - "smithy.api#documentation": "

\n The name of the package versions' package.\n

", - "smithy.api#httpQuery": "package", - "smithy.api#required": {} - } - }, - "packageVersion": { - "target": "com.amazonaws.codeartifact#PackageVersion", + "maxResults": { + "target": "com.amazonaws.codeartifact#ListDomainsMaxResults", "traits": { - "smithy.api#documentation": "

\n A string that contains the package version (for example, 3.5.2).\n

", - "smithy.api#httpQuery": "version", - "smithy.api#required": {} + "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

" } }, "nextToken": { "target": "com.amazonaws.codeartifact#PaginationToken", "traits": { - "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", - "smithy.api#httpQuery": "next-token" + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

" } } }, @@ -3934,37 +4303,13 @@ "smithy.api#input": {} } }, - "com.amazonaws.codeartifact#ListPackageVersionDependenciesResult": { + "com.amazonaws.codeartifact#ListDomainsResult": { "type": "structure", "members": { - "format": { - "target": "com.amazonaws.codeartifact#PackageFormat", - "traits": { - "smithy.api#documentation": "

\n A format that specifies the type of the package that contains the returned dependencies.\n

" - } - }, - "namespace": { - "target": "com.amazonaws.codeartifact#PackageNamespace", - "traits": { - "smithy.api#documentation": "

The namespace of the package version that contains the returned dependencies. The package version component that specifies its \n namespace depends on its type. For example:

\n " - } - }, - "package": { - "target": "com.amazonaws.codeartifact#PackageName", - "traits": { - "smithy.api#documentation": "

\n The name of the package that contains the returned package versions dependencies.\n

" - } - }, - "version": { - "target": "com.amazonaws.codeartifact#PackageVersion", - "traits": { - "smithy.api#documentation": "

\n The version of the package that is specified in the request.\n

" - } - }, - "versionRevision": { - "target": "com.amazonaws.codeartifact#PackageVersionRevision", + "domains": { + "target": "com.amazonaws.codeartifact#DomainSummaryList", "traits": { - "smithy.api#documentation": "

\n The current revision associated with the package version.\n

" + "smithy.api#documentation": "

\n The returned list of DomainSummary objects.\n

" } }, "nextToken": { @@ -3972,25 +4317,19 @@ "traits": { "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

" } - }, - "dependencies": { - "target": "com.amazonaws.codeartifact#PackageDependencyList", - "traits": { - "smithy.api#documentation": "

\n The returned list of PackageDependency objects.\n

" - } } }, "traits": { "smithy.api#output": {} } }, - "com.amazonaws.codeartifact#ListPackageVersions": { + "com.amazonaws.codeartifact#ListPackageGroups": { "type": "operation", "input": { - "target": "com.amazonaws.codeartifact#ListPackageVersionsRequest" + "target": "com.amazonaws.codeartifact#ListPackageGroupsRequest" }, "output": { - "target": "com.amazonaws.codeartifact#ListPackageVersionsResult" + "target": "com.amazonaws.codeartifact#ListPackageGroupsResult" }, "errors": [ { @@ -4010,21 +4349,21 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of \n PackageVersionSummary \n objects for package versions in a repository that match the request parameters. Package versions of all statuses will be returned by default when calling list-package-versions with no --status parameter.\n

", + "smithy.api#documentation": "

Returns a list of package groups in the requested domain.

", "smithy.api#http": { "method": "POST", - "uri": "/v1/package/versions", + "uri": "/v1/package-groups", "code": 200 }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", - "items": "versions", + "items": "packageGroups", "pageSize": "maxResults" } } }, - "com.amazonaws.codeartifact#ListPackageVersionsMaxResults": { + "com.amazonaws.codeartifact#ListPackageGroupsMaxResults": { "type": "integer", "traits": { "smithy.api#range": { @@ -4033,13 +4372,13 @@ } } }, - "com.amazonaws.codeartifact#ListPackageVersionsRequest": { + "com.amazonaws.codeartifact#ListPackageGroupsRequest": { "type": "structure", "members": { "domain": { "target": "com.amazonaws.codeartifact#DomainName", "traits": { - "smithy.api#documentation": "

\n The name of the domain that contains the repository that contains the requested package versions.\n

", + "smithy.api#documentation": "

\n The domain for which you want to list package groups.\n

", "smithy.api#httpQuery": "domain", "smithy.api#required": {} } @@ -4051,53 +4390,8 @@ "smithy.api#httpQuery": "domain-owner" } }, - "repository": { - "target": "com.amazonaws.codeartifact#RepositoryName", - "traits": { - "smithy.api#documentation": "

\n The name of the repository that contains the requested package versions.\n

", - "smithy.api#httpQuery": "repository", - "smithy.api#required": {} - } - }, - "format": { - "target": "com.amazonaws.codeartifact#PackageFormat", - "traits": { - "smithy.api#documentation": "

\n The format of the package versions you want to list.\n

", - "smithy.api#httpQuery": "format", - "smithy.api#required": {} - } - }, - "namespace": { - "target": "com.amazonaws.codeartifact#PackageNamespace", - "traits": { - "smithy.api#documentation": "

The namespace of the package that contains the requested package versions. The package component that specifies its \n namespace depends on its type. For example:

\n ", - "smithy.api#httpQuery": "namespace" - } - }, - "package": { - "target": "com.amazonaws.codeartifact#PackageName", - "traits": { - "smithy.api#documentation": "

\n The name of the package for which you want to request package versions.\n

", - "smithy.api#httpQuery": "package", - "smithy.api#required": {} - } - }, - "status": { - "target": "com.amazonaws.codeartifact#PackageVersionStatus", - "traits": { - "smithy.api#documentation": "

\n A string that filters the requested package versions by status.\n

", - "smithy.api#httpQuery": "status" - } - }, - "sortBy": { - "target": "com.amazonaws.codeartifact#PackageVersionSortType", - "traits": { - "smithy.api#documentation": "

\n How to sort the requested list of package versions.\n

", - "smithy.api#httpQuery": "sortBy" - } - }, "maxResults": { - "target": "com.amazonaws.codeartifact#ListPackageVersionsMaxResults", + "target": "com.amazonaws.codeartifact#ListPackageGroupsMaxResults", "traits": { "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", "smithy.api#httpQuery": "max-results" @@ -4110,11 +4404,11 @@ "smithy.api#httpQuery": "next-token" } }, - "originType": { - "target": "com.amazonaws.codeartifact#PackageVersionOriginType", + "prefix": { + "target": "com.amazonaws.codeartifact#PackageGroupPatternPrefix", "traits": { - "smithy.api#documentation": "

The originType used to filter package versions. \n Only package versions with the provided originType will be returned.

", - "smithy.api#httpQuery": "originType" + "smithy.api#documentation": "

\n A prefix for which to search package groups. When included, ListPackageGroups will return only\n package groups with patterns that match the prefix.\n

", + "smithy.api#httpQuery": "prefix" } } }, @@ -4122,43 +4416,19 @@ "smithy.api#input": {} } }, - "com.amazonaws.codeartifact#ListPackageVersionsResult": { + "com.amazonaws.codeartifact#ListPackageGroupsResult": { "type": "structure", "members": { - "defaultDisplayVersion": { - "target": "com.amazonaws.codeartifact#PackageVersion", - "traits": { - "smithy.api#documentation": "

\n The default package version to display. This depends on the package format:\n

\n " - } - }, - "format": { - "target": "com.amazonaws.codeartifact#PackageFormat", - "traits": { - "smithy.api#documentation": "

\n A format of the package.\n

" - } - }, - "namespace": { - "target": "com.amazonaws.codeartifact#PackageNamespace", - "traits": { - "smithy.api#documentation": "

The namespace of the package that contains the requested package versions. The package component that specifies its \n namespace depends on its type. For example:

\n " - } - }, - "package": { - "target": "com.amazonaws.codeartifact#PackageName", - "traits": { - "smithy.api#documentation": "

\n The name of the package.\n

" - } - }, - "versions": { - "target": "com.amazonaws.codeartifact#PackageVersionSummaryList", + "packageGroups": { + "target": "com.amazonaws.codeartifact#PackageGroupSummaryList", "traits": { - "smithy.api#documentation": "

\n The returned list of \n PackageVersionSummary \n objects.\n

" + "smithy.api#documentation": "

\n The list of package groups in the requested domain.\n

" } }, "nextToken": { "target": "com.amazonaws.codeartifact#PaginationToken", "traits": { - "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

" } } }, @@ -4166,13 +4436,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.codeartifact#ListPackages": { + "com.amazonaws.codeartifact#ListPackageVersionAssets": { "type": "operation", "input": { - "target": "com.amazonaws.codeartifact#ListPackagesRequest" + "target": "com.amazonaws.codeartifact#ListPackageVersionAssetsRequest" }, "output": { - "target": "com.amazonaws.codeartifact#ListPackagesResult" + "target": "com.amazonaws.codeartifact#ListPackageVersionAssetsResult" }, "errors": [ { @@ -4192,21 +4462,21 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of \n PackageSummary \n objects for packages in a repository that match the request parameters.\n

", + "smithy.api#documentation": "

\n Returns a list of \n AssetSummary \n objects for assets in a package version.\n

", "smithy.api#http": { "method": "POST", - "uri": "/v1/packages", + "uri": "/v1/package/version/assets", "code": 200 }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", - "items": "packages", + "items": "assets", "pageSize": "maxResults" } } }, - "com.amazonaws.codeartifact#ListPackagesMaxResults": { + "com.amazonaws.codeartifact#ListPackageVersionAssetsMaxResults": { "type": "integer", "traits": { "smithy.api#range": { @@ -4215,13 +4485,13 @@ } } }, - "com.amazonaws.codeartifact#ListPackagesRequest": { + "com.amazonaws.codeartifact#ListPackageVersionAssetsRequest": { "type": "structure", "members": { "domain": { "target": "com.amazonaws.codeartifact#DomainName", "traits": { - "smithy.api#documentation": "

\n The name of the domain that contains the repository that contains the requested packages.\n

", + "smithy.api#documentation": "

\n The name of the domain that contains the repository associated with the package version assets.\n

", "smithy.api#httpQuery": "domain", "smithy.api#required": {} } @@ -4236,7 +4506,7 @@ "repository": { "target": "com.amazonaws.codeartifact#RepositoryName", "traits": { - "smithy.api#documentation": "

\n The name of the repository that contains the requested packages.\n

", + "smithy.api#documentation": "

\n The name of the repository that contains the package that contains the requested package version assets.\n

", "smithy.api#httpQuery": "repository", "smithy.api#required": {} } @@ -4244,26 +4514,36 @@ "format": { "target": "com.amazonaws.codeartifact#PackageFormat", "traits": { - "smithy.api#documentation": "

The format used to filter requested packages. Only packages from the provided format will be returned.

", - "smithy.api#httpQuery": "format" + "smithy.api#documentation": "

\n The format of the package that contains the requested package version assets.\n

", + "smithy.api#httpQuery": "format", + "smithy.api#required": {} } }, "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called --namespace and not --namespace-prefix, it has prefix-matching behavior.

\n

Each package format uses namespace as follows:

\n ", + "smithy.api#documentation": "

The namespace of the package version that contains the requested package version assets. The package component that specifies its \n namespace depends on its type. For example:

\n \n

The namespace is required requesting assets from package versions of the following formats:

\n \n
\n ", "smithy.api#httpQuery": "namespace" } }, - "packagePrefix": { + "package": { "target": "com.amazonaws.codeartifact#PackageName", "traits": { - "smithy.api#documentation": "

\n A prefix used to filter requested packages. Only packages with names that start with \n packagePrefix are returned.\n

", - "smithy.api#httpQuery": "package-prefix" + "smithy.api#documentation": "

\n The name of the package that contains the requested package version assets.\n

", + "smithy.api#httpQuery": "package", + "smithy.api#required": {} + } + }, + "packageVersion": { + "target": "com.amazonaws.codeartifact#PackageVersion", + "traits": { + "smithy.api#documentation": "

\n A string that contains the package version (for example, 3.5.2).\n

", + "smithy.api#httpQuery": "version", + "smithy.api#required": {} } }, "maxResults": { - "target": "com.amazonaws.codeartifact#ListPackagesMaxResults", + "target": "com.amazonaws.codeartifact#ListPackageVersionAssetsMaxResults", "traits": { "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", "smithy.api#httpQuery": "max-results" @@ -4275,33 +4555,43 @@ "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", "smithy.api#httpQuery": "next-token" } - }, - "publish": { - "target": "com.amazonaws.codeartifact#AllowPublish", - "traits": { - "smithy.api#documentation": "

The value of the Publish package origin control restriction used to filter requested packages. \n Only packages with the provided restriction are returned. \n For more information, see PackageOriginRestrictions.

", - "smithy.api#httpQuery": "publish" - } - }, - "upstream": { - "target": "com.amazonaws.codeartifact#AllowUpstream", - "traits": { - "smithy.api#documentation": "

The value of the Upstream package origin control restriction used to filter requested packages. \n Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.

", - "smithy.api#httpQuery": "upstream" - } } }, "traits": { "smithy.api#input": {} } }, - "com.amazonaws.codeartifact#ListPackagesResult": { + "com.amazonaws.codeartifact#ListPackageVersionAssetsResult": { "type": "structure", "members": { - "packages": { - "target": "com.amazonaws.codeartifact#PackageSummaryList", + "format": { + "target": "com.amazonaws.codeartifact#PackageFormat", "traits": { - "smithy.api#documentation": "

\n The list of returned PackageSummary \n objects.\n

" + "smithy.api#documentation": "

\n The format of the package that contains the requested package version assets.\n

" + } + }, + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of the package version that contains the requested package version assets. The package component that specifies its \n namespace depends on its type. For example:

\n " + } + }, + "package": { + "target": "com.amazonaws.codeartifact#PackageName", + "traits": { + "smithy.api#documentation": "

\n The name of the package that contains the requested package version assets.\n

" + } + }, + "version": { + "target": "com.amazonaws.codeartifact#PackageVersion", + "traits": { + "smithy.api#documentation": "

\n The version of the package associated with the requested assets.\n

" + } + }, + "versionRevision": { + "target": "com.amazonaws.codeartifact#PackageVersionRevision", + "traits": { + "smithy.api#documentation": "

\n The current revision associated with the package version.\n

" } }, "nextToken": { @@ -4309,56 +4599,25 @@ "traits": { "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" } + }, + "assets": { + "target": "com.amazonaws.codeartifact#AssetSummaryList", + "traits": { + "smithy.api#documentation": "

\n The returned list of AssetSummary objects.\n

" + } } }, "traits": { "smithy.api#output": {} } }, - "com.amazonaws.codeartifact#ListRepositories": { - "type": "operation", - "input": { - "target": "com.amazonaws.codeartifact#ListRepositoriesRequest" - }, - "output": { - "target": "com.amazonaws.codeartifact#ListRepositoriesResult" - }, - "errors": [ - { - "target": "com.amazonaws.codeartifact#AccessDeniedException" - }, - { - "target": "com.amazonaws.codeartifact#InternalServerException" - }, - { - "target": "com.amazonaws.codeartifact#ThrottlingException" - }, - { - "target": "com.amazonaws.codeartifact#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

\n Returns a list of \n RepositorySummary \n objects. Each RepositorySummary contains information about a repository in the specified Amazon Web Services account and that matches the input \n parameters.\n

", - "smithy.api#http": { - "method": "POST", - "uri": "/v1/repositories", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "items": "repositories", - "pageSize": "maxResults" - } - } - }, - "com.amazonaws.codeartifact#ListRepositoriesInDomain": { + "com.amazonaws.codeartifact#ListPackageVersionDependencies": { "type": "operation", "input": { - "target": "com.amazonaws.codeartifact#ListRepositoriesInDomainRequest" + "target": "com.amazonaws.codeartifact#ListPackageVersionDependenciesRequest" }, "output": { - "target": "com.amazonaws.codeartifact#ListRepositoriesInDomainResult" + "target": "com.amazonaws.codeartifact#ListPackageVersionDependenciesResult" }, "errors": [ { @@ -4378,36 +4637,21 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of \n RepositorySummary \n objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input \n parameters.\n

", + "smithy.api#documentation": "

\n Returns the direct dependencies for a package version. The dependencies are returned as \n PackageDependency \n objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package \n format (for example, the package.json file for npm packages and the pom.xml file \n for Maven). Any package version dependencies that are not listed in the configuration file are not returned.\n

", "smithy.api#http": { "method": "POST", - "uri": "/v1/domain/repositories", + "uri": "/v1/package/version/dependencies", "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "items": "repositories", - "pageSize": "maxResults" - } - } - }, - "com.amazonaws.codeartifact#ListRepositoriesInDomainMaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 1000 } } }, - "com.amazonaws.codeartifact#ListRepositoriesInDomainRequest": { + "com.amazonaws.codeartifact#ListPackageVersionDependenciesRequest": { "type": "structure", "members": { "domain": { "target": "com.amazonaws.codeartifact#DomainName", "traits": { - "smithy.api#documentation": "

\n The name of the domain that contains the returned list of repositories.\n

", + "smithy.api#documentation": "

\n The name of the domain that contains the repository that contains the requested package version dependencies.\n

", "smithy.api#httpQuery": "domain", "smithy.api#required": {} } @@ -4419,25 +4663,43 @@ "smithy.api#httpQuery": "domain-owner" } }, - "administratorAccount": { - "target": "com.amazonaws.codeartifact#AccountId", + "repository": { + "target": "com.amazonaws.codeartifact#RepositoryName", "traits": { - "smithy.api#documentation": "

\n Filter the list of repositories to only include those that are managed by the Amazon Web Services account ID.\n

", - "smithy.api#httpQuery": "administrator-account" + "smithy.api#documentation": "

\n The name of the repository that contains the requested package version.\n

", + "smithy.api#httpQuery": "repository", + "smithy.api#required": {} } }, - "repositoryPrefix": { - "target": "com.amazonaws.codeartifact#RepositoryName", + "format": { + "target": "com.amazonaws.codeartifact#PackageFormat", "traits": { - "smithy.api#documentation": "

\n A prefix used to filter returned repositories. Only repositories with names that start with \n repositoryPrefix are returned.\n

", - "smithy.api#httpQuery": "repository-prefix" + "smithy.api#documentation": "

\n The format of the package with the requested dependencies.\n

", + "smithy.api#httpQuery": "format", + "smithy.api#required": {} } }, - "maxResults": { - "target": "com.amazonaws.codeartifact#ListRepositoriesInDomainMaxResults", + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", - "smithy.api#httpQuery": "max-results" + "smithy.api#documentation": "

The namespace of the package version with the requested dependencies. The package component that specifies its \n namespace depends on its type. For example:

\n \n

The namespace is required when listing dependencies from package versions of the following formats:

\n \n
\n ", + "smithy.api#httpQuery": "namespace" + } + }, + "package": { + "target": "com.amazonaws.codeartifact#PackageName", + "traits": { + "smithy.api#documentation": "

\n The name of the package versions' package.\n

", + "smithy.api#httpQuery": "package", + "smithy.api#required": {} + } + }, + "packageVersion": { + "target": "com.amazonaws.codeartifact#PackageVersion", + "traits": { + "smithy.api#documentation": "

\n A string that contains the package version (for example, 3.5.2).\n

", + "smithy.api#httpQuery": "version", + "smithy.api#required": {} } }, "nextToken": { @@ -4452,77 +4714,49 @@ "smithy.api#input": {} } }, - "com.amazonaws.codeartifact#ListRepositoriesInDomainResult": { + "com.amazonaws.codeartifact#ListPackageVersionDependenciesResult": { "type": "structure", "members": { - "repositories": { - "target": "com.amazonaws.codeartifact#RepositorySummaryList", + "format": { + "target": "com.amazonaws.codeartifact#PackageFormat", "traits": { - "smithy.api#documentation": "

\n The returned list of repositories.\n

" + "smithy.api#documentation": "

\n A format that specifies the type of the package that contains the returned dependencies.\n

" } }, - "nextToken": { - "target": "com.amazonaws.codeartifact#PaginationToken", - "traits": { - "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.codeartifact#ListRepositoriesMaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 1000 - } - } - }, - "com.amazonaws.codeartifact#ListRepositoriesRequest": { - "type": "structure", - "members": { - "repositoryPrefix": { - "target": "com.amazonaws.codeartifact#RepositoryName", + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

A prefix used to filter returned repositories. Only repositories with names that start\n with repositoryPrefix are returned.

", - "smithy.api#httpQuery": "repository-prefix" + "smithy.api#documentation": "

The namespace of the package version that contains the returned dependencies. The package component that specifies its \n namespace depends on its type. For example:

\n " } }, - "maxResults": { - "target": "com.amazonaws.codeartifact#ListRepositoriesMaxResults", + "package": { + "target": "com.amazonaws.codeartifact#PackageName", "traits": { - "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", - "smithy.api#httpQuery": "max-results" + "smithy.api#documentation": "

\n The name of the package that contains the returned package versions dependencies.\n

" } }, - "nextToken": { - "target": "com.amazonaws.codeartifact#PaginationToken", + "version": { + "target": "com.amazonaws.codeartifact#PackageVersion", "traits": { - "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", - "smithy.api#httpQuery": "next-token" + "smithy.api#documentation": "

\n The version of the package that is specified in the request.\n

" } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.codeartifact#ListRepositoriesResult": { - "type": "structure", - "members": { - "repositories": { - "target": "com.amazonaws.codeartifact#RepositorySummaryList", + }, + "versionRevision": { + "target": "com.amazonaws.codeartifact#PackageVersionRevision", "traits": { - "smithy.api#documentation": "

\n The returned list of RepositorySummary \n objects.\n

" + "smithy.api#documentation": "

\n The current revision associated with the package version.\n

" } }, "nextToken": { "target": "com.amazonaws.codeartifact#PaginationToken", "traits": { - "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

" + } + }, + "dependencies": { + "target": "com.amazonaws.codeartifact#PackageDependencyList", + "traits": { + "smithy.api#documentation": "

\n The returned list of PackageDependency objects.\n

" } } }, @@ -4530,20 +4764,23 @@ "smithy.api#output": {} } }, - "com.amazonaws.codeartifact#ListTagsForResource": { + "com.amazonaws.codeartifact#ListPackageVersions": { "type": "operation", "input": { - "target": "com.amazonaws.codeartifact#ListTagsForResourceRequest" + "target": "com.amazonaws.codeartifact#ListPackageVersionsRequest" }, "output": { - "target": "com.amazonaws.codeartifact#ListTagsForResourceResult" + "target": "com.amazonaws.codeartifact#ListPackageVersionsResult" }, "errors": [ { "target": "com.amazonaws.codeartifact#AccessDeniedException" }, { - "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" }, { "target": "com.amazonaws.codeartifact#ThrottlingException" @@ -4553,37 +4790,155 @@ } ], "traits": { - "smithy.api#documentation": "

Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in CodeArtifact.

", + "smithy.api#documentation": "

\n Returns a list of \n PackageVersionSummary \n objects for package versions in a repository that match the request parameters. Package versions of all statuses will be returned by default when calling list-package-versions with no --status parameter.\n

", "smithy.api#http": { "method": "POST", - "uri": "/v1/tags", + "uri": "/v1/package/versions", "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "versions", + "pageSize": "maxResults" } } }, - "com.amazonaws.codeartifact#ListTagsForResourceRequest": { + "com.amazonaws.codeartifact#ListPackageVersionsMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.codeartifact#ListPackageVersionsRequest": { "type": "structure", "members": { - "resourceArn": { - "target": "com.amazonaws.codeartifact#Arn", + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource to get tags for.

", - "smithy.api#httpQuery": "resourceArn", + "smithy.api#documentation": "

\n The name of the domain that contains the repository that contains the requested package versions.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "repository": { + "target": "com.amazonaws.codeartifact#RepositoryName", + "traits": { + "smithy.api#documentation": "

\n The name of the repository that contains the requested package versions.\n

", + "smithy.api#httpQuery": "repository", + "smithy.api#required": {} + } + }, + "format": { + "target": "com.amazonaws.codeartifact#PackageFormat", + "traits": { + "smithy.api#documentation": "

\n The format of the package versions you want to list.\n

", + "smithy.api#httpQuery": "format", + "smithy.api#required": {} + } + }, + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of the package that contains the requested package versions. The package component that specifies its \n namespace depends on its type. For example:

\n \n

The namespace is required when deleting package versions of the following formats:

\n \n
\n ", + "smithy.api#httpQuery": "namespace" + } + }, + "package": { + "target": "com.amazonaws.codeartifact#PackageName", + "traits": { + "smithy.api#documentation": "

\n The name of the package for which you want to request package versions.\n

", + "smithy.api#httpQuery": "package", "smithy.api#required": {} } + }, + "status": { + "target": "com.amazonaws.codeartifact#PackageVersionStatus", + "traits": { + "smithy.api#documentation": "

\n A string that filters the requested package versions by status.\n

", + "smithy.api#httpQuery": "status" + } + }, + "sortBy": { + "target": "com.amazonaws.codeartifact#PackageVersionSortType", + "traits": { + "smithy.api#documentation": "

\n How to sort the requested list of package versions.\n

", + "smithy.api#httpQuery": "sortBy" + } + }, + "maxResults": { + "target": "com.amazonaws.codeartifact#ListPackageVersionsMaxResults", + "traits": { + "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", + "smithy.api#httpQuery": "max-results" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", + "smithy.api#httpQuery": "next-token" + } + }, + "originType": { + "target": "com.amazonaws.codeartifact#PackageVersionOriginType", + "traits": { + "smithy.api#documentation": "

The originType used to filter package versions. \n Only package versions with the provided originType will be returned.

", + "smithy.api#httpQuery": "originType" + } } }, "traits": { "smithy.api#input": {} } }, - "com.amazonaws.codeartifact#ListTagsForResourceResult": { + "com.amazonaws.codeartifact#ListPackageVersionsResult": { "type": "structure", "members": { - "tags": { - "target": "com.amazonaws.codeartifact#TagList", + "defaultDisplayVersion": { + "target": "com.amazonaws.codeartifact#PackageVersion", "traits": { - "smithy.api#documentation": "

A list of tag key and value pairs associated with the specified resource.

" + "smithy.api#documentation": "

\n The default package version to display. This depends on the package format:\n

\n " + } + }, + "format": { + "target": "com.amazonaws.codeartifact#PackageFormat", + "traits": { + "smithy.api#documentation": "

\n A format of the package.\n

" + } + }, + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of the package that contains the requested package versions. The package component that specifies its \n namespace depends on its type. For example:

\n " + } + }, + "package": { + "target": "com.amazonaws.codeartifact#PackageName", + "traits": { + "smithy.api#documentation": "

\n The name of the package.\n

" + } + }, + "versions": { + "target": "com.amazonaws.codeartifact#PackageVersionSummaryList", + "traits": { + "smithy.api#documentation": "

\n The returned list of \n PackageVersionSummary \n objects.\n

" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" } } }, @@ -4591,124 +4946,1028 @@ "smithy.api#output": {} } }, - "com.amazonaws.codeartifact#Long": { - "type": "long", + "com.amazonaws.codeartifact#ListPackages": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#ListPackagesRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#ListPackagesResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], "traits": { - "smithy.api#default": 0 + "smithy.api#documentation": "

\n Returns a list of \n PackageSummary \n objects for packages in a repository that match the request parameters.\n

", + "smithy.api#http": { + "method": "POST", + "uri": "/v1/packages", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "packages", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.codeartifact#ListPackagesMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.codeartifact#ListPackagesRequest": { + "type": "structure", + "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The name of the domain that contains the repository that contains the requested packages.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "repository": { + "target": "com.amazonaws.codeartifact#RepositoryName", + "traits": { + "smithy.api#documentation": "

\n The name of the repository that contains the requested packages.\n

", + "smithy.api#httpQuery": "repository", + "smithy.api#required": {} + } + }, + "format": { + "target": "com.amazonaws.codeartifact#PackageFormat", + "traits": { + "smithy.api#documentation": "

The format used to filter requested packages. Only packages from the provided format will be returned.

", + "smithy.api#httpQuery": "format" + } + }, + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", + "traits": { + "smithy.api#documentation": "

The namespace prefix used to filter requested packages. \n Only packages with a namespace that starts with the provided string value are returned. \n Note that although this option is called --namespace and not --namespace-prefix, it has prefix-matching behavior.

\n

Each package format uses namespace as follows:

\n ", + "smithy.api#httpQuery": "namespace" + } + }, + "packagePrefix": { + "target": "com.amazonaws.codeartifact#PackageName", + "traits": { + "smithy.api#documentation": "

\n A prefix used to filter requested packages. Only packages with names that start with \n packagePrefix are returned.\n

", + "smithy.api#httpQuery": "package-prefix" + } + }, + "maxResults": { + "target": "com.amazonaws.codeartifact#ListPackagesMaxResults", + "traits": { + "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", + "smithy.api#httpQuery": "max-results" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", + "smithy.api#httpQuery": "next-token" + } + }, + "publish": { + "target": "com.amazonaws.codeartifact#AllowPublish", + "traits": { + "smithy.api#documentation": "

The value of the Publish package origin control restriction used to filter requested packages. \n Only packages with the provided restriction are returned. \n For more information, see PackageOriginRestrictions.

", + "smithy.api#httpQuery": "publish" + } + }, + "upstream": { + "target": "com.amazonaws.codeartifact#AllowUpstream", + "traits": { + "smithy.api#documentation": "

The value of the Upstream package origin control restriction used to filter requested packages. \n Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.

", + "smithy.api#httpQuery": "upstream" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#ListPackagesResult": { + "type": "structure", + "members": { + "packages": { + "target": "com.amazonaws.codeartifact#PackageSummaryList", + "traits": { + "smithy.api#documentation": "

\n The list of returned PackageSummary \n objects.\n

" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.codeartifact#ListRepositories": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#ListRepositoriesRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#ListRepositoriesResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Returns a list of \n RepositorySummary \n objects. Each RepositorySummary contains information about a repository in the specified Amazon Web Services account and that matches the input \n parameters.\n

", + "smithy.api#http": { + "method": "POST", + "uri": "/v1/repositories", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "repositories", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.codeartifact#ListRepositoriesInDomain": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#ListRepositoriesInDomainRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#ListRepositoriesInDomainResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Returns a list of \n RepositorySummary \n objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input \n parameters.\n

", + "smithy.api#http": { + "method": "POST", + "uri": "/v1/domain/repositories", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "repositories", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.codeartifact#ListRepositoriesInDomainMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.codeartifact#ListRepositoriesInDomainRequest": { + "type": "structure", + "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The name of the domain that contains the returned list of repositories.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "administratorAccount": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n Filter the list of repositories to only include those that are managed by the Amazon Web Services account ID.\n

", + "smithy.api#httpQuery": "administrator-account" + } + }, + "repositoryPrefix": { + "target": "com.amazonaws.codeartifact#RepositoryName", + "traits": { + "smithy.api#documentation": "

\n A prefix used to filter returned repositories. Only repositories with names that start with \n repositoryPrefix are returned.\n

", + "smithy.api#httpQuery": "repository-prefix" + } + }, + "maxResults": { + "target": "com.amazonaws.codeartifact#ListRepositoriesInDomainMaxResults", + "traits": { + "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", + "smithy.api#httpQuery": "max-results" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", + "smithy.api#httpQuery": "next-token" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#ListRepositoriesInDomainResult": { + "type": "structure", + "members": { + "repositories": { + "target": "com.amazonaws.codeartifact#RepositorySummaryList", + "traits": { + "smithy.api#documentation": "

\n The returned list of repositories.\n

" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.codeartifact#ListRepositoriesMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.codeartifact#ListRepositoriesRequest": { + "type": "structure", + "members": { + "repositoryPrefix": { + "target": "com.amazonaws.codeartifact#RepositoryName", + "traits": { + "smithy.api#documentation": "

A prefix used to filter returned repositories. Only repositories with names that start\n with repositoryPrefix are returned.

", + "smithy.api#httpQuery": "repository-prefix" + } + }, + "maxResults": { + "target": "com.amazonaws.codeartifact#ListRepositoriesMaxResults", + "traits": { + "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", + "smithy.api#httpQuery": "max-results" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", + "smithy.api#httpQuery": "next-token" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#ListRepositoriesResult": { + "type": "structure", + "members": { + "repositories": { + "target": "com.amazonaws.codeartifact#RepositorySummaryList", + "traits": { + "smithy.api#documentation": "

\n The returned list of RepositorySummary \n objects.\n

" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.codeartifact#ListSubPackageGroups": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#ListSubPackageGroupsRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#ListSubPackageGroupsResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of direct children of the specified package group.

\n

For information package group hierarchy, see \n Package group \n definition syntax and matching behavior in the CodeArtifact User Guide.

", + "smithy.api#http": { + "method": "POST", + "uri": "/v1/package-groups/sub-groups", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "packageGroups", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.codeartifact#ListSubPackageGroupsRequest": { + "type": "structure", + "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The name of the domain which contains the package group from which to list sub package groups.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", + "traits": { + "smithy.api#documentation": "

\n The pattern of the package group from which to list sub package groups.\n

", + "smithy.api#httpQuery": "package-group", + "smithy.api#required": {} + } + }, + "maxResults": { + "target": "com.amazonaws.codeartifact#ListPackageGroupsMaxResults", + "traits": { + "smithy.api#documentation": "

\n The maximum number of results to return per page.\n

", + "smithy.api#httpQuery": "max-results" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.\n

", + "smithy.api#httpQuery": "next-token" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#ListSubPackageGroupsResult": { + "type": "structure", + "members": { + "packageGroups": { + "target": "com.amazonaws.codeartifact#PackageGroupSummaryList", + "traits": { + "smithy.api#documentation": "

\n A list of sub package groups for the requested package group.\n

" + } + }, + "nextToken": { + "target": "com.amazonaws.codeartifact#PaginationToken", + "traits": { + "smithy.api#documentation": "

\n If there are additional results, this is the token for the next set of results.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.codeartifact#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#ListTagsForResourceResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in CodeArtifact.

", + "smithy.api#http": { + "method": "POST", + "uri": "/v1/tags", + "code": 200 + } + } + }, + "com.amazonaws.codeartifact#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.codeartifact#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource to get tags for.

", + "smithy.api#httpQuery": "resourceArn", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#ListTagsForResourceResult": { + "type": "structure", + "members": { + "tags": { + "target": "com.amazonaws.codeartifact#TagList", + "traits": { + "smithy.api#documentation": "

A list of tag key and value pairs associated with the specified resource.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.codeartifact#Long": { + "type": "long", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.codeartifact#LongOptional": { + "type": "long" + }, + "com.amazonaws.codeartifact#OriginRestrictions": { + "type": "map", + "key": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestrictionType" + }, + "value": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestrictionMode" + } + }, + "com.amazonaws.codeartifact#PackageDependency": { + "type": "structure", + "members": { + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of the package that this package depends on. The package component that specifies its \n namespace depends on its type. For example:

\n " + } + }, + "package": { + "target": "com.amazonaws.codeartifact#PackageName", + "traits": { + "smithy.api#documentation": "

\n The name of the package that this package depends on.\n

" + } + }, + "dependencyType": { + "target": "com.amazonaws.codeartifact#String", + "traits": { + "smithy.api#documentation": "

The type of a package dependency. The possible values depend on the package type.

\n " + } + }, + "versionRequirement": { + "target": "com.amazonaws.codeartifact#String", + "traits": { + "smithy.api#documentation": "

\n The required version, or version range, of the package that this package depends on. The version format\n is specific to the package type. For example, the following are possible valid required versions: 1.2.3,\n ^2.3.4, or 4.x.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n Details about a package dependency.\n

" + } + }, + "com.amazonaws.codeartifact#PackageDependencyList": { + "type": "list", + "member": { + "target": "com.amazonaws.codeartifact#PackageDependency" + } + }, + "com.amazonaws.codeartifact#PackageDescription": { + "type": "structure", + "members": { + "format": { + "target": "com.amazonaws.codeartifact#PackageFormat", + "traits": { + "smithy.api#documentation": "

A format that specifies the type of the package.

" + } + }, + "namespace": { + "target": "com.amazonaws.codeartifact#PackageNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of the package. The package component that specifies its \n namespace depends on its type. For example:

\n " + } + }, + "name": { + "target": "com.amazonaws.codeartifact#PackageName", + "traits": { + "smithy.api#documentation": "

The name of the package.

" + } + }, + "originConfiguration": { + "target": "com.amazonaws.codeartifact#PackageOriginConfiguration", + "traits": { + "smithy.api#documentation": "

The package origin configuration for the package.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Details about a package.

" + } + }, + "com.amazonaws.codeartifact#PackageFormat": { + "type": "enum", + "members": { + "NPM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "npm" + } + }, + "PYPI": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "pypi" + } + }, + "MAVEN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "maven" + } + }, + "NUGET": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "nuget" + } + }, + "GENERIC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "generic" + } + }, + "SWIFT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "swift" + } + } + } + }, + "com.amazonaws.codeartifact#PackageGroupAllowedRepository": { + "type": "structure", + "members": { + "repositoryName": { + "target": "com.amazonaws.codeartifact#RepositoryName", + "traits": { + "smithy.api#documentation": "

\n The name of the allowed repository.\n

" + } + }, + "originRestrictionType": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestrictionType", + "traits": { + "smithy.api#documentation": "

The origin configuration restriction type of the allowed repository.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n Details about an allowed repository for a package group, including its name and origin configuration.\n

" + } + }, + "com.amazonaws.codeartifact#PackageGroupAllowedRepositoryList": { + "type": "list", + "member": { + "target": "com.amazonaws.codeartifact#PackageGroupAllowedRepository" + } + }, + "com.amazonaws.codeartifact#PackageGroupAllowedRepositoryUpdate": { + "type": "map", + "key": { + "target": "com.amazonaws.codeartifact#PackageGroupAllowedRepositoryUpdateType" + }, + "value": { + "target": "com.amazonaws.codeartifact#RepositoryNameList" + } + }, + "com.amazonaws.codeartifact#PackageGroupAllowedRepositoryUpdateType": { + "type": "enum", + "members": { + "ADDED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ADDED" + } + }, + "REMOVED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REMOVED" + } + } + } + }, + "com.amazonaws.codeartifact#PackageGroupAllowedRepositoryUpdates": { + "type": "map", + "key": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestrictionType" + }, + "value": { + "target": "com.amazonaws.codeartifact#PackageGroupAllowedRepositoryUpdate" + } + }, + "com.amazonaws.codeartifact#PackageGroupAssociationType": { + "type": "enum", + "members": { + "STRONG": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STRONG" + } + }, + "WEAK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "WEAK" + } + } + } + }, + "com.amazonaws.codeartifact#PackageGroupContactInfo": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1000 + }, + "smithy.api#pattern": "^\\P{C}*$" + } + }, + "com.amazonaws.codeartifact#PackageGroupDescription": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.codeartifact#Arn", + "traits": { + "smithy.api#documentation": "

\n The ARN of the package group.\n

" + } + }, + "pattern": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", + "traits": { + "smithy.api#documentation": "

\n The pattern of the package group. The pattern determines which packages are associated with the package group.\n

" + } + }, + "domainName": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The name of the domain that contains the package group.\n

" + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

" + } + }, + "createdTime": { + "target": "com.amazonaws.codeartifact#Timestamp", + "traits": { + "smithy.api#documentation": "

A timestamp that represents the date and time the package group was created.

" + } + }, + "contactInfo": { + "target": "com.amazonaws.codeartifact#PackageGroupContactInfo", + "traits": { + "smithy.api#documentation": "

\n The contact information of the package group.\n

" + } + }, + "description": { + "target": "com.amazonaws.codeartifact#Description", + "traits": { + "smithy.api#documentation": "

\n The description of the package group.\n

" + } + }, + "originConfiguration": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginConfiguration", + "traits": { + "smithy.api#documentation": "

The package group origin configuration that determines how package versions can enter repositories.

" + } + }, + "parent": { + "target": "com.amazonaws.codeartifact#PackageGroupReference", + "traits": { + "smithy.api#documentation": "

\n The direct parent package group of the package group.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n The description of the package group.\n

" + } + }, + "com.amazonaws.codeartifact#PackageGroupOriginConfiguration": { + "type": "structure", + "members": { + "restrictions": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestrictions", + "traits": { + "smithy.api#documentation": "

The origin configuration settings that determine how package versions can enter repositories.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The package group origin configuration that determines how package versions can enter repositories.

" + } + }, + "com.amazonaws.codeartifact#PackageGroupOriginRestriction": { + "type": "structure", + "members": { + "mode": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestrictionMode", + "traits": { + "smithy.api#documentation": "

The package group origin restriction setting. If the value of mode is ALLOW, \n ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode \n is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of \n mode of the first parent group which does not have a value of INHERIT.

" + } + }, + "effectiveMode": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestrictionMode", + "traits": { + "smithy.api#documentation": "

The effective package group origin restriction setting. If the value of mode is ALLOW, \n ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode \n is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of \n mode of the first parent group which does not have a value of INHERIT.

" + } + }, + "inheritedFrom": { + "target": "com.amazonaws.codeartifact#PackageGroupReference", + "traits": { + "smithy.api#documentation": "

The parent package group that the package group origin restrictions are inherited from.

" + } + }, + "repositoriesCount": { + "target": "com.amazonaws.codeartifact#LongOptional", + "traits": { + "smithy.api#documentation": "

The number of repositories in the allowed repository list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains information about the configured restrictions of the origin controls of a package group.

" + } + }, + "com.amazonaws.codeartifact#PackageGroupOriginRestrictionMode": { + "type": "enum", + "members": { + "ALLOW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALLOW" + } + }, + "ALLOW_SPECIFIC_REPOSITORIES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALLOW_SPECIFIC_REPOSITORIES" + } + }, + "BLOCK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BLOCK" + } + }, + "INHERIT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INHERIT" + } + } + } + }, + "com.amazonaws.codeartifact#PackageGroupOriginRestrictionType": { + "type": "enum", + "members": { + "EXTERNAL_UPSTREAM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EXTERNAL_UPSTREAM" + } + }, + "INTERNAL_UPSTREAM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INTERNAL_UPSTREAM" + } + }, + "PUBLISH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PUBLISH" + } + } + } + }, + "com.amazonaws.codeartifact#PackageGroupOriginRestrictions": { + "type": "map", + "key": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestrictionType" + }, + "value": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginRestriction" + } + }, + "com.amazonaws.codeartifact#PackageGroupPattern": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 2, + "max": 520 + }, + "smithy.api#pattern": "^[^\\p{C}\\p{IsWhitespace}]+$" } }, - "com.amazonaws.codeartifact#LongOptional": { - "type": "long" + "com.amazonaws.codeartifact#PackageGroupPatternPrefix": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 520 + }, + "smithy.api#pattern": "^\\P{C}*$" + } }, - "com.amazonaws.codeartifact#PackageDependency": { + "com.amazonaws.codeartifact#PackageGroupReference": { "type": "structure", "members": { - "namespace": { - "target": "com.amazonaws.codeartifact#PackageNamespace", - "traits": { - "smithy.api#documentation": "

The namespace of the package that this package depends on. The package component that specifies its \n namespace depends on its type. For example:

\n " - } - }, - "package": { - "target": "com.amazonaws.codeartifact#PackageName", - "traits": { - "smithy.api#documentation": "

\n The name of the package that this package depends on.\n

" - } - }, - "dependencyType": { - "target": "com.amazonaws.codeartifact#String", + "arn": { + "target": "com.amazonaws.codeartifact#Arn", "traits": { - "smithy.api#documentation": "

The type of a package dependency. The possible values depend on the package type.

\n " + "smithy.api#documentation": "

\n The ARN of the package group.\n

" } }, - "versionRequirement": { - "target": "com.amazonaws.codeartifact#String", + "pattern": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", "traits": { - "smithy.api#documentation": "

\n The required version, or version range, of the package that this package depends on. The version format\n is specific to the package type. For example, the following are possible valid required versions: 1.2.3,\n ^2.3.4, or 4.x.\n

" + "smithy.api#documentation": "

\n The pattern of the package group. The pattern determines which packages are associated with the package group, and is \n also the identifier of the package group.\n

" } } }, "traits": { - "smithy.api#documentation": "

\n Details about a package dependency.\n

" - } - }, - "com.amazonaws.codeartifact#PackageDependencyList": { - "type": "list", - "member": { - "target": "com.amazonaws.codeartifact#PackageDependency" + "smithy.api#documentation": "

Information about the identifiers of a package group.

" } }, - "com.amazonaws.codeartifact#PackageDescription": { + "com.amazonaws.codeartifact#PackageGroupSummary": { "type": "structure", "members": { - "format": { - "target": "com.amazonaws.codeartifact#PackageFormat", + "arn": { + "target": "com.amazonaws.codeartifact#Arn", "traits": { - "smithy.api#documentation": "

A format that specifies the type of the package.

" + "smithy.api#documentation": "

\n The ARN of the package group.\n

" } }, - "namespace": { - "target": "com.amazonaws.codeartifact#PackageNamespace", + "pattern": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", "traits": { - "smithy.api#documentation": "

The namespace of the package. The package component that specifies its \n namespace depends on its type. For example:

\n " + "smithy.api#documentation": "

\n The pattern of the package group. The pattern determines which packages are associated with the package group.\n

" } }, - "name": { - "target": "com.amazonaws.codeartifact#PackageName", + "domainName": { + "target": "com.amazonaws.codeartifact#DomainName", "traits": { - "smithy.api#documentation": "

The name of the package.

" + "smithy.api#documentation": "

\n The domain that contains the package group.\n

" } }, - "originConfiguration": { - "target": "com.amazonaws.codeartifact#PackageOriginConfiguration", - "traits": { - "smithy.api#documentation": "

The package origin configuration for the package.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Details about a package.

" - } - }, - "com.amazonaws.codeartifact#PackageFormat": { - "type": "enum", - "members": { - "NPM": { - "target": "smithy.api#Unit", + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", "traits": { - "smithy.api#enumValue": "npm" + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

" } }, - "PYPI": { - "target": "smithy.api#Unit", + "createdTime": { + "target": "com.amazonaws.codeartifact#Timestamp", "traits": { - "smithy.api#enumValue": "pypi" + "smithy.api#documentation": "

A timestamp that represents the date and time the repository was created.

" } }, - "MAVEN": { - "target": "smithy.api#Unit", + "contactInfo": { + "target": "com.amazonaws.codeartifact#PackageGroupContactInfo", "traits": { - "smithy.api#enumValue": "maven" + "smithy.api#documentation": "

\n The contact information of the package group.\n

" } }, - "NUGET": { - "target": "smithy.api#Unit", + "description": { + "target": "com.amazonaws.codeartifact#Description", "traits": { - "smithy.api#enumValue": "nuget" + "smithy.api#documentation": "

\n The description of the package group.\n

" } }, - "GENERIC": { - "target": "smithy.api#Unit", + "originConfiguration": { + "target": "com.amazonaws.codeartifact#PackageGroupOriginConfiguration", "traits": { - "smithy.api#enumValue": "generic" + "smithy.api#documentation": "

Details about the package origin configuration of a package group.

" } }, - "SWIFT": { - "target": "smithy.api#Unit", + "parent": { + "target": "com.amazonaws.codeartifact#PackageGroupReference", "traits": { - "smithy.api#enumValue": "swift" + "smithy.api#documentation": "

\n The direct parent package group of the package group.\n

" } } + }, + "traits": { + "smithy.api#documentation": "

Details about a package group.

" + } + }, + "com.amazonaws.codeartifact#PackageGroupSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.codeartifact#PackageGroupSummary" } }, "com.amazonaws.codeartifact#PackageName": { @@ -4779,7 +6038,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package. The package component that specifies its \n namespace depends on its type. For example:

\n " + "smithy.api#documentation": "

The namespace of the package. The package component that specifies its \n namespace depends on its type. For example:

\n " } }, "package": { @@ -4827,7 +6086,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package version. The package version component that specifies its \n namespace depends on its type. For example:

\n " + "smithy.api#documentation": "

The namespace of the package version. The package component that specifies its \n namespace depends on its type. For example:

\n " } }, "packageName": { @@ -5199,7 +6458,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new package version containing one or more assets (or files).

\n

The unfinished flag can be used to keep the package version in the\n Unfinished state until all of its assets have been uploaded (see Package version status in the CodeArtifact user guide). To set\n the package version’s status to Published, omit the unfinished flag\n when uploading the final asset, or set the status using UpdatePackageVersionStatus. Once a package version’s status is set to\n Published, it cannot change back to Unfinished.

\n \n

Only generic packages can be published using this API. For more information, see Using generic\n packages in the CodeArtifact User Guide.

\n
", + "smithy.api#documentation": "

Creates a new package version containing one or more assets (or files).

\n

The unfinished flag can be used to keep the package version in the\n Unfinished state until all of its assets have been uploaded (see Package version status in the CodeArtifact user guide). To set\n the package version’s status to Published, omit the unfinished flag\n when uploading the final asset, or set the status using UpdatePackageVersionStatus. Once a package version’s status is set to\n Published, it cannot change back to Unfinished.

\n \n

Only generic packages can be published using this API. For more information, see Using generic\n packages in the CodeArtifact User Guide.

\n
", "smithy.api#http": { "method": "POST", "uri": "/v1/package/version/publish", @@ -5275,7 +6534,7 @@ "assetName": { "target": "com.amazonaws.codeartifact#AssetName", "traits": { - "smithy.api#documentation": "

The name of the asset to publish. Asset names can include Unicode letters and numbers, and\n the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , .\n `\n

", + "smithy.api#documentation": "

The name of the asset to publish. Asset names can include Unicode letters and numbers, and\n the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , .\n `\n

", "smithy.api#httpQuery": "asset", "smithy.api#required": {} } @@ -5283,7 +6542,7 @@ "assetSHA256": { "target": "com.amazonaws.codeartifact#SHA256", "traits": { - "smithy.api#documentation": "

The SHA256 hash of the assetContent to publish. This value must be calculated\n by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User\n Guide).

\n

This value is used as an integrity check to verify that the assetContent has\n not changed after it was originally sent.

", + "smithy.api#documentation": "

The SHA256 hash of the assetContent to publish. This value must be calculated\n by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User\n Guide).

\n

This value is used as an integrity check to verify that the assetContent has\n not changed after it was originally sent.

", "smithy.api#httpHeader": "x-amz-content-sha256", "smithy.api#required": {} } @@ -5291,7 +6550,7 @@ "unfinished": { "target": "com.amazonaws.codeartifact#BooleanOptional", "traits": { - "smithy.api#documentation": "

Specifies whether the package version should remain in the unfinished\n state. If omitted, the package version status will be set to Published (see\n Package version status in the CodeArtifact User Guide).

\n

Valid values: unfinished\n

", + "smithy.api#documentation": "

Specifies whether the package version should remain in the unfinished\n state. If omitted, the package version status will be set to Published (see\n Package version status in the CodeArtifact User Guide).

\n

Valid values: unfinished\n

", "smithy.api#httpQuery": "unfinished" } } @@ -5509,7 +6768,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package to be updated. The package component that specifies its \n namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the package to be updated. The package component that specifies its \n namespace depends on its type. For example:

\n ", "smithy.api#httpQuery": "namespace" } }, @@ -5749,6 +7008,12 @@ "smithy.api#pattern": "^[A-Za-z0-9][A-Za-z0-9._\\-]{1,99}$" } }, + "com.amazonaws.codeartifact#RepositoryNameList": { + "type": "list", + "member": { + "target": "com.amazonaws.codeartifact#RepositoryName" + } + }, "com.amazonaws.codeartifact#RepositorySummary": { "type": "structure", "members": { @@ -6193,6 +7458,207 @@ "smithy.api#output": {} } }, + "com.amazonaws.codeartifact#UpdatePackageGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#UpdatePackageGroupRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#UpdatePackageGroupResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates a package group. This API cannot be used to update a package group's origin configuration or pattern. To update a \n package group's origin configuration, use UpdatePackageGroupOriginConfiguration.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/v1/package-group", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.codeartifact#UpdatePackageGroupOriginConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.codeartifact#UpdatePackageGroupOriginConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.codeartifact#UpdatePackageGroupOriginConfigurationResult" + }, + "errors": [ + { + "target": "com.amazonaws.codeartifact#AccessDeniedException" + }, + { + "target": "com.amazonaws.codeartifact#InternalServerException" + }, + { + "target": "com.amazonaws.codeartifact#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.codeartifact#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.codeartifact#ThrottlingException" + }, + { + "target": "com.amazonaws.codeartifact#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates the package origin configuration for a package group.

\n

The package origin configuration determines how new versions of a package can be added to a repository. You can allow or block direct \n publishing of new package versions, or ingestion and retaining of new package versions from an external connection or upstream source. \n For more information about package group origin controls and configuration, see \n Package group origin controls \n in the CodeArtifact User Guide.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/v1/package-group-origin-configuration", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.codeartifact#UpdatePackageGroupOriginConfigurationRequest": { + "type": "structure", + "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The name of the domain which contains the package group for which to update the origin configuration.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", + "traits": { + "smithy.api#documentation": "

\n The pattern of the package group for which to update the origin configuration.\n

", + "smithy.api#httpQuery": "package-group", + "smithy.api#required": {} + } + }, + "restrictions": { + "target": "com.amazonaws.codeartifact#OriginRestrictions", + "traits": { + "smithy.api#documentation": "

\n The origin configuration settings that determine how package versions can enter repositories.\n

" + } + }, + "addAllowedRepositories": { + "target": "com.amazonaws.codeartifact#PackageGroupAllowedRepositoryList", + "traits": { + "smithy.api#documentation": "

The repository name and restrictions to add to the allowed repository list of the specified package group.

" + } + }, + "removeAllowedRepositories": { + "target": "com.amazonaws.codeartifact#PackageGroupAllowedRepositoryList", + "traits": { + "smithy.api#documentation": "

The repository name and restrictions to remove from the allowed repository list of the specified package group.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#UpdatePackageGroupOriginConfigurationResult": { + "type": "structure", + "members": { + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupDescription", + "traits": { + "smithy.api#documentation": "

\n The package group and information about it after processing the request.\n

" + } + }, + "allowedRepositoryUpdates": { + "target": "com.amazonaws.codeartifact#PackageGroupAllowedRepositoryUpdates", + "traits": { + "smithy.api#documentation": "

Information about the updated allowed repositories after processing the request.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.codeartifact#UpdatePackageGroupRequest": { + "type": "structure", + "members": { + "domain": { + "target": "com.amazonaws.codeartifact#DomainName", + "traits": { + "smithy.api#documentation": "

\n The name of the domain which contains the package group to be updated.\n

", + "smithy.api#httpQuery": "domain", + "smithy.api#required": {} + } + }, + "domainOwner": { + "target": "com.amazonaws.codeartifact#AccountId", + "traits": { + "smithy.api#documentation": "

\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n

", + "smithy.api#httpQuery": "domain-owner" + } + }, + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupPattern", + "traits": { + "smithy.api#documentation": "

\n The pattern of the package group to be updated.\n

", + "smithy.api#required": {} + } + }, + "contactInfo": { + "target": "com.amazonaws.codeartifact#PackageGroupContactInfo", + "traits": { + "smithy.api#documentation": "

\n Contact information which you want to update the requested package group with.\n

" + } + }, + "description": { + "target": "com.amazonaws.codeartifact#Description", + "traits": { + "smithy.api#documentation": "

\n The description you want to update the requested package group with.\n

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codeartifact#UpdatePackageGroupResult": { + "type": "structure", + "members": { + "packageGroup": { + "target": "com.amazonaws.codeartifact#PackageGroupDescription", + "traits": { + "smithy.api#documentation": "

\n The package group and information about it after the request has been processed.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.codeartifact#UpdatePackageVersionsStatus": { "type": "operation", "input": { @@ -6267,7 +7733,7 @@ "namespace": { "target": "com.amazonaws.codeartifact#PackageNamespace", "traits": { - "smithy.api#documentation": "

The namespace of the package version to be updated. The package version component that specifies its \n namespace depends on its type. For example:

\n ", + "smithy.api#documentation": "

The namespace of the package version to be updated. The package component that specifies its \n namespace depends on its type. For example:

\n ", "smithy.api#httpQuery": "namespace" } },