1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. servicecatalog
  5. ProductPortfolioAssociation
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.servicecatalog.ProductPortfolioAssociation

Explore with Pulumi AI

Provides a Service Catalog Product Portfolio Association resource.

Product portfolio association.

For information about Service Catalog Product Portfolio Association and how to use it, see What is Product Portfolio Association.

NOTE: Available since v1.230.0.

Create ProductPortfolioAssociation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ProductPortfolioAssociation(name: string, args: ProductPortfolioAssociationArgs, opts?: CustomResourceOptions);
@overload
def ProductPortfolioAssociation(resource_name: str,
                                args: ProductPortfolioAssociationArgs,
                                opts: Optional[ResourceOptions] = None)

@overload
def ProductPortfolioAssociation(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                portfolio_id: Optional[str] = None,
                                product_id: Optional[str] = None)
func NewProductPortfolioAssociation(ctx *Context, name string, args ProductPortfolioAssociationArgs, opts ...ResourceOption) (*ProductPortfolioAssociation, error)
public ProductPortfolioAssociation(string name, ProductPortfolioAssociationArgs args, CustomResourceOptions? opts = null)
public ProductPortfolioAssociation(String name, ProductPortfolioAssociationArgs args)
public ProductPortfolioAssociation(String name, ProductPortfolioAssociationArgs args, CustomResourceOptions options)
type: alicloud:servicecatalog:ProductPortfolioAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ProductPortfolioAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ProductPortfolioAssociationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ProductPortfolioAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ProductPortfolioAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ProductPortfolioAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var productPortfolioAssociationResource = new AliCloud.ServiceCatalog.ProductPortfolioAssociation("productPortfolioAssociationResource", new()
{
    PortfolioId = "string",
    ProductId = "string",
});
Copy
example, err := servicecatalog.NewProductPortfolioAssociation(ctx, "productPortfolioAssociationResource", &servicecatalog.ProductPortfolioAssociationArgs{
	PortfolioId: pulumi.String("string"),
	ProductId:   pulumi.String("string"),
})
Copy
var productPortfolioAssociationResource = new ProductPortfolioAssociation("productPortfolioAssociationResource", ProductPortfolioAssociationArgs.builder()
    .portfolioId("string")
    .productId("string")
    .build());
Copy
product_portfolio_association_resource = alicloud.servicecatalog.ProductPortfolioAssociation("productPortfolioAssociationResource",
    portfolio_id="string",
    product_id="string")
Copy
const productPortfolioAssociationResource = new alicloud.servicecatalog.ProductPortfolioAssociation("productPortfolioAssociationResource", {
    portfolioId: "string",
    productId: "string",
});
Copy
type: alicloud:servicecatalog:ProductPortfolioAssociation
properties:
    portfolioId: string
    productId: string
Copy

ProductPortfolioAssociation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ProductPortfolioAssociation resource accepts the following input properties:

PortfolioId
This property is required.
Changes to this property will trigger replacement.
string
Product Portfolio ID
ProductId
This property is required.
Changes to this property will trigger replacement.
string
Product ID
PortfolioId
This property is required.
Changes to this property will trigger replacement.
string
Product Portfolio ID
ProductId
This property is required.
Changes to this property will trigger replacement.
string
Product ID
portfolioId
This property is required.
Changes to this property will trigger replacement.
String
Product Portfolio ID
productId
This property is required.
Changes to this property will trigger replacement.
String
Product ID
portfolioId
This property is required.
Changes to this property will trigger replacement.
string
Product Portfolio ID
productId
This property is required.
Changes to this property will trigger replacement.
string
Product ID
portfolio_id
This property is required.
Changes to this property will trigger replacement.
str
Product Portfolio ID
product_id
This property is required.
Changes to this property will trigger replacement.
str
Product ID
portfolioId
This property is required.
Changes to this property will trigger replacement.
String
Product Portfolio ID
productId
This property is required.
Changes to this property will trigger replacement.
String
Product ID

Outputs

All input properties are implicitly available as output properties. Additionally, the ProductPortfolioAssociation resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ProductPortfolioAssociation Resource

Get an existing ProductPortfolioAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ProductPortfolioAssociationState, opts?: CustomResourceOptions): ProductPortfolioAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        portfolio_id: Optional[str] = None,
        product_id: Optional[str] = None) -> ProductPortfolioAssociation
func GetProductPortfolioAssociation(ctx *Context, name string, id IDInput, state *ProductPortfolioAssociationState, opts ...ResourceOption) (*ProductPortfolioAssociation, error)
public static ProductPortfolioAssociation Get(string name, Input<string> id, ProductPortfolioAssociationState? state, CustomResourceOptions? opts = null)
public static ProductPortfolioAssociation get(String name, Output<String> id, ProductPortfolioAssociationState state, CustomResourceOptions options)
resources:  _:    type: alicloud:servicecatalog:ProductPortfolioAssociation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
PortfolioId Changes to this property will trigger replacement. string
Product Portfolio ID
ProductId Changes to this property will trigger replacement. string
Product ID
PortfolioId Changes to this property will trigger replacement. string
Product Portfolio ID
ProductId Changes to this property will trigger replacement. string
Product ID
portfolioId Changes to this property will trigger replacement. String
Product Portfolio ID
productId Changes to this property will trigger replacement. String
Product ID
portfolioId Changes to this property will trigger replacement. string
Product Portfolio ID
productId Changes to this property will trigger replacement. string
Product ID
portfolio_id Changes to this property will trigger replacement. str
Product Portfolio ID
product_id Changes to this property will trigger replacement. str
Product ID
portfolioId Changes to this property will trigger replacement. String
Product Portfolio ID
productId Changes to this property will trigger replacement. String
Product ID

Import

Service Catalog Product Portfolio Association can be imported using the id, e.g.

$ pulumi import alicloud:servicecatalog/productPortfolioAssociation:ProductPortfolioAssociation example <product_id>:<portfolio_id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.