@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-15T10:03:45.291Z") @Stability(value=Experimental) public class Portfolio extends Resource implements IPortfolio
Example:
Portfolio.Builder.create(this, "MyFirstPortfolio")
.displayName("MyFirstPortfolio")
.providerName("MyTeam")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
Portfolio.Builder
(experimental) A fluent builder for
Portfolio. |
software.amazon.jsii.JsiiObject.InitializationModeIPortfolio.Jsii$Default, IPortfolio.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Portfolio(software.constructs.Construct scope,
String id,
PortfolioProps props) |
protected |
Portfolio(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Portfolio(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProduct(IProduct product)
(experimental) Associate portfolio with the given product.
|
void |
associateTagOptions(TagOptions tagOptions)
(experimental) Associate Tag Options.
|
void |
constrainCloudFormationParameters(IProduct product,
CloudFormationRuleConstraintOptions options)
(experimental) Set provisioning rules for the product.
|
void |
constrainTagUpdates(IProduct product)
(experimental) Add a Resource Update Constraint.
|
void |
constrainTagUpdates(IProduct product,
TagUpdateConstraintOptions options)
(experimental) Add a Resource Update Constraint.
|
void |
deployWithStackSets(IProduct product,
StackSetsConstraintOptions options)
(experimental) Configure deployment options using AWS Cloudformation StackSets.
|
static IPortfolio |
fromPortfolioArn(software.constructs.Construct scope,
String id,
String portfolioArn)
(experimental) Creates a Portfolio construct that represents an external portfolio.
|
protected String |
generateUniqueHash(String value)
(experimental) Create a unique id based off the L1 CfnPortfolio or the arn of an imported portfolio.
|
String |
getPortfolioArn()
(experimental) The ARN of the portfolio.
|
String |
getPortfolioId()
(experimental) The ID of the portfolio.
|
void |
giveAccessToGroup(IGroup group)
(experimental) Associate portfolio with an IAM Group.
|
void |
giveAccessToRole(IRole role)
(experimental) Associate portfolio with an IAM Role.
|
void |
giveAccessToUser(IUser user)
(experimental) Associate portfolio with an IAM User.
|
void |
notifyOnStackEvents(IProduct product,
ITopic topic)
(experimental) Add notifications for supplied topics on the provisioned product.
|
void |
notifyOnStackEvents(IProduct product,
ITopic topic,
CommonConstraintOptions options)
(experimental) Add notifications for supplied topics on the provisioned product.
|
void |
setLaunchRole(IProduct product,
IRole launchRole)
(experimental) Force users to assume a certain role when launching a product.
|
void |
setLaunchRole(IProduct product,
IRole launchRole,
CommonConstraintOptions options)
(experimental) Force users to assume a certain role when launching a product.
|
void |
setLocalLaunchRole(IProduct product,
IRole launchRole)
(experimental) Force users to assume a certain role when launching a product.
|
void |
setLocalLaunchRole(IProduct product,
IRole launchRole,
CommonConstraintOptions options)
(experimental) Force users to assume a certain role when launching a product.
|
IRole |
setLocalLaunchRoleName(IProduct product,
String launchRoleName)
(experimental) Force users to assume a certain role when launching a product.
|
IRole |
setLocalLaunchRoleName(IProduct product,
String launchRoleName,
CommonConstraintOptions options)
(experimental) Force users to assume a certain role when launching a product.
|
void |
shareWithAccount(String accountId)
(experimental) Initiate a portfolio share with another account.
|
void |
shareWithAccount(String accountId,
PortfolioShareOptions options)
(experimental) Initiate a portfolio share with another account.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected Portfolio(software.amazon.jsii.JsiiObjectRef objRef)
protected Portfolio(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Portfolio(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
PortfolioProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IPortfolio fromPortfolioArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String portfolioArn)
scope - The parent creating construct (usually `this`). This parameter is required.id - The construct's name. This parameter is required.portfolioArn - the Amazon Resource Name of the existing portfolio. This parameter is required.@Stability(value=Experimental)
public void addProduct(@NotNull
IProduct product)
addProduct in interface IPortfolioproduct - This parameter is required.@Stability(value=Experimental)
public void associateTagOptions(@NotNull
TagOptions tagOptions)
A TagOption is a key-value pair managed in AWS Service Catalog. It is not an AWS tag, but serves as a template for creating an AWS tag based on the TagOption.
associateTagOptions in interface IPortfoliotagOptions - This parameter is required.@Stability(value=Experimental)
public void constrainCloudFormationParameters(@NotNull
IProduct product,
@NotNull
CloudFormationRuleConstraintOptions options)
constrainCloudFormationParameters in interface IPortfolioproduct - This parameter is required.options - This parameter is required.@Stability(value=Experimental)
public void constrainTagUpdates(@NotNull
IProduct product,
@Nullable
TagUpdateConstraintOptions options)
constrainTagUpdates in interface IPortfolioproduct - This parameter is required.options - @Stability(value=Experimental)
public void constrainTagUpdates(@NotNull
IProduct product)
constrainTagUpdates in interface IPortfolioproduct - This parameter is required.@Stability(value=Experimental)
public void deployWithStackSets(@NotNull
IProduct product,
@NotNull
StackSetsConstraintOptions options)
deployWithStackSets in interface IPortfolioproduct - This parameter is required.options - This parameter is required.@Stability(value=Experimental) @NotNull protected String generateUniqueHash(@NotNull String value)
value - This parameter is required.@Stability(value=Experimental)
public void giveAccessToGroup(@NotNull
IGroup group)
giveAccessToGroup in interface IPortfoliogroup - This parameter is required.@Stability(value=Experimental)
public void giveAccessToRole(@NotNull
IRole role)
giveAccessToRole in interface IPortfoliorole - This parameter is required.@Stability(value=Experimental)
public void giveAccessToUser(@NotNull
IUser user)
giveAccessToUser in interface IPortfoliouser - This parameter is required.@Stability(value=Experimental)
public void notifyOnStackEvents(@NotNull
IProduct product,
@NotNull
ITopic topic,
@Nullable
CommonConstraintOptions options)
notifyOnStackEvents in interface IPortfolioproduct - This parameter is required.topic - This parameter is required.options - @Stability(value=Experimental)
public void notifyOnStackEvents(@NotNull
IProduct product,
@NotNull
ITopic topic)
notifyOnStackEvents in interface IPortfolioproduct - This parameter is required.topic - This parameter is required.@Stability(value=Experimental)
public void setLaunchRole(@NotNull
IProduct product,
@NotNull
IRole launchRole,
@Nullable
CommonConstraintOptions options)
This sets the launch role using the role arn which is tied to the account this role exists in. This is useful if you will be provisioning products from the account where this role exists. If you intend to share the portfolio across accounts, use a local launch role.
setLaunchRole in interface IPortfolioproduct - This parameter is required.launchRole - This parameter is required.options - @Stability(value=Experimental)
public void setLaunchRole(@NotNull
IProduct product,
@NotNull
IRole launchRole)
This sets the launch role using the role arn which is tied to the account this role exists in. This is useful if you will be provisioning products from the account where this role exists. If you intend to share the portfolio across accounts, use a local launch role.
setLaunchRole in interface IPortfolioproduct - This parameter is required.launchRole - This parameter is required.@Stability(value=Experimental)
public void setLocalLaunchRole(@NotNull
IProduct product,
@NotNull
IRole launchRole,
@Nullable
CommonConstraintOptions options)
The role name will be referenced by in the local account and must be set explicitly. This is useful when sharing the portfolio with multiple accounts.
setLocalLaunchRole in interface IPortfolioproduct - This parameter is required.launchRole - This parameter is required.options - @Stability(value=Experimental)
public void setLocalLaunchRole(@NotNull
IProduct product,
@NotNull
IRole launchRole)
The role name will be referenced by in the local account and must be set explicitly. This is useful when sharing the portfolio with multiple accounts.
setLocalLaunchRole in interface IPortfolioproduct - This parameter is required.launchRole - This parameter is required.@Stability(value=Experimental) @NotNull public IRole setLocalLaunchRoleName(@NotNull IProduct product, @NotNull String launchRoleName, @Nullable CommonConstraintOptions options)
The role will be referenced by name in the local account instead of a static role arn. A role with this name will automatically be created and assumable by Service Catalog in this account. This is useful when sharing the portfolio with multiple accounts.
setLocalLaunchRoleName in interface IPortfolioproduct - This parameter is required.launchRoleName - This parameter is required.options - @Stability(value=Experimental) @NotNull public IRole setLocalLaunchRoleName(@NotNull IProduct product, @NotNull String launchRoleName)
The role will be referenced by name in the local account instead of a static role arn. A role with this name will automatically be created and assumable by Service Catalog in this account. This is useful when sharing the portfolio with multiple accounts.
setLocalLaunchRoleName in interface IPortfolioproduct - This parameter is required.launchRoleName - This parameter is required.@Stability(value=Experimental)
public void shareWithAccount(@NotNull
String accountId,
@Nullable
PortfolioShareOptions options)
shareWithAccount in interface IPortfolioaccountId - This parameter is required.options - @Stability(value=Experimental)
public void shareWithAccount(@NotNull
String accountId)
shareWithAccount in interface IPortfolioaccountId - This parameter is required.@Stability(value=Experimental) @NotNull public String getPortfolioArn()
getPortfolioArn in interface IPortfolio@Stability(value=Experimental) @NotNull public String getPortfolioId()
getPortfolioId in interface IPortfolioCopyright © 2021. All rights reserved.