1. Packages
  2. Alicloud Provider
  3. API Docs
  4. servicecatalog
  5. getLaunchOptions
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.servicecatalog.getLaunchOptions

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 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);
    
    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)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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()));
        }
    }
    
    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}
    

    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>
    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]
    func GetLaunchOptions(ctx *Context, args *GetLaunchOptionsArgs, opts ...InvokeOption) (*GetLaunchOptionsResult, error)
    func GetLaunchOptionsOutput(ctx *Context, args *GetLaunchOptionsOutputArgs, opts ...InvokeOption) GetLaunchOptionsResultOutput

    > 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)
    }
    public static CompletableFuture<GetLaunchOptionsResult> getLaunchOptions(GetLaunchOptionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:servicecatalog/getLaunchOptions:getLaunchOptions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProductId string
    Product ID.
    Ids List<string>
    A list of Launch Option IDs.
    NameRegex 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 string
    Product ID.
    Ids []string
    A list of Launch Option IDs.
    NameRegex 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 String
    Product ID.
    ids List<String>
    A list of Launch Option IDs.
    nameRegex 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 string
    Product ID.
    ids string[]
    A list of Launch Option IDs.
    nameRegex 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 str
    Product ID.
    ids Sequence[str]
    A list of Launch Option IDs.
    name_regex 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 String
    Product ID.
    ids List<String>
    A list of Launch Option IDs.
    nameRegex 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 List<Pulumi.AliCloud.ServiceCatalog.Inputs.GetLaunchOptionsLaunchOptionConstraintSummary>
    List of constraints.
    Id string
    ID of Service Catalog Launch Option.
    PortfolioId string
    Product mix ID.
    PortfolioName string
    Product portfolio name.
    ConstraintSummaries []GetLaunchOptionsLaunchOptionConstraintSummary
    List of constraints.
    Id string
    ID of Service Catalog Launch Option.
    PortfolioId string
    Product mix ID.
    PortfolioName string
    Product portfolio name.
    constraintSummaries List<GetLaunchOptionsLaunchOptionConstraintSummary>
    List of constraints.
    id String
    ID of Service Catalog Launch Option.
    portfolioId String
    Product mix ID.
    portfolioName String
    Product portfolio name.
    constraintSummaries GetLaunchOptionsLaunchOptionConstraintSummary[]
    List of constraints.
    id string
    ID of Service Catalog Launch Option.
    portfolioId string
    Product mix ID.
    portfolioName string
    Product portfolio name.
    constraint_summaries Sequence[GetLaunchOptionsLaunchOptionConstraintSummary]
    List of constraints.
    id str
    ID of Service Catalog Launch Option.
    portfolio_id str
    Product mix ID.
    portfolio_name str
    Product portfolio name.
    constraintSummaries List<Property Map>
    List of constraints.
    id String
    ID of Service Catalog Launch Option.
    portfolioId String
    Product mix ID.
    portfolioName String
    Product portfolio name.

    GetLaunchOptionsLaunchOptionConstraintSummary

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

    GetLaunchOptionsOption

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

    GetLaunchOptionsOptionConstraintSummary

    ConstraintType string
    Constraint type.The value is Launch, which indicates that the constraint is started.
    Description string
    Constraint description.
    ConstraintType string
    Constraint type.The value is Launch, which indicates that the constraint is started.
    Description string
    Constraint description.
    constraintType String
    Constraint type.The value is Launch, which indicates that the constraint is started.
    description String
    Constraint description.
    constraintType string
    Constraint type.The value is Launch, which indicates that the constraint is started.
    description string
    Constraint description.
    constraint_type str
    Constraint type.The value is Launch, which indicates that the constraint is started.
    description str
    Constraint description.
    constraintType String
    Constraint type.The value is Launch, which indicates that the constraint is started.
    description 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.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi