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, IApplicationRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class ServerApplication Inherits Resource Implements IServerApplication, IResource, IApplicationRef, IConstruct, IDependable, IEnvironmentAware
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
Examples
var application = new ServerApplication(this, "CodeDeployApplication", new ServerApplicationProps {
ApplicationName = "MyApplication"
});
Synopsis
Constructors
| ServerApplication(Construct, string, IServerApplicationProps?) | A CodeDeploy Application that deploys to EC2/on-premise instances. |
Properties
| ApplicationArn | A CodeDeploy Application that deploys to EC2/on-premise instances. |
| ApplicationName | A CodeDeploy Application that deploys to EC2/on-premise instances. |
| ApplicationRef | A reference to a Application resource. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
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(Construct, string, IServerApplicationProps?)
A CodeDeploy Application that deploys to EC2/on-premise instances.
public ServerApplication(Construct scope, string id, IServerApplicationProps? props = null)
Parameters
- scope Construct
- id string
- props IServerApplicationProps
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
Examples
var application = new ServerApplication(this, "CodeDeployApplication", new ServerApplicationProps {
ApplicationName = "MyApplication"
});
Properties
ApplicationArn
A CodeDeploy Application that deploys to EC2/on-premise instances.
public virtual string ApplicationArn { get; }
Property Value
Remarks
Attribute: true
ApplicationName
A CodeDeploy Application that deploys to EC2/on-premise instances.
public virtual string ApplicationName { get; }
Property Value
Remarks
Attribute: true
ApplicationRef
A reference to a Application resource.
public virtual IApplicationReference ApplicationRef { get; }
Property Value
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
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 Construct
the parent Construct for this new Construct.
- id string
the logical ID of this new Construct.
- serverApplicationArn string
the ARN of the application to import.
Returns
a Construct representing a reference to an existing Application
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
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 Construct
the parent Construct for this new Construct.
- id string
the logical ID of this new Construct.
- serverApplicationName 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.