Show / Hide Table of Contents

Class Application

Provides an OpsWorks application resource.

Example Usage

using System.IO;
using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var foo_app = new Aws.OpsWorks.Application("foo-app", new Aws.OpsWorks.ApplicationArgs
    {
        AppSources = 
        {
            new Aws.OpsWorks.Inputs.ApplicationAppSourceArgs
            {
                Revision = "master",
                Type = "git",
                Url = "https://github.com/example.git",
            },
        },
        AutoBundleOnDeploy = true,
        Description = "This is a Rails application",
        DocumentRoot = "public",
        Domains = 
        {
            "example.com",
            "sub.example.com",
        },
        EnableSsl = true,
        Environments = 
        {
            new Aws.OpsWorks.Inputs.ApplicationEnvironmentArgs
            {
                Key = "key",
                Secure = false,
                Value = "value",
            },
        },
        RailsEnv = "staging",
        ShortName = "foobar",
        SslConfigurations = 
        {
            new Aws.OpsWorks.Inputs.ApplicationSslConfigurationArgs
            {
                Certificate = File.ReadAllText("./foobar.crt"),
                PrivateKey = File.ReadAllText("./foobar.key"),
            },
        },
        StackId = aws_opsworks_stack.Main.Id,
        Type = "rails",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Application
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class Application : CustomResource

Constructors

View Source

Application(String, ApplicationArgs, CustomResourceOptions)

Create a Application resource with the given unique name, arguments, and options.

Declaration
public Application(string name, ApplicationArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ApplicationArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AppSources

SCM configuration of the app as described below.

Declaration
public Output<ImmutableArray<ApplicationAppSource>> AppSources { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ApplicationAppSource>>
View Source

AutoBundleOnDeploy

Run bundle install when deploying for application of type rails.

Declaration
public Output<string> AutoBundleOnDeploy { get; }
Property Value
Type Description
Output<System.String>
View Source

AwsFlowRubySettings

Specify activity and workflow workers for your app using the aws-flow gem.

Declaration
public Output<string> AwsFlowRubySettings { get; }
Property Value
Type Description
Output<System.String>
View Source

DataSourceArn

The data source's ARN.

Declaration
public Output<string> DataSourceArn { get; }
Property Value
Type Description
Output<System.String>
View Source

DataSourceDatabaseName

The database name.

Declaration
public Output<string> DataSourceDatabaseName { get; }
Property Value
Type Description
Output<System.String>
View Source

DataSourceType

The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.

Declaration
public Output<string> DataSourceType { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

A description of the app.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

DocumentRoot

Subfolder for the document root for application of type rails.

Declaration
public Output<string> DocumentRoot { get; }
Property Value
Type Description
Output<System.String>
View Source

Domains

A list of virtual host alias.

Declaration
public Output<ImmutableArray<string>> Domains { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

EnableSsl

Whether to enable SSL for the app. This must be set in order to let ssl_configuration.private_key, ssl_configuration.certificate and ssl_configuration.chain take effect.

Declaration
public Output<bool?> EnableSsl { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Environments

Object to define environment variables. Object is described below.

Declaration
public Output<ImmutableArray<ApplicationEnvironment>> Environments { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ApplicationEnvironment>>
View Source

Name

A human-readable name for the application.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RailsEnv

The name of the Rails environment for application of type rails.

Declaration
public Output<string> RailsEnv { get; }
Property Value
Type Description
Output<System.String>
View Source

ShortName

A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.

Declaration
public Output<string> ShortName { get; }
Property Value
Type Description
Output<System.String>
View Source

SslConfigurations

The SSL configuration of the app. Object is described below.

Declaration
public Output<ImmutableArray<ApplicationSslConfiguration>> SslConfigurations { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ApplicationSslConfiguration>>
View Source

StackId

The id of the stack the application will belong to.

Declaration
public Output<string> StackId { get; }
Property Value
Type Description
Output<System.String>
View Source

Type

Opsworks application type. One of aws-flow-ruby, java, rails, php, nodejs, static or other.

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ApplicationState, CustomResourceOptions)

Get an existing Application resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Application Get(string name, Input<string> id, ApplicationState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ApplicationState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Application
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.