{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-update-configuration-request-schema.json",
  "title": "UpdateConfigurationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-configuration-api-openapi.yml#/components/schemas/UpdateConfigurationRequest",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "description": "The 12-digit Amazon Web Services account ID of the member account whose scan configuration you want to update. When specified, you must be the delegated administrator for this member account. If not specified, the operation updates your own configuration and propagates changes to any member accounts that have not been individually configured."
    },
    "ecrConfiguration": {
      "$ref": "#/$defs/EcrConfiguration"
    },
    "ec2Configuration": {
      "$ref": "#/$defs/Ec2Configuration"
    },
    "amiConfiguration": {
      "$ref": "#/$defs/AmiConfiguration"
    },
    "updateConfigurationInheritance": {
      "$ref": "#/$defs/UpdateConfigurationInheritance"
    }
  },
  "$defs": {
    "AmiConfiguration": {
      "type": "object",
      "properties": {
        "lastLaunchedWithin": {
          "type": "string",
          "description": "Restricts scanning to AMIs that were last launched within the specified duration."
        },
        "createdWithin": {
          "type": "string",
          "description": "Restricts scanning to AMIs that were created within the specified duration."
        },
        "scanModeConfiguration": {
          "$ref": "#/$defs/AmiScanModeConfiguration"
        }
      },
      "required": [
        "scanModeConfiguration"
      ]
    },
    "AmiScanModeConfiguration": {
      "type": "object",
      "properties": {
        "scanMode": {
          "type": "string",
          "description": "The scan mode that determines whether all AMIs are scanned or only those matching the specified tags."
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AmiTagFilter"
          },
          "description": "The tag filters used to select which AMIs are scanned when using targeted scanning."
        },
        "excludeCopiedAmis": {
          "type": "boolean",
          "description": "Whether to exclude AMIs that are copies of other AMIs from scanning."
        },
        "excludeBackupDlmAmis": {
          "type": "boolean",
          "description": "Whether to exclude AMIs created by Amazon Data Lifecycle Manager (DLM) backups from scanning."
        }
      },
      "required": [
        "scanMode"
      ]
    },
    "AmiTagFilter": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The tag key to match against an AMI's tags."
        },
        "value": {
          "type": "string",
          "description": "The tag value to match against an AMI's tags. If omitted, the filter matches on the tag key alone."
        }
      },
      "required": [
        "key"
      ]
    },
    "Ec2Configuration": {
      "type": "object",
      "properties": {
        "scanMode": {
          "type": "string",
          "description": "The scan method that is applied to the instance."
        },
        "activateVMScanner": {
          "type": "boolean",
          "description": "Whether to activate Amazon Inspector VM scanner for Amazon EC2 scanning."
        }
      },
      "required": [
        "scanMode"
      ]
    },
    "EcrConfiguration": {
      "type": "object",
      "properties": {
        "rescanDuration": {
          "type": "string",
          "description": "The rescan duration configured for image push date."
        },
        "pullDateRescanDuration": {
          "type": "string",
          "description": "The rescan duration configured for image pull date."
        },
        "pullDateRescanMode": {
          "type": "string",
          "description": "The pull date for the re-scan mode."
        }
      },
      "required": [
        "rescanDuration"
      ]
    },
    "UpdateConfigurationInheritance": {
      "type": "object",
      "properties": {
        "ec2Configuration": {
          "type": "string",
          "description": "The inheritance mode for Amazon EC2 scan configuration. Set to INHERIT_FROM_ADMIN to reset the member account's Amazon EC2 scan configuration to inherit from the delegated administrator. If omitted, the member account's existing Amazon EC2 scan configuration is not changed."
        },
        "ecrConfiguration": {
          "type": "string",
          "description": "The inheritance mode for Amazon ECR scan configuration. Set to INHERIT_FROM_ADMIN to reset the member account's Amazon ECR scan configuration to inherit from the delegated administrator. If omitted, the member account's existing Amazon ECR scan configuration is not changed."
        },
        "amiConfiguration": {
          "type": "string"
        }
      }
    }
  }
}