Class EcsApplication
A CodeDeploy Application that deploys to an Amazon ECS service.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EcsApplication : Resource, IEcsApplication, IResource
Syntax (vb)
Public Class EcsApplication
Inherits Resource
Implements IEcsApplication, IResource
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
Examples
var application = new EcsApplication(this, "CodeDeployApplication", new EcsApplicationProps {
ApplicationName = "MyApplication"
});
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
FromEcsApplicationArn(Construct, String, String) | Import an Application defined either outside the CDK, or in a different CDK Stack, by ARN. |
FromEcsApplicationName(Construct, String, String) | Import an Application defined either outside the CDK, or in a different CDK Stack. |
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
FromEcsApplicationArn(Construct, String, String)
Import an Application defined either outside the CDK, or in a different CDK Stack, by ARN.
public static IEcsApplication FromEcsApplicationArn(Construct scope, string id, string ecsApplicationArn)
Parameters
- scope Constructs.Construct
the parent Construct for this new Construct.
- id System.String
the logical ID of this new Construct.
- ecsApplicationArn System.String
the ARN of the application to import.
Returns
a Construct representing a reference to an existing Application
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
Remarks
The Application's account and region are assumed to be the same as the stack it is being imported
into. If not, use fromEcsApplicationArn
.