Skip to content

Commit

Permalink
Resilient service followup items: tests, metadata, specification, and…
Browse files Browse the repository at this point in the history
… more!
  • Loading branch information
Laren-AWS committed Sep 18, 2023
1 parent d4aa2a7 commit 1dba6fb
Show file tree
Hide file tree
Showing 40 changed files with 2,763 additions and 120 deletions.
33 changes: 30 additions & 3 deletions .doc_gen/metadata/auto-scaling_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ auto-scaling_Hello:
- description:
snippet_tags:
- php.example_code.auto-scaling.basics.helloService
Python:
versions:
- sdk_version: 3
github: python/example_code/auto-scaling
excerpts:
- description:
snippet_tags:
- python.example_code.auto-scaling.Hello
Rust:
versions:
- sdk_version: 1
Expand Down Expand Up @@ -154,10 +162,11 @@ auto-scaling_DeleteAutoScalingGroup:
- sdk_version: 3
github: python/example_code/auto-scaling
excerpts:
- description:
- description: Update the minimum size of an Auto Scaling group to zero, terminate all
instances in the group, and delete the group.
snippet_tags:
- python.example_code.auto-scaling.AutoScalingWrapper.decl
- python.example_code.auto-scaling.DeleteAutoScalingGroup
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.auto-scaling.DeleteAutoScalingGroup
Rust:
versions:
- sdk_version: 1
Expand Down Expand Up @@ -685,6 +694,24 @@ auto-scaling_DisableMetricsCollection:
- cpp.example_code.autoscaling.disable_metrics_collection2
services:
auto-scaling: {DisableMetricsCollection}
auto-scaling_AttachLoadBalancerTargetGroups:
title: Attach an ELB target group to an &AS; group using an &AWS; SDK
title_abbrev: Attach an ELB target group to an Auto Scaling group
synopsis: attach an ELB target group to an &AS; group.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/auto-scaling
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.auto-scaling.AttachLoadBalancerTargetGroups
services:
auto-scaling: {AttachLoadBalancerTargetGroups}
auto-scaling_Scenario_GroupsAndInstances:
title: Manage &AS; groups and instances using an &AWS; SDK
title_abbrev: Manage groups and instances
Expand Down
7 changes: 4 additions & 3 deletions .doc_gen/metadata/cross_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,9 @@ cross_ResilientService:
- sdk_version: 3
github: python/cross_service/resilient_service
excerpts:
- description: Run the interactive scenario at a command prompt.
snippet_tags:
- python.example_code.workflow.ResilientService_Runner
- description: Create a class that wraps &AS; and &EC2; actions.
snippet_tags:
- python.example_code.workflow.ResilientService_AutoScaler
Expand All @@ -646,9 +649,6 @@ cross_ResilientService:
- description: Create a class that wraps &SYS; actions.
snippet_tags:
- python.example_code.workflow.ResilientService_ParameterHelper
- description: Run the interactive scenario at a command prompt.
snippet_tags:
- python.example_code.workflow.ResilientService_Runner
services:
auto-scaling: {
CreateAutoScalingGroup, DescribeAutoScalingGroups, TerminateInstanceInAutoScalingGroup,
Expand All @@ -661,3 +661,4 @@ cross_ResilientService:
elastic-load-balancing-v2: {
DescribeLoadBalancers, CreateTargetGroup, DescribeTargetGroups, DeleteTargetGroup,
CreateLoadBalancer, CreateListener, DeleteLoadBalancer, DescribeTargetHealth}
iam: {CreateInstanceProfile, DeleteInstanceProfile}
130 changes: 130 additions & 0 deletions .doc_gen/metadata/ec2_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,15 @@ ec2_RebootInstances:
- description:
snippet_tags:
- ec2.cpp.reboot_instance.code
Python:
versions:
- sdk_version: 3
github: python/example_code/ec2
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.ec2.ReplaceIamInstanceProfileAssociation
services:
ec2: {RebootInstances}
ec2_DescribeImages:
Expand Down Expand Up @@ -1615,6 +1624,15 @@ ec2_DescribeAvailabilityZones:
snippet_tags:
- cpp.example_code.ec2.describe_regions.client
- ec2.cpp.describe_zones.code
Python:
versions:
- sdk_version: 3
github: python/example_code/ec2
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.ec2.DescribeAvailabilityZones
services:
ec2: {DescribeAvailabilityZones}
ec2_CreateTags:
Expand Down Expand Up @@ -1689,6 +1707,118 @@ ec2_createVpc:
services:
ec2:
{CreateVpc}
ec2_DescribeIamInstanceProfileAssociations:
title: Get data about the instance profile associated with an &EC2; instance using an &AWS; SDK
title_abbrev: Get data about the instance profile associated with an instance
synopsis: get data about the instance profile associated with an &EC2; instance.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/ec2
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.ec2.DescribeIamInstanceProfileAssociations
services:
ec2: {DescribeIamInstanceProfileAssociations}
ec2_ReplaceIamInstanceProfileAssociation:
title: Replace the instance profile associated with an &EC2; instance using an &AWS; SDK
title_abbrev: Replace the instance profile associated with an instance
synopsis: replace the instance profile associated with an &EC2; instance.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/ec2
sdkguide:
excerpts:
- description: This example replaces the instance profile of a running instance,

reboots the instance, and sends a command to the instance after it starts.
snippet_tags:
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.ec2.ReplaceIamInstanceProfileAssociation
services:
ec2: {ReplaceIamInstanceProfileAssociation}
ec2_CreateLaunchTemplate:
title: Create an &EC2; launch template using an &AWS; SDK
title_abbrev: Create a launch template
synopsis: create an &EC2; launch template.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/ec2
sdkguide:
excerpts:
- description: This example creates a launch template that includes an instance profile
that grants specific permissions to the instance, and a user data Bash script that runs on the instance after it starts.

snippet_tags:
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.ec2.CreateLaunchTemplate
services:
ec2: {CreateLaunchTemplate}
ec2_DeleteLaunchTemplate:
title: Delete an &EC2; launch template using an &AWS; SDK
title_abbrev: Delete a launch template
synopsis: delete an &EC2; launch template.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/ec2
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.ec2.DeleteLaunchTemplate
services:
ec2: {DeleteLaunchTemplate}
ec2_DescribeVpcs:
title: Get the default VPC using an &AWS; SDK
title_abbrev: Get the default VPC
synopsis: get the default VPC of the current account.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/ec2
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.ec2.DescribeVpcs
services:
ec2: {DescribeVpcs}
ec2_DescribeSubnets:
title: Get the default subnets for a VPC using an &AWS; SDK
title_abbrev: Get the default subnets for a VPC
synopsis: get the default subnets for a VPC.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/ec2
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.AutoScaler.decl
- python.cross_service.resilient_service.ec2.DescribeSubnets
services:
ec2: {DescribeSubnets}
ec2_Scenario_GetStartedInstances:
title: Get started with &EC2; instances using an &AWS; SDK
title_abbrev: Get started with instances
Expand Down
143 changes: 143 additions & 0 deletions .doc_gen/metadata/elastic-load-balancing-v2_metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
elastic-load-balancing-v2_Hello:
title: Hello &ELB;
title_abbrev: Hello &ELB;
synopsis: get started using &ELB;.
category: Hello
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/elastic-load-balancing
sdkguide:
excerpts:
- description:
snippet_tags:
- python.example_code.elbv2.Hello
services:
elastic-load-balancing-v2: {DescribeLoadBalancers}
elastic-load-balancing-v2_DescribeLoadBalancers:
title: Get the endpoint of an ELB load balancer using an &AWS; SDK
title_abbrev: Get the endpoint of a load balancer
synopsis: get the endpoint of an ELB load balancer.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/elastic-load-balancing
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.LoadBalancer.decl
- python.cross_service.resilient_service.elbv2.DescribeLoadBalancers
services:
elastic-load-balancing-v2: {DescribeLoadBalancers}
elastic-load-balancing-v2_CreateTargetGroup:
title: Create an ELB target group using an &AWS; SDK
title_abbrev: Create a target group
synopsis: create an ELB target group.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/elastic-load-balancing
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.LoadBalancer.decl
- python.cross_service.resilient_service.elbv2.CreateTargetGroup
services:
elastic-load-balancing-v2: {CreateTargetGroup}
elastic-load-balancing-v2_DeleteTargetGroup:
title: Delete an ELB target group using an &AWS; SDK
title_abbrev: Delete a target group
synopsis: delete an ELB target group.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/elastic-load-balancing
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.LoadBalancer.decl
- python.cross_service.resilient_service.elbv2.DeleteTargetGroup
services:
elastic-load-balancing-v2: {DeleteTargetGroup}
elastic-load-balancing-v2_CreateLoadBalancer:
title: Create an ELB Application Load Balancer using an &AWS; SDK
title_abbrev: Create an Application Load Balancer
synopsis: create an ELB Application Load Balancer.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/elastic-load-balancing
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.LoadBalancer.decl
- python.cross_service.resilient_service.elbv2.CreateLoadBalancer
services:
elastic-load-balancing-v2: {CreateLoadBalancer}
elastic-load-balancing-v2_CreateListener:
title: Create a listener for an ELB load balancer using an &AWS; SDK
title_abbrev: Create a listener for a load balancer
synopsis: create a listener that forwards requests from an ELB load balancer to a target group.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/elastic-load-balancing
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.LoadBalancer.decl
- python.cross_service.resilient_service.elbv2.CreateListener
services:
elastic-load-balancing-v2: {CreateListener}
elastic-load-balancing-v2_DeleteLoadBalancer:
title: Delete an ELB load balancer using an &AWS; SDK
title_abbrev: Delete a load balancer
synopsis: delete an ELB load balancer.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/elastic-load-balancing
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.LoadBalancer.decl
- python.cross_service.resilient_service.elbv2.DeleteLoadBalancer
services:
elastic-load-balancing-v2: {DeleteLoadBalancer}
elastic-load-balancing-v2_DescribeTargetHealth:
title: Get the health of an ELB target group using an &AWS; SDK
title_abbrev: Get the health of a target group
synopsis: get the health of instances in an ELB target group.
category:
languages:
Python:
versions:
- sdk_version: 3
github: python/example_code/elastic-load-balancing
sdkguide:
excerpts:
- description:
snippet_tags:
- python.cross_service.resilient_service.LoadBalancer.decl
- python.cross_service.resilient_service.elbv2.DescribeTargetHealth
services:
elastic-load-balancing-v2: {DescribeTargetHealth}
Loading

0 comments on commit 1dba6fb

Please sign in to comment.