{
  "typeName" : "AWS::ServiceCatalog::PortfolioShare",
  "description" : "Resource Type definition for AWS::ServiceCatalog::PortfolioShare",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties" : false,
  "properties" : {
    "AcceptLanguage" : {
      "type" : "string",
      "description" : "The language code."
    },
    "PortfolioId" : {
      "type" : "string",
      "description" : "The portfolio identifier."
    },
    "AccountId" : {
      "type" : "string",
      "description" : "The AWS account ID.",
      "pattern" : "^[0-9]{12}$"
    },
    "ShareTagOptions" : {
      "type" : "boolean",
      "description" : "Enables or disables TagOptions sharing when creating the portfolio share."
    }
  },
  "tagging" : {
    "taggable" : false
  },
  "required" : [ "AccountId", "PortfolioId" ],
  "createOnlyProperties" : [ "/properties/AccountId", "/properties/PortfolioId" ],
  "writeOnlyProperties" : [ "/properties/AcceptLanguage" ],
  "primaryIdentifier" : [ "/properties/PortfolioId", "/properties/AccountId" ],
  "handlers" : {
    "read" : {
      "permissions" : [ "servicecatalog:DescribePortfolioShares" ]
    },
    "list" : {
      "handlerSchema" : {
        "properties" : {
          "PortfolioId" : {
            "$ref" : "resource-schema.json#/properties/PortfolioId"
          }
        },
        "required" : [ "PortfolioId" ]
      },
      "permissions" : [ "servicecatalog:DescribePortfolioShares" ]
    },
    "create" : {
      "permissions" : [ "servicecatalog:DescribePortfolioShares", "servicecatalog:CreatePortfolioShare" ]
    },
    "update" : {
      "permissions" : [ "servicecatalog:DescribePortfolioShares", "servicecatalog:UpdatePortfolioShare" ]
    },
    "delete" : {
      "permissions" : [ "servicecatalog:DescribePortfolioShares", "servicecatalog:DeletePortfolioShare" ]
    }
  }
}