- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
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 |
---|
Parameter | Type | Description |
---|---|---|
PortfolioId Required | string | undefined | The portfolio identifier. |
AcceptLanguage | string | undefined | The language code.
|
PortfolioShareType | PortfolioShareType | undefined | The type of shared portfolios to accept. The default is to accept imported portfolios.
For example, |
AcceptPortfolioShareCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
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. |