The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Paws::OpsWorks::CreateApp - Arguments for method CreateApp on Paws::OpsWorks

DESCRIPTION

This class represents the parameters used for calling the method CreateApp on the AWS OpsWorks service. Use the attributes of this class as arguments to method CreateApp.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateApp.

SYNOPSIS

    my $opsworks = Paws->service('OpsWorks');
    my $CreateAppResult = $opsworks->CreateApp(
      Name      => 'MyString',
      StackId   => 'MyString',
      Type      => 'aws-flow-ruby',
      AppSource => {
        Password => 'MyString',
        Revision => 'MyString',
        SshKey   => 'MyString',
        Type     => 'git',        # values: git, svn, archive, s3; OPTIONAL
        Url      => 'MyString',
        Username => 'MyString',
      },    # OPTIONAL
      Attributes => {
        'DocumentRoot' => 'MyString'
        , # key: values: DocumentRoot, RailsEnv, AutoBundleOnDeploy, AwsFlowRubySettings
      },    # OPTIONAL
      DataSources => [
        {
          Arn          => 'MyString',
          DatabaseName => 'MyString',
          Type         => 'MyString',
        },
        ...
      ],    # OPTIONAL
      Description => 'MyString',             # OPTIONAL
      Domains     => [ 'MyString', ... ],    # OPTIONAL
      EnableSsl   => 1,                      # OPTIONAL
      Environment => [
        {
          Key    => 'MyString',
          Value  => 'MyString',
          Secure => 1,
        },
        ...
      ],                                     # OPTIONAL
      Shortname        => 'MyString',        # OPTIONAL
      SslConfiguration => {
        Certificate => 'MyString',
        PrivateKey  => 'MyString',
        Chain       => 'MyString',
      },                                     # OPTIONAL
    );

    # Results:
    my $AppId = $CreateAppResult->AppId;

    # Returns a L<Paws::OpsWorks::CreateAppResult> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/opsworks/CreateApp

ATTRIBUTES

AppSource => Paws::OpsWorks::Source

A Source object that specifies the app repository.

Attributes => Paws::OpsWorks::AppAttributes

One or more user-defined key/value pairs to be added to the stack attributes.

DataSources => ArrayRef[Paws::OpsWorks::DataSource]

The app's data source.

Description => Str

A description of the app.

Domains => ArrayRef[Str|Undef]

The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

EnableSsl => Bool

Whether to enable SSL for the app.

Environment => ArrayRef[Paws::OpsWorks::EnvironmentVariable]

An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables (https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).

There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 20 KB. This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 20KB)."

If you have specified one or more environment variables, you cannot modify the stack's Chef version.

REQUIRED Name => Str

The app name.

Shortname => Str

The app's short name.

SslConfiguration => Paws::OpsWorks::SslConfiguration

An SslConfiguration object with the SSL configuration.

REQUIRED StackId => Str

The stack ID.

REQUIRED Type => Str

The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are members of the corresponding layer. If your app isn't one of the standard types, or you prefer to implement your own Deploy recipes, specify other.

Valid values are: "aws-flow-ruby", "java", "rails", "php", "nodejs", "static", "other"

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateApp in Paws::OpsWorks

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues