Skip to content

Commit f16069b

Browse files
author
awstools
committed
feat(client-codebuild): Enable proxy for reserved capacity fleet.
1 parent 60af417 commit f16069b

11 files changed

+339
-7
lines changed

clients/client-codebuild/src/commands/BatchGetFleetsCommand.ts

+12
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ export interface BatchGetFleetsCommandOutput extends BatchGetFleetsOutput, __Met
7979
* // "STRING_VALUE",
8080
* // ],
8181
* // },
82+
* // proxyConfiguration: { // ProxyConfiguration
83+
* // defaultBehavior: "ALLOW_ALL" || "DENY_ALL",
84+
* // orderedProxyRules: [ // FleetProxyRules
85+
* // { // FleetProxyRule
86+
* // type: "DOMAIN" || "IP", // required
87+
* // effect: "ALLOW" || "DENY", // required
88+
* // entities: [ // FleetProxyRuleEntities // required
89+
* // "STRING_VALUE",
90+
* // ],
91+
* // },
92+
* // ],
93+
* // },
8294
* // imageId: "STRING_VALUE",
8395
* // fleetServiceRole: "STRING_VALUE",
8496
* // tags: [ // TagList

clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _
172172
* // filterGroups: [ // FilterGroups
173173
* // [ // FilterGroup
174174
* // { // WebhookFilter
175-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME", // required
175+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
176176
* // pattern: "STRING_VALUE", // required
177177
* // excludeMatchedPattern: true || false,
178178
* // },

clients/client-codebuild/src/commands/CreateFleetCommand.ts

+24
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB
6060
* "STRING_VALUE",
6161
* ],
6262
* },
63+
* proxyConfiguration: { // ProxyConfiguration
64+
* defaultBehavior: "ALLOW_ALL" || "DENY_ALL",
65+
* orderedProxyRules: [ // FleetProxyRules
66+
* { // FleetProxyRule
67+
* type: "DOMAIN" || "IP", // required
68+
* effect: "ALLOW" || "DENY", // required
69+
* entities: [ // FleetProxyRuleEntities // required
70+
* "STRING_VALUE",
71+
* ],
72+
* },
73+
* ],
74+
* },
6375
* imageId: "STRING_VALUE",
6476
* fleetServiceRole: "STRING_VALUE",
6577
* tags: [ // TagList
@@ -107,6 +119,18 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB
107119
* // "STRING_VALUE",
108120
* // ],
109121
* // },
122+
* // proxyConfiguration: { // ProxyConfiguration
123+
* // defaultBehavior: "ALLOW_ALL" || "DENY_ALL",
124+
* // orderedProxyRules: [ // FleetProxyRules
125+
* // { // FleetProxyRule
126+
* // type: "DOMAIN" || "IP", // required
127+
* // effect: "ALLOW" || "DENY", // required
128+
* // entities: [ // FleetProxyRuleEntities // required
129+
* // "STRING_VALUE",
130+
* // ],
131+
* // },
132+
* // ],
133+
* // },
110134
* // imageId: "STRING_VALUE",
111135
* // fleetServiceRole: "STRING_VALUE",
112136
* // tags: [ // TagList

clients/client-codebuild/src/commands/CreateProjectCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad
329329
* // filterGroups: [ // FilterGroups
330330
* // [ // FilterGroup
331331
* // { // WebhookFilter
332-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME", // required
332+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
333333
* // pattern: "STRING_VALUE", // required
334334
* // excludeMatchedPattern: true || false,
335335
* // },

clients/client-codebuild/src/commands/CreateWebhookCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
5151
* filterGroups: [ // FilterGroups
5252
* [ // FilterGroup
5353
* { // WebhookFilter
54-
* type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME", // required
54+
* type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
5555
* pattern: "STRING_VALUE", // required
5656
* excludeMatchedPattern: true || false,
5757
* },
@@ -76,7 +76,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
7676
* // filterGroups: [ // FilterGroups
7777
* // [ // FilterGroup
7878
* // { // WebhookFilter
79-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME", // required
79+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
8080
* // pattern: "STRING_VALUE", // required
8181
* // excludeMatchedPattern: true || false,
8282
* // },

clients/client-codebuild/src/commands/UpdateFleetCommand.ts

+24
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataB
6060
* "STRING_VALUE",
6161
* ],
6262
* },
63+
* proxyConfiguration: { // ProxyConfiguration
64+
* defaultBehavior: "ALLOW_ALL" || "DENY_ALL",
65+
* orderedProxyRules: [ // FleetProxyRules
66+
* { // FleetProxyRule
67+
* type: "DOMAIN" || "IP", // required
68+
* effect: "ALLOW" || "DENY", // required
69+
* entities: [ // FleetProxyRuleEntities // required
70+
* "STRING_VALUE",
71+
* ],
72+
* },
73+
* ],
74+
* },
6375
* imageId: "STRING_VALUE",
6476
* fleetServiceRole: "STRING_VALUE",
6577
* tags: [ // TagList
@@ -107,6 +119,18 @@ export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataB
107119
* // "STRING_VALUE",
108120
* // ],
109121
* // },
122+
* // proxyConfiguration: { // ProxyConfiguration
123+
* // defaultBehavior: "ALLOW_ALL" || "DENY_ALL",
124+
* // orderedProxyRules: [ // FleetProxyRules
125+
* // { // FleetProxyRule
126+
* // type: "DOMAIN" || "IP", // required
127+
* // effect: "ALLOW" || "DENY", // required
128+
* // entities: [ // FleetProxyRuleEntities // required
129+
* // "STRING_VALUE",
130+
* // ],
131+
* // },
132+
* // ],
133+
* // },
110134
* // imageId: "STRING_VALUE",
111135
* // fleetServiceRole: "STRING_VALUE",
112136
* // tags: [ // TagList

clients/client-codebuild/src/commands/UpdateProjectCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad
329329
* // filterGroups: [ // FilterGroups
330330
* // [ // FilterGroup
331331
* // { // WebhookFilter
332-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME", // required
332+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
333333
* // pattern: "STRING_VALUE", // required
334334
* // excludeMatchedPattern: true || false,
335335
* // },

clients/client-codebuild/src/commands/UpdateWebhookCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad
4646
* filterGroups: [ // FilterGroups
4747
* [ // FilterGroup
4848
* { // WebhookFilter
49-
* type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME", // required
49+
* type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
5050
* pattern: "STRING_VALUE", // required
5151
* excludeMatchedPattern: true || false,
5252
* },
@@ -65,7 +65,7 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad
6565
* // filterGroups: [ // FilterGroups
6666
* // [ // FilterGroup
6767
* // { // WebhookFilter
68-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME", // required
68+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
6969
* // pattern: "STRING_VALUE", // required
7070
* // excludeMatchedPattern: true || false,
7171
* // },

clients/client-codebuild/src/models/models_0.ts

+103
Original file line numberDiff line numberDiff line change
@@ -2730,6 +2730,90 @@ export const FleetOverflowBehavior = {
27302730
*/
27312731
export type FleetOverflowBehavior = (typeof FleetOverflowBehavior)[keyof typeof FleetOverflowBehavior];
27322732

2733+
/**
2734+
* @public
2735+
* @enum
2736+
*/
2737+
export const FleetProxyRuleBehavior = {
2738+
ALLOW_ALL: "ALLOW_ALL",
2739+
DENY_ALL: "DENY_ALL",
2740+
} as const;
2741+
2742+
/**
2743+
* @public
2744+
*/
2745+
export type FleetProxyRuleBehavior = (typeof FleetProxyRuleBehavior)[keyof typeof FleetProxyRuleBehavior];
2746+
2747+
/**
2748+
* @public
2749+
* @enum
2750+
*/
2751+
export const FleetProxyRuleEffectType = {
2752+
ALLOW: "ALLOW",
2753+
DENY: "DENY",
2754+
} as const;
2755+
2756+
/**
2757+
* @public
2758+
*/
2759+
export type FleetProxyRuleEffectType = (typeof FleetProxyRuleEffectType)[keyof typeof FleetProxyRuleEffectType];
2760+
2761+
/**
2762+
* @public
2763+
* @enum
2764+
*/
2765+
export const FleetProxyRuleType = {
2766+
DOMAIN: "DOMAIN",
2767+
IP: "IP",
2768+
} as const;
2769+
2770+
/**
2771+
* @public
2772+
*/
2773+
export type FleetProxyRuleType = (typeof FleetProxyRuleType)[keyof typeof FleetProxyRuleType];
2774+
2775+
/**
2776+
* <p>Information about the proxy rule for your reserved capacity instances.</p>
2777+
* @public
2778+
*/
2779+
export interface FleetProxyRule {
2780+
/**
2781+
* <p>The type of proxy rule.</p>
2782+
* @public
2783+
*/
2784+
type: FleetProxyRuleType | undefined;
2785+
2786+
/**
2787+
* <p>The behavior of the proxy rule.</p>
2788+
* @public
2789+
*/
2790+
effect: FleetProxyRuleEffectType | undefined;
2791+
2792+
/**
2793+
* <p>The destination of the proxy rule.</p>
2794+
* @public
2795+
*/
2796+
entities: string[] | undefined;
2797+
}
2798+
2799+
/**
2800+
* <p>Information about the proxy configurations that apply network access control to your reserved capacity instances.</p>
2801+
* @public
2802+
*/
2803+
export interface ProxyConfiguration {
2804+
/**
2805+
* <p>The default behavior of outgoing traffic.</p>
2806+
* @public
2807+
*/
2808+
defaultBehavior?: FleetProxyRuleBehavior;
2809+
2810+
/**
2811+
* <p>An array of <code>FleetProxyRule</code> objects that represent the specified destination domains or IPs to allow or deny network access control to.</p>
2812+
* @public
2813+
*/
2814+
orderedProxyRules?: FleetProxyRule[];
2815+
}
2816+
27332817
/**
27342818
* @public
27352819
* @enum
@@ -3125,6 +3209,12 @@ export interface Fleet {
31253209
*/
31263210
vpcConfig?: VpcConfig;
31273211

3212+
/**
3213+
* <p>The proxy configuration of the compute fleet.</p>
3214+
* @public
3215+
*/
3216+
proxyConfiguration?: ProxyConfiguration;
3217+
31283218
/**
31293219
* <p>The Amazon Machine Image (AMI) of the compute fleet.</p>
31303220
* @public
@@ -3500,6 +3590,7 @@ export const WebhookFilterType = {
35003590
FILE_PATH: "FILE_PATH",
35013591
HEAD_REF: "HEAD_REF",
35023592
RELEASE_NAME: "RELEASE_NAME",
3593+
REPOSITORY_NAME: "REPOSITORY_NAME",
35033594
TAG_NAME: "TAG_NAME",
35043595
WORKFLOW_NAME: "WORKFLOW_NAME",
35053596
} as const;
@@ -4748,6 +4839,12 @@ export interface CreateFleetInput {
47484839
*/
47494840
vpcConfig?: VpcConfig;
47504841

4842+
/**
4843+
* <p>The proxy configuration of the compute fleet.</p>
4844+
* @public
4845+
*/
4846+
proxyConfiguration?: ProxyConfiguration;
4847+
47514848
/**
47524849
* <p>The Amazon Machine Image (AMI) of the compute fleet.</p>
47534850
* @public
@@ -7954,6 +8051,12 @@ export interface UpdateFleetInput {
79548051
*/
79558052
vpcConfig?: VpcConfig;
79568053

8054+
/**
8055+
* <p>The proxy configuration of the compute fleet.</p>
8056+
* @public
8057+
*/
8058+
proxyConfiguration?: ProxyConfiguration;
8059+
79578060
/**
79588061
* <p>The Amazon Machine Image (AMI) of the compute fleet.</p>
79598062
* @public

clients/client-codebuild/src/protocols/Aws_json1_1.ts

+21
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ import {
170170
DescribeTestCasesOutput,
171171
EnvironmentVariable,
172172
Fleet,
173+
FleetProxyRule,
173174
GetReportGroupTrendInput,
174175
GetResourcePolicyInput,
175176
GitSubmodulesConfig,
@@ -200,6 +201,7 @@ import {
200201
ProjectFleet,
201202
ProjectSource,
202203
ProjectSourceVersion,
204+
ProxyConfiguration,
203205
PutResourcePolicyInput,
204206
RegistryCredential,
205207
Report,
@@ -2049,6 +2051,7 @@ const se_CreateFleetInput = (input: CreateFleetInput, context: __SerdeContext):
20492051
imageId: [],
20502052
name: [],
20512053
overflowBehavior: [],
2054+
proxyConfiguration: _json,
20522055
scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context),
20532056
tags: _json,
20542057
vpcConfig: _json,
@@ -2104,6 +2107,12 @@ const se_DescribeCodeCoveragesInput = (input: DescribeCodeCoveragesInput, contex
21042107

21052108
// se_FleetNames omitted.
21062109

2110+
// se_FleetProxyRule omitted.
2111+
2112+
// se_FleetProxyRuleEntities omitted.
2113+
2114+
// se_FleetProxyRules omitted.
2115+
21072116
// se_GetReportGroupTrendInput omitted.
21082117

21092118
// se_GetResourcePolicyInput omitted.
@@ -2170,6 +2179,8 @@ const se_DescribeCodeCoveragesInput = (input: DescribeCodeCoveragesInput, contex
21702179

21712180
// se_ProjectSourceVersion omitted.
21722181

2182+
// se_ProxyConfiguration omitted.
2183+
21732184
// se_PutResourcePolicyInput omitted.
21742185

21752186
// se_RegistryCredential omitted.
@@ -2262,6 +2273,7 @@ const se_UpdateFleetInput = (input: UpdateFleetInput, context: __SerdeContext):
22622273
fleetServiceRole: [],
22632274
imageId: [],
22642275
overflowBehavior: [],
2276+
proxyConfiguration: _json,
22652277
scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context),
22662278
tags: _json,
22672279
vpcConfig: _json,
@@ -2728,6 +2740,7 @@ const de_Fleet = (output: any, context: __SerdeContext): Fleet => {
27282740
lastModified: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
27292741
name: __expectString,
27302742
overflowBehavior: __expectString,
2743+
proxyConfiguration: _json,
27312744
scalingConfiguration: (_: any) => de_ScalingConfigurationOutput(_, context),
27322745
status: _json,
27332746
tags: _json,
@@ -2739,6 +2752,12 @@ const de_Fleet = (output: any, context: __SerdeContext): Fleet => {
27392752

27402753
// de_FleetNames omitted.
27412754

2755+
// de_FleetProxyRule omitted.
2756+
2757+
// de_FleetProxyRuleEntities omitted.
2758+
2759+
// de_FleetProxyRules omitted.
2760+
27422761
/**
27432762
* deserializeAws_json1_1Fleets
27442763
*/
@@ -2887,6 +2906,8 @@ const de_Projects = (output: any, context: __SerdeContext): Project[] => {
28872906

28882907
// de_ProjectSourceVersion omitted.
28892908

2909+
// de_ProxyConfiguration omitted.
2910+
28902911
// de_PutResourcePolicyOutput omitted.
28912912

28922913
// de_RegistryCredential omitted.

0 commit comments

Comments
 (0)