Skip to content

Commit

Permalink
feat(client-codeartifact): Add support for the dual stack endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Oct 1, 2024
1 parent b7b061d commit cb499b9
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export interface GetRepositoryEndpointCommandOutput extends GetRepositoryEndpoin
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* endpointType: "dualstack" || "ipv4",
* };
* const command = new GetRepositoryEndpointCommand(input);
* const response = await client.send(command);
Expand Down
40 changes: 40 additions & 0 deletions clients/client-codeartifact/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,26 @@ export interface RepositoryExternalConnectionInfo {
* <code>nuget</code>: A NuGet package.
* </p>
* </li>
* <li>
* <p>
* <code>generic</code>: A generic package.
* </p>
* </li>
* <li>
* <p>
* <code>ruby</code>: A Ruby package.
* </p>
* </li>
* <li>
* <p>
* <code>swift</code>: A Swift package.
* </p>
* </li>
* <li>
* <p>
* <code>cargo</code>: A Cargo package.
* </p>
* </li>
* </ul>
* @public
*/
Expand Down Expand Up @@ -3362,6 +3382,20 @@ export interface GetPackageVersionReadmeResult {
readme?: string;
}

/**
* @public
* @enum
*/
export const EndpointType = {
DUALSTACK: "dualstack",
IPV4: "ipv4",
} as const;

/**
* @public
*/
export type EndpointType = (typeof EndpointType)[keyof typeof EndpointType];

/**
* @public
*/
Expand Down Expand Up @@ -3399,6 +3433,12 @@ export interface GetRepositoryEndpointRequest {
* @public
*/
format: PackageFormat | undefined;

/**
* <p>A string that specifies the type of endpoint.</p>
* @public
*/
endpointType?: EndpointType;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-codeartifact/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ export const se_GetRepositoryEndpointCommand = async (
[_do]: [, input[_dO]!],
[_r]: [, __expectNonNull(input[_r]!, `repository`)],
[_f]: [, __expectNonNull(input[_f]!, `format`)],
[_eT]: [, input[_eT]!],
});
let body: any;
b.m("GET").h(headers).q(query).b(body);
Expand Down Expand Up @@ -2855,6 +2856,7 @@ const _do = "domain-owner";
const _dr = "destination-repository";
const _du = "duration";
const _eC = "externalConnection";
const _eT = "endpointType";
const _ec = "external-connection";
const _f = "format";
const _mR = "maxResults";
Expand Down
26 changes: 25 additions & 1 deletion codegen/sdk-codegen/aws-models/codeartifact.json
Original file line number Diff line number Diff line change
Expand Up @@ -3182,6 +3182,23 @@
"target": "com.amazonaws.codeartifact#DomainSummary"
}
},
"com.amazonaws.codeartifact#EndpointType": {
"type": "enum",
"members": {
"DUALSTACK": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "dualstack"
}
},
"IPV4": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ipv4"
}
}
}
},
"com.amazonaws.codeartifact#ErrorMessage": {
"type": "string"
},
Expand Down Expand Up @@ -3817,6 +3834,13 @@
"smithy.api#httpQuery": "format",
"smithy.api#required": {}
}
},
"endpointType": {
"target": "com.amazonaws.codeartifact#EndpointType",
"traits": {
"smithy.api#documentation": "<p>A string that specifies the type of endpoint.</p>",
"smithy.api#httpQuery": "endpointType"
}
}
},
"traits": {
Expand Down Expand Up @@ -6990,7 +7014,7 @@
"packageFormat": {
"target": "com.amazonaws.codeartifact#PackageFormat",
"traits": {
"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>"
"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>"
}
},
"status": {
Expand Down

0 comments on commit cb499b9

Please sign in to comment.