1. Packages
  2. AWS
  3. API Docs
  4. servicecatalog
  5. getPortfolio
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.servicecatalog.getPortfolio

Explore with Pulumi AI

AWS v6.77.0 published on Wednesday, Apr 9, 2025 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",
});
Copy
import pulumi
import pulumi_aws as aws

portfolio = aws.servicecatalog.get_portfolio(id="port-07052002")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  portfolio:
    fn::invoke:
      function: aws:servicecatalog:getPortfolio
      arguments:
        id: port-07052002
Copy

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>
Copy
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]
Copy
func LookupPortfolio(ctx *Context, args *LookupPortfolioArgs, opts ...InvokeOption) (*LookupPortfolioResult, error)
func LookupPortfolioOutput(ctx *Context, args *LookupPortfolioOutputArgs, opts ...InvokeOption) LookupPortfolioResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetPortfolioResult> getPortfolio(GetPortfolioArgs args, InvokeOptions options)
public static Output<GetPortfolioResult> getPortfolio(GetPortfolioArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:servicecatalog/getPortfolio:getPortfolio
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi