Skip to content

Commit cb499b9

Browse files
author
awstools
committed
feat(client-codeartifact): Add support for the dual stack endpoints.
1 parent b7b061d commit cb499b9

File tree

4 files changed

+68
-1
lines changed

4 files changed

+68
-1
lines changed

clients/client-codeartifact/src/commands/GetRepositoryEndpointCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export interface GetRepositoryEndpointCommandOutput extends GetRepositoryEndpoin
8585
* domainOwner: "STRING_VALUE",
8686
* repository: "STRING_VALUE", // required
8787
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
88+
* endpointType: "dualstack" || "ipv4",
8889
* };
8990
* const command = new GetRepositoryEndpointCommand(input);
9091
* const response = await client.send(command);

clients/client-codeartifact/src/models/models_0.ts

+40
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,26 @@ export interface RepositoryExternalConnectionInfo {
333333
* <code>nuget</code>: A NuGet package.
334334
* </p>
335335
* </li>
336+
* <li>
337+
* <p>
338+
* <code>generic</code>: A generic package.
339+
* </p>
340+
* </li>
341+
* <li>
342+
* <p>
343+
* <code>ruby</code>: A Ruby package.
344+
* </p>
345+
* </li>
346+
* <li>
347+
* <p>
348+
* <code>swift</code>: A Swift package.
349+
* </p>
350+
* </li>
351+
* <li>
352+
* <p>
353+
* <code>cargo</code>: A Cargo package.
354+
* </p>
355+
* </li>
336356
* </ul>
337357
* @public
338358
*/
@@ -3362,6 +3382,20 @@ export interface GetPackageVersionReadmeResult {
33623382
readme?: string;
33633383
}
33643384

3385+
/**
3386+
* @public
3387+
* @enum
3388+
*/
3389+
export const EndpointType = {
3390+
DUALSTACK: "dualstack",
3391+
IPV4: "ipv4",
3392+
} as const;
3393+
3394+
/**
3395+
* @public
3396+
*/
3397+
export type EndpointType = (typeof EndpointType)[keyof typeof EndpointType];
3398+
33653399
/**
33663400
* @public
33673401
*/
@@ -3399,6 +3433,12 @@ export interface GetRepositoryEndpointRequest {
33993433
* @public
34003434
*/
34013435
format: PackageFormat | undefined;
3436+
3437+
/**
3438+
* <p>A string that specifies the type of endpoint.</p>
3439+
* @public
3440+
*/
3441+
endpointType?: EndpointType;
34023442
}
34033443

34043444
/**

clients/client-codeartifact/src/protocols/Aws_restJson1.ts

+2
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ export const se_GetRepositoryEndpointCommand = async (
767767
[_do]: [, input[_dO]!],
768768
[_r]: [, __expectNonNull(input[_r]!, `repository`)],
769769
[_f]: [, __expectNonNull(input[_f]!, `format`)],
770+
[_eT]: [, input[_eT]!],
770771
});
771772
let body: any;
772773
b.m("GET").h(headers).q(query).b(body);
@@ -2855,6 +2856,7 @@ const _do = "domain-owner";
28552856
const _dr = "destination-repository";
28562857
const _du = "duration";
28572858
const _eC = "externalConnection";
2859+
const _eT = "endpointType";
28582860
const _ec = "external-connection";
28592861
const _f = "format";
28602862
const _mR = "maxResults";

codegen/sdk-codegen/aws-models/codeartifact.json

+25-1
Original file line numberDiff line numberDiff line change
@@ -3182,6 +3182,23 @@
31823182
"target": "com.amazonaws.codeartifact#DomainSummary"
31833183
}
31843184
},
3185+
"com.amazonaws.codeartifact#EndpointType": {
3186+
"type": "enum",
3187+
"members": {
3188+
"DUALSTACK": {
3189+
"target": "smithy.api#Unit",
3190+
"traits": {
3191+
"smithy.api#enumValue": "dualstack"
3192+
}
3193+
},
3194+
"IPV4": {
3195+
"target": "smithy.api#Unit",
3196+
"traits": {
3197+
"smithy.api#enumValue": "ipv4"
3198+
}
3199+
}
3200+
}
3201+
},
31853202
"com.amazonaws.codeartifact#ErrorMessage": {
31863203
"type": "string"
31873204
},
@@ -3817,6 +3834,13 @@
38173834
"smithy.api#httpQuery": "format",
38183835
"smithy.api#required": {}
38193836
}
3837+
},
3838+
"endpointType": {
3839+
"target": "com.amazonaws.codeartifact#EndpointType",
3840+
"traits": {
3841+
"smithy.api#documentation": "<p>A string that specifies the type of endpoint.</p>",
3842+
"smithy.api#httpQuery": "endpointType"
3843+
}
38203844
}
38213845
},
38223846
"traits": {
@@ -6990,7 +7014,7 @@
69907014
"packageFormat": {
69917015
"target": "com.amazonaws.codeartifact#PackageFormat",
69927016
"traits": {
6993-
"smithy.api#documentation": "<p>\n The package format associated with a repository's external connection. The valid package formats are:\n </p>\n <ul>\n <li>\n <p>\n <code>npm</code>: A Node Package Manager (npm) package.\n </p>\n </li>\n <li>\n <p>\n <code>pypi</code>: A Python Package Index (PyPI) package.\n </p>\n </li>\n <li>\n <p>\n <code>maven</code>: A Maven package that contains compiled code in a distributable format, such as a JAR file.\n </p>\n </li>\n <li>\n <p>\n <code>nuget</code>: A NuGet package.\n </p>\n </li>\n </ul>"
7017+
"smithy.api#documentation": "<p>\n The package format associated with a repository's external connection. The valid package formats are:\n </p>\n <ul>\n <li>\n <p>\n <code>npm</code>: A Node Package Manager (npm) package.\n </p>\n </li>\n <li>\n <p>\n <code>pypi</code>: A Python Package Index (PyPI) package.\n </p>\n </li>\n <li>\n <p>\n <code>maven</code>: A Maven package that contains compiled code in a distributable format, such as a JAR file.\n </p>\n </li>\n <li>\n <p>\n <code>nuget</code>: A NuGet package.\n </p>\n </li>\n <li>\n <p>\n <code>generic</code>: A generic package.\n </p>\n </li>\n <li>\n <p>\n <code>ruby</code>: A Ruby package.\n </p>\n </li>\n <li>\n <p>\n <code>swift</code>: A Swift package.\n </p>\n </li>\n <li>\n <p>\n <code>cargo</code>: A Cargo package.\n </p>\n </li>\n </ul>"
69947018
}
69957019
},
69967020
"status": {

0 commit comments

Comments
 (0)