Class EcsApplication
A CodeDeploy Application that deploys to an Amazon ECS service.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.AWS.CodeDeploy.dll
Syntax (csharp)
public class EcsApplication : Resource, IEcsApplication, IResource, IConstruct, IDependable
Syntax (vb)
Public Class EcsApplication
Inherits Resource
Implements IEcsApplication, IResource, IConstruct, IDependable
Remarks
Resource: AWS::CodeDeploy::Application
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.CodeDeploy;
var ecsApplication = new EcsApplication(this, "MyEcsApplication", new EcsApplicationProps {
ApplicationName = "applicationName"
});
Synopsis
Constructors
EcsApplication(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EcsApplication(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
EcsApplication(Construct, String, IEcsApplicationProps) |
Properties
ApplicationArn | |
ApplicationName |
Methods
FromEcsApplicationName(Construct, String, String) | Import an Application defined either outside the CDK, or in a different CDK Stack. |
Validate() | Validate the current construct. |
Constructors
EcsApplication(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EcsApplication(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EcsApplication(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EcsApplication(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
EcsApplication(Construct, String, IEcsApplicationProps)
public EcsApplication(Construct scope, string id, IEcsApplicationProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IEcsApplicationProps
Properties
ApplicationArn
public virtual string ApplicationArn { get; }
Property Value
System.String
ApplicationName
public virtual string ApplicationName { get; }
Property Value
System.String
Methods
FromEcsApplicationName(Construct, String, String)
Import an Application defined either outside the CDK, or in a different CDK Stack.
public static IEcsApplication FromEcsApplicationName(Construct scope, string id, string ecsApplicationName)
Parameters
- scope Constructs.Construct
the parent Construct for this new Construct.
- id System.String
the logical ID of this new Construct.
- ecsApplicationName System.String
the name of the application to import.
Returns
a Construct representing a reference to an existing Application
Validate()
Validate the current construct.
protected override string[] Validate()
Returns
System.String[]
Overrides
Remarks
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.