aws.servicecatalog.getPortfolioConstraints
Explore with Pulumi AI
Provides information on Service Catalog Portfolio Constraints.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.servicecatalog.getPortfolioConstraints({
    portfolioId: "port-3lli3b3an",
});
import pulumi
import pulumi_aws as aws
example = aws.servicecatalog.get_portfolio_constraints(portfolio_id="port-3lli3b3an")
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.GetPortfolioConstraints(ctx, &servicecatalog.GetPortfolioConstraintsArgs{
			PortfolioId: "port-3lli3b3an",
		}, 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 example = Aws.ServiceCatalog.GetPortfolioConstraints.Invoke(new()
    {
        PortfolioId = "port-3lli3b3an",
    });
});
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.GetPortfolioConstraintsArgs;
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 example = ServicecatalogFunctions.getPortfolioConstraints(GetPortfolioConstraintsArgs.builder()
            .portfolioId("port-3lli3b3an")
            .build());
    }
}
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)
public static Output<GetPortfolioConstraintsResult> getPortfolioConstraints(GetPortfolioConstraintsArgs args, InvokeOptions options)
fn::invoke:
  function: aws:servicecatalog/getPortfolioConstraints:getPortfolioConstraints
  arguments:
    # arguments dictionaryThe following arguments are supported:
- 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. - Product
Id string - Product identifier.
 
- 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. - Product
Id string - Product identifier.
 
- 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. - product
Id String - Product identifier.
 
- 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. - product
Id string - Product identifier.
 
- 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. - product_
id str - Product identifier.
 
- 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. - product
Id String - Product identifier.
 
getPortfolioConstraints Result
The following output properties are available:
- Details
List<Get
Portfolio Constraints Detail>  - List of information about the constraints. See details below.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Portfolio
Id string - 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 string - Product
Id string - Identifier of the product the constraint applies to. A constraint applies to a specific instance of a product within a certain portfolio.
 
- Details
[]Get
Portfolio Constraints Detail  - List of information about the constraints. See details below.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Portfolio
Id string - 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 string - Product
Id 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<Get
Portfolio Constraints Detail>  - List of information about the constraints. See details below.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - portfolio
Id String - 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 String - product
Id String - Identifier of the product the constraint applies to. A constraint applies to a specific instance of a product within a certain portfolio.
 
- details
Get
Portfolio Constraints Detail[]  - List of information about the constraints. See details below.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - portfolio
Id string - 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 string - product
Id 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[Get
Portfolio Constraints Detail]  - 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.
 - portfolio
Id String - 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 String - product
Id 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   
- Constraint
Id string - Identifier of the constraint.
 - Description string
 - Description of the constraint.
 - Owner string
 - Portfolio
Id string Portfolio identifier.
The following arguments are optional:
- Product
Id string - Product identifier.
 - Type string
 - Type of constraint. Valid values are 
LAUNCH,NOTIFICATION,STACKSET, andTEMPLATE. 
- Constraint
Id string - Identifier of the constraint.
 - Description string
 - Description of the constraint.
 - Owner string
 - Portfolio
Id string Portfolio identifier.
The following arguments are optional:
- Product
Id string - Product identifier.
 - Type string
 - Type of constraint. Valid values are 
LAUNCH,NOTIFICATION,STACKSET, andTEMPLATE. 
- constraint
Id String - Identifier of the constraint.
 - description String
 - Description of the constraint.
 - owner String
 - portfolio
Id String Portfolio identifier.
The following arguments are optional:
- product
Id String - Product identifier.
 - type String
 - Type of constraint. Valid values are 
LAUNCH,NOTIFICATION,STACKSET, andTEMPLATE. 
- constraint
Id string - Identifier of the constraint.
 - description string
 - Description of the constraint.
 - owner string
 - portfolio
Id string Portfolio identifier.
The following arguments are optional:
- product
Id string - Product identifier.
 - type string
 - Type of constraint. Valid values are 
LAUNCH,NOTIFICATION,STACKSET, andTEMPLATE. 
- constraint_
id str - Identifier of the constraint.
 - description str
 - Description of the constraint.
 - owner str
 - portfolio_
id str Portfolio identifier.
The following arguments are optional:
- product_
id str - Product identifier.
 - type str
 - Type of constraint. Valid values are 
LAUNCH,NOTIFICATION,STACKSET, andTEMPLATE. 
- constraint
Id String - Identifier of the constraint.
 - description String
 - Description of the constraint.
 - owner String
 - portfolio
Id String Portfolio identifier.
The following arguments are optional:
- product
Id String - Product identifier.
 - type String
 - Type of constraint. Valid values are 
LAUNCH,NOTIFICATION,STACKSET, andTEMPLATE. 
Package Details
- Repository
 - AWS Classic pulumi/pulumi-aws
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
awsTerraform Provider.