AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.11.0 published on Wednesday, Aug 17, 2022 by Pulumi

getProduct

Provides information on a Service Catalog Product.

Tip: A “provisioning artifact” is also referred to as a “version.” A “distributor” is also referred to as a “vendor.”

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.ServiceCatalog.GetProduct.Invoke(new()
    {
        Id = "prod-dnigbtea24ste",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicecatalog.LookupProduct(ctx, &servicecatalog.LookupProductArgs{
			Id: "prod-dnigbtea24ste",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicecatalog.ServicecatalogFunctions;
import com.pulumi.aws.pricing.inputs.GetProductArgs;
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 example = ServicecatalogFunctions.getProduct(GetProductArgs.builder()
            .id("prod-dnigbtea24ste")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.servicecatalog.get_product(id="prod-dnigbtea24ste")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.servicecatalog.getProduct({
    id: "prod-dnigbtea24ste",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:servicecatalog:getProduct
      Arguments:
        id: prod-dnigbtea24ste

Using getProduct

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 getProduct(args: GetProductArgs, opts?: InvokeOptions): Promise<GetProductResult>
function getProductOutput(args: GetProductOutputArgs, opts?: InvokeOptions): Output<GetProductResult>
def get_product(accept_language: Optional[str] = None,
                id: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                opts: Optional[InvokeOptions] = None) -> GetProductResult
def get_product_output(accept_language: Optional[pulumi.Input[str]] = None,
                id: Optional[pulumi.Input[str]] = None,
                tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetProductResult]
func LookupProduct(ctx *Context, args *LookupProductArgs, opts ...InvokeOption) (*LookupProductResult, error)
func LookupProductOutput(ctx *Context, args *LookupProductOutputArgs, opts ...InvokeOption) LookupProductResultOutput

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

public static class GetProduct 
{
    public static Task<GetProductResult> InvokeAsync(GetProductArgs args, InvokeOptions? opts = null)
    public static Output<GetProductResult> Invoke(GetProductInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProductResult> getProduct(GetProductArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:servicecatalog/getProduct:getProduct
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Id string

Product ID.

AcceptLanguage string

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

Tags Dictionary<string, string>

Tags to apply to the product.

Id string

Product ID.

AcceptLanguage string

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

Tags map[string]string

Tags to apply to the product.

id String

Product ID.

acceptLanguage String

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

tags Map<String,String>

Tags to apply to the product.

id string

Product ID.

acceptLanguage string

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

tags {[key: string]: string}

Tags to apply to the product.

id str

Product ID.

accept_language str

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

tags Mapping[str, str]

Tags to apply to the product.

id String

Product ID.

acceptLanguage String

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

tags Map<String>

Tags to apply to the product.

getProduct Result

The following output properties are available:

Arn string

ARN of the product.

CreatedTime string

Time when the product was created.

Description string

Description of the product.

Distributor string

Distributor (i.e., vendor) of the product.

HasDefaultPath bool

Whether the product has a default path.

Id string
Name string

Name of the product.

Owner string

Owner of the product.

Status string

Status of the product.

SupportDescription string

Support information about the product.

SupportEmail string

Contact email for product support.

SupportUrl string

Contact URL for product support.

Tags Dictionary<string, string>

Tags to apply to the product.

Type string

Type of product.

AcceptLanguage string
Arn string

ARN of the product.

CreatedTime string

Time when the product was created.

Description string

Description of the product.

Distributor string

Distributor (i.e., vendor) of the product.

HasDefaultPath bool

Whether the product has a default path.

Id string
Name string

Name of the product.

Owner string

Owner of the product.

Status string

Status of the product.

SupportDescription string

Support information about the product.

SupportEmail string

Contact email for product support.

SupportUrl string

Contact URL for product support.

Tags map[string]string

Tags to apply to the product.

Type string

Type of product.

AcceptLanguage string
arn String

ARN of the product.

createdTime String

Time when the product was created.

description String

Description of the product.

distributor String

Distributor (i.e., vendor) of the product.

hasDefaultPath Boolean

Whether the product has a default path.

id String
name String

Name of the product.

owner String

Owner of the product.

status String

Status of the product.

supportDescription String

Support information about the product.

supportEmail String

Contact email for product support.

supportUrl String

Contact URL for product support.

tags Map<String,String>

Tags to apply to the product.

type String

Type of product.

acceptLanguage String
arn string

ARN of the product.

createdTime string

Time when the product was created.

description string

Description of the product.

distributor string

Distributor (i.e., vendor) of the product.

hasDefaultPath boolean

Whether the product has a default path.

id string
name string

Name of the product.

owner string

Owner of the product.

status string

Status of the product.

supportDescription string

Support information about the product.

supportEmail string

Contact email for product support.

supportUrl string

Contact URL for product support.

tags {[key: string]: string}

Tags to apply to the product.

type string

Type of product.

acceptLanguage string
arn str

ARN of the product.

created_time str

Time when the product was created.

description str

Description of the product.

distributor str

Distributor (i.e., vendor) of the product.

has_default_path bool

Whether the product has a default path.

id str
name str

Name of the product.

owner str

Owner of the product.

status str

Status of the product.

support_description str

Support information about the product.

support_email str

Contact email for product support.

support_url str

Contact URL for product support.

tags Mapping[str, str]

Tags to apply to the product.

type str

Type of product.

accept_language str
arn String

ARN of the product.

createdTime String

Time when the product was created.

description String

Description of the product.

distributor String

Distributor (i.e., vendor) of the product.

hasDefaultPath Boolean

Whether the product has a default path.

id String
name String

Name of the product.

owner String

Owner of the product.

status String

Status of the product.

supportDescription String

Support information about the product.

supportEmail String

Contact email for product support.

supportUrl String

Contact URL for product support.

tags Map<String>

Tags to apply to the product.

type String

Type of product.

acceptLanguage String

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.