AcceptPortfolioShareCommand

Accepts an offer to share the specified portfolio.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { ServiceCatalogClient, AcceptPortfolioShareCommand } from "@aws-sdk/client-service-catalog"; // ES Modules import
// const { ServiceCatalogClient, AcceptPortfolioShareCommand } = require("@aws-sdk/client-service-catalog"); // CommonJS import
const client = new ServiceCatalogClient(config);
const input = { // AcceptPortfolioShareInput
  AcceptLanguage: "STRING_VALUE",
  PortfolioId: "STRING_VALUE", // required
  PortfolioShareType: "IMPORTED" || "AWS_SERVICECATALOG" || "AWS_ORGANIZATIONS",
};
const command = new AcceptPortfolioShareCommand(input);
const response = await client.send(command);
// {};

AcceptPortfolioShareCommand Input

Parameter
Type
Description
PortfolioId
Required
string | undefined

The portfolio identifier.

AcceptLanguage
string | undefined

The language code.

  • jp - Japanese

  • zh - Chinese

PortfolioShareType
PortfolioShareType | undefined

The type of shared portfolios to accept. The default is to accept imported portfolios.

  • AWS_ORGANIZATIONS - Accept portfolios shared by the management account of your organization.

  • IMPORTED - Accept imported portfolios.

  • AWS_SERVICECATALOG - Not supported. (Throws ResourceNotFoundException.)

For example, aws servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" --portfolio-share-type AWS_ORGANIZATIONS

AcceptPortfolioShareCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
InvalidParametersException
client

One or more parameters provided to the operation are not valid.

LimitExceededException
client

The current limits of the service would have been exceeded by this operation. Decrease your resource use or increase your service limits and retry the operation.

ResourceNotFoundException
client

The specified resource was not found.

ServiceCatalogServiceException
Base exception class for all service exceptions from ServiceCatalog service.