{
  "version": "2.0",
  "metadata": {
    "apiVersion": "2016-11-28",
    "endpointPrefix": "organizations",
    "jsonVersion": "1.1",
    "protocol": "json",
    "serviceAbbreviation": "Organizations",
    "serviceFullName": "AWS Organizations",
    "signatureVersion": "v4",
    "targetPrefix": "AWSOrganizationsV20161128",
    "timestampFormat": "unixTimestamp",
    "uid": "organizations-2016-11-28"
  },
  "operations": {
    "AcceptHandshake": {
      "input": {
        "type": "structure",
        "required": [
          "HandshakeId"
        ],
        "members": {
          "HandshakeId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Handshake": {
            "shape": "S4"
          }
        }
      }
    },
    "AttachPolicy": {
      "input": {
        "type": "structure",
        "required": [
          "PolicyId",
          "TargetId"
        ],
        "members": {
          "PolicyId": {},
          "TargetId": {}
        }
      }
    },
    "CancelHandshake": {
      "input": {
        "type": "structure",
        "required": [
          "HandshakeId"
        ],
        "members": {
          "HandshakeId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Handshake": {
            "shape": "S4"
          }
        }
      }
    },
    "CreateAccount": {
      "input": {
        "type": "structure",
        "required": [
          "Email",
          "AccountName"
        ],
        "members": {
          "Email": {
            "shape": "Sn"
          },
          "AccountName": {
            "shape": "So"
          },
          "RoleName": {},
          "IamUserAccessToBilling": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "CreateAccountStatus": {
            "shape": "Ss"
          }
        }
      }
    },
    "CreateOrganization": {
      "input": {
        "type": "structure",
        "members": {
          "FeatureSet": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Organization": {
            "shape": "S10"
          }
        }
      }
    },
    "CreateOrganizationalUnit": {
      "input": {
        "type": "structure",
        "required": [
          "ParentId",
          "Name"
        ],
        "members": {
          "ParentId": {},
          "Name": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "OrganizationalUnit": {
            "shape": "S1c"
          }
        }
      }
    },
    "CreatePolicy": {
      "input": {
        "type": "structure",
        "required": [
          "Content",
          "Description",
          "Name",
          "Type"
        ],
        "members": {
          "Content": {},
          "Description": {},
          "Name": {},
          "Type": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Policy": {
            "shape": "S1k"
          }
        }
      }
    },
    "DeclineHandshake": {
      "input": {
        "type": "structure",
        "required": [
          "HandshakeId"
        ],
        "members": {
          "HandshakeId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Handshake": {
            "shape": "S4"
          }
        }
      }
    },
    "DeleteOrganization": {},
    "DeleteOrganizationalUnit": {
      "input": {
        "type": "structure",
        "required": [
          "OrganizationalUnitId"
        ],
        "members": {
          "OrganizationalUnitId": {}
        }
      }
    },
    "DeletePolicy": {
      "input": {
        "type": "structure",
        "required": [
          "PolicyId"
        ],
        "members": {
          "PolicyId": {}
        }
      }
    },
    "DescribeAccount": {
      "input": {
        "type": "structure",
        "required": [
          "AccountId"
        ],
        "members": {
          "AccountId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Account": {
            "shape": "S1u"
          }
        }
      }
    },
    "DescribeCreateAccountStatus": {
      "input": {
        "type": "structure",
        "required": [
          "CreateAccountRequestId"
        ],
        "members": {
          "CreateAccountRequestId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "CreateAccountStatus": {
            "shape": "Ss"
          }
        }
      }
    },
    "DescribeHandshake": {
      "input": {
        "type": "structure",
        "required": [
          "HandshakeId"
        ],
        "members": {
          "HandshakeId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Handshake": {
            "shape": "S4"
          }
        }
      }
    },
    "DescribeOrganization": {
      "output": {
        "type": "structure",
        "members": {
          "Organization": {
            "shape": "S10"
          }
        }
      }
    },
    "DescribeOrganizationalUnit": {
      "input": {
        "type": "structure",
        "required": [
          "OrganizationalUnitId"
        ],
        "members": {
          "OrganizationalUnitId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "OrganizationalUnit": {
            "shape": "S1c"
          }
        }
      }
    },
    "DescribePolicy": {
      "input": {
        "type": "structure",
        "required": [
          "PolicyId"
        ],
        "members": {
          "PolicyId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Policy": {
            "shape": "S1k"
          }
        }
      }
    },
    "DetachPolicy": {
      "input": {
        "type": "structure",
        "required": [
          "PolicyId",
          "TargetId"
        ],
        "members": {
          "PolicyId": {},
          "TargetId": {}
        }
      }
    },
    "DisablePolicyType": {
      "input": {
        "type": "structure",
        "required": [
          "RootId",
          "PolicyType"
        ],
        "members": {
          "RootId": {},
          "PolicyType": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Root": {
            "shape": "S2a"
          }
        }
      }
    },
    "EnableAllFeatures": {
      "input": {
        "type": "structure",
        "members": {}
      },
      "output": {
        "type": "structure",
        "members": {
          "Handshake": {
            "shape": "S4"
          }
        }
      }
    },
    "EnablePolicyType": {
      "input": {
        "type": "structure",
        "required": [
          "RootId",
          "PolicyType"
        ],
        "members": {
          "RootId": {},
          "PolicyType": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Root": {
            "shape": "S2a"
          }
        }
      }
    },
    "InviteAccountToOrganization": {
      "input": {
        "type": "structure",
        "required": [
          "Target"
        ],
        "members": {
          "Target": {
            "shape": "S7"
          },
          "Notes": {
            "type": "string",
            "sensitive": true
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Handshake": {
            "shape": "S4"
          }
        }
      }
    },
    "LeaveOrganization": {},
    "ListAccounts": {
      "input": {
        "type": "structure",
        "members": {
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Accounts": {
            "shape": "S2o"
          },
          "NextToken": {}
        }
      }
    },
    "ListAccountsForParent": {
      "input": {
        "type": "structure",
        "required": [
          "ParentId"
        ],
        "members": {
          "ParentId": {},
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Accounts": {
            "shape": "S2o"
          },
          "NextToken": {}
        }
      }
    },
    "ListChildren": {
      "input": {
        "type": "structure",
        "required": [
          "ParentId",
          "ChildType"
        ],
        "members": {
          "ParentId": {},
          "ChildType": {},
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Children": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "Id": {},
                "Type": {}
              }
            }
          },
          "NextToken": {}
        }
      }
    },
    "ListCreateAccountStatus": {
      "input": {
        "type": "structure",
        "members": {
          "States": {
            "type": "list",
            "member": {}
          },
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "CreateAccountStatuses": {
            "type": "list",
            "member": {
              "shape": "Ss"
            }
          },
          "NextToken": {}
        }
      }
    },
    "ListHandshakesForAccount": {
      "input": {
        "type": "structure",
        "members": {
          "Filter": {
            "shape": "S32"
          },
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Handshakes": {
            "shape": "S34"
          },
          "NextToken": {}
        }
      }
    },
    "ListHandshakesForOrganization": {
      "input": {
        "type": "structure",
        "members": {
          "Filter": {
            "shape": "S32"
          },
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Handshakes": {
            "shape": "S34"
          },
          "NextToken": {}
        }
      }
    },
    "ListOrganizationalUnitsForParent": {
      "input": {
        "type": "structure",
        "required": [
          "ParentId"
        ],
        "members": {
          "ParentId": {},
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "OrganizationalUnits": {
            "type": "list",
            "member": {
              "shape": "S1c"
            }
          },
          "NextToken": {}
        }
      }
    },
    "ListParents": {
      "input": {
        "type": "structure",
        "required": [
          "ChildId"
        ],
        "members": {
          "ChildId": {},
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Parents": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "Id": {},
                "Type": {}
              }
            }
          },
          "NextToken": {}
        }
      }
    },
    "ListPolicies": {
      "input": {
        "type": "structure",
        "required": [
          "Filter"
        ],
        "members": {
          "Filter": {},
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Policies": {
            "shape": "S3h"
          },
          "NextToken": {}
        }
      }
    },
    "ListPoliciesForTarget": {
      "input": {
        "type": "structure",
        "required": [
          "TargetId",
          "Filter"
        ],
        "members": {
          "TargetId": {},
          "Filter": {},
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Policies": {
            "shape": "S3h"
          },
          "NextToken": {}
        }
      }
    },
    "ListRoots": {
      "input": {
        "type": "structure",
        "members": {
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Roots": {
            "type": "list",
            "member": {
              "shape": "S2a"
            }
          },
          "NextToken": {}
        }
      }
    },
    "ListTargetsForPolicy": {
      "input": {
        "type": "structure",
        "required": [
          "PolicyId"
        ],
        "members": {
          "PolicyId": {},
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Targets": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "TargetId": {},
                "Arn": {},
                "Name": {},
                "Type": {}
              }
            }
          },
          "NextToken": {}
        }
      }
    },
    "MoveAccount": {
      "input": {
        "type": "structure",
        "required": [
          "AccountId",
          "SourceParentId",
          "DestinationParentId"
        ],
        "members": {
          "AccountId": {},
          "SourceParentId": {},
          "DestinationParentId": {}
        }
      }
    },
    "RemoveAccountFromOrganization": {
      "input": {
        "type": "structure",
        "required": [
          "AccountId"
        ],
        "members": {
          "AccountId": {}
        }
      }
    },
    "UpdateOrganizationalUnit": {
      "input": {
        "type": "structure",
        "required": [
          "OrganizationalUnitId"
        ],
        "members": {
          "OrganizationalUnitId": {},
          "Name": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "OrganizationalUnit": {
            "shape": "S1c"
          }
        }
      }
    },
    "UpdatePolicy": {
      "input": {
        "type": "structure",
        "required": [
          "PolicyId"
        ],
        "members": {
          "PolicyId": {},
          "Name": {},
          "Description": {},
          "Content": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Policy": {
            "shape": "S1k"
          }
        }
      }
    }
  },
  "shapes": {
    "S4": {
      "type": "structure",
      "members": {
        "Id": {},
        "Arn": {},
        "Parties": {
          "type": "list",
          "member": {
            "shape": "S7"
          }
        },
        "State": {},
        "RequestedTimestamp": {
          "type": "timestamp"
        },
        "ExpirationTimestamp": {
          "type": "timestamp"
        },
        "Action": {},
        "Resources": {
          "shape": "Sd"
        }
      }
    },
    "S7": {
      "type": "structure",
      "members": {
        "Id": {
          "type": "string",
          "sensitive": true
        },
        "Type": {}
      }
    },
    "Sd": {
      "type": "list",
      "member": {
        "type": "structure",
        "members": {
          "Value": {
            "type": "string",
            "sensitive": true
          },
          "Type": {},
          "Resources": {
            "shape": "Sd"
          }
        }
      }
    },
    "Sn": {
      "type": "string",
      "sensitive": true
    },
    "So": {
      "type": "string",
      "sensitive": true
    },
    "Ss": {
      "type": "structure",
      "members": {
        "Id": {},
        "AccountName": {
          "shape": "So"
        },
        "State": {},
        "RequestedTimestamp": {
          "type": "timestamp"
        },
        "CompletedTimestamp": {
          "type": "timestamp"
        },
        "AccountId": {},
        "FailureReason": {}
      }
    },
    "S10": {
      "type": "structure",
      "members": {
        "Id": {},
        "Arn": {},
        "FeatureSet": {},
        "MasterAccountArn": {},
        "MasterAccountId": {},
        "MasterAccountEmail": {
          "shape": "Sn"
        },
        "AvailablePolicyTypes": {
          "shape": "S14"
        }
      }
    },
    "S14": {
      "type": "list",
      "member": {
        "type": "structure",
        "members": {
          "Type": {},
          "Status": {}
        }
      }
    },
    "S1c": {
      "type": "structure",
      "members": {
        "Id": {},
        "Arn": {},
        "Name": {}
      }
    },
    "S1k": {
      "type": "structure",
      "members": {
        "PolicySummary": {
          "shape": "S1l"
        },
        "Content": {}
      }
    },
    "S1l": {
      "type": "structure",
      "members": {
        "Id": {},
        "Arn": {},
        "Name": {},
        "Description": {},
        "Type": {},
        "AwsManaged": {
          "type": "boolean"
        }
      }
    },
    "S1u": {
      "type": "structure",
      "members": {
        "Id": {},
        "Arn": {},
        "Email": {
          "shape": "Sn"
        },
        "Name": {
          "shape": "So"
        },
        "Status": {},
        "JoinedMethod": {},
        "JoinedTimestamp": {
          "type": "timestamp"
        }
      }
    },
    "S2a": {
      "type": "structure",
      "members": {
        "Id": {},
        "Arn": {},
        "Name": {},
        "PolicyTypes": {
          "shape": "S14"
        }
      }
    },
    "S2o": {
      "type": "list",
      "member": {
        "shape": "S1u"
      }
    },
    "S32": {
      "type": "structure",
      "members": {
        "ActionType": {},
        "ParentHandshakeId": {}
      }
    },
    "S34": {
      "type": "list",
      "member": {
        "shape": "S4"
      }
    },
    "S3h": {
      "type": "list",
      "member": {
        "shape": "S1l"
      }
    }
  }
}