Method: Aws::AppConfig::Client#create_application

Defined in:
lib/aws-sdk-appconfig/client.rb

#create_application(params = {}) ⇒ Types::Application

Creates an application. In AppConfig, an application is simply an organizational construct like a folder. This organizational construct has a relationship with some unit of executable code. For example, you could create an application called MyMobileApp to organize and manage configuration data for a mobile application installed by your users.

Examples:

Example: To create an application


# The following create-application example creates an application in AWS AppConfig.

resp = client.create_application({
  description: "An application used for creating an example.", 
  name: "example-application", 
})

resp.to_h outputs the following:
{
  description: "An application used for creating an example.", 
  id: "339ohji", 
  name: "example-application", 
}

Request syntax with placeholder values


resp = client.create_application({
  name: "Name", # required
  description: "Description",
  tags: {
    "TagKey" => "TagValue",
  },
})

Response structure


resp.id #=> String
resp.name #=> String
resp.description #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    A name for the application.

  • :description (String)

    A description of the application.

  • :tags (Hash<String,String>)

    Metadata to assign to the application. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.

Returns:

See Also:



512
513
514
515
# File 'lib/aws-sdk-appconfig/client.rb', line 512

def create_application(params = {}, options = {})
  req = build_request(:create_application, params)
  req.send_request(options)
end