aws.servicecatalog.getProduct
Explore with Pulumi AI
Use this data source to retrieve information about a Service Catalog product.
NOTE: A “provisioning artifact” is also known as a “version,” and a “distributor” is also known as a “vendor.”
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.servicecatalog.getProduct({
id: "prod-dnigbtea24ste",
});
import pulumi
import pulumi_aws as aws
example = aws.servicecatalog.get_product(id="prod-dnigbtea24ste")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.ServiceCatalog.GetProduct.Invoke(new()
{
Id = "prod-dnigbtea24ste",
});
});
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.servicecatalog.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());
}
}
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
ID of the product.
The following arguments are optional:
- Accept
Language string - Language code. Valid values are
en
(English),jp
(Japanese),zh
(Chinese). The default value isen
. - Dictionary<string, string>
- Tags applied to the product.
- Id string
ID of the product.
The following arguments are optional:
- Accept
Language string - Language code. Valid values are
en
(English),jp
(Japanese),zh
(Chinese). The default value isen
. - map[string]string
- Tags applied to the product.
- id String
ID of the product.
The following arguments are optional:
- accept
Language String - Language code. Valid values are
en
(English),jp
(Japanese),zh
(Chinese). The default value isen
. - Map<String,String>
- Tags applied to the product.
- id string
ID of the product.
The following arguments are optional:
- accept
Language string - Language code. Valid values are
en
(English),jp
(Japanese),zh
(Chinese). The default value isen
. - {[key: string]: string}
- Tags applied to the product.
- id str
ID of the product.
The following arguments are optional:
- accept_
language str - Language code. Valid values are
en
(English),jp
(Japanese),zh
(Chinese). The default value isen
. - Mapping[str, str]
- Tags applied to the product.
- id String
ID of the product.
The following arguments are optional:
- accept
Language String - Language code. Valid values are
en
(English),jp
(Japanese),zh
(Chinese). The default value isen
. - Map<String>
- Tags applied to the product.
getProduct Result
The following output properties are available:
- Arn string
- ARN of the product.
- Created
Time string - Time when the product was created.
- Description string
- Description of the product.
- Distributor string
- Vendor of the product.
- Has
Default boolPath - 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.
- Support
Description string - Field that provides support information about the product.
- Support
Email string - Contact email for product support.
- Support
Url string - Contact URL for product support.
- Dictionary<string, string>
- Tags applied to the product.
- Type string
- Type of product.
- Accept
Language string
- Arn string
- ARN of the product.
- Created
Time string - Time when the product was created.
- Description string
- Description of the product.
- Distributor string
- Vendor of the product.
- Has
Default boolPath - 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.
- Support
Description string - Field that provides support information about the product.
- Support
Email string - Contact email for product support.
- Support
Url string - Contact URL for product support.
- map[string]string
- Tags applied to the product.
- Type string
- Type of product.
- Accept
Language string
- arn String
- ARN of the product.
- created
Time String - Time when the product was created.
- description String
- Description of the product.
- distributor String
- Vendor of the product.
- has
Default BooleanPath - 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.
- support
Description String - Field that provides support information about the product.
- support
Email String - Contact email for product support.
- support
Url String - Contact URL for product support.
- Map<String,String>
- Tags applied to the product.
- type String
- Type of product.
- accept
Language String
- arn string
- ARN of the product.
- created
Time string - Time when the product was created.
- description string
- Description of the product.
- distributor string
- Vendor of the product.
- has
Default booleanPath - 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.
- support
Description string - Field that provides support information about the product.
- support
Email string - Contact email for product support.
- support
Url string - Contact URL for product support.
- {[key: string]: string}
- Tags applied to the product.
- type string
- Type of product.
- accept
Language string
- arn str
- ARN of the product.
- created_
time str - Time when the product was created.
- description str
- Description of the product.
- distributor str
- Vendor of the product.
- has_
default_ boolpath - 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 - Field that provides support information about the product.
- support_
email str - Contact email for product support.
- support_
url str - Contact URL for product support.
- Mapping[str, str]
- Tags applied to the product.
- type str
- Type of product.
- accept_
language str
- arn String
- ARN of the product.
- created
Time String - Time when the product was created.
- description String
- Description of the product.
- distributor String
- Vendor of the product.
- has
Default BooleanPath - 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.
- support
Description String - Field that provides support information about the product.
- support
Email String - Contact email for product support.
- support
Url String - Contact URL for product support.
- Map<String>
- Tags applied to the product.
- type String
- Type of product.
- accept
Language String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.