AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getPortfolio

Provides information for a Service Catalog Portfolio.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var portfolio = Output.Create(Aws.ServiceCatalog.GetPortfolio.InvokeAsync(new Aws.ServiceCatalog.GetPortfolioArgs
        {
            Id = "port-07052002",
        }));
    }

}
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.LookupPortfolio(ctx, &servicecatalog.LookupPortfolioArgs{
			Id: "port-07052002",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var portfolio = Output.of(ServicecatalogFunctions.getPortfolio(GetPortfolioArgs.builder()
            .id("port-07052002")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

portfolio = aws.servicecatalog.get_portfolio(id="port-07052002")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const portfolio = pulumi.output(aws.servicecatalog.getPortfolio({
    id: "port-07052002",
}));
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.

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.

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.

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.

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.

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.

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
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.