aws.codedeploy.Application
Explore with Pulumi AI
Provides a CodeDeploy application to be used as a basis for deployments
Example Usage
ECS Application
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.codedeploy.Application("example", {
computePlatform: "ECS",
name: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.codedeploy.Application("example",
compute_platform="ECS",
name="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codedeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codedeploy.NewApplication(ctx, "example", &codedeploy.ApplicationArgs{
ComputePlatform: pulumi.String("ECS"),
Name: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CodeDeploy.Application("example", new()
{
ComputePlatform = "ECS",
Name = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codedeploy.Application;
import com.pulumi.aws.codedeploy.ApplicationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Application("example", ApplicationArgs.builder()
.computePlatform("ECS")
.name("example")
.build());
}
}
resources:
example:
type: aws:codedeploy:Application
properties:
computePlatform: ECS
name: example
Lambda Application
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.codedeploy.Application("example", {
computePlatform: "Lambda",
name: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.codedeploy.Application("example",
compute_platform="Lambda",
name="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codedeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codedeploy.NewApplication(ctx, "example", &codedeploy.ApplicationArgs{
ComputePlatform: pulumi.String("Lambda"),
Name: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CodeDeploy.Application("example", new()
{
ComputePlatform = "Lambda",
Name = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codedeploy.Application;
import com.pulumi.aws.codedeploy.ApplicationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Application("example", ApplicationArgs.builder()
.computePlatform("Lambda")
.name("example")
.build());
}
}
resources:
example:
type: aws:codedeploy:Application
properties:
computePlatform: Lambda
name: example
Server Application
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.codedeploy.Application("example", {
computePlatform: "Server",
name: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.codedeploy.Application("example",
compute_platform="Server",
name="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codedeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codedeploy.NewApplication(ctx, "example", &codedeploy.ApplicationArgs{
ComputePlatform: pulumi.String("Server"),
Name: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CodeDeploy.Application("example", new()
{
ComputePlatform = "Server",
Name = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codedeploy.Application;
import com.pulumi.aws.codedeploy.ApplicationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Application("example", ApplicationArgs.builder()
.computePlatform("Server")
.name("example")
.build());
}
}
resources:
example:
type: aws:codedeploy:Application
properties:
computePlatform: Server
name: example
Create Application Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Application(name: string, args?: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
args: Optional[ApplicationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Application(resource_name: str,
opts: Optional[ResourceOptions] = None,
compute_platform: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewApplication(ctx *Context, name string, args *ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs? args = null, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: aws:codedeploy:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleapplicationResourceResourceFromCodedeployapplication = new Aws.CodeDeploy.Application("exampleapplicationResourceResourceFromCodedeployapplication", new()
{
ComputePlatform = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := codedeploy.NewApplication(ctx, "exampleapplicationResourceResourceFromCodedeployapplication", &codedeploy.ApplicationArgs{
ComputePlatform: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleapplicationResourceResourceFromCodedeployapplication = new Application("exampleapplicationResourceResourceFromCodedeployapplication", ApplicationArgs.builder()
.computePlatform("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
exampleapplication_resource_resource_from_codedeployapplication = aws.codedeploy.Application("exampleapplicationResourceResourceFromCodedeployapplication",
compute_platform="string",
name="string",
tags={
"string": "string",
})
const exampleapplicationResourceResourceFromCodedeployapplication = new aws.codedeploy.Application("exampleapplicationResourceResourceFromCodedeployapplication", {
computePlatform: "string",
name: "string",
tags: {
string: "string",
},
});
type: aws:codedeploy:Application
properties:
computePlatform: string
name: string
tags:
string: string
Application Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Application resource accepts the following input properties:
- Compute
Platform string - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - Name string
- The name of the application.
- Dictionary<string, string>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Compute
Platform string - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - Name string
- The name of the application.
- map[string]string
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- compute
Platform String - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - name String
- The name of the application.
- Map<String,String>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- compute
Platform string - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - name string
- The name of the application.
- {[key: string]: string}
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- compute_
platform str - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - name str
- The name of the application.
- Mapping[str, str]
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- compute
Platform String - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - name String
- The name of the application.
- Map<String>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:
- Application
Id string - The application ID.
- Arn string
- The ARN of the CodeDeploy application.
- Github
Account stringName - The name for a connection to a GitHub account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Linked
To boolGithub - Whether the user has authenticated with GitHub for the specified application.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Application
Id string - The application ID.
- Arn string
- The ARN of the CodeDeploy application.
- Github
Account stringName - The name for a connection to a GitHub account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Linked
To boolGithub - Whether the user has authenticated with GitHub for the specified application.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application
Id String - The application ID.
- arn String
- The ARN of the CodeDeploy application.
- github
Account StringName - The name for a connection to a GitHub account.
- id String
- The provider-assigned unique ID for this managed resource.
- linked
To BooleanGithub - Whether the user has authenticated with GitHub for the specified application.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application
Id string - The application ID.
- arn string
- The ARN of the CodeDeploy application.
- github
Account stringName - The name for a connection to a GitHub account.
- id string
- The provider-assigned unique ID for this managed resource.
- linked
To booleanGithub - Whether the user has authenticated with GitHub for the specified application.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application_
id str - The application ID.
- arn str
- The ARN of the CodeDeploy application.
- github_
account_ strname - The name for a connection to a GitHub account.
- id str
- The provider-assigned unique ID for this managed resource.
- linked_
to_ boolgithub - Whether the user has authenticated with GitHub for the specified application.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application
Id String - The application ID.
- arn String
- The ARN of the CodeDeploy application.
- github
Account StringName - The name for a connection to a GitHub account.
- id String
- The provider-assigned unique ID for this managed resource.
- linked
To BooleanGithub - Whether the user has authenticated with GitHub for the specified application.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing Application Resource
Get an existing Application resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApplicationState, opts?: CustomResourceOptions): Application
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
arn: Optional[str] = None,
compute_platform: Optional[str] = None,
github_account_name: Optional[str] = None,
linked_to_github: Optional[bool] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> Application
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Application
Id string - The application ID.
- Arn string
- The ARN of the CodeDeploy application.
- Compute
Platform string - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - Github
Account stringName - The name for a connection to a GitHub account.
- Linked
To boolGithub - Whether the user has authenticated with GitHub for the specified application.
- Name string
- The name of the application.
- Dictionary<string, string>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Application
Id string - The application ID.
- Arn string
- The ARN of the CodeDeploy application.
- Compute
Platform string - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - Github
Account stringName - The name for a connection to a GitHub account.
- Linked
To boolGithub - Whether the user has authenticated with GitHub for the specified application.
- Name string
- The name of the application.
- map[string]string
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application
Id String - The application ID.
- arn String
- The ARN of the CodeDeploy application.
- compute
Platform String - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - github
Account StringName - The name for a connection to a GitHub account.
- linked
To BooleanGithub - Whether the user has authenticated with GitHub for the specified application.
- name String
- The name of the application.
- Map<String,String>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application
Id string - The application ID.
- arn string
- The ARN of the CodeDeploy application.
- compute
Platform string - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - github
Account stringName - The name for a connection to a GitHub account.
- linked
To booleanGithub - Whether the user has authenticated with GitHub for the specified application.
- name string
- The name of the application.
- {[key: string]: string}
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application_
id str - The application ID.
- arn str
- The ARN of the CodeDeploy application.
- compute_
platform str - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - github_
account_ strname - The name for a connection to a GitHub account.
- linked_
to_ boolgithub - Whether the user has authenticated with GitHub for the specified application.
- name str
- The name of the application.
- Mapping[str, str]
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application
Id String - The application ID.
- arn String
- The ARN of the CodeDeploy application.
- compute
Platform String - The compute platform can either be
ECS
,Lambda
, orServer
. Default isServer
. - github
Account StringName - The name for a connection to a GitHub account.
- linked
To BooleanGithub - Whether the user has authenticated with GitHub for the specified application.
- name String
- The name of the application.
- Map<String>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import CodeDeploy Applications using the name
. For example:
$ pulumi import aws:codedeploy/application:Application example my-application
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.