Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.servicecatalog.getLaunchOptions
Explore with Pulumi AI
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:
- Product
Id string - Product ID.
- Ids List<string>
- A list of Launch Option IDs.
- Name
Regex string - A regex string to filter results by portfolio name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Product
Id string - Product ID.
- Ids []string
- A list of Launch Option IDs.
- Name
Regex string - A regex string to filter results by portfolio name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- product
Id String - Product ID.
- ids List<String>
- A list of Launch Option IDs.
- name
Regex String - A regex string to filter results by portfolio name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- product
Id string - Product ID.
- ids string[]
- A list of Launch Option IDs.
- name
Regex string - A regex string to filter results by portfolio name.
- output
File 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
).
- product
Id String - Product ID.
- ids List<String>
- A list of Launch Option IDs.
- name
Regex String - A regex string to filter results by portfolio name.
- output
File 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>
- Launch
Options List<Pulumi.Ali Cloud. Service Catalog. Outputs. Get Launch Options Launch Option> - (Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- Options
List<Pulumi.
Ali Cloud. Service Catalog. Outputs. Get Launch Options Option> - (Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- Product
Id string - Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Launch
Options []GetLaunch Options Launch Option - (Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- Options
[]Get
Launch Options Option - (Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- Product
Id string - Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- launch
Options List<GetLaunch Options Launch Option> - (Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- options
List<Get
Launch Options Option> - (Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- product
Id String - name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- launch
Options GetLaunch Options Launch Option[] - (Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- options
Get
Launch Options Option[] - (Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- product
Id string - name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- launch_
options Sequence[GetLaunch Options Launch Option] - (Available since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- options
Sequence[Get
Launch Options Option] - (Deprecated since v1.197.0) A list of Launch Option Entries. Each element contains the following attributes:
- product_
id str - name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- launch
Options 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:
- product
Id String - name
Regex String - output
File String
Supporting Types
GetLaunchOptionsLaunchOption
- Constraint
Summaries List<Pulumi.Ali Cloud. Service Catalog. Inputs. Get Launch Options Launch Option Constraint Summary> - List of constraints.
- Id string
- ID of Service Catalog Launch Option.
- Portfolio
Id string - Product mix ID.
- Portfolio
Name string - Product portfolio name.
- Constraint
Summaries []GetLaunch Options Launch Option Constraint Summary - List of constraints.
- Id string
- ID of Service Catalog Launch Option.
- Portfolio
Id string - Product mix ID.
- Portfolio
Name string - Product portfolio name.
- constraint
Summaries List<GetLaunch Options Launch Option Constraint Summary> - List of constraints.
- id String
- ID of Service Catalog Launch Option.
- portfolio
Id String - Product mix ID.
- portfolio
Name String - Product portfolio name.
- constraint
Summaries GetLaunch Options Launch Option Constraint Summary[] - List of constraints.
- id string
- ID of Service Catalog Launch Option.
- portfolio
Id string - Product mix ID.
- portfolio
Name string - Product portfolio name.
- constraint_
summaries Sequence[GetLaunch Options Launch Option Constraint Summary] - List of constraints.
- id str
- ID of Service Catalog Launch Option.
- portfolio_
id str - Product mix ID.
- portfolio_
name str - Product portfolio name.
- constraint
Summaries List<Property Map> - List of constraints.
- id String
- ID of Service Catalog Launch Option.
- portfolio
Id String - Product mix ID.
- portfolio
Name String - Product portfolio name.
GetLaunchOptionsLaunchOptionConstraintSummary
- Constraint
Type string - Constraint type.The value is Launch, which indicates that the constraint is started.
- Description string
- Constraint description.
- Constraint
Type string - Constraint type.The value is Launch, which indicates that the constraint is started.
- Description string
- Constraint description.
- constraint
Type String - Constraint type.The value is Launch, which indicates that the constraint is started.
- description String
- Constraint description.
- constraint
Type 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.
- constraint
Type String - Constraint type.The value is Launch, which indicates that the constraint is started.
- description String
- Constraint description.
GetLaunchOptionsOption
- Constraint
Summaries List<Pulumi.Ali Cloud. Service Catalog. Inputs. Get Launch Options Option Constraint Summary> - List of constraints.
- Id string
- ID of Service Catalog Launch Option.
- Portfolio
Id string - Product mix ID.
- Portfolio
Name string - Product portfolio name.
- Constraint
Summaries []GetLaunch Options Option Constraint Summary - List of constraints.
- Id string
- ID of Service Catalog Launch Option.
- Portfolio
Id string - Product mix ID.
- Portfolio
Name string - Product portfolio name.
- constraint
Summaries List<GetLaunch Options Option Constraint Summary> - List of constraints.
- id String
- ID of Service Catalog Launch Option.
- portfolio
Id String - Product mix ID.
- portfolio
Name String - Product portfolio name.
- constraint
Summaries GetLaunch Options Option Constraint Summary[] - List of constraints.
- id string
- ID of Service Catalog Launch Option.
- portfolio
Id string - Product mix ID.
- portfolio
Name string - Product portfolio name.
- constraint_
summaries Sequence[GetLaunch Options Option Constraint Summary] - List of constraints.
- id str
- ID of Service Catalog Launch Option.
- portfolio_
id str - Product mix ID.
- portfolio_
name str - Product portfolio name.
- constraint
Summaries List<Property Map> - List of constraints.
- id String
- ID of Service Catalog Launch Option.
- portfolio
Id String - Product mix ID.
- portfolio
Name String - Product portfolio name.
GetLaunchOptionsOptionConstraintSummary
- Constraint
Type string - Constraint type.The value is Launch, which indicates that the constraint is started.
- Description string
- Constraint description.
- Constraint
Type string - Constraint type.The value is Launch, which indicates that the constraint is started.
- Description string
- Constraint description.
- constraint
Type String - Constraint type.The value is Launch, which indicates that the constraint is started.
- description String
- Constraint description.
- constraint
Type 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.
- constraint
Type 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.