1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. servicecatalog
  5. getLaunchOptions
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.servicecatalog.getLaunchOptions

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides Service Catalog Launch Option available to the user. What is Launch Option.

NOTE: Available since v1.196.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.servicecatalog.getEndUserProducts({
    nameRegex: "ram模板创建",
});
const defaultGetLaunchOptions = alicloud.servicecatalog.getLaunchOptions({
    productId: "data.alicloud_service_catalog_end_user_products.default.end_user_products.0.id",
});
export const alicloudServiceCatalogLaunchOptionExampleId = defaultGetLaunchOptions.then(defaultGetLaunchOptions => defaultGetLaunchOptions.launchOptions?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.servicecatalog.get_end_user_products(name_regex="ram模板创建")
default_get_launch_options = alicloud.servicecatalog.get_launch_options(product_id="data.alicloud_service_catalog_end_user_products.default.end_user_products.0.id")
pulumi.export("alicloudServiceCatalogLaunchOptionExampleId", default_get_launch_options.launch_options[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/servicecatalog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicecatalog.GetEndUserProducts(ctx, &servicecatalog.GetEndUserProductsArgs{
			NameRegex: pulumi.StringRef("ram模板创建"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetLaunchOptions, err := servicecatalog.GetLaunchOptions(ctx, &servicecatalog.GetLaunchOptionsArgs{
			ProductId: "data.alicloud_service_catalog_end_user_products.default.end_user_products.0.id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("alicloudServiceCatalogLaunchOptionExampleId", defaultGetLaunchOptions.LaunchOptions[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.ServiceCatalog.GetEndUserProducts.Invoke(new()
    {
        NameRegex = "ram模板创建",
    });

    var defaultGetLaunchOptions = AliCloud.ServiceCatalog.GetLaunchOptions.Invoke(new()
    {
        ProductId = "data.alicloud_service_catalog_end_user_products.default.end_user_products.0.id",
    });

    return new Dictionary<string, object?>
    {
        ["alicloudServiceCatalogLaunchOptionExampleId"] = defaultGetLaunchOptions.Apply(getLaunchOptionsResult => getLaunchOptionsResult.LaunchOptions[0]?.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.servicecatalog.ServicecatalogFunctions;
import com.pulumi.alicloud.servicecatalog.inputs.GetEndUserProductsArgs;
import com.pulumi.alicloud.servicecatalog.inputs.GetLaunchOptionsArgs;
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) {
        final var default = ServicecatalogFunctions.getEndUserProducts(GetEndUserProductsArgs.builder()
            .nameRegex("ram模板创建")
            .build());

        final var defaultGetLaunchOptions = ServicecatalogFunctions.getLaunchOptions(GetLaunchOptionsArgs.builder()
            .productId("data.alicloud_service_catalog_end_user_products.default.end_user_products.0.id")
            .build());

        ctx.export("alicloudServiceCatalogLaunchOptionExampleId", defaultGetLaunchOptions.applyValue(getLaunchOptionsResult -> getLaunchOptionsResult.launchOptions()[0].id()));
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:servicecatalog:getEndUserProducts
      arguments:
        nameRegex: ram模板创建
  defaultGetLaunchOptions:
    fn::invoke:
      function: alicloud:servicecatalog:getLaunchOptions
      arguments:
        productId: data.alicloud_service_catalog_end_user_products.default.end_user_products.0.id
outputs:
  alicloudServiceCatalogLaunchOptionExampleId: ${defaultGetLaunchOptions.launchOptions[0].id}
Copy

Using getLaunchOptions

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getLaunchOptions(args: GetLaunchOptionsArgs, opts?: InvokeOptions): Promise<GetLaunchOptionsResult>
function getLaunchOptionsOutput(args: GetLaunchOptionsOutputArgs, opts?: InvokeOptions): Output<GetLaunchOptionsResult>
Copy
def get_launch_options(ids: Optional[Sequence[str]] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       product_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetLaunchOptionsResult
def get_launch_options_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       product_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetLaunchOptionsResult]
Copy
func GetLaunchOptions(ctx *Context, args *GetLaunchOptionsArgs, opts ...InvokeOption) (*GetLaunchOptionsResult, error)
func GetLaunchOptionsOutput(ctx *Context, args *GetLaunchOptionsOutputArgs, opts ...InvokeOption) GetLaunchOptionsResultOutput
Copy

> Note: This function is named GetLaunchOptions in the Go SDK.

public static class GetLaunchOptions 
{
    public static Task<GetLaunchOptionsResult> InvokeAsync(GetLaunchOptionsArgs args, InvokeOptions? opts = null)
    public static Output<GetLaunchOptionsResult> Invoke(GetLaunchOptionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLaunchOptionsResult> getLaunchOptions(GetLaunchOptionsArgs args, InvokeOptions options)
public static Output<GetLaunchOptionsResult> getLaunchOptions(GetLaunchOptionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:servicecatalog/getLaunchOptions:getLaunchOptions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProductId
This property is required.
Changes to this property will trigger replacement.
string
Product ID.
Ids List<string>
A list of Launch Option IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by portfolio name.
OutputFile string
File name where to save data source results (after running pulumi preview).
ProductId
This property is required.
Changes to this property will trigger replacement.
string
Product ID.
Ids []string
A list of Launch Option IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by portfolio name.
OutputFile string
File name where to save data source results (after running pulumi preview).
productId
This property is required.
Changes to this property will trigger replacement.
String
Product ID.
ids List<String>
A list of Launch Option IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by portfolio name.
outputFile String
File name where to save data source results (after running pulumi preview).
productId
This property is required.
Changes to this property will trigger replacement.
string
Product ID.
ids string[]
A list of Launch Option IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by portfolio name.
outputFile string
File name where to save data source results (after running pulumi preview).
product_id
This property is required.
Changes to this property will trigger replacement.
str
Product ID.
ids Sequence[str]
A list of Launch Option IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by portfolio name.
output_file str
File name where to save data source results (after running pulumi preview).
productId
This property is required.
Changes to this property will trigger replacement.
String
Product ID.
ids List<String>
A list of Launch Option IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by portfolio name.
outputFile String
File name where to save data source results (after running pulumi preview).

getLaunchOptions Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
LaunchOptions List<Pulumi.AliCloud.ServiceCatalog.Outputs.GetLaunchOptionsLaunchOption>
(Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
Options List<Pulumi.AliCloud.ServiceCatalog.Outputs.GetLaunchOptionsOption>
(Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:

Deprecated: Field 'options' has been deprecated from provider version 1.197.0.

ProductId string
NameRegex string
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
LaunchOptions []GetLaunchOptionsLaunchOption
(Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
Options []GetLaunchOptionsOption
(Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:

Deprecated: Field 'options' has been deprecated from provider version 1.197.0.

ProductId string
NameRegex string
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
launchOptions List<GetLaunchOptionsLaunchOption>
(Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
options List<GetLaunchOptionsOption>
(Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:

Deprecated: Field 'options' has been deprecated from provider version 1.197.0.

productId String
nameRegex String
outputFile String
id string
The provider-assigned unique ID for this managed resource.
ids string[]
launchOptions GetLaunchOptionsLaunchOption[]
(Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
options GetLaunchOptionsOption[]
(Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:

Deprecated: Field 'options' has been deprecated from provider version 1.197.0.

productId string
nameRegex string
outputFile string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
launch_options Sequence[GetLaunchOptionsLaunchOption]
(Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
options Sequence[GetLaunchOptionsOption]
(Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:

Deprecated: Field 'options' has been deprecated from provider version 1.197.0.

product_id str
name_regex str
output_file str
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
launchOptions List<Property Map>
(Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
options List<Property Map>
(Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:

Deprecated: Field 'options' has been deprecated from provider version 1.197.0.

productId String
nameRegex String
outputFile String

Supporting Types

GetLaunchOptionsLaunchOption

ConstraintSummaries This property is required. List<Pulumi.AliCloud.ServiceCatalog.Inputs.GetLaunchOptionsLaunchOptionConstraintSummary>
List of constraints.
Id This property is required. string
ID of Service Catalog Launch Option.
PortfolioId This property is required. string
Product mix ID.
PortfolioName This property is required. string
Product portfolio name.
ConstraintSummaries This property is required. []GetLaunchOptionsLaunchOptionConstraintSummary
List of constraints.
Id This property is required. string
ID of Service Catalog Launch Option.
PortfolioId This property is required. string
Product mix ID.
PortfolioName This property is required. string
Product portfolio name.
constraintSummaries This property is required. List<GetLaunchOptionsLaunchOptionConstraintSummary>
List of constraints.
id This property is required. String
ID of Service Catalog Launch Option.
portfolioId This property is required. String
Product mix ID.
portfolioName This property is required. String
Product portfolio name.
constraintSummaries This property is required. GetLaunchOptionsLaunchOptionConstraintSummary[]
List of constraints.
id This property is required. string
ID of Service Catalog Launch Option.
portfolioId This property is required. string
Product mix ID.
portfolioName This property is required. string
Product portfolio name.
constraint_summaries This property is required. Sequence[GetLaunchOptionsLaunchOptionConstraintSummary]
List of constraints.
id This property is required. str
ID of Service Catalog Launch Option.
portfolio_id This property is required. str
Product mix ID.
portfolio_name This property is required. str
Product portfolio name.
constraintSummaries This property is required. List<Property Map>
List of constraints.
id This property is required. String
ID of Service Catalog Launch Option.
portfolioId This property is required. String
Product mix ID.
portfolioName This property is required. String
Product portfolio name.

GetLaunchOptionsLaunchOptionConstraintSummary

ConstraintType This property is required. string
Constraint type.The value is Launch, which indicates that the constraint is started.
Description This property is required. string
Constraint description.
ConstraintType This property is required. string
Constraint type.The value is Launch, which indicates that the constraint is started.
Description This property is required. string
Constraint description.
constraintType This property is required. String
Constraint type.The value is Launch, which indicates that the constraint is started.
description This property is required. String
Constraint description.
constraintType This property is required. string
Constraint type.The value is Launch, which indicates that the constraint is started.
description This property is required. string
Constraint description.
constraint_type This property is required. str
Constraint type.The value is Launch, which indicates that the constraint is started.
description This property is required. str
Constraint description.
constraintType This property is required. String
Constraint type.The value is Launch, which indicates that the constraint is started.
description This property is required. String
Constraint description.

GetLaunchOptionsOption

ConstraintSummaries This property is required. List<Pulumi.AliCloud.ServiceCatalog.Inputs.GetLaunchOptionsOptionConstraintSummary>
List of constraints.
Id This property is required. string
ID of Service Catalog Launch Option.
PortfolioId This property is required. string
Product mix ID.
PortfolioName This property is required. string
Product portfolio name.
ConstraintSummaries This property is required. []GetLaunchOptionsOptionConstraintSummary
List of constraints.
Id This property is required. string
ID of Service Catalog Launch Option.
PortfolioId This property is required. string
Product mix ID.
PortfolioName This property is required. string
Product portfolio name.
constraintSummaries This property is required. List<GetLaunchOptionsOptionConstraintSummary>
List of constraints.
id This property is required. String
ID of Service Catalog Launch Option.
portfolioId This property is required. String
Product mix ID.
portfolioName This property is required. String
Product portfolio name.
constraintSummaries This property is required. GetLaunchOptionsOptionConstraintSummary[]
List of constraints.
id This property is required. string
ID of Service Catalog Launch Option.
portfolioId This property is required. string
Product mix ID.
portfolioName This property is required. string
Product portfolio name.
constraint_summaries This property is required. Sequence[GetLaunchOptionsOptionConstraintSummary]
List of constraints.
id This property is required. str
ID of Service Catalog Launch Option.
portfolio_id This property is required. str
Product mix ID.
portfolio_name This property is required. str
Product portfolio name.
constraintSummaries This property is required. List<Property Map>
List of constraints.
id This property is required. String
ID of Service Catalog Launch Option.
portfolioId This property is required. String
Product mix ID.
portfolioName This property is required. String
Product portfolio name.

GetLaunchOptionsOptionConstraintSummary

ConstraintType This property is required. string
Constraint type.The value is Launch, which indicates that the constraint is started.
Description This property is required. string
Constraint description.
ConstraintType This property is required. string
Constraint type.The value is Launch, which indicates that the constraint is started.
Description This property is required. string
Constraint description.
constraintType This property is required. String
Constraint type.The value is Launch, which indicates that the constraint is started.
description This property is required. String
Constraint description.
constraintType This property is required. string
Constraint type.The value is Launch, which indicates that the constraint is started.
description This property is required. string
Constraint description.
constraint_type This property is required. str
Constraint type.The value is Launch, which indicates that the constraint is started.
description This property is required. str
Constraint description.
constraintType This property is required. String
Constraint type.The value is Launch, which indicates that the constraint is started.
description This property is required. String
Constraint description.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi