AWS Classic
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:
- Portfolio
Id string Portfolio identifier.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- product
Id String Product identifier.
- type String
Type of constraint. Valid values are
LAUNCH
,NOTIFICATION
,STACKSET
, andTEMPLATE
.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.