Skip to content

Commit 526d741

Browse files
committed
SoS Tags in place
1 parent f35e13f commit 526d741

File tree

3 files changed

+287
-70
lines changed

3 files changed

+287
-70
lines changed

.doc_gen/metadata/ec2_metadata.yaml

Lines changed: 149 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,15 @@ ec2_CreateKeyPair:
198198
- description: A function that calls the create_key impl and securely saves the PEM private key.
199199
snippet_tags:
200200
- ec2.rust.create_key.wrapper
201+
Swift:
202+
versions:
203+
- sdk_version: 1
204+
github: swift/example_code/ec2
205+
excerpts:
206+
- description:
207+
snippet_tags:
208+
- swift.ec2.import
209+
- swift.ec2.CreateKeyPair
201210
services:
202211
ec2: {CreateKeyPair}
203212
ec2_DescribeKeyPairs:
@@ -284,6 +293,15 @@ ec2_DescribeKeyPairs:
284293
excerpts:
285294
- snippet_tags:
286295
- ec2.rust.list_keys.impl
296+
Swift:
297+
versions:
298+
- sdk_version: 1
299+
github: swift/example_code/ec2
300+
excerpts:
301+
- description:
302+
snippet_tags:
303+
- swift.ec2.import
304+
- swift.ec2.DescribeKeyPairs
287305
services:
288306
ec2: {DescribeKeyPairs}
289307

@@ -380,6 +398,15 @@ ec2_CreateSecurityGroup:
380398
excerpts:
381399
- snippet_tags:
382400
- ec2.rust.create_security_group.impl
401+
Swift:
402+
versions:
403+
- sdk_version: 1
404+
github: swift/example_code/ec2
405+
excerpts:
406+
- description:
407+
snippet_tags:
408+
- swift.ec2.import
409+
- swift.ec2.CreateSecurityGroup
383410
services:
384411
ec2: {CreateSecurityGroup}
385412
ec2_RunInstances:
@@ -467,6 +494,15 @@ ec2_RunInstances:
467494
excerpts:
468495
- snippet_tags:
469496
- ec2.rust.create_instance.impl
497+
Swift:
498+
versions:
499+
- sdk_version: 1
500+
github: swift/example_code/ec2
501+
excerpts:
502+
- description:
503+
snippet_tags:
504+
- swift.ec2.import
505+
- swift.ec2.RunInstances
470506
services:
471507
ec2: {RunInstances}
472508
ec2_StartInstances:
@@ -567,6 +603,15 @@ ec2_StartInstances:
567603
snippet_tags:
568604
- aws-cli.bash-linux.ec2.errecho
569605
- aws-cli.bash-linux.ec2.aws_cli_error_log
606+
Swift:
607+
versions:
608+
- sdk_version: 1
609+
github: swift/example_code/ec2
610+
excerpts:
611+
- description:
612+
snippet_tags:
613+
- swift.ec2.import
614+
- swift.ec2.StartInstances
570615
services:
571616
ec2: {StartInstances}
572617
ec2_StopInstances:
@@ -666,6 +711,15 @@ ec2_StopInstances:
666711
snippet_tags:
667712
- aws-cli.bash-linux.ec2.errecho
668713
- aws-cli.bash-linux.ec2.aws_cli_error_log
714+
Swift:
715+
versions:
716+
- sdk_version: 1
717+
github: swift/example_code/ec2
718+
excerpts:
719+
- description:
720+
snippet_tags:
721+
- swift.ec2.import
722+
- swift.ec2.StopInstances
669723
services:
670724
ec2: {StopInstances}
671725
ec2_AllocateAddress:
@@ -762,6 +816,15 @@ ec2_AllocateAddress:
762816
excerpts:
763817
- snippet_tags:
764818
- ec2.rust.allocate_address.impl
819+
Swift:
820+
versions:
821+
- sdk_version: 1
822+
github: swift/example_code/ec2
823+
excerpts:
824+
- description:
825+
snippet_tags:
826+
- swift.ec2.import
827+
- swift.ec2.AllocateAddress
765828
services:
766829
ec2: {AllocateAddress}
767830
ec2_AssociateAddress:
@@ -858,6 +921,15 @@ ec2_AssociateAddress:
858921
excerpts:
859922
- snippet_tags:
860923
- ec2.rust.associate_address.impl
924+
Swift:
925+
versions:
926+
- sdk_version: 1
927+
github: swift/example_code/ec2
928+
excerpts:
929+
- description:
930+
snippet_tags:
931+
- swift.ec2.import
932+
- swift.ec2.AssociateAddress
861933
services:
862934
ec2: {AssociateAddress}
863935
ec2_DisassociateAddress:
@@ -928,6 +1000,15 @@ ec2_DisassociateAddress:
9281000
excerpts:
9291001
- snippet_tags:
9301002
- ec2.rust.disassociate_address.impl
1003+
Swift:
1004+
versions:
1005+
- sdk_version: 1
1006+
github: swift/example_code/ec2
1007+
excerpts:
1008+
- description:
1009+
snippet_tags:
1010+
- swift.ec2.import
1011+
- swift.ec2.DisassociateAddress
9311012
services:
9321013
ec2: {DisassociateAddress}
9331014
ec2_ReleaseAddress:
@@ -1023,6 +1104,15 @@ ec2_ReleaseAddress:
10231104
excerpts:
10241105
- snippet_tags:
10251106
- ec2.rust.deallocate_address.impl
1107+
Swift:
1108+
versions:
1109+
- sdk_version: 1
1110+
github: swift/example_code/ec2
1111+
excerpts:
1112+
- description:
1113+
snippet_tags:
1114+
- swift.ec2.import
1115+
- swift.ec2.ReleaseAddress
10261116
services:
10271117
ec2: {ReleaseAddress}
10281118
ec2_AuthorizeSecurityGroupIngress:
@@ -1104,6 +1194,15 @@ ec2_AuthorizeSecurityGroupIngress:
11041194
excerpts:
11051195
- snippet_tags:
11061196
- ec2.rust.authorize_security_group_ssh_ingress.impl
1197+
Swift:
1198+
versions:
1199+
- sdk_version: 1
1200+
github: swift/example_code/ec2
1201+
excerpts:
1202+
- description:
1203+
snippet_tags:
1204+
- swift.ec2.import
1205+
- swift.ec2.AuthorizeSecurityGroupIngress
11071206
services:
11081207
ec2: {AuthorizeSecurityGroupIngress}
11091208
ec2_DeleteKeyPair:
@@ -1193,6 +1292,15 @@ ec2_DeleteKeyPair:
11931292
- ec2.rust.delete_key.wrapper
11941293
- snippet_tags:
11951294
- ec2.rust.delete_key.impl
1295+
Swift:
1296+
versions:
1297+
- sdk_version: 1
1298+
github: swift/example_code/ec2
1299+
excerpts:
1300+
- description:
1301+
snippet_tags:
1302+
- swift.ec2.import
1303+
- swift.ec2.DeleteKeyPair
11961304
services:
11971305
ec2: {DeleteKeyPair}
11981306
ec2_DescribeSecurityGroups:
@@ -1284,10 +1392,14 @@ ec2_DescribeSecurityGroups:
12841392
- sdk_version: 1
12851393
github: swift/example_code/ec2
12861394
excerpts:
1287-
- description:
1395+
- description: Using pagination with <code>describeSecurityGroupsPaginated()</code>.
12881396
snippet_tags:
12891397
- swift.ec2.import
12901398
- swift.ec2.DescribeSecurityGroupsPaginated
1399+
- description: Without pagination.
1400+
snippet_tags:
1401+
- swift.ec2.import
1402+
- swift.ec2.DescribeSecurityGroups
12911403
services:
12921404
ec2: {DescribeSecurityGroups}
12931405
ec2_DeleteSecurityGroup:
@@ -1374,6 +1486,15 @@ ec2_DeleteSecurityGroup:
13741486
excerpts:
13751487
- snippet_tags:
13761488
- ec2.rust.delete_security_group.impl
1489+
Swift:
1490+
versions:
1491+
- sdk_version: 1
1492+
github: swift/example_code/ec2
1493+
excerpts:
1494+
- description:
1495+
snippet_tags:
1496+
- swift.ec2.import
1497+
- swift.ec2.DeleteSecurityGroup
13771498
services:
13781499
ec2: {DeleteSecurityGroup}
13791500
ec2_DeleteSnapshot:
@@ -1492,6 +1613,15 @@ ec2_TerminateInstances:
14921613
- description: Wait for an instance to be in the terminted state, using the Waiters API. Using the Waiters API requires `use aws_sdk_ec2::client::Waiters` in the rust file.
14931614
snippet_tags:
14941615
- ec2.rust.wait_for_instance_terminated.impl
1616+
Swift:
1617+
versions:
1618+
- sdk_version: 1
1619+
github: swift/example_code/ec2
1620+
excerpts:
1621+
- description:
1622+
snippet_tags:
1623+
- swift.ec2.import
1624+
- swift.ec2.TerminateInstances
14951625
services:
14961626
ec2: {TerminateInstances}
14971627
ec2_DescribeInstances:
@@ -1826,6 +1956,15 @@ ec2_DescribeImages:
18261956
snippet_tags:
18271957
- aws-cli.bash-linux.ec2.errecho
18281958
- aws-cli.bash-linux.ec2.aws_cli_error_log
1959+
Swift:
1960+
versions:
1961+
- sdk_version: 1
1962+
github: swift/example_code/ec2
1963+
excerpts:
1964+
- description:
1965+
snippet_tags:
1966+
- swift.ec2.import
1967+
- swift.ec2.DescribeImages
18291968
services:
18301969
ec2: {DescribeImages}
18311970
ec2_DescribeInstanceTypes:
@@ -1896,6 +2035,15 @@ ec2_DescribeInstanceTypes:
18962035
excerpts:
18972036
- snippet_tags:
18982037
- ec2.rust.list_instance_types.impl
2038+
Swift:
2039+
versions:
2040+
- sdk_version: 1
2041+
github: swift/example_code/ec2
2042+
excerpts:
2043+
- description:
2044+
snippet_tags:
2045+
- swift.ec2.import
2046+
- swift.ec2.DescribeInstanceTypes
18992047
services:
19002048
ec2: {DescribeInstanceTypes}
19012049
ec2_DescribeAddresses:

swift/example_code/ec2/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,30 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `swift
3131

3232
### Get started
3333

34-
- [Hello Amazon EC2](hello/Package.swift#L8) (`DescribeSecurityGroups`)
34+
- [Hello Amazon EC2](scenario/Package.swift#L8) (`DescribeSecurityGroups`)
3535

3636

3737
### Single actions
3838

3939
Code excerpts that show you how to call individual service functions.
4040

41+
- [AllocateAddress](scenario/Sources/entry.swift#L1015)
42+
- [AssociateAddress](scenario/Sources/entry.swift#L1039)
43+
- [AuthorizeSecurityGroupIngress](scenario/Sources/entry.swift#L928)
44+
- [CreateKeyPair](scenario/Sources/entry.swift#L410)
45+
- [CreateSecurityGroup](scenario/Sources/entry.swift#L903)
46+
- [DeleteKeyPair](scenario/Sources/entry.swift#L469)
47+
- [DeleteSecurityGroup](scenario/Sources/entry.swift#L993)
48+
- [DescribeImages](scenario/Sources/entry.swift#L809)
49+
- [DescribeInstanceTypes](scenario/Sources/entry.swift#L537)
50+
- [DescribeKeyPairs](scenario/Sources/entry.swift#L446)
4151
- [DescribeSecurityGroups](hello/Sources/entry.swift#L44)
52+
- [DisassociateAddress](scenario/Sources/entry.swift#L1065)
53+
- [ReleaseAddress](scenario/Sources/entry.swift#L1082)
54+
- [RunInstances](scenario/Sources/entry.swift#L845)
55+
- [StartInstances](scenario/Sources/entry.swift#L711)
56+
- [StopInstances](scenario/Sources/entry.swift#L661)
57+
- [TerminateInstances](scenario/Sources/entry.swift#L760)
4258

4359

4460
<!--custom.examples.start-->

0 commit comments

Comments
 (0)