Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.cs.Application
Explore with Pulumi AI
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: ApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Application(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
template: Optional[str] = None,
blue_green: Optional[bool] = None,
blue_green_confirm: Optional[bool] = None,
description: Optional[str] = None,
environment: Optional[Mapping[str, str]] = None,
latest_image: Optional[bool] = None,
name: Optional[str] = None,
version: Optional[str] = None)
func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: alicloud:cs: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 applicationResource = new AliCloud.CS.Application("applicationResource", new()
{
ClusterName = "string",
Template = "string",
BlueGreen = false,
BlueGreenConfirm = false,
Description = "string",
Environment =
{
{ "string", "string" },
},
LatestImage = false,
Name = "string",
Version = "string",
});
example, err := cs.NewApplication(ctx, "applicationResource", &cs.ApplicationArgs{
ClusterName: pulumi.String("string"),
Template: pulumi.String("string"),
BlueGreen: pulumi.Bool(false),
BlueGreenConfirm: pulumi.Bool(false),
Description: pulumi.String("string"),
Environment: pulumi.StringMap{
"string": pulumi.String("string"),
},
LatestImage: pulumi.Bool(false),
Name: pulumi.String("string"),
Version: pulumi.String("string"),
})
var applicationResource = new Application("applicationResource", ApplicationArgs.builder()
.clusterName("string")
.template("string")
.blueGreen(false)
.blueGreenConfirm(false)
.description("string")
.environment(Map.of("string", "string"))
.latestImage(false)
.name("string")
.version("string")
.build());
application_resource = alicloud.cs.Application("applicationResource",
cluster_name="string",
template="string",
blue_green=False,
blue_green_confirm=False,
description="string",
environment={
"string": "string",
},
latest_image=False,
name="string",
version="string")
const applicationResource = new alicloud.cs.Application("applicationResource", {
clusterName: "string",
template: "string",
blueGreen: false,
blueGreenConfirm: false,
description: "string",
environment: {
string: "string",
},
latestImage: false,
name: "string",
version: "string",
});
type: alicloud:cs:Application
properties:
blueGreen: false
blueGreenConfirm: false
clusterName: string
description: string
environment:
string: string
latestImage: false
name: string
template: string
version: 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
The Application resource accepts the following input properties:
- Cluster
Name string - Template string
- Blue
Green bool - Blue
Green boolConfirm - Description string
- Environment Dictionary<string, string>
- Latest
Image bool - Name string
- Version string
- Cluster
Name string - Template string
- Blue
Green bool - Blue
Green boolConfirm - Description string
- Environment map[string]string
- Latest
Image bool - Name string
- Version string
- cluster
Name String - template String
- blue
Green Boolean - blue
Green BooleanConfirm - description String
- environment Map<String,String>
- latest
Image Boolean - name String
- version String
- cluster
Name string - template string
- blue
Green boolean - blue
Green booleanConfirm - description string
- environment {[key: string]: string}
- latest
Image boolean - name string
- version string
- cluster_
name str - template str
- blue_
green bool - blue_
green_ boolconfirm - description str
- environment Mapping[str, str]
- latest_
image bool - name str
- version str
- cluster
Name String - template String
- blue
Green Boolean - blue
Green BooleanConfirm - description String
- environment Map<String>
- latest
Image Boolean - name String
- version String
Outputs
All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:
- Default
Domain string - Id string
- The provider-assigned unique ID for this managed resource.
- Services
List<Pulumi.
Ali Cloud. CS. Outputs. Application Service>
- Default
Domain string - Id string
- The provider-assigned unique ID for this managed resource.
- Services
[]Application
Service
- default
Domain String - id String
- The provider-assigned unique ID for this managed resource.
- services
List<Application
Service>
- default
Domain string - id string
- The provider-assigned unique ID for this managed resource.
- services
Application
Service[]
- default_
domain str - id str
- The provider-assigned unique ID for this managed resource.
- services
Sequence[Application
Service]
- default
Domain String - id String
- The provider-assigned unique ID for this managed resource.
- services List<Property Map>
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,
blue_green: Optional[bool] = None,
blue_green_confirm: Optional[bool] = None,
cluster_name: Optional[str] = None,
default_domain: Optional[str] = None,
description: Optional[str] = None,
environment: Optional[Mapping[str, str]] = None,
latest_image: Optional[bool] = None,
name: Optional[str] = None,
services: Optional[Sequence[ApplicationServiceArgs]] = None,
template: Optional[str] = None,
version: Optional[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.
- Blue
Green bool - Blue
Green boolConfirm - Cluster
Name string - Default
Domain string - Description string
- Environment Dictionary<string, string>
- Latest
Image bool - Name string
- Services
List<Pulumi.
Ali Cloud. CS. Inputs. Application Service> - Template string
- Version string
- Blue
Green bool - Blue
Green boolConfirm - Cluster
Name string - Default
Domain string - Description string
- Environment map[string]string
- Latest
Image bool - Name string
- Services
[]Application
Service Args - Template string
- Version string
- blue
Green Boolean - blue
Green BooleanConfirm - cluster
Name String - default
Domain String - description String
- environment Map<String,String>
- latest
Image Boolean - name String
- services
List<Application
Service> - template String
- version String
- blue
Green boolean - blue
Green booleanConfirm - cluster
Name string - default
Domain string - description string
- environment {[key: string]: string}
- latest
Image boolean - name string
- services
Application
Service[] - template string
- version string
- blue_
green bool - blue_
green_ boolconfirm - cluster_
name str - default_
domain str - description str
- environment Mapping[str, str]
- latest_
image bool - name str
- services
Sequence[Application
Service Args] - template str
- version str
- blue
Green Boolean - blue
Green BooleanConfirm - cluster
Name String - default
Domain String - description String
- environment Map<String>
- latest
Image Boolean - name String
- services List<Property Map>
- template String
- version String
Supporting Types
ApplicationService, ApplicationServiceArgs
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.