Skip to content

Commit e7dae9e

Browse files
author
awstools
committed
feat(client-rtbfabric): AWS RTB Fabric External Responder gateways now support HTTP in addition to HTTPS for inbound external links. Gateways can accept bid requests on port 80 or serve both protocols simultaneously via listener configuration, giving customers flexible transport options for their bidding infrastructure
1 parent 209baf8 commit e7dae9e

24 files changed

Lines changed: 1161 additions & 62 deletions

clients/client-rtbfabric/src/RTBFabric.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,12 @@ import { paginateListRequesterGateways } from "./pagination/ListRequesterGateway
140140
import { paginateListResponderGateways } from "./pagination/ListResponderGatewaysPaginator";
141141
import { RTBFabricClient } from "./RTBFabricClient";
142142
import { waitUntilInboundExternalLinkActive } from "./waiters/waitForInboundExternalLinkActive";
143+
import { waitUntilInboundExternalLinkDeleted } from "./waiters/waitForInboundExternalLinkDeleted";
143144
import { waitUntilLinkAccepted } from "./waiters/waitForLinkAccepted";
144145
import { waitUntilLinkActive } from "./waiters/waitForLinkActive";
146+
import { waitUntilLinkDeleted } from "./waiters/waitForLinkDeleted";
145147
import { waitUntilOutboundExternalLinkActive } from "./waiters/waitForOutboundExternalLinkActive";
148+
import { waitUntilOutboundExternalLinkDeleted } from "./waiters/waitForOutboundExternalLinkDeleted";
146149
import { waitUntilRequesterGatewayActive } from "./waiters/waitForRequesterGatewayActive";
147150
import { waitUntilRequesterGatewayDeleted } from "./waiters/waitForRequesterGatewayDeleted";
148151
import { waitUntilResponderGatewayActive } from "./waiters/waitForResponderGatewayActive";
@@ -184,9 +187,12 @@ const paginators = {
184187
};
185188
const waiters = {
186189
waitUntilInboundExternalLinkActive,
190+
waitUntilInboundExternalLinkDeleted,
187191
waitUntilLinkAccepted,
188192
waitUntilLinkActive,
193+
waitUntilLinkDeleted,
189194
waitUntilOutboundExternalLinkActive,
195+
waitUntilOutboundExternalLinkDeleted,
190196
waitUntilRequesterGatewayActive,
191197
waitUntilRequesterGatewayDeleted,
192198
waitUntilResponderGatewayActive,
@@ -698,6 +704,16 @@ export interface RTBFabric {
698704
waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">
699705
): Promise<WaiterResult>;
700706

707+
/**
708+
* @see {@link GetInboundExternalLinkCommand}
709+
* @param args - command input.
710+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
711+
*/
712+
waitUntilInboundExternalLinkDeleted(
713+
args: GetInboundExternalLinkCommandInput,
714+
waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">
715+
): Promise<WaiterResult>;
716+
701717
/**
702718
* @see {@link GetLinkCommand}
703719
* @param args - command input.
@@ -718,6 +734,16 @@ export interface RTBFabric {
718734
waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">
719735
): Promise<WaiterResult>;
720736

737+
/**
738+
* @see {@link GetLinkCommand}
739+
* @param args - command input.
740+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
741+
*/
742+
waitUntilLinkDeleted(
743+
args: GetLinkCommandInput,
744+
waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">
745+
): Promise<WaiterResult>;
746+
721747
/**
722748
* @see {@link GetOutboundExternalLinkCommand}
723749
* @param args - command input.
@@ -728,6 +754,16 @@ export interface RTBFabric {
728754
waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">
729755
): Promise<WaiterResult>;
730756

757+
/**
758+
* @see {@link GetOutboundExternalLinkCommand}
759+
* @param args - command input.
760+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
761+
*/
762+
waitUntilOutboundExternalLinkDeleted(
763+
args: GetOutboundExternalLinkCommandInput,
764+
waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">
765+
): Promise<WaiterResult>;
766+
731767
/**
732768
* @see {@link GetRequesterGatewayCommand}
733769
* @param args - command input.

clients/client-rtbfabric/src/commands/AcceptLinkCommand.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export interface AcceptLinkCommandOutput extends AcceptLinkResponse, __MetadataB
6060
* },
6161
* },
6262
* },
63+
* timeoutInMillis: Number("long"),
6364
* };
6465
* const command = new AcceptLinkCommand(input);
6566
* const response = await client.send(command);
@@ -171,6 +172,15 @@ export interface AcceptLinkCommandOutput extends AcceptLinkResponse, __MetadataB
171172
* // ],
172173
* // customerProvidedId: "STRING_VALUE",
173174
* // },
175+
* // logSettings: { // LinkLogSettings
176+
* // applicationLogs: { // LinkApplicationLogConfiguration
177+
* // sampling: { // LinkApplicationLogSampling
178+
* // errorLog: Number("double"), // required
179+
* // filterLog: Number("double"), // required
180+
* // },
181+
* // },
182+
* // },
183+
* // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
174184
* // linkId: "STRING_VALUE", // required
175185
* // };
176186
*

clients/client-rtbfabric/src/commands/CreateLinkCommand.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export interface CreateLinkCommandOutput extends CreateLinkResponse, __MetadataB
6464
* },
6565
* },
6666
* },
67+
* timeoutInMillis: Number("long"),
6768
* };
6869
* const command = new CreateLinkCommand(input);
6970
* const response = await client.send(command);
@@ -175,6 +176,15 @@ export interface CreateLinkCommandOutput extends CreateLinkResponse, __MetadataB
175176
* // ],
176177
* // customerProvidedId: "STRING_VALUE",
177178
* // },
179+
* // logSettings: { // LinkLogSettings
180+
* // applicationLogs: { // LinkApplicationLogConfiguration
181+
* // sampling: { // LinkApplicationLogSampling
182+
* // errorLog: Number("double"), // required
183+
* // filterLog: Number("double"), // required
184+
* // },
185+
* // },
186+
* // },
187+
* // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
178188
* // linkId: "STRING_VALUE", // required
179189
* // customerProvidedId: "STRING_VALUE",
180190
* // };
@@ -212,9 +222,9 @@ export interface CreateLinkCommandOutput extends CreateLinkResponse, __MetadataB
212222
* <p>Base exception class for all service exceptions from RTBFabric service.</p>
213223
*
214224
*
215-
* @example Create a new link
225+
* @example Create a standard link between gateways
216226
* ```javascript
217-
* // Creates a new link between RTB applications
227+
* // Creates a new link between two RTB applications. Requires peerGatewayId to specify the target gateway.
218228
* const input = {
219229
* gatewayId: "rtb-gw-12345678",
220230
* logSettings: {

clients/client-rtbfabric/src/commands/CreateResponderGatewayCommand.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ export interface CreateResponderGatewayCommandOutput extends CreateResponderGate
4747
* domainName: "STRING_VALUE",
4848
* port: Number("int"), // required
4949
* protocol: "HTTP" || "HTTPS", // required
50+
* listenerConfig: { // ListenerConfig
51+
* protocols: [ // ProtocolList // required
52+
* "HTTP" || "HTTPS",
53+
* ],
54+
* },
5055
* trustStoreConfiguration: { // TrustStoreConfiguration
5156
* certificateAuthorityCertificates: [ // CertificateAuthorityCertificates // required
5257
* "STRING_VALUE",
@@ -73,12 +78,19 @@ export interface CreateResponderGatewayCommandOutput extends CreateResponderGate
7378
* tags: { // TagsMap
7479
* "<keys>": "STRING_VALUE",
7580
* },
81+
* gatewayType: "EXTERNAL" || "INTERNAL",
7682
* };
7783
* const command = new CreateResponderGatewayCommand(input);
7884
* const response = await client.send(command);
7985
* // { // CreateResponderGatewayResponse
8086
* // gatewayId: "STRING_VALUE", // required
8187
* // status: "PENDING_CREATION" || "ACTIVE" || "PENDING_DELETION" || "DELETED" || "ERROR" || "PENDING_UPDATE" || "ISOLATED" || "PENDING_ISOLATION" || "PENDING_RESTORATION", // required
88+
* // listenerConfig: { // ListenerConfig
89+
* // protocols: [ // ProtocolList // required
90+
* // "HTTP" || "HTTPS",
91+
* // ],
92+
* // },
93+
* // externalInboundEndpoint: "STRING_VALUE",
8294
* // };
8395
*
8496
* ```

clients/client-rtbfabric/src/commands/GetInboundExternalLinkCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export interface GetInboundExternalLinkCommandOutput extends GetInboundExternalL
161161
* // },
162162
* // },
163163
* // },
164+
* // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
164165
* // };
165166
*
166167
* ```
@@ -202,7 +203,7 @@ export interface GetInboundExternalLinkCommandOutput extends GetInboundExternalL
202203
* /* response is
203204
* {
204205
* createdAt: "2024-01-15T10:30:00Z",
205-
* domainName: "rtb-gw-12345678.example.com",
206+
* domainName: "rtb-gw-12345678.123456789012.gateway.rtbfabric.us-east-1.amazonaws.com",
206207
* gatewayId: "rtb-gw-12345678",
207208
* linkId: "link-87654321",
208209
* status: "ACTIVE",

clients/client-rtbfabric/src/commands/GetLinkCommand.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,6 @@ export interface GetLinkCommandOutput extends GetLinkResponse, __MetadataBearer
150150
* // ],
151151
* // customerProvidedId: "STRING_VALUE",
152152
* // },
153-
* // linkId: "STRING_VALUE", // required
154-
* // tags: { // TagsMap
155-
* // "<keys>": "STRING_VALUE",
156-
* // },
157153
* // logSettings: { // LinkLogSettings
158154
* // applicationLogs: { // LinkApplicationLogConfiguration
159155
* // sampling: { // LinkApplicationLogSampling
@@ -162,6 +158,13 @@ export interface GetLinkCommandOutput extends GetLinkResponse, __MetadataBearer
162158
* // },
163159
* // },
164160
* // },
161+
* // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
162+
* // linkId: "STRING_VALUE", // required
163+
* // tags: { // TagsMap
164+
* // "<keys>": "STRING_VALUE",
165+
* // },
166+
* // httpResponderAllowed: true || false,
167+
* // timeoutInMillis: Number("long"),
165168
* // };
166169
*
167170
* ```

clients/client-rtbfabric/src/commands/GetOutboundExternalLinkCommand.ts

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,107 @@ export interface GetOutboundExternalLinkCommandOutput extends GetOutboundExterna
4747
* // linkId: "STRING_VALUE", // required
4848
* // status: "PENDING_CREATION" || "PENDING_REQUEST" || "REQUESTED" || "ACCEPTED" || "ACTIVE" || "REJECTED" || "FAILED" || "PENDING_DELETION" || "DELETED" || "PENDING_UPDATE" || "PENDING_ISOLATION" || "ISOLATED" || "PENDING_RESTORATION", // required
4949
* // publicEndpoint: "STRING_VALUE", // required
50+
* // flowModules: [ // ModuleConfigurationList
51+
* // { // ModuleConfiguration
52+
* // version: "STRING_VALUE",
53+
* // name: "STRING_VALUE", // required
54+
* // dependsOn: [ // FlowModuleNameList
55+
* // "STRING_VALUE",
56+
* // ],
57+
* // moduleParameters: { // ModuleParameters Union: only one key present
58+
* // noBid: { // NoBidModuleParameters
59+
* // reason: "STRING_VALUE",
60+
* // reasonCode: Number("int"),
61+
* // passThroughPercentage: Number("float"),
62+
* // },
63+
* // openRtbAttribute: { // OpenRtbAttributeModuleParameters
64+
* // filterType: "INCLUDE" || "EXCLUDE", // required
65+
* // filterConfiguration: [ // FilterConfiguration // required
66+
* // { // Filter
67+
* // criteria: [ // FilterCriteria // required
68+
* // { // FilterCriterion
69+
* // path: "STRING_VALUE", // required
70+
* // values: [ // ValueList // required
71+
* // "STRING_VALUE",
72+
* // ],
73+
* // },
74+
* // ],
75+
* // },
76+
* // ],
77+
* // action: { // Action Union: only one key present
78+
* // noBid: { // NoBidAction
79+
* // noBidReasonCode: Number("int"),
80+
* // },
81+
* // headerTag: { // HeaderTagAction
82+
* // name: "STRING_VALUE", // required
83+
* // value: "STRING_VALUE", // required
84+
* // },
85+
* // },
86+
* // holdbackPercentage: Number("float"), // required
87+
* // },
88+
* // rateLimiter: { // RateLimiterModuleParameters
89+
* // tps: Number("float"),
90+
* // },
91+
* // },
92+
* // },
93+
* // ],
94+
* // pendingFlowModules: [
95+
* // {
96+
* // version: "STRING_VALUE",
97+
* // name: "STRING_VALUE", // required
98+
* // dependsOn: [
99+
* // "STRING_VALUE",
100+
* // ],
101+
* // moduleParameters: {// Union: only one key present
102+
* // noBid: {
103+
* // reason: "STRING_VALUE",
104+
* // reasonCode: Number("int"),
105+
* // passThroughPercentage: Number("float"),
106+
* // },
107+
* // openRtbAttribute: {
108+
* // filterType: "INCLUDE" || "EXCLUDE", // required
109+
* // filterConfiguration: [ // required
110+
* // {
111+
* // criteria: [ // required
112+
* // {
113+
* // path: "STRING_VALUE", // required
114+
* // values: [ // required
115+
* // "STRING_VALUE",
116+
* // ],
117+
* // },
118+
* // ],
119+
* // },
120+
* // ],
121+
* // action: {// Union: only one key present
122+
* // noBid: {
123+
* // noBidReasonCode: Number("int"),
124+
* // },
125+
* // headerTag: {
126+
* // name: "STRING_VALUE", // required
127+
* // value: "STRING_VALUE", // required
128+
* // },
129+
* // },
130+
* // holdbackPercentage: Number("float"), // required
131+
* // },
132+
* // rateLimiter: {
133+
* // tps: Number("float"),
134+
* // },
135+
* // },
136+
* // },
137+
* // ],
138+
* // attributes: { // LinkAttributes
139+
* // responderErrorMasking: [ // ResponderErrorMasking
140+
* // { // ResponderErrorMaskingForHttpCode
141+
* // httpCode: "STRING_VALUE", // required
142+
* // action: "NO_BID" || "PASSTHROUGH", // required
143+
* // loggingTypes: [ // ResponderErrorMaskingLoggingTypes // required
144+
* // "NONE" || "METRIC" || "RESPONSE",
145+
* // ],
146+
* // responseLoggingPercentage: Number("float"),
147+
* // },
148+
* // ],
149+
* // customerProvidedId: "STRING_VALUE",
150+
* // },
50151
* // createdAt: new Date("TIMESTAMP"),
51152
* // updatedAt: new Date("TIMESTAMP"),
52153
* // tags: { // TagsMap
@@ -60,6 +161,7 @@ export interface GetOutboundExternalLinkCommandOutput extends GetOutboundExterna
60161
* // },
61162
* // },
62163
* // },
164+
* // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
63165
* // };
64166
*
65167
* ```

clients/client-rtbfabric/src/commands/GetResponderGatewayCommand.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ export interface GetResponderGatewayCommandOutput extends GetResponderGatewayRes
5656
* // domainName: "STRING_VALUE",
5757
* // port: Number("int"), // required
5858
* // protocol: "HTTP" || "HTTPS", // required
59+
* // listenerConfig: { // ListenerConfig
60+
* // protocols: [ // ProtocolList // required
61+
* // "HTTP" || "HTTPS",
62+
* // ],
63+
* // },
5964
* // trustStoreConfiguration: { // TrustStoreConfiguration
6065
* // certificateAuthorityCertificates: [ // CertificateAuthorityCertificates // required
6166
* // "STRING_VALUE",
@@ -84,6 +89,8 @@ export interface GetResponderGatewayCommandOutput extends GetResponderGatewayRes
8489
* // activeLinksCount: Number("int"),
8590
* // totalLinksCount: Number("int"),
8691
* // inboundLinksCount: Number("int"),
92+
* // gatewayType: "EXTERNAL" || "INTERNAL",
93+
* // externalInboundEndpoint: "STRING_VALUE",
8794
* // };
8895
*
8996
* ```

clients/client-rtbfabric/src/commands/ListLinksCommand.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,20 @@ export interface ListLinksCommandOutput extends ListLinksResponse, __MetadataBea
153153
* // ],
154154
* // customerProvidedId: "STRING_VALUE",
155155
* // },
156+
* // logSettings: { // LinkLogSettings
157+
* // applicationLogs: { // LinkApplicationLogConfiguration
158+
* // sampling: { // LinkApplicationLogSampling
159+
* // errorLog: Number("double"), // required
160+
* // filterLog: Number("double"), // required
161+
* // },
162+
* // },
163+
* // },
164+
* // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
156165
* // linkId: "STRING_VALUE", // required
157166
* // tags: { // TagsMap
158167
* // "<keys>": "STRING_VALUE",
159168
* // },
169+
* // publicEndpoint: "STRING_VALUE",
160170
* // },
161171
* // ],
162172
* // nextToken: "STRING_VALUE",

clients/client-rtbfabric/src/commands/RejectLinkCommand.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ export interface RejectLinkCommandOutput extends RejectLinkResponse, __MetadataB
150150
* // ],
151151
* // customerProvidedId: "STRING_VALUE",
152152
* // },
153+
* // logSettings: { // LinkLogSettings
154+
* // applicationLogs: { // LinkApplicationLogConfiguration
155+
* // sampling: { // LinkApplicationLogSampling
156+
* // errorLog: Number("double"), // required
157+
* // filterLog: Number("double"), // required
158+
* // },
159+
* // },
160+
* // },
161+
* // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
153162
* // linkId: "STRING_VALUE", // required
154163
* // };
155164
*

0 commit comments

Comments
 (0)