Skip to content

Commit b845174

Browse files
author
awstools
committed
feat(client-emr-containers): Added nodeLabel support in container provider to aid hardware isolation support for virtual cluster and security configuration.
1 parent e2c85d3 commit b845174

File tree

7 files changed

+102
-64
lines changed

7 files changed

+102
-64
lines changed

clients/client-emr-containers/src/commands/CreateSecurityConfigurationCommand.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ export interface CreateSecurityConfigurationCommandOutput
4646
* const input = { // CreateSecurityConfigurationRequest
4747
* clientToken: "STRING_VALUE", // required
4848
* name: "STRING_VALUE", // required
49+
* containerProvider: { // ContainerProvider
50+
* type: "EKS", // required
51+
* id: "STRING_VALUE", // required
52+
* info: { // ContainerInfo Union: only one key present
53+
* eksInfo: { // EksInfo
54+
* namespace: "STRING_VALUE",
55+
* nodeLabel: "STRING_VALUE",
56+
* },
57+
* },
58+
* },
4959
* securityConfigurationData: { // SecurityConfigurationData
5060
* authorizationConfiguration: { // AuthorizationConfiguration
5161
* lakeFormationConfiguration: { // LakeFormationConfiguration

clients/client-emr-containers/src/commands/CreateVirtualClusterCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface CreateVirtualClusterCommandOutput extends CreateVirtualClusterR
4646
* info: { // ContainerInfo Union: only one key present
4747
* eksInfo: { // EksInfo
4848
* namespace: "STRING_VALUE",
49+
* nodeLabel: "STRING_VALUE",
4950
* },
5051
* },
5152
* },

clients/client-emr-containers/src/commands/DescribeVirtualClusterCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export interface DescribeVirtualClusterCommandOutput extends DescribeVirtualClus
5757
* // info: { // ContainerInfo Union: only one key present
5858
* // eksInfo: { // EksInfo
5959
* // namespace: "STRING_VALUE",
60+
* // nodeLabel: "STRING_VALUE",
6061
* // },
6162
* // },
6263
* // },

clients/client-emr-containers/src/commands/ListVirtualClustersCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export interface ListVirtualClustersCommandOutput extends ListVirtualClustersRes
6767
* // info: { // ContainerInfo Union: only one key present
6868
* // eksInfo: { // EksInfo
6969
* // namespace: "STRING_VALUE",
70+
* // nodeLabel: "STRING_VALUE",
7071
* // },
7172
* // },
7273
* // },

clients/client-emr-containers/src/models/models_0.ts

Lines changed: 76 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -567,70 +567,6 @@ export interface CreateManagedEndpointResponse {
567567
virtualClusterId?: string | undefined;
568568
}
569569

570-
/**
571-
* <p>Configurations related to the security configuration for the request.</p>
572-
* @public
573-
*/
574-
export interface SecurityConfigurationData {
575-
/**
576-
* <p>Authorization-related configuration input for the security configuration.</p>
577-
* @public
578-
*/
579-
authorizationConfiguration?: AuthorizationConfiguration | undefined;
580-
}
581-
582-
/**
583-
* @public
584-
*/
585-
export interface CreateSecurityConfigurationRequest {
586-
/**
587-
* <p>The client idempotency token to use when creating the security configuration.</p>
588-
* @public
589-
*/
590-
clientToken?: string | undefined;
591-
592-
/**
593-
* <p>The name of the security configuration.</p>
594-
* @public
595-
*/
596-
name: string | undefined;
597-
598-
/**
599-
* <p>Security configuration input for the request.</p>
600-
* @public
601-
*/
602-
securityConfigurationData: SecurityConfigurationData | undefined;
603-
604-
/**
605-
* <p>The tags to add to the security configuration.</p>
606-
* @public
607-
*/
608-
tags?: Record<string, string> | undefined;
609-
}
610-
611-
/**
612-
* @public
613-
*/
614-
export interface CreateSecurityConfigurationResponse {
615-
/**
616-
* <p>The ID of the security configuration.</p>
617-
* @public
618-
*/
619-
id?: string | undefined;
620-
621-
/**
622-
* <p>The name of the security configuration.</p>
623-
* @public
624-
*/
625-
name?: string | undefined;
626-
627-
/**
628-
* <p>The ARN (Amazon Resource Name) of the security configuration.</p>
629-
* @public
630-
*/
631-
arn?: string | undefined;
632-
}
633-
634570
/**
635571
* <p>The information about the Amazon EKS cluster.</p>
636572
* @public
@@ -641,6 +577,12 @@ export interface EksInfo {
641577
* @public
642578
*/
643579
namespace?: string | undefined;
580+
581+
/**
582+
* <p>The nodeLabel of the nodes where the resources of this virtual cluster can get scheduled. It requires relevant scaling and policy engine addons.</p>
583+
* @public
584+
*/
585+
nodeLabel?: string | undefined;
644586
}
645587

646588
/**
@@ -719,6 +661,76 @@ export interface ContainerProvider {
719661
info?: ContainerInfo | undefined;
720662
}
721663

664+
/**
665+
* <p>Configurations related to the security configuration for the request.</p>
666+
* @public
667+
*/
668+
export interface SecurityConfigurationData {
669+
/**
670+
* <p>Authorization-related configuration input for the security configuration.</p>
671+
* @public
672+
*/
673+
authorizationConfiguration?: AuthorizationConfiguration | undefined;
674+
}
675+
676+
/**
677+
* @public
678+
*/
679+
export interface CreateSecurityConfigurationRequest {
680+
/**
681+
* <p>The client idempotency token to use when creating the security configuration.</p>
682+
* @public
683+
*/
684+
clientToken?: string | undefined;
685+
686+
/**
687+
* <p>The name of the security configuration.</p>
688+
* @public
689+
*/
690+
name: string | undefined;
691+
692+
/**
693+
* <p>The container provider associated with the security configuration.</p>
694+
* @public
695+
*/
696+
containerProvider?: ContainerProvider | undefined;
697+
698+
/**
699+
* <p>Security configuration input for the request.</p>
700+
* @public
701+
*/
702+
securityConfigurationData: SecurityConfigurationData | undefined;
703+
704+
/**
705+
* <p>The tags to add to the security configuration.</p>
706+
* @public
707+
*/
708+
tags?: Record<string, string> | undefined;
709+
}
710+
711+
/**
712+
* @public
713+
*/
714+
export interface CreateSecurityConfigurationResponse {
715+
/**
716+
* <p>The ID of the security configuration.</p>
717+
* @public
718+
*/
719+
id?: string | undefined;
720+
721+
/**
722+
* <p>The name of the security configuration.</p>
723+
* @public
724+
*/
725+
name?: string | undefined;
726+
727+
/**
728+
* <p>The ARN (Amazon Resource Name) of the security configuration.</p>
729+
* @public
730+
*/
731+
arn?: string | undefined;
732+
}
733+
722734
/**
723735
* @public
724736
*/

clients/client-emr-containers/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ export const se_CreateSecurityConfigurationCommand = async (
224224
body = JSON.stringify(
225225
take(input, {
226226
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
227+
containerProvider: (_) => _json(_),
227228
name: [],
228229
securityConfigurationData: (_) => _json(_),
229230
tags: (_) => _json(_),

codegen/sdk-codegen/aws-models/emr-containers.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,12 @@
16401640
"smithy.api#required": {}
16411641
}
16421642
},
1643+
"containerProvider": {
1644+
"target": "com.amazonaws.emrcontainers#ContainerProvider",
1645+
"traits": {
1646+
"smithy.api#documentation": "<p>The container provider associated with the security configuration.</p>"
1647+
}
1648+
},
16431649
"securityConfigurationData": {
16441650
"target": "com.amazonaws.emrcontainers#SecurityConfigurationData",
16451651
"traits": {
@@ -2319,6 +2325,12 @@
23192325
"traits": {
23202326
"smithy.api#documentation": "<p>The namespaces of the Amazon EKS cluster.</p>"
23212327
}
2328+
},
2329+
"nodeLabel": {
2330+
"target": "com.amazonaws.emrcontainers#ResourceNameString",
2331+
"traits": {
2332+
"smithy.api#documentation": "<p>The nodeLabel of the nodes where the resources of this virtual cluster can get scheduled. It requires relevant scaling and policy engine addons.</p>"
2333+
}
23222334
}
23232335
},
23242336
"traits": {

0 commit comments

Comments
 (0)