Try AWS Native preview for resources not in the classic version.
aws.servicecatalog.Portfolio
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a resource to create a Service Catalog Portfolio.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var portfolio = new Aws.ServiceCatalog.Portfolio("portfolio", new()
{
Description = "List of my organizations apps",
ProviderName = "Brett",
});
});
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.NewPortfolio(ctx, "portfolio", &servicecatalog.PortfolioArgs{
Description: pulumi.String("List of my organizations apps"),
ProviderName: pulumi.String("Brett"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicecatalog.Portfolio;
import com.pulumi.aws.servicecatalog.PortfolioArgs;
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 portfolio = new Portfolio("portfolio", PortfolioArgs.builder()
.description("List of my organizations apps")
.providerName("Brett")
.build());
}
}
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",
});
resources:
portfolio:
type: aws:servicecatalog:Portfolio
properties:
description: List of my organizations apps
providerName: Brett
Create 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)
@overload
def Portfolio(resource_name: str,
args: PortfolioArgs,
opts: Optional[ResourceOptions] = None)
func NewPortfolio(ctx *Context, name string, args PortfolioArgs, opts ...ResourceOption) (*Portfolio, error)
public Portfolio(string name, PortfolioArgs args, CustomResourceOptions? opts = null)
public Portfolio(String name, PortfolioArgs args)
public Portfolio(String name, PortfolioArgs args, CustomResourceOptions options)
type: aws:servicecatalog:Portfolio
properties: # The arguments to resource properties.
options: # 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.
- 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.
- name String
- The unique name of the resource.
- args PortfolioArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
The Portfolio resource accepts the following input properties:
- Provider
Name string Name of the person or organization who owns the portfolio.
- Description string
Description of the portfolio
- Name string
The name of the portfolio.
- 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.
- Provider
Name string Name of the person or organization who owns the portfolio.
- Description string
Description of the portfolio
- Name string
The name of the portfolio.
- 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.
- provider
Name String Name of the person or organization who owns the portfolio.
- description String
Description of the portfolio
- name String
The name of the portfolio.
- 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.
- provider
Name string Name of the person or organization who owns the portfolio.
- description string
Description of the portfolio
- name string
The name of the portfolio.
- {[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.
- provider_
name str Name of the person or organization who owns the portfolio.
- description str
Description of the portfolio
- name str
The name of the portfolio.
- 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.
- provider
Name String Name of the person or organization who owns the portfolio.
- description String
Description of the portfolio
- name String
The name of the portfolio.
- Map<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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Portfolio resource produces the following output properties:
- Arn string
- Created
Time string - Id string
The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- Arn string
- Created
Time string - Id string
The provider-assigned unique ID for this managed resource.
- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
- created
Time String - id String
The provider-assigned unique ID for this managed resource.
- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn string
- created
Time string - id string
The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn str
- created_
time str - id str
The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
- created
Time String - id String
The provider-assigned unique ID for this managed resource.
- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
Look up 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)
public static Portfolio get(String name, Output<String> id, PortfolioState 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.
- Arn string
- Created
Time string - Description string
Description of the portfolio
- Name string
The name of the portfolio.
- Provider
Name string Name of the person or organization who owns the portfolio.
- 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.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- Arn string
- Created
Time string - Description string
Description of the portfolio
- Name string
The name of the portfolio.
- Provider
Name string Name of the person or organization who owns the portfolio.
- 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.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
- created
Time String - description String
Description of the portfolio
- name String
The name of the portfolio.
- provider
Name String Name of the person or organization who owns the portfolio.
- 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.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn string
- created
Time string - description string
Description of the portfolio
- name string
The name of the portfolio.
- provider
Name string Name of the person or organization who owns the portfolio.
- {[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.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- 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.
- 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.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
- created
Time String - description String
Description of the portfolio
- name String
The name of the portfolio.
- provider
Name String Name of the person or organization who owns the portfolio.
- Map<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.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
Import
Using pulumi import
, import Service Catalog Portfolios using the Service Catalog Portfolio id
. For example:
$ pulumi import aws:servicecatalog/portfolio:Portfolio testfolio port-12344321
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.