1. Packages
  2. AWS Classic
  3. API Docs
  4. servicecatalog
  5. getPortfolio

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

aws.servicecatalog.getPortfolio

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

    Provides information for a Service Catalog Portfolio.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const portfolio = aws.servicecatalog.getPortfolio({
        id: "port-07052002",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    portfolio = aws.servicecatalog.get_portfolio(id="port-07052002")
    
    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.LookupPortfolio(ctx, &servicecatalog.LookupPortfolioArgs{
    			Id: "port-07052002",
    		}, 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 portfolio = Aws.ServiceCatalog.GetPortfolio.Invoke(new()
        {
            Id = "port-07052002",
        });
    
    });
    
    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.GetPortfolioArgs;
    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 portfolio = ServicecatalogFunctions.getPortfolio(GetPortfolioArgs.builder()
                .id("port-07052002")
                .build());
    
        }
    }
    
    variables:
      portfolio:
        fn::invoke:
          Function: aws:servicecatalog:getPortfolio
          Arguments:
            id: port-07052002
    

    Using getPortfolio

    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 getPortfolio(args: GetPortfolioArgs, opts?: InvokeOptions): Promise<GetPortfolioResult>
    function getPortfolioOutput(args: GetPortfolioOutputArgs, opts?: InvokeOptions): Output<GetPortfolioResult>
    def get_portfolio(accept_language: Optional[str] = None,
                      id: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      opts: Optional[InvokeOptions] = None) -> GetPortfolioResult
    def get_portfolio_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[GetPortfolioResult]
    func LookupPortfolio(ctx *Context, args *LookupPortfolioArgs, opts ...InvokeOption) (*LookupPortfolioResult, error)
    func LookupPortfolioOutput(ctx *Context, args *LookupPortfolioOutputArgs, opts ...InvokeOption) LookupPortfolioResultOutput

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

    public static class GetPortfolio 
    {
        public static Task<GetPortfolioResult> InvokeAsync(GetPortfolioArgs args, InvokeOptions? opts = null)
        public static Output<GetPortfolioResult> Invoke(GetPortfolioInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPortfolioResult> getPortfolio(GetPortfolioArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:servicecatalog/getPortfolio:getPortfolio
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string

    Portfolio identifier.

    The following arguments are optional:

    AcceptLanguage string
    Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.
    Tags Dictionary<string, string>
    Tags applied to the portfolio.
    Id string

    Portfolio identifier.

    The following arguments are optional:

    AcceptLanguage string
    Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.
    Tags map[string]string
    Tags applied to the portfolio.
    id String

    Portfolio identifier.

    The following arguments are optional:

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

    Portfolio identifier.

    The following arguments are optional:

    acceptLanguage string
    Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.
    tags {[key: string]: string}
    Tags applied to the portfolio.
    id str

    Portfolio identifier.

    The following arguments are optional:

    accept_language str
    Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.
    tags Mapping[str, str]
    Tags applied to the portfolio.
    id String

    Portfolio identifier.

    The following arguments are optional:

    acceptLanguage String
    Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.
    tags Map<String>
    Tags applied to the portfolio.

    getPortfolio Result

    The following output properties are available:

    Arn string
    Portfolio ARN.
    CreatedTime string
    Time the portfolio was created.
    Description string
    Description of the portfolio
    Id string
    Name string
    Portfolio name.
    ProviderName string
    Name of the person or organization who owns the portfolio.
    Tags Dictionary<string, string>
    Tags applied to the portfolio.
    AcceptLanguage string
    Arn string
    Portfolio ARN.
    CreatedTime string
    Time the portfolio was created.
    Description string
    Description of the portfolio
    Id string
    Name string
    Portfolio name.
    ProviderName string
    Name of the person or organization who owns the portfolio.
    Tags map[string]string
    Tags applied to the portfolio.
    AcceptLanguage string
    arn String
    Portfolio ARN.
    createdTime String
    Time the portfolio was created.
    description String
    Description of the portfolio
    id String
    name String
    Portfolio name.
    providerName String
    Name of the person or organization who owns the portfolio.
    tags Map<String,String>
    Tags applied to the portfolio.
    acceptLanguage String
    arn string
    Portfolio ARN.
    createdTime string
    Time the portfolio was created.
    description string
    Description of the portfolio
    id string
    name string
    Portfolio name.
    providerName string
    Name of the person or organization who owns the portfolio.
    tags {[key: string]: string}
    Tags applied to the portfolio.
    acceptLanguage string
    arn str
    Portfolio ARN.
    created_time str
    Time the portfolio was created.
    description str
    Description of the portfolio
    id str
    name str
    Portfolio name.
    provider_name str
    Name of the person or organization who owns the portfolio.
    tags Mapping[str, str]
    Tags applied to the portfolio.
    accept_language str
    arn String
    Portfolio ARN.
    createdTime String
    Time the portfolio was created.
    description String
    Description of the portfolio
    id String
    name String
    Portfolio name.
    providerName String
    Name of the person or organization who owns the portfolio.
    tags Map<String>
    Tags applied to the portfolio.
    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi