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:
- PortfolioId string
- Portfolio identifier. - The following arguments are optional: 
- AcceptLanguage string
- Language code. Valid values: en(English),jp(Japanese),zh(Chinese). Default value isen.
- ProductId string
- Product identifier.
- PortfolioId string
- Portfolio identifier. - The following arguments are optional: 
- AcceptLanguage string
- Language code. Valid values: en(English),jp(Japanese),zh(Chinese). Default value isen.
- ProductId string
- Product identifier.
- portfolioId String
- Portfolio identifier. - The following arguments are optional: 
- acceptLanguage String
- Language code. Valid values: en(English),jp(Japanese),zh(Chinese). Default value isen.
- productId String
- Product identifier.
- portfolioId string
- Portfolio identifier. - The following arguments are optional: 
- acceptLanguage string
- Language code. Valid values: en(English),jp(Japanese),zh(Chinese). Default value isen.
- productId 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.
- portfolioId String
- Portfolio identifier. - The following arguments are optional: 
- acceptLanguage String
- Language code. Valid values: en(English),jp(Japanese),zh(Chinese). Default value isen.
- productId String
- Product identifier.
getPortfolioConstraints Result
The following output properties are available:
- Details
List<GetPortfolio Constraints Detail> 
- 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
[]GetPortfolio Constraints Detail 
- 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<GetPortfolio Constraints Detail> 
- 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
GetPortfolio Constraints Detail[] 
- 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[GetPortfolio 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.
- 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. - The following arguments are optional: 
- ProductId string
- Product identifier.
- Type string
- Type of constraint. Valid values are LAUNCH,NOTIFICATION,STACKSET, andTEMPLATE.
- ConstraintId string
- Identifier of the constraint.
- Description string
- Description of the constraint.
- Owner string
- PortfolioId string
- Portfolio identifier. - The following arguments are optional: 
- ProductId string
- Product identifier.
- Type string
- Type of constraint. Valid values are LAUNCH,NOTIFICATION,STACKSET, andTEMPLATE.
- constraintId String
- Identifier of the constraint.
- description String
- Description of the constraint.
- owner String
- portfolioId String
- Portfolio identifier. - The following arguments are optional: 
- productId String
- Product identifier.
- type String
- Type of constraint. Valid values are LAUNCH,NOTIFICATION,STACKSET, andTEMPLATE.
- constraintId string
- Identifier of the constraint.
- description string
- Description of the constraint.
- owner string
- portfolioId string
- Portfolio identifier. - The following arguments are optional: 
- productId 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.
- constraintId String
- Identifier of the constraint.
- description String
- Description of the constraint.
- owner String
- portfolioId String
- Portfolio identifier. - The following arguments are optional: 
- productId 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.