Skip to content

Commit 1b75076

Browse files
Add Tagging Support for Opportunity resources
1 parent 9765dae commit 1b75076

22 files changed

+1724
-1690
lines changed

generator/ServiceModels/partnercentral-selling/partnercentral-selling-2022-07-26.api.json

Lines changed: 383 additions & 379 deletions
Large diffs are not rendered by default.

generator/ServiceModels/partnercentral-selling/partnercentral-selling-2022-07-26.docs.json

Lines changed: 92 additions & 160 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"version": "1.0",
3-
"examples": {
4-
}
3+
"examples": {}
54
}

generator/ServiceModels/partnercentral-selling/partnercentral-selling-2022-07-26.normal.json

Lines changed: 899 additions & 892 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"version" : 2,
3+
"testCases" : [ {
4+
"id" : "ListOpportunitiesError",
5+
"operationName" : "ListOpportunities",
6+
"input" : {
7+
"Catalog" : null
8+
},
9+
"expectation" : {
10+
"failure" : {
11+
"errorId" : "ValidationException"
12+
}
13+
},
14+
"config" : {
15+
"region" : "us-east-1",
16+
"useFips" : false,
17+
"useDualstack" : false,
18+
"useAccountIdRouting" : true
19+
}
20+
} ]
21+
}

sdk/code-analysis/ServiceAnalysis/PartnerCentralSelling/Generated/PropertyValueRules.xml

Lines changed: 195 additions & 191 deletions
Large diffs are not rendered by default.

sdk/src/Services/PartnerCentralSelling/Generated/Model/CreateOpportunityRequest.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public partial class CreateOpportunityRequest : AmazonPartnerCentralSellingReque
7878
private List<string> _primaryNeedsFromAws = AWSConfigs.InitializeCollections ? new List<string>() : null;
7979
private Project _project;
8080
private SoftwareRevenue _softwareRevenue;
81+
private List<Tag> _tags = AWSConfigs.InitializeCollections ? new List<Tag>() : null;
8182

8283
/// <summary>
8384
/// Gets and sets the property Catalog.
@@ -216,7 +217,7 @@ internal bool IsSetNationalSecurity()
216217
/// of this opportunity who are within the partner's organization.
217218
/// </para>
218219
/// </summary>
219-
[AWSProperty(Min=0, Max=1)]
220+
[AWSProperty(Min=0, Max=2)]
220221
public List<Contact> OpportunityTeam
221222
{
222223
get { return this._opportunityTeam; }
@@ -421,5 +422,24 @@ internal bool IsSetSoftwareRevenue()
421422
return this._softwareRevenue != null;
422423
}
423424

425+
/// <summary>
426+
/// Gets and sets the property Tags.
427+
/// <para>
428+
/// A map of the key-value pairs of the tag or tags to assign.
429+
/// </para>
430+
/// </summary>
431+
[AWSProperty(Min=1, Max=200)]
432+
public List<Tag> Tags
433+
{
434+
get { return this._tags; }
435+
set { this._tags = value; }
436+
}
437+
438+
// Check to see if Tags property is set
439+
internal bool IsSetTags()
440+
{
441+
return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections);
442+
}
443+
424444
}
425445
}

sdk/src/Services/PartnerCentralSelling/Generated/Model/ExpectedCustomerSpend.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public partial class ExpectedCustomerSpend
4949
/// opportunity. This helps in forecasting financial returns.
5050
/// </para>
5151
/// </summary>
52-
[AWSProperty(Required=true)]
52+
[AWSProperty(Required=true, Sensitive=true)]
5353
public string Amount
5454
{
5555
get { return this._amount; }
@@ -104,9 +104,9 @@ internal bool IsSetEstimationUrl()
104104
/// <summary>
105105
/// Gets and sets the property Frequency.
106106
/// <para>
107-
/// Indicates how frequently the customer is expected to spend the projected amount. This
108-
/// can include values such as <c>Monthly</c>, <c>Quarterly</c>, or <c>Annually</c>. The
109-
/// default value is <c>Monthly</c>, representing recurring monthly spend.
107+
/// Indicates how frequently the customer is expected to spend the projected amount. Only
108+
/// the value <c>Monthly</c> is allowed for the <c>Frequency</c> field, representing recurring
109+
/// monthly spend.
110110
/// </para>
111111
/// </summary>
112112
[AWSProperty(Required=true)]
@@ -127,6 +127,8 @@ internal bool IsSetFrequency()
127127
/// <para>
128128
/// Specifies the name of the partner company that is expected to generate revenue from
129129
/// the opportunity. This field helps track the partner’s involvement in the opportunity.
130+
/// This field only accepts the value <c>AWS</c>. If any other value is provided, the
131+
/// system will automatically set it to <c>AWS</c>.
130132
/// </para>
131133
/// </summary>
132134
[AWSProperty(Required=true, Min=1, Max=80)]

0 commit comments

Comments
 (0)