{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-list-resource-data-sync-result-schema.json",
  "title": "ListResourceDataSyncResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-resource-data-sync-api-openapi.yml#/components/schemas/ListResourceDataSyncResult",
  "type": "object",
  "properties": {
    "ResourceDataSyncItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourceDataSyncItem"
      },
      "description": "A list of your current resource data sync configurations and their statuses."
    },
    "NextToken": {
      "type": "string",
      "description": "The token for the next set of items to return. Use this token to get the next set of results."
    }
  },
  "$defs": {
    "ResourceDataSyncAwsOrganizationsSource": {
      "type": "object",
      "properties": {
        "OrganizationSourceType": {
          "type": "string",
          "description": "If an Amazon Web Services organization is present, this is either OrganizationalUnits or EntireOrganization. For OrganizationalUnits, the data is aggregated from a set of organization units. For EntireOrganization, the data is aggregated from the entire Amazon Web Services organization."
        },
        "OrganizationalUnits": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceDataSyncOrganizationalUnit"
          },
          "description": "The Organizations organization units included in the sync."
        }
      },
      "required": [
        "OrganizationSourceType"
      ]
    },
    "ResourceDataSyncDestinationDataSharing": {
      "type": "object",
      "properties": {
        "DestinationDataSharingType": {
          "type": "string",
          "description": "The sharing data type. Only Organization is supported."
        }
      }
    },
    "ResourceDataSyncItem": {
      "type": "object",
      "properties": {
        "SyncName": {
          "type": "string",
          "description": "The name of the resource data sync."
        },
        "SyncType": {
          "type": "string",
          "description": "The type of resource data sync. If SyncType is SyncToDestination, then the resource data sync synchronizes data to an S3 bucket. If the SyncType is SyncFromSource then the resource data sync synchronizes data from Organizations or from multiple Amazon Web Services Regions."
        },
        "SyncSource": {
          "$ref": "#/$defs/ResourceDataSyncSourceWithState"
        },
        "S3Destination": {
          "$ref": "#/$defs/ResourceDataSyncS3Destination"
        },
        "LastSyncTime": {
          "type": "string",
          "format": "date-time",
          "description": "The last time the configuration attempted to sync (UTC)."
        },
        "LastSuccessfulSyncTime": {
          "type": "string",
          "format": "date-time",
          "description": "The last time the sync operations returned a status of SUCCESSFUL (UTC)."
        },
        "SyncLastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource data sync was changed."
        },
        "LastStatus": {
          "type": "string",
          "enum": [
            "Successful",
            "Failed",
            "InProgress"
          ],
          "description": "The status reported by the last sync."
        },
        "SyncCreatedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the configuration was created (UTC)."
        },
        "LastSyncStatusMessage": {
          "type": "string",
          "description": "The status message details reported by the last sync."
        }
      }
    },
    "ResourceDataSyncOrganizationalUnit": {
      "type": "object",
      "properties": {
        "OrganizationalUnitId": {
          "type": "string",
          "description": "The Organizations unit ID data source for the sync."
        }
      }
    },
    "ResourceDataSyncS3Destination": {
      "type": "object",
      "properties": {
        "BucketName": {
          "type": "string",
          "description": "The name of the S3 bucket where the aggregated data is stored."
        },
        "Prefix": {
          "type": "string",
          "description": "An Amazon S3 prefix for the bucket."
        },
        "SyncFormat": {
          "type": "string",
          "enum": [
            "JsonSerDe"
          ],
          "description": "A supported sync format. The following format is currently supported: JsonSerDe"
        },
        "Region": {
          "type": "string",
          "description": "The Amazon Web Services Region with the S3 bucket targeted by the resource data sync."
        },
        "AWSKMSKeyARN": {
          "type": "string",
          "description": "The ARN of an encryption key for a destination in Amazon S3. Must belong to the same Region as the destination S3 bucket."
        },
        "DestinationDataSharing": {
          "$ref": "#/$defs/ResourceDataSyncDestinationDataSharing"
        }
      },
      "required": [
        "BucketName",
        "SyncFormat",
        "Region"
      ]
    },
    "ResourceDataSyncSourceWithState": {
      "type": "object",
      "properties": {
        "SourceType": {
          "type": "string",
          "description": "The type of data source for the resource data sync. SourceType is either AwsOrganizations (if an organization is present in Organizations) or singleAccountMultiRegions."
        },
        "AwsOrganizationsSource": {
          "$ref": "#/$defs/ResourceDataSyncAwsOrganizationsSource"
        },
        "SourceRegions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The SyncSource Amazon Web Services Regions included in the resource data sync."
        },
        "IncludeFutureRegions": {
          "type": "boolean",
          "description": "Whether to automatically synchronize and aggregate data from new Amazon Web Services Regions when those Regions come online."
        },
        "State": {
          "type": "string",
          "description": "The data type name for including resource data sync state. There are four sync states: OrganizationNotExists: Your organization doesn't exist. NoPermissions: The system can't locate the service-linked role. This role is automatically created when a user creates a resource data sync in Explorer. InvalidOrganizationalUnit: You specified or selected an invalid unit in the resource data sync configuration. TrustedAccessDisabled: You disabled Systems Manager access in the organization in Organizations."
        },
        "EnableAllOpsDataSources": {
          "type": "boolean",
          "description": "When you create a resource data sync, if you choose one of the Organizations options, then Systems Manager automatically enables all OpsData sources in the selected Amazon Web Services Regions for all Amazon Web Services accounts in your organization (or in the selected organization units). For more information, see Setting up Systems Manager Explorer to display data from multiple accounts and Regions in the Amazon Web Services Systems Manager User Guide."
        }
      }
    }
  }
}