Skip to content

Commit fd85e55

Browse files
chore(ec2): add vpc endpoint for sagemaker studio (#21923)
This PR adds SageMaker Studio as one of the enum-like members for [`InterfaceVpcEndpointAwsService`](https://github.com/aws/aws-cdk/blob/17c94eb62ade60c707895afbacea582d42c7e286/packages/%40aws-cdk/aws-ec2/lib/vpc-endpoint.ts#L260-L323). This is particularly useful for SageMaker Studio as its prefix is `aws.sagemaker`, which can be considered a corner case that wouldn't fit [`InterfaceVpcEndpointAwsService.getDefaultEndpointPrefix`](https://github.com/aws/aws-cdk/blob/17c94eb62ade60c707895afbacea582d42c7e286/packages/%40aws-cdk/aws-ec2/lib/vpc-endpoint.ts#L374-L395). See: `aws ec2 describe-vpc-endpoint-services --query 'ServiceDetails[].ServiceName'` ---- ### All Submissions: * [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 08eb1d6 commit fd85e55

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts

+1
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ export class InterfaceVpcEndpointService implements IInterfaceVpcEndpointService
258258
* An AWS service for an interface VPC endpoint.
259259
*/
260260
export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointService {
261+
public static readonly SAGEMAKER_STUDIO = new InterfaceVpcEndpointAwsService('studio', 'aws.sagemaker');
261262
public static readonly SAGEMAKER_NOTEBOOK = new InterfaceVpcEndpointAwsService('notebook', 'aws.sagemaker');
262263
public static readonly ATHENA = new InterfaceVpcEndpointAwsService('athena');
263264
public static readonly APPLICATION_AUTOSCALING = new InterfaceVpcEndpointAwsService('application-autoscaling');

packages/@aws-cdk/aws-ec2/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
"docs-public-apis:@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService.SAGEMAKER_NOTEBOOK",
306306
"docs-public-apis:@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService.SAGEMAKER_RUNTIME",
307307
"docs-public-apis:@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService.SAGEMAKER_RUNTIME_FIPS",
308+
"docs-public-apis:@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService.SAGEMAKER_STUDIO",
308309
"docs-public-apis:@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService.SECRETS_MANAGER",
309310
"docs-public-apis:@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService.SERVICE_CATALOG",
310311
"docs-public-apis:@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService.SNS",

0 commit comments

Comments
 (0)