@@ -130,6 +130,11 @@ import {
130130 ListRepositoriesInDomainCommandInput ,
131131 ListRepositoriesInDomainCommandOutput ,
132132} from "./commands/ListRepositoriesInDomainCommand" ;
133+ import {
134+ ListTagsForResourceCommand ,
135+ ListTagsForResourceCommandInput ,
136+ ListTagsForResourceCommandOutput ,
137+ } from "./commands/ListTagsForResourceCommand" ;
133138import {
134139 PutDomainPermissionsPolicyCommand ,
135140 PutDomainPermissionsPolicyCommandInput ,
@@ -140,6 +145,12 @@ import {
140145 PutRepositoryPermissionsPolicyCommandInput ,
141146 PutRepositoryPermissionsPolicyCommandOutput ,
142147} from "./commands/PutRepositoryPermissionsPolicyCommand" ;
148+ import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ;
149+ import {
150+ UntagResourceCommand ,
151+ UntagResourceCommandInput ,
152+ UntagResourceCommandOutput ,
153+ } from "./commands/UntagResourceCommand" ;
143154import {
144155 UpdatePackageVersionsStatusCommand ,
145156 UpdatePackageVersionsStatusCommandInput ,
@@ -178,7 +189,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
178189 * <code>mvn</code>
179190 * </b>), and <b>
180191 * <code>pip</code>
181- * </b>. You can create up to 100 repositories per AWS account. </p>
192+ * </b>.</p>
182193 * </li>
183194 * <li>
184195 * <p>
@@ -892,23 +903,19 @@ export class Codeartifact extends CodeartifactClient {
892903 * </p>
893904 *
894905 * <p>
895- * To view all disposed package versions in a repository, use <code >
896- * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListackageVersions</a >
897- * </code > and set the
898- * <code >
899- * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax" >status</a >
900- * </code > parameter
906+ * To view all disposed package versions in a repository, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html" >
907+ * <code>ListPackageVersions</code >
908+ * </a > and set the
909+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax" >
910+ * <code >status</code >
911+ * </a > parameter
901912 * to <code>Disposed</code>.
902913 * </p>
903914 *
904915 * <p>
905- * To view information about a disposed package version, use <code>
906- * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListPackageVersions</a>
907- * </code> and set the
908- * <code>
909- * <a href="https://docs.aws.amazon.com/API_ListPackageVersions.html#codeartifact-ListPackageVersions-response-status">status</a>
910- * </code> parameter
911- * to <code>Disposed</code>.
916+ * To view information about a disposed package version, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html">
917+ * <code>DescribePackageVersion</code>
918+ * </a>..
912919 * </p>
913920 */
914921 public disposePackageVersions (
@@ -942,8 +949,10 @@ export class Codeartifact extends CodeartifactClient {
942949
943950 /**
944951 * <p>
945- * Generates a temporary authentication token for accessing repositories in the domain.
952+ * Generates a temporary authorization token for accessing repositories in the domain.
946953 * This API requires the <code>codeartifact:GetAuthorizationToken</code> and <code>sts:GetServiceBearerToken</code> permissions.
954+ * For more information about authorization tokens, see
955+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/tokens-authentication.html">AWS CodeArtifact authentication and tokens</a>.
947956 * </p>
948957 * <note>
949958 * <p>CodeArtifact authorization tokens are valid for a period of 12 hours when created with the <code>login</code> command.
@@ -1451,10 +1460,47 @@ export class Codeartifact extends CodeartifactClient {
14511460 }
14521461 }
14531462
1463+ /**
1464+ * <p>Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeArtifact.</p>
1465+ */
1466+ public listTagsForResource (
1467+ args : ListTagsForResourceCommandInput ,
1468+ options ?: __HttpHandlerOptions
1469+ ) : Promise < ListTagsForResourceCommandOutput > ;
1470+ public listTagsForResource (
1471+ args : ListTagsForResourceCommandInput ,
1472+ cb : ( err : any , data ?: ListTagsForResourceCommandOutput ) => void
1473+ ) : void ;
1474+ public listTagsForResource (
1475+ args : ListTagsForResourceCommandInput ,
1476+ options : __HttpHandlerOptions ,
1477+ cb : ( err : any , data ?: ListTagsForResourceCommandOutput ) => void
1478+ ) : void ;
1479+ public listTagsForResource (
1480+ args : ListTagsForResourceCommandInput ,
1481+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListTagsForResourceCommandOutput ) => void ) ,
1482+ cb ?: ( err : any , data ?: ListTagsForResourceCommandOutput ) => void
1483+ ) : Promise < ListTagsForResourceCommandOutput > | void {
1484+ const command = new ListTagsForResourceCommand ( args ) ;
1485+ if ( typeof optionsOrCb === "function" ) {
1486+ this . send ( command , optionsOrCb ) ;
1487+ } else if ( typeof cb === "function" ) {
1488+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1489+ this . send ( command , optionsOrCb || { } , cb ) ;
1490+ } else {
1491+ return this . send ( command , optionsOrCb ) ;
1492+ }
1493+ }
1494+
14541495 /**
14551496 * <p>
14561497 * Sets a resource policy on a domain that specifies permissions to access it.
14571498 * </p>
1499+ * <p>
1500+ * When you call <code>PutDomainPermissionsPolicy</code>, the resource policy on the domain is ignored when evaluting permissions.
1501+ * This ensures that the owner of a domain cannot lock themselves out of the domain, which would prevent them from being
1502+ * able to update the resource policy.
1503+ * </p>
14581504 */
14591505 public putDomainPermissionsPolicy (
14601506 args : PutDomainPermissionsPolicyCommandInput ,
@@ -1489,6 +1535,11 @@ export class Codeartifact extends CodeartifactClient {
14891535 * <p>
14901536 * Sets the resource policy on a repository that specifies permissions to access it.
14911537 * </p>
1538+ * <p>
1539+ * When you call <code>PutRepositoryPermissionsPolicy</code>, the resource policy on the repository is ignored when evaluting permissions.
1540+ * This ensures that the owner of a repository cannot lock themselves out of the repository, which would prevent them from being
1541+ * able to update the resource policy.
1542+ * </p>
14921543 */
14931544 public putRepositoryPermissionsPolicy (
14941545 args : PutRepositoryPermissionsPolicyCommandInput ,
@@ -1519,6 +1570,64 @@ export class Codeartifact extends CodeartifactClient {
15191570 }
15201571 }
15211572
1573+ /**
1574+ * <p>Adds or updates tags for a resource in AWS CodeArtifact.</p>
1575+ */
1576+ public tagResource ( args : TagResourceCommandInput , options ?: __HttpHandlerOptions ) : Promise < TagResourceCommandOutput > ;
1577+ public tagResource ( args : TagResourceCommandInput , cb : ( err : any , data ?: TagResourceCommandOutput ) => void ) : void ;
1578+ public tagResource (
1579+ args : TagResourceCommandInput ,
1580+ options : __HttpHandlerOptions ,
1581+ cb : ( err : any , data ?: TagResourceCommandOutput ) => void
1582+ ) : void ;
1583+ public tagResource (
1584+ args : TagResourceCommandInput ,
1585+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: TagResourceCommandOutput ) => void ) ,
1586+ cb ?: ( err : any , data ?: TagResourceCommandOutput ) => void
1587+ ) : Promise < TagResourceCommandOutput > | void {
1588+ const command = new TagResourceCommand ( args ) ;
1589+ if ( typeof optionsOrCb === "function" ) {
1590+ this . send ( command , optionsOrCb ) ;
1591+ } else if ( typeof cb === "function" ) {
1592+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1593+ this . send ( command , optionsOrCb || { } , cb ) ;
1594+ } else {
1595+ return this . send ( command , optionsOrCb ) ;
1596+ }
1597+ }
1598+
1599+ /**
1600+ * <p>Removes tags from a resource in AWS CodeArtifact.</p>
1601+ */
1602+ public untagResource (
1603+ args : UntagResourceCommandInput ,
1604+ options ?: __HttpHandlerOptions
1605+ ) : Promise < UntagResourceCommandOutput > ;
1606+ public untagResource (
1607+ args : UntagResourceCommandInput ,
1608+ cb : ( err : any , data ?: UntagResourceCommandOutput ) => void
1609+ ) : void ;
1610+ public untagResource (
1611+ args : UntagResourceCommandInput ,
1612+ options : __HttpHandlerOptions ,
1613+ cb : ( err : any , data ?: UntagResourceCommandOutput ) => void
1614+ ) : void ;
1615+ public untagResource (
1616+ args : UntagResourceCommandInput ,
1617+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UntagResourceCommandOutput ) => void ) ,
1618+ cb ?: ( err : any , data ?: UntagResourceCommandOutput ) => void
1619+ ) : Promise < UntagResourceCommandOutput > | void {
1620+ const command = new UntagResourceCommand ( args ) ;
1621+ if ( typeof optionsOrCb === "function" ) {
1622+ this . send ( command , optionsOrCb ) ;
1623+ } else if ( typeof cb === "function" ) {
1624+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1625+ this . send ( command , optionsOrCb || { } , cb ) ;
1626+ } else {
1627+ return this . send ( command , optionsOrCb ) ;
1628+ }
1629+ }
1630+
15221631 /**
15231632 * <p>
15241633 * Updates the status of one or more versions of a package.
0 commit comments