1. Packages
  2. AWS
  3. API Docs
  4. servicecatalog
  5. getProduct
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.servicecatalog.getProduct

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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:

    AcceptLanguage string
    Language code. Valid values are en (English), jp (Japanese), zh (Chinese). The default value is en.
    Tags Dictionary<string, string>
    Tags applied to the product.
    Id string

    ID of the product.

    The following arguments are optional:

    AcceptLanguage string
    Language code. Valid values are en (English), jp (Japanese), zh (Chinese). The default value is en.
    Tags map[string]string
    Tags applied to the product.
    id String

    ID of the product.

    The following arguments are optional:

    acceptLanguage String
    Language code. Valid values are en (English), jp (Japanese), zh (Chinese). The default value is en.
    tags Map<String,String>
    Tags applied to the product.
    id string

    ID of the product.

    The following arguments are optional:

    acceptLanguage string
    Language code. Valid values are en (English), jp (Japanese), zh (Chinese). The default value is en.
    tags {[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 is en.
    tags Mapping[str, str]
    Tags applied to the product.
    id String

    ID of the product.

    The following arguments are optional:

    acceptLanguage String
    Language code. Valid values are en (English), jp (Japanese), zh (Chinese). The default value is en.
    tags Map<String>
    Tags applied 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
    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
    Field that provides support information about the product.
    SupportEmail string
    Contact email for product support.
    SupportUrl string
    Contact URL for product support.
    Tags Dictionary<string, string>
    Tags applied 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
    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
    Field that provides support information about the product.
    SupportEmail string
    Contact email for product support.
    SupportUrl string
    Contact URL for product support.
    Tags map[string]string
    Tags applied 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
    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
    Field that provides support information about the product.
    supportEmail String
    Contact email for product support.
    supportUrl String
    Contact URL for product support.
    tags Map<String,String>
    Tags applied 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
    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
    Field that provides support information about the product.
    supportEmail string
    Contact email for product support.
    supportUrl string
    Contact URL for product support.
    tags {[key: string]: string}
    Tags applied 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
    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
    Field that provides 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 applied 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
    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
    Field that provides support information about the product.
    supportEmail String
    Contact email for product support.
    supportUrl String
    Contact URL for product support.
    tags Map<String>
    Tags applied to the product.
    type String
    Type of product.
    acceptLanguage String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi