apigatewayv2 function

AmazonApiGatewayV2

AmazonApiGatewayV2

Amazon API Gateway V2

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

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.

Returns

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.

Service syntax

svc <- apigatewayv2(
  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

create_apiCreates an Api resource
create_api_mappingCreates an API mapping
create_authorizerCreates an Authorizer for an API
create_deploymentCreates a Deployment for an API
create_domain_nameCreates a domain name
create_integrationCreates an Integration
create_integration_responseCreates an IntegrationResponses
create_modelCreates a Model for an API
create_routeCreates a Route for an API
create_route_responseCreates a RouteResponse for a Route
create_stageCreates a Stage for an API
create_vpc_linkCreates a VPC link
delete_access_log_settingsDeletes the AccessLogSettings for a Stage
delete_apiDeletes an Api resource
delete_api_mappingDeletes an API mapping
delete_authorizerDeletes an Authorizer
delete_cors_configurationDeletes a CORS configuration
delete_deploymentDeletes a Deployment
delete_domain_nameDeletes a domain name
delete_integrationDeletes an Integration
delete_integration_responseDeletes an IntegrationResponses
delete_modelDeletes a Model
delete_routeDeletes a Route
delete_route_request_parameterDeletes a route request parameter
delete_route_responseDeletes a RouteResponse
delete_route_settingsDeletes the RouteSettings for a stage
delete_stageDeletes a Stage
delete_vpc_linkDeletes a VPC link
export_apiExport api
get_apiGets an Api resource
get_api_mappingGets an API mapping
get_api_mappingsGets API mappings
get_apisGets a collection of Api resources
get_authorizerGets an Authorizer
get_authorizersGets the Authorizers for an API
get_deploymentGets a Deployment
get_deploymentsGets the Deployments for an API
get_domain_nameGets a domain name
get_domain_namesGets the domain names for an AWS account
get_integrationGets an Integration
get_integration_responseGets an IntegrationResponses
get_integration_responsesGets the IntegrationResponses for an Integration
get_integrationsGets the Integrations for an API
get_modelGets a Model
get_modelsGets the Models for an API
get_model_templateGets a model template
get_routeGets a Route
get_route_responseGets a RouteResponse
get_route_responsesGets the RouteResponses for a Route
get_routesGets the Routes for an API
get_stageGets a Stage
get_stagesGets the Stages for an API
get_tagsGets a collection of Tag resources
get_vpc_linkGets a VPC link
get_vpc_linksGets a collection of VPC links
import_apiImports an API
reimport_apiPuts an Api resource
reset_authorizers_cacheResets all authorizer cache entries on a stage
tag_resourceCreates a new Tag resource to represent a tag
untag_resourceDeletes a Tag
update_apiUpdates an Api resource
update_api_mappingThe API mapping
update_authorizerUpdates an Authorizer
update_deploymentUpdates a Deployment
update_domain_nameUpdates a domain name
update_integrationUpdates an Integration
update_integration_responseUpdates an IntegrationResponses
update_modelUpdates a Model
update_routeUpdates a Route
update_route_responseUpdates a RouteResponse
update_stageUpdates a Stage
update_vpc_linkUpdates a VPC link

Examples

## Not run: svc <- apigatewayv2() svc$create_api( Foo = 123 ) ## End(Not run)
  • Maintainer: Dyfan Jones
  • License: Apache License (>= 2.0)
  • Last published: 2025-03-17