@@ -130,6 +130,11 @@ import {
130
130
ListRepositoriesInDomainCommandInput ,
131
131
ListRepositoriesInDomainCommandOutput ,
132
132
} from "./commands/ListRepositoriesInDomainCommand" ;
133
+ import {
134
+ ListTagsForResourceCommand ,
135
+ ListTagsForResourceCommandInput ,
136
+ ListTagsForResourceCommandOutput ,
137
+ } from "./commands/ListTagsForResourceCommand" ;
133
138
import {
134
139
PutDomainPermissionsPolicyCommand ,
135
140
PutDomainPermissionsPolicyCommandInput ,
@@ -140,6 +145,12 @@ import {
140
145
PutRepositoryPermissionsPolicyCommandInput ,
141
146
PutRepositoryPermissionsPolicyCommandOutput ,
142
147
} from "./commands/PutRepositoryPermissionsPolicyCommand" ;
148
+ import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ;
149
+ import {
150
+ UntagResourceCommand ,
151
+ UntagResourceCommandInput ,
152
+ UntagResourceCommandOutput ,
153
+ } from "./commands/UntagResourceCommand" ;
143
154
import {
144
155
UpdatePackageVersionsStatusCommand ,
145
156
UpdatePackageVersionsStatusCommandInput ,
@@ -178,7 +189,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
178
189
* <code>mvn</code>
179
190
* </b>), and <b>
180
191
* <code>pip</code>
181
- * </b>. You can create up to 100 repositories per AWS account. </p>
192
+ * </b>.</p>
182
193
* </li>
183
194
* <li>
184
195
* <p>
@@ -892,23 +903,19 @@ export class Codeartifact extends CodeartifactClient {
892
903
* </p>
893
904
*
894
905
* <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
901
912
* to <code>Disposed</code>.
902
913
* </p>
903
914
*
904
915
* <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>..
912
919
* </p>
913
920
*/
914
921
public disposePackageVersions (
@@ -942,8 +949,10 @@ export class Codeartifact extends CodeartifactClient {
942
949
943
950
/**
944
951
* <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.
946
953
* 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>.
947
956
* </p>
948
957
* <note>
949
958
* <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 {
1451
1460
}
1452
1461
}
1453
1462
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
+
1454
1495
/**
1455
1496
* <p>
1456
1497
* Sets a resource policy on a domain that specifies permissions to access it.
1457
1498
* </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>
1458
1504
*/
1459
1505
public putDomainPermissionsPolicy (
1460
1506
args : PutDomainPermissionsPolicyCommandInput ,
@@ -1489,6 +1535,11 @@ export class Codeartifact extends CodeartifactClient {
1489
1535
* <p>
1490
1536
* Sets the resource policy on a repository that specifies permissions to access it.
1491
1537
* </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>
1492
1543
*/
1493
1544
public putRepositoryPermissionsPolicy (
1494
1545
args : PutRepositoryPermissionsPolicyCommandInput ,
@@ -1519,6 +1570,64 @@ export class Codeartifact extends CodeartifactClient {
1519
1570
}
1520
1571
}
1521
1572
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
+
1522
1631
/**
1523
1632
* <p>
1524
1633
* Updates the status of one or more versions of a package.
0 commit comments