1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cs
  5. Application
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

alicloud.cs.Application

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

    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, Any]] = 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.

    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", "any" },
        },
        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.Map{
    		"string": pulumi.Any("any"),
    	},
    	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", "any"))
        .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": "any",
        },
        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: "any",
        },
        latestImage: false,
        name: "string",
        version: "string",
    });
    
    type: alicloud:cs:Application
    properties:
        blueGreen: false
        blueGreenConfirm: false
        clusterName: string
        description: string
        environment:
            string: any
        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:

    ClusterName string
    Template string
    BlueGreen bool
    BlueGreenConfirm bool
    Description string
    Environment Dictionary<string, object>
    LatestImage bool
    Name string
    Version string
    ClusterName string
    Template string
    BlueGreen bool
    BlueGreenConfirm bool
    Description string
    Environment map[string]interface{}
    LatestImage bool
    Name string
    Version string
    clusterName String
    template String
    blueGreen Boolean
    blueGreenConfirm Boolean
    description String
    environment Map<String,Object>
    latestImage Boolean
    name String
    version String
    clusterName string
    template string
    blueGreen boolean
    blueGreenConfirm boolean
    description string
    environment {[key: string]: any}
    latestImage boolean
    name string
    version string
    clusterName String
    template String
    blueGreen Boolean
    blueGreenConfirm Boolean
    description String
    environment Map<Any>
    latestImage Boolean
    name String
    version String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:

    DefaultDomain string
    Id string
    The provider-assigned unique ID for this managed resource.
    Services List<Pulumi.AliCloud.CS.Outputs.ApplicationService>
    DefaultDomain string
    Id string
    The provider-assigned unique ID for this managed resource.
    Services []ApplicationService
    defaultDomain String
    id String
    The provider-assigned unique ID for this managed resource.
    services List<ApplicationService>
    defaultDomain string
    id string
    The provider-assigned unique ID for this managed resource.
    services ApplicationService[]
    default_domain str
    id str
    The provider-assigned unique ID for this managed resource.
    services Sequence[ApplicationService]
    defaultDomain 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, Any]] = 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.
    The following state arguments are supported:
    blueGreen boolean
    blueGreenConfirm boolean
    clusterName string
    defaultDomain string
    description string
    environment {[key: string]: any}
    latestImage boolean
    name string
    services ApplicationService[]
    template string
    version string

    Supporting Types

    ApplicationService, ApplicationServiceArgs

    Id string
    Name string
    Status string
    Version string
    Id string
    Name string
    Status string
    Version string
    id String
    name String
    status String
    version String
    id string
    name string
    status string
    version string
    id str
    name str
    status str
    version str
    id String
    name String
    status String
    version String

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi