Class ServerApplication
A CodeDeploy Application that deploys to EC2/on-premise instances.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ServerApplication : Resource, IServerApplication, IResource
Syntax (vb)
Public Class ServerApplication
Inherits Resource
Implements IServerApplication, IResource
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
Examples
var application = new ServerApplication(this, "CodeDeployApplication", new ServerApplicationProps {
ApplicationName = "MyApplication"
});
Synopsis
Constructors
ServerApplication(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ServerApplication(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ServerApplication(Construct, String, IServerApplicationProps) |
Properties
ApplicationArn | |
ApplicationName |
Methods
FromServerApplicationArn(Construct, String, String) | Import an Application defined either outside the CDK, or in a different CDK Stack, by ARN. |
FromServerApplicationName(Construct, String, String) | Import an Application defined either outside the CDK app, or in a different region. |
Constructors
ServerApplication(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ServerApplication(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ServerApplication(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ServerApplication(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ServerApplication(Construct, String, IServerApplicationProps)
public ServerApplication(Construct scope, string id, IServerApplicationProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IServerApplicationProps
Properties
ApplicationArn
public virtual string ApplicationArn { get; }
Property Value
System.String
ApplicationName
public virtual string ApplicationName { get; }
Property Value
System.String
Methods
FromServerApplicationArn(Construct, String, String)
Import an Application defined either outside the CDK, or in a different CDK Stack, by ARN.
public static IServerApplication FromServerApplicationArn(Construct scope, string id, string serverApplicationArn)
Parameters
- scope Constructs.Construct
the parent Construct for this new Construct.
- id System.String
the logical ID of this new Construct.
- serverApplicationArn System.String
the ARN of the application to import.
Returns
a Construct representing a reference to an existing Application
FromServerApplicationName(Construct, String, String)
Import an Application defined either outside the CDK app, or in a different region.
public static IServerApplication FromServerApplicationName(Construct scope, string id, string serverApplicationName)
Parameters
- scope Constructs.Construct
the parent Construct for this new Construct.
- id System.String
the logical ID of this new Construct.
- serverApplicationName System.String
the name of the application to import.
Returns
a Construct representing a reference to an existing Application
Remarks
The Application's account and region are assumed to be the same as the stack it is being imported
into. If not, use fromServerApplicationArn
.