Skip to content
v2.278.0

CfnPortfolioPrincipalAssociationProps Struct ​

Properties for defining a CfnPortfolioPrincipalAssociation.

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 cfnPortfolioPrincipalAssociationProps: servicecatalog.CfnPortfolioPrincipalAssociationProps = {
  principalType: 'principalType',

  // the properties below are optional
  acceptLanguage: 'acceptLanguage',
  portfolioId: 'portfolioId',
  principalArn: 'principalArn',
};
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_principal_association_props = servicecatalog.CfnPortfolioPrincipalAssociationProps(
    principal_type="principalType",

    # the properties below are optional
    accept_language="acceptLanguage",
    portfolio_id="portfolioId",
    principal_arn="principalArn"
)
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.*;

CfnPortfolioPrincipalAssociationProps cfnPortfolioPrincipalAssociationProps = CfnPortfolioPrincipalAssociationProps.builder()
        .principalType("principalType")

        // the properties below are optional
        .acceptLanguage("acceptLanguage")
        .portfolioId("portfolioId")
        .principalArn("principalArn")
        .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 cfnPortfolioPrincipalAssociationProps = new CfnPortfolioPrincipalAssociationProps {
    PrincipalType = "principalType",

    // the properties below are optional
    AcceptLanguage = "acceptLanguage",
    PortfolioId = "portfolioId",
    PrincipalArn = "principalArn"
};
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"

cfnPortfolioPrincipalAssociationProps := &CfnPortfolioPrincipalAssociationProps{
	PrincipalType: jsii.String("principalType"),

	// the properties below are optional
	AcceptLanguage: jsii.String("acceptLanguage"),
	PortfolioId: jsii.String("portfolioId"),
	PrincipalArn: jsii.String("principalArn"),
}

Properties ​

acceptLanguageoptionalstringaccept_languageoptionalstracceptLanguageoptionalStringAcceptLanguageoptionalstringAcceptLanguageoptional*string #
The language code.
  • jp - Japanese
  • zh - Chinese
portfolioIdoptionalstringportfolio_idoptionalstrportfolioIdoptionalStringPortfolioIdoptionalstringPortfolioIdoptional*string #
The portfolio identifier.
principalArnoptionalstringprincipal_arnoptionalstrprincipalArnoptionalStringPrincipalArnoptionalstringPrincipalArnoptional*string #
The ARN of the principal ( IAM user, role, or group).
principalTypestringprincipal_typestrprincipalTypeStringPrincipalTypestringPrincipalType*string required #
The principal type.

The supported values are IAM and IAM_PATTERN .