diff --git a/.doc_gen/metadata/cloudwatch_metadata.yaml b/.doc_gen/metadata/cloudwatch_metadata.yaml index b94f561e098..249a4987b6c 100644 --- a/.doc_gen/metadata/cloudwatch_metadata.yaml +++ b/.doc_gen/metadata/cloudwatch_metadata.yaml @@ -309,6 +309,15 @@ cloudwatch_DescribeAlarmsForMetric: snippet_tags: - python.example_code.cloudwatch.CloudWatchWrapper - python.example_code.cloudwatch.DescribeAlarmsForMetric + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/cloudwatch + sdkguide: + excerpts: + - description: + snippet_tags: + - cloudwatch.Ruby.getAlarmList C++: versions: - sdk_version: 1 @@ -420,6 +429,15 @@ cloudwatch_DisableAlarmActions: snippet_tags: - python.example_code.cloudwatch.CloudWatchWrapper - python.example_code.cloudwatch.EnableAlarmActions.DisableAlarmActions + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/cloudwatch + sdkguide: + excerpts: + - description: + snippet_tags: + - cloudwatch.Ruby.disableAnAlarm SAP ABAP: versions: - sdk_version: 1 @@ -756,6 +774,15 @@ cloudwatch_ListMetrics: snippet_tags: - python.example_code.cloudwatch.CloudWatchWrapper - python.example_code.cloudwatch.ListMetrics + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/cloudwatch + sdkguide: + excerpts: + - description: + snippet_tags: + - cloudwatch.Ruby.listMetrics SAP ABAP: versions: - sdk_version: 1 @@ -911,6 +938,15 @@ cloudwatch_PutMetricAlarm: snippet_tags: - python.example_code.cloudwatch.CloudWatchWrapper - python.example_code.cloudwatch.PutMetricAlarm + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/cloudwatch + sdkguide: + excerpts: + - description: + snippet_tags: + - cloudwatch.Ruby.createAlarm SAP ABAP: versions: - sdk_version: 1 @@ -996,6 +1032,15 @@ cloudwatch_PutMetricData: snippet_tags: - python.example_code.cloudwatch.CloudWatchWrapper - python.example_code.cloudwatch.PutMetricData + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/cloudwatch + sdkguide: + excerpts: + - description: + snippet_tags: + - cloudwatch.Ruby.addDataPoint C++: versions: - sdk_version: 1 diff --git a/.doc_gen/metadata/ec2_metadata.yaml b/.doc_gen/metadata/ec2_metadata.yaml index 0f56f2bcc21..54ebebf26d5 100644 --- a/.doc_gen/metadata/ec2_metadata.yaml +++ b/.doc_gen/metadata/ec2_metadata.yaml @@ -105,6 +105,15 @@ ec2_CreateKeyPair: snippet_tags: - python.example_code.ec2.KeyPairWrapper.decl - python.example_code.ec2.CreateKeyPair + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.exampleKeyPairs JavaScript: versions: - sdk_version: 3 @@ -246,6 +255,16 @@ ec2_CreateSecurityGroup: snippet_tags: - python.example_code.ec2.SecurityGroupWrapper.decl - python.example_code.ec2.CreateSecurityGroup + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.exampleSecurityGroup + JavaScript: versions: - sdk_version: 3 @@ -389,6 +408,15 @@ ec2_StartInstances: snippet_tags: - python.example_code.ec2.InstanceWrapper.decl - python.example_code.ec2.StartInstances + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.startInstance JavaScript: versions: - sdk_version: 3 @@ -467,6 +495,15 @@ ec2_StopInstances: snippet_tags: - python.example_code.ec2.InstanceWrapper.decl - python.example_code.ec2.StopInstances + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.stopInstances JavaScript: versions: - sdk_version: 3 @@ -545,6 +582,15 @@ ec2_AllocateAddress: snippet_tags: - python.example_code.ec2.ElasticIpWrapper.decl - python.example_code.ec2.AllocateAddress + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.allocateElasticIPs JavaScript: versions: - sdk_version: 3 @@ -616,6 +662,15 @@ ec2_AssociateAddress: snippet_tags: - python.example_code.ec2.ElasticIpWrapper.decl - python.example_code.ec2.AssociateAddress + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.associateElasticIPs JavaScript: versions: - sdk_version: 3 @@ -741,6 +796,15 @@ ec2_ReleaseAddress: snippet_tags: - python.example_code.ec2.ElasticIpWrapper.decl - python.example_code.ec2.ReleaseAddress + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.releaseElasticIPs JavaScript: versions: - sdk_version: 3 @@ -1120,6 +1184,15 @@ ec2_TerminateInstances: snippet_tags: - python.example_code.ec2.InstanceWrapper.decl - python.example_code.ec2.TerminateInstances + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.terminateInstances C++: versions: - sdk_version: 1 @@ -1181,6 +1254,14 @@ ec2_DescribeInstances: snippet_tags: - python.example_code.ec2.InstanceWrapper.decl - python.example_code.ec2.DescribeInstances + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + excerpts: + - description: + snippet_tags: + - ec2.Ruby.getAllInstances JavaScript: versions: - sdk_version: 3 @@ -1246,6 +1327,14 @@ ec2_DescribeRegions: - description: snippet_tags: - ec2.abapv1.describe_regions + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + excerpts: + - description: + snippet_tags: + - ec2.Ruby.regionsAvailabilityZones C++: versions: - sdk_version: 1 @@ -1546,6 +1635,60 @@ ec2_CreateTags: - cpp.example_code.ec2.CreateTags services: ec2: {CreateTags} +ec2_createRouteTable: + title: Create a route table in Amazon Virtual Private Cloud (Amazon VPC) and associate it with a subnet + title_abbrev: Create a route table + synopsis: create route table and associate with &EC2; subnet. + category: + languages: + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.createRouteTable + services: + ec2: + {CreateRouteTable} +ec2_createSubnet: + title: Create and tag a subnet in Amazon Virtual Private Cloud (Amazon VPC) + title_abbrev: Create a subnet + synopsis: create an &EC2; subnet. + category: + languages: + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.createSubnet + services: + ec2: + {CreateSubnet} +ec2_createVpc: + title: Create a Amazon Virtual Private Cloud (Amazon VPC) + title_abbrev: Create a Amazon Virtual Private Cloud (Amazon VPC) + synopsis: create a Amazon Virtual Private Cloud (Amazon VPC). + category: + languages: + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/ec2 + sdkguide: + excerpts: + - description: + snippet_tags: + - ec2.Ruby.createVpc + services: + ec2: + {CreateVpc} ec2_Scenario_GetStartedInstances: title: Get started with &EC2; instances using an &AWS; SDK title_abbrev: Get started with instances diff --git a/.doc_gen/metadata/kms_metadata.yaml b/.doc_gen/metadata/kms_metadata.yaml index 708d463ccad..6a4522e0546 100644 --- a/.doc_gen/metadata/kms_metadata.yaml +++ b/.doc_gen/metadata/kms_metadata.yaml @@ -32,6 +32,14 @@ kms_CreateKey: snippet_tags: - python.example_code.kms.KeyManager - python.example_code.kms.CreateKey + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/kms + excerpts: + - description: + snippet_tags: + - kms.ruby.createKey .NET: versions: - sdk_version: 3 @@ -92,6 +100,14 @@ kms_Decrypt: snippet_tags: - python.example_code.kms.KeyEncrypt - python.example_code.kms.Decrypt + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/kms + excerpts: + - description: + snippet_tags: + - kms.ruby.decryptBlob Rust: versions: - sdk_version: 1 @@ -144,6 +160,14 @@ kms_Encrypt: snippet_tags: - python.example_code.kms.KeyEncrypt - python.example_code.kms.Encrypt + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/kms + excerpts: + - description: + snippet_tags: + - kms.ruby.encryptBlob Rust: versions: - sdk_version: 1 @@ -296,6 +320,14 @@ kms_ReEncrypt: - description: snippet_tags: - kms.rust.reencrypt-data + Ruby: + versions: + - sdk_version: 3 + github: ruby/example_code/kms + excerpts: + - description: + snippet_tags: + - kms.ruby.reEncryptData Go: versions: - sdk_version: 2 diff --git a/ruby/example_code/ec2/ec2-ruby-example-elastic-ips.rb b/ruby/example_code/ec2/ec2-ruby-example-elastic-ips.rb index fb48cc0ab6f..de48fa0b42b 100644 --- a/ruby/example_code/ec2/ec2-ruby-example-elastic-ips.rb +++ b/ruby/example_code/ec2/ec2-ruby-example-elastic-ips.rb @@ -44,6 +44,7 @@ def instance_exists?(ec2_client, instance_id) return false end +# snippet-start:[ec2.Ruby.allocateElasticIPs] # Creates an Elastic IP address in Amazon Virtual Private Cloud (Amazon VPC). # # @param ec2_client [Aws::EC2::Client] An initialized EC2 client. @@ -57,7 +58,9 @@ def allocate_elastic_ip_address(ec2_client) puts "Error allocating Elastic IP address: #{e.message}" return "Error" end +# snippet-end:[ec2.Ruby.allocateElasticIPs] +# snippet-start:[ec2.Ruby.associateElasticIPs] # Associates an Elastic IP address with an Amazon Elastic Compute Cloud # (Amazon EC2) instance. # @@ -91,7 +94,8 @@ def associate_elastic_ip_address_with_instance( puts "Error associating Elastic IP address with instance: #{e.message}" return "Error" end - +# snippet-end:[ec2.Ruby.associateElasticIPs] +# # Gets information about addresses associated with an # Amazon Elastic Compute Cloud (Amazon EC2) instance. # @@ -129,6 +133,7 @@ def describe_addresses_for_instance(ec2_client, instance_id) puts "Error getting address information for instance: #{e.message}" end +# snippet-start:[ec2.Ruby.releaseElasticIPs] # Releases an Elastic IP address from an # Amazon Elastic Compute Cloud (Amazon EC2) instance. # @@ -153,6 +158,7 @@ def elastic_ip_address_released?(ec2_client, allocation_id) puts("Error releasing Elastic IP address: #{e.message}") return false end +# snippet-end:[ec2.Ruby.releaseElasticIPs] # Full example call: def run_me