paws.networking (version 0.5.0)

elbv2: Elastic Load Balancing

Description

A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer. You configure a target group with a protocol and port number for connections from the load balancer to the targets, and with health check settings to be used when checking the health status of the targets.

Elastic Load Balancing supports the following types of load balancers: Application Load Balancers, Network Load Balancers, Gateway Load Balancers, and Classic Load Balancers. This reference covers the following load balancer types:

  • Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and HTTPS.

  • Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and UDP.

  • Gateway Load Balancer - Operates at the network layer (layer 3).

For more information, see the Elastic Load Balancing User Guide.

All Elastic Load Balancing operations are idempotent, which means that they complete at most one time. If you repeat an operation, it succeeds.

Usage

elbv2(config = list(), credentials = list(), endpoint = NULL, region = NULL)

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

  • credentials:

    • creds:

      • access_key_id: AWS access key ID

      • secret_access_key: AWS secret access key

      • session_token: AWS temporary session token

    • profile: The name of a profile to use. If not given, then the default profile is used.

    • anonymous: Set anonymous credentials.

  • endpoint: The complete URL to use for the constructed client.

  • region: The AWS Region used in instantiating the client.

  • close_connection: Immediately close all HTTP connections.

  • timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

  • s3_force_path_style: Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

  • sts_regional_endpoint: Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

credentials

Optional credentials shorthand for the config parameter

  • creds:

    • access_key_id: AWS access key ID

    • secret_access_key: AWS secret access key

    • session_token: AWS temporary session token

  • profile: The name of a profile to use. If not given, then the default profile is used.

  • anonymous: Set anonymous credentials.

endpoint

Optional shorthand for complete URL to use for the constructed client.

region

Optional shorthand for AWS Region used in instantiating the client.

Service syntax

svc <- elbv2(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string",
      anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
      access_key_id = "string",
      secret_access_key = "string",
      session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

add_listener_certificatesAdds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener
add_tagsAdds the specified tags to the specified Elastic Load Balancing resource
add_trust_store_revocationsAdds the specified revocation file to the specified trust store
create_listenerCreates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer
create_load_balancerCreates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer
create_ruleCreates a rule for the specified listener
create_target_groupCreates a target group
create_trust_storeCreates a trust store
delete_listenerDeletes the specified listener
delete_load_balancerDeletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer
delete_ruleDeletes the specified rule
delete_target_groupDeletes the specified target group
delete_trust_storeDeletes a trust store
deregister_targetsDeregisters the specified targets from the specified target group
describe_account_limitsDescribes the current Elastic Load Balancing resource limits for your Amazon Web Services account
describe_listener_certificatesDescribes the default certificate and the certificate list for the specified HTTPS or TLS listener
describe_listenersDescribes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer
describe_load_balancer_attributesDescribes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer
describe_load_balancersDescribes the specified load balancers or all of your load balancers
describe_rulesDescribes the specified rules or the rules for the specified listener
describe_ssl_policiesDescribes the specified policies or all policies used for SSL negotiation
describe_tagsDescribes the tags for the specified Elastic Load Balancing resources
describe_target_group_attributesDescribes the attributes for the specified target group
describe_target_groupsDescribes the specified target groups or all of your target groups
describe_target_healthDescribes the health of the specified targets or all of your targets
describe_trust_store_associationsDescribes all resources associated with the specified trust store
describe_trust_store_revocationsDescribes the revocation files in use by the specified trust store arn, or revocation ID
describe_trust_storesDescribes all trust stores for a given account by trust store arn’s or name
get_trust_store_ca_certificates_bundleRetrieves the ca certificate bundle
get_trust_store_revocation_contentRetrieves the specified revocation file
modify_listenerReplaces the specified properties of the specified listener
modify_load_balancer_attributesModifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer
modify_ruleReplaces the specified properties of the specified rule
modify_target_groupModifies the health checks used when evaluating the health state of the targets in the specified target group
modify_target_group_attributesModifies the specified attributes of the specified target group
modify_trust_storeUpdate the ca certificate bundle for a given trust store
register_targetsRegisters the specified targets with the specified target group
remove_listener_certificatesRemoves the specified certificate from the certificate list for the specified HTTPS or TLS listener
remove_tagsRemoves the specified tags from the specified Elastic Load Balancing resources
remove_trust_store_revocationsRemoves the specified revocation file from the specified trust store
set_ip_address_typeSets the type of IP addresses used by the subnets of the specified load balancer
set_rule_prioritiesSets the priorities of the specified rules
set_security_groupsAssociates the specified security groups with the specified Application Load Balancer or Network Load Balancer
set_subnetsEnables the Availability Zones for the specified public subnets for the specified Application Load Balancer, Network Load Balancer or Gateway Load Balancer

Examples

Run this code
if (FALSE) {
svc <- elbv2()
# This example adds the specified tags to the specified load balancer.
svc$add_tags(
  ResourceArns = list(
    "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/m..."
  ),
  Tags = list(
    list(
      Key = "project",
      Value = "lima"
    ),
    list(
      Key = "department",
      Value = "digital-media"
    )
  )
)
}

Run the code above in your browser using DataLab