Class: Aws::CodeArtifact::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CodeArtifact::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- lib/aws-sdk-codeartifact/client.rb
Overview
An API client for CodeArtifact. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::CodeArtifact::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#associate_external_connection(params = {}) ⇒ Types::AssociateExternalConnectionResult
Adds an existing external connection to a repository.
-
#copy_package_versions(params = {}) ⇒ Types::CopyPackageVersionsResult
Copies package versions from one repository to another repository in the same domain.
-
#create_domain(params = {}) ⇒ Types::CreateDomainResult
Creates a domain.
-
#create_repository(params = {}) ⇒ Types::CreateRepositoryResult
Creates a repository.
-
#delete_domain(params = {}) ⇒ Types::DeleteDomainResult
Deletes a domain.
-
#delete_domain_permissions_policy(params = {}) ⇒ Types::DeleteDomainPermissionsPolicyResult
Deletes the resource policy set on a domain.
-
#delete_package(params = {}) ⇒ Types::DeletePackageResult
Deletes a package and all associated package versions.
-
#delete_package_versions(params = {}) ⇒ Types::DeletePackageVersionsResult
Deletes one or more versions of a package.
-
#delete_repository(params = {}) ⇒ Types::DeleteRepositoryResult
Deletes a repository.
-
#delete_repository_permissions_policy(params = {}) ⇒ Types::DeleteRepositoryPermissionsPolicyResult
Deletes the resource policy that is set on a repository.
-
#describe_domain(params = {}) ⇒ Types::DescribeDomainResult
Returns a [DomainDescription] object that contains information about the requested domain.
-
#describe_package(params = {}) ⇒ Types::DescribePackageResult
Returns a [PackageDescription] object that contains information about the requested package.
-
#describe_package_version(params = {}) ⇒ Types::DescribePackageVersionResult
Returns a [PackageVersionDescription] object that contains information about the requested package version.
-
#describe_repository(params = {}) ⇒ Types::DescribeRepositoryResult
Returns a ‘RepositoryDescription` object that contains detailed information about the requested repository.
-
#disassociate_external_connection(params = {}) ⇒ Types::DisassociateExternalConnectionResult
Removes an existing external connection from a repository.
-
#dispose_package_versions(params = {}) ⇒ Types::DisposePackageVersionsResult
Deletes the assets in package versions and sets the package versions’ status to ‘Disposed`.
-
#get_authorization_token(params = {}) ⇒ Types::GetAuthorizationTokenResult
Generates a temporary authorization token for accessing repositories in the domain.
-
#get_domain_permissions_policy(params = {}) ⇒ Types::GetDomainPermissionsPolicyResult
Returns the resource policy attached to the specified domain.
-
#get_package_version_asset(params = {}) ⇒ Types::GetPackageVersionAssetResult
Returns an asset (or file) that is in a package.
-
#get_package_version_readme(params = {}) ⇒ Types::GetPackageVersionReadmeResult
Gets the readme file or descriptive text for a package version.
-
#get_repository_endpoint(params = {}) ⇒ Types::GetRepositoryEndpointResult
Returns the endpoint of a repository for a specific package format.
-
#get_repository_permissions_policy(params = {}) ⇒ Types::GetRepositoryPermissionsPolicyResult
Returns the resource policy that is set on a repository.
-
#list_domains(params = {}) ⇒ Types::ListDomainsResult
Returns a list of [DomainSummary] objects for all domains owned by the Amazon Web Services account that makes this call.
-
#list_package_version_assets(params = {}) ⇒ Types::ListPackageVersionAssetsResult
Returns a list of [AssetSummary] objects for assets in a package version.
-
#list_package_version_dependencies(params = {}) ⇒ Types::ListPackageVersionDependenciesResult
Returns the direct dependencies for a package version.
-
#list_package_versions(params = {}) ⇒ Types::ListPackageVersionsResult
Returns a list of [PackageVersionSummary] objects for package versions in a repository that match the request parameters.
-
#list_packages(params = {}) ⇒ Types::ListPackagesResult
Returns a list of [PackageSummary] objects for packages in a repository that match the request parameters.
-
#list_repositories(params = {}) ⇒ Types::ListRepositoriesResult
Returns a list of [RepositorySummary] objects.
-
#list_repositories_in_domain(params = {}) ⇒ Types::ListRepositoriesInDomainResult
Returns a list of [RepositorySummary] objects.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResult
Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in CodeArtifact.
-
#publish_package_version(params = {}) ⇒ Types::PublishPackageVersionResult
Creates a new package version containing one or more assets (or files).
-
#put_domain_permissions_policy(params = {}) ⇒ Types::PutDomainPermissionsPolicyResult
Sets a resource policy on a domain that specifies permissions to access it.
-
#put_package_origin_configuration(params = {}) ⇒ Types::PutPackageOriginConfigurationResult
Sets the package origin configuration for a package.
-
#put_repository_permissions_policy(params = {}) ⇒ Types::PutRepositoryPermissionsPolicyResult
Sets the resource policy on a repository that specifies permissions to access it.
-
#tag_resource(params = {}) ⇒ Struct
Adds or updates tags for a resource in CodeArtifact.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a resource in CodeArtifact.
-
#update_package_versions_status(params = {}) ⇒ Types::UpdatePackageVersionsStatusResult
Updates the status of one or more versions of a package.
-
#update_repository(params = {}) ⇒ Types::UpdateRepositoryResult
Update the properties of a repository.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
370 371 372 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 370 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3091 3092 3093 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 3091 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3094 3095 3096 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 3094 def errors_module Errors end |
Instance Method Details
#associate_external_connection(params = {}) ⇒ Types::AssociateExternalConnectionResult
Adds an existing external connection to a repository. One external connection is allowed per repository.
<note markdown=“1”> A repository can have one or more upstream repositories, or an external connection.
</note>
447 448 449 450 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 447 def associate_external_connection(params = {}, = {}) req = build_request(:associate_external_connection, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 3069 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-codeartifact' context[:gem_version] = '1.29.0' Seahorse::Client::Request.new(handlers, context) end |
#copy_package_versions(params = {}) ⇒ Types::CopyPackageVersionsResult
Copies package versions from one repository to another repository in the same domain.
<note markdown=“1”> You must specify ‘versions` or `versionRevisions`. You cannot specify both.
</note>
569 570 571 572 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 569 def copy_package_versions(params = {}, = {}) req = build_request(:copy_package_versions, params) req.send_request() end |
#create_domain(params = {}) ⇒ Types::CreateDomainResult
Creates a domain. CodeArtifact domains make it easier to manage multiple repositories across an organization. You can use a domain to apply permissions across many repositories owned by different Amazon Web Services accounts. An asset is stored only once in a domain, even if it’s in multiple repositories.
Although you can have multiple domains, we recommend a single production domain that contains all published artifacts so that your development teams can find and share packages. You can use a second pre-production domain to test changes to the production domain configuration.
650 651 652 653 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 650 def create_domain(params = {}, = {}) req = build_request(:create_domain, params) req.send_request() end |
#create_repository(params = {}) ⇒ Types::CreateRepositoryResult
Creates a repository.
728 729 730 731 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 728 def create_repository(params = {}, = {}) req = build_request(:create_repository, params) req.send_request() end |
#delete_domain(params = {}) ⇒ Types::DeleteDomainResult
Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories.
771 772 773 774 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 771 def delete_domain(params = {}, = {}) req = build_request(:delete_domain, params) req.send_request() end |
#delete_domain_permissions_policy(params = {}) ⇒ Types::DeleteDomainPermissionsPolicyResult
Deletes the resource policy set on a domain.
813 814 815 816 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 813 def (params = {}, = {}) req = build_request(:delete_domain_permissions_policy, params) req.send_request() end |
#delete_package(params = {}) ⇒ Types::DeletePackageResult
Deletes a package and all associated package versions. A deleted package cannot be restored. To delete one or more package versions, use the [DeletePackageVersions] API.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_DeletePackageVersions.html
883 884 885 886 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 883 def delete_package(params = {}, = {}) req = build_request(:delete_package, params) req.send_request() end |
#delete_package_versions(params = {}) ⇒ Types::DeletePackageVersionsResult
Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If you want to remove a package version from your repository and be able to restore it later, set its status to ‘Archived`. Archived packages cannot be downloaded from a repository and don’t show up with list package APIs (for example, [ListPackageVersions]), but you can restore them using [UpdatePackageVersionsStatus].
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html [2]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html
972 973 974 975 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 972 def delete_package_versions(params = {}, = {}) req = build_request(:delete_package_versions, params) req.send_request() end |
#delete_repository(params = {}) ⇒ Types::DeleteRepositoryResult
Deletes a repository.
1021 1022 1023 1024 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1021 def delete_repository(params = {}, = {}) req = build_request(:delete_repository, params) req.send_request() end |
#delete_repository_permissions_policy(params = {}) ⇒ Types::DeleteRepositoryPermissionsPolicyResult
Deletes the resource policy that is set on a repository. After a resource policy is deleted, the permissions allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be immediate.
Use ‘DeleteRepositoryPermissionsPolicy` with caution. After a policy is deleted, Amazon Web Services users, roles, and accounts lose permissions to perform the repository actions granted by the deleted policy.
1077 1078 1079 1080 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1077 def (params = {}, = {}) req = build_request(:delete_repository_permissions_policy, params) req.send_request() end |
#describe_domain(params = {}) ⇒ Types::DescribeDomainResult
Returns a [DomainDescription] object that contains information about the requested domain.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_DomainDescription.html
1123 1124 1125 1126 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1123 def describe_domain(params = {}, = {}) req = build_request(:describe_domain, params) req.send_request() end |
#describe_package(params = {}) ⇒ Types::DescribePackageResult
Returns a [PackageDescription] object that contains information about the requested package.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDescription.html
1193 1194 1195 1196 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1193 def describe_package(params = {}, = {}) req = build_request(:describe_package, params) req.send_request() end |
#describe_package_version(params = {}) ⇒ Types::DescribePackageVersionResult
Returns a [PackageVersionDescription] object that contains information about the requested package version.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html
1280 1281 1282 1283 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1280 def describe_package_version(params = {}, = {}) req = build_request(:describe_package_version, params) req.send_request() end |
#describe_repository(params = {}) ⇒ Types::DescribeRepositoryResult
Returns a ‘RepositoryDescription` object that contains detailed information about the requested repository.
1330 1331 1332 1333 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1330 def describe_repository(params = {}, = {}) req = build_request(:describe_repository, params) req.send_request() end |
#disassociate_external_connection(params = {}) ⇒ Types::DisassociateExternalConnectionResult
Removes an existing external connection from a repository.
1385 1386 1387 1388 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1385 def disassociate_external_connection(params = {}, = {}) req = build_request(:disassociate_external_connection, params) req.send_request() end |
#dispose_package_versions(params = {}) ⇒ Types::DisposePackageVersionsResult
Deletes the assets in package versions and sets the package versions’ status to ‘Disposed`. A disposed package version cannot be restored in your repository because its assets are deleted.
To view all disposed package versions in a repository, use
- ListPackageVersions][1
-
and set the [status] parameter to
‘Disposed`.
To view information about a disposed package version, use [DescribePackageVersion].
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html [2]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax [3]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html
1484 1485 1486 1487 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1484 def dispose_package_versions(params = {}, = {}) req = build_request(:dispose_package_versions, params) req.send_request() end |
#get_authorization_token(params = {}) ⇒ Types::GetAuthorizationTokenResult
Generates a temporary authorization token for accessing repositories in the domain. This API requires the ‘codeartifact:GetAuthorizationToken` and `sts:GetServiceBearerToken` permissions. For more information about authorization tokens, see [CodeArtifact authentication and tokens].
<note markdown=“1”> CodeArtifact authorization tokens are valid for a period of 12 hours when created with the ‘login` command. You can call `login` periodically to refresh the token. When you create an authorization token with the `GetAuthorizationToken` API, you can set a custom authorization period, up to a maximum of 12 hours, with the `durationSeconds` parameter.
The authorization period begins after `login` or
‘GetAuthorizationToken` is called. If `login` or `GetAuthorizationToken` is called while assuming a role, the token lifetime is independent of the maximum session duration of the role. For example, if you call `sts assume-role` and specify a session duration of 15 minutes, then generate a CodeArtifact authorization token, the token will be valid for the full authorization period even though this is longer than the 15-minute session duration.
See [Using IAM Roles][2] for more information on controlling session
duration.
</note>
[1]: docs.aws.amazon.com/codeartifact/latest/ug/tokens-authentication.html [2]: docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
1558 1559 1560 1561 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1558 def (params = {}, = {}) req = build_request(:get_authorization_token, params) req.send_request() end |
#get_domain_permissions_policy(params = {}) ⇒ Types::GetDomainPermissionsPolicyResult
Returns the resource policy attached to the specified domain.
<note markdown=“1”> The policy is a resource-based policy, not an identity-based policy. For more information, see [Identity-based policies and resource-based policies ][1] in the *IAM User Guide*.
</note>
[1]: docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html
1603 1604 1605 1606 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1603 def (params = {}, = {}) req = build_request(:get_domain_permissions_policy, params) req.send_request() end |
#get_package_version_asset(params = {}) ⇒ Types::GetPackageVersionAssetResult
Returns an asset (or file) that is in a package. For example, for a Maven package version, use ‘GetPackageVersionAsset` to download a `JAR` file, a `POM` file, or any other assets in the package version.
1688 1689 1690 1691 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1688 def get_package_version_asset(params = {}, = {}, &block) req = build_request(:get_package_version_asset, params) req.send_request(, &block) end |
#get_package_version_readme(params = {}) ⇒ Types::GetPackageVersionReadmeResult
Gets the readme file or descriptive text for a package version.
The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.
1766 1767 1768 1769 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1766 def get_package_version_readme(params = {}, = {}) req = build_request(:get_package_version_readme, params) req.send_request() end |
#get_repository_endpoint(params = {}) ⇒ Types::GetRepositoryEndpointResult
Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:
-
‘maven`
-
‘npm`
-
‘nuget`
-
‘pypi`
1818 1819 1820 1821 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1818 def get_repository_endpoint(params = {}, = {}) req = build_request(:get_repository_endpoint, params) req.send_request() end |
#get_repository_permissions_policy(params = {}) ⇒ Types::GetRepositoryPermissionsPolicyResult
Returns the resource policy that is set on a repository.
1859 1860 1861 1862 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1859 def (params = {}, = {}) req = build_request(:get_repository_permissions_policy, params) req.send_request() end |
#list_domains(params = {}) ⇒ Types::ListDomainsResult
Returns a list of [DomainSummary] objects for all domains owned by the Amazon Web Services account that makes this call. Each returned ‘DomainSummary` object contains information about a domain.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1909 1910 1911 1912 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 1909 def list_domains(params = {}, = {}) req = build_request(:list_domains, params) req.send_request() end |
#list_package_version_assets(params = {}) ⇒ Types::ListPackageVersionAssetsResult
Returns a list of [AssetSummary] objects for assets in a package version.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2011 2012 2013 2014 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2011 def list_package_version_assets(params = {}, = {}) req = build_request(:list_package_version_assets, params) req.send_request() end |
#list_package_version_dependencies(params = {}) ⇒ Types::ListPackageVersionDependenciesResult
Returns the direct dependencies for a package version. The dependencies are returned as [PackageDependency] objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package format (for example, the ‘package.json` file for npm packages and the `pom.xml` file for Maven). Any package version dependencies that are not listed in the configuration file are not returned.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html
2110 2111 2112 2113 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2110 def list_package_version_dependencies(params = {}, = {}) req = build_request(:list_package_version_dependencies, params) req.send_request() end |
#list_package_versions(params = {}) ⇒ Types::ListPackageVersionsResult
Returns a list of [PackageVersionSummary] 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.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2221 2222 2223 2224 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2221 def list_package_versions(params = {}, = {}) req = build_request(:list_package_versions, params) req.send_request() end |
#list_packages(params = {}) ⇒ Types::ListPackagesResult
Returns a list of [PackageSummary] objects for packages in a repository that match the request parameters.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2333 2334 2335 2336 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2333 def list_packages(params = {}, = {}) req = build_request(:list_packages, params) req.send_request() end |
#list_repositories(params = {}) ⇒ Types::ListRepositoriesResult
Returns a list of [RepositorySummary] objects. Each ‘RepositorySummary` contains information about a repository in the specified Amazon Web Services account and that matches the input parameters.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2390 2391 2392 2393 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2390 def list_repositories(params = {}, = {}) req = build_request(:list_repositories, params) req.send_request() end |
#list_repositories_in_domain(params = {}) ⇒ Types::ListRepositoriesInDomainResult
Returns a list of [RepositorySummary] objects. Each ‘RepositorySummary` contains information about a repository in the specified domain and that matches the input parameters.
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2461 2462 2463 2464 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2461 def list_repositories_in_domain(params = {}, = {}) req = build_request(:list_repositories_in_domain, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResult
Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in CodeArtifact.
2492 2493 2494 2495 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2492 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#publish_package_version(params = {}) ⇒ Types::PublishPackageVersionResult
Creates a new package version containing one or more assets (or files).
The ‘unfinished` flag can be used to keep the package version in the `Unfinished` state until all of its assets have been uploaded (see
- Package version status][1
-
in the *CodeArtifact user guide*). To set
the package version’s status to ‘Published`, omit the `unfinished` flag when uploading the final asset, or set the status using [UpdatePackageVersionStatus]. Once a package version’s status is set to `Published`, it cannot change back to `Unfinished`.
<note markdown=“1”> Only generic packages can be published using this API. For more information, see [Using generic packages] in the *CodeArtifact User Guide*.
</note>
[1]: docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status [2]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html [3]: docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html
2620 2621 2622 2623 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2620 def publish_package_version(params = {}, = {}) req = build_request(:publish_package_version, params) req.send_request() end |
#put_domain_permissions_policy(params = {}) ⇒ Types::PutDomainPermissionsPolicyResult
Sets a resource policy on a domain that specifies permissions to access it.
When you call ‘PutDomainPermissionsPolicy`, the resource policy on the domain is ignored when evaluting permissions. This ensures that the owner of a domain cannot lock themselves out of the domain, which would prevent them from being able to update the resource policy.
2672 2673 2674 2675 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2672 def (params = {}, = {}) req = build_request(:put_domain_permissions_policy, params) req.send_request() end |
#put_package_origin_configuration(params = {}) ⇒ Types::PutPackageOriginConfigurationResult
Sets the package origin configuration for a package.
The package origin configuration determines how new versions of a package can be added to a repository. You can allow or block direct publishing of new package versions, or ingestion and retaining of new package versions from an external connection or upstream source. For more information about package origin controls and configuration, see
- Editing package origin controls][1
-
in the *CodeArtifact User Guide*.
‘PutPackageOriginConfiguration` can be called on a package that doesn’t yet exist in the repository. When called on a package that does not exist, a package is created in the repository with no versions and the requested restrictions are set on the package. This can be used to preemptively block ingesting or retaining any versions from external connections or upstream repositories, or to block publishing any versions of the package into the repository before connecting any package managers or publishers to the repository.
[1]: docs.aws.amazon.com/codeartifact/latest/ug/package-origin-controls.html
2772 2773 2774 2775 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2772 def put_package_origin_configuration(params = {}, = {}) req = build_request(:put_package_origin_configuration, params) req.send_request() end |
#put_repository_permissions_policy(params = {}) ⇒ Types::PutRepositoryPermissionsPolicyResult
Sets the resource policy on a repository that specifies permissions to access it.
When you call ‘PutRepositoryPermissionsPolicy`, the resource policy on the repository is ignored when evaluting permissions. This ensures that the owner of a repository cannot lock themselves out of the repository, which would prevent them from being able to update the resource policy.
2831 2832 2833 2834 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2831 def (params = {}, = {}) req = build_request(:put_repository_permissions_policy, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds or updates tags for a resource in CodeArtifact.
2863 2864 2865 2866 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2863 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a resource in CodeArtifact.
2890 2891 2892 2893 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2890 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_package_versions_status(params = {}) ⇒ Types::UpdatePackageVersionsStatusResult
Updates the status of one or more versions of a package. Using ‘UpdatePackageVersionsStatus`, you can update the status of package versions to `Archived`, `Published`, or `Unlisted`. To set the status of a package version to `Disposed`, use [DisposePackageVersions].
[1]: docs.aws.amazon.com/codeartifact/latest/APIReference/API_DisposePackageVersions.html
2991 2992 2993 2994 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 2991 def update_package_versions_status(params = {}, = {}) req = build_request(:update_package_versions_status, params) req.send_request() end |
#update_repository(params = {}) ⇒ Types::UpdateRepositoryResult
Update the properties of a repository.
3060 3061 3062 3063 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 3060 def update_repository(params = {}, = {}) req = build_request(:update_repository, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3084 3085 3086 |
# File 'lib/aws-sdk-codeartifact/client.rb', line 3084 def waiter_names [] end |