Skip to content

Commit 8aeaf0b

Browse files
Merge branch 'main' into gcbeatty/dotnetv4s3
2 parents 6e21ff3 + 9092c28 commit 8aeaf0b

File tree

19 files changed

+2429
-149
lines changed

19 files changed

+2429
-149
lines changed

.doc_gen/metadata/cloudfront_metadata.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,56 @@ cloudfront_CreateDistribution:
8080
- cloudfront.java2.createdistribution.main
8181
services:
8282
cloudfront: {CreateDistribution}
83+
cloudfront_CreateSaasResources:
84+
title: Create SaaS manager resources &AWS; SDK
85+
title_abbrev: Create a multi-tenant distribution and distribution tenant
86+
synopsis: create a multi-tenant distribution and distribution tenant with various configurations.
87+
category: Scenarios
88+
languages:
89+
Java:
90+
versions:
91+
- sdk_version: 2
92+
github: javav2/example_code/cloudfront
93+
sdkguide:
94+
excerpts:
95+
- description: >-
96+
The following example demonstrates how to create a multi-tenant distribution with parameters and wildcard certificate.
97+
snippet_tags:
98+
- cloudfront.java2.createmultitenantdistribution.import
99+
- cloudfront.java2.createmultitenantdistribution.main
100+
- description: >-
101+
The following example demonstrates how to create a distribution tenant associated with that template, including utilizing the parameter we declared above. Note that we don't need to add certificate info here because our domain is already covered by the parent template.
102+
snippet_tags:
103+
- cloudfront.java2.createdistributiontenant.import
104+
- cloudfront.java2.createdistributiontenant.title
105+
- cloudfront.java2.createdistributiontenant.nocert
106+
- cloudfront.java2.createdistributiontenant.closebrace
107+
- description: >-
108+
If the viewer certificate was omitted from the parent template, you would need to add certificate info on the tenant(s) associated with it instead.
109+
The following example demonstrates how to do so via an ACM certificate arn that covers the necessary domain for the tenant.
110+
snippet_tags:
111+
- cloudfront.java2.createdistributiontenant.import
112+
- cloudfront.java2.createdistributiontenant.title
113+
- cloudfront.java2.createdistributiontenant.withcert
114+
- cloudfront.java2.createdistributiontenant.closebrace
115+
- description: >-
116+
The following example demonstrates how to do so with a CloudFront-hosted managed certificate request. This is ideal if you don't already have traffic towards your domain.
117+
In this case, we create a ConnectionGroup to generate a RoutingEndpoint. Then we use that RoutingEndpoint to create DNS records which verify domain ownership and point to CloudFront. CloudFront will then automatically serve a token to validate domain ownership and create a managed certificate.
118+
snippet_tags:
119+
- cloudfront.java2.createdistributiontenant.import
120+
- cloudfront.java2.createdistributiontenant.title
121+
- cloudfront.java2.createdistributiontenant.cfhosted
122+
- cloudfront.java2.createdistributiontenant.closebrace
123+
- description: >-
124+
The following example demonstrates how to do so with a self-hosted managed certificate request. This is ideal if you have traffic towards your domain and can't tolerate downtime during a migration.
125+
At the end of this example, the Tenant will be created in a state awaiting domain validation and DNS setup. Follow steps [here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managed-cloudfront-certificates.html#complete-domain-ownership) to complete setup when you are ready to migrate traffic.
126+
snippet_tags:
127+
- cloudfront.java2.createdistributiontenant.import
128+
- cloudfront.java2.createdistributiontenant.title
129+
- cloudfront.java2.createdistributiontenant.selfhosted
130+
- cloudfront.java2.createdistributiontenant.closebrace
131+
services:
132+
cloudfront: {CreateDistribution, CreateDistributionTenant}
83133
cloudfront_CreateKeyGroup:
84134
languages:
85135
Java:

.doc_gen/metadata/ec2_metadata.yaml

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ ec2_Hello:
7676
excerpts:
7777
- snippet_tags:
7878
- ec2.rust.ec2-helloworld
79+
Swift:
80+
versions:
81+
- sdk_version: 1
82+
github: swift/example_code/ec2
83+
excerpts:
84+
- description: The <filename>Package.swift</filename> file.
85+
snippet_tags:
86+
- swift.ec2.hello.package
87+
- description: The <filename>entry.swift</filename> file.
88+
snippet_tags:
89+
- swift.ec2.hello
7990
services:
8091
ec2: {DescribeSecurityGroups}
8192
ec2_GetPasswordData:
@@ -188,6 +199,15 @@ ec2_CreateKeyPair:
188199
- description: A function that calls the create_key impl and securely saves the PEM private key.
189200
snippet_tags:
190201
- ec2.rust.create_key.wrapper
202+
Swift:
203+
versions:
204+
- sdk_version: 1
205+
github: swift/example_code/ec2
206+
excerpts:
207+
- description:
208+
snippet_tags:
209+
- swift.ec2.import
210+
- swift.ec2.CreateKeyPair
191211
services:
192212
ec2: {CreateKeyPair}
193213
ec2_DescribeKeyPairs:
@@ -274,6 +294,15 @@ ec2_DescribeKeyPairs:
274294
excerpts:
275295
- snippet_tags:
276296
- ec2.rust.list_keys.impl
297+
Swift:
298+
versions:
299+
- sdk_version: 1
300+
github: swift/example_code/ec2
301+
excerpts:
302+
- description:
303+
snippet_tags:
304+
- swift.ec2.import
305+
- swift.ec2.DescribeKeyPairs
277306
services:
278307
ec2: {DescribeKeyPairs}
279308

@@ -370,6 +399,15 @@ ec2_CreateSecurityGroup:
370399
excerpts:
371400
- snippet_tags:
372401
- ec2.rust.create_security_group.impl
402+
Swift:
403+
versions:
404+
- sdk_version: 1
405+
github: swift/example_code/ec2
406+
excerpts:
407+
- description:
408+
snippet_tags:
409+
- swift.ec2.import
410+
- swift.ec2.CreateSecurityGroup
373411
services:
374412
ec2: {CreateSecurityGroup}
375413
ec2_RunInstances:
@@ -457,6 +495,15 @@ ec2_RunInstances:
457495
excerpts:
458496
- snippet_tags:
459497
- ec2.rust.create_instance.impl
498+
Swift:
499+
versions:
500+
- sdk_version: 1
501+
github: swift/example_code/ec2
502+
excerpts:
503+
- description:
504+
snippet_tags:
505+
- swift.ec2.import
506+
- swift.ec2.RunInstances
460507
services:
461508
ec2: {RunInstances}
462509
ec2_StartInstances:
@@ -557,6 +604,15 @@ ec2_StartInstances:
557604
snippet_tags:
558605
- aws-cli.bash-linux.ec2.errecho
559606
- aws-cli.bash-linux.ec2.aws_cli_error_log
607+
Swift:
608+
versions:
609+
- sdk_version: 1
610+
github: swift/example_code/ec2
611+
excerpts:
612+
- description:
613+
snippet_tags:
614+
- swift.ec2.import
615+
- swift.ec2.StartInstances
560616
services:
561617
ec2: {StartInstances}
562618
ec2_StopInstances:
@@ -656,6 +712,15 @@ ec2_StopInstances:
656712
snippet_tags:
657713
- aws-cli.bash-linux.ec2.errecho
658714
- aws-cli.bash-linux.ec2.aws_cli_error_log
715+
Swift:
716+
versions:
717+
- sdk_version: 1
718+
github: swift/example_code/ec2
719+
excerpts:
720+
- description:
721+
snippet_tags:
722+
- swift.ec2.import
723+
- swift.ec2.StopInstances
659724
services:
660725
ec2: {StopInstances}
661726
ec2_AllocateAddress:
@@ -752,6 +817,15 @@ ec2_AllocateAddress:
752817
excerpts:
753818
- snippet_tags:
754819
- ec2.rust.allocate_address.impl
820+
Swift:
821+
versions:
822+
- sdk_version: 1
823+
github: swift/example_code/ec2
824+
excerpts:
825+
- description:
826+
snippet_tags:
827+
- swift.ec2.import
828+
- swift.ec2.AllocateAddress
755829
services:
756830
ec2: {AllocateAddress}
757831
ec2_AssociateAddress:
@@ -848,6 +922,15 @@ ec2_AssociateAddress:
848922
excerpts:
849923
- snippet_tags:
850924
- ec2.rust.associate_address.impl
925+
Swift:
926+
versions:
927+
- sdk_version: 1
928+
github: swift/example_code/ec2
929+
excerpts:
930+
- description:
931+
snippet_tags:
932+
- swift.ec2.import
933+
- swift.ec2.AssociateAddress
851934
services:
852935
ec2: {AssociateAddress}
853936
ec2_DisassociateAddress:
@@ -918,6 +1001,15 @@ ec2_DisassociateAddress:
9181001
excerpts:
9191002
- snippet_tags:
9201003
- ec2.rust.disassociate_address.impl
1004+
Swift:
1005+
versions:
1006+
- sdk_version: 1
1007+
github: swift/example_code/ec2
1008+
excerpts:
1009+
- description:
1010+
snippet_tags:
1011+
- swift.ec2.import
1012+
- swift.ec2.DisassociateAddress
9211013
services:
9221014
ec2: {DisassociateAddress}
9231015
ec2_ReleaseAddress:
@@ -1013,6 +1105,15 @@ ec2_ReleaseAddress:
10131105
excerpts:
10141106
- snippet_tags:
10151107
- ec2.rust.deallocate_address.impl
1108+
Swift:
1109+
versions:
1110+
- sdk_version: 1
1111+
github: swift/example_code/ec2
1112+
excerpts:
1113+
- description:
1114+
snippet_tags:
1115+
- swift.ec2.import
1116+
- swift.ec2.ReleaseAddress
10161117
services:
10171118
ec2: {ReleaseAddress}
10181119
ec2_AuthorizeSecurityGroupIngress:
@@ -1094,6 +1195,15 @@ ec2_AuthorizeSecurityGroupIngress:
10941195
excerpts:
10951196
- snippet_tags:
10961197
- ec2.rust.authorize_security_group_ssh_ingress.impl
1198+
Swift:
1199+
versions:
1200+
- sdk_version: 1
1201+
github: swift/example_code/ec2
1202+
excerpts:
1203+
- description:
1204+
snippet_tags:
1205+
- swift.ec2.import
1206+
- swift.ec2.AuthorizeSecurityGroupIngress
10971207
services:
10981208
ec2: {AuthorizeSecurityGroupIngress}
10991209
ec2_DeleteKeyPair:
@@ -1183,6 +1293,15 @@ ec2_DeleteKeyPair:
11831293
- ec2.rust.delete_key.wrapper
11841294
- snippet_tags:
11851295
- ec2.rust.delete_key.impl
1296+
Swift:
1297+
versions:
1298+
- sdk_version: 1
1299+
github: swift/example_code/ec2
1300+
excerpts:
1301+
- description:
1302+
snippet_tags:
1303+
- swift.ec2.import
1304+
- swift.ec2.DeleteKeyPair
11861305
services:
11871306
ec2: {DeleteKeyPair}
11881307
ec2_DescribeSecurityGroups:
@@ -1269,6 +1388,19 @@ ec2_DescribeSecurityGroups:
12691388
excerpts:
12701389
- snippet_tags:
12711390
- ec2.rust.ec2-helloworld
1391+
Swift:
1392+
versions:
1393+
- sdk_version: 1
1394+
github: swift/example_code/ec2
1395+
excerpts:
1396+
- description: Using pagination with <code>describeSecurityGroupsPaginated()</code>.
1397+
snippet_tags:
1398+
- swift.ec2.import
1399+
- swift.ec2.DescribeSecurityGroupsPaginated
1400+
- description: Without pagination.
1401+
snippet_tags:
1402+
- swift.ec2.import
1403+
- swift.ec2.DescribeSecurityGroups
12721404
services:
12731405
ec2: {DescribeSecurityGroups}
12741406
ec2_DeleteSecurityGroup:
@@ -1355,6 +1487,15 @@ ec2_DeleteSecurityGroup:
13551487
excerpts:
13561488
- snippet_tags:
13571489
- ec2.rust.delete_security_group.impl
1490+
Swift:
1491+
versions:
1492+
- sdk_version: 1
1493+
github: swift/example_code/ec2
1494+
excerpts:
1495+
- description:
1496+
snippet_tags:
1497+
- swift.ec2.import
1498+
- swift.ec2.DeleteSecurityGroup
13581499
services:
13591500
ec2: {DeleteSecurityGroup}
13601501
ec2_DeleteSnapshot:
@@ -1473,6 +1614,15 @@ ec2_TerminateInstances:
14731614
- 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.
14741615
snippet_tags:
14751616
- ec2.rust.wait_for_instance_terminated.impl
1617+
Swift:
1618+
versions:
1619+
- sdk_version: 1
1620+
github: swift/example_code/ec2
1621+
excerpts:
1622+
- description:
1623+
snippet_tags:
1624+
- swift.ec2.import
1625+
- swift.ec2.TerminateInstances
14761626
services:
14771627
ec2: {TerminateInstances}
14781628
ec2_DescribeInstances:
@@ -1807,6 +1957,15 @@ ec2_DescribeImages:
18071957
snippet_tags:
18081958
- aws-cli.bash-linux.ec2.errecho
18091959
- aws-cli.bash-linux.ec2.aws_cli_error_log
1960+
Swift:
1961+
versions:
1962+
- sdk_version: 1
1963+
github: swift/example_code/ec2
1964+
excerpts:
1965+
- description:
1966+
snippet_tags:
1967+
- swift.ec2.import
1968+
- swift.ec2.DescribeImages
18101969
services:
18111970
ec2: {DescribeImages}
18121971
ec2_DescribeInstanceTypes:
@@ -1877,6 +2036,15 @@ ec2_DescribeInstanceTypes:
18772036
excerpts:
18782037
- snippet_tags:
18792038
- ec2.rust.list_instance_types.impl
2039+
Swift:
2040+
versions:
2041+
- sdk_version: 1
2042+
github: swift/example_code/ec2
2043+
excerpts:
2044+
- description:
2045+
snippet_tags:
2046+
- swift.ec2.import
2047+
- swift.ec2.DescribeInstanceTypes
18802048
services:
18812049
ec2: {DescribeInstanceTypes}
18822050
ec2_DescribeAddresses:
@@ -2419,6 +2587,17 @@ ec2_Scenario_GetStartedInstances:
24192587
- description: The main entry point for the scenario.
24202588
snippet_files:
24212589
- rustv1/examples/ec2/src/bin/getting-started.rs
2590+
Swift:
2591+
versions:
2592+
- sdk_version: 1
2593+
github: swift/example_code/ec2
2594+
excerpts:
2595+
- description: The <filename>Package.swift</filename> file.
2596+
snippet_tags:
2597+
- swift.ec2.scenario.package
2598+
- description: The <filename>entry.swift</filename> file.
2599+
snippet_tags:
2600+
- swift.ec2.scenario
24222601
services:
24232602
ec2:
24242603
{

0 commit comments

Comments
 (0)