Skip to content

Commit

Permalink
feat(client-codecatalyst): This release includes updates to the Dev E…
Browse files Browse the repository at this point in the history
…nvironment APIs to include an optional vpcConnectionName parameter that supports using Dev Environments with Amazon VPC.
  • Loading branch information
awstools committed Nov 16, 2023
1 parent 367e933 commit 815747d
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clients/client-codecatalyst/src/CodeCatalystClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,8 @@ export class CodeCatalystClient extends __Client<
this.middlewareStack.use(getUserAgentPlugin(this.config));
this.middlewareStack.use(
getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
})
);
this.middlewareStack.use(getHttpSigningPlugin(this.config));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ export interface CreateDevEnvironmentCommandOutput extends CreateDevEnvironmentR
* persistentStorage: { // PersistentStorageConfiguration
* sizeInGiB: Number("int"), // required
* },
* vpcConnectionName: "STRING_VALUE",
* };
* const command = new CreateDevEnvironmentCommand(input);
* const response = await client.send(command);
* // { // CreateDevEnvironmentResponse
* // spaceName: "STRING_VALUE", // required
* // projectName: "STRING_VALUE", // required
* // id: "STRING_VALUE", // required
* // vpcConnectionName: "STRING_VALUE",
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface GetDevEnvironmentCommandOutput extends GetDevEnvironmentRespons
* // persistentStorage: { // PersistentStorage
* // sizeInGiB: Number("int"), // required
* // },
* // vpcConnectionName: "STRING_VALUE",
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export interface ListDevEnvironmentsCommandOutput extends ListDevEnvironmentsRes
* // persistentStorage: { // PersistentStorage
* // sizeInGiB: Number("int"), // required
* // },
* // vpcConnectionName: "STRING_VALUE",
* // },
* // ],
* // nextToken: "STRING_VALUE",
Expand Down
24 changes: 24 additions & 0 deletions clients/client-codecatalyst/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,12 @@ export interface DevEnvironmentSummary {
* <p>Information about the configuration of persistent storage for the Dev Environment.</p>
*/
persistentStorage: PersistentStorage | undefined;

/**
* @public
* <p>The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.</p>
*/
vpcConnectionName?: string;
}

/**
Expand Down Expand Up @@ -1156,6 +1162,12 @@ export interface CreateDevEnvironmentRequest {
* </note>
*/
persistentStorage: PersistentStorageConfiguration | undefined;

/**
* @public
* <p>The name of the connection to use connect to a Amazon VPC.</p>
*/
vpcConnectionName?: string;
}

/**
Expand All @@ -1179,6 +1191,12 @@ export interface CreateDevEnvironmentResponse {
* <p>The system-generated unique ID of the Dev Environment. </p>
*/
id: string | undefined;

/**
* @public
* <p>The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.</p>
*/
vpcConnectionName?: string;
}

/**
Expand Down Expand Up @@ -1331,6 +1349,12 @@ export interface GetDevEnvironmentResponse {
* <p>Information about the amount of storage allocated to the Dev Environment. By default, a Dev Environment is configured to have 16GB of persistent storage.</p>
*/
persistentStorage: PersistentStorage | undefined;

/**
* @public
* <p>The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.</p>
*/
vpcConnectionName?: string;
}

/**
Expand Down
4 changes: 4 additions & 0 deletions clients/client-codecatalyst/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export const se_CreateDevEnvironmentCommand = async (
instanceType: [],
persistentStorage: (_) => _json(_),
repositories: (_) => _json(_),
vpcConnectionName: [],
})
);
return new __HttpRequest({
Expand Down Expand Up @@ -1401,6 +1402,7 @@ export const de_CreateDevEnvironmentCommand = async (
id: __expectString,
projectName: __expectString,
spaceName: __expectString,
vpcConnectionName: __expectString,
});
Object.assign(contents, doc);
return contents;
Expand Down Expand Up @@ -1983,6 +1985,7 @@ export const de_GetDevEnvironmentCommand = async (
spaceName: __expectString,
status: __expectString,
statusReason: __expectString,
vpcConnectionName: __expectString,
});
Object.assign(contents, doc);
return contents;
Expand Down Expand Up @@ -3993,6 +3996,7 @@ const de_DevEnvironmentSummary = (output: any, context: __SerdeContext): DevEnvi
spaceName: __expectString,
status: __expectString,
statusReason: __expectString,
vpcConnectionName: __expectString,
}) as any;
};

Expand Down
24 changes: 24 additions & 0 deletions codegen/sdk-codegen/aws-models/codecatalyst.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,12 @@
"smithy.api#documentation": "<p>Information about the amount of storage allocated to the Dev Environment. </p>\n <note>\n <p>By default, a Dev Environment is configured to have 16GB of persistent storage when created from the Amazon CodeCatalyst console, but there is no default when programmatically\n creating a Dev Environment. \n Valid values for persistent storage are based on memory sizes in 16GB increments. Valid\n values are 16, 32, and 64.</p>\n </note>",
"smithy.api#required": {}
}
},
"vpcConnectionName": {
"target": "com.amazonaws.codecatalyst#NameString",
"traits": {
"smithy.api#documentation": "<p>The name of the connection to use connect to a Amazon VPC.</p>"
}
}
}
},
Expand Down Expand Up @@ -697,6 +703,12 @@
"smithy.api#required": {},
"smithy.api#resourceIdentifier": "devEnvironmentId"
}
},
"vpcConnectionName": {
"target": "com.amazonaws.codecatalyst#NameString",
"traits": {
"smithy.api#documentation": "<p>The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.</p>"
}
}
}
},
Expand Down Expand Up @@ -1605,6 +1617,12 @@
"smithy.api#documentation": "<p>Information about the configuration of persistent storage for the Dev Environment.</p>",
"smithy.api#required": {}
}
},
"vpcConnectionName": {
"target": "com.amazonaws.codecatalyst#NameString",
"traits": {
"smithy.api#documentation": "<p>The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2017,6 +2035,12 @@
"smithy.api#documentation": "<p>Information about the amount of storage allocated to the Dev Environment. By default, a Dev Environment is configured to have 16GB of persistent storage.</p>",
"smithy.api#required": {}
}
},
"vpcConnectionName": {
"target": "com.amazonaws.codecatalyst#NameString",
"traits": {
"smithy.api#documentation": "<p>The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.</p>"
}
}
}
},
Expand Down

0 comments on commit 815747d

Please sign in to comment.