Class LambdaApplication
A CodeDeploy Application that deploys to an AWS Lambda function.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaApplication : Resource, ILambdaApplication, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class LambdaApplication Inherits Resource Implements ILambdaApplication, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
Examples
var application = new LambdaApplication(this, "CodeDeployApplication", new LambdaApplicationProps {
ApplicationName = "MyApplication"
});
Synopsis
Constructors
| LambdaApplication(Construct, string, ILambdaApplicationProps?) | A CodeDeploy Application that deploys to an AWS Lambda function. |
Properties
| ApplicationArn | A CodeDeploy Application that deploys to an AWS Lambda function. |
| ApplicationName | A CodeDeploy Application that deploys to an AWS Lambda function. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Methods
| FromLambdaApplicationArn(Construct, string, string) | Import an Application defined either outside the CDK, or in a different CDK Stack, by ARN. |
| FromLambdaApplicationName(Construct, string, string) | Import an Application defined either outside the CDK, or in a different CDK Stack. |
Constructors
LambdaApplication(Construct, string, ILambdaApplicationProps?)
A CodeDeploy Application that deploys to an AWS Lambda function.
public LambdaApplication(Construct scope, string id, ILambdaApplicationProps? props = null)
Parameters
- scope Construct
- id string
- props ILambdaApplicationProps
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
Examples
var application = new LambdaApplication(this, "CodeDeployApplication", new LambdaApplicationProps {
ApplicationName = "MyApplication"
});
Properties
ApplicationArn
A CodeDeploy Application that deploys to an AWS Lambda function.
public virtual string ApplicationArn { get; }
Property Value
Remarks
Attribute: true
ApplicationName
A CodeDeploy Application that deploys to an AWS Lambda function.
public virtual string ApplicationName { get; }
Property Value
Remarks
Attribute: true
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Resource: AWS::CodeDeploy::Application
ExampleMetadata: infused
Methods
FromLambdaApplicationArn(Construct, string, string)
Import an Application defined either outside the CDK, or in a different CDK Stack, by ARN.
public static ILambdaApplication FromLambdaApplicationArn(Construct scope, string id, string lambdaApplicationArn)
Parameters
- scope Construct
the parent Construct for this new Construct.
- id string
the logical ID of this new Construct.
- lambdaApplicationArn 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
FromLambdaApplicationName(Construct, string, string)
Import an Application defined either outside the CDK, or in a different CDK Stack.
public static ILambdaApplication FromLambdaApplicationName(Construct scope, string id, string lambdaApplicationName)
Parameters
- scope Construct
the parent Construct for this new Construct.
- id string
the logical ID of this new Construct.
- lambdaApplicationName 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 fromLambdaApplicationArn.