Skip to content

Instantly share code, notes, and snippets.

import boto3
dbclient = boto3.client('dynamodb')
def checkdb(build=None, pid=None):
if build is not None and pid is not None:
r = dbclient.scan(TableName='osbuilds',
FilterExpression=
'build = :build and productid = :pid',
ExpressionAttributeValues={
':build':{'S':build},
# encoding utf-8
#
# Requires an MCX profile with the following (example) format:
#
# <key>PayloadType</key>
# <string>com.apple.ManagedClient.preferences</string>
# <key>PayloadContent</key>
# <dict>
# <key>CustomConfig</key>
# <dict>