Skip to content

Commit 3992c46

Browse files
Add support for overriding selection of default AWS IAM Identity Center instance as part of Amazon DataZone domain APIs.
1 parent aee6d95 commit 3992c46

File tree

7 files changed

+54
-0
lines changed

7 files changed

+54
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12924,10 +12924,15 @@
1292412924
"SingleSignOn":{
1292512925
"type":"structure",
1292612926
"members":{
12927+
"idcInstanceArn":{"shape":"SingleSignOnIdcInstanceArnString"},
1292712928
"type":{"shape":"AuthType"},
1292812929
"userAssignment":{"shape":"UserAssignment"}
1292912930
}
1293012931
},
12932+
"SingleSignOnIdcInstanceArnString":{
12933+
"type":"string",
12934+
"pattern":"arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}"
12935+
},
1293112936
"Smithy":{
1293212937
"type":"string",
1293312938
"max":100000,

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6616,6 +6616,12 @@
66166616
"UpdateDomainOutput$singleSignOn": "<p>The single sign-on option of the Amazon DataZone domain.</p>"
66176617
}
66186618
},
6619+
"SingleSignOnIdcInstanceArnString": {
6620+
"base": null,
6621+
"refs": {
6622+
"SingleSignOn$idcInstanceArn": "<p>The ARN of the IDC instance.</p>"
6623+
}
6624+
},
66196625
"Smithy": {
66206626
"base": null,
66216627
"refs": {

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19325,6 +19325,10 @@
1932519325
"SingleSignOn":{
1932619326
"type":"structure",
1932719327
"members":{
19328+
"idcInstanceArn":{
19329+
"shape":"SingleSignOnIdcInstanceArnString",
19330+
"documentation":"<p>The ARN of the IDC instance.</p>"
19331+
},
1932819332
"type":{
1932919333
"shape":"AuthType",
1933019334
"documentation":"<p>The type of single sign-on in Amazon DataZone.</p>"
@@ -19336,6 +19340,10 @@
1933619340
},
1933719341
"documentation":"<p>The single sign-on details in Amazon DataZone.</p>"
1933819342
},
19343+
"SingleSignOnIdcInstanceArnString":{
19344+
"type":"string",
19345+
"pattern":"arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}"
19346+
},
1933919347
"Smithy":{
1934019348
"type":"string",
1934119349
"max":100000,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5740,6 +5740,10 @@
57405740
<min>1</min>
57415741
<max>128</max>
57425742
</property-value-rule>
5743+
<property-value-rule>
5744+
<property>Amazon.DataZone.Model.SingleSignOn.IdcInstanceArn</property>
5745+
<pattern>arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}</pattern>
5746+
</property-value-rule>
57435747
<property-value-rule>
57445748
<property>Amazon.DataZone.Model.SparkEmrPropertiesInput.ComputeArn</property>
57455749
<min>0</min>

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ public void Marshall(SingleSignOn requestObject, JsonMarshallerContext context)
4848
{
4949
if(requestObject == null)
5050
return;
51+
if(requestObject.IsSetIdcInstanceArn())
52+
{
53+
context.Writer.WritePropertyName("idcInstanceArn");
54+
context.Writer.Write(requestObject.IdcInstanceArn);
55+
}
56+
5157
if(requestObject.IsSetType())
5258
{
5359
context.Writer.WritePropertyName("type");

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public SingleSignOn Unmarshall(JsonUnmarshallerContext context)
6666
int targetDepth = context.CurrentDepth;
6767
while (context.ReadAtDepth(targetDepth))
6868
{
69+
if (context.TestExpression("idcInstanceArn", targetDepth))
70+
{
71+
var unmarshaller = StringUnmarshaller.Instance;
72+
unmarshalledObject.IdcInstanceArn = unmarshaller.Unmarshall(context);
73+
continue;
74+
}
6975
if (context.TestExpression("type", targetDepth))
7076
{
7177
var unmarshaller = StringUnmarshaller.Instance;

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,28 @@ namespace Amazon.DataZone.Model
3434
/// </summary>
3535
public partial class SingleSignOn
3636
{
37+
private string _idcInstanceArn;
3738
private AuthType _type;
3839
private UserAssignment _userAssignment;
3940

41+
/// <summary>
42+
/// Gets and sets the property IdcInstanceArn.
43+
/// <para>
44+
/// The ARN of the IDC instance.
45+
/// </para>
46+
/// </summary>
47+
public string IdcInstanceArn
48+
{
49+
get { return this._idcInstanceArn; }
50+
set { this._idcInstanceArn = value; }
51+
}
52+
53+
// Check to see if IdcInstanceArn property is set
54+
internal bool IsSetIdcInstanceArn()
55+
{
56+
return this._idcInstanceArn != null;
57+
}
58+
4059
/// <summary>
4160
/// Gets and sets the property Type.
4261
/// <para>

0 commit comments

Comments
 (0)