Portfolio

Provides a resource to create a Service Catalog Portfolio.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var portfolio = new Aws.ServiceCatalog.Portfolio("portfolio", new Aws.ServiceCatalog.PortfolioArgs
        {
            Description = "List of my organizations apps",
            ProviderName = "Brett",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/servicecatalog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicecatalog.NewPortfolio(ctx, "portfolio", &servicecatalog.PortfolioArgs{
			Description:  pulumi.String("List of my organizations apps"),
			ProviderName: pulumi.String("Brett"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

portfolio = aws.servicecatalog.Portfolio("portfolio",
    description="List of my organizations apps",
    provider_name="Brett")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const portfolio = new aws.servicecatalog.Portfolio("portfolio", {
    description: "List of my organizations apps",
    providerName: "Brett",
});

Create a Portfolio Resource

new Portfolio(name: string, args?: PortfolioArgs, opts?: CustomResourceOptions);
@overload
def Portfolio(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              description: Optional[str] = None,
              name: Optional[str] = None,
              provider_name: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              tags_all: Optional[Mapping[str, str]] = None)
@overload
def Portfolio(resource_name: str,
              args: Optional[PortfolioArgs] = None,
              opts: Optional[ResourceOptions] = None)
func NewPortfolio(ctx *Context, name string, args *PortfolioArgs, opts ...ResourceOption) (*Portfolio, error)
public Portfolio(string name, PortfolioArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args PortfolioArgs
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 PortfolioArgs
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 PortfolioArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PortfolioArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Portfolio Resource Properties

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

Inputs

The Portfolio resource accepts the following input properties:

Description string
Description of the portfolio
Name string
The name of the portfolio.
ProviderName string
Name of the person or organization who owns the portfolio.
Tags Dictionary<string, string>
Tags to apply to the connection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider .
Description string
Description of the portfolio
Name string
The name of the portfolio.
ProviderName string
Name of the person or organization who owns the portfolio.
Tags map[string]string
Tags to apply to the connection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider .
description string
Description of the portfolio
name string
The name of the portfolio.
providerName string
Name of the person or organization who owns the portfolio.
tags {[key: string]: string}
Tags to apply to the connection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider .
description str
Description of the portfolio
name str
The name of the portfolio.
provider_name str
Name of the person or organization who owns the portfolio.
tags Mapping[str, str]
Tags to apply to the connection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider .

Outputs

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

Arn string
CreatedTime string
Id string
The provider-assigned unique ID for this managed resource.
Arn string
CreatedTime string
Id string
The provider-assigned unique ID for this managed resource.
arn string
createdTime string
id string
The provider-assigned unique ID for this managed resource.
arn str
created_time str
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Portfolio Resource

Get an existing Portfolio 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?: PortfolioState, opts?: CustomResourceOptions): Portfolio
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        created_time: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        provider_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> Portfolio
func GetPortfolio(ctx *Context, name string, id IDInput, state *PortfolioState, opts ...ResourceOption) (*Portfolio, error)
public static Portfolio Get(string name, Input<string> id, PortfolioState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Arn string
CreatedTime string
Description string
Description of the portfolio
Name string
The name of the portfolio.
ProviderName string
Name of the person or organization who owns the portfolio.
Tags Dictionary<string, string>
Tags to apply to the connection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider .
Arn string
CreatedTime string
Description string
Description of the portfolio
Name string
The name of the portfolio.
ProviderName string
Name of the person or organization who owns the portfolio.
Tags map[string]string
Tags to apply to the connection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider .
arn string
createdTime string
description string
Description of the portfolio
name string
The name of the portfolio.
providerName string
Name of the person or organization who owns the portfolio.
tags {[key: string]: string}
Tags to apply to the connection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider .
arn str
created_time str
description str
Description of the portfolio
name str
The name of the portfolio.
provider_name str
Name of the person or organization who owns the portfolio.
tags Mapping[str, str]
Tags to apply to the connection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider .

Import

Service Catalog Portfolios can be imported using the service catalog portfolio id, e.g.

 $ pulumi import aws:servicecatalog/portfolio:Portfolio testfolio port-12344321

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.