libZSservicesZSamazonka-servicecatalogZSamazonka-servicecatalog
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ServiceCatalog.AcceptPortfolioShare

Description

Accepts an offer to share the specified portfolio.

Synopsis

Creating a Request

data AcceptPortfolioShare Source #

See: newAcceptPortfolioShare smart constructor.

Constructors

AcceptPortfolioShare' 

Fields

  • portfolioShareType :: Maybe PortfolioShareType

    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

  • acceptLanguage :: Maybe Text

    The language code.

    • en - English (default)
    • jp - Japanese
    • zh - Chinese
  • portfolioId :: Text

    The portfolio identifier.

Instances

Instances details
Eq AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Read AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Show AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Generic AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Associated Types

type Rep AcceptPortfolioShare :: Type -> Type #

NFData AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Methods

rnf :: AcceptPortfolioShare -> () #

Hashable AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

ToJSON AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

AWSRequest AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Associated Types

type AWSResponse AcceptPortfolioShare #

ToHeaders AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

ToPath AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

ToQuery AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

type Rep AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

type Rep AcceptPortfolioShare = D1 ('MetaData "AcceptPortfolioShare" "Amazonka.ServiceCatalog.AcceptPortfolioShare" "libZSservicesZSamazonka-servicecatalogZSamazonka-servicecatalog" 'False) (C1 ('MetaCons "AcceptPortfolioShare'" 'PrefixI 'True) (S1 ('MetaSel ('Just "portfolioShareType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PortfolioShareType)) :*: (S1 ('MetaSel ('Just "acceptLanguage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "portfolioId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AcceptPortfolioShare Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

newAcceptPortfolioShare Source #

Create a value of AcceptPortfolioShare with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:portfolioShareType:AcceptPortfolioShare', acceptPortfolioShare_portfolioShareType - 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

$sel:acceptLanguage:AcceptPortfolioShare', acceptPortfolioShare_acceptLanguage - The language code.

  • en - English (default)
  • jp - Japanese
  • zh - Chinese

$sel:portfolioId:AcceptPortfolioShare', acceptPortfolioShare_portfolioId - The portfolio identifier.

Request Lenses

acceptPortfolioShare_portfolioShareType :: Lens' AcceptPortfolioShare (Maybe PortfolioShareType) Source #

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

acceptPortfolioShare_acceptLanguage :: Lens' AcceptPortfolioShare (Maybe Text) Source #

The language code.

  • en - English (default)
  • jp - Japanese
  • zh - Chinese

Destructuring the Response

data AcceptPortfolioShareResponse Source #

See: newAcceptPortfolioShareResponse smart constructor.

Constructors

AcceptPortfolioShareResponse' 

Fields

Instances

Instances details
Eq AcceptPortfolioShareResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Read AcceptPortfolioShareResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Show AcceptPortfolioShareResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Generic AcceptPortfolioShareResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

Associated Types

type Rep AcceptPortfolioShareResponse :: Type -> Type #

NFData AcceptPortfolioShareResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

type Rep AcceptPortfolioShareResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.AcceptPortfolioShare

type Rep AcceptPortfolioShareResponse = D1 ('MetaData "AcceptPortfolioShareResponse" "Amazonka.ServiceCatalog.AcceptPortfolioShare" "libZSservicesZSamazonka-servicecatalogZSamazonka-servicecatalog" 'False) (C1 ('MetaCons "AcceptPortfolioShareResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAcceptPortfolioShareResponse Source #

Create a value of AcceptPortfolioShareResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:AcceptPortfolioShareResponse', acceptPortfolioShareResponse_httpStatus - The response's http status code.

Response Lenses