Skip to content

Commit 16f6d51

Browse files
author
awstools
committed
feat(client-deadline): AWS Deadline Cloud now supports cost scale factors for farms, enabling studios to adjust reported costs to reflect their actual rendering economics. Adjusted costs are reflected in Deadline Cloud's Usage Explorer and Budgets.
1 parent c86ed4e commit 16f6d51

File tree

6 files changed

+59
-6
lines changed

6 files changed

+59
-6
lines changed

clients/client-deadline/src/commands/CreateFarmCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export interface CreateFarmCommandOutput extends CreateFarmResponse, __MetadataB
4141
* displayName: "STRING_VALUE", // required
4242
* description: "STRING_VALUE",
4343
* kmsKeyArn: "STRING_VALUE",
44+
* costScaleFactor: Number("float"),
4445
* tags: { // Tags
4546
* "<keys>": "STRING_VALUE",
4647
* },

clients/client-deadline/src/commands/GetFarmCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface GetFarmCommandOutput extends GetFarmResponse, __MetadataBearer
4646
* // displayName: "STRING_VALUE", // required
4747
* // description: "STRING_VALUE",
4848
* // kmsKeyArn: "STRING_VALUE",
49+
* // costScaleFactor: Number("float"), // required
4950
* // createdAt: new Date("TIMESTAMP"), // required
5051
* // createdBy: "STRING_VALUE", // required
5152
* // updatedAt: new Date("TIMESTAMP"),

clients/client-deadline/src/commands/UpdateFarmCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface UpdateFarmCommandOutput extends UpdateFarmResponse, __MetadataB
4040
* farmId: "STRING_VALUE", // required
4141
* displayName: "STRING_VALUE",
4242
* description: "STRING_VALUE",
43+
* costScaleFactor: Number("float"),
4344
* };
4445
* const command = new UpdateFarmCommand(input);
4546
* const response = await client.send(command);

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,6 +2375,12 @@ export interface CreateFarmRequest {
23752375
*/
23762376
kmsKeyArn?: string | undefined;
23772377

2378+
/**
2379+
* <p>The cost scale factor to apply on the farm.</p>
2380+
* @public
2381+
*/
2382+
costScaleFactor?: number | undefined;
2383+
23782384
/**
23792385
* <p>The tags to add to your farm. Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.</p>
23802386
* @public
@@ -4791,6 +4797,12 @@ export interface GetFarmResponse {
47914797
*/
47924798
kmsKeyArn?: string | undefined;
47934799

4800+
/**
4801+
* <p>The cost scale factor applied on the farm.</p>
4802+
* @public
4803+
*/
4804+
costScaleFactor: number | undefined;
4805+
47944806
/**
47954807
* <p>The date and time the resource was created.</p>
47964808
* @public
@@ -8483,6 +8495,12 @@ export interface UpdateFarmRequest {
84838495
* @public
84848496
*/
84858497
description?: string | undefined;
8498+
8499+
/**
8500+
* <p>The cost scale factor of the farm to update.</p>
8501+
* @public
8502+
*/
8503+
costScaleFactor?: number | undefined;
84868504
}
84878505

84888506
/**

clients/client-deadline/src/schemas/schemas_0.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ const _cM = "customerManaged";
594594
const _cR = "consumersResolved";
595595
const _cS = "completedStatus";
596596
const _cSA = "cancelSessionActions";
597+
const _cSF = "costScaleFactor";
597598
const _cT = "clientToken";
598599
const _cU = "consumersUnresolved";
599600
const _ca = "capabilities";
@@ -1167,8 +1168,8 @@ export var CreateBudgetResponse$: StaticStructureSchema = [3, n0, _CBRr,
11671168
];
11681169
export var CreateFarmRequest$: StaticStructureSchema = [3, n0, _CFR,
11691170
0,
1170-
[_dN, _cT, _de, _kKA, _ta],
1171-
[0, [0, { [_hH]: _XACT, [_iT]: 1 }], [() => Description, 0], 0, 128 | 0], 1
1171+
[_dN, _cT, _de, _kKA, _cSF, _ta],
1172+
[0, [0, { [_hH]: _XACT, [_iT]: 1 }], [() => Description, 0], 0, 1, 128 | 0], 1
11721173
];
11731174
export var CreateFarmResponse$: StaticStructureSchema = [3, n0, _CFRr,
11741175
0,
@@ -1582,8 +1583,8 @@ export var GetFarmRequest$: StaticStructureSchema = [3, n0, _GFR,
15821583
];
15831584
export var GetFarmResponse$: StaticStructureSchema = [3, n0, _GFRe,
15841585
0,
1585-
[_fI, _dN, _cA, _cB, _de, _kKA, _uA, _uB],
1586-
[0, 0, 5, 0, [() => Description, 0], 0, 5, 0], 4
1586+
[_fI, _dN, _cSF, _cA, _cB, _de, _kKA, _uA, _uB],
1587+
[0, 0, 1, 5, 0, [() => Description, 0], 0, 5, 0], 5
15871588
];
15881589
export var GetFleetRequest$: StaticStructureSchema = [3, n0, _GFRet,
15891590
0,
@@ -2472,8 +2473,8 @@ export var UpdatedSessionActionInfo$: StaticStructureSchema = [3, n0, _USAI,
24722473
];
24732474
export var UpdateFarmRequest$: StaticStructureSchema = [3, n0, _UFR,
24742475
0,
2475-
[_fI, _dN, _de],
2476-
[[0, 1], 0, [() => Description, 0]], 1
2476+
[_fI, _dN, _de, _cSF],
2477+
[[0, 1], 0, [() => Description, 0], 1], 1
24772478
];
24782479
export var UpdateFarmResponse$: StaticStructureSchema = [3, n0, _UFRp,
24792480
0,

codegen/sdk-codegen/aws-models/deadline.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,6 +2205,16 @@
22052205
"smithy.api#output": {}
22062206
}
22072207
},
2208+
"com.amazonaws.deadline#CostScaleFactor": {
2209+
"type": "float",
2210+
"traits": {
2211+
"smithy.api#documentation": "A multiplier applied to calculated costs. Valid range is 0 to 100. Values less than 1.0 represent discounts, values greater than 1.0 represent markups, and a value of 1.0 represents no adjustment.",
2212+
"smithy.api#range": {
2213+
"min": 0,
2214+
"max": 100
2215+
}
2216+
}
2217+
},
22082218
"com.amazonaws.deadline#CpuArchitectureType": {
22092219
"type": "enum",
22102220
"members": {
@@ -2439,6 +2449,13 @@
24392449
"smithy.api#documentation": "<p>The ARN of the KMS key to use on the farm.</p>"
24402450
}
24412451
},
2452+
"costScaleFactor": {
2453+
"target": "com.amazonaws.deadline#CostScaleFactor",
2454+
"traits": {
2455+
"smithy.api#default": 1,
2456+
"smithy.api#documentation": "<p>The cost scale factor to apply on the farm.</p>"
2457+
}
2458+
},
24422459
"tags": {
24432460
"target": "com.amazonaws.deadline#Tags",
24442461
"traits": {
@@ -7609,6 +7626,14 @@
76097626
"smithy.api#documentation": "<p>The ARN of the KMS key used on the farm.</p>"
76107627
}
76117628
},
7629+
"costScaleFactor": {
7630+
"target": "com.amazonaws.deadline#CostScaleFactor",
7631+
"traits": {
7632+
"smithy.api#default": 1,
7633+
"smithy.api#documentation": "<p>The cost scale factor applied on the farm.</p>",
7634+
"smithy.api#required": {}
7635+
}
7636+
},
76127637
"createdAt": {
76137638
"target": "com.amazonaws.deadline#CreatedAt",
76147639
"traits": {
@@ -20640,6 +20665,12 @@
2064020665
"traits": {
2064120666
"smithy.api#documentation": "<p>The description of the farm to update.</p> <important> <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p> </important>"
2064220667
}
20668+
},
20669+
"costScaleFactor": {
20670+
"target": "com.amazonaws.deadline#CostScaleFactor",
20671+
"traits": {
20672+
"smithy.api#documentation": "<p>The cost scale factor of the farm to update.</p>"
20673+
}
2064320674
}
2064420675
},
2064520676
"traits": {

0 commit comments

Comments
 (0)