> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# createOrUpdateAwsMarketplaceProduct

> Create or update an AWS Marketplace product



**mutation** `createOrUpdateAwsMarketplaceProduct(input: CreateOrUpdateAwsMarketplaceProductInput!): Product!`

## Arguments

**`input`**: `CreateOrUpdateAwsMarketplaceProductInput!` (required)

## Returns

`Product!`

**`additionalMetaData`**: `JSON`

Additional metadata for the product

---

**`addons`**: `[Addon!]!`

Addons associated with the product

---

**`autoCancellationRules`**: `[AutoCancellationRule!]!`

Method to get the auto cancellation rules for the product

---

**`awsMarketplaceProductCode`**: `String`

AWS Marketplace product code

---

**`awsMarketplaceProductId`**: `String`

AWS Marketplace product ID

---

**`createdAt`**: `DateTime!`

Timestamp of when the record was created

---

**`description`**: `String`

Description of the product

---

**`displayName`**: `String`

Display name of the product

---

**`downgradePlan`**: `Plan`

Plan to downgrade to when a subscription ends or is cancelled

---

**`environment`**: `Environment`

---

**`environmentId`**: `UUID!`

The unique identifier for the environment

---

**`hasSubscriptions`**: `Boolean!`

Whether the product has subscriptions

---

**`id`**: `UUID!`

Unique identifier for the entity

---

**`isDefaultProduct`**: `Boolean!`

Indicates if this is the default product for the account

---

**`multipleSubscriptions`**: `Boolean!`

Indicates if multiple subscriptions to this product are allowed

---

**`plans`**: `[Plan!]!`

Plans associated with the product

---

**`productSettings`**: `ProductSettings!`

Settings for the product

---

**`refId`**: `String!`

The unique identifier for the entity

---

**`status`**: `ProductStatus!`

The status of the product

---

**`subscriptionStartPlan`**: `Plan`

---

**`subscriptionUpdateUsageResetCutoffRule`**: `SubscriptionUpdateUsageResetCutoffRule!`

Method to get the rule for resetting usage cutoff on subscription update

---

**`updatedAt`**: `DateTime!`

Timestamp of when the record was last updated

## Examples

```graphql Mutation
mutation CreateOrUpdateAwsMarketplaceProduct($input: CreateOrUpdateAwsMarketplaceProductInput!) {
  createOrUpdateAwsMarketplaceProduct(input: $input) {
    additionalMetaData
    addons {
      additionalMetaData
      billingId
      billingLinkUrl
      createdAt
      dependencies {
        __typename
      }
      description
    }
    autoCancellationRules {
      sourcePlan {
        additionalMetaData
        awsMarketplacePlanDimension
        basePlan {
          __typename
        }
        billingId
        billingLinkUrl
        compatibleAddons {
          __typename
        }
      }
      targetPlan {
        additionalMetaData
        awsMarketplacePlanDimension
        basePlan {
          __typename
        }
        billingId
        billingLinkUrl
        compatibleAddons {
          __typename
        }
      }
    }
    awsMarketplaceProductCode
    awsMarketplaceProductId
    createdAt
  }
}
```

```json Variables
{
  "input": {
    "awsDimensionsMapping": [
      {
        "key": "string",
        "planName": "string",
        "planRefId": "string"
      }
    ]
  }
}
```

```json Response
{
  "data": {
    "createOrUpdateAwsMarketplaceProduct": {
      "additionalMetaData": "value",
      "addons": [
        {
          "additionalMetaData": "value",
          "billingId": "string",
          "billingLinkUrl": "string",
          "createdAt": "value",
          "dependencies": [
            {
              "__typename": "Addon"
            }
          ],
          "description": "string"
        }
      ],
      "autoCancellationRules": [
        {
          "sourcePlan": {
            "additionalMetaData": "value",
            "awsMarketplacePlanDimension": "string",
            "basePlan": {
              "__typename": "Plan"
            },
            "billingId": "string",
            "billingLinkUrl": "string",
            "compatibleAddons": [
              {
                "__typename": "Addon"
              }
            ]
          },
          "targetPlan": {
            "additionalMetaData": "value",
            "awsMarketplacePlanDimension": "string",
            "basePlan": {
              "__typename": "Plan"
            },
            "billingId": "string",
            "billingLinkUrl": "string",
            "compatibleAddons": [
              {
                "__typename": "Addon"
              }
            ]
          }
        }
      ],
      "awsMarketplaceProductCode": "string",
      "awsMarketplaceProductId": "string",
      "createdAt": "value"
    }
  }
}
```


## Related topics

- [CreateOrUpdateAwsMarketplaceProductInput](https://docs.stigg.io/graphql-reference/types/CreateOrUpdateAwsMarketplaceProductInput.md)
- [AWS Marketplace](https://docs.stigg.io/documentation/native-integrations/marketplaces/aws-marketplace.md)
- [Create product](https://docs.stigg.io/api-reference/products/create-product.md)
- [AwsProduct](https://docs.stigg.io/graphql-reference/types/AwsProduct.md)
- [Update a product](https://docs.stigg.io/api-reference/products/update-a-product.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.