Skip to content
v2.278.0

CfnPortfolioShareProps Struct ​

Properties for defining a CfnPortfolioShare.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_servicecatalog as servicecatalog } from 'aws-cdk-lib';
const cfnPortfolioShareProps: servicecatalog.CfnPortfolioShareProps = {
  accountId: 'accountId',
  portfolioId: 'portfolioId',

  // the properties below are optional
  acceptLanguage: 'acceptLanguage',
  shareTagOptions: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_servicecatalog as servicecatalog

cfn_portfolio_share_props = servicecatalog.CfnPortfolioShareProps(
    account_id="accountId",
    portfolio_id="portfolioId",

    # the properties below are optional
    accept_language="acceptLanguage",
    share_tag_options=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.servicecatalog.*;

CfnPortfolioShareProps cfnPortfolioShareProps = CfnPortfolioShareProps.builder()
        .accountId("accountId")
        .portfolioId("portfolioId")

        // the properties below are optional
        .acceptLanguage("acceptLanguage")
        .shareTagOptions(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Servicecatalog;

var cfnPortfolioShareProps = new CfnPortfolioShareProps {
    AccountId = "accountId",
    PortfolioId = "portfolioId",

    // the properties below are optional
    AcceptLanguage = "acceptLanguage",
    ShareTagOptions = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnPortfolioShareProps := &CfnPortfolioShareProps{
	AccountId: jsii.String("accountId"),
	PortfolioId: jsii.String("portfolioId"),

	// the properties below are optional
	AcceptLanguage: jsii.String("acceptLanguage"),
	ShareTagOptions: jsii.Boolean(false),
}

Properties ​

acceptLanguageoptionalstringaccept_languageoptionalstracceptLanguageoptionalStringAcceptLanguageoptionalstringAcceptLanguageoptional*string #
The language code.
  • jp - Japanese
  • zh - Chinese
accountIdstringaccount_idstraccountIdStringAccountIdstringAccountId*string required #
The AWS account ID.

For example, 123456789012 .

portfolioIdstringportfolio_idstrportfolioIdStringPortfolioIdstringPortfolioId*string required #
The portfolio identifier.
shareTagOptionsoptionalboolean | IResolvableshare_tag_optionsoptionaltyping.Union[bool, IResolvable]shareTagOptionsoptionalBooleanShareTagOptionsoptionalboolShareTagOptionsoptionalinterface{} #
Indicates whether TagOptions sharing is enabled or disabled for the portfolio share.