Try AWS Native preview for resources not in the classic version.
aws.servicecatalog.getPortfolio
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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:
- Accept
Language string - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - Dictionary<string, string>
- Tags applied to the portfolio.
- Id string
Portfolio identifier.
The following arguments are optional:
- Accept
Language string - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - map[string]string
- Tags applied to the portfolio.
- id String
Portfolio identifier.
The following arguments are optional:
- accept
Language String - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - Map<String,String>
- Tags applied to the portfolio.
- id string
Portfolio identifier.
The following arguments are optional:
- accept
Language string - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - {[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 isen
. - Mapping[str, str]
- Tags applied to the portfolio.
- id String
Portfolio identifier.
The following arguments are optional:
- accept
Language String - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - Map<String>
- Tags applied to the portfolio.
getPortfolio Result
The following output properties are available:
- Arn string
- Portfolio ARN.
- Created
Time string - Time the portfolio was created.
- Description string
- Description of the portfolio
- Id string
- Name string
- Portfolio name.
- Provider
Name string - Name of the person or organization who owns the portfolio.
- Dictionary<string, string>
- Tags applied to the portfolio.
- Accept
Language string
- Arn string
- Portfolio ARN.
- Created
Time string - Time the portfolio was created.
- Description string
- Description of the portfolio
- Id string
- Name string
- Portfolio name.
- Provider
Name string - Name of the person or organization who owns the portfolio.
- map[string]string
- Tags applied to the portfolio.
- Accept
Language string
- arn String
- Portfolio ARN.
- created
Time String - Time the portfolio was created.
- description String
- Description of the portfolio
- id String
- name String
- Portfolio name.
- provider
Name String - Name of the person or organization who owns the portfolio.
- Map<String,String>
- Tags applied to the portfolio.
- accept
Language String
- arn string
- Portfolio ARN.
- created
Time string - Time the portfolio was created.
- description string
- Description of the portfolio
- id string
- name string
- Portfolio name.
- provider
Name string - Name of the person or organization who owns the portfolio.
- {[key: string]: string}
- Tags applied to the portfolio.
- accept
Language 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.
- Mapping[str, str]
- Tags applied to the portfolio.
- accept_
language str
- arn String
- Portfolio ARN.
- created
Time String - Time the portfolio was created.
- description String
- Description of the portfolio
- id String
- name String
- Portfolio name.
- provider
Name String - Name of the person or organization who owns the portfolio.
- Map<String>
- Tags applied to the portfolio.
- 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.
Try AWS Native preview for resources not in the classic version.