Skip to content

Commit b1ed28c

Browse files
Allow vanity DNS domain when creating a new ASC instance
1 parent 121de43 commit b1ed28c

File tree

11 files changed

+65
-29
lines changed

11 files changed

+65
-29
lines changed

generator/ServiceModels/supplychain/supplychain-2024-01-01.api.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@
599599
"instanceName":{"shape":"InstanceName"},
600600
"instanceDescription":{"shape":"InstanceDescription"},
601601
"kmsKeyArn":{"shape":"KmsKeyArn"},
602+
"webAppDnsDomain":{"shape":"InstanceWebAppDnsDomain"},
602603
"tags":{"shape":"TagMap"},
603604
"clientToken":{
604605
"shape":"ClientToken",
@@ -1213,7 +1214,7 @@
12131214
},
12141215
"InstanceWebAppDnsDomain":{
12151216
"type":"string",
1216-
"pattern":"[A-Za-z0-9]+(.[A-Za-z0-9]+)+"
1217+
"pattern":"(?![-])[a-zA-Z0-9-]{1,62}[a-zA-Z0-9]"
12171218
},
12181219
"InternalServerException":{
12191220
"type":"structure",

generator/ServiceModels/supplychain/supplychain-2024-01-01.docs.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"DataIntegrationEventData": {
128128
"base": null,
129129
"refs": {
130-
"SendDataIntegrationEventRequest$data": "<p>The data payload of the event. For more information on the data schema to use, see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">Data entities supported in AWS Supply Chain </a>.</p>"
130+
"SendDataIntegrationEventRequest$data": "<p>The data payload of the event. For more information on the data schema to use, see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">Data entities supported in AWS Supply Chain</a>.</p>"
131131
}
132132
},
133133
"DataIntegrationEventGroupId": {
@@ -338,7 +338,7 @@
338338
"refs": {
339339
"CreateDataLakeDatasetRequest$name": "<p>The name of the dataset. For <b>asc</b> name space, the name must be one of the supported data entities under <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p>",
340340
"DataLakeDataset$name": "<p>The name of the dataset. For <b>asc</b> name space, the name must be one of the supported data entities under <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p>",
341-
"DeleteDataLakeDatasetRequest$name": "<p>The name of the dataset. If the namespace is <i>asc</i>, the name must be one of the supported <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">data entities </a>.</p>",
341+
"DeleteDataLakeDatasetRequest$name": "<p>The name of the dataset. For <b>asc</b> name space, the name must be one of the supported data entities under <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p>",
342342
"DeleteDataLakeDatasetResponse$name": "<p>The name of deleted dataset.</p>",
343343
"GetDataLakeDatasetRequest$name": "<p>The name of the dataset. For <b>asc</b> name space, the name must be one of the supported data entities under <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p>",
344344
"UpdateDataLakeDatasetRequest$name": "<p>The name of the dataset. For <b>asc</b> name space, the name must be one of the supported data entities under <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p>"
@@ -349,10 +349,10 @@
349349
"refs": {
350350
"CreateDataLakeDatasetRequest$namespace": "<p>The name space of the dataset.</p> <ul> <li> <p> <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p> </li> <li> <p> <b>default</b> - For datasets with custom user-defined schemas.</p> </li> </ul>",
351351
"DataLakeDataset$namespace": "<p>The name space of the dataset. The available values are:</p> <ul> <li> <p> <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p> </li> <li> <p> <b>default</b> - For datasets with custom user-defined schemas.</p> </li> </ul>",
352-
"DeleteDataLakeDatasetRequest$namespace": "<p>The namespace of the dataset. The available values are:</p> <ul> <li> <p>asc: for <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\"> AWS Supply Chain supported datasets </a>.</p> </li> <li> <p>default: for datasets with custom user-defined schemas.</p> </li> </ul>",
353-
"DeleteDataLakeDatasetResponse$namespace": "<p>The namespace of deleted dataset.</p>",
352+
"DeleteDataLakeDatasetRequest$namespace": "<p>The name space of the dataset. The available values are:</p> <ul> <li> <p> <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p> </li> <li> <p> <b>default</b> - For datasets with custom user-defined schemas.</p> </li> </ul>",
353+
"DeleteDataLakeDatasetResponse$namespace": "<p>The name space of deleted dataset.</p>",
354354
"GetDataLakeDatasetRequest$namespace": "<p>The name space of the dataset. The available values are:</p> <ul> <li> <p> <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p> </li> <li> <p> <b>default</b> - For datasets with custom user-defined schemas.</p> </li> </ul>",
355-
"ListDataLakeDatasetsRequest$namespace": "<p>The namespace of the dataset. The available values are:</p> <ul> <li> <p>asc: for <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\"> AWS Supply Chain supported datasets </a>.</p> </li> <li> <p>default: for datasets with custom user-defined schemas.</p> </li> </ul>",
355+
"ListDataLakeDatasetsRequest$namespace": "<p>The name space of the dataset. The available values are:</p> <ul> <li> <p> <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p> </li> <li> <p> <b>default</b> - For datasets with custom user-defined schemas.</p> </li> </ul>",
356356
"UpdateDataLakeDatasetRequest$namespace": "<p>The name space of the dataset. The available values are:</p> <ul> <li> <p> <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p> </li> <li> <p> <b>default</b> - For datasets with custom user-defined schemas.</p> </li> </ul>"
357357
}
358358
},
@@ -366,7 +366,7 @@
366366
"DataLakeDatasetSchema": {
367367
"base": "<p>The schema details of the dataset.</p>",
368368
"refs": {
369-
"CreateDataLakeDatasetRequest$schema": "<p>The custom schema of the data lake dataset and is only required when the name space is <i>default</i>.</p>",
369+
"CreateDataLakeDatasetRequest$schema": "<p>The custom schema of the data lake dataset and is only required when the name space is <b>default</b>.</p>",
370370
"DataLakeDataset$schema": "<p>The schema of the dataset.</p>"
371371
}
372372
},
@@ -551,6 +551,7 @@
551551
"InstanceWebAppDnsDomain": {
552552
"base": null,
553553
"refs": {
554+
"CreateInstanceRequest$webAppDnsDomain": "<p>The DNS subdomain of the web app. This would be \"example\" in the URL \"example.scn.global.on.aws\". You can set this to a custom value, as long as the domain isn't already being used by someone else. The name may only include alphanumeric characters and hyphens.</p>",
554555
"Instance$webAppDnsDomain": "<p>The WebApp DNS domain name of the instance.</p>"
555556
}
556557
},

generator/ServiceModels/supplychain/supplychain-2024-01-01.normal.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@
659659
},
660660
"schema":{
661661
"shape":"DataLakeDatasetSchema",
662-
"documentation":"<p>The custom schema of the data lake dataset and is only required when the name space is <i>default</i>.</p>"
662+
"documentation":"<p>The custom schema of the data lake dataset and is only required when the name space is <b>default</b>.</p>"
663663
},
664664
"description":{
665665
"shape":"DataLakeDatasetDescription",
@@ -698,6 +698,10 @@
698698
"shape":"KmsKeyArn",
699699
"documentation":"<p>The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon Web Services owned KMS key. If you don't provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key.</p>"
700700
},
701+
"webAppDnsDomain":{
702+
"shape":"InstanceWebAppDnsDomain",
703+
"documentation":"<p>The DNS subdomain of the web app. This would be \"example\" in the URL \"example.scn.global.on.aws\". You can set this to a custom value, as long as the domain isn't already being used by someone else. The name may only include alphanumeric characters and hyphens.</p>"
704+
},
701705
"tags":{
702706
"shape":"TagMap",
703707
"documentation":"<p>The Amazon Web Services tags of an instance to be created.</p>"
@@ -1255,13 +1259,13 @@
12551259
},
12561260
"namespace":{
12571261
"shape":"DataLakeDatasetNamespace",
1258-
"documentation":"<p>The namespace of the dataset. The available values are:</p> <ul> <li> <p>asc: for <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\"> AWS Supply Chain supported datasets </a>.</p> </li> <li> <p>default: for datasets with custom user-defined schemas.</p> </li> </ul>",
1262+
"documentation":"<p>The name space of the dataset. The available values are:</p> <ul> <li> <p> <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p> </li> <li> <p> <b>default</b> - For datasets with custom user-defined schemas.</p> </li> </ul>",
12591263
"location":"uri",
12601264
"locationName":"namespace"
12611265
},
12621266
"name":{
12631267
"shape":"DataLakeDatasetName",
1264-
"documentation":"<p>The name of the dataset. If the namespace is <i>asc</i>, the name must be one of the supported <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">data entities </a>.</p>",
1268+
"documentation":"<p>The name of the dataset. For <b>asc</b> name space, the name must be one of the supported data entities under <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p>",
12651269
"location":"uri",
12661270
"locationName":"name"
12671271
}
@@ -1282,7 +1286,7 @@
12821286
},
12831287
"namespace":{
12841288
"shape":"DataLakeDatasetNamespace",
1285-
"documentation":"<p>The namespace of deleted dataset.</p>"
1289+
"documentation":"<p>The name space of deleted dataset.</p>"
12861290
},
12871291
"name":{
12881292
"shape":"DataLakeDatasetName",
@@ -1556,7 +1560,7 @@
15561560
},
15571561
"InstanceWebAppDnsDomain":{
15581562
"type":"string",
1559-
"pattern":"[A-Za-z0-9]+(.[A-Za-z0-9]+)+"
1563+
"pattern":"(?![-])[a-zA-Z0-9-]{1,62}[a-zA-Z0-9]"
15601564
},
15611565
"InternalServerException":{
15621566
"type":"structure",
@@ -1630,7 +1634,7 @@
16301634
},
16311635
"namespace":{
16321636
"shape":"DataLakeDatasetNamespace",
1633-
"documentation":"<p>The namespace of the dataset. The available values are:</p> <ul> <li> <p>asc: for <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\"> AWS Supply Chain supported datasets </a>.</p> </li> <li> <p>default: for datasets with custom user-defined schemas.</p> </li> </ul>",
1637+
"documentation":"<p>The name space of the dataset. The available values are:</p> <ul> <li> <p> <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.</p> </li> <li> <p> <b>default</b> - For datasets with custom user-defined schemas.</p> </li> </ul>",
16341638
"location":"uri",
16351639
"locationName":"namespace"
16361640
},
@@ -1772,7 +1776,7 @@
17721776
},
17731777
"data":{
17741778
"shape":"DataIntegrationEventData",
1775-
"documentation":"<p>The data payload of the event. For more information on the data schema to use, see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">Data entities supported in AWS Supply Chain </a>.</p>"
1779+
"documentation":"<p>The data payload of the event. For more information on the data schema to use, see <a href=\"https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html\">Data entities supported in AWS Supply Chain</a>.</p>"
17761780
},
17771781
"eventGroupId":{
17781782
"shape":"DataIntegrationEventGroupId",

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
<max>2048</max>
9393
<pattern>arn:[a-z0-9][-.a-z0-9]{0,62}:kms:([a-z0-9][-.a-z0-9]{0,62})?:([a-z0-9][-.a-z0-9]{0,62})?:key/.{0,1019}</pattern>
9494
</property-value-rule>
95+
<property-value-rule>
96+
<property>Amazon.SupplyChain.Model.CreateInstanceRequest.WebAppDnsDomain</property>
97+
<pattern>(?![-])[a-zA-Z0-9-]{1,62}[a-zA-Z0-9]</pattern>
98+
</property-value-rule>
9599
<property-value-rule>
96100
<property>Amazon.SupplyChain.Model.DeleteDataIntegrationFlowRequest.InstanceId</property>
97101
<min>36</min>
@@ -514,6 +518,6 @@
514518
</property-value-rule>
515519
<property-value-rule>
516520
<property>Amazon.SupplyChain.Model.Instance.WebAppDnsDomain</property>
517-
<pattern>[A-Za-z0-9]+(.[A-Za-z0-9]+)+</pattern>
521+
<pattern>(?![-])[a-zA-Z0-9-]{1,62}[a-zA-Z0-9]</pattern>
518522
</property-value-rule>
519523
</property-value-rules>

sdk/src/Services/SupplyChain/Generated/Model/CreateDataLakeDatasetRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ internal bool IsSetNamespace()
135135
/// Gets and sets the property Schema.
136136
/// <para>
137137
/// The custom schema of the data lake dataset and is only required when the name space
138-
/// is <i>default</i>.
138+
/// is <b>default</b>.
139139
/// </para>
140140
/// </summary>
141141
public DataLakeDatasetSchema Schema

sdk/src/Services/SupplyChain/Generated/Model/CreateInstanceRequest.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public partial class CreateInstanceRequest : AmazonSupplyChainRequest
5353
private string _instanceName;
5454
private string _kmsKeyArn;
5555
private Dictionary<string, string> _tags = AWSConfigs.InitializeCollections ? new Dictionary<string, string>() : null;
56+
private string _webAppDnsDomain;
5657

5758
/// <summary>
5859
/// Gets and sets the property ClientToken.
@@ -152,5 +153,25 @@ internal bool IsSetTags()
152153
return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections);
153154
}
154155

156+
/// <summary>
157+
/// Gets and sets the property WebAppDnsDomain.
158+
/// <para>
159+
/// The DNS subdomain of the web app. This would be "example" in the URL "example.scn.global.on.aws".
160+
/// You can set this to a custom value, as long as the domain isn't already being used
161+
/// by someone else. The name may only include alphanumeric characters and hyphens.
162+
/// </para>
163+
/// </summary>
164+
public string WebAppDnsDomain
165+
{
166+
get { return this._webAppDnsDomain; }
167+
set { this._webAppDnsDomain = value; }
168+
}
169+
170+
// Check to see if WebAppDnsDomain property is set
171+
internal bool IsSetWebAppDnsDomain()
172+
{
173+
return this._webAppDnsDomain != null;
174+
}
175+
155176
}
156177
}

sdk/src/Services/SupplyChain/Generated/Model/DeleteDataLakeDatasetRequest.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ internal bool IsSetInstanceId()
6363
/// <summary>
6464
/// Gets and sets the property Name.
6565
/// <para>
66-
/// The name of the dataset. If the namespace is <i>asc</i>, the name must be one of the
67-
/// supported <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html">data
68-
/// entities </a>.
66+
/// The name of the dataset. For <b>asc</b> name space, the name must be one of the supported
67+
/// data entities under <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.
6968
/// </para>
7069
/// </summary>
7170
[AWSProperty(Required=true, Min=1, Max=75)]
@@ -84,16 +83,16 @@ internal bool IsSetName()
8483
/// <summary>
8584
/// Gets and sets the property Namespace.
8685
/// <para>
87-
/// The namespace of the dataset. The available values are:
86+
/// The name space of the dataset. The available values are:
8887
/// </para>
8988
/// <ul> <li>
9089
/// <para>
91-
/// asc: for <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html">
92-
/// AWS Supply Chain supported datasets </a>.
90+
/// <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets
91+
/// see <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.
9392
/// </para>
9493
/// </li> <li>
9594
/// <para>
96-
/// default: for datasets with custom user-defined schemas.
95+
/// <b>default</b> - For datasets with custom user-defined schemas.
9796
/// </para>
9897
/// </li> </ul>
9998
/// </summary>

sdk/src/Services/SupplyChain/Generated/Model/DeleteDataLakeDatasetResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ internal bool IsSetName()
7979
/// <summary>
8080
/// Gets and sets the property Namespace.
8181
/// <para>
82-
/// The namespace of deleted dataset.
82+
/// The name space of deleted dataset.
8383
/// </para>
8484
/// </summary>
8585
[AWSProperty(Required=true, Min=1, Max=50)]

sdk/src/Services/SupplyChain/Generated/Model/Internal/MarshallTransformations/CreateInstanceRequestMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ public IRequest Marshall(CreateInstanceRequest publicRequest)
110110
context.Writer.WriteObjectEnd();
111111
}
112112

113+
if(publicRequest.IsSetWebAppDnsDomain())
114+
{
115+
context.Writer.WritePropertyName("webAppDnsDomain");
116+
context.Writer.Write(publicRequest.WebAppDnsDomain);
117+
}
118+
113119
writer.WriteObjectEnd();
114120
string snippet = stringWriter.ToString();
115121
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);

sdk/src/Services/SupplyChain/Generated/Model/ListDataLakeDatasetsRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ internal bool IsSetMaxResults()
8383
/// <summary>
8484
/// Gets and sets the property Namespace.
8585
/// <para>
86-
/// The namespace of the dataset. The available values are:
86+
/// The name space of the dataset. The available values are:
8787
/// </para>
8888
/// <ul> <li>
8989
/// <para>
90-
/// asc: for <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html">
91-
/// AWS Supply Chain supported datasets </a>.
90+
/// <b>asc</b> - For information on the Amazon Web Services Supply Chain supported datasets
91+
/// see <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html">https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html</a>.
9292
/// </para>
9393
/// </li> <li>
9494
/// <para>
95-
/// default: for datasets with custom user-defined schemas.
95+
/// <b>default</b> - For datasets with custom user-defined schemas.
9696
/// </para>
9797
/// </li> </ul>
9898
/// </summary>

0 commit comments

Comments
 (0)