Api2Pdf - PDF Generation, Powered by AWS Lambda
    Api2Pdf - PDF Generation, Powered by AWS Lambda
    • Headless Chrome
      • Convert raw HTML to PDF
        POST
      • Convert URL to PDF
        GET
      • Convert URL to PDF
        POST
    • LibreOffice
      • Convert office document or image to PDF
        POST
    • Merge
      • Combine Pdfs
        • Merge multiple PDFs together
    • wkhtmltopdf
      • Convert raw HTML to PDF
        POST
      • Convert URL to PDF
        GET
      • Convert URL to PDF
        POST
    • ZXING (Zebra Crossing) Bar Codes
      • Generate bar codes and QR codes with ZXING.
        GET
    • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy
      POST
    • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy
      GET
    • /2015-03-31/functions/{FunctionName}/policy
      POST
    • /2015-03-31/functions/{FunctionName}/policy
      GET
    • /2015-03-31/functions/{FunctionName}/aliases
      POST
    • /2015-03-31/functions/{FunctionName}/aliases
      GET
    • /2020-04-22/code-signing-configs/
      POST
    • /2020-04-22/code-signing-configs/
      GET
    • /2015-03-31/event-source-mappings/
      POST
    • /2015-03-31/event-source-mappings/
      GET
    • /2015-03-31/functions
      POST
    • /2015-03-31/functions/{FunctionName}/aliases/{Name}
      DELETE
    • /2015-03-31/functions/{FunctionName}/aliases/{Name}
      GET
    • /2015-03-31/functions/{FunctionName}/aliases/{Name}
      PUT
    • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}
      DELETE
    • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}
      GET
    • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}
      PUT
    • /2015-03-31/event-source-mappings/{UUID}
      DELETE
    • /2015-03-31/event-source-mappings/{UUID}
      GET
    • /2015-03-31/event-source-mappings/{UUID}
      PUT
    • /2015-03-31/functions/{FunctionName}
      DELETE
    • /2015-03-31/functions/{FunctionName}
      GET
    • /2020-06-30/functions/{FunctionName}/code-signing-config
      DELETE
    • /2020-06-30/functions/{FunctionName}/code-signing-config
      GET
    • /2020-06-30/functions/{FunctionName}/code-signing-config
      PUT
    • /2017-10-31/functions/{FunctionName}/concurrency
      DELETE
    • /2017-10-31/functions/{FunctionName}/concurrency
      PUT
    • /2019-09-25/functions/{FunctionName}/event-invoke-config
      DELETE
    • /2019-09-25/functions/{FunctionName}/event-invoke-config
      GET
    • /2019-09-25/functions/{FunctionName}/event-invoke-config
      PUT
    • /2019-09-25/functions/{FunctionName}/event-invoke-config
      POST
    • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}
      DELETE
    • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}
      GET
    • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
      DELETE
    • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
      GET
    • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
      PUT
    • /2016-08-19/account-settings/
      GET
    • /2019-09-30/functions/{FunctionName}/concurrency
      GET
    • /2015-03-31/functions/{FunctionName}/configuration
      GET
    • /2015-03-31/functions/{FunctionName}/configuration
      PUT
    • /2018-10-31/layers
      GET
    • /2015-03-31/functions/{FunctionName}/invocations
      POST
    • /2014-11-13/functions/{FunctionName}/invoke-async/
      POST
    • /2019-09-25/functions/{FunctionName}/event-invoke-config/list
      GET
    • /2015-03-31/functions/
      GET
    • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions
      GET
    • /2018-10-31/layers/{LayerName}/versions
      GET
    • /2018-10-31/layers/{LayerName}/versions
      POST
    • /2018-10-31/layers
      GET
    • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
      GET
    • /2017-03-31/tags/{ARN}
      GET
    • /2017-03-31/tags/{ARN}
      POST
    • /2015-03-31/functions/{FunctionName}/versions
      GET
    • /2015-03-31/functions/{FunctionName}/versions
      POST
    • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}
      DELETE
    • /2015-03-31/functions/{FunctionName}/policy/{StatementId}
      DELETE
    • /2017-03-31/tags/{ARN}
      DELETE
    • /2015-03-31/functions/{FunctionName}/code
      PUT

      /2015-03-31/functions

      The AWS Lambda multi-region endpoint
      http://lambda.{region}.amazonaws.com
      The AWS Lambda multi-region endpoint
      http://lambda.{region}.amazonaws.com
      POST
      /2015-03-31/functions
      Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.
      You set the package type to Image if the deployment package is a container image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.
      You set the package type to Zip if the deployment package is a .zip file archive. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties.
      When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Function States.
      A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.
      The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).
      You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function.
      If another account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.
      To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location -g --request POST 'http://lambda.{region}.amazonaws.com/2015-03-31/functions' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "FunctionName": "string",
          "Runtime": "nodejs",
          "Role": "string",
          "Handler": "string",
          "Code": {
              "ZipFile": "string",
              "S3Bucket": "string",
              "S3Key": "string",
              "S3ObjectVersion": "string",
              "ImageUri": "string"
          },
          "Description": "string",
          "Timeout": 1,
          "MemorySize": 128,
          "Publish": true,
          "VpcConfig": {
              "SubnetIds": [],
              "SecurityGroupIds": []
          },
          "PackageType": "Zip",
          "DeadLetterConfig": {
              "TargetArn": "string"
          },
          "Environment": {
              "Variables": {
                  "property1": "pa$$word",
                  "property2": "pa$$word"
              }
          },
          "KMSKeyArn": "string",
          "TracingConfig": {
              "Mode": "Active"
          },
          "Tags": {
              "property1": "string",
              "property2": "string"
          },
          "Layers": [
              "string"
          ],
          "FileSystemConfigs": [
              {
                  "Arn": "string",
                  "LocalMountPath": "string"
              }
          ],
          "ImageConfig": {
              "EntryPoint": [],
              "Command": [],
              "WorkingDirectory": "string"
          },
          "CodeSigningConfigArn": "string"
      }'
      Response Response Example
      201 - Example 1
      {
          "FunctionName": "string",
          "FunctionArn": "string",
          "Runtime": "nodejs",
          "Role": "string",
          "Handler": "string",
          "CodeSize": 0,
          "Description": "string",
          "Timeout": 0,
          "MemorySize": 0,
          "LastModified": "string",
          "CodeSha256": "string",
          "Version": "string",
          "VpcConfig": {
              "SubnetIds": [],
              "SecurityGroupIds": [],
              "VpcId": "string"
          },
          "DeadLetterConfig": {
              "TargetArn": "string"
          },
          "Environment": {
              "Variables": {
                  "property1": "pa$$word",
                  "property2": "pa$$word"
              },
              "Error": {
                  "ErrorCode": "string",
                  "Message": "string"
              }
          },
          "KMSKeyArn": "string",
          "TracingConfig": {
              "Mode": "Active"
          },
          "MasterArn": "string",
          "RevisionId": "string",
          "Layers": [],
          "State": "Pending",
          "StateReason": "string",
          "StateReasonCode": "Idle",
          "LastUpdateStatus": "Successful",
          "LastUpdateStatusReason": "string",
          "LastUpdateStatusReasonCode": "EniLimitExceeded",
          "FileSystemConfigs": [],
          "PackageType": "Zip",
          "ImageConfigResponse": {
              "ImageConfig": {
                  "EntryPoint": [],
                  "Command": [],
                  "WorkingDirectory": "string"
              },
              "Error": {
                  "ErrorCode": "string",
                  "Message": "string"
              }
          },
          "SigningProfileVersionArn": "string",
          "SigningJobArn": "string"
      }

      Request

      Body Params application/json

      Examples

      Responses

      🟢201Success
      application/json
      Body

      🟠480ServiceException
      🟠481InvalidParameterValueException
      🟠482ResourceNotFoundException
      🟠483ResourceConflictException
      🟠484TooManyRequestsException
      🟠485CodeStorageExceededException
      🟠486CodeVerificationFailedException
      🟠487InvalidCodeSignatureException
      🟠488CodeSigningConfigNotFoundException
      Modified at 2022-09-10 19:49:51
      Previous
      /2015-03-31/event-source-mappings/
      Next
      /2015-03-31/functions/{FunctionName}/aliases/{Name}
      Built with