Skip to content

Commit 0b3aa04

Browse files
Update API model
1 parent 98aeda2 commit 0b3aa04

11 files changed

Lines changed: 2745 additions & 185 deletions

File tree

‎tools/code-generation/smithy/api-descriptions/acm.json‎

Lines changed: 121 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,15 @@
15661566
"ACM-ACME"
15671567
]
15681568
},
1569+
{
1570+
"fn": "booleanEquals",
1571+
"argv": [
1572+
{
1573+
"ref": "UseFIPS"
1574+
},
1575+
true
1576+
]
1577+
},
15691578
{
15701579
"fn": "stringEquals",
15711580
"argv": [
@@ -1581,15 +1590,6 @@
15811590
"aws"
15821591
]
15831592
},
1584-
{
1585-
"fn": "booleanEquals",
1586-
"argv": [
1587-
{
1588-
"ref": "UseFIPS"
1589-
},
1590-
true
1591-
]
1592-
},
15931593
{
15941594
"fn": "booleanEquals",
15951595
"argv": [
@@ -1641,9 +1641,9 @@
16411641
"type": "endpoint"
16421642
},
16431643
{
1644-
"documentation": "ACME operations are only available in commercial AWS partitions",
1644+
"documentation": "ACME operations are only available in the aws and aws-us-gov partitions",
16451645
"conditions": [],
1646-
"error": "ACME operations are only available in commercial AWS partitions",
1646+
"error": "ACME operations are only available in the aws and aws-us-gov partitions",
16471647
"type": "error"
16481648
},
16491649
{
@@ -1701,8 +1701,8 @@
17011701
}
17021702
],
17031703
"root": 2,
1704-
"nodeCount": 10,
1705-
"nodes": "/////wAAAAH/////AAAAAAX14QEAAAADAAAAAQAAAAQF9eEKAAAAAgAAAAkAAAAFAAAABAAAAAcAAAAGAAAABQX14QgF9eEJAAAABQX14QUAAAAIAAAABgX14QYF9eEHAAAAAwAAAAoF9eEEAAAABAX14QIF9eED"
1704+
"nodeCount": 13,
1705+
"nodes": "/////wAAAAH/////AAAAAAX14QEAAAADAAAAAQAAAAQF9eEKAAAAAgAAAAkAAAAFAAAAAwAAAAcAAAAGAAAABQX14QgF9eEJAAAABQX14QUAAAAIAAAABgX14QYF9eEHAAAAAwAAAAwAAAAKAAAABAX14QMAAAALAAAABgX14QMF9eEEAAAABAX14QIAAAANAAAABgX14QIF9eEE"
17061706
},
17071707
"smithy.rules#endpointRuleSet": {
17081708
"version": "1.0",
@@ -1804,7 +1804,7 @@
18041804
"type": "endpoint"
18051805
},
18061806
{
1807-
"documentation": "ACME operations are only available in commercial AWS partitions",
1807+
"documentation": "ACME in the aws partition",
18081808
"conditions": [
18091809
{
18101810
"fn": "stringEquals",
@@ -1851,9 +1851,56 @@
18511851
"type": "tree"
18521852
},
18531853
{
1854-
"documentation": "ACME operations are only available in commercial AWS partitions",
1854+
"documentation": "ACME in the aws-us-gov partition",
1855+
"conditions": [
1856+
{
1857+
"fn": "stringEquals",
1858+
"argv": [
1859+
{
1860+
"fn": "getAttr",
1861+
"argv": [
1862+
{
1863+
"ref": "PartitionResult"
1864+
},
1865+
"name"
1866+
]
1867+
},
1868+
"aws-us-gov"
1869+
]
1870+
}
1871+
],
1872+
"rules": [
1873+
{
1874+
"documentation": "FIPS endpoints are not available for ACME operations",
1875+
"conditions": [
1876+
{
1877+
"fn": "booleanEquals",
1878+
"argv": [
1879+
{
1880+
"ref": "UseFIPS"
1881+
},
1882+
true
1883+
]
1884+
}
1885+
],
1886+
"error": "FIPS endpoints are not available for ACME operations",
1887+
"type": "error"
1888+
},
1889+
{
1890+
"documentation": "ACME standard",
1891+
"conditions": [],
1892+
"endpoint": {
1893+
"url": "https://acm-acme.{Region}.{PartitionResult#dualStackDnsSuffix}"
1894+
},
1895+
"type": "endpoint"
1896+
}
1897+
],
1898+
"type": "tree"
1899+
},
1900+
{
1901+
"documentation": "ACME operations are only available in the aws and aws-us-gov partitions",
18551902
"conditions": [],
1856-
"error": "ACME operations are only available in commercial AWS partitions",
1903+
"error": "ACME operations are only available in the aws and aws-us-gov partitions",
18571904
"type": "error"
18581905
}
18591906
]
@@ -2613,15 +2660,31 @@
26132660
}
26142661
},
26152662
{
2616-
"documentation": "ACM-ACME in us-gov-west-1 returns partition error",
2663+
"documentation": "ACM-ACME standard endpoint for us-gov-west-1",
26172664
"params": {
26182665
"Region": "us-gov-west-1",
26192666
"UseFIPS": false,
26202667
"UseDualStack": false,
26212668
"ServiceType": "ACM-ACME"
26222669
},
26232670
"expect": {
2624-
"error": "ACME operations are only available in commercial AWS partitions"
2671+
"endpoint": {
2672+
"url": "https://acm-acme.us-gov-west-1.api.aws"
2673+
}
2674+
}
2675+
},
2676+
{
2677+
"documentation": "ACM-ACME standard endpoint for us-gov-east-1",
2678+
"params": {
2679+
"Region": "us-gov-east-1",
2680+
"UseFIPS": false,
2681+
"UseDualStack": false,
2682+
"ServiceType": "ACM-ACME"
2683+
},
2684+
"expect": {
2685+
"endpoint": {
2686+
"url": "https://acm-acme.us-gov-east-1.api.aws"
2687+
}
26252688
}
26262689
},
26272690
{
@@ -2633,7 +2696,45 @@
26332696
"ServiceType": "ACM-ACME"
26342697
},
26352698
"expect": {
2636-
"error": "ACME operations are only available in commercial AWS partitions"
2699+
"error": "ACME operations are only available in the aws and aws-us-gov partitions"
2700+
}
2701+
},
2702+
{
2703+
"documentation": "ACM-ACME in cn-northwest-1 returns partition error",
2704+
"params": {
2705+
"Region": "cn-northwest-1",
2706+
"UseFIPS": false,
2707+
"UseDualStack": false,
2708+
"ServiceType": "ACM-ACME"
2709+
},
2710+
"expect": {
2711+
"error": "ACME operations are only available in the aws and aws-us-gov partitions"
2712+
}
2713+
},
2714+
{
2715+
"documentation": "ACM-ACME with DualStack enabled for us-gov-west-1",
2716+
"params": {
2717+
"Region": "us-gov-west-1",
2718+
"UseFIPS": false,
2719+
"UseDualStack": true,
2720+
"ServiceType": "ACM-ACME"
2721+
},
2722+
"expect": {
2723+
"endpoint": {
2724+
"url": "https://acm-acme.us-gov-west-1.api.aws"
2725+
}
2726+
}
2727+
},
2728+
{
2729+
"documentation": "ACM-ACME FIPS in us-gov-west-1 returns error",
2730+
"params": {
2731+
"Region": "us-gov-west-1",
2732+
"UseFIPS": true,
2733+
"UseDualStack": false,
2734+
"ServiceType": "ACM-ACME"
2735+
},
2736+
"expect": {
2737+
"error": "FIPS endpoints are not available for ACME operations"
26372738
}
26382739
}
26392740
]
@@ -6367,7 +6468,7 @@
63676468
"traits": {
63686469
"smithy.api#length": {
63696470
"min": 1,
6370-
"max": 5120
6471+
"max": 8192
63716472
},
63726473
"smithy.api#sensitive": {}
63736474
}

‎tools/code-generation/smithy/api-descriptions/artifact.json‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@
23172317
"supportMode": {
23182318
"target": "com.amazonaws.artifact#InquirySupportMode",
23192319
"traits": {
2320-
"smithy.api#documentation": "<p>Support mode for this inquiry. AI_ONLY provides AI-generated responses. FULL_SUPPORT includes human expert review.</p>"
2320+
"smithy.api#documentation": "<p>Support mode for this inquiry. AI_ONLY provides AI-generated responses.</p>"
23212321
}
23222322
}
23232323
},
@@ -2497,12 +2497,6 @@
24972497
"traits": {
24982498
"smithy.api#enumValue": "AI_ONLY"
24992499
}
2500-
},
2501-
"FULL_SUPPORT": {
2502-
"target": "smithy.api#Unit",
2503-
"traits": {
2504-
"smithy.api#enumValue": "FULL_SUPPORT"
2505-
}
25062500
}
25072501
}
25082502
},

‎tools/code-generation/smithy/api-descriptions/connect.json‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14964,6 +14964,12 @@
1496414964
"smithy.api#documentation": "<p>The ContactFlowId for the flow that will be run if this template is used to create a self-assigned task.</p>"
1496514965
}
1496614966
},
14967+
"ContactHooks": {
14968+
"target": "com.amazonaws.connect#TaskTemplateContactHooks",
14969+
"traits": {
14970+
"smithy.api#documentation": "<p>The event hooks that are set on tasks created by using this template.</p>"
14971+
}
14972+
},
1496714973
"Constraints": {
1496814974
"target": "com.amazonaws.connect#TaskTemplateConstraints",
1496914975
"traits": {
@@ -31917,6 +31923,12 @@
3191731923
"smithy.api#documentation": "<p>The ContactFlowId for the flow that will be run if this template is used to create a self-assigned task.</p>"
3191831924
}
3191931925
},
31926+
"ContactHooks": {
31927+
"target": "com.amazonaws.connect#TaskTemplateContactHooks",
31928+
"traits": {
31929+
"smithy.api#documentation": "<p>The event hooks that are set on tasks created by using this template.</p>"
31930+
}
31931+
},
3192031932
"Constraints": {
3192131933
"target": "com.amazonaws.connect#TaskTemplateConstraints",
3192231934
"traits": {
@@ -61249,6 +61261,20 @@
6124961261
"smithy.api#documentation": "<p>Describes constraints that apply to the template fields.</p>"
6125061262
}
6125161263
},
61264+
"com.amazonaws.connect#TaskTemplateContactHooks": {
61265+
"type": "structure",
61266+
"members": {
61267+
"WrapUpFlowId": {
61268+
"target": "com.amazonaws.connect#ContactFlowModuleId",
61269+
"traits": {
61270+
"smithy.api#documentation": "<p>The identifier of the flow module that runs when an agent attempts to disconnect from a task created by referencing this template.\nIf no agent ever connects to the task, the flow module runs when the task is terminated.</p>"
61271+
}
61272+
}
61273+
},
61274+
"traits": {
61275+
"smithy.api#documentation": "<p>The event hooks that are set on tasks created by using this template.</p>"
61276+
}
61277+
},
6125261278
"com.amazonaws.connect#TaskTemplateDefaultFieldValue": {
6125361279
"type": "structure",
6125461280
"members": {
@@ -67484,6 +67510,12 @@
6748467510
"smithy.api#documentation": "<p>The ContactFlowId for the flow that will be run if this template is used to create a self-assigned task.</p>"
6748567511
}
6748667512
},
67513+
"ContactHooks": {
67514+
"target": "com.amazonaws.connect#TaskTemplateContactHooks",
67515+
"traits": {
67516+
"smithy.api#documentation": "<p>The event hooks that are set on tasks created by using this template.</p>"
67517+
}
67518+
},
6748767519
"Constraints": {
6748867520
"target": "com.amazonaws.connect#TaskTemplateConstraints",
6748967521
"traits": {
@@ -67558,6 +67590,12 @@
6755867590
"smithy.api#documentation": "<p>The ContactFlowId for the flow that will be run if this template is used to create a self-assigned task.</p>"
6755967591
}
6756067592
},
67593+
"ContactHooks": {
67594+
"target": "com.amazonaws.connect#TaskTemplateContactHooks",
67595+
"traits": {
67596+
"smithy.api#documentation": "<p>The event hooks that are set on tasks created by using this template.</p>"
67597+
}
67598+
},
6756167599
"Constraints": {
6756267600
"target": "com.amazonaws.connect#TaskTemplateConstraints",
6756367601
"traits": {

0 commit comments

Comments
 (0)