Class CfnApp
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.OpsWorks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnApp : CfnResource, IInspectable
Syntax (vb)
Public Class CfnApp
Inherits CfnResource
Implements IInspectable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html
CloudformationResource: AWS::OpsWorks::App
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpsWorks;
var cfnApp = new CfnApp(this, "MyCfnApp", new CfnAppProps {
Name = "name",
StackId = "stackId",
Type = "type",
// the properties below are optional
AppSource = new SourceProperty {
Password = "password",
Revision = "revision",
SshKey = "sshKey",
Type = "type",
Url = "url",
Username = "username"
},
Attributes = new Dictionary<string, string> {
{ "attributesKey", "attributes" }
},
DataSources = new [] { new DataSourceProperty {
Arn = "arn",
DatabaseName = "databaseName",
Type = "type"
} },
Description = "description",
Domains = new [] { "domains" },
EnableSsl = false,
Environment = new [] { new EnvironmentVariableProperty {
Key = "key",
Value = "value",
// the properties below are optional
Secure = false
} },
Shortname = "shortname",
SslConfiguration = new SslConfigurationProperty {
Certificate = "certificate",
Chain = "chain",
PrivateKey = "privateKey"
}
});
Synopsis
Constructors
CfnApp(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnApp(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnApp(Construct, String, ICfnAppProps) |
Properties
AppSource | A |
Attributes | One or more user-defined key/value pairs to be added to the stack attributes. |
AttrId | |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DataSources | The app's data source. |
Description | A description of the app. |
Domains | The app virtual host settings, with multiple domains separated by commas. |
EnableSsl | Whether to enable SSL for the app. |
Environment | An array of |
Name | The app name. |
Shortname | The app's short name. |
SslConfiguration | An |
StackId | The stack ID. |
Type | The app type. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnApp(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnApp(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnApp(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnApp(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnApp(Construct, String, ICfnAppProps)
public CfnApp(Construct scope, string id, ICfnAppProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnAppProps
Resource properties.
Properties
AppSource
A Source
object that specifies the app repository.
public virtual object AppSource { get; set; }
Property Value
System.Object
Attributes
One or more user-defined key/value pairs to be added to the stack attributes.
public virtual object Attributes { get; set; }
Property Value
System.Object
AttrId
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DataSources
The app's data source.
public virtual object DataSources { get; set; }
Property Value
System.Object
Description
A description of the app.
public virtual string Description { get; set; }
Property Value
System.String
Domains
The app virtual host settings, with multiple domains separated by commas.
public virtual string[] Domains { get; set; }
Property Value
System.String[]
EnableSsl
Whether to enable SSL for the app.
public virtual object EnableSsl { get; set; }
Property Value
System.Object
Environment
An array of EnvironmentVariable
objects that specify environment variables to be associated with the app.
public virtual object Environment { get; set; }
Property Value
System.Object
Name
The app name.
public virtual string Name { get; set; }
Property Value
System.String
Shortname
The app's short name.
public virtual string Shortname { get; set; }
Property Value
System.String
SslConfiguration
An SslConfiguration
object with the SSL configuration.
public virtual object SslConfiguration { get; set; }
Property Value
System.Object
StackId
The stack ID.
public virtual string StackId { get; set; }
Property Value
System.String
Type
The app type.
public virtual string Type { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>