Skip to content

Commit b13d323

Browse files
Add support for the new optional domain-unit-id parameter in the UpdateProject API.
1 parent bd06b5d commit b13d323

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed

generator/ServiceModels/datazone/datazone-2018-05-10.api.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14479,6 +14479,7 @@
1447914479
"location":"uri",
1448014480
"locationName":"domainIdentifier"
1448114481
},
14482+
"domainUnitId":{"shape":"DomainUnitId"},
1448214483
"environmentDeploymentDetails":{"shape":"EnvironmentDeploymentDetails"},
1448314484
"glossaryTerms":{"shape":"GlossaryTerms"},
1448414485
"identifier":{

generator/ServiceModels/datazone/datazone-2018-05-10.docs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2614,6 +2614,7 @@
26142614
"UpdateDomainUnitInput$identifier": "<p>The ID of the domain unit that you want to update.</p>",
26152615
"UpdateDomainUnitOutput$id": "<p>The ID of the domain unit that you want to update.</p>",
26162616
"UpdateDomainUnitOutput$parentDomainUnitId": "<p>The ID of the parent domain unit.</p>",
2617+
"UpdateProjectInput$domainUnitId": "<p>The ID of the domain unit.</p>",
26172618
"UpdateProjectOutput$domainUnitId": "<p>The ID of the domain unit.</p>",
26182619
"UpdateProjectProfileInput$domainUnitIdentifier": "<p>The ID of the domain unit where a project profile is to be updated.</p>",
26192620
"UpdateProjectProfileOutput$domainUnitId": "<p>The domain unit ID of the project profile to be updated.</p>",

generator/ServiceModels/datazone/datazone-2018-05-10.normal.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21987,6 +21987,10 @@
2198721987
"location":"uri",
2198821988
"locationName":"domainIdentifier"
2198921989
},
21990+
"domainUnitId":{
21991+
"shape":"DomainUnitId",
21992+
"documentation":"<p>The ID of the domain unit.</p>"
21993+
},
2199021994
"environmentDeploymentDetails":{
2199121995
"shape":"EnvironmentDeploymentDetails",
2199221996
"documentation":"<p>The environment deployment details of the project.</p>"

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4169,6 +4169,12 @@
41694169
<property>Amazon.DataZone.Model.UpdateProjectRequest.DomainIdentifier</property>
41704170
<pattern>^dzd[-_][a-zA-Z0-9_-]{1,36}$</pattern>
41714171
</property-value-rule>
4172+
<property-value-rule>
4173+
<property>Amazon.DataZone.Model.UpdateProjectRequest.DomainUnitId</property>
4174+
<min>1</min>
4175+
<max>256</max>
4176+
<pattern>^[a-z0-9_\-]+$</pattern>
4177+
</property-value-rule>
41724178
<property-value-rule>
41734179
<property>Amazon.DataZone.Model.UpdateProjectRequest.Identifier</property>
41744180
<pattern>^[a-zA-Z0-9_-]{1,36}$</pattern>

sdk/src/Services/DataZone/Generated/Model/Internal/MarshallTransformations/UpdateProjectRequestMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ public IRequest Marshall(UpdateProjectRequest publicRequest)
7979
context.Writer.Write(publicRequest.Description);
8080
}
8181

82+
if(publicRequest.IsSetDomainUnitId())
83+
{
84+
context.Writer.WritePropertyName("domainUnitId");
85+
context.Writer.Write(publicRequest.DomainUnitId);
86+
}
87+
8288
if(publicRequest.IsSetEnvironmentDeploymentDetails())
8389
{
8490
context.Writer.WritePropertyName("environmentDeploymentDetails");

sdk/src/Services/DataZone/Generated/Model/UpdateProjectRequest.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class UpdateProjectRequest : AmazonDataZoneRequest
3737
{
3838
private string _description;
3939
private string _domainIdentifier;
40+
private string _domainUnitId;
4041
private EnvironmentDeploymentDetails _environmentDeploymentDetails;
4142
private List<string> _glossaryTerms = AWSConfigs.InitializeCollections ? new List<string>() : null;
4243
private string _identifier;
@@ -82,6 +83,25 @@ internal bool IsSetDomainIdentifier()
8283
return this._domainIdentifier != null;
8384
}
8485

86+
/// <summary>
87+
/// Gets and sets the property DomainUnitId.
88+
/// <para>
89+
/// The ID of the domain unit.
90+
/// </para>
91+
/// </summary>
92+
[AWSProperty(Min=1, Max=256)]
93+
public string DomainUnitId
94+
{
95+
get { return this._domainUnitId; }
96+
set { this._domainUnitId = value; }
97+
}
98+
99+
// Check to see if DomainUnitId property is set
100+
internal bool IsSetDomainUnitId()
101+
{
102+
return this._domainUnitId != null;
103+
}
104+
85105
/// <summary>
86106
/// Gets and sets the property EnvironmentDeploymentDetails.
87107
/// <para>

0 commit comments

Comments
 (0)