Skip to content

Commit 885fb63

Browse files
author
awstools
committed
feat(client-partnercentral-selling): Adds support for the new Project.AwsPartition field on Opportunity and AWS Opportunity Summary. Use this field to specify the AWS partition where the opportunity will be deployed.
1 parent 82cfae7 commit 885fb63

File tree

10 files changed

+64
-7
lines changed

10 files changed

+64
-7
lines changed

clients/client-partnercentral-selling/src/commands/CreateOpportunityCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export interface CreateOpportunityCommandOutput extends CreateOpportunityRespons
100100
* OtherCompetitorNames: "STRING_VALUE",
101101
* OtherSolutionDescription: "STRING_VALUE",
102102
* AdditionalComments: "STRING_VALUE",
103+
* AwsPartition: "aws-eusc",
103104
* },
104105
* OpportunityType: "Net New Business" || "Flat Renewal" || "Expansion",
105106
* Marketing: { // Marketing

clients/client-partnercentral-selling/src/commands/GetAwsOpportunitySummaryCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export interface GetAwsOpportunitySummaryCommandOutput extends GetAwsOpportunity
163163
* // EstimationUrl: "STRING_VALUE",
164164
* // },
165165
* // ],
166+
* // AwsPartition: "aws-eusc",
166167
* // },
167168
* // Catalog: "STRING_VALUE", // required
168169
* // };

clients/client-partnercentral-selling/src/commands/GetOpportunityCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export interface GetOpportunityCommandOutput extends GetOpportunityResponse, __M
106106
* // OtherCompetitorNames: "STRING_VALUE",
107107
* // OtherSolutionDescription: "STRING_VALUE",
108108
* // AdditionalComments: "STRING_VALUE",
109+
* // AwsPartition: "aws-eusc",
109110
* // },
110111
* // OpportunityType: "Net New Business" || "Flat Renewal" || "Expansion",
111112
* // Marketing: { // Marketing

clients/client-partnercentral-selling/src/commands/UpdateOpportunityCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export interface UpdateOpportunityCommandOutput extends UpdateOpportunityRespons
100100
* OtherCompetitorNames: "STRING_VALUE",
101101
* OtherSolutionDescription: "STRING_VALUE",
102102
* AdditionalComments: "STRING_VALUE",
103+
* AwsPartition: "aws-eusc",
103104
* },
104105
* OpportunityType: "Net New Business" || "Flat Renewal" || "Expansion",
105106
* Marketing: { // Marketing

clients/client-partnercentral-selling/src/models/enums.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,18 @@ export const AwsOpportunityStage = {
690690
*/
691691
export type AwsOpportunityStage = (typeof AwsOpportunityStage)[keyof typeof AwsOpportunityStage];
692692

693+
/**
694+
* @public
695+
* @enum
696+
*/
697+
export const AwsPartition = {
698+
AWS_EUSC: "aws-eusc",
699+
} as const;
700+
/**
701+
* @public
702+
*/
703+
export type AwsPartition = (typeof AwsPartition)[keyof typeof AwsPartition];
704+
693705
/**
694706
* @public
695707
* @enum

clients/client-partnercentral-selling/src/models/models_0.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
AwsFundingUsed,
55
AwsMemberBusinessTitle,
66
AwsOpportunityStage,
7+
AwsPartition,
78
Channel,
89
ClosedLostReason,
910
CompetitorName,
@@ -648,6 +649,12 @@ export interface AwsOpportunityProject {
648649
* @public
649650
*/
650651
ExpectedCustomerSpend?: ExpectedCustomerSpend[] | undefined;
652+
653+
/**
654+
* AWS partition where the opportunity will be deployed. Possible values: 'aws-eusc' for AWS European Sovereign Cloud, `null` for all other partitions
655+
* @public
656+
*/
657+
AwsPartition?: AwsPartition | undefined;
651658
}
652659

653660
/**
@@ -2883,6 +2890,12 @@ export interface Project {
28832890
* @public
28842891
*/
28852892
AdditionalComments?: string | undefined;
2893+
2894+
/**
2895+
* AWS partition where the opportunity will be deployed. Possible values: 'aws-eusc' for AWS European Sovereign Cloud, `null` for all other partitions
2896+
* @public
2897+
*/
2898+
AwsPartition?: AwsPartition | undefined;
28862899
}
28872900

28882901
/**

clients/client-partnercentral-selling/src/schemas/schemas_0.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const _APO = "AwsProductOptimization";
3333
const _APOL = "AwsProductOptimizationsList";
3434
const _APSIBS = "AwsProductsSpendInsightsBySource";
3535
const _APp = "ApnPrograms";
36-
const _APw = "AwsProducts";
36+
const _APw = "AwsPartition";
37+
const _APws = "AwsProducts";
3738
const _AR = "AccountReceiver";
3839
const _AS = "AccountSummary";
3940
const _ASd = "AddressSummary";
@@ -580,10 +581,10 @@ export var AwsOpportunityProject: StaticStructureSchema = [
580581
n0,
581582
_AOP,
582583
0,
583-
[_ECS],
584-
[[() => ExpectedCustomerSpendList, 0]],
584+
[_ECS, _APw],
585+
[[() => ExpectedCustomerSpendList, 0], 0],
585586
];
586-
export var AwsOpportunityRelatedEntities: StaticStructureSchema = [3, n0, _AORE, 0, [_APw, _So], [64 | 0, 64 | 0]];
587+
export var AwsOpportunityRelatedEntities: StaticStructureSchema = [3, n0, _AORE, 0, [_APws, _So], [64 | 0, 64 | 0]];
587588
export var AwsProductDetails: StaticStructureSchema = [
588589
3,
589590
n0,
@@ -605,7 +606,7 @@ export var AwsProductInsights: StaticStructureSchema = [
605606
n0,
606607
_API,
607608
0,
608-
[_CCu, _F, _TA, _TOA, _TPSA, _TABC, _APw],
609+
[_CCu, _F, _TA, _TOA, _TPSA, _TABC, _APws],
609610
[
610611
[() => CurrencyCode, 0],
611612
0,
@@ -1288,7 +1289,7 @@ export var Project: StaticStructureSchema = [
12881289
n0,
12891290
_Pr,
12901291
0,
1291-
[_DM, _ECS, _Ti, _APp, _CBP, _CUC, _ROI, _SAal, _CNo, _OCN, _OSD, _ACd],
1292+
[_DM, _ECS, _Ti, _APp, _CBP, _CUC, _ROI, _SAal, _CNo, _OCN, _OSD, _ACd, _APw],
12921293
[
12931294
64 | 0,
12941295
[() => ExpectedCustomerSpendList, 0],
@@ -1302,6 +1303,7 @@ export var Project: StaticStructureSchema = [
13021303
0,
13031304
[() => PiiString, 0],
13041305
0,
1306+
0,
13051307
],
13061308
];
13071309
export var ProjectDetails: StaticStructureSchema = [
@@ -1336,7 +1338,7 @@ export var RelatedEntityIdentifiers: StaticStructureSchema = [
13361338
n0,
13371339
_REIel,
13381340
0,
1339-
[_AMO, _AMOS, _So, _APw],
1341+
[_AMO, _AMOS, _So, _APws],
13401342
[64 | 0, 64 | 0, 64 | 0, 64 | 0],
13411343
];
13421344
export var ResourceNotFoundException: StaticErrorSchema = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M], [0]];

clients/client-partnercentral-selling/test/index-objects.spec.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
AwsFundingUsed,
99
AwsMemberBusinessTitle,
1010
AwsOpportunityStage,
11+
AwsPartition,
1112
Channel,
1213
ClosedLostReason,
1314
CompetitorName,
@@ -163,6 +164,7 @@ assert(typeof AwsClosedLostReason === "object");
163164
assert(typeof AwsFundingUsed === "object");
164165
assert(typeof AwsMemberBusinessTitle === "object");
165166
assert(typeof AwsOpportunityStage === "object");
167+
assert(typeof AwsPartition === "object");
166168
assert(typeof Channel === "object");
167169
assert(typeof ClosedLostReason === "object");
168170
assert(typeof CompetitorName === "object");

clients/client-partnercentral-selling/test/index-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export type {
133133
AwsFundingUsed,
134134
AwsMemberBusinessTitle,
135135
AwsOpportunityStage,
136+
AwsPartition,
136137
Channel,
137138
ClosedLostReason,
138139
CompetitorName,

codegen/sdk-codegen/aws-models/partnercentral-selling.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,6 +1351,12 @@
13511351
"traits": {
13521352
"smithy.api#documentation": "<p>Indicates the expected spending by the customer over the course of the project. This value helps partners and AWS estimate the financial impact of the opportunity. Use the <a href=\"https://calculator.aws/#/\">AWS Pricing Calculator</a> to create an estimate of the customer’s total spend. If only annual recurring revenue (ARR) is available, distribute it across 12 months to provide an average monthly value.</p>"
13531353
}
1354+
},
1355+
"AwsPartition": {
1356+
"target": "com.amazonaws.partnercentralselling#AwsPartition",
1357+
"traits": {
1358+
"smithy.api#documentation": "AWS partition where the opportunity will be deployed. Possible values: 'aws-eusc' for AWS European Sovereign Cloud, `null` for all other partitions"
1359+
}
13541360
}
13551361
},
13561362
"traits": {
@@ -1532,6 +1538,17 @@
15321538
"target": "com.amazonaws.partnercentralselling#AwsTeamMember"
15331539
}
15341540
},
1541+
"com.amazonaws.partnercentralselling#AwsPartition": {
1542+
"type": "enum",
1543+
"members": {
1544+
"AWS_EUSC": {
1545+
"target": "smithy.api#Unit",
1546+
"traits": {
1547+
"smithy.api#enumValue": "aws-eusc"
1548+
}
1549+
}
1550+
}
1551+
},
15351552
"com.amazonaws.partnercentralselling#AwsProductDetails": {
15361553
"type": "structure",
15371554
"members": {
@@ -10824,6 +10841,12 @@
1082410841
"smithy.api#documentation": "<p>Captures additional comments or information for the <code>Opportunity</code> that weren't captured in other fields.</p>",
1082510842
"smithy.api#pattern": "^(?s).{1,255}$"
1082610843
}
10844+
},
10845+
"AwsPartition": {
10846+
"target": "com.amazonaws.partnercentralselling#AwsPartition",
10847+
"traits": {
10848+
"smithy.api#documentation": "AWS partition where the opportunity will be deployed. Possible values: 'aws-eusc' for AWS European Sovereign Cloud, `null` for all other partitions"
10849+
}
1082710850
}
1082810851
},
1082910852
"traits": {

0 commit comments

Comments
 (0)