@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-07-09T19:17:58.080Z") @Stability(value=Experimental) public class Portfolio extends Resource implements IPortfolio
| 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 |
|---|---|
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 |
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, waitgetNodeprotected 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) @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 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.