Skip to content

Create Application

elasticbeanstalk_create_application R Documentation

Creates an application that has one configuration template named default and no application versions

Description

Creates an application that has one configuration template named default and no application versions.

Usage

elasticbeanstalk_create_application(ApplicationName, Description,
  ResourceLifecycleConfig, Tags)

Arguments

ApplicationName

[required] The name of the application. Must be unique within your account.

Description

Your description of the application.

ResourceLifecycleConfig

Specifies an application resource lifecycle configuration to prevent your application from accumulating too many versions.

Tags

Specifies the tags applied to the application.

Elastic Beanstalk applies these tags only to the application. Environments that you create in the application don't inherit the tags.

Value

A list with the following syntax:

list(
  Application = list(
    ApplicationArn = "string",
    ApplicationName = "string",
    Description = "string",
    DateCreated = as.POSIXct(
      "2015-01-01"
    ),
    DateUpdated = as.POSIXct(
      "2015-01-01"
    ),
    Versions = list(
      "string"
    ),
    ConfigurationTemplates = list(
      "string"
    ),
    ResourceLifecycleConfig = list(
      ServiceRole = "string",
      VersionLifecycleConfig = list(
        MaxCountRule = list(
          Enabled = TRUE|FALSE,
          MaxCount = 123,
          DeleteSourceFromS3 = TRUE|FALSE
        ),
        MaxAgeRule = list(
          Enabled = TRUE|FALSE,
          MaxAgeInDays = 123,
          DeleteSourceFromS3 = TRUE|FALSE
        )
      )
    )
  )
)

Request syntax

svc$create_application(
  ApplicationName = "string",
  Description = "string",
  ResourceLifecycleConfig = list(
    ServiceRole = "string",
    VersionLifecycleConfig = list(
      MaxCountRule = list(
        Enabled = TRUE|FALSE,
        MaxCount = 123,
        DeleteSourceFromS3 = TRUE|FALSE
      ),
      MaxAgeRule = list(
        Enabled = TRUE|FALSE,
        MaxAgeInDays = 123,
        DeleteSourceFromS3 = TRUE|FALSE
      )
    )
  ),
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Examples

## Not run: 
# The following operation creates a new application named my-app:
svc$create_application(
  ApplicationName = "my-app",
  Description = "my application"
)

## End(Not run)