Interface IPortfolio
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IPortfolio.Jsii$Default
- All Known Implementing Classes:
IPortfolio.Jsii$Proxy
,Portfolio
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIPortfolio
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProduct
(IProduct product) Associate portfolio with the given product.void
associateTagOptions
(TagOptions tagOptions) Associate Tag Options.void
constrainCloudFormationParameters
(IProduct product, CloudFormationRuleConstraintOptions options) Set provisioning rules for the product.void
constrainTagUpdates
(IProduct product) Add a Resource Update Constraint.void
constrainTagUpdates
(IProduct product, TagUpdateConstraintOptions options) Add a Resource Update Constraint.void
deployWithStackSets
(IProduct product, StackSetsConstraintOptions options) Configure deployment options using AWS Cloudformation StackSets.The ARN of the portfolio.The ID of the portfolio.void
giveAccessToGroup
(IGroup group) Associate portfolio with an IAM Group.void
giveAccessToRole
(IRole role) Associate portfolio with an IAM Role.void
giveAccessToUser
(IUser user) Associate portfolio with an IAM User.void
notifyOnStackEvents
(IProduct product, ITopic topic) Add notifications for supplied topics on the provisioned product.void
notifyOnStackEvents
(IProduct product, ITopic topic, CommonConstraintOptions options) Add notifications for supplied topics on the provisioned product.void
setLaunchRole
(IProduct product, IRole launchRole) Force users to assume a certain role when launching a product.void
setLaunchRole
(IProduct product, IRole launchRole, CommonConstraintOptions options) Force users to assume a certain role when launching a product.void
setLocalLaunchRole
(IProduct product, IRole launchRole) Force users to assume a certain role when launching a product.void
setLocalLaunchRole
(IProduct product, IRole launchRole, CommonConstraintOptions options) Force users to assume a certain role when launching a product.setLocalLaunchRoleName
(IProduct product, String launchRoleName) Force users to assume a certain role when launching a product.setLocalLaunchRoleName
(IProduct product, String launchRoleName, CommonConstraintOptions options) Force users to assume a certain role when launching a product.void
shareWithAccount
(String accountId) Initiate a portfolio share with another account.void
shareWithAccount
(String accountId, PortfolioShareOptions options) Initiate a portfolio share with another account.Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPortfolioArn
The ARN of the portfolio. -
getPortfolioId
The ID of the portfolio. -
addProduct
Associate portfolio with the given product.- Parameters:
product
- A service catalog produt. This parameter is required.
-
associateTagOptions
Associate Tag Options.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.
- Parameters:
tagOptions
- This parameter is required.
-
constrainCloudFormationParameters
@Stability(Stable) void constrainCloudFormationParameters(@NotNull IProduct product, @NotNull CloudFormationRuleConstraintOptions options) Set provisioning rules for the product.- Parameters:
product
- A service catalog product. This parameter is required.options
- options for the constraint. This parameter is required.
-
constrainTagUpdates
@Stability(Stable) void constrainTagUpdates(@NotNull IProduct product, @Nullable TagUpdateConstraintOptions options) Add a Resource Update Constraint.- Parameters:
product
- This parameter is required.options
-
-
constrainTagUpdates
Add a Resource Update Constraint.- Parameters:
product
- This parameter is required.
-
deployWithStackSets
@Stability(Stable) void deployWithStackSets(@NotNull IProduct product, @NotNull StackSetsConstraintOptions options) Configure deployment options using AWS Cloudformation StackSets.- Parameters:
product
- A service catalog product. This parameter is required.options
- Configuration options for the constraint. This parameter is required.
-
giveAccessToGroup
Associate portfolio with an IAM Group.- Parameters:
group
- an IAM Group. This parameter is required.
-
giveAccessToRole
Associate portfolio with an IAM Role.- Parameters:
role
- an IAM role. This parameter is required.
-
giveAccessToUser
Associate portfolio with an IAM User.- Parameters:
user
- an IAM user. This parameter is required.
-
notifyOnStackEvents
@Stability(Stable) void notifyOnStackEvents(@NotNull IProduct product, @NotNull ITopic topic, @Nullable CommonConstraintOptions options) Add notifications for supplied topics on the provisioned product.- Parameters:
product
- A service catalog product. This parameter is required.topic
- A SNS Topic to receive notifications on events related to the provisioned product. This parameter is required.options
-
-
notifyOnStackEvents
Add notifications for supplied topics on the provisioned product.- Parameters:
product
- A service catalog product. This parameter is required.topic
- A SNS Topic to receive notifications on events related to the provisioned product. This parameter is required.
-
setLaunchRole
@Stability(Stable) void setLaunchRole(@NotNull IProduct product, @NotNull IRole launchRole, @Nullable CommonConstraintOptions options) Force users to assume a certain role when launching a product.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.
- Parameters:
product
- A service catalog product. This parameter is required.launchRole
- The IAM role a user must assume when provisioning the product. This parameter is required.options
- options for the constraint.
-
setLaunchRole
Force users to assume a certain role when launching a product.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.
- Parameters:
product
- A service catalog product. This parameter is required.launchRole
- The IAM role a user must assume when provisioning the product. This parameter is required.
-
setLocalLaunchRole
@Stability(Stable) void setLocalLaunchRole(@NotNull IProduct product, @NotNull IRole launchRole, @Nullable CommonConstraintOptions options) Force users to assume a certain role when launching a product.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.
- Parameters:
product
- A service catalog product. This parameter is required.launchRole
- The IAM role a user must assume when provisioning the product. This parameter is required.options
- options for the constraint.
-
setLocalLaunchRole
Force users to assume a certain role when launching a product.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.
- Parameters:
product
- A service catalog product. This parameter is required.launchRole
- The IAM role a user must assume when provisioning the product. This parameter is required.
-
setLocalLaunchRoleName
@Stability(Stable) @NotNull IRole setLocalLaunchRoleName(@NotNull IProduct product, @NotNull String launchRoleName, @Nullable CommonConstraintOptions options) Force users to assume a certain role when launching a product.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.
- Parameters:
product
- A service catalog product. This parameter is required.launchRoleName
- The name of the IAM role a user must assume when provisioning the product. This parameter is required.options
- options for the constraint.
-
setLocalLaunchRoleName
@Stability(Stable) @NotNull IRole setLocalLaunchRoleName(@NotNull IProduct product, @NotNull String launchRoleName) Force users to assume a certain role when launching a product.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.
- Parameters:
product
- A service catalog product. This parameter is required.launchRoleName
- The name of the IAM role a user must assume when provisioning the product. This parameter is required.
-