aws.servicecatalog.ProductPortfolioAssociation
Explore with Pulumi AI
Manages a Service Catalog Product Portfolio Association.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.servicecatalog.ProductPortfolioAssociation("example", {
portfolioId: "port-68656c6c6f",
productId: "prod-dnigbtea24ste",
});
import pulumi
import pulumi_aws as aws
example = aws.servicecatalog.ProductPortfolioAssociation("example",
portfolio_id="port-68656c6c6f",
product_id="prod-dnigbtea24ste")
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.NewProductPortfolioAssociation(ctx, "example", &servicecatalog.ProductPortfolioAssociationArgs{
PortfolioId: pulumi.String("port-68656c6c6f"),
ProductId: pulumi.String("prod-dnigbtea24ste"),
})
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 = new Aws.ServiceCatalog.ProductPortfolioAssociation("example", new()
{
PortfolioId = "port-68656c6c6f",
ProductId = "prod-dnigbtea24ste",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicecatalog.ProductPortfolioAssociation;
import com.pulumi.aws.servicecatalog.ProductPortfolioAssociationArgs;
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) {
var example = new ProductPortfolioAssociation("example", ProductPortfolioAssociationArgs.builder()
.portfolioId("port-68656c6c6f")
.productId("prod-dnigbtea24ste")
.build());
}
}
resources:
example:
type: aws:servicecatalog:ProductPortfolioAssociation
properties:
portfolioId: port-68656c6c6f
productId: prod-dnigbtea24ste
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,
accept_language: Optional[str] = None,
source_portfolio_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: aws: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 Aws.ServiceCatalog.ProductPortfolioAssociation("productPortfolioAssociationResource", new()
{
PortfolioId = "string",
ProductId = "string",
AcceptLanguage = "string",
SourcePortfolioId = "string",
});
example, err := servicecatalog.NewProductPortfolioAssociation(ctx, "productPortfolioAssociationResource", &servicecatalog.ProductPortfolioAssociationArgs{
PortfolioId: pulumi.String("string"),
ProductId: pulumi.String("string"),
AcceptLanguage: pulumi.String("string"),
SourcePortfolioId: pulumi.String("string"),
})
var productPortfolioAssociationResource = new ProductPortfolioAssociation("productPortfolioAssociationResource", ProductPortfolioAssociationArgs.builder()
.portfolioId("string")
.productId("string")
.acceptLanguage("string")
.sourcePortfolioId("string")
.build());
product_portfolio_association_resource = aws.servicecatalog.ProductPortfolioAssociation("productPortfolioAssociationResource",
portfolio_id="string",
product_id="string",
accept_language="string",
source_portfolio_id="string")
const productPortfolioAssociationResource = new aws.servicecatalog.ProductPortfolioAssociation("productPortfolioAssociationResource", {
portfolioId: "string",
productId: "string",
acceptLanguage: "string",
sourcePortfolioId: "string",
});
type: aws:servicecatalog:ProductPortfolioAssociation
properties:
acceptLanguage: string
portfolioId: string
productId: string
sourcePortfolioId: 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 - Portfolio identifier.
- Product
Id string Product identifier.
The following arguments are optional:
- Accept
Language string - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - Source
Portfolio stringId - Identifier of the source portfolio.
- Portfolio
Id string - Portfolio identifier.
- Product
Id string Product identifier.
The following arguments are optional:
- Accept
Language string - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - Source
Portfolio stringId - Identifier of the source portfolio.
- portfolio
Id String - Portfolio identifier.
- product
Id String Product identifier.
The following arguments are optional:
- accept
Language String - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - source
Portfolio StringId - Identifier of the source portfolio.
- portfolio
Id string - Portfolio identifier.
- product
Id string Product identifier.
The following arguments are optional:
- accept
Language string - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - source
Portfolio stringId - Identifier of the source portfolio.
- portfolio_
id str - Portfolio identifier.
- product_
id str Product identifier.
The following arguments are optional:
- accept_
language str - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - source_
portfolio_ strid - Identifier of the source portfolio.
- portfolio
Id String - Portfolio identifier.
- product
Id String Product identifier.
The following arguments are optional:
- accept
Language String - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - source
Portfolio StringId - Identifier of the source portfolio.
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,
accept_language: Optional[str] = None,
portfolio_id: Optional[str] = None,
product_id: Optional[str] = None,
source_portfolio_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.
- Accept
Language string - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - Portfolio
Id string - Portfolio identifier.
- Product
Id string Product identifier.
The following arguments are optional:
- Source
Portfolio stringId - Identifier of the source portfolio.
- Accept
Language string - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - Portfolio
Id string - Portfolio identifier.
- Product
Id string Product identifier.
The following arguments are optional:
- Source
Portfolio stringId - Identifier of the source portfolio.
- accept
Language String - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - portfolio
Id String - Portfolio identifier.
- product
Id String Product identifier.
The following arguments are optional:
- source
Portfolio StringId - Identifier of the source portfolio.
- accept
Language string - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - portfolio
Id string - Portfolio identifier.
- product
Id string Product identifier.
The following arguments are optional:
- source
Portfolio stringId - Identifier of the source portfolio.
- accept_
language str - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - portfolio_
id str - Portfolio identifier.
- product_
id str Product identifier.
The following arguments are optional:
- source_
portfolio_ strid - Identifier of the source portfolio.
- accept
Language String - Language code. Valid values:
en
(English),jp
(Japanese),zh
(Chinese). Default value isen
. - portfolio
Id String - Portfolio identifier.
- product
Id String Product identifier.
The following arguments are optional:
- source
Portfolio StringId - Identifier of the source portfolio.
Import
Using pulumi import
, import aws_servicecatalog_product_portfolio_association
using the accept language, portfolio ID, and product ID. For example:
$ pulumi import aws:servicecatalog/productPortfolioAssociation:ProductPortfolioAssociation example en:port-68656c6c6f:prod-dnigbtea24ste
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.