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 string
- The unique name of the resource.
- args ProductPortfolioAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args ProductPortfolioAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProductPortfolioAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := servicecatalog.NewProductPortfolioAssociation(ctx, "productPortfolioAssociationResource", &servicecatalog.ProductPortfolioAssociationArgs{
PortfolioId: pulumi.String("string"),
ProductId: pulumi.String("string"),
})
var productPortfolioAssociationResource = new ProductPortfolioAssociation("productPortfolioAssociationResource", ProductPortfolioAssociationArgs.builder()
.portfolioId("string")
.productId("string")
.build());
product_portfolio_association_resource = alicloud.servicecatalog.ProductPortfolioAssociation("productPortfolioAssociationResource",
portfolio_id="string",
product_id="string")
const productPortfolioAssociationResource = new alicloud.servicecatalog.ProductPortfolioAssociation("productPortfolioAssociationResource", {
portfolioId: "string",
productId: "string",
});
type: alicloud:servicecatalog:ProductPortfolioAssociation
properties:
portfolioId: string
productId: string
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:
- Portfolio
Id string - Product Portfolio ID
- Product
Id string - Product ID
- Portfolio
Id string - Product Portfolio ID
- Product
Id string - Product ID
- portfolio
Id String - Product Portfolio ID
- product
Id String - Product ID
- portfolio
Id string - Product Portfolio ID
- product
Id string - Product ID
- portfolio_
id str - Product Portfolio ID
- product_
id str - Product ID
- portfolio
Id String - Product Portfolio ID
- product
Id 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Portfolio
Id string - Product Portfolio ID
- Product
Id string - Product ID
- Portfolio
Id string - Product Portfolio ID
- Product
Id string - Product ID
- portfolio
Id String - Product Portfolio ID
- product
Id String - Product ID
- portfolio
Id string - Product Portfolio ID
- product
Id string - Product ID
- portfolio_
id str - Product Portfolio ID
- product_
id str - Product ID
- portfolio
Id String - Product Portfolio ID
- product
Id 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>
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.