Skip to content

Commit

Permalink
Merge branch 'main' into automation/update-contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Aug 14, 2024
2 parents df3d177 + 537d3b2 commit 56bac74
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,16 @@ export enum InstanceClass {
*/
MAC2_M2PRO = 'mac2-m2pro',

/**
* Macintosh instances built on 2022 Mac Studio hardware powered by Apple silicon M1 Ultra processors
*/
MACINTOSH2_M1_ULTRA = 'macintosh2-m1-ultra',

/**
* Macintosh instances built on 2022 Mac Studio hardware powered by Apple silicon M1 Ultra processors
*/
MAC2_M1ULTRA = 'mac2-m1ultra',

/**
* Multi-stream video transcoding instances for resolutions up to 4K UHD, 1st generation
*/
Expand Down Expand Up @@ -1632,6 +1642,8 @@ export class InstanceType {
[InstanceClass.MAC2_M2]: 'mac2-m2',
[InstanceClass.MACINTOSH2_M2_PRO]: 'mac2-m2pro',
[InstanceClass.MAC2_M2PRO]: 'mac2-m2pro',
[InstanceClass.MACINTOSH2_M1_ULTRA]: 'mac2-m1ultra',
[InstanceClass.MAC2_M1ULTRA]: 'mac2-m1ultra',
[InstanceClass.VIDEO_TRANSCODING1]: 'vt1',
[InstanceClass.VT1]: 'vt1',
[InstanceClass.HIGH_PERFORMANCE_COMPUTING6_AMD]: 'hpc6a',
Expand Down
8 changes: 8 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/test/instance-type.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { InstanceClass, InstanceSize, InstanceType } from '../lib';

describe('InstanceType', () => {
test('mac2 m1 ultra', () => {
const instanceType = InstanceType.of(InstanceClass.MAC2_M1ULTRA, InstanceSize.METAL);
expect(instanceType.toString()).toEqual('mac2-m1ultra.metal');
});
});

0 comments on commit 56bac74

Please sign in to comment.