AWS Classic

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

getPortfolioConstraints

Provides information on Service Catalog Portfolio Constraints.

Example Usage

Basic Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.ServiceCatalog.GetPortfolioConstraints.InvokeAsync(new Aws.ServiceCatalog.GetPortfolioConstraintsArgs
        {
            PortfolioId = "port-3lli3b3an",
        }));
    }

}
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.GetPortfolioConstraints(ctx, &servicecatalog.GetPortfolioConstraintsArgs{
			PortfolioId: "port-3lli3b3an",
		}, 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 example = Output.of(ServicecatalogFunctions.getPortfolioConstraints(GetPortfolioConstraintsArgs.builder()
            .portfolioId("port-3lli3b3an")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.servicecatalog.get_portfolio_constraints(portfolio_id="port-3lli3b3an")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.servicecatalog.getPortfolioConstraints({
    portfolioId: "port-3lli3b3an",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:servicecatalog:getPortfolioConstraints
      Arguments:
        portfolioId: port-3lli3b3an

Using getPortfolioConstraints

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 getPortfolioConstraints(args: GetPortfolioConstraintsArgs, opts?: InvokeOptions): Promise<GetPortfolioConstraintsResult>
function getPortfolioConstraintsOutput(args: GetPortfolioConstraintsOutputArgs, opts?: InvokeOptions): Output<GetPortfolioConstraintsResult>
def get_portfolio_constraints(accept_language: Optional[str] = None,
                              portfolio_id: Optional[str] = None,
                              product_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetPortfolioConstraintsResult
def get_portfolio_constraints_output(accept_language: Optional[pulumi.Input[str]] = None,
                              portfolio_id: Optional[pulumi.Input[str]] = None,
                              product_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetPortfolioConstraintsResult]
func GetPortfolioConstraints(ctx *Context, args *GetPortfolioConstraintsArgs, opts ...InvokeOption) (*GetPortfolioConstraintsResult, error)
func GetPortfolioConstraintsOutput(ctx *Context, args *GetPortfolioConstraintsOutputArgs, opts ...InvokeOption) GetPortfolioConstraintsResultOutput

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

public static class GetPortfolioConstraints 
{
    public static Task<GetPortfolioConstraintsResult> InvokeAsync(GetPortfolioConstraintsArgs args, InvokeOptions? opts = null)
    public static Output<GetPortfolioConstraintsResult> Invoke(GetPortfolioConstraintsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPortfolioConstraintsResult> getPortfolioConstraints(GetPortfolioConstraintsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:servicecatalog/getPortfolioConstraints:getPortfolioConstraints
  Arguments:
    # Arguments dictionary

The following arguments are supported:

PortfolioId string

Portfolio identifier.

AcceptLanguage string

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

ProductId string

Product identifier.

PortfolioId string

Portfolio identifier.

AcceptLanguage string

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

ProductId string

Product identifier.

portfolioId String

Portfolio identifier.

acceptLanguage String

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

productId String

Product identifier.

portfolioId string

Portfolio identifier.

acceptLanguage string

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

productId string

Product identifier.

portfolio_id str

Portfolio identifier.

accept_language str

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

product_id str

Product identifier.

portfolioId String

Portfolio identifier.

acceptLanguage String

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

productId String

Product identifier.

getPortfolioConstraints Result

The following output properties are available:

Details List<GetPortfolioConstraintsDetail>

List of information about the constraints. See details below.

Id string

The provider-assigned unique ID for this managed resource.

PortfolioId string

Identifier of the portfolio the product resides in. The constraint applies only to the instance of the product that lives within this portfolio.

AcceptLanguage string
ProductId string

Identifier of the product the constraint applies to. A constraint applies to a specific instance of a product within a certain portfolio.

Details []GetPortfolioConstraintsDetail

List of information about the constraints. See details below.

Id string

The provider-assigned unique ID for this managed resource.

PortfolioId string

Identifier of the portfolio the product resides in. The constraint applies only to the instance of the product that lives within this portfolio.

AcceptLanguage string
ProductId string

Identifier of the product the constraint applies to. A constraint applies to a specific instance of a product within a certain portfolio.

details List<GetPortfolioConstraintsDetail>

List of information about the constraints. See details below.

id String

The provider-assigned unique ID for this managed resource.

portfolioId String

Identifier of the portfolio the product resides in. The constraint applies only to the instance of the product that lives within this portfolio.

acceptLanguage String
productId String

Identifier of the product the constraint applies to. A constraint applies to a specific instance of a product within a certain portfolio.

details GetPortfolioConstraintsDetail[]

List of information about the constraints. See details below.

id string

The provider-assigned unique ID for this managed resource.

portfolioId string

Identifier of the portfolio the product resides in. The constraint applies only to the instance of the product that lives within this portfolio.

acceptLanguage string
productId string

Identifier of the product the constraint applies to. A constraint applies to a specific instance of a product within a certain portfolio.

details Sequence[GetPortfolioConstraintsDetail]

List of information about the constraints. See details below.

id str

The provider-assigned unique ID for this managed resource.

portfolio_id str

Identifier of the portfolio the product resides in. The constraint applies only to the instance of the product that lives within this portfolio.

accept_language str
product_id str

Identifier of the product the constraint applies to. A constraint applies to a specific instance of a product within a certain portfolio.

details List<Property Map>

List of information about the constraints. See details below.

id String

The provider-assigned unique ID for this managed resource.

portfolioId String

Identifier of the portfolio the product resides in. The constraint applies only to the instance of the product that lives within this portfolio.

acceptLanguage String
productId String

Identifier of the product the constraint applies to. A constraint applies to a specific instance of a product within a certain portfolio.

Supporting Types

GetPortfolioConstraintsDetail

ConstraintId string

Identifier of the constraint.

Description string

Description of the constraint.

Owner string
PortfolioId string

Portfolio identifier.

ProductId string

Product identifier.

Type string

Type of constraint. Valid values are LAUNCH, NOTIFICATION, STACKSET, and TEMPLATE.

ConstraintId string

Identifier of the constraint.

Description string

Description of the constraint.

Owner string
PortfolioId string

Portfolio identifier.

ProductId string

Product identifier.

Type string

Type of constraint. Valid values are LAUNCH, NOTIFICATION, STACKSET, and TEMPLATE.

constraintId String

Identifier of the constraint.

description String

Description of the constraint.

owner String
portfolioId String

Portfolio identifier.

productId String

Product identifier.

type String

Type of constraint. Valid values are LAUNCH, NOTIFICATION, STACKSET, and TEMPLATE.

constraintId string

Identifier of the constraint.

description string

Description of the constraint.

owner string
portfolioId string

Portfolio identifier.

productId string

Product identifier.

type string

Type of constraint. Valid values are LAUNCH, NOTIFICATION, STACKSET, and TEMPLATE.

constraint_id str

Identifier of the constraint.

description str

Description of the constraint.

owner str
portfolio_id str

Portfolio identifier.

product_id str

Product identifier.

type str

Type of constraint. Valid values are LAUNCH, NOTIFICATION, STACKSET, and TEMPLATE.

constraintId String

Identifier of the constraint.

description String

Description of the constraint.

owner String
portfolioId String

Portfolio identifier.

productId String

Product identifier.

type String

Type of constraint. Valid values are LAUNCH, NOTIFICATION, STACKSET, and TEMPLATE.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.