Skip to content

Commit

Permalink
feat(client-codestar-connections): New integration with the Gitlab pr…
Browse files Browse the repository at this point in the history
…ovider type.
  • Loading branch information
awstools committed Jul 31, 2023
1 parent 1b1fd26 commit 49eb24c
Show file tree
Hide file tree
Showing 15 changed files with 636 additions and 867 deletions.
18 changes: 9 additions & 9 deletions clients/client-codestar-connections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ AWS SDK for JavaScript CodeStarConnections Client for Node.js, Browser and React

<fullname>AWS CodeStar Connections</fullname>

<p>This AWS CodeStar Connections API Reference provides descriptions and usage examples of
the operations and data types for the AWS CodeStar Connections API. You can use the
<p>This Amazon Web Services CodeStar Connections API Reference provides descriptions and usage examples of
the operations and data types for the Amazon Web Services CodeStar Connections API. You can use the
connections API to work with connections and installations.</p>
<p>
<i>Connections</i> are configurations that you use to connect AWS
<i>Connections</i> are configurations that you use to connect Amazon Web Services
resources to external code repositories. Each connection is a resource that can be given to
services such as CodePipeline to connect to a third-party repository such as Bitbucket. For
example, you can add the connection in CodePipeline so that it triggers your pipeline when a
Expand Down Expand Up @@ -67,25 +67,25 @@ the setup status.</p>
account.</p>
</li>
</ul>
<p>You can work with tags in AWS CodeStar Connections by calling the following:</p>
<p>You can work with tags in Amazon Web Services CodeStar Connections by calling the following:</p>
<ul>
<li>
<p>
<a>ListTagsForResource</a>, which gets information about AWS tags for a
specified Amazon Resource Name (ARN) in AWS CodeStar Connections.</p>
<a>ListTagsForResource</a>, which gets information about Amazon Web Services tags for a
specified Amazon Resource Name (ARN) in Amazon Web Services CodeStar Connections.</p>
</li>
<li>
<p>
<a>TagResource</a>, which adds or updates tags for a resource in AWS CodeStar
<a>TagResource</a>, which adds or updates tags for a resource in Amazon Web Services CodeStar
Connections.</p>
</li>
<li>
<p>
<a>UntagResource</a>, which removes tags for a resource in AWS CodeStar
<a>UntagResource</a>, which removes tags for a resource in Amazon Web Services CodeStar
Connections.</p>
</li>
</ul>
<p>For information about how to use AWS CodeStar Connections, see the <a href="https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html">Developer Tools User
<p>For information about how to use Amazon Web Services CodeStar Connections, see the <a href="https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html">Developer Tools User
Guide</a>.</p>

## Installing
Expand Down
18 changes: 9 additions & 9 deletions clients/client-codestar-connections/src/CodeStarConnections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ export interface CodeStarConnections {
/**
* @public
* <fullname>AWS CodeStar Connections</fullname>
* <p>This AWS CodeStar Connections API Reference provides descriptions and usage examples of
* the operations and data types for the AWS CodeStar Connections API. You can use the
* <p>This Amazon Web Services CodeStar Connections API Reference provides descriptions and usage examples of
* the operations and data types for the Amazon Web Services CodeStar Connections API. You can use the
* connections API to work with connections and installations.</p>
* <p>
* <i>Connections</i> are configurations that you use to connect AWS
* <i>Connections</i> are configurations that you use to connect Amazon Web Services
* resources to external code repositories. Each connection is a resource that can be given to
* services such as CodePipeline to connect to a third-party repository such as Bitbucket. For
* example, you can add the connection in CodePipeline so that it triggers your pipeline when a
Expand Down Expand Up @@ -272,25 +272,25 @@ export interface CodeStarConnections {
* account.</p>
* </li>
* </ul>
* <p>You can work with tags in AWS CodeStar Connections by calling the following:</p>
* <p>You can work with tags in Amazon Web Services CodeStar Connections by calling the following:</p>
* <ul>
* <li>
* <p>
* <a>ListTagsForResource</a>, which gets information about AWS tags for a
* specified Amazon Resource Name (ARN) in AWS CodeStar Connections.</p>
* <a>ListTagsForResource</a>, which gets information about Amazon Web Services tags for a
* specified Amazon Resource Name (ARN) in Amazon Web Services CodeStar Connections.</p>
* </li>
* <li>
* <p>
* <a>TagResource</a>, which adds or updates tags for a resource in AWS CodeStar
* <a>TagResource</a>, which adds or updates tags for a resource in Amazon Web Services CodeStar
* Connections.</p>
* </li>
* <li>
* <p>
* <a>UntagResource</a>, which removes tags for a resource in AWS CodeStar
* <a>UntagResource</a>, which removes tags for a resource in Amazon Web Services CodeStar
* Connections.</p>
* </li>
* </ul>
* <p>For information about how to use AWS CodeStar Connections, see the <a href="https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html">Developer Tools User
* <p>For information about how to use Amazon Web Services CodeStar Connections, see the <a href="https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html">Developer Tools User
* Guide</a>.</p>
*/
export class CodeStarConnections extends CodeStarConnectionsClient implements CodeStarConnections {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ export interface CodeStarConnectionsClientResolvedConfig extends CodeStarConnect
/**
* @public
* <fullname>AWS CodeStar Connections</fullname>
* <p>This AWS CodeStar Connections API Reference provides descriptions and usage examples of
* the operations and data types for the AWS CodeStar Connections API. You can use the
* <p>This Amazon Web Services CodeStar Connections API Reference provides descriptions and usage examples of
* the operations and data types for the Amazon Web Services CodeStar Connections API. You can use the
* connections API to work with connections and installations.</p>
* <p>
* <i>Connections</i> are configurations that you use to connect AWS
* <i>Connections</i> are configurations that you use to connect Amazon Web Services
* resources to external code repositories. Each connection is a resource that can be given to
* services such as CodePipeline to connect to a third-party repository such as Bitbucket. For
* example, you can add the connection in CodePipeline so that it triggers your pipeline when a
Expand Down Expand Up @@ -332,25 +332,25 @@ export interface CodeStarConnectionsClientResolvedConfig extends CodeStarConnect
* account.</p>
* </li>
* </ul>
* <p>You can work with tags in AWS CodeStar Connections by calling the following:</p>
* <p>You can work with tags in Amazon Web Services CodeStar Connections by calling the following:</p>
* <ul>
* <li>
* <p>
* <a>ListTagsForResource</a>, which gets information about AWS tags for a
* specified Amazon Resource Name (ARN) in AWS CodeStar Connections.</p>
* <a>ListTagsForResource</a>, which gets information about Amazon Web Services tags for a
* specified Amazon Resource Name (ARN) in Amazon Web Services CodeStar Connections.</p>
* </li>
* <li>
* <p>
* <a>TagResource</a>, which adds or updates tags for a resource in AWS CodeStar
* <a>TagResource</a>, which adds or updates tags for a resource in Amazon Web Services CodeStar
* Connections.</p>
* </li>
* <li>
* <p>
* <a>UntagResource</a>, which removes tags for a resource in AWS CodeStar
* <a>UntagResource</a>, which removes tags for a resource in Amazon Web Services CodeStar
* Connections.</p>
* </li>
* </ul>
* <p>For information about how to use AWS CodeStar Connections, see the <a href="https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html">Developer Tools User
* <p>For information about how to use Amazon Web Services CodeStar Connections, see the <a href="https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html">Developer Tools User
* Guide</a>.</p>
*/
export class CodeStarConnectionsClient extends __Client<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface CreateConnectionCommandOutput extends CreateConnectionOutput, _

/**
* @public
* <p>Creates a connection that can then be given to other AWS services like CodePipeline so
* <p>Creates a connection that can then be given to other Amazon Web Services services like CodePipeline so
* that it can access third-party code repositories. The connection is in pending status until
* the third-party connection handshake is completed from the console.</p>
* @example
Expand All @@ -50,7 +50,7 @@ export interface CreateConnectionCommandOutput extends CreateConnectionOutput, _
* // const { CodeStarConnectionsClient, CreateConnectionCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
* const client = new CodeStarConnectionsClient(config);
* const input = { // CreateConnectionInput
* ProviderType: "STRING_VALUE",
* ProviderType: "Bitbucket" || "GitHub" || "GitHubEnterpriseServer" || "GitLab",
* ConnectionName: "STRING_VALUE", // required
* Tags: [ // TagList
* { // Tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface CreateHostCommandOutput extends CreateHostOutput, __MetadataBea
* const client = new CodeStarConnectionsClient(config);
* const input = { // CreateHostInput
* Name: "STRING_VALUE", // required
* ProviderType: "STRING_VALUE", // required
* ProviderType: "Bitbucket" || "GitHub" || "GitHubEnterpriseServer" || "GitLab", // required
* ProviderEndpoint: "STRING_VALUE", // required
* VpcConfiguration: { // VpcConfiguration
* VpcId: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export interface GetConnectionCommandOutput extends GetConnectionOutput, __Metad
* // Connection: { // Connection
* // ConnectionName: "STRING_VALUE",
* // ConnectionArn: "STRING_VALUE",
* // ProviderType: "STRING_VALUE",
* // ProviderType: "Bitbucket" || "GitHub" || "GitHubEnterpriseServer" || "GitLab",
* // OwnerAccountId: "STRING_VALUE",
* // ConnectionStatus: "STRING_VALUE",
* // ConnectionStatus: "PENDING" || "AVAILABLE" || "ERROR",
* // HostArn: "STRING_VALUE",
* // },
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface GetHostCommandOutput extends GetHostOutput, __MetadataBearer {}
* // { // GetHostOutput
* // Name: "STRING_VALUE",
* // Status: "STRING_VALUE",
* // ProviderType: "STRING_VALUE",
* // ProviderType: "Bitbucket" || "GitHub" || "GitHubEnterpriseServer" || "GitLab",
* // ProviderEndpoint: "STRING_VALUE",
* // VpcConfiguration: { // VpcConfiguration
* // VpcId: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface ListConnectionsCommandOutput extends ListConnectionsOutput, __M
* // const { CodeStarConnectionsClient, ListConnectionsCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
* const client = new CodeStarConnectionsClient(config);
* const input = { // ListConnectionsInput
* ProviderTypeFilter: "STRING_VALUE",
* ProviderTypeFilter: "Bitbucket" || "GitHub" || "GitHubEnterpriseServer" || "GitLab",
* HostArnFilter: "STRING_VALUE",
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
Expand All @@ -60,9 +60,9 @@ export interface ListConnectionsCommandOutput extends ListConnectionsOutput, __M
* // { // Connection
* // ConnectionName: "STRING_VALUE",
* // ConnectionArn: "STRING_VALUE",
* // ProviderType: "STRING_VALUE",
* // ProviderType: "Bitbucket" || "GitHub" || "GitHubEnterpriseServer" || "GitLab",
* // OwnerAccountId: "STRING_VALUE",
* // ConnectionStatus: "STRING_VALUE",
* // ConnectionStatus: "PENDING" || "AVAILABLE" || "ERROR",
* // HostArn: "STRING_VALUE",
* // },
* // ],
Expand All @@ -77,6 +77,9 @@ export interface ListConnectionsCommandOutput extends ListConnectionsOutput, __M
* @see {@link ListConnectionsCommandOutput} for command's `response` shape.
* @see {@link CodeStarConnectionsClientResolvedConfig | config} for CodeStarConnectionsClient's `config` shape.
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Resource not found. Verify the connection resource ARN and try again.</p>
*
* @throws {@link CodeStarConnectionsServiceException}
* <p>Base exception class for all service exceptions from CodeStarConnections service.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface ListHostsCommandOutput extends ListHostsOutput, __MetadataBeare
* // { // Host
* // Name: "STRING_VALUE",
* // HostArn: "STRING_VALUE",
* // ProviderType: "STRING_VALUE",
* // ProviderType: "Bitbucket" || "GitHub" || "GitHubEnterpriseServer" || "GitLab",
* // ProviderEndpoint: "STRING_VALUE",
* // VpcConfiguration: { // VpcConfiguration
* // VpcId: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface UntagResourceCommandOutput extends UntagResourceOutput, __Metad

/**
* @public
* <p>Removes tags from an AWS resource.</p>
* <p>Removes tags from an Amazon Web Services resource.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
35 changes: 18 additions & 17 deletions clients/client-codestar-connections/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@ import { RuleSetObject } from "@smithy/types";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/codestar-connections.json */

const p="required",
q="fn",
r="argv",
s="ref";
const a="PartitionResult",
const q="required",
r="fn",
s="argv",
t="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e={[p]:false,"type":"String"},
f={[p]:true,"default":false,"type":"Boolean"},
g={[s]:"Endpoint"},
h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
j={},
k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]},
l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]},
m=[g],
n=[h],
o=[i];
const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codestar-connections-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codestar-connections-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codestar-connections.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codestar-connections.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]};
e="PartitionResult",
f={[q]:false,"type":"String"},
g={[q]:true,"default":false,"type":"Boolean"},
h={[t]:"Endpoint"},
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
k={},
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
n=[i],
o=[j],
p=[{[t]:"Region"}];
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codestar-connections-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codestar-connections-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codestar-connections.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://codestar-connections.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
export const ruleSet: RuleSetObject = _data;
Loading

0 comments on commit 49eb24c

Please sign in to comment.